aclocal.m4 258 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319
  1. # generated automatically by aclocal 1.10 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006 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_if(m4_PACKAGE_VERSION, [2.61],,
  12. [m4_fatal([this file was generated for autoconf 2.61.
  13. You have another version of autoconf. If you want to use that,
  14. you should regenerate the build system entirely.], [63])])
  15. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  16. # serial 48 AC_PROG_LIBTOOL
  17. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  18. # -----------------------------------------------------------
  19. # If this macro is not defined by Autoconf, define it here.
  20. m4_ifdef([AC_PROVIDE_IFELSE],
  21. [],
  22. [m4_define([AC_PROVIDE_IFELSE],
  23. [m4_ifdef([AC_PROVIDE_$1],
  24. [$2], [$3])])])
  25. # AC_PROG_LIBTOOL
  26. # ---------------
  27. AC_DEFUN([AC_PROG_LIBTOOL],
  28. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  29. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  30. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  31. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  32. [AC_LIBTOOL_CXX],
  33. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  34. ])])
  35. dnl And a similar setup for Fortran 77 support
  36. AC_PROVIDE_IFELSE([AC_PROG_F77],
  37. [AC_LIBTOOL_F77],
  38. [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  39. ])])
  40. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  41. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  42. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  43. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  44. [AC_LIBTOOL_GCJ],
  45. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  46. [AC_LIBTOOL_GCJ],
  47. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  48. [AC_LIBTOOL_GCJ],
  49. [ifdef([AC_PROG_GCJ],
  50. [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  51. ifdef([A][M_PROG_GCJ],
  52. [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  53. ifdef([LT_AC_PROG_GCJ],
  54. [define([LT_AC_PROG_GCJ],
  55. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  56. ])])# AC_PROG_LIBTOOL
  57. # _AC_PROG_LIBTOOL
  58. # ----------------
  59. AC_DEFUN([_AC_PROG_LIBTOOL],
  60. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  61. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  62. AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  63. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  64. # This can be used to rebuild libtool when needed
  65. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  66. # Always use our own libtool.
  67. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  68. AC_SUBST(LIBTOOL)dnl
  69. # Prevent multiple expansion
  70. define([AC_PROG_LIBTOOL], [])
  71. ])# _AC_PROG_LIBTOOL
  72. # AC_LIBTOOL_SETUP
  73. # ----------------
  74. AC_DEFUN([AC_LIBTOOL_SETUP],
  75. [AC_PREREQ(2.50)dnl
  76. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  77. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  78. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  79. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  80. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  81. AC_REQUIRE([AC_PROG_CC])dnl
  82. AC_REQUIRE([AC_PROG_LD])dnl
  83. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  84. AC_REQUIRE([AC_PROG_NM])dnl
  85. AC_REQUIRE([AC_PROG_LN_S])dnl
  86. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  87. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  88. AC_REQUIRE([AC_OBJEXT])dnl
  89. AC_REQUIRE([AC_EXEEXT])dnl
  90. dnl
  91. AC_LIBTOOL_SYS_MAX_CMD_LEN
  92. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  93. AC_LIBTOOL_OBJDIR
  94. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  95. _LT_AC_PROG_ECHO_BACKSLASH
  96. case $host_os in
  97. aix3*)
  98. # AIX sometimes has problems with the GCC collect2 program. For some
  99. # reason, if we set the COLLECT_NAMES environment variable, the problems
  100. # vanish in a puff of smoke.
  101. if test "X${COLLECT_NAMES+set}" != Xset; then
  102. COLLECT_NAMES=
  103. export COLLECT_NAMES
  104. fi
  105. ;;
  106. esac
  107. # Sed substitution that helps us do robust quoting. It backslashifies
  108. # metacharacters that are still active within double-quoted strings.
  109. Xsed='sed -e 1s/^X//'
  110. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  111. # Same as above, but do not quote variable references.
  112. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  113. # Sed substitution to delay expansion of an escaped shell variable in a
  114. # double_quote_subst'ed string.
  115. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  116. # Sed substitution to avoid accidental globbing in evaled expressions
  117. no_glob_subst='s/\*/\\\*/g'
  118. # Constants:
  119. rm="rm -f"
  120. # Global variables:
  121. default_ofile=libtool
  122. can_build_shared=yes
  123. # All known linkers require a `.a' archive for static linking (except MSVC,
  124. # which needs '.lib').
  125. libext=a
  126. ltmain="$ac_aux_dir/ltmain.sh"
  127. ofile="$default_ofile"
  128. with_gnu_ld="$lt_cv_prog_gnu_ld"
  129. AC_CHECK_TOOL(AR, ar, false)
  130. AC_CHECK_TOOL(RANLIB, ranlib, :)
  131. AC_CHECK_TOOL(STRIP, strip, :)
  132. old_CC="$CC"
  133. old_CFLAGS="$CFLAGS"
  134. # Set sane defaults for various variables
  135. test -z "$AR" && AR=ar
  136. test -z "$AR_FLAGS" && AR_FLAGS=cru
  137. test -z "$AS" && AS=as
  138. test -z "$CC" && CC=cc
  139. test -z "$LTCC" && LTCC=$CC
  140. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  141. test -z "$DLLTOOL" && DLLTOOL=dlltool
  142. test -z "$LD" && LD=ld
  143. test -z "$LN_S" && LN_S="ln -s"
  144. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  145. test -z "$NM" && NM=nm
  146. test -z "$SED" && SED=sed
  147. test -z "$OBJDUMP" && OBJDUMP=objdump
  148. test -z "$RANLIB" && RANLIB=:
  149. test -z "$STRIP" && STRIP=:
  150. test -z "$ac_objext" && ac_objext=o
  151. # Determine commands to create old-style static archives.
  152. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  153. old_postinstall_cmds='chmod 644 $oldlib'
  154. old_postuninstall_cmds=
  155. if test -n "$RANLIB"; then
  156. case $host_os in
  157. openbsd*)
  158. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  159. ;;
  160. *)
  161. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  162. ;;
  163. esac
  164. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  165. fi
  166. _LT_CC_BASENAME([$compiler])
  167. # Only perform the check for file, if the check method requires it
  168. case $deplibs_check_method in
  169. file_magic*)
  170. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  171. AC_PATH_MAGIC
  172. fi
  173. ;;
  174. esac
  175. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  176. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  177. enable_win32_dll=yes, enable_win32_dll=no)
  178. AC_ARG_ENABLE([libtool-lock],
  179. [AC_HELP_STRING([--disable-libtool-lock],
  180. [avoid locking (might break parallel builds)])])
  181. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  182. AC_ARG_WITH([pic],
  183. [AC_HELP_STRING([--with-pic],
  184. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  185. [pic_mode="$withval"],
  186. [pic_mode=default])
  187. test -z "$pic_mode" && pic_mode=default
  188. # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
  189. #
  190. # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
  191. # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
  192. # calls AC_LIBTOOL_CONFIG and creates libtool.
  193. #
  194. _LT_VERSION_CHECK
  195. # Use C for the default configuration in the libtool script
  196. tagname=
  197. AC_LIBTOOL_LANG_C_CONFIG
  198. _LT_AC_TAGCONFIG
  199. ])# AC_LIBTOOL_SETUP
  200. # _LT_VERSION_CHECK
  201. # -----------------
  202. AC_DEFUN([_LT_VERSION_CHECK],
  203. [AC_MSG_CHECKING([for correct ltmain.sh version])
  204. if test "x$ltmain" = "x" ; then
  205. AC_MSG_RESULT(no)
  206. AC_MSG_ERROR([
  207. *** @<:@Gentoo@:>@ sanity check failed! ***
  208. *** \$ltmain is not defined, please check the patch for consistency! ***
  209. ])
  210. fi
  211. gentoo_lt_version="1.5.22"
  212. gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
  213. if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
  214. AC_MSG_RESULT(no)
  215. AC_MSG_ERROR([
  216. *** @<:@Gentoo@:>@ sanity check failed! ***
  217. *** libtool.m4 and ltmain.sh have a version mismatch! ***
  218. *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
  219. Please run:
  220. libtoolize --copy --force
  221. if appropriate, please contact the maintainer of this
  222. package (or your distribution) for help.
  223. ])
  224. else
  225. AC_MSG_RESULT(yes)
  226. fi
  227. ])# _LT_VERSION_CHECK
  228. # _LT_AC_SYS_COMPILER
  229. # -------------------
  230. AC_DEFUN([_LT_AC_SYS_COMPILER],
  231. [AC_REQUIRE([AC_PROG_CC])dnl
  232. # If no C compiler was specified, use CC.
  233. LTCC=${LTCC-"$CC"}
  234. # If no C compiler flags were specified, use CFLAGS.
  235. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  236. # Allow CC to be a program name with arguments.
  237. compiler=$CC
  238. ])# _LT_AC_SYS_COMPILER
  239. # _LT_CC_BASENAME(CC)
  240. # -------------------
  241. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  242. AC_DEFUN([_LT_CC_BASENAME],
  243. [for cc_temp in $1""; do
  244. case $cc_temp in
  245. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  246. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  247. \-*) ;;
  248. *) break;;
  249. esac
  250. done
  251. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  252. ])
  253. # _LT_COMPILER_BOILERPLATE
  254. # ------------------------
  255. # Check for compiler boilerplate output or warnings with
  256. # the simple compiler test code.
  257. AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  258. [ac_outfile=conftest.$ac_objext
  259. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  260. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  261. _lt_compiler_boilerplate=`cat conftest.err`
  262. $rm conftest*
  263. ])# _LT_COMPILER_BOILERPLATE
  264. # _LT_LINKER_BOILERPLATE
  265. # ----------------------
  266. # Check for linker boilerplate output or warnings with
  267. # the simple link test code.
  268. AC_DEFUN([_LT_LINKER_BOILERPLATE],
  269. [ac_outfile=conftest.$ac_objext
  270. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  271. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  272. _lt_linker_boilerplate=`cat conftest.err`
  273. $rm conftest*
  274. ])# _LT_LINKER_BOILERPLATE
  275. # _LT_AC_SYS_LIBPATH_AIX
  276. # ----------------------
  277. # Links a minimal program and checks the executable
  278. # for the system default hardcoded library path. In most cases,
  279. # this is /usr/lib:/lib, but when the MPI compilers are used
  280. # the location of the communication and MPI libs are included too.
  281. # If we don't find anything, use the default library path according
  282. # to the aix ld manual.
  283. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  284. [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  285. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  286. }'`
  287. # Check for a 64-bit object if we didn't find anything.
  288. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  289. }'`; fi],[])
  290. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  291. ])# _LT_AC_SYS_LIBPATH_AIX
  292. # _LT_AC_SHELL_INIT(ARG)
  293. # ----------------------
  294. AC_DEFUN([_LT_AC_SHELL_INIT],
  295. [ifdef([AC_DIVERSION_NOTICE],
  296. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  297. [AC_DIVERT_PUSH(NOTICE)])
  298. $1
  299. AC_DIVERT_POP
  300. ])# _LT_AC_SHELL_INIT
  301. # _LT_AC_PROG_ECHO_BACKSLASH
  302. # --------------------------
  303. # Add some code to the start of the generated configure script which
  304. # will find an echo command which doesn't interpret backslashes.
  305. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  306. [_LT_AC_SHELL_INIT([
  307. # Check that we are running under the correct shell.
  308. SHELL=${CONFIG_SHELL-/bin/sh}
  309. case X$ECHO in
  310. X*--fallback-echo)
  311. # Remove one level of quotation (which was required for Make).
  312. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  313. ;;
  314. esac
  315. echo=${ECHO-echo}
  316. if test "X[$]1" = X--no-reexec; then
  317. # Discard the --no-reexec flag, and continue.
  318. shift
  319. elif test "X[$]1" = X--fallback-echo; then
  320. # Avoid inline document here, it may be left over
  321. :
  322. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  323. # Yippee, $echo works!
  324. :
  325. else
  326. # Restart under the correct shell.
  327. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  328. fi
  329. if test "X[$]1" = X--fallback-echo; then
  330. # used as fallback echo
  331. shift
  332. cat <<EOF
  333. [$]*
  334. EOF
  335. exit 0
  336. fi
  337. # The HP-UX ksh and POSIX shell print the target directory to stdout
  338. # if CDPATH is set.
  339. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  340. if test -z "$ECHO"; then
  341. if test "X${echo_test_string+set}" != Xset; then
  342. # find a string as large as possible, as long as the shell can cope with it
  343. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  344. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  345. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  346. echo_test_string=`eval $cmd` &&
  347. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  348. then
  349. break
  350. fi
  351. done
  352. fi
  353. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  354. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  355. test "X$echo_testing_string" = "X$echo_test_string"; then
  356. :
  357. else
  358. # The Solaris, AIX, and Digital Unix default echo programs unquote
  359. # backslashes. This makes it impossible to quote backslashes using
  360. # echo "$something" | sed 's/\\/\\\\/g'
  361. #
  362. # So, first we look for a working echo in the user's PATH.
  363. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  364. for dir in $PATH /usr/ucb; do
  365. IFS="$lt_save_ifs"
  366. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  367. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  368. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  369. test "X$echo_testing_string" = "X$echo_test_string"; then
  370. echo="$dir/echo"
  371. break
  372. fi
  373. done
  374. IFS="$lt_save_ifs"
  375. if test "X$echo" = Xecho; then
  376. # We didn't find a better echo, so look for alternatives.
  377. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  378. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  379. test "X$echo_testing_string" = "X$echo_test_string"; then
  380. # This shell has a builtin print -r that does the trick.
  381. echo='print -r'
  382. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  383. test "X$CONFIG_SHELL" != X/bin/ksh; then
  384. # If we have ksh, try running configure again with it.
  385. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  386. export ORIGINAL_CONFIG_SHELL
  387. CONFIG_SHELL=/bin/ksh
  388. export CONFIG_SHELL
  389. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  390. else
  391. # Try using printf.
  392. echo='printf %s\n'
  393. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  394. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  395. test "X$echo_testing_string" = "X$echo_test_string"; then
  396. # Cool, printf works
  397. :
  398. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  399. test "X$echo_testing_string" = 'X\t' &&
  400. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  401. test "X$echo_testing_string" = "X$echo_test_string"; then
  402. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  403. export CONFIG_SHELL
  404. SHELL="$CONFIG_SHELL"
  405. export SHELL
  406. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  407. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  408. test "X$echo_testing_string" = 'X\t' &&
  409. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  410. test "X$echo_testing_string" = "X$echo_test_string"; then
  411. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  412. else
  413. # maybe with a smaller string...
  414. prev=:
  415. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  416. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  417. then
  418. break
  419. fi
  420. prev="$cmd"
  421. done
  422. if test "$prev" != 'sed 50q "[$]0"'; then
  423. echo_test_string=`eval $prev`
  424. export echo_test_string
  425. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  426. else
  427. # Oops. We lost completely, so just stick with echo.
  428. echo=echo
  429. fi
  430. fi
  431. fi
  432. fi
  433. fi
  434. fi
  435. # Copy echo and quote the copy suitably for passing to libtool from
  436. # the Makefile, instead of quoting the original, which is used later.
  437. ECHO=$echo
  438. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  439. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  440. fi
  441. AC_SUBST(ECHO)
  442. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  443. # _LT_AC_LOCK
  444. # -----------
  445. AC_DEFUN([_LT_AC_LOCK],
  446. [AC_ARG_ENABLE([libtool-lock],
  447. [AC_HELP_STRING([--disable-libtool-lock],
  448. [avoid locking (might break parallel builds)])])
  449. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  450. # Some flags need to be propagated to the compiler or linker for good
  451. # libtool support.
  452. case $host in
  453. ia64-*-hpux*)
  454. # Find out which ABI we are using.
  455. echo 'int i;' > conftest.$ac_ext
  456. if AC_TRY_EVAL(ac_compile); then
  457. case `/usr/bin/file conftest.$ac_objext` in
  458. *ELF-32*)
  459. HPUX_IA64_MODE="32"
  460. ;;
  461. *ELF-64*)
  462. HPUX_IA64_MODE="64"
  463. ;;
  464. esac
  465. fi
  466. rm -rf conftest*
  467. ;;
  468. *-*-irix6*)
  469. # Find out which ABI we are using.
  470. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  471. if AC_TRY_EVAL(ac_compile); then
  472. if test "$lt_cv_prog_gnu_ld" = yes; then
  473. case `/usr/bin/file conftest.$ac_objext` in
  474. *32-bit*)
  475. LD="${LD-ld} -melf32bsmip"
  476. ;;
  477. *N32*)
  478. LD="${LD-ld} -melf32bmipn32"
  479. ;;
  480. *64-bit*)
  481. LD="${LD-ld} -melf64bmip"
  482. ;;
  483. esac
  484. else
  485. case `/usr/bin/file conftest.$ac_objext` in
  486. *32-bit*)
  487. LD="${LD-ld} -32"
  488. ;;
  489. *N32*)
  490. LD="${LD-ld} -n32"
  491. ;;
  492. *64-bit*)
  493. LD="${LD-ld} -64"
  494. ;;
  495. esac
  496. fi
  497. fi
  498. rm -rf conftest*
  499. ;;
  500. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  501. # Find out which ABI we are using.
  502. echo 'int i;' > conftest.$ac_ext
  503. if AC_TRY_EVAL(ac_compile); then
  504. case `/usr/bin/file conftest.o` in
  505. *32-bit*)
  506. case $host in
  507. x86_64-*linux*)
  508. LD="${LD-ld} -m elf_i386"
  509. ;;
  510. ppc64-*linux*|powerpc64-*linux*)
  511. LD="${LD-ld} -m elf32ppclinux"
  512. ;;
  513. s390x-*linux*)
  514. LD="${LD-ld} -m elf_s390"
  515. ;;
  516. sparc64-*linux*)
  517. LD="${LD-ld} -m elf32_sparc"
  518. ;;
  519. esac
  520. ;;
  521. *64-bit*)
  522. case $host in
  523. x86_64-*linux*)
  524. LD="${LD-ld} -m elf_x86_64"
  525. ;;
  526. ppc*-*linux*|powerpc*-*linux*)
  527. LD="${LD-ld} -m elf64ppc"
  528. ;;
  529. s390*-*linux*)
  530. LD="${LD-ld} -m elf64_s390"
  531. ;;
  532. sparc*-*linux*)
  533. LD="${LD-ld} -m elf64_sparc"
  534. ;;
  535. esac
  536. ;;
  537. esac
  538. fi
  539. rm -rf conftest*
  540. ;;
  541. *-*-sco3.2v5*)
  542. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  543. SAVE_CFLAGS="$CFLAGS"
  544. CFLAGS="$CFLAGS -belf"
  545. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  546. [AC_LANG_PUSH(C)
  547. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  548. AC_LANG_POP])
  549. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  550. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  551. CFLAGS="$SAVE_CFLAGS"
  552. fi
  553. ;;
  554. sparc*-*solaris*)
  555. # Find out which ABI we are using.
  556. echo 'int i;' > conftest.$ac_ext
  557. if AC_TRY_EVAL(ac_compile); then
  558. case `/usr/bin/file conftest.o` in
  559. *64-bit*)
  560. case $lt_cv_prog_gnu_ld in
  561. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  562. *) LD="${LD-ld} -64" ;;
  563. esac
  564. ;;
  565. esac
  566. fi
  567. rm -rf conftest*
  568. ;;
  569. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  570. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  571. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  572. AC_CHECK_TOOL(AS, as, false)
  573. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  574. ;;
  575. ])
  576. esac
  577. need_locks="$enable_libtool_lock"
  578. ])# _LT_AC_LOCK
  579. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  580. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  581. # ----------------------------------------------------------------
  582. # Check whether the given compiler option works
  583. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  584. [AC_REQUIRE([LT_AC_PROG_SED])
  585. AC_CACHE_CHECK([$1], [$2],
  586. [$2=no
  587. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  588. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  589. lt_compiler_flag="$3"
  590. # Insert the option either (1) after the last *FLAGS variable, or
  591. # (2) before a word containing "conftest.", or (3) at the end.
  592. # Note that $ac_compile itself does not contain backslashes and begins
  593. # with a dollar sign (not a hyphen), so the echo should work correctly.
  594. # The option is referenced via a variable to avoid confusing sed.
  595. lt_compile=`echo "$ac_compile" | $SED \
  596. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  597. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  598. -e 's:$: $lt_compiler_flag:'`
  599. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  600. (eval "$lt_compile" 2>conftest.err)
  601. ac_status=$?
  602. cat conftest.err >&AS_MESSAGE_LOG_FD
  603. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  604. if (exit $ac_status) && test -s "$ac_outfile"; then
  605. # The compiler can only warn and ignore the option if not recognized
  606. # So say no if there are warnings other than the usual output.
  607. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  608. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  609. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  610. $2=yes
  611. fi
  612. fi
  613. $rm conftest*
  614. ])
  615. if test x"[$]$2" = xyes; then
  616. ifelse([$5], , :, [$5])
  617. else
  618. ifelse([$6], , :, [$6])
  619. fi
  620. ])# AC_LIBTOOL_COMPILER_OPTION
  621. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  622. # [ACTION-SUCCESS], [ACTION-FAILURE])
  623. # ------------------------------------------------------------
  624. # Check whether the given compiler option works
  625. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  626. [AC_CACHE_CHECK([$1], [$2],
  627. [$2=no
  628. save_LDFLAGS="$LDFLAGS"
  629. LDFLAGS="$LDFLAGS $3"
  630. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  631. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  632. # The linker can only warn and ignore the option if not recognized
  633. # So say no if there are warnings
  634. if test -s conftest.err; then
  635. # Append any errors to the config.log.
  636. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  637. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  639. if diff conftest.exp conftest.er2 >/dev/null; then
  640. $2=yes
  641. fi
  642. else
  643. $2=yes
  644. fi
  645. fi
  646. $rm conftest*
  647. LDFLAGS="$save_LDFLAGS"
  648. ])
  649. if test x"[$]$2" = xyes; then
  650. ifelse([$4], , :, [$4])
  651. else
  652. ifelse([$5], , :, [$5])
  653. fi
  654. ])# AC_LIBTOOL_LINKER_OPTION
  655. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  656. # --------------------------
  657. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  658. [# find the maximum length of command line arguments
  659. AC_MSG_CHECKING([the maximum length of command line arguments])
  660. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  661. i=0
  662. teststring="ABCD"
  663. case $build_os in
  664. msdosdjgpp*)
  665. # On DJGPP, this test can blow up pretty badly due to problems in libc
  666. # (any single argument exceeding 2000 bytes causes a buffer overrun
  667. # during glob expansion). Even if it were fixed, the result of this
  668. # check would be larger than it should be.
  669. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  670. ;;
  671. gnu*)
  672. # Under GNU Hurd, this test is not required because there is
  673. # no limit to the length of command line arguments.
  674. # Libtool will interpret -1 as no limit whatsoever
  675. lt_cv_sys_max_cmd_len=-1;
  676. ;;
  677. cygwin* | mingw*)
  678. # On Win9x/ME, this test blows up -- it succeeds, but takes
  679. # about 5 minutes as the teststring grows exponentially.
  680. # Worse, since 9x/ME are not pre-emptively multitasking,
  681. # you end up with a "frozen" computer, even though with patience
  682. # the test eventually succeeds (with a max line length of 256k).
  683. # Instead, let's just punt: use the minimum linelength reported by
  684. # all of the supported platforms: 8192 (on NT/2K/XP).
  685. lt_cv_sys_max_cmd_len=8192;
  686. ;;
  687. amigaos*)
  688. # On AmigaOS with pdksh, this test takes hours, literally.
  689. # So we just punt and use a minimum line length of 8192.
  690. lt_cv_sys_max_cmd_len=8192;
  691. ;;
  692. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  693. # This has been around since 386BSD, at least. Likely further.
  694. if test -x /sbin/sysctl; then
  695. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  696. elif test -x /usr/sbin/sysctl; then
  697. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  698. else
  699. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  700. fi
  701. # And add a safety zone
  702. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  703. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  704. ;;
  705. interix*)
  706. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  707. lt_cv_sys_max_cmd_len=196608
  708. ;;
  709. osf*)
  710. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  711. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  712. # nice to cause kernel panics so lets avoid the loop below.
  713. # First set a reasonable default.
  714. lt_cv_sys_max_cmd_len=16384
  715. #
  716. if test -x /sbin/sysconfig; then
  717. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  718. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  719. esac
  720. fi
  721. ;;
  722. sco3.2v5*)
  723. lt_cv_sys_max_cmd_len=102400
  724. ;;
  725. sysv5* | sco5v6* | sysv4.2uw2*)
  726. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  727. if test -n "$kargmax"; then
  728. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  729. else
  730. lt_cv_sys_max_cmd_len=32768
  731. fi
  732. ;;
  733. *)
  734. # If test is not a shell built-in, we'll probably end up computing a
  735. # maximum length that is only half of the actual maximum length, but
  736. # we can't tell.
  737. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  738. while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  739. = "XX$teststring") >/dev/null 2>&1 &&
  740. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  741. lt_cv_sys_max_cmd_len=$new_result &&
  742. test $i != 17 # 1/2 MB should be enough
  743. do
  744. i=`expr $i + 1`
  745. teststring=$teststring$teststring
  746. done
  747. teststring=
  748. # Add a significant safety factor because C++ compilers can tack on massive
  749. # amounts of additional arguments before passing them to the linker.
  750. # It appears as though 1/2 is a usable value.
  751. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  752. ;;
  753. esac
  754. ])
  755. if test -n $lt_cv_sys_max_cmd_len ; then
  756. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  757. else
  758. AC_MSG_RESULT(none)
  759. fi
  760. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  761. # _LT_AC_CHECK_DLFCN
  762. # ------------------
  763. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  764. [AC_CHECK_HEADERS(dlfcn.h)dnl
  765. ])# _LT_AC_CHECK_DLFCN
  766. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  767. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  768. # ---------------------------------------------------------------------
  769. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  770. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  771. if test "$cross_compiling" = yes; then :
  772. [$4]
  773. else
  774. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  775. lt_status=$lt_dlunknown
  776. cat > conftest.$ac_ext <<EOF
  777. [#line __oline__ "configure"
  778. #include "confdefs.h"
  779. #if HAVE_DLFCN_H
  780. #include <dlfcn.h>
  781. #endif
  782. #include <stdio.h>
  783. #ifdef RTLD_GLOBAL
  784. # define LT_DLGLOBAL RTLD_GLOBAL
  785. #else
  786. # ifdef DL_GLOBAL
  787. # define LT_DLGLOBAL DL_GLOBAL
  788. # else
  789. # define LT_DLGLOBAL 0
  790. # endif
  791. #endif
  792. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  793. find out it does not work in some platform. */
  794. #ifndef LT_DLLAZY_OR_NOW
  795. # ifdef RTLD_LAZY
  796. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  797. # else
  798. # ifdef DL_LAZY
  799. # define LT_DLLAZY_OR_NOW DL_LAZY
  800. # else
  801. # ifdef RTLD_NOW
  802. # define LT_DLLAZY_OR_NOW RTLD_NOW
  803. # else
  804. # ifdef DL_NOW
  805. # define LT_DLLAZY_OR_NOW DL_NOW
  806. # else
  807. # define LT_DLLAZY_OR_NOW 0
  808. # endif
  809. # endif
  810. # endif
  811. # endif
  812. #endif
  813. #ifdef __cplusplus
  814. extern "C" void exit (int);
  815. #endif
  816. void fnord() { int i=42;}
  817. int main ()
  818. {
  819. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  820. int status = $lt_dlunknown;
  821. if (self)
  822. {
  823. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  824. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  825. /* dlclose (self); */
  826. }
  827. else
  828. puts (dlerror ());
  829. exit (status);
  830. }]
  831. EOF
  832. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  833. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  834. lt_status=$?
  835. case x$lt_status in
  836. x$lt_dlno_uscore) $1 ;;
  837. x$lt_dlneed_uscore) $2 ;;
  838. x$lt_dlunknown|x*) $3 ;;
  839. esac
  840. else :
  841. # compilation failed
  842. $3
  843. fi
  844. fi
  845. rm -fr conftest*
  846. ])# _LT_AC_TRY_DLOPEN_SELF
  847. # AC_LIBTOOL_DLOPEN_SELF
  848. # ----------------------
  849. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  850. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  851. if test "x$enable_dlopen" != xyes; then
  852. enable_dlopen=unknown
  853. enable_dlopen_self=unknown
  854. enable_dlopen_self_static=unknown
  855. else
  856. lt_cv_dlopen=no
  857. lt_cv_dlopen_libs=
  858. case $host_os in
  859. beos*)
  860. lt_cv_dlopen="load_add_on"
  861. lt_cv_dlopen_libs=
  862. lt_cv_dlopen_self=yes
  863. ;;
  864. mingw* | pw32*)
  865. lt_cv_dlopen="LoadLibrary"
  866. lt_cv_dlopen_libs=
  867. ;;
  868. cygwin*)
  869. lt_cv_dlopen="dlopen"
  870. lt_cv_dlopen_libs=
  871. ;;
  872. darwin*)
  873. # if libdl is installed we need to link against it
  874. AC_CHECK_LIB([dl], [dlopen],
  875. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  876. lt_cv_dlopen="dyld"
  877. lt_cv_dlopen_libs=
  878. lt_cv_dlopen_self=yes
  879. ])
  880. ;;
  881. *)
  882. AC_CHECK_FUNC([shl_load],
  883. [lt_cv_dlopen="shl_load"],
  884. [AC_CHECK_LIB([dld], [shl_load],
  885. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  886. [AC_CHECK_FUNC([dlopen],
  887. [lt_cv_dlopen="dlopen"],
  888. [AC_CHECK_LIB([dl], [dlopen],
  889. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  890. [AC_CHECK_LIB([svld], [dlopen],
  891. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  892. [AC_CHECK_LIB([dld], [dld_link],
  893. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  894. ])
  895. ])
  896. ])
  897. ])
  898. ])
  899. ;;
  900. esac
  901. if test "x$lt_cv_dlopen" != xno; then
  902. enable_dlopen=yes
  903. else
  904. enable_dlopen=no
  905. fi
  906. case $lt_cv_dlopen in
  907. dlopen)
  908. save_CPPFLAGS="$CPPFLAGS"
  909. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  910. save_LDFLAGS="$LDFLAGS"
  911. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  912. save_LIBS="$LIBS"
  913. LIBS="$lt_cv_dlopen_libs $LIBS"
  914. AC_CACHE_CHECK([whether a program can dlopen itself],
  915. lt_cv_dlopen_self, [dnl
  916. _LT_AC_TRY_DLOPEN_SELF(
  917. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  918. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  919. ])
  920. if test "x$lt_cv_dlopen_self" = xyes; then
  921. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  922. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  923. lt_cv_dlopen_self_static, [dnl
  924. _LT_AC_TRY_DLOPEN_SELF(
  925. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  926. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  927. ])
  928. fi
  929. CPPFLAGS="$save_CPPFLAGS"
  930. LDFLAGS="$save_LDFLAGS"
  931. LIBS="$save_LIBS"
  932. ;;
  933. esac
  934. case $lt_cv_dlopen_self in
  935. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  936. *) enable_dlopen_self=unknown ;;
  937. esac
  938. case $lt_cv_dlopen_self_static in
  939. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  940. *) enable_dlopen_self_static=unknown ;;
  941. esac
  942. fi
  943. ])# AC_LIBTOOL_DLOPEN_SELF
  944. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  945. # ---------------------------------
  946. # Check to see if options -c and -o are simultaneously supported by compiler
  947. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  948. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  949. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  950. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  951. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  952. $rm -r conftest 2>/dev/null
  953. mkdir conftest
  954. cd conftest
  955. mkdir out
  956. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  957. lt_compiler_flag="-o out/conftest2.$ac_objext"
  958. # Insert the option either (1) after the last *FLAGS variable, or
  959. # (2) before a word containing "conftest.", or (3) at the end.
  960. # Note that $ac_compile itself does not contain backslashes and begins
  961. # with a dollar sign (not a hyphen), so the echo should work correctly.
  962. lt_compile=`echo "$ac_compile" | $SED \
  963. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  964. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  965. -e 's:$: $lt_compiler_flag:'`
  966. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  967. (eval "$lt_compile" 2>out/conftest.err)
  968. ac_status=$?
  969. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  970. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  971. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  972. then
  973. # The compiler can only warn and ignore the option if not recognized
  974. # So say no if there are warnings
  975. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  976. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  977. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  978. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  979. fi
  980. fi
  981. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  982. $rm conftest*
  983. # SGI C++ compiler will create directory out/ii_files/ for
  984. # template instantiation
  985. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  986. $rm out/* && rmdir out
  987. cd ..
  988. rmdir conftest
  989. $rm conftest*
  990. ])
  991. ])# AC_LIBTOOL_PROG_CC_C_O
  992. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  993. # -----------------------------------------
  994. # Check to see if we can do hard links to lock some files if needed
  995. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  996. [AC_REQUIRE([_LT_AC_LOCK])dnl
  997. hard_links="nottested"
  998. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  999. # do not overwrite the value of need_locks provided by the user
  1000. AC_MSG_CHECKING([if we can lock with hard links])
  1001. hard_links=yes
  1002. $rm conftest*
  1003. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1004. touch conftest.a
  1005. ln conftest.a conftest.b 2>&5 || hard_links=no
  1006. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1007. AC_MSG_RESULT([$hard_links])
  1008. if test "$hard_links" = no; then
  1009. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1010. need_locks=warn
  1011. fi
  1012. else
  1013. need_locks=no
  1014. fi
  1015. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1016. # AC_LIBTOOL_OBJDIR
  1017. # -----------------
  1018. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1019. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1020. [rm -f .libs 2>/dev/null
  1021. mkdir .libs 2>/dev/null
  1022. if test -d .libs; then
  1023. lt_cv_objdir=.libs
  1024. else
  1025. # MS-DOS does not allow filenames that begin with a dot.
  1026. lt_cv_objdir=_libs
  1027. fi
  1028. rmdir .libs 2>/dev/null])
  1029. objdir=$lt_cv_objdir
  1030. ])# AC_LIBTOOL_OBJDIR
  1031. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1032. # ----------------------------------------------
  1033. # Check hardcoding attributes.
  1034. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1035. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1036. _LT_AC_TAGVAR(hardcode_action, $1)=
  1037. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1038. test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1039. test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1040. # We can hardcode non-existant directories.
  1041. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1042. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1043. # have to relink, otherwise we might link with an installed library
  1044. # when we should be linking with a yet-to-be-installed one
  1045. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1046. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1047. # Linking always hardcodes the temporary library directory.
  1048. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1049. else
  1050. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1051. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1052. fi
  1053. else
  1054. # We cannot hardcode anything, or else we can only hardcode existing
  1055. # directories.
  1056. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1057. fi
  1058. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1059. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1060. # Fast installation is not supported
  1061. enable_fast_install=no
  1062. elif test "$shlibpath_overrides_runpath" = yes ||
  1063. test "$enable_shared" = no; then
  1064. # Fast installation is not necessary
  1065. enable_fast_install=needless
  1066. fi
  1067. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1068. # AC_LIBTOOL_SYS_LIB_STRIP
  1069. # ------------------------
  1070. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1071. [striplib=
  1072. old_striplib=
  1073. AC_MSG_CHECKING([whether stripping libraries is possible])
  1074. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1075. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1076. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1077. AC_MSG_RESULT([yes])
  1078. else
  1079. # FIXME - insert some real tests, host_os isn't really good enough
  1080. case $host_os in
  1081. darwin*)
  1082. if test -n "$STRIP" ; then
  1083. striplib="$STRIP -x"
  1084. AC_MSG_RESULT([yes])
  1085. else
  1086. AC_MSG_RESULT([no])
  1087. fi
  1088. ;;
  1089. *)
  1090. AC_MSG_RESULT([no])
  1091. ;;
  1092. esac
  1093. fi
  1094. ])# AC_LIBTOOL_SYS_LIB_STRIP
  1095. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1096. # -----------------------------
  1097. # PORTME Fill in your ld.so characteristics
  1098. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1099. [AC_MSG_CHECKING([dynamic linker characteristics])
  1100. library_names_spec=
  1101. libname_spec='lib$name'
  1102. soname_spec=
  1103. shrext_cmds=".so"
  1104. postinstall_cmds=
  1105. postuninstall_cmds=
  1106. finish_cmds=
  1107. finish_eval=
  1108. shlibpath_var=
  1109. shlibpath_overrides_runpath=unknown
  1110. version_type=none
  1111. dynamic_linker="$host_os ld.so"
  1112. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1113. if test "$GCC" = yes; then
  1114. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1115. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1116. # if the path contains ";" then we assume it to be the separator
  1117. # otherwise default to the standard path separator (i.e. ":") - it is
  1118. # assumed that no part of a normal pathname contains ";" but that should
  1119. # okay in the real world where ";" in dirpaths is itself problematic.
  1120. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1121. else
  1122. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1123. fi
  1124. else
  1125. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1126. fi
  1127. need_lib_prefix=unknown
  1128. hardcode_into_libs=no
  1129. # when you set need_version to no, make sure it does not cause -set_version
  1130. # flags to be left without arguments
  1131. need_version=unknown
  1132. case $host_os in
  1133. aix3*)
  1134. version_type=linux
  1135. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1136. shlibpath_var=LIBPATH
  1137. # AIX 3 has no versioning support, so we append a major version to the name.
  1138. soname_spec='${libname}${release}${shared_ext}$major'
  1139. ;;
  1140. aix4* | aix5*)
  1141. version_type=linux
  1142. need_lib_prefix=no
  1143. need_version=no
  1144. hardcode_into_libs=yes
  1145. if test "$host_cpu" = ia64; then
  1146. # AIX 5 supports IA64
  1147. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1148. shlibpath_var=LD_LIBRARY_PATH
  1149. else
  1150. # With GCC up to 2.95.x, collect2 would create an import file
  1151. # for dependence libraries. The import file would start with
  1152. # the line `#! .'. This would cause the generated library to
  1153. # depend on `.', always an invalid library. This was fixed in
  1154. # development snapshots of GCC prior to 3.0.
  1155. case $host_os in
  1156. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1157. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1158. echo ' yes '
  1159. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1160. :
  1161. else
  1162. can_build_shared=no
  1163. fi
  1164. ;;
  1165. esac
  1166. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1167. # soname into executable. Probably we can add versioning support to
  1168. # collect2, so additional links can be useful in future.
  1169. if test "$aix_use_runtimelinking" = yes; then
  1170. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1171. # instead of lib<name>.a to let people know that these are not
  1172. # typical AIX shared libraries.
  1173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1174. else
  1175. # We preserve .a as extension for shared libraries through AIX4.2
  1176. # and later when we are not doing run time linking.
  1177. library_names_spec='${libname}${release}.a $libname.a'
  1178. soname_spec='${libname}${release}${shared_ext}$major'
  1179. fi
  1180. shlibpath_var=LIBPATH
  1181. fi
  1182. ;;
  1183. amigaos*)
  1184. library_names_spec='$libname.ixlibrary $libname.a'
  1185. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1186. 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'
  1187. ;;
  1188. beos*)
  1189. library_names_spec='${libname}${shared_ext}'
  1190. dynamic_linker="$host_os ld.so"
  1191. shlibpath_var=LIBRARY_PATH
  1192. ;;
  1193. bsdi[[45]]*)
  1194. version_type=linux
  1195. need_version=no
  1196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1197. soname_spec='${libname}${release}${shared_ext}$major'
  1198. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1199. shlibpath_var=LD_LIBRARY_PATH
  1200. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1201. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1202. # the default ld.so.conf also contains /usr/contrib/lib and
  1203. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1204. # libtool to hard-code these into programs
  1205. ;;
  1206. cygwin* | mingw* | pw32*)
  1207. version_type=windows
  1208. shrext_cmds=".dll"
  1209. need_version=no
  1210. need_lib_prefix=no
  1211. case $GCC,$host_os in
  1212. yes,cygwin* | yes,mingw* | yes,pw32*)
  1213. library_names_spec='$libname.dll.a'
  1214. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1215. postinstall_cmds='base_file=`basename \${file}`~
  1216. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1217. dldir=$destdir/`dirname \$dlpath`~
  1218. test -d \$dldir || mkdir -p \$dldir~
  1219. $install_prog $dir/$dlname \$dldir/$dlname~
  1220. chmod a+x \$dldir/$dlname'
  1221. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1222. dlpath=$dir/\$dldll~
  1223. $rm \$dlpath'
  1224. shlibpath_overrides_runpath=yes
  1225. case $host_os in
  1226. cygwin*)
  1227. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1228. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1229. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1230. ;;
  1231. mingw*)
  1232. # MinGW DLLs use traditional 'lib' prefix
  1233. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1234. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1235. if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1236. # It is most probably a Windows format PATH printed by
  1237. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1238. # path with ; separators, and with drive letters. We can handle the
  1239. # drive letters (cygwin fileutils understands them), so leave them,
  1240. # especially as we might pass files found there to a mingw objdump,
  1241. # which wouldn't understand a cygwinified path. Ahh.
  1242. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1243. else
  1244. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1245. fi
  1246. ;;
  1247. pw32*)
  1248. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1249. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1250. ;;
  1251. esac
  1252. ;;
  1253. linux*)
  1254. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1255. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1256. supports_anon_versioning=no
  1257. case `$LD -v 2>/dev/null` in
  1258. *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1259. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1260. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1261. *\ 2.11.*) ;; # other 2.11 versions
  1262. *) supports_anon_versioning=yes ;;
  1263. esac
  1264. if test $supports_anon_versioning = yes; then
  1265. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  1266. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1267. $echo "local: *; };" >> $output_objdir/$libname.ver~
  1268. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1269. else
  1270. $archive_expsym_cmds="$archive_cmds"
  1271. fi
  1272. else
  1273. ld_shlibs=no
  1274. fi
  1275. ;;
  1276. *)
  1277. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1278. ;;
  1279. esac
  1280. dynamic_linker='Win32 ld.exe'
  1281. # FIXME: first we should search . and the directory the executable is in
  1282. shlibpath_var=PATH
  1283. ;;
  1284. darwin* | rhapsody*)
  1285. dynamic_linker="$host_os dyld"
  1286. version_type=darwin
  1287. need_lib_prefix=no
  1288. need_version=no
  1289. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1290. soname_spec='${libname}${release}${major}$shared_ext'
  1291. shlibpath_overrides_runpath=yes
  1292. shlibpath_var=DYLD_LIBRARY_PATH
  1293. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1294. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1295. if test "$GCC" = yes; then
  1296. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  1297. else
  1298. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1299. fi
  1300. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1301. ;;
  1302. dgux*)
  1303. version_type=linux
  1304. need_lib_prefix=no
  1305. need_version=no
  1306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1307. soname_spec='${libname}${release}${shared_ext}$major'
  1308. shlibpath_var=LD_LIBRARY_PATH
  1309. ;;
  1310. freebsd1*)
  1311. dynamic_linker=no
  1312. ;;
  1313. kfreebsd*-gnu)
  1314. version_type=linux
  1315. need_lib_prefix=no
  1316. need_version=no
  1317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1318. soname_spec='${libname}${release}${shared_ext}$major'
  1319. shlibpath_var=LD_LIBRARY_PATH
  1320. shlibpath_overrides_runpath=no
  1321. hardcode_into_libs=yes
  1322. dynamic_linker='GNU ld.so'
  1323. ;;
  1324. freebsd* | dragonfly*)
  1325. # DragonFly does not have aout. When/if they implement a new
  1326. # versioning mechanism, adjust this.
  1327. if test -x /usr/bin/objformat; then
  1328. objformat=`/usr/bin/objformat`
  1329. else
  1330. case $host_os in
  1331. freebsd[[123]]*) objformat=aout ;;
  1332. *) objformat=elf ;;
  1333. esac
  1334. fi
  1335. # Handle Gentoo/FreeBSD as it was Linux
  1336. case $host_vendor in
  1337. gentoo)
  1338. version_type=linux ;;
  1339. *)
  1340. version_type=freebsd-$objformat ;;
  1341. esac
  1342. case $version_type in
  1343. freebsd-elf*)
  1344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1345. need_version=no
  1346. need_lib_prefix=no
  1347. ;;
  1348. freebsd-*)
  1349. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1350. need_version=yes
  1351. ;;
  1352. linux)
  1353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1354. soname_spec='${libname}${release}${shared_ext}$major'
  1355. need_lib_prefix=no
  1356. need_version=no
  1357. ;;
  1358. esac
  1359. shlibpath_var=LD_LIBRARY_PATH
  1360. case $host_os in
  1361. freebsd2*)
  1362. shlibpath_overrides_runpath=yes
  1363. ;;
  1364. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1365. shlibpath_overrides_runpath=yes
  1366. hardcode_into_libs=yes
  1367. ;;
  1368. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1369. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1370. shlibpath_overrides_runpath=no
  1371. hardcode_into_libs=yes
  1372. ;;
  1373. freebsd*) # from 4.6 on
  1374. shlibpath_overrides_runpath=yes
  1375. hardcode_into_libs=yes
  1376. ;;
  1377. esac
  1378. ;;
  1379. gnu*)
  1380. version_type=linux
  1381. need_lib_prefix=no
  1382. need_version=no
  1383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1384. soname_spec='${libname}${release}${shared_ext}$major'
  1385. shlibpath_var=LD_LIBRARY_PATH
  1386. hardcode_into_libs=yes
  1387. ;;
  1388. hpux9* | hpux10* | hpux11*)
  1389. # Give a soname corresponding to the major version so that dld.sl refuses to
  1390. # link against other versions.
  1391. version_type=sunos
  1392. need_lib_prefix=no
  1393. need_version=no
  1394. case $host_cpu in
  1395. ia64*)
  1396. shrext_cmds='.so'
  1397. hardcode_into_libs=yes
  1398. dynamic_linker="$host_os dld.so"
  1399. shlibpath_var=LD_LIBRARY_PATH
  1400. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1402. soname_spec='${libname}${release}${shared_ext}$major'
  1403. if test "X$HPUX_IA64_MODE" = X32; then
  1404. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1405. else
  1406. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1407. fi
  1408. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1409. ;;
  1410. hppa*64*)
  1411. shrext_cmds='.sl'
  1412. hardcode_into_libs=yes
  1413. dynamic_linker="$host_os dld.sl"
  1414. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1415. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1417. soname_spec='${libname}${release}${shared_ext}$major'
  1418. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1419. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1420. ;;
  1421. *)
  1422. shrext_cmds='.sl'
  1423. dynamic_linker="$host_os dld.sl"
  1424. shlibpath_var=SHLIB_PATH
  1425. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1427. soname_spec='${libname}${release}${shared_ext}$major'
  1428. ;;
  1429. esac
  1430. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1431. postinstall_cmds='chmod 555 $lib'
  1432. ;;
  1433. interix3*)
  1434. version_type=linux
  1435. need_lib_prefix=no
  1436. need_version=no
  1437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1438. soname_spec='${libname}${release}${shared_ext}$major'
  1439. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1440. shlibpath_var=LD_LIBRARY_PATH
  1441. shlibpath_overrides_runpath=no
  1442. hardcode_into_libs=yes
  1443. ;;
  1444. irix5* | irix6* | nonstopux*)
  1445. case $host_os in
  1446. nonstopux*) version_type=nonstopux ;;
  1447. *)
  1448. if test "$lt_cv_prog_gnu_ld" = yes; then
  1449. version_type=linux
  1450. else
  1451. version_type=irix
  1452. fi ;;
  1453. esac
  1454. need_lib_prefix=no
  1455. need_version=no
  1456. soname_spec='${libname}${release}${shared_ext}$major'
  1457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1458. case $host_os in
  1459. irix5* | nonstopux*)
  1460. libsuff= shlibsuff=
  1461. ;;
  1462. *)
  1463. case $LD in # libtool.m4 will add one of these switches to LD
  1464. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1465. libsuff= shlibsuff= libmagic=32-bit;;
  1466. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1467. libsuff=32 shlibsuff=N32 libmagic=N32;;
  1468. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1469. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1470. *) libsuff= shlibsuff= libmagic=never-match;;
  1471. esac
  1472. ;;
  1473. esac
  1474. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1475. shlibpath_overrides_runpath=no
  1476. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1477. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1478. hardcode_into_libs=yes
  1479. ;;
  1480. # No shared lib support for Linux oldld, aout, or coff.
  1481. linux*oldld* | linux*aout* | linux*coff*)
  1482. dynamic_linker=no
  1483. ;;
  1484. # This must be Linux ELF.
  1485. linux*)
  1486. version_type=linux
  1487. need_lib_prefix=no
  1488. need_version=no
  1489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1490. soname_spec='${libname}${release}${shared_ext}$major'
  1491. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1492. shlibpath_var=LD_LIBRARY_PATH
  1493. shlibpath_overrides_runpath=no
  1494. # This implies no fast_install, which is unacceptable.
  1495. # Some rework will be needed to allow for fast_install
  1496. # before this can be enabled.
  1497. hardcode_into_libs=yes
  1498. # Append ld.so.conf contents to the search path
  1499. if test -f /etc/ld.so.conf; then
  1500. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1501. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1502. fi
  1503. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1504. # powerpc, because MkLinux only supported shared libraries with the
  1505. # GNU dynamic linker. Since this was broken with cross compilers,
  1506. # most powerpc-linux boxes support dynamic linking these days and
  1507. # people can always --disable-shared, the test was removed, and we
  1508. # assume the GNU/Linux dynamic linker is in use.
  1509. dynamic_linker='GNU/Linux ld.so'
  1510. ;;
  1511. knetbsd*-gnu)
  1512. version_type=linux
  1513. need_lib_prefix=no
  1514. need_version=no
  1515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1516. soname_spec='${libname}${release}${shared_ext}$major'
  1517. shlibpath_var=LD_LIBRARY_PATH
  1518. shlibpath_overrides_runpath=no
  1519. hardcode_into_libs=yes
  1520. dynamic_linker='GNU ld.so'
  1521. ;;
  1522. netbsd*)
  1523. version_type=sunos
  1524. need_lib_prefix=no
  1525. need_version=no
  1526. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1528. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1529. dynamic_linker='NetBSD (a.out) ld.so'
  1530. else
  1531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1532. soname_spec='${libname}${release}${shared_ext}$major'
  1533. dynamic_linker='NetBSD ld.elf_so'
  1534. fi
  1535. shlibpath_var=LD_LIBRARY_PATH
  1536. shlibpath_overrides_runpath=yes
  1537. hardcode_into_libs=yes
  1538. ;;
  1539. newsos6)
  1540. version_type=linux
  1541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1542. shlibpath_var=LD_LIBRARY_PATH
  1543. shlibpath_overrides_runpath=yes
  1544. ;;
  1545. nto-qnx*)
  1546. version_type=linux
  1547. need_lib_prefix=no
  1548. need_version=no
  1549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1550. soname_spec='${libname}${release}${shared_ext}$major'
  1551. shlibpath_var=LD_LIBRARY_PATH
  1552. shlibpath_overrides_runpath=yes
  1553. ;;
  1554. openbsd*)
  1555. version_type=sunos
  1556. sys_lib_dlsearch_path_spec="/usr/lib"
  1557. need_lib_prefix=no
  1558. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1559. case $host_os in
  1560. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1561. *) need_version=no ;;
  1562. esac
  1563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1564. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1565. shlibpath_var=LD_LIBRARY_PATH
  1566. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1567. case $host_os in
  1568. openbsd2.[[89]] | openbsd2.[[89]].*)
  1569. shlibpath_overrides_runpath=no
  1570. ;;
  1571. *)
  1572. shlibpath_overrides_runpath=yes
  1573. ;;
  1574. esac
  1575. else
  1576. shlibpath_overrides_runpath=yes
  1577. fi
  1578. ;;
  1579. os2*)
  1580. libname_spec='$name'
  1581. shrext_cmds=".dll"
  1582. need_lib_prefix=no
  1583. library_names_spec='$libname${shared_ext} $libname.a'
  1584. dynamic_linker='OS/2 ld.exe'
  1585. shlibpath_var=LIBPATH
  1586. ;;
  1587. osf3* | osf4* | osf5*)
  1588. version_type=osf
  1589. need_lib_prefix=no
  1590. need_version=no
  1591. soname_spec='${libname}${release}${shared_ext}$major'
  1592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1593. shlibpath_var=LD_LIBRARY_PATH
  1594. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1595. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1596. ;;
  1597. solaris*)
  1598. version_type=linux
  1599. need_lib_prefix=no
  1600. need_version=no
  1601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1602. soname_spec='${libname}${release}${shared_ext}$major'
  1603. shlibpath_var=LD_LIBRARY_PATH
  1604. shlibpath_overrides_runpath=yes
  1605. hardcode_into_libs=yes
  1606. # ldd complains unless libraries are executable
  1607. postinstall_cmds='chmod +x $lib'
  1608. ;;
  1609. sunos4*)
  1610. version_type=sunos
  1611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1612. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1613. shlibpath_var=LD_LIBRARY_PATH
  1614. shlibpath_overrides_runpath=yes
  1615. if test "$with_gnu_ld" = yes; then
  1616. need_lib_prefix=no
  1617. fi
  1618. need_version=yes
  1619. ;;
  1620. sysv4 | sysv4.3*)
  1621. version_type=linux
  1622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1623. soname_spec='${libname}${release}${shared_ext}$major'
  1624. shlibpath_var=LD_LIBRARY_PATH
  1625. case $host_vendor in
  1626. sni)
  1627. shlibpath_overrides_runpath=no
  1628. need_lib_prefix=no
  1629. export_dynamic_flag_spec='${wl}-Blargedynsym'
  1630. runpath_var=LD_RUN_PATH
  1631. ;;
  1632. siemens)
  1633. need_lib_prefix=no
  1634. ;;
  1635. motorola)
  1636. need_lib_prefix=no
  1637. need_version=no
  1638. shlibpath_overrides_runpath=no
  1639. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1640. ;;
  1641. esac
  1642. ;;
  1643. sysv4*MP*)
  1644. if test -d /usr/nec ;then
  1645. version_type=linux
  1646. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1647. soname_spec='$libname${shared_ext}.$major'
  1648. shlibpath_var=LD_LIBRARY_PATH
  1649. fi
  1650. ;;
  1651. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1652. version_type=freebsd-elf
  1653. need_lib_prefix=no
  1654. need_version=no
  1655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1656. soname_spec='${libname}${release}${shared_ext}$major'
  1657. shlibpath_var=LD_LIBRARY_PATH
  1658. hardcode_into_libs=yes
  1659. if test "$with_gnu_ld" = yes; then
  1660. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1661. shlibpath_overrides_runpath=no
  1662. else
  1663. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1664. shlibpath_overrides_runpath=yes
  1665. case $host_os in
  1666. sco3.2v5*)
  1667. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1668. ;;
  1669. esac
  1670. fi
  1671. sys_lib_dlsearch_path_spec='/usr/lib'
  1672. ;;
  1673. uts4*)
  1674. version_type=linux
  1675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1676. soname_spec='${libname}${release}${shared_ext}$major'
  1677. shlibpath_var=LD_LIBRARY_PATH
  1678. ;;
  1679. *)
  1680. dynamic_linker=no
  1681. ;;
  1682. esac
  1683. AC_MSG_RESULT([$dynamic_linker])
  1684. test "$dynamic_linker" = no && can_build_shared=no
  1685. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1686. if test "$GCC" = yes; then
  1687. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1688. fi
  1689. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1690. # _LT_AC_TAGCONFIG
  1691. # ----------------
  1692. AC_DEFUN([_LT_AC_TAGCONFIG],
  1693. [AC_ARG_WITH([tags],
  1694. [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1695. [include additional configurations @<:@automatic@:>@])],
  1696. [tagnames="$withval"])
  1697. if test -f "$ltmain" && test -n "$tagnames"; then
  1698. if test ! -f "${ofile}"; then
  1699. AC_MSG_WARN([output file `$ofile' does not exist])
  1700. fi
  1701. if test -z "$LTCC"; then
  1702. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1703. if test -z "$LTCC"; then
  1704. AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1705. else
  1706. AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1707. fi
  1708. fi
  1709. if test -z "$LTCFLAGS"; then
  1710. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1711. fi
  1712. # Extract list of available tagged configurations in $ofile.
  1713. # Note that this assumes the entire list is on one line.
  1714. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1715. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1716. for tagname in $tagnames; do
  1717. IFS="$lt_save_ifs"
  1718. # Check whether tagname contains only valid characters
  1719. case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1720. "") ;;
  1721. *) AC_MSG_ERROR([invalid tag name: $tagname])
  1722. ;;
  1723. esac
  1724. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1725. then
  1726. AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1727. fi
  1728. # Update the list of available tags.
  1729. if test -n "$tagname"; then
  1730. echo appending configuration tag \"$tagname\" to $ofile
  1731. case $tagname in
  1732. CXX)
  1733. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1734. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1735. (test "X$CXX" != "Xg++"))) ; then
  1736. AC_LIBTOOL_LANG_CXX_CONFIG
  1737. else
  1738. tagname=""
  1739. fi
  1740. ;;
  1741. F77)
  1742. if test -n "$F77" && test "X$F77" != "Xno"; then
  1743. AC_LIBTOOL_LANG_F77_CONFIG
  1744. else
  1745. tagname=""
  1746. fi
  1747. ;;
  1748. GCJ)
  1749. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1750. AC_LIBTOOL_LANG_GCJ_CONFIG
  1751. else
  1752. tagname=""
  1753. fi
  1754. ;;
  1755. RC)
  1756. AC_LIBTOOL_LANG_RC_CONFIG
  1757. ;;
  1758. *)
  1759. AC_MSG_ERROR([Unsupported tag name: $tagname])
  1760. ;;
  1761. esac
  1762. # Append the new tag name to the list of available tags.
  1763. if test -n "$tagname" ; then
  1764. available_tags="$available_tags $tagname"
  1765. fi
  1766. fi
  1767. done
  1768. IFS="$lt_save_ifs"
  1769. # Now substitute the updated list of available tags.
  1770. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1771. mv "${ofile}T" "$ofile"
  1772. chmod +x "$ofile"
  1773. else
  1774. rm -f "${ofile}T"
  1775. AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1776. fi
  1777. fi
  1778. ])# _LT_AC_TAGCONFIG
  1779. # AC_LIBTOOL_DLOPEN
  1780. # -----------------
  1781. # enable checks for dlopen support
  1782. AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1783. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1784. ])# AC_LIBTOOL_DLOPEN
  1785. # AC_LIBTOOL_WIN32_DLL
  1786. # --------------------
  1787. # declare package support for building win32 DLLs
  1788. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1789. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1790. ])# AC_LIBTOOL_WIN32_DLL
  1791. # AC_ENABLE_SHARED([DEFAULT])
  1792. # ---------------------------
  1793. # implement the --enable-shared flag
  1794. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1795. AC_DEFUN([AC_ENABLE_SHARED],
  1796. [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1797. AC_ARG_ENABLE([shared],
  1798. [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1799. [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1800. [p=${PACKAGE-default}
  1801. case $enableval in
  1802. yes) enable_shared=yes ;;
  1803. no) enable_shared=no ;;
  1804. *)
  1805. enable_shared=no
  1806. # Look at the argument we got. We use all the common list separators.
  1807. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1808. for pkg in $enableval; do
  1809. IFS="$lt_save_ifs"
  1810. if test "X$pkg" = "X$p"; then
  1811. enable_shared=yes
  1812. fi
  1813. done
  1814. IFS="$lt_save_ifs"
  1815. ;;
  1816. esac],
  1817. [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1818. ])# AC_ENABLE_SHARED
  1819. # AC_DISABLE_SHARED
  1820. # -----------------
  1821. # set the default shared flag to --disable-shared
  1822. AC_DEFUN([AC_DISABLE_SHARED],
  1823. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1824. AC_ENABLE_SHARED(no)
  1825. ])# AC_DISABLE_SHARED
  1826. # AC_ENABLE_STATIC([DEFAULT])
  1827. # ---------------------------
  1828. # implement the --enable-static flag
  1829. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1830. AC_DEFUN([AC_ENABLE_STATIC],
  1831. [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1832. AC_ARG_ENABLE([static],
  1833. [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1834. [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1835. [p=${PACKAGE-default}
  1836. case $enableval in
  1837. yes) enable_static=yes ;;
  1838. no) enable_static=no ;;
  1839. *)
  1840. enable_static=no
  1841. # Look at the argument we got. We use all the common list separators.
  1842. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1843. for pkg in $enableval; do
  1844. IFS="$lt_save_ifs"
  1845. if test "X$pkg" = "X$p"; then
  1846. enable_static=yes
  1847. fi
  1848. done
  1849. IFS="$lt_save_ifs"
  1850. ;;
  1851. esac],
  1852. [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1853. ])# AC_ENABLE_STATIC
  1854. # AC_DISABLE_STATIC
  1855. # -----------------
  1856. # set the default static flag to --disable-static
  1857. AC_DEFUN([AC_DISABLE_STATIC],
  1858. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1859. AC_ENABLE_STATIC(no)
  1860. ])# AC_DISABLE_STATIC
  1861. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1862. # ---------------------------------
  1863. # implement the --enable-fast-install flag
  1864. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1865. AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1866. [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1867. AC_ARG_ENABLE([fast-install],
  1868. [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  1869. [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  1870. [p=${PACKAGE-default}
  1871. case $enableval in
  1872. yes) enable_fast_install=yes ;;
  1873. no) enable_fast_install=no ;;
  1874. *)
  1875. enable_fast_install=no
  1876. # Look at the argument we got. We use all the common list separators.
  1877. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1878. for pkg in $enableval; do
  1879. IFS="$lt_save_ifs"
  1880. if test "X$pkg" = "X$p"; then
  1881. enable_fast_install=yes
  1882. fi
  1883. done
  1884. IFS="$lt_save_ifs"
  1885. ;;
  1886. esac],
  1887. [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1888. ])# AC_ENABLE_FAST_INSTALL
  1889. # AC_DISABLE_FAST_INSTALL
  1890. # -----------------------
  1891. # set the default to --disable-fast-install
  1892. AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1893. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1894. AC_ENABLE_FAST_INSTALL(no)
  1895. ])# AC_DISABLE_FAST_INSTALL
  1896. # AC_LIBTOOL_PICMODE([MODE])
  1897. # --------------------------
  1898. # implement the --with-pic flag
  1899. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  1900. AC_DEFUN([AC_LIBTOOL_PICMODE],
  1901. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1902. pic_mode=ifelse($#,1,$1,default)
  1903. ])# AC_LIBTOOL_PICMODE
  1904. # AC_PROG_EGREP
  1905. # -------------
  1906. # This is predefined starting with Autoconf 2.54, so this conditional
  1907. # definition can be removed once we require Autoconf 2.54 or later.
  1908. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  1909. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1910. [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1911. then ac_cv_prog_egrep='grep -E'
  1912. else ac_cv_prog_egrep='egrep'
  1913. fi])
  1914. EGREP=$ac_cv_prog_egrep
  1915. AC_SUBST([EGREP])
  1916. ])])
  1917. # AC_PATH_TOOL_PREFIX
  1918. # -------------------
  1919. # find a file program which can recognise shared library
  1920. AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1921. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1922. AC_MSG_CHECKING([for $1])
  1923. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1924. [case $MAGIC_CMD in
  1925. [[\\/*] | ?:[\\/]*])
  1926. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1927. ;;
  1928. *)
  1929. lt_save_MAGIC_CMD="$MAGIC_CMD"
  1930. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1931. dnl $ac_dummy forces splitting on constant user-supplied paths.
  1932. dnl POSIX.2 word splitting is done only on the output of word expansions,
  1933. dnl not every word. This closes a longstanding sh security hole.
  1934. ac_dummy="ifelse([$2], , $PATH, [$2])"
  1935. for ac_dir in $ac_dummy; do
  1936. IFS="$lt_save_ifs"
  1937. test -z "$ac_dir" && ac_dir=.
  1938. if test -f $ac_dir/$1; then
  1939. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1940. if test -n "$file_magic_test_file"; then
  1941. case $deplibs_check_method in
  1942. "file_magic "*)
  1943. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  1944. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1945. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1946. $EGREP "$file_magic_regex" > /dev/null; then
  1947. :
  1948. else
  1949. cat <<EOF 1>&2
  1950. *** Warning: the command libtool uses to detect shared libraries,
  1951. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1952. *** The result is that libtool may fail to recognize shared libraries
  1953. *** as such. This will affect the creation of libtool libraries that
  1954. *** depend on shared libraries, but programs linked with such libtool
  1955. *** libraries will work regardless of this problem. Nevertheless, you
  1956. *** may want to report the problem to your system manager and/or to
  1957. *** bug-libtool@gnu.org
  1958. EOF
  1959. fi ;;
  1960. esac
  1961. fi
  1962. break
  1963. fi
  1964. done
  1965. IFS="$lt_save_ifs"
  1966. MAGIC_CMD="$lt_save_MAGIC_CMD"
  1967. ;;
  1968. esac])
  1969. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1970. if test -n "$MAGIC_CMD"; then
  1971. AC_MSG_RESULT($MAGIC_CMD)
  1972. else
  1973. AC_MSG_RESULT(no)
  1974. fi
  1975. ])# AC_PATH_TOOL_PREFIX
  1976. # AC_PATH_MAGIC
  1977. # -------------
  1978. # find a file program which can recognise a shared library
  1979. AC_DEFUN([AC_PATH_MAGIC],
  1980. [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1981. if test -z "$lt_cv_path_MAGIC_CMD"; then
  1982. if test -n "$ac_tool_prefix"; then
  1983. AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1984. else
  1985. MAGIC_CMD=:
  1986. fi
  1987. fi
  1988. ])# AC_PATH_MAGIC
  1989. # AC_PROG_LD
  1990. # ----------
  1991. # find the pathname to the GNU or non-GNU linker
  1992. AC_DEFUN([AC_PROG_LD],
  1993. [AC_ARG_WITH([gnu-ld],
  1994. [AC_HELP_STRING([--with-gnu-ld],
  1995. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  1996. [test "$withval" = no || with_gnu_ld=yes],
  1997. [with_gnu_ld=no])
  1998. AC_REQUIRE([LT_AC_PROG_SED])dnl
  1999. AC_REQUIRE([AC_PROG_CC])dnl
  2000. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2001. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2002. ac_prog=ld
  2003. if test "$GCC" = yes; then
  2004. # Check if gcc -print-prog-name=ld gives a path.
  2005. AC_MSG_CHECKING([for ld used by $CC])
  2006. case $host in
  2007. *-*-mingw*)
  2008. # gcc leaves a trailing carriage return which upsets mingw
  2009. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2010. *)
  2011. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2012. esac
  2013. case $ac_prog in
  2014. # Accept absolute paths.
  2015. [[\\/]]* | ?:[[\\/]]*)
  2016. re_direlt='/[[^/]][[^/]]*/\.\./'
  2017. # Canonicalize the pathname of ld
  2018. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2019. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2020. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2021. done
  2022. test -z "$LD" && LD="$ac_prog"
  2023. ;;
  2024. "")
  2025. # If it fails, then pretend we aren't using GCC.
  2026. ac_prog=ld
  2027. ;;
  2028. *)
  2029. # If it is relative, then search for the first ld in PATH.
  2030. with_gnu_ld=unknown
  2031. ;;
  2032. esac
  2033. elif test "$with_gnu_ld" = yes; then
  2034. AC_MSG_CHECKING([for GNU ld])
  2035. else
  2036. AC_MSG_CHECKING([for non-GNU ld])
  2037. fi
  2038. AC_CACHE_VAL(lt_cv_path_LD,
  2039. [if test -z "$LD"; then
  2040. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2041. for ac_dir in $PATH; do
  2042. IFS="$lt_save_ifs"
  2043. test -z "$ac_dir" && ac_dir=.
  2044. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2045. lt_cv_path_LD="$ac_dir/$ac_prog"
  2046. # Check to see if the program is GNU ld. I'd rather use --version,
  2047. # but apparently some variants of GNU ld only accept -v.
  2048. # Break only if it was the GNU/non-GNU ld that we prefer.
  2049. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2050. *GNU* | *'with BFD'*)
  2051. test "$with_gnu_ld" != no && break
  2052. ;;
  2053. *)
  2054. test "$with_gnu_ld" != yes && break
  2055. ;;
  2056. esac
  2057. fi
  2058. done
  2059. IFS="$lt_save_ifs"
  2060. else
  2061. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2062. fi])
  2063. LD="$lt_cv_path_LD"
  2064. if test -n "$LD"; then
  2065. AC_MSG_RESULT($LD)
  2066. else
  2067. AC_MSG_RESULT(no)
  2068. fi
  2069. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2070. AC_PROG_LD_GNU
  2071. ])# AC_PROG_LD
  2072. # AC_PROG_LD_GNU
  2073. # --------------
  2074. AC_DEFUN([AC_PROG_LD_GNU],
  2075. [AC_REQUIRE([AC_PROG_EGREP])dnl
  2076. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2077. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2078. case `$LD -v 2>&1 </dev/null` in
  2079. *GNU* | *'with BFD'*)
  2080. lt_cv_prog_gnu_ld=yes
  2081. ;;
  2082. *)
  2083. lt_cv_prog_gnu_ld=no
  2084. ;;
  2085. esac])
  2086. with_gnu_ld=$lt_cv_prog_gnu_ld
  2087. ])# AC_PROG_LD_GNU
  2088. # AC_PROG_LD_RELOAD_FLAG
  2089. # ----------------------
  2090. # find reload flag for linker
  2091. # -- PORTME Some linkers may need a different reload flag.
  2092. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2093. [AC_CACHE_CHECK([for $LD option to reload object files],
  2094. lt_cv_ld_reload_flag,
  2095. [lt_cv_ld_reload_flag='-r'])
  2096. reload_flag=$lt_cv_ld_reload_flag
  2097. case $reload_flag in
  2098. "" | " "*) ;;
  2099. *) reload_flag=" $reload_flag" ;;
  2100. esac
  2101. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2102. case $host_os in
  2103. darwin*)
  2104. if test "$GCC" = yes; then
  2105. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2106. else
  2107. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2108. fi
  2109. ;;
  2110. esac
  2111. ])# AC_PROG_LD_RELOAD_FLAG
  2112. # AC_DEPLIBS_CHECK_METHOD
  2113. # -----------------------
  2114. # how to check for library dependencies
  2115. # -- PORTME fill in with the dynamic library characteristics
  2116. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2117. [AC_CACHE_CHECK([how to recognise dependent libraries],
  2118. lt_cv_deplibs_check_method,
  2119. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2120. lt_cv_file_magic_test_file=
  2121. lt_cv_deplibs_check_method='unknown'
  2122. # Need to set the preceding variable on all platforms that support
  2123. # interlibrary dependencies.
  2124. # 'none' -- dependencies not supported.
  2125. # `unknown' -- same as none, but documents that we really don't know.
  2126. # 'pass_all' -- all dependencies passed with no checks.
  2127. # 'test_compile' -- check by making test program.
  2128. # 'file_magic [[regex]]' -- check by looking for files in library path
  2129. # which responds to the $file_magic_cmd with a given extended regex.
  2130. # If you have `file' or equivalent on your system and you're not sure
  2131. # whether `pass_all' will *always* work, you probably want this one.
  2132. case $host_os in
  2133. aix4* | aix5*)
  2134. lt_cv_deplibs_check_method=pass_all
  2135. ;;
  2136. beos*)
  2137. lt_cv_deplibs_check_method=pass_all
  2138. ;;
  2139. bsdi[[45]]*)
  2140. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2141. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2142. lt_cv_file_magic_test_file=/shlib/libc.so
  2143. ;;
  2144. cygwin*)
  2145. # func_win32_libid is a shell function defined in ltmain.sh
  2146. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2147. lt_cv_file_magic_cmd='func_win32_libid'
  2148. ;;
  2149. mingw* | pw32*)
  2150. # Base MSYS/MinGW do not provide the 'file' command needed by
  2151. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2152. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2153. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2154. ;;
  2155. darwin* | rhapsody*)
  2156. lt_cv_deplibs_check_method=pass_all
  2157. ;;
  2158. freebsd* | kfreebsd*-gnu | dragonfly*)
  2159. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2160. case $host_cpu in
  2161. i*86 )
  2162. # Not sure whether the presence of OpenBSD here was a mistake.
  2163. # Let's accept both of them until this is cleared up.
  2164. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2165. lt_cv_file_magic_cmd=/usr/bin/file
  2166. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2167. ;;
  2168. esac
  2169. else
  2170. lt_cv_deplibs_check_method=pass_all
  2171. fi
  2172. ;;
  2173. gnu*)
  2174. lt_cv_deplibs_check_method=pass_all
  2175. ;;
  2176. hpux10.20* | hpux11*)
  2177. lt_cv_file_magic_cmd=/usr/bin/file
  2178. case $host_cpu in
  2179. ia64*)
  2180. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2181. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2182. ;;
  2183. hppa*64*)
  2184. [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]']
  2185. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2186. ;;
  2187. *)
  2188. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2189. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2190. ;;
  2191. esac
  2192. ;;
  2193. interix3*)
  2194. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2195. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2196. ;;
  2197. irix5* | irix6* | nonstopux*)
  2198. case $LD in
  2199. *-32|*"-32 ") libmagic=32-bit;;
  2200. *-n32|*"-n32 ") libmagic=N32;;
  2201. *-64|*"-64 ") libmagic=64-bit;;
  2202. *) libmagic=never-match;;
  2203. esac
  2204. lt_cv_deplibs_check_method=pass_all
  2205. ;;
  2206. # This must be Linux ELF.
  2207. linux*)
  2208. lt_cv_deplibs_check_method=pass_all
  2209. ;;
  2210. netbsd*)
  2211. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2212. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2213. else
  2214. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2215. fi
  2216. ;;
  2217. newos6*)
  2218. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2219. lt_cv_file_magic_cmd=/usr/bin/file
  2220. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2221. ;;
  2222. nto-qnx*)
  2223. lt_cv_deplibs_check_method=unknown
  2224. ;;
  2225. openbsd*)
  2226. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2227. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2228. else
  2229. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2230. fi
  2231. ;;
  2232. osf3* | osf4* | osf5*)
  2233. lt_cv_deplibs_check_method=pass_all
  2234. ;;
  2235. solaris*)
  2236. lt_cv_deplibs_check_method=pass_all
  2237. ;;
  2238. sysv4 | sysv4.3*)
  2239. case $host_vendor in
  2240. motorola)
  2241. 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]]'
  2242. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2243. ;;
  2244. ncr)
  2245. lt_cv_deplibs_check_method=pass_all
  2246. ;;
  2247. sequent)
  2248. lt_cv_file_magic_cmd='/bin/file'
  2249. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2250. ;;
  2251. sni)
  2252. lt_cv_file_magic_cmd='/bin/file'
  2253. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2254. lt_cv_file_magic_test_file=/lib/libc.so
  2255. ;;
  2256. siemens)
  2257. lt_cv_deplibs_check_method=pass_all
  2258. ;;
  2259. pc)
  2260. lt_cv_deplibs_check_method=pass_all
  2261. ;;
  2262. esac
  2263. ;;
  2264. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2265. lt_cv_deplibs_check_method=pass_all
  2266. ;;
  2267. esac
  2268. ])
  2269. file_magic_cmd=$lt_cv_file_magic_cmd
  2270. deplibs_check_method=$lt_cv_deplibs_check_method
  2271. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2272. ])# AC_DEPLIBS_CHECK_METHOD
  2273. # AC_PROG_NM
  2274. # ----------
  2275. # find the pathname to a BSD-compatible name lister
  2276. AC_DEFUN([AC_PROG_NM],
  2277. [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2278. [if test -n "$NM"; then
  2279. # Let the user override the test.
  2280. lt_cv_path_NM="$NM"
  2281. else
  2282. lt_nm_to_check="${ac_tool_prefix}nm"
  2283. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2284. lt_nm_to_check="$lt_nm_to_check nm"
  2285. fi
  2286. for lt_tmp_nm in $lt_nm_to_check; do
  2287. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2288. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2289. IFS="$lt_save_ifs"
  2290. test -z "$ac_dir" && ac_dir=.
  2291. tmp_nm="$ac_dir/$lt_tmp_nm"
  2292. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2293. # Check to see if the nm accepts a BSD-compat flag.
  2294. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2295. # nm: unknown option "B" ignored
  2296. # Tru64's nm complains that /dev/null is an invalid object file
  2297. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2298. */dev/null* | *'Invalid file or object type'*)
  2299. lt_cv_path_NM="$tmp_nm -B"
  2300. break
  2301. ;;
  2302. *)
  2303. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2304. */dev/null*)
  2305. lt_cv_path_NM="$tmp_nm -p"
  2306. break
  2307. ;;
  2308. *)
  2309. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2310. continue # so that we can try to find one that supports BSD flags
  2311. ;;
  2312. esac
  2313. ;;
  2314. esac
  2315. fi
  2316. done
  2317. IFS="$lt_save_ifs"
  2318. done
  2319. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2320. fi])
  2321. NM="$lt_cv_path_NM"
  2322. ])# AC_PROG_NM
  2323. # AC_CHECK_LIBM
  2324. # -------------
  2325. # check for math library
  2326. AC_DEFUN([AC_CHECK_LIBM],
  2327. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2328. LIBM=
  2329. case $host in
  2330. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2331. # These system don't have libm, or don't need it
  2332. ;;
  2333. *-ncr-sysv4.3*)
  2334. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2335. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2336. ;;
  2337. *)
  2338. AC_CHECK_LIB(m, cos, LIBM="-lm")
  2339. ;;
  2340. esac
  2341. ])# AC_CHECK_LIBM
  2342. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2343. # -----------------------------------
  2344. # sets LIBLTDL to the link flags for the libltdl convenience library and
  2345. # LTDLINCL to the include flags for the libltdl header and adds
  2346. # --enable-ltdl-convenience to the configure arguments. Note that
  2347. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2348. # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2349. # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2350. # (note the single quotes!). If your package is not flat and you're not
  2351. # using automake, define top_builddir and top_srcdir appropriately in
  2352. # the Makefiles.
  2353. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2354. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2355. case $enable_ltdl_convenience in
  2356. no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2357. "") enable_ltdl_convenience=yes
  2358. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2359. esac
  2360. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2361. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2362. # For backwards non-gettext consistent compatibility...
  2363. INCLTDL="$LTDLINCL"
  2364. ])# AC_LIBLTDL_CONVENIENCE
  2365. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2366. # -----------------------------------
  2367. # sets LIBLTDL to the link flags for the libltdl installable library and
  2368. # LTDLINCL to the include flags for the libltdl header and adds
  2369. # --enable-ltdl-install to the configure arguments. Note that
  2370. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2371. # and an installed libltdl is not found, it is assumed to be `libltdl'.
  2372. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2373. # '${top_srcdir}/' (note the single quotes!). If your package is not
  2374. # flat and you're not using automake, define top_builddir and top_srcdir
  2375. # appropriately in the Makefiles.
  2376. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2377. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2378. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2379. AC_CHECK_LIB(ltdl, lt_dlinit,
  2380. [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2381. [if test x"$enable_ltdl_install" = xno; then
  2382. AC_MSG_WARN([libltdl not installed, but installation disabled])
  2383. else
  2384. enable_ltdl_install=yes
  2385. fi
  2386. ])
  2387. if test x"$enable_ltdl_install" = x"yes"; then
  2388. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2389. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2390. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2391. else
  2392. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2393. LIBLTDL="-lltdl"
  2394. LTDLINCL=
  2395. fi
  2396. # For backwards non-gettext consistent compatibility...
  2397. INCLTDL="$LTDLINCL"
  2398. ])# AC_LIBLTDL_INSTALLABLE
  2399. # AC_LIBTOOL_CXX
  2400. # --------------
  2401. # enable support for C++ libraries
  2402. AC_DEFUN([AC_LIBTOOL_CXX],
  2403. [AC_REQUIRE([_LT_AC_LANG_CXX])
  2404. ])# AC_LIBTOOL_CXX
  2405. # _LT_AC_LANG_CXX
  2406. # ---------------
  2407. AC_DEFUN([_LT_AC_LANG_CXX],
  2408. [AC_REQUIRE([AC_PROG_CXX])
  2409. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2410. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2411. ])# _LT_AC_LANG_CXX
  2412. # _LT_AC_PROG_CXXCPP
  2413. # ------------------
  2414. AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2415. [
  2416. AC_REQUIRE([AC_PROG_CXX])
  2417. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2418. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2419. (test "X$CXX" != "Xg++"))) ; then
  2420. AC_PROG_CXXCPP
  2421. fi
  2422. ])# _LT_AC_PROG_CXXCPP
  2423. # AC_LIBTOOL_F77
  2424. # --------------
  2425. # enable support for Fortran 77 libraries
  2426. AC_DEFUN([AC_LIBTOOL_F77],
  2427. [AC_REQUIRE([_LT_AC_LANG_F77])
  2428. ])# AC_LIBTOOL_F77
  2429. # _LT_AC_LANG_F77
  2430. # ---------------
  2431. AC_DEFUN([_LT_AC_LANG_F77],
  2432. [AC_REQUIRE([AC_PROG_F77])
  2433. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2434. ])# _LT_AC_LANG_F77
  2435. # AC_LIBTOOL_GCJ
  2436. # --------------
  2437. # enable support for GCJ libraries
  2438. AC_DEFUN([AC_LIBTOOL_GCJ],
  2439. [AC_REQUIRE([_LT_AC_LANG_GCJ])
  2440. ])# AC_LIBTOOL_GCJ
  2441. # _LT_AC_LANG_GCJ
  2442. # ---------------
  2443. AC_DEFUN([_LT_AC_LANG_GCJ],
  2444. [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2445. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2446. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2447. [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2448. [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2449. [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2450. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2451. ])# _LT_AC_LANG_GCJ
  2452. # AC_LIBTOOL_RC
  2453. # -------------
  2454. # enable support for Windows resource files
  2455. AC_DEFUN([AC_LIBTOOL_RC],
  2456. [AC_REQUIRE([LT_AC_PROG_RC])
  2457. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2458. ])# AC_LIBTOOL_RC
  2459. # AC_LIBTOOL_LANG_C_CONFIG
  2460. # ------------------------
  2461. # Ensure that the configuration vars for the C compiler are
  2462. # suitably defined. Those variables are subsequently used by
  2463. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2464. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2465. AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2466. [lt_save_CC="$CC"
  2467. AC_LANG_PUSH(C)
  2468. # Source file extension for C test sources.
  2469. ac_ext=c
  2470. # Object file extension for compiled C test sources.
  2471. objext=o
  2472. _LT_AC_TAGVAR(objext, $1)=$objext
  2473. # Code to be used in simple compile tests
  2474. lt_simple_compile_test_code="int some_variable = 0;\n"
  2475. # Code to be used in simple link tests
  2476. lt_simple_link_test_code='int main(){return(0);}\n'
  2477. _LT_AC_SYS_COMPILER
  2478. # save warnings/boilerplate of simple test code
  2479. _LT_COMPILER_BOILERPLATE
  2480. _LT_LINKER_BOILERPLATE
  2481. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2482. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2483. AC_LIBTOOL_PROG_CC_C_O($1)
  2484. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2485. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2486. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2487. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2488. AC_LIBTOOL_SYS_LIB_STRIP
  2489. AC_LIBTOOL_DLOPEN_SELF
  2490. # Report which library types will actually be built
  2491. AC_MSG_CHECKING([if libtool supports shared libraries])
  2492. AC_MSG_RESULT([$can_build_shared])
  2493. AC_MSG_CHECKING([whether to build shared libraries])
  2494. test "$can_build_shared" = "no" && enable_shared=no
  2495. # On AIX, shared libraries and static libraries use the same namespace, and
  2496. # are all built from PIC.
  2497. case $host_os in
  2498. aix3*)
  2499. test "$enable_shared" = yes && enable_static=no
  2500. if test -n "$RANLIB"; then
  2501. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2502. postinstall_cmds='$RANLIB $lib'
  2503. fi
  2504. ;;
  2505. aix4* | aix5*)
  2506. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2507. test "$enable_shared" = yes && enable_static=no
  2508. fi
  2509. ;;
  2510. esac
  2511. AC_MSG_RESULT([$enable_shared])
  2512. AC_MSG_CHECKING([whether to build static libraries])
  2513. # Make sure either enable_shared or enable_static is yes.
  2514. test "$enable_shared" = yes || enable_static=yes
  2515. AC_MSG_RESULT([$enable_static])
  2516. AC_LIBTOOL_CONFIG($1)
  2517. AC_LANG_POP
  2518. CC="$lt_save_CC"
  2519. ])# AC_LIBTOOL_LANG_C_CONFIG
  2520. # AC_LIBTOOL_LANG_CXX_CONFIG
  2521. # --------------------------
  2522. # Ensure that the configuration vars for the C compiler are
  2523. # suitably defined. Those variables are subsequently used by
  2524. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2525. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2526. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2527. [AC_LANG_PUSH(C++)
  2528. AC_REQUIRE([AC_PROG_CXX])
  2529. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2530. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2531. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2532. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2533. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2534. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2535. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2536. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2537. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2538. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2539. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2540. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2541. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2542. _LT_AC_TAGVAR(module_cmds, $1)=
  2543. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2544. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2545. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2546. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2547. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2548. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2549. # Dependencies to place before and after the object being linked:
  2550. _LT_AC_TAGVAR(predep_objects, $1)=
  2551. _LT_AC_TAGVAR(postdep_objects, $1)=
  2552. _LT_AC_TAGVAR(predeps, $1)=
  2553. _LT_AC_TAGVAR(postdeps, $1)=
  2554. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2555. # Source file extension for C++ test sources.
  2556. ac_ext=cpp
  2557. # Object file extension for compiled C++ test sources.
  2558. objext=o
  2559. _LT_AC_TAGVAR(objext, $1)=$objext
  2560. # Code to be used in simple compile tests
  2561. lt_simple_compile_test_code="int some_variable = 0;\n"
  2562. # Code to be used in simple link tests
  2563. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  2564. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2565. _LT_AC_SYS_COMPILER
  2566. # save warnings/boilerplate of simple test code
  2567. _LT_COMPILER_BOILERPLATE
  2568. _LT_LINKER_BOILERPLATE
  2569. # Allow CC to be a program name with arguments.
  2570. lt_save_CC=$CC
  2571. lt_save_LD=$LD
  2572. lt_save_GCC=$GCC
  2573. GCC=$GXX
  2574. lt_save_with_gnu_ld=$with_gnu_ld
  2575. lt_save_path_LD=$lt_cv_path_LD
  2576. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2577. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2578. else
  2579. $as_unset lt_cv_prog_gnu_ld
  2580. fi
  2581. if test -n "${lt_cv_path_LDCXX+set}"; then
  2582. lt_cv_path_LD=$lt_cv_path_LDCXX
  2583. else
  2584. $as_unset lt_cv_path_LD
  2585. fi
  2586. test -z "${LDCXX+set}" || LD=$LDCXX
  2587. CC=${CXX-"c++"}
  2588. compiler=$CC
  2589. _LT_AC_TAGVAR(compiler, $1)=$CC
  2590. _LT_CC_BASENAME([$compiler])
  2591. # We don't want -fno-exception wen compiling C++ code, so set the
  2592. # no_builtin_flag separately
  2593. if test "$GXX" = yes; then
  2594. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2595. else
  2596. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2597. fi
  2598. if test "$GXX" = yes; then
  2599. # Set up default GNU C++ configuration
  2600. AC_PROG_LD
  2601. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2602. # archiving commands below assume that GNU ld is being used.
  2603. if test "$with_gnu_ld" = yes; then
  2604. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2605. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2606. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2607. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2608. # If archive_cmds runs LD, not CC, wlarc should be empty
  2609. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2610. # investigate it a little bit more. (MM)
  2611. wlarc='${wl}'
  2612. # ancient GNU ld didn't support --whole-archive et. al.
  2613. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2614. grep 'no-whole-archive' > /dev/null; then
  2615. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2616. else
  2617. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2618. fi
  2619. else
  2620. with_gnu_ld=no
  2621. wlarc=
  2622. # A generic and very simple default shared library creation
  2623. # command for GNU C++ for the case where it uses the native
  2624. # linker, instead of GNU ld. If possible, this setting should
  2625. # overridden to take advantage of the native linker features on
  2626. # the platform it is being used on.
  2627. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2628. fi
  2629. # Commands to make compiler produce verbose output that lists
  2630. # what "hidden" libraries, object files and flags are used when
  2631. # linking a shared library.
  2632. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2633. else
  2634. GXX=no
  2635. with_gnu_ld=no
  2636. wlarc=
  2637. fi
  2638. # PORTME: fill in a description of your system's C++ link characteristics
  2639. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2640. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2641. case $host_os in
  2642. aix3*)
  2643. # FIXME: insert proper C++ library support
  2644. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2645. ;;
  2646. aix4* | aix5*)
  2647. if test "$host_cpu" = ia64; then
  2648. # On IA64, the linker does run time linking by default, so we don't
  2649. # have to do anything special.
  2650. aix_use_runtimelinking=no
  2651. exp_sym_flag='-Bexport'
  2652. no_entry_flag=""
  2653. else
  2654. aix_use_runtimelinking=no
  2655. # Test if we are trying to use run time linking or normal
  2656. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2657. # need to do runtime linking.
  2658. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2659. for ld_flag in $LDFLAGS; do
  2660. case $ld_flag in
  2661. *-brtl*)
  2662. aix_use_runtimelinking=yes
  2663. break
  2664. ;;
  2665. esac
  2666. done
  2667. ;;
  2668. esac
  2669. exp_sym_flag='-bexport'
  2670. no_entry_flag='-bnoentry'
  2671. fi
  2672. # When large executables or shared objects are built, AIX ld can
  2673. # have problems creating the table of contents. If linking a library
  2674. # or program results in "error TOC overflow" add -mminimal-toc to
  2675. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2676. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2677. _LT_AC_TAGVAR(archive_cmds, $1)=''
  2678. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2679. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2680. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2681. if test "$GXX" = yes; then
  2682. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2683. # We only want to do this on AIX 4.2 and lower, the check
  2684. # below for broken collect2 doesn't work under 4.3+
  2685. collect2name=`${CC} -print-prog-name=collect2`
  2686. if test -f "$collect2name" && \
  2687. strings "$collect2name" | grep resolve_lib_name >/dev/null
  2688. then
  2689. # We have reworked collect2
  2690. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2691. else
  2692. # We have old collect2
  2693. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2694. # It fails to find uninstalled libraries when the uninstalled
  2695. # path is not listed in the libpath. Setting hardcode_minus_L
  2696. # to unsupported forces relinking
  2697. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2698. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2699. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2700. fi
  2701. ;;
  2702. esac
  2703. shared_flag='-shared'
  2704. if test "$aix_use_runtimelinking" = yes; then
  2705. shared_flag="$shared_flag "'${wl}-G'
  2706. fi
  2707. else
  2708. # not using gcc
  2709. if test "$host_cpu" = ia64; then
  2710. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2711. # chokes on -Wl,-G. The following line is correct:
  2712. shared_flag='-G'
  2713. else
  2714. if test "$aix_use_runtimelinking" = yes; then
  2715. shared_flag='${wl}-G'
  2716. else
  2717. shared_flag='${wl}-bM:SRE'
  2718. fi
  2719. fi
  2720. fi
  2721. # It seems that -bexpall does not export symbols beginning with
  2722. # underscore (_), so it is better to generate a list of symbols to export.
  2723. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2724. if test "$aix_use_runtimelinking" = yes; then
  2725. # Warning - without using the other runtime loading flags (-brtl),
  2726. # -berok will link without error, but may produce a broken library.
  2727. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2728. # Determine the default libpath from the value encoded in an empty executable.
  2729. _LT_AC_SYS_LIBPATH_AIX
  2730. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2731. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2732. else
  2733. if test "$host_cpu" = ia64; then
  2734. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2735. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2736. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  2737. else
  2738. # Determine the default libpath from the value encoded in an empty executable.
  2739. _LT_AC_SYS_LIBPATH_AIX
  2740. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2741. # Warning - without using the other run time loading flags,
  2742. # -berok will link without error, but may produce a broken library.
  2743. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2744. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2745. # Exported symbols can be pulled into shared objects from archives
  2746. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  2747. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2748. # This is similar to how AIX traditionally builds its shared libraries.
  2749. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2750. fi
  2751. fi
  2752. ;;
  2753. beos*)
  2754. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  2755. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2756. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  2757. # support --undefined. This deserves some investigation. FIXME
  2758. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2759. else
  2760. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2761. fi
  2762. ;;
  2763. chorus*)
  2764. case $cc_basename in
  2765. *)
  2766. # FIXME: insert proper C++ library support
  2767. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2768. ;;
  2769. esac
  2770. ;;
  2771. cygwin* | mingw* | pw32*)
  2772. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  2773. # as there is no search path for DLLs.
  2774. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2775. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2776. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2777. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2778. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2779. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  2780. # If the export-symbols file already is a .def file (1st line
  2781. # is EXPORTS), use it as is; otherwise, prepend...
  2782. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2783. cp $export_symbols $output_objdir/$soname.def;
  2784. else
  2785. echo EXPORTS > $output_objdir/$soname.def;
  2786. cat $export_symbols >> $output_objdir/$soname.def;
  2787. fi~
  2788. $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'
  2789. else
  2790. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2791. fi
  2792. ;;
  2793. darwin* | rhapsody*)
  2794. case $host_os in
  2795. rhapsody* | darwin1.[[012]])
  2796. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  2797. ;;
  2798. *) # Darwin 1.3 on
  2799. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2800. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2801. else
  2802. case ${MACOSX_DEPLOYMENT_TARGET} in
  2803. 10.[[012]])
  2804. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2805. ;;
  2806. 10.*)
  2807. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  2808. ;;
  2809. esac
  2810. fi
  2811. ;;
  2812. esac
  2813. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2814. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2815. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2816. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2817. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  2818. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2819. if test "$GXX" = yes ; then
  2820. lt_int_apple_cc_single_mod=no
  2821. output_verbose_link_cmd='echo'
  2822. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  2823. lt_int_apple_cc_single_mod=yes
  2824. fi
  2825. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2826. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2827. else
  2828. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2829. fi
  2830. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2831. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2832. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2833. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2834. else
  2835. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2836. fi
  2837. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2838. else
  2839. case $cc_basename in
  2840. xlc*)
  2841. output_verbose_link_cmd='echo'
  2842. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  2843. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2844. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2845. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2846. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2847. ;;
  2848. *)
  2849. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2850. ;;
  2851. esac
  2852. fi
  2853. ;;
  2854. dgux*)
  2855. case $cc_basename in
  2856. ec++*)
  2857. # FIXME: insert proper C++ library support
  2858. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2859. ;;
  2860. ghcx*)
  2861. # Green Hills C++ Compiler
  2862. # FIXME: insert proper C++ library support
  2863. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2864. ;;
  2865. *)
  2866. # FIXME: insert proper C++ library support
  2867. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2868. ;;
  2869. esac
  2870. ;;
  2871. freebsd[[12]]*)
  2872. # C++ shared libraries reported to be fairly broken before switch to ELF
  2873. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2874. ;;
  2875. freebsd-elf*)
  2876. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2877. ;;
  2878. freebsd* | kfreebsd*-gnu | dragonfly*)
  2879. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2880. # conventions
  2881. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2882. ;;
  2883. gnu*)
  2884. ;;
  2885. hpux9*)
  2886. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2887. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2888. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2889. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2890. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2891. # but as the default
  2892. # location of the library.
  2893. case $cc_basename in
  2894. CC*)
  2895. # FIXME: insert proper C++ library support
  2896. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2897. ;;
  2898. aCC*)
  2899. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2900. # Commands to make compiler produce verbose output that lists
  2901. # what "hidden" libraries, object files and flags are used when
  2902. # linking a shared library.
  2903. #
  2904. # There doesn't appear to be a way to prevent this compiler from
  2905. # explicitly linking system object files so we need to strip them
  2906. # from the output so that they don't get included in the library
  2907. # dependencies.
  2908. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  2909. ;;
  2910. *)
  2911. if test "$GXX" = yes; then
  2912. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2913. else
  2914. # FIXME: insert proper C++ library support
  2915. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2916. fi
  2917. ;;
  2918. esac
  2919. ;;
  2920. hpux10*|hpux11*)
  2921. if test $with_gnu_ld = no; then
  2922. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2923. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2924. case $host_cpu in
  2925. hppa*64*|ia64*)
  2926. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  2927. ;;
  2928. *)
  2929. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2930. ;;
  2931. esac
  2932. fi
  2933. case $host_cpu in
  2934. hppa*64*|ia64*)
  2935. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2936. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2937. ;;
  2938. *)
  2939. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2940. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2941. # but as the default
  2942. # location of the library.
  2943. ;;
  2944. esac
  2945. case $cc_basename in
  2946. CC*)
  2947. # FIXME: insert proper C++ library support
  2948. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2949. ;;
  2950. aCC*)
  2951. case $host_cpu in
  2952. hppa*64*)
  2953. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2954. ;;
  2955. ia64*)
  2956. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2957. ;;
  2958. *)
  2959. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2960. ;;
  2961. esac
  2962. # Commands to make compiler produce verbose output that lists
  2963. # what "hidden" libraries, object files and flags are used when
  2964. # linking a shared library.
  2965. #
  2966. # There doesn't appear to be a way to prevent this compiler from
  2967. # explicitly linking system object files so we need to strip them
  2968. # from the output so that they don't get included in the library
  2969. # dependencies.
  2970. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  2971. ;;
  2972. *)
  2973. if test "$GXX" = yes; then
  2974. if test $with_gnu_ld = no; then
  2975. case $host_cpu in
  2976. hppa*64*)
  2977. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2978. ;;
  2979. ia64*)
  2980. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2981. ;;
  2982. *)
  2983. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2984. ;;
  2985. esac
  2986. fi
  2987. else
  2988. # FIXME: insert proper C++ library support
  2989. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2990. fi
  2991. ;;
  2992. esac
  2993. ;;
  2994. interix3*)
  2995. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2996. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2997. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2998. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2999. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3000. # Instead, shared libraries are loaded at an image base (0x10000000 by
  3001. # default) and relocated if they conflict, which is a slow very memory
  3002. # consuming and fragmenting process. To avoid this, we pick a random,
  3003. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3004. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3005. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3006. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3007. ;;
  3008. irix5* | irix6*)
  3009. case $cc_basename in
  3010. CC*)
  3011. # SGI C++
  3012. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3013. # Archives containing C++ object files must be created using
  3014. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3015. # necessary to make sure instantiated templates are included
  3016. # in the archive.
  3017. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3018. ;;
  3019. *)
  3020. if test "$GXX" = yes; then
  3021. if test "$with_gnu_ld" = no; then
  3022. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3023. else
  3024. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  3025. fi
  3026. fi
  3027. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3028. ;;
  3029. esac
  3030. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3031. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3032. ;;
  3033. linux*)
  3034. case $cc_basename in
  3035. KCC*)
  3036. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3037. # KCC will only create a shared library if the output file
  3038. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3039. # to its proper name (with version) after linking.
  3040. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3041. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  3042. # Commands to make compiler produce verbose output that lists
  3043. # what "hidden" libraries, object files and flags are used when
  3044. # linking a shared library.
  3045. #
  3046. # There doesn't appear to be a way to prevent this compiler from
  3047. # explicitly linking system object files so we need to strip them
  3048. # from the output so that they don't get included in the library
  3049. # dependencies.
  3050. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3051. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3052. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3053. # Archives containing C++ object files must be created using
  3054. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3055. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3056. ;;
  3057. icpc*)
  3058. # Intel C++
  3059. with_gnu_ld=yes
  3060. # version 8.0 and above of icpc choke on multiply defined symbols
  3061. # if we add $predep_objects and $postdep_objects, however 7.1 and
  3062. # earlier do not add the objects themselves.
  3063. case `$CC -V 2>&1` in
  3064. *"Version 7."*)
  3065. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3066. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3067. ;;
  3068. *) # Version 8.0 or newer
  3069. tmp_idyn=
  3070. case $host_cpu in
  3071. ia64*) tmp_idyn=' -i_dynamic';;
  3072. esac
  3073. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3074. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3075. ;;
  3076. esac
  3077. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3078. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3079. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3080. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3081. ;;
  3082. pgCC*)
  3083. # Portland Group C++ compiler
  3084. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3085. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  3086. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3087. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3088. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3089. ;;
  3090. cxx*)
  3091. # Compaq C++
  3092. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3093. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  3094. runpath_var=LD_RUN_PATH
  3095. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3096. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3097. # Commands to make compiler produce verbose output that lists
  3098. # what "hidden" libraries, object files and flags are used when
  3099. # linking a shared library.
  3100. #
  3101. # There doesn't appear to be a way to prevent this compiler from
  3102. # explicitly linking system object files so we need to strip them
  3103. # from the output so that they don't get included in the library
  3104. # dependencies.
  3105. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3106. ;;
  3107. esac
  3108. ;;
  3109. lynxos*)
  3110. # FIXME: insert proper C++ library support
  3111. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3112. ;;
  3113. m88k*)
  3114. # FIXME: insert proper C++ library support
  3115. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3116. ;;
  3117. mvs*)
  3118. case $cc_basename in
  3119. cxx*)
  3120. # FIXME: insert proper C++ library support
  3121. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3122. ;;
  3123. *)
  3124. # FIXME: insert proper C++ library support
  3125. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3126. ;;
  3127. esac
  3128. ;;
  3129. netbsd*)
  3130. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3131. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3132. wlarc=
  3133. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3134. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3135. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3136. fi
  3137. # Workaround some broken pre-1.5 toolchains
  3138. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3139. ;;
  3140. openbsd2*)
  3141. # C++ shared libraries are fairly broken
  3142. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3143. ;;
  3144. openbsd*)
  3145. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3146. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3147. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3148. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3149. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3150. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  3151. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3152. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3153. fi
  3154. output_verbose_link_cmd='echo'
  3155. ;;
  3156. osf3*)
  3157. case $cc_basename in
  3158. KCC*)
  3159. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3160. # KCC will only create a shared library if the output file
  3161. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3162. # to its proper name (with version) after linking.
  3163. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3164. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3165. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3166. # Archives containing C++ object files must be created using
  3167. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3168. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3169. ;;
  3170. RCC*)
  3171. # Rational C++ 2.4.1
  3172. # FIXME: insert proper C++ library support
  3173. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3174. ;;
  3175. cxx*)
  3176. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3177. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3178. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3179. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3180. # Commands to make compiler produce verbose output that lists
  3181. # what "hidden" libraries, object files and flags are used when
  3182. # linking a shared library.
  3183. #
  3184. # There doesn't appear to be a way to prevent this compiler from
  3185. # explicitly linking system object files so we need to strip them
  3186. # from the output so that they don't get included in the library
  3187. # dependencies.
  3188. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3189. ;;
  3190. *)
  3191. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3192. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3193. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3194. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3195. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3196. # Commands to make compiler produce verbose output that lists
  3197. # what "hidden" libraries, object files and flags are used when
  3198. # linking a shared library.
  3199. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3200. else
  3201. # FIXME: insert proper C++ library support
  3202. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3203. fi
  3204. ;;
  3205. esac
  3206. ;;
  3207. osf4* | osf5*)
  3208. case $cc_basename in
  3209. KCC*)
  3210. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3211. # KCC will only create a shared library if the output file
  3212. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3213. # to its proper name (with version) after linking.
  3214. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3215. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3216. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3217. # Archives containing C++ object files must be created using
  3218. # the KAI C++ compiler.
  3219. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3220. ;;
  3221. RCC*)
  3222. # Rational C++ 2.4.1
  3223. # FIXME: insert proper C++ library support
  3224. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3225. ;;
  3226. cxx*)
  3227. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3228. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3229. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3230. echo "-hidden">> $lib.exp~
  3231. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  3232. $rm $lib.exp'
  3233. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3234. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3235. # Commands to make compiler produce verbose output that lists
  3236. # what "hidden" libraries, object files and flags are used when
  3237. # linking a shared library.
  3238. #
  3239. # There doesn't appear to be a way to prevent this compiler from
  3240. # explicitly linking system object files so we need to strip them
  3241. # from the output so that they don't get included in the library
  3242. # dependencies.
  3243. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3244. ;;
  3245. *)
  3246. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3247. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3248. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3249. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3250. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3251. # Commands to make compiler produce verbose output that lists
  3252. # what "hidden" libraries, object files and flags are used when
  3253. # linking a shared library.
  3254. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3255. else
  3256. # FIXME: insert proper C++ library support
  3257. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3258. fi
  3259. ;;
  3260. esac
  3261. ;;
  3262. psos*)
  3263. # FIXME: insert proper C++ library support
  3264. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3265. ;;
  3266. sunos4*)
  3267. case $cc_basename in
  3268. CC*)
  3269. # Sun C++ 4.x
  3270. # FIXME: insert proper C++ library support
  3271. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3272. ;;
  3273. lcc*)
  3274. # Lucid
  3275. # FIXME: insert proper C++ library support
  3276. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3277. ;;
  3278. *)
  3279. # FIXME: insert proper C++ library support
  3280. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3281. ;;
  3282. esac
  3283. ;;
  3284. solaris*)
  3285. case $cc_basename in
  3286. CC*)
  3287. # Sun C++ 4.2, 5.x and Centerline C++
  3288. _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3289. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3290. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3291. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3292. $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'
  3293. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3294. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3295. case $host_os in
  3296. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3297. *)
  3298. # The C++ compiler is used as linker so we must use $wl
  3299. # flag to pass the commands to the underlying system
  3300. # linker. We must also pass each convience library through
  3301. # to the system linker between allextract/defaultextract.
  3302. # The C++ compiler will combine linker options so we
  3303. # cannot just pass the convience library names through
  3304. # without $wl.
  3305. # Supported since Solaris 2.6 (maybe 2.5.1?)
  3306. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  3307. ;;
  3308. esac
  3309. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3310. output_verbose_link_cmd='echo'
  3311. # Archives containing C++ object files must be created using
  3312. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3313. # necessary to make sure instantiated templates are included
  3314. # in the archive.
  3315. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3316. ;;
  3317. gcx*)
  3318. # Green Hills C++ Compiler
  3319. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3320. # The C++ compiler must be used to create the archive.
  3321. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3322. ;;
  3323. *)
  3324. # GNU C++ compiler with Solaris linker
  3325. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3326. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3327. if $CC --version | grep -v '^2\.7' > /dev/null; then
  3328. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3329. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3330. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3331. # Commands to make compiler produce verbose output that lists
  3332. # what "hidden" libraries, object files and flags are used when
  3333. # linking a shared library.
  3334. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3335. else
  3336. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3337. # platform.
  3338. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3339. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3340. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3341. # Commands to make compiler produce verbose output that lists
  3342. # what "hidden" libraries, object files and flags are used when
  3343. # linking a shared library.
  3344. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3345. fi
  3346. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3347. fi
  3348. ;;
  3349. esac
  3350. ;;
  3351. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3352. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3353. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3354. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3355. runpath_var='LD_RUN_PATH'
  3356. case $cc_basename in
  3357. CC*)
  3358. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3359. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3360. ;;
  3361. *)
  3362. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3363. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3364. ;;
  3365. esac
  3366. ;;
  3367. sysv5* | sco3.2v5* | sco5v6*)
  3368. # Note: We can NOT use -z defs as we might desire, because we do not
  3369. # link with -lc, and that would cause any symbols used from libc to
  3370. # always be unresolved, which means just about no library would
  3371. # ever link correctly. If we're not using GNU ld we use -z text
  3372. # though, which does catch some bad symbols but isn't as heavy-handed
  3373. # as -z defs.
  3374. # For security reasons, it is highly recommended that you always
  3375. # use absolute paths for naming shared libraries, and exclude the
  3376. # DT_RUNPATH tag from executables and libraries. But doing so
  3377. # requires that you compile everything twice, which is a pain.
  3378. # So that behaviour is only enabled if SCOABSPATH is set to a
  3379. # non-empty value in the environment. Most likely only useful for
  3380. # creating official distributions of packages.
  3381. # This is a hack until libtool officially supports absolute path
  3382. # names for shared libraries.
  3383. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3384. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3385. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3386. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3387. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3388. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3389. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3390. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3391. runpath_var='LD_RUN_PATH'
  3392. case $cc_basename in
  3393. CC*)
  3394. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3395. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3396. ;;
  3397. *)
  3398. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3399. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3400. ;;
  3401. esac
  3402. ;;
  3403. tandem*)
  3404. case $cc_basename in
  3405. NCC*)
  3406. # NonStop-UX NCC 3.20
  3407. # FIXME: insert proper C++ library support
  3408. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3409. ;;
  3410. *)
  3411. # FIXME: insert proper C++ library support
  3412. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3413. ;;
  3414. esac
  3415. ;;
  3416. vxworks*)
  3417. # FIXME: insert proper C++ library support
  3418. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3419. ;;
  3420. *)
  3421. # FIXME: insert proper C++ library support
  3422. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3423. ;;
  3424. esac
  3425. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3426. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3427. _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3428. _LT_AC_TAGVAR(LD, $1)="$LD"
  3429. AC_LIBTOOL_POSTDEP_PREDEP($1)
  3430. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3431. AC_LIBTOOL_PROG_CC_C_O($1)
  3432. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3433. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3434. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3435. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3436. AC_LIBTOOL_CONFIG($1)
  3437. AC_LANG_POP
  3438. CC=$lt_save_CC
  3439. LDCXX=$LD
  3440. LD=$lt_save_LD
  3441. GCC=$lt_save_GCC
  3442. with_gnu_ldcxx=$with_gnu_ld
  3443. with_gnu_ld=$lt_save_with_gnu_ld
  3444. lt_cv_path_LDCXX=$lt_cv_path_LD
  3445. lt_cv_path_LD=$lt_save_path_LD
  3446. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3447. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3448. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3449. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3450. # ------------------------------------
  3451. # Figure out "hidden" library dependencies from verbose
  3452. # compiler output when linking a shared library.
  3453. # Parse the compiler output and extract the necessary
  3454. # objects, libraries and library flags.
  3455. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3456. dnl we can't use the lt_simple_compile_test_code here,
  3457. dnl because it contains code intended for an executable,
  3458. dnl not a library. It's possible we should let each
  3459. dnl tag define a new lt_????_link_test_code variable,
  3460. dnl but it's only used here...
  3461. ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3462. int a;
  3463. void foo (void) { a = 0; }
  3464. EOF
  3465. ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3466. class Foo
  3467. {
  3468. public:
  3469. Foo (void) { a = 0; }
  3470. private:
  3471. int a;
  3472. };
  3473. EOF
  3474. ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3475. subroutine foo
  3476. implicit none
  3477. integer*4 a
  3478. a=0
  3479. return
  3480. end
  3481. EOF
  3482. ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3483. public class foo {
  3484. private int a;
  3485. public void bar (void) {
  3486. a = 0;
  3487. }
  3488. };
  3489. EOF
  3490. ])
  3491. dnl Parse the compiler output and extract the necessary
  3492. dnl objects, libraries and library flags.
  3493. if AC_TRY_EVAL(ac_compile); then
  3494. # Parse the compiler output and extract the necessary
  3495. # objects, libraries and library flags.
  3496. # Sentinel used to keep track of whether or not we are before
  3497. # the conftest object file.
  3498. pre_test_object_deps_done=no
  3499. # The `*' in the case matches for architectures that use `case' in
  3500. # $output_verbose_cmd can trigger glob expansion during the loop
  3501. # eval without this substitution.
  3502. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3503. for p in `eval $output_verbose_link_cmd`; do
  3504. case $p in
  3505. -L* | -R* | -l*)
  3506. # Some compilers place space between "-{L,R}" and the path.
  3507. # Remove the space.
  3508. if test $p = "-L" \
  3509. || test $p = "-R"; then
  3510. prev=$p
  3511. continue
  3512. else
  3513. prev=
  3514. fi
  3515. if test "$pre_test_object_deps_done" = no; then
  3516. case $p in
  3517. -L* | -R*)
  3518. # Internal compiler library paths should come after those
  3519. # provided the user. The postdeps already come after the
  3520. # user supplied libs so there is no need to process them.
  3521. if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3522. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3523. else
  3524. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3525. fi
  3526. ;;
  3527. # The "-l" case would never come before the object being
  3528. # linked, so don't bother handling this case.
  3529. esac
  3530. else
  3531. if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3532. _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3533. else
  3534. _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3535. fi
  3536. fi
  3537. ;;
  3538. *.$objext)
  3539. # This assumes that the test object file only shows up
  3540. # once in the compiler output.
  3541. if test "$p" = "conftest.$objext"; then
  3542. pre_test_object_deps_done=yes
  3543. continue
  3544. fi
  3545. if test "$pre_test_object_deps_done" = no; then
  3546. if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3547. _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3548. else
  3549. _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3550. fi
  3551. else
  3552. if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3553. _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3554. else
  3555. _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3556. fi
  3557. fi
  3558. ;;
  3559. *) ;; # Ignore the rest.
  3560. esac
  3561. done
  3562. # Clean up.
  3563. rm -f a.out a.exe
  3564. else
  3565. echo "libtool.m4: error: problem compiling $1 test program"
  3566. fi
  3567. $rm -f confest.$objext
  3568. # PORTME: override above test on systems where it is broken
  3569. ifelse([$1],[CXX],
  3570. [case $host_os in
  3571. interix3*)
  3572. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  3573. # hack all around it, let's just trust "g++" to DTRT.
  3574. _LT_AC_TAGVAR(predep_objects,$1)=
  3575. _LT_AC_TAGVAR(postdep_objects,$1)=
  3576. _LT_AC_TAGVAR(postdeps,$1)=
  3577. ;;
  3578. solaris*)
  3579. case $cc_basename in
  3580. CC*)
  3581. # Adding this requires a known-good setup of shared libraries for
  3582. # Sun compiler versions before 5.6, else PIC objects from an old
  3583. # archive will be linked into the output, leading to subtle bugs.
  3584. _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  3585. ;;
  3586. esac
  3587. ;;
  3588. esac
  3589. ])
  3590. case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3591. *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3592. esac
  3593. ])# AC_LIBTOOL_POSTDEP_PREDEP
  3594. # AC_LIBTOOL_LANG_F77_CONFIG
  3595. # --------------------------
  3596. # Ensure that the configuration vars for the C compiler are
  3597. # suitably defined. Those variables are subsequently used by
  3598. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3599. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  3600. AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  3601. [AC_REQUIRE([AC_PROG_F77])
  3602. AC_LANG_PUSH(Fortran 77)
  3603. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3604. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3605. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3606. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3607. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3608. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3609. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3610. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3611. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3612. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3613. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3614. _LT_AC_TAGVAR(module_cmds, $1)=
  3615. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3616. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3617. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3618. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  3619. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3620. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3621. # Source file extension for f77 test sources.
  3622. ac_ext=f
  3623. # Object file extension for compiled f77 test sources.
  3624. objext=o
  3625. _LT_AC_TAGVAR(objext, $1)=$objext
  3626. # Code to be used in simple compile tests
  3627. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  3628. # Code to be used in simple link tests
  3629. lt_simple_link_test_code=" program t\n end\n"
  3630. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3631. _LT_AC_SYS_COMPILER
  3632. # save warnings/boilerplate of simple test code
  3633. _LT_COMPILER_BOILERPLATE
  3634. _LT_LINKER_BOILERPLATE
  3635. # Allow CC to be a program name with arguments.
  3636. lt_save_CC="$CC"
  3637. CC=${F77-"f77"}
  3638. compiler=$CC
  3639. _LT_AC_TAGVAR(compiler, $1)=$CC
  3640. _LT_CC_BASENAME([$compiler])
  3641. AC_MSG_CHECKING([if libtool supports shared libraries])
  3642. AC_MSG_RESULT([$can_build_shared])
  3643. AC_MSG_CHECKING([whether to build shared libraries])
  3644. test "$can_build_shared" = "no" && enable_shared=no
  3645. # On AIX, shared libraries and static libraries use the same namespace, and
  3646. # are all built from PIC.
  3647. case $host_os in
  3648. aix3*)
  3649. test "$enable_shared" = yes && enable_static=no
  3650. if test -n "$RANLIB"; then
  3651. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3652. postinstall_cmds='$RANLIB $lib'
  3653. fi
  3654. ;;
  3655. aix4* | aix5*)
  3656. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3657. test "$enable_shared" = yes && enable_static=no
  3658. fi
  3659. ;;
  3660. esac
  3661. AC_MSG_RESULT([$enable_shared])
  3662. AC_MSG_CHECKING([whether to build static libraries])
  3663. # Make sure either enable_shared or enable_static is yes.
  3664. test "$enable_shared" = yes || enable_static=yes
  3665. AC_MSG_RESULT([$enable_static])
  3666. _LT_AC_TAGVAR(GCC, $1)="$G77"
  3667. _LT_AC_TAGVAR(LD, $1)="$LD"
  3668. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3669. AC_LIBTOOL_PROG_CC_C_O($1)
  3670. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3671. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3672. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3673. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3674. AC_LIBTOOL_CONFIG($1)
  3675. AC_LANG_POP
  3676. CC="$lt_save_CC"
  3677. ])# AC_LIBTOOL_LANG_F77_CONFIG
  3678. # AC_LIBTOOL_LANG_GCJ_CONFIG
  3679. # --------------------------
  3680. # Ensure that the configuration vars for the C compiler are
  3681. # suitably defined. Those variables are subsequently used by
  3682. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3683. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  3684. AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  3685. [AC_LANG_SAVE
  3686. # Source file extension for Java test sources.
  3687. ac_ext=java
  3688. # Object file extension for compiled Java test sources.
  3689. objext=o
  3690. _LT_AC_TAGVAR(objext, $1)=$objext
  3691. # Code to be used in simple compile tests
  3692. lt_simple_compile_test_code="class foo {}\n"
  3693. # Code to be used in simple link tests
  3694. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  3695. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3696. _LT_AC_SYS_COMPILER
  3697. # save warnings/boilerplate of simple test code
  3698. _LT_COMPILER_BOILERPLATE
  3699. _LT_LINKER_BOILERPLATE
  3700. # Allow CC to be a program name with arguments.
  3701. lt_save_CC="$CC"
  3702. CC=${GCJ-"gcj"}
  3703. compiler=$CC
  3704. _LT_AC_TAGVAR(compiler, $1)=$CC
  3705. _LT_CC_BASENAME([$compiler])
  3706. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  3707. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3708. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3709. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3710. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3711. AC_LIBTOOL_PROG_CC_C_O($1)
  3712. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3713. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3714. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3715. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3716. AC_LIBTOOL_CONFIG($1)
  3717. AC_LANG_RESTORE
  3718. CC="$lt_save_CC"
  3719. ])# AC_LIBTOOL_LANG_GCJ_CONFIG
  3720. # AC_LIBTOOL_LANG_RC_CONFIG
  3721. # -------------------------
  3722. # Ensure that the configuration vars for the Windows resource compiler are
  3723. # suitably defined. Those variables are subsequently used by
  3724. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3725. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  3726. AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  3727. [AC_LANG_SAVE
  3728. # Source file extension for RC test sources.
  3729. ac_ext=rc
  3730. # Object file extension for compiled RC test sources.
  3731. objext=o
  3732. _LT_AC_TAGVAR(objext, $1)=$objext
  3733. # Code to be used in simple compile tests
  3734. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  3735. # Code to be used in simple link tests
  3736. lt_simple_link_test_code="$lt_simple_compile_test_code"
  3737. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3738. _LT_AC_SYS_COMPILER
  3739. # save warnings/boilerplate of simple test code
  3740. _LT_COMPILER_BOILERPLATE
  3741. _LT_LINKER_BOILERPLATE
  3742. # Allow CC to be a program name with arguments.
  3743. lt_save_CC="$CC"
  3744. CC=${RC-"windres"}
  3745. compiler=$CC
  3746. _LT_AC_TAGVAR(compiler, $1)=$CC
  3747. _LT_CC_BASENAME([$compiler])
  3748. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3749. AC_LIBTOOL_CONFIG($1)
  3750. AC_LANG_RESTORE
  3751. CC="$lt_save_CC"
  3752. ])# AC_LIBTOOL_LANG_RC_CONFIG
  3753. # AC_LIBTOOL_CONFIG([TAGNAME])
  3754. # ----------------------------
  3755. # If TAGNAME is not passed, then create an initial libtool script
  3756. # with a default configuration from the untagged config vars. Otherwise
  3757. # add code to config.status for appending the configuration named by
  3758. # TAGNAME from the matching tagged config vars.
  3759. AC_DEFUN([AC_LIBTOOL_CONFIG],
  3760. [# The else clause should only fire when bootstrapping the
  3761. # libtool distribution, otherwise you forgot to ship ltmain.sh
  3762. # with your package, and you will get complaints that there are
  3763. # no rules to generate ltmain.sh.
  3764. if test -f "$ltmain"; then
  3765. # See if we are running on zsh, and set the options which allow our commands through
  3766. # without removal of \ escapes.
  3767. if test -n "${ZSH_VERSION+set}" ; then
  3768. setopt NO_GLOB_SUBST
  3769. fi
  3770. # Now quote all the things that may contain metacharacters while being
  3771. # careful not to overquote the AC_SUBSTed values. We take copies of the
  3772. # variables and quote the copies for generation of the libtool script.
  3773. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  3774. SED SHELL STRIP \
  3775. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  3776. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  3777. deplibs_check_method reload_flag reload_cmds need_locks \
  3778. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  3779. lt_cv_sys_global_symbol_to_c_name_address \
  3780. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3781. old_postinstall_cmds old_postuninstall_cmds \
  3782. _LT_AC_TAGVAR(compiler, $1) \
  3783. _LT_AC_TAGVAR(CC, $1) \
  3784. _LT_AC_TAGVAR(LD, $1) \
  3785. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  3786. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  3787. _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  3788. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  3789. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  3790. _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  3791. _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  3792. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  3793. _LT_AC_TAGVAR(old_archive_cmds, $1) \
  3794. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  3795. _LT_AC_TAGVAR(predep_objects, $1) \
  3796. _LT_AC_TAGVAR(postdep_objects, $1) \
  3797. _LT_AC_TAGVAR(predeps, $1) \
  3798. _LT_AC_TAGVAR(postdeps, $1) \
  3799. _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  3800. _LT_AC_TAGVAR(archive_cmds, $1) \
  3801. _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  3802. _LT_AC_TAGVAR(postinstall_cmds, $1) \
  3803. _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  3804. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  3805. _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  3806. _LT_AC_TAGVAR(no_undefined_flag, $1) \
  3807. _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  3808. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  3809. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  3810. _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  3811. _LT_AC_TAGVAR(hardcode_automatic, $1) \
  3812. _LT_AC_TAGVAR(module_cmds, $1) \
  3813. _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  3814. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  3815. _LT_AC_TAGVAR(exclude_expsyms, $1) \
  3816. _LT_AC_TAGVAR(include_expsyms, $1); do
  3817. case $var in
  3818. _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  3819. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  3820. _LT_AC_TAGVAR(archive_cmds, $1) | \
  3821. _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  3822. _LT_AC_TAGVAR(module_cmds, $1) | \
  3823. _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  3824. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  3825. _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  3826. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  3827. postinstall_cmds | postuninstall_cmds | \
  3828. old_postinstall_cmds | old_postuninstall_cmds | \
  3829. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3830. # Double-quote double-evaled strings.
  3831. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3832. ;;
  3833. *)
  3834. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3835. ;;
  3836. esac
  3837. done
  3838. case $lt_echo in
  3839. *'\[$]0 --fallback-echo"')
  3840. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  3841. ;;
  3842. esac
  3843. ifelse([$1], [],
  3844. [cfgfile="${ofile}T"
  3845. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  3846. $rm -f "$cfgfile"
  3847. AC_MSG_NOTICE([creating $ofile])],
  3848. [cfgfile="$ofile"])
  3849. cat <<__EOF__ >> "$cfgfile"
  3850. ifelse([$1], [],
  3851. [#! $SHELL
  3852. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3853. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3854. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3855. #
  3856. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  3857. # Free Software Foundation, Inc.
  3858. #
  3859. # This file is part of GNU Libtool:
  3860. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3861. #
  3862. # This program is free software; you can redistribute it and/or modify
  3863. # it under the terms of the GNU General Public License as published by
  3864. # the Free Software Foundation; either version 2 of the License, or
  3865. # (at your option) any later version.
  3866. #
  3867. # This program is distributed in the hope that it will be useful, but
  3868. # WITHOUT ANY WARRANTY; without even the implied warranty of
  3869. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3870. # General Public License for more details.
  3871. #
  3872. # You should have received a copy of the GNU General Public License
  3873. # along with this program; if not, write to the Free Software
  3874. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  3875. #
  3876. # As a special exception to the GNU General Public License, if you
  3877. # distribute this file as part of a program that contains a
  3878. # configuration script generated by Autoconf, you may include it under
  3879. # the same distribution terms that you use for the rest of that program.
  3880. # A sed program that does not truncate output.
  3881. SED=$lt_SED
  3882. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3883. Xsed="$SED -e 1s/^X//"
  3884. # The HP-UX ksh and POSIX shell print the target directory to stdout
  3885. # if CDPATH is set.
  3886. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3887. # The names of the tagged configurations supported by this script.
  3888. available_tags=
  3889. # ### BEGIN LIBTOOL CONFIG],
  3890. [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  3891. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3892. # Shell to use when invoking shell scripts.
  3893. SHELL=$lt_SHELL
  3894. # Whether or not to build shared libraries.
  3895. build_libtool_libs=$enable_shared
  3896. # Whether or not to build static libraries.
  3897. build_old_libs=$enable_static
  3898. # Whether or not to add -lc for building shared libraries.
  3899. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  3900. # Whether or not to disallow shared libs when runtime libs are static
  3901. allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  3902. # Whether or not to optimize for fast installation.
  3903. fast_install=$enable_fast_install
  3904. # The host system.
  3905. host_alias=$host_alias
  3906. host=$host
  3907. host_os=$host_os
  3908. # The build system.
  3909. build_alias=$build_alias
  3910. build=$build
  3911. build_os=$build_os
  3912. # An echo program that does not interpret backslashes.
  3913. echo=$lt_echo
  3914. # The archiver.
  3915. AR=$lt_AR
  3916. AR_FLAGS=$lt_AR_FLAGS
  3917. # A C compiler.
  3918. LTCC=$lt_LTCC
  3919. # LTCC compiler flags.
  3920. LTCFLAGS=$lt_LTCFLAGS
  3921. # A language-specific compiler.
  3922. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  3923. # Is the compiler the GNU C compiler?
  3924. with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  3925. # An ERE matcher.
  3926. EGREP=$lt_EGREP
  3927. # The linker used to build libraries.
  3928. LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  3929. # Whether we need hard or soft links.
  3930. LN_S=$lt_LN_S
  3931. # A BSD-compatible nm program.
  3932. NM=$lt_NM
  3933. # A symbol stripping program
  3934. STRIP=$lt_STRIP
  3935. # Used to examine libraries when file_magic_cmd begins "file"
  3936. MAGIC_CMD=$MAGIC_CMD
  3937. # Used on cygwin: DLL creation program.
  3938. DLLTOOL="$DLLTOOL"
  3939. # Used on cygwin: object dumper.
  3940. OBJDUMP="$OBJDUMP"
  3941. # Used on cygwin: assembler.
  3942. AS="$AS"
  3943. # The name of the directory that contains temporary libtool files.
  3944. objdir=$objdir
  3945. # How to create reloadable object files.
  3946. reload_flag=$lt_reload_flag
  3947. reload_cmds=$lt_reload_cmds
  3948. # How to pass a linker flag through the compiler.
  3949. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  3950. # Object file suffix (normally "o").
  3951. objext="$ac_objext"
  3952. # Old archive suffix (normally "a").
  3953. libext="$libext"
  3954. # Shared library suffix (normally ".so").
  3955. shrext_cmds='$shrext_cmds'
  3956. # Executable file suffix (normally "").
  3957. exeext="$exeext"
  3958. # Additional compiler flags for building library objects.
  3959. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  3960. pic_mode=$pic_mode
  3961. # What is the maximum length of a command?
  3962. max_cmd_len=$lt_cv_sys_max_cmd_len
  3963. # Does compiler simultaneously support -c and -o options?
  3964. compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  3965. # Must we lock files when doing compilation?
  3966. need_locks=$lt_need_locks
  3967. # Do we need the lib prefix for modules?
  3968. need_lib_prefix=$need_lib_prefix
  3969. # Do we need a version for libraries?
  3970. need_version=$need_version
  3971. # Whether dlopen is supported.
  3972. dlopen_support=$enable_dlopen
  3973. # Whether dlopen of programs is supported.
  3974. dlopen_self=$enable_dlopen_self
  3975. # Whether dlopen of statically linked programs is supported.
  3976. dlopen_self_static=$enable_dlopen_self_static
  3977. # Compiler flag to prevent dynamic linking.
  3978. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  3979. # Compiler flag to turn off builtin functions.
  3980. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  3981. # Compiler flag to allow reflexive dlopens.
  3982. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  3983. # Compiler flag to generate shared objects directly from archives.
  3984. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  3985. # Compiler flag to generate thread-safe objects.
  3986. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  3987. # Library versioning type.
  3988. version_type=$version_type
  3989. # Format of library name prefix.
  3990. libname_spec=$lt_libname_spec
  3991. # List of archive names. First name is the real one, the rest are links.
  3992. # The last name is the one that the linker finds with -lNAME.
  3993. library_names_spec=$lt_library_names_spec
  3994. # The coded name of the library, if different from the real name.
  3995. soname_spec=$lt_soname_spec
  3996. # Commands used to build and install an old-style archive.
  3997. RANLIB=$lt_RANLIB
  3998. old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  3999. old_postinstall_cmds=$lt_old_postinstall_cmds
  4000. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4001. # Create an old-style archive from a shared archive.
  4002. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4003. # Create a temporary old-style archive to link instead of a shared archive.
  4004. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4005. # Commands used to build and install a shared archive.
  4006. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4007. archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4008. postinstall_cmds=$lt_postinstall_cmds
  4009. postuninstall_cmds=$lt_postuninstall_cmds
  4010. # Commands used to build a loadable module (assumed same as above if empty)
  4011. module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4012. module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4013. # Commands to strip libraries.
  4014. old_striplib=$lt_old_striplib
  4015. striplib=$lt_striplib
  4016. # Dependencies to place before the objects being linked to create a
  4017. # shared library.
  4018. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4019. # Dependencies to place after the objects being linked to create a
  4020. # shared library.
  4021. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4022. # Dependencies to place before the objects being linked to create a
  4023. # shared library.
  4024. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4025. # Dependencies to place after the objects being linked to create a
  4026. # shared library.
  4027. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4028. # The library search path used internally by the compiler when linking
  4029. # a shared library.
  4030. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4031. # Method to check whether dependent libraries are shared objects.
  4032. deplibs_check_method=$lt_deplibs_check_method
  4033. # Command to use when deplibs_check_method == file_magic.
  4034. file_magic_cmd=$lt_file_magic_cmd
  4035. # Flag that allows shared libraries with undefined symbols to be built.
  4036. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4037. # Flag that forces no undefined symbols.
  4038. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4039. # Commands used to finish a libtool library installation in a directory.
  4040. finish_cmds=$lt_finish_cmds
  4041. # Same as above, but a single script fragment to be evaled but not shown.
  4042. finish_eval=$lt_finish_eval
  4043. # Take the output of nm and produce a listing of raw symbols and C names.
  4044. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4045. # Transform the output of nm in a proper C declaration
  4046. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4047. # Transform the output of nm in a C name address pair
  4048. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4049. # This is the shared library runtime path variable.
  4050. runpath_var=$runpath_var
  4051. # This is the shared library path variable.
  4052. shlibpath_var=$shlibpath_var
  4053. # Is shlibpath searched before the hard-coded library search path?
  4054. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4055. # How to hardcode a shared library path into an executable.
  4056. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4057. # Whether we should hardcode library paths into libraries.
  4058. hardcode_into_libs=$hardcode_into_libs
  4059. # Flag to hardcode \$libdir into a binary during linking.
  4060. # This must work even if \$libdir does not exist.
  4061. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4062. # If ld is used when linking, flag to hardcode \$libdir into
  4063. # a binary during linking. This must work even if \$libdir does
  4064. # not exist.
  4065. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4066. # Whether we need a single -rpath flag with a separated argument.
  4067. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4068. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4069. # resulting binary.
  4070. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4071. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4072. # resulting binary.
  4073. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4074. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4075. # the resulting binary.
  4076. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4077. # Set to yes if building a shared library automatically hardcodes DIR into the library
  4078. # and all subsequent libraries and executables linked against it.
  4079. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4080. # Variables whose values should be saved in libtool wrapper scripts and
  4081. # restored at relink time.
  4082. variables_saved_for_relink="$variables_saved_for_relink"
  4083. # Whether libtool must link a program against all its dependency libraries.
  4084. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4085. # Compile-time system search path for libraries
  4086. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4087. # Run-time system search path for libraries
  4088. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4089. # Fix the shell variable \$srcfile for the compiler.
  4090. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  4091. # Set to yes if exported symbols are required.
  4092. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4093. # The commands to list exported symbols.
  4094. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4095. # The commands to extract the exported symbol list from a shared archive.
  4096. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4097. # Symbols that should not be listed in the preloaded symbols.
  4098. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4099. # Symbols that must always be exported.
  4100. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4101. ifelse([$1],[],
  4102. [# ### END LIBTOOL CONFIG],
  4103. [# ### END LIBTOOL TAG CONFIG: $tagname])
  4104. __EOF__
  4105. ifelse([$1],[], [
  4106. case $host_os in
  4107. aix3*)
  4108. cat <<\EOF >> "$cfgfile"
  4109. # AIX sometimes has problems with the GCC collect2 program. For some
  4110. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4111. # vanish in a puff of smoke.
  4112. if test "X${COLLECT_NAMES+set}" != Xset; then
  4113. COLLECT_NAMES=
  4114. export COLLECT_NAMES
  4115. fi
  4116. EOF
  4117. ;;
  4118. esac
  4119. # We use sed instead of cat because bash on DJGPP gets confused if
  4120. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4121. # text mode, it properly converts lines to CR/LF. This bash problem
  4122. # is reportedly fixed, but why not run on old versions too?
  4123. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4124. mv -f "$cfgfile" "$ofile" || \
  4125. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4126. chmod +x "$ofile"
  4127. ])
  4128. else
  4129. # If there is no Makefile yet, we rely on a make rule to execute
  4130. # `config.status --recheck' to rerun these tests and create the
  4131. # libtool script then.
  4132. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4133. if test -f "$ltmain_in"; then
  4134. test -f Makefile && make "$ltmain"
  4135. fi
  4136. fi
  4137. ])# AC_LIBTOOL_CONFIG
  4138. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4139. # -------------------------------------------
  4140. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4141. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4142. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4143. if test "$GCC" = yes; then
  4144. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4145. AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4146. lt_cv_prog_compiler_rtti_exceptions,
  4147. [-fno-rtti -fno-exceptions], [],
  4148. [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4149. fi
  4150. ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4151. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4152. # ---------------------------------
  4153. AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4154. [AC_REQUIRE([AC_CANONICAL_HOST])
  4155. AC_REQUIRE([AC_PROG_NM])
  4156. AC_REQUIRE([AC_OBJEXT])
  4157. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4158. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4159. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4160. [
  4161. # These are sane defaults that work on at least a few old systems.
  4162. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4163. # Character class describing NM global symbol codes.
  4164. symcode='[[BCDEGRST]]'
  4165. # Regexp to match symbols that can be accessed directly from C.
  4166. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4167. # Transform an extracted symbol line into a proper C declaration
  4168. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4169. # Transform an extracted symbol line into symbol name and symbol address
  4170. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4171. # Define system-specific variables.
  4172. case $host_os in
  4173. aix*)
  4174. symcode='[[BCDT]]'
  4175. ;;
  4176. cygwin* | mingw* | pw32*)
  4177. symcode='[[ABCDGISTW]]'
  4178. ;;
  4179. hpux*) # Its linker distinguishes data from code symbols
  4180. if test "$host_cpu" = ia64; then
  4181. symcode='[[ABCDEGRST]]'
  4182. fi
  4183. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4184. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4185. ;;
  4186. linux*)
  4187. if test "$host_cpu" = ia64; then
  4188. symcode='[[ABCDGIRSTW]]'
  4189. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4190. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4191. fi
  4192. ;;
  4193. irix* | nonstopux*)
  4194. symcode='[[BCDEGRST]]'
  4195. ;;
  4196. osf*)
  4197. symcode='[[BCDEGQRST]]'
  4198. ;;
  4199. solaris*)
  4200. symcode='[[BDRT]]'
  4201. ;;
  4202. sco3.2v5*)
  4203. symcode='[[DT]]'
  4204. ;;
  4205. sysv4.2uw2*)
  4206. symcode='[[DT]]'
  4207. ;;
  4208. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4209. symcode='[[ABDT]]'
  4210. ;;
  4211. sysv4)
  4212. symcode='[[DFNSTU]]'
  4213. ;;
  4214. esac
  4215. # Handle CRLF in mingw tool chain
  4216. opt_cr=
  4217. case $build_os in
  4218. mingw*)
  4219. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4220. ;;
  4221. esac
  4222. # If we're using GNU nm, then use its standard symbol codes.
  4223. case `$NM -V 2>&1` in
  4224. *GNU* | *'with BFD'*)
  4225. symcode='[[ABCDGIRSTW]]' ;;
  4226. esac
  4227. # Try without a prefix undercore, then with it.
  4228. for ac_symprfx in "" "_"; do
  4229. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4230. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4231. # Write the raw and C identifiers.
  4232. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4233. # Check to see that the pipe works correctly.
  4234. pipe_works=no
  4235. rm -f conftest*
  4236. cat > conftest.$ac_ext <<EOF
  4237. #ifdef __cplusplus
  4238. extern "C" {
  4239. #endif
  4240. char nm_test_var;
  4241. void nm_test_func(){}
  4242. #ifdef __cplusplus
  4243. }
  4244. #endif
  4245. int main(){nm_test_var='a';nm_test_func();return(0);}
  4246. EOF
  4247. if AC_TRY_EVAL(ac_compile); then
  4248. # Now try to grab the symbols.
  4249. nlist=conftest.nm
  4250. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4251. # Try sorting and uniquifying the output.
  4252. if sort "$nlist" | uniq > "$nlist"T; then
  4253. mv -f "$nlist"T "$nlist"
  4254. else
  4255. rm -f "$nlist"T
  4256. fi
  4257. # Make sure that we snagged all the symbols we need.
  4258. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4259. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4260. cat <<EOF > conftest.$ac_ext
  4261. #ifdef __cplusplus
  4262. extern "C" {
  4263. #endif
  4264. EOF
  4265. # Now generate the symbol file.
  4266. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4267. cat <<EOF >> conftest.$ac_ext
  4268. #if defined (__STDC__) && __STDC__
  4269. # define lt_ptr_t void *
  4270. #else
  4271. # define lt_ptr_t char *
  4272. # define const
  4273. #endif
  4274. /* The mapping between symbol names and symbols. */
  4275. const struct {
  4276. const char *name;
  4277. lt_ptr_t address;
  4278. }
  4279. lt_preloaded_symbols[[]] =
  4280. {
  4281. EOF
  4282. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4283. cat <<\EOF >> conftest.$ac_ext
  4284. {0, (lt_ptr_t) 0}
  4285. };
  4286. #ifdef __cplusplus
  4287. }
  4288. #endif
  4289. EOF
  4290. # Now try linking the two files.
  4291. mv conftest.$ac_objext conftstm.$ac_objext
  4292. lt_save_LIBS="$LIBS"
  4293. lt_save_CFLAGS="$CFLAGS"
  4294. LIBS="conftstm.$ac_objext"
  4295. CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4296. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4297. pipe_works=yes
  4298. fi
  4299. LIBS="$lt_save_LIBS"
  4300. CFLAGS="$lt_save_CFLAGS"
  4301. else
  4302. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4303. fi
  4304. else
  4305. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4306. fi
  4307. else
  4308. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4309. fi
  4310. else
  4311. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4312. cat conftest.$ac_ext >&5
  4313. fi
  4314. rm -f conftest* conftst*
  4315. # Do not use the global_symbol_pipe unless it works.
  4316. if test "$pipe_works" = yes; then
  4317. break
  4318. else
  4319. lt_cv_sys_global_symbol_pipe=
  4320. fi
  4321. done
  4322. ])
  4323. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4324. lt_cv_sys_global_symbol_to_cdecl=
  4325. fi
  4326. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4327. AC_MSG_RESULT(failed)
  4328. else
  4329. AC_MSG_RESULT(ok)
  4330. fi
  4331. ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4332. # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4333. # ---------------------------------------
  4334. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4335. [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4336. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4337. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4338. AC_MSG_CHECKING([for $compiler option to produce PIC])
  4339. ifelse([$1],[CXX],[
  4340. # C++ specific cases for pic, static, wl, etc.
  4341. if test "$GXX" = yes; then
  4342. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4343. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4344. case $host_os in
  4345. aix*)
  4346. # All AIX code is PIC.
  4347. if test "$host_cpu" = ia64; then
  4348. # AIX 5 now supports IA64 processor
  4349. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4350. fi
  4351. ;;
  4352. amigaos*)
  4353. # FIXME: we need at least 68020 code to build shared libraries, but
  4354. # adding the `-m68020' flag to GCC prevents building anything better,
  4355. # like `-m68040'.
  4356. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4357. ;;
  4358. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4359. # PIC is the default for these OSes.
  4360. ;;
  4361. mingw* | os2* | pw32*)
  4362. # This hack is so that the source file can tell whether it is being
  4363. # built for inclusion in a dll (and should export symbols for example).
  4364. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4365. ;;
  4366. darwin* | rhapsody*)
  4367. # PIC is the default on this platform
  4368. # Common symbols not allowed in MH_DYLIB files
  4369. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4370. ;;
  4371. *djgpp*)
  4372. # DJGPP does not support shared libraries at all
  4373. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4374. ;;
  4375. interix3*)
  4376. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4377. # Instead, we relocate shared libraries at runtime.
  4378. ;;
  4379. sysv4*MP*)
  4380. if test -d /usr/nec; then
  4381. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4382. fi
  4383. ;;
  4384. hpux*)
  4385. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4386. # not for PA HP-UX.
  4387. case $host_cpu in
  4388. hppa*64*|ia64*)
  4389. ;;
  4390. *)
  4391. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4392. ;;
  4393. esac
  4394. ;;
  4395. *)
  4396. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4397. ;;
  4398. esac
  4399. else
  4400. case $host_os in
  4401. aix4* | aix5*)
  4402. # All AIX code is PIC.
  4403. if test "$host_cpu" = ia64; then
  4404. # AIX 5 now supports IA64 processor
  4405. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4406. else
  4407. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4408. fi
  4409. ;;
  4410. chorus*)
  4411. case $cc_basename in
  4412. cxch68*)
  4413. # Green Hills C++ Compiler
  4414. # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  4415. ;;
  4416. esac
  4417. ;;
  4418. darwin*)
  4419. # PIC is the default on this platform
  4420. # Common symbols not allowed in MH_DYLIB files
  4421. case $cc_basename in
  4422. xlc*)
  4423. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4424. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4425. ;;
  4426. esac
  4427. ;;
  4428. dgux*)
  4429. case $cc_basename in
  4430. ec++*)
  4431. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4432. ;;
  4433. ghcx*)
  4434. # Green Hills C++ Compiler
  4435. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4436. ;;
  4437. *)
  4438. ;;
  4439. esac
  4440. ;;
  4441. freebsd* | kfreebsd*-gnu | dragonfly*)
  4442. # FreeBSD uses GNU C++
  4443. ;;
  4444. hpux9* | hpux10* | hpux11*)
  4445. case $cc_basename in
  4446. CC*)
  4447. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4448. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4449. if test "$host_cpu" != ia64; then
  4450. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4451. fi
  4452. ;;
  4453. aCC*)
  4454. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4455. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4456. case $host_cpu in
  4457. hppa*64*|ia64*)
  4458. # +Z the default
  4459. ;;
  4460. *)
  4461. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4462. ;;
  4463. esac
  4464. ;;
  4465. *)
  4466. ;;
  4467. esac
  4468. ;;
  4469. interix*)
  4470. # This is c89, which is MS Visual C++ (no shared libs)
  4471. # Anyone wants to do a port?
  4472. ;;
  4473. irix5* | irix6* | nonstopux*)
  4474. case $cc_basename in
  4475. CC*)
  4476. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4477. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4478. # CC pic flag -KPIC is the default.
  4479. ;;
  4480. *)
  4481. ;;
  4482. esac
  4483. ;;
  4484. linux*)
  4485. case $cc_basename in
  4486. KCC*)
  4487. # KAI C++ Compiler
  4488. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4489. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4490. ;;
  4491. icpc* | ecpc*)
  4492. # Intel C++
  4493. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4494. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4495. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4496. ;;
  4497. pgCC*)
  4498. # Portland Group C++ compiler.
  4499. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4500. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4501. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4502. ;;
  4503. cxx*)
  4504. # Compaq C++
  4505. # Make sure the PIC flag is empty. It appears that all Alpha
  4506. # Linux and Compaq Tru64 Unix objects are PIC.
  4507. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4508. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4509. ;;
  4510. *)
  4511. ;;
  4512. esac
  4513. ;;
  4514. lynxos*)
  4515. ;;
  4516. m88k*)
  4517. ;;
  4518. mvs*)
  4519. case $cc_basename in
  4520. cxx*)
  4521. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4522. ;;
  4523. *)
  4524. ;;
  4525. esac
  4526. ;;
  4527. netbsd*)
  4528. ;;
  4529. osf3* | osf4* | osf5*)
  4530. case $cc_basename in
  4531. KCC*)
  4532. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4533. ;;
  4534. RCC*)
  4535. # Rational C++ 2.4.1
  4536. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4537. ;;
  4538. cxx*)
  4539. # Digital/Compaq C++
  4540. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4541. # Make sure the PIC flag is empty. It appears that all Alpha
  4542. # Linux and Compaq Tru64 Unix objects are PIC.
  4543. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4544. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4545. ;;
  4546. *)
  4547. ;;
  4548. esac
  4549. ;;
  4550. psos*)
  4551. ;;
  4552. solaris*)
  4553. case $cc_basename in
  4554. CC*)
  4555. # Sun C++ 4.2, 5.x and Centerline C++
  4556. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4557. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4558. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4559. ;;
  4560. gcx*)
  4561. # Green Hills C++ Compiler
  4562. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4563. ;;
  4564. *)
  4565. ;;
  4566. esac
  4567. ;;
  4568. sunos4*)
  4569. case $cc_basename in
  4570. CC*)
  4571. # Sun C++ 4.x
  4572. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4573. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4574. ;;
  4575. lcc*)
  4576. # Lucid
  4577. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4578. ;;
  4579. *)
  4580. ;;
  4581. esac
  4582. ;;
  4583. tandem*)
  4584. case $cc_basename in
  4585. NCC*)
  4586. # NonStop-UX NCC 3.20
  4587. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4588. ;;
  4589. *)
  4590. ;;
  4591. esac
  4592. ;;
  4593. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4594. case $cc_basename in
  4595. CC*)
  4596. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4597. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4598. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4599. ;;
  4600. esac
  4601. ;;
  4602. vxworks*)
  4603. ;;
  4604. *)
  4605. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4606. ;;
  4607. esac
  4608. fi
  4609. ],
  4610. [
  4611. if test "$GCC" = yes; then
  4612. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4613. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4614. case $host_os in
  4615. aix*)
  4616. # All AIX code is PIC.
  4617. if test "$host_cpu" = ia64; then
  4618. # AIX 5 now supports IA64 processor
  4619. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4620. fi
  4621. ;;
  4622. amigaos*)
  4623. # FIXME: we need at least 68020 code to build shared libraries, but
  4624. # adding the `-m68020' flag to GCC prevents building anything better,
  4625. # like `-m68040'.
  4626. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4627. ;;
  4628. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4629. # PIC is the default for these OSes.
  4630. ;;
  4631. mingw* | pw32* | os2*)
  4632. # This hack is so that the source file can tell whether it is being
  4633. # built for inclusion in a dll (and should export symbols for example).
  4634. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4635. ;;
  4636. darwin* | rhapsody*)
  4637. # PIC is the default on this platform
  4638. # Common symbols not allowed in MH_DYLIB files
  4639. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4640. ;;
  4641. interix3*)
  4642. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4643. # Instead, we relocate shared libraries at runtime.
  4644. ;;
  4645. msdosdjgpp*)
  4646. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4647. # on systems that don't support them.
  4648. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4649. enable_shared=no
  4650. ;;
  4651. sysv4*MP*)
  4652. if test -d /usr/nec; then
  4653. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4654. fi
  4655. ;;
  4656. hpux*)
  4657. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4658. # not for PA HP-UX.
  4659. case $host_cpu in
  4660. hppa*64*|ia64*)
  4661. # +Z the default
  4662. ;;
  4663. *)
  4664. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4665. ;;
  4666. esac
  4667. ;;
  4668. *)
  4669. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4670. ;;
  4671. esac
  4672. else
  4673. # PORTME Check for flag to pass linker flags through the system compiler.
  4674. case $host_os in
  4675. aix*)
  4676. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4677. if test "$host_cpu" = ia64; then
  4678. # AIX 5 now supports IA64 processor
  4679. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4680. else
  4681. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4682. fi
  4683. ;;
  4684. darwin*)
  4685. # PIC is the default on this platform
  4686. # Common symbols not allowed in MH_DYLIB files
  4687. case $cc_basename in
  4688. xlc*)
  4689. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4690. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4691. ;;
  4692. esac
  4693. ;;
  4694. mingw* | pw32* | os2*)
  4695. # This hack is so that the source file can tell whether it is being
  4696. # built for inclusion in a dll (and should export symbols for example).
  4697. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4698. ;;
  4699. hpux9* | hpux10* | hpux11*)
  4700. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4701. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4702. # not for PA HP-UX.
  4703. case $host_cpu in
  4704. hppa*64*|ia64*)
  4705. # +Z the default
  4706. ;;
  4707. *)
  4708. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4709. ;;
  4710. esac
  4711. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4712. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4713. ;;
  4714. irix5* | irix6* | nonstopux*)
  4715. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4716. # PIC (with -KPIC) is the default.
  4717. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4718. ;;
  4719. newsos6)
  4720. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4721. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4722. ;;
  4723. linux*)
  4724. case $cc_basename in
  4725. icc* | ecc*)
  4726. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4727. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4728. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4729. ;;
  4730. pgcc* | pgf77* | pgf90* | pgf95*)
  4731. # Portland Group compilers (*not* the Pentium gcc compiler,
  4732. # which looks to be a dead project)
  4733. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4734. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4735. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4736. ;;
  4737. ccc*)
  4738. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4739. # All Alpha code is PIC.
  4740. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4741. ;;
  4742. esac
  4743. ;;
  4744. osf3* | osf4* | osf5*)
  4745. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4746. # All OSF/1 code is PIC.
  4747. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4748. ;;
  4749. solaris*)
  4750. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4751. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4752. case $cc_basename in
  4753. f77* | f90* | f95*)
  4754. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4755. *)
  4756. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4757. esac
  4758. ;;
  4759. sunos4*)
  4760. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4761. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4762. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4763. ;;
  4764. sysv4 | sysv4.2uw2* | sysv4.3*)
  4765. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4766. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4767. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4768. ;;
  4769. sysv4*MP*)
  4770. if test -d /usr/nec ;then
  4771. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4772. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4773. fi
  4774. ;;
  4775. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4776. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4777. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4778. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4779. ;;
  4780. unicos*)
  4781. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4782. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4783. ;;
  4784. uts4*)
  4785. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4786. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4787. ;;
  4788. *)
  4789. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4790. ;;
  4791. esac
  4792. fi
  4793. ])
  4794. AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  4795. #
  4796. # Check to make sure the PIC flag actually works.
  4797. #
  4798. if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4799. AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  4800. _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  4801. [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  4802. [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  4803. "" | " "*) ;;
  4804. *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4805. esac],
  4806. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4807. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4808. fi
  4809. case $host_os in
  4810. # For platforms which do not support PIC, -DPIC is meaningless:
  4811. *djgpp*)
  4812. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4813. ;;
  4814. *)
  4815. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  4816. ;;
  4817. esac
  4818. #
  4819. # Check to make sure the static flag actually works.
  4820. #
  4821. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  4822. AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4823. _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4824. $lt_tmp_static_flag,
  4825. [],
  4826. [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4827. ])
  4828. # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  4829. # ------------------------------------
  4830. # See if the linker supports building shared libraries.
  4831. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  4832. [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4833. ifelse([$1],[CXX],[
  4834. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4835. case $host_os in
  4836. aix4* | aix5*)
  4837. # If we're using GNU nm, then we don't want the "-C" option.
  4838. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4839. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4840. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4841. else
  4842. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4843. fi
  4844. ;;
  4845. pw32*)
  4846. _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4847. ;;
  4848. cygwin* | mingw*)
  4849. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  4850. ;;
  4851. *)
  4852. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4853. ;;
  4854. esac
  4855. ],[
  4856. runpath_var=
  4857. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4858. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4859. _LT_AC_TAGVAR(archive_cmds, $1)=
  4860. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4861. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  4862. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4863. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4864. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4865. _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  4866. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4867. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4868. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4869. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4870. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4871. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4872. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4873. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4874. _LT_AC_TAGVAR(module_cmds, $1)=
  4875. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4876. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4877. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4878. # include_expsyms should be a list of space-separated symbols to be *always*
  4879. # included in the symbol list
  4880. _LT_AC_TAGVAR(include_expsyms, $1)=
  4881. # exclude_expsyms can be an extended regexp of symbols to exclude
  4882. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4883. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4884. # as well as any symbol that contains `d'.
  4885. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  4886. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4887. # platforms (ab)use it in PIC code, but their linkers get confused if
  4888. # the symbol is explicitly referenced. Since portable code cannot
  4889. # rely on this symbol name, it's probably fine to never include it in
  4890. # preloaded symbol tables.
  4891. extract_expsyms_cmds=
  4892. # Just being paranoid about ensuring that cc_basename is set.
  4893. _LT_CC_BASENAME([$compiler])
  4894. case $host_os in
  4895. cygwin* | mingw* | pw32*)
  4896. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4897. # When not using gcc, we currently assume that we are using
  4898. # Microsoft Visual C++.
  4899. if test "$GCC" != yes; then
  4900. with_gnu_ld=no
  4901. fi
  4902. ;;
  4903. interix*)
  4904. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4905. with_gnu_ld=yes
  4906. ;;
  4907. openbsd*)
  4908. with_gnu_ld=no
  4909. ;;
  4910. esac
  4911. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4912. if test "$with_gnu_ld" = yes; then
  4913. # If archive_cmds runs LD, not CC, wlarc should be empty
  4914. wlarc='${wl}'
  4915. # Set some defaults for GNU ld with shared library support. These
  4916. # are reset later if shared libraries are not supported. Putting them
  4917. # here allows them to be overridden if necessary.
  4918. runpath_var=LD_RUN_PATH
  4919. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4920. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4921. # ancient GNU ld didn't support --whole-archive et. al.
  4922. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  4923. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4924. else
  4925. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4926. fi
  4927. supports_anon_versioning=no
  4928. case `$LD -v 2>/dev/null` in
  4929. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4930. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4931. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4932. *\ 2.11.*) ;; # other 2.11 versions
  4933. *) supports_anon_versioning=yes ;;
  4934. esac
  4935. # See if GNU ld supports shared libraries.
  4936. case $host_os in
  4937. aix3* | aix4* | aix5*)
  4938. # On AIX/PPC, the GNU linker is very broken
  4939. if test "$host_cpu" != ia64; then
  4940. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4941. cat <<EOF 1>&2
  4942. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4943. *** to be unable to reliably create shared libraries on AIX.
  4944. *** Therefore, libtool is disabling shared libraries support. If you
  4945. *** really care for shared libraries, you may want to modify your PATH
  4946. *** so that a non-GNU linker is found, and then restart.
  4947. EOF
  4948. fi
  4949. ;;
  4950. amigaos*)
  4951. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4952. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4953. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4954. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4955. # that the semantics of dynamic libraries on AmigaOS, at least up
  4956. # to version 4, is to share data among multiple programs linked
  4957. # with the same dynamic library. Since this doesn't match the
  4958. # behavior of shared libraries on other platforms, we can't use
  4959. # them.
  4960. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4961. ;;
  4962. beos*)
  4963. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4964. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4965. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4966. # support --undefined. This deserves some investigation. FIXME
  4967. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4968. else
  4969. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4970. fi
  4971. ;;
  4972. cygwin* | mingw* | pw32*)
  4973. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4974. # as there is no search path for DLLs.
  4975. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4976. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4977. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4978. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4979. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  4980. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4981. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4982. # If the export-symbols file already is a .def file (1st line
  4983. # is EXPORTS), use it as is; otherwise, prepend...
  4984. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4985. cp $export_symbols $output_objdir/$soname.def;
  4986. else
  4987. echo EXPORTS > $output_objdir/$soname.def;
  4988. cat $export_symbols >> $output_objdir/$soname.def;
  4989. fi~
  4990. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4991. else
  4992. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4993. fi
  4994. ;;
  4995. interix3*)
  4996. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4997. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4998. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4999. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5000. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5001. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5002. # default) and relocated if they conflict, which is a slow very memory
  5003. # consuming and fragmenting process. To avoid this, we pick a random,
  5004. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5005. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5006. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5007. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5008. ;;
  5009. linux*)
  5010. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5011. tmp_addflag=
  5012. case $cc_basename,$host_cpu in
  5013. pgcc*) # Portland Group C compiler
  5014. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5015. tmp_addflag=' $pic_flag'
  5016. ;;
  5017. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5018. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5019. tmp_addflag=' $pic_flag -Mnomain' ;;
  5020. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5021. tmp_addflag=' -i_dynamic' ;;
  5022. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5023. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5024. ifc* | ifort*) # Intel Fortran compiler
  5025. tmp_addflag=' -nofor_main' ;;
  5026. esac
  5027. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5028. if test $supports_anon_versioning = yes; then
  5029. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5030. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5031. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5032. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5033. fi
  5034. else
  5035. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5036. fi
  5037. ;;
  5038. netbsd*)
  5039. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5040. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5041. wlarc=
  5042. else
  5043. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5044. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5045. fi
  5046. ;;
  5047. solaris*)
  5048. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5049. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5050. cat <<EOF 1>&2
  5051. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5052. *** create shared libraries on Solaris systems. Therefore, libtool
  5053. *** is disabling shared libraries support. We urge you to upgrade GNU
  5054. *** binutils to release 2.9.1 or newer. Another option is to modify
  5055. *** your PATH or compiler configuration so that the native linker is
  5056. *** used, and then restart.
  5057. EOF
  5058. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5059. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5060. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5061. else
  5062. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5063. fi
  5064. ;;
  5065. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5066. case `$LD -v 2>&1` in
  5067. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5068. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5069. cat <<_LT_EOF 1>&2
  5070. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5071. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5072. *** is disabling shared libraries support. We urge you to upgrade GNU
  5073. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5074. *** your PATH or compiler configuration so that the native linker is
  5075. *** used, and then restart.
  5076. _LT_EOF
  5077. ;;
  5078. *)
  5079. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5080. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5081. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5082. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5083. else
  5084. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5085. fi
  5086. ;;
  5087. esac
  5088. ;;
  5089. sunos4*)
  5090. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5091. wlarc=
  5092. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5093. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5094. ;;
  5095. *)
  5096. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5097. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5098. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5099. else
  5100. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5101. fi
  5102. ;;
  5103. esac
  5104. if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5105. runpath_var=
  5106. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5107. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5108. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5109. fi
  5110. else
  5111. # PORTME fill in a description of your system's linker (not GNU ld)
  5112. case $host_os in
  5113. aix3*)
  5114. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5115. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5116. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5117. # Note: this linker hardcodes the directories in LIBPATH if there
  5118. # are no directories specified by -L.
  5119. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5120. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5121. # Neither direct hardcoding nor static linking is supported with a
  5122. # broken collect2.
  5123. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5124. fi
  5125. ;;
  5126. aix4* | aix5*)
  5127. if test "$host_cpu" = ia64; then
  5128. # On IA64, the linker does run time linking by default, so we don't
  5129. # have to do anything special.
  5130. aix_use_runtimelinking=no
  5131. exp_sym_flag='-Bexport'
  5132. no_entry_flag=""
  5133. else
  5134. # If we're using GNU nm, then we don't want the "-C" option.
  5135. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5136. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5137. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5138. else
  5139. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5140. fi
  5141. aix_use_runtimelinking=no
  5142. # Test if we are trying to use run time linking or normal
  5143. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5144. # need to do runtime linking.
  5145. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5146. for ld_flag in $LDFLAGS; do
  5147. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5148. aix_use_runtimelinking=yes
  5149. break
  5150. fi
  5151. done
  5152. ;;
  5153. esac
  5154. exp_sym_flag='-bexport'
  5155. no_entry_flag='-bnoentry'
  5156. fi
  5157. # When large executables or shared objects are built, AIX ld can
  5158. # have problems creating the table of contents. If linking a library
  5159. # or program results in "error TOC overflow" add -mminimal-toc to
  5160. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5161. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5162. _LT_AC_TAGVAR(archive_cmds, $1)=''
  5163. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5164. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5165. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5166. if test "$GCC" = yes; then
  5167. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5168. # We only want to do this on AIX 4.2 and lower, the check
  5169. # below for broken collect2 doesn't work under 4.3+
  5170. collect2name=`${CC} -print-prog-name=collect2`
  5171. if test -f "$collect2name" && \
  5172. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5173. then
  5174. # We have reworked collect2
  5175. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5176. else
  5177. # We have old collect2
  5178. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5179. # It fails to find uninstalled libraries when the uninstalled
  5180. # path is not listed in the libpath. Setting hardcode_minus_L
  5181. # to unsupported forces relinking
  5182. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5183. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5184. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5185. fi
  5186. ;;
  5187. esac
  5188. shared_flag='-shared'
  5189. if test "$aix_use_runtimelinking" = yes; then
  5190. shared_flag="$shared_flag "'${wl}-G'
  5191. fi
  5192. else
  5193. # not using gcc
  5194. if test "$host_cpu" = ia64; then
  5195. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5196. # chokes on -Wl,-G. The following line is correct:
  5197. shared_flag='-G'
  5198. else
  5199. if test "$aix_use_runtimelinking" = yes; then
  5200. shared_flag='${wl}-G'
  5201. else
  5202. shared_flag='${wl}-bM:SRE'
  5203. fi
  5204. fi
  5205. fi
  5206. # It seems that -bexpall does not export symbols beginning with
  5207. # underscore (_), so it is better to generate a list of symbols to export.
  5208. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5209. if test "$aix_use_runtimelinking" = yes; then
  5210. # Warning - without using the other runtime loading flags (-brtl),
  5211. # -berok will link without error, but may produce a broken library.
  5212. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5213. # Determine the default libpath from the value encoded in an empty executable.
  5214. _LT_AC_SYS_LIBPATH_AIX
  5215. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5216. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5217. else
  5218. if test "$host_cpu" = ia64; then
  5219. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5220. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5221. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5222. else
  5223. # Determine the default libpath from the value encoded in an empty executable.
  5224. _LT_AC_SYS_LIBPATH_AIX
  5225. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5226. # Warning - without using the other run time loading flags,
  5227. # -berok will link without error, but may produce a broken library.
  5228. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5229. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5230. # Exported symbols can be pulled into shared objects from archives
  5231. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5232. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5233. # This is similar to how AIX traditionally builds its shared libraries.
  5234. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5235. fi
  5236. fi
  5237. ;;
  5238. amigaos*)
  5239. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5240. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5241. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5242. # see comment about different semantics on the GNU ld section
  5243. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5244. ;;
  5245. bsdi[[45]]*)
  5246. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5247. ;;
  5248. cygwin* | mingw* | pw32*)
  5249. # When not using gcc, we currently assume that we are using
  5250. # Microsoft Visual C++.
  5251. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5252. # no search path for DLLs.
  5253. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5254. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5255. # Tell ltmain to make .lib files, not .a files.
  5256. libext=lib
  5257. # Tell ltmain to make .dll files, not .so files.
  5258. shrext_cmds=".dll"
  5259. # FIXME: Setting linknames here is a bad hack.
  5260. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5261. # The linker will automatically build a .lib file if we build a DLL.
  5262. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5263. # FIXME: Should let the user specify the lib program.
  5264. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5265. _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  5266. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5267. ;;
  5268. darwin* | rhapsody*)
  5269. case $host_os in
  5270. rhapsody* | darwin1.[[012]])
  5271. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5272. ;;
  5273. *) # Darwin 1.3 on
  5274. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5275. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5276. else
  5277. case ${MACOSX_DEPLOYMENT_TARGET} in
  5278. 10.[[012]])
  5279. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5280. ;;
  5281. 10.*)
  5282. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5283. ;;
  5284. esac
  5285. fi
  5286. ;;
  5287. esac
  5288. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5289. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5290. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5291. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5292. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5293. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5294. if test "$GCC" = yes ; then
  5295. output_verbose_link_cmd='echo'
  5296. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5297. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5298. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5299. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5300. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5301. else
  5302. case $cc_basename in
  5303. xlc*)
  5304. output_verbose_link_cmd='echo'
  5305. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5306. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5307. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5308. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5309. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5310. ;;
  5311. *)
  5312. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5313. ;;
  5314. esac
  5315. fi
  5316. ;;
  5317. dgux*)
  5318. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5319. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5320. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5321. ;;
  5322. freebsd1*)
  5323. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5324. ;;
  5325. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5326. # support. Future versions do this automatically, but an explicit c++rt0.o
  5327. # does not break anything, and helps significantly (at the cost of a little
  5328. # extra space).
  5329. freebsd2.2*)
  5330. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5331. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5332. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5333. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5334. ;;
  5335. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5336. freebsd2*)
  5337. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5338. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5339. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5340. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5341. ;;
  5342. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5343. freebsd* | kfreebsd*-gnu | dragonfly*)
  5344. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5345. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5346. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5347. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5348. ;;
  5349. hpux9*)
  5350. if test "$GCC" = yes; then
  5351. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5352. else
  5353. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5354. fi
  5355. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5356. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5357. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5358. # hardcode_minus_L: Not really in the search PATH,
  5359. # but as the default location of the library.
  5360. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5361. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5362. ;;
  5363. hpux10*)
  5364. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5365. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5366. else
  5367. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5368. fi
  5369. if test "$with_gnu_ld" = no; then
  5370. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5371. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5372. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5373. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5374. # hardcode_minus_L: Not really in the search PATH,
  5375. # but as the default location of the library.
  5376. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5377. fi
  5378. ;;
  5379. hpux11*)
  5380. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5381. case $host_cpu in
  5382. hppa*64*)
  5383. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5384. ;;
  5385. ia64*)
  5386. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5387. ;;
  5388. *)
  5389. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5390. ;;
  5391. esac
  5392. else
  5393. case $host_cpu in
  5394. hppa*64*)
  5395. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5396. ;;
  5397. ia64*)
  5398. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5399. ;;
  5400. *)
  5401. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5402. ;;
  5403. esac
  5404. fi
  5405. if test "$with_gnu_ld" = no; then
  5406. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5407. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5408. case $host_cpu in
  5409. hppa*64*|ia64*)
  5410. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5411. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5412. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5413. ;;
  5414. *)
  5415. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5416. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5417. # hardcode_minus_L: Not really in the search PATH,
  5418. # but as the default location of the library.
  5419. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5420. ;;
  5421. esac
  5422. fi
  5423. ;;
  5424. irix5* | irix6* | nonstopux*)
  5425. if test "$GCC" = yes; then
  5426. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5427. else
  5428. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5429. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5430. fi
  5431. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5432. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5433. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5434. ;;
  5435. netbsd*)
  5436. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5437. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5438. else
  5439. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5440. fi
  5441. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5442. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5443. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5444. ;;
  5445. newsos6)
  5446. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5447. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5448. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5449. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5450. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5451. ;;
  5452. openbsd*)
  5453. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5454. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5455. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5456. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5457. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5458. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5459. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5460. else
  5461. case $host_os in
  5462. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5463. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5464. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5465. ;;
  5466. *)
  5467. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5468. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5469. ;;
  5470. esac
  5471. fi
  5472. ;;
  5473. os2*)
  5474. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5475. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5476. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5477. _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5478. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5479. ;;
  5480. osf3*)
  5481. if test "$GCC" = yes; then
  5482. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5483. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5484. else
  5485. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5486. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5487. fi
  5488. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5489. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5490. ;;
  5491. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5492. if test "$GCC" = yes; then
  5493. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5494. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5495. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5496. else
  5497. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5498. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5499. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  5500. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  5501. # Both c and cxx compiler support -rpath directly
  5502. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5503. fi
  5504. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5505. ;;
  5506. solaris*)
  5507. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  5508. if test "$GCC" = yes; then
  5509. wlarc='${wl}'
  5510. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5511. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5512. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  5513. else
  5514. wlarc=''
  5515. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5516. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5517. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5518. fi
  5519. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5520. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5521. case $host_os in
  5522. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5523. *)
  5524. # The compiler driver will combine linker options so we
  5525. # cannot just pass the convience library names through
  5526. # without $wl, iff we do not link with $LD.
  5527. # Luckily, gcc supports the same syntax we need for Sun Studio.
  5528. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5529. case $wlarc in
  5530. '')
  5531. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  5532. *)
  5533. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  5534. esac ;;
  5535. esac
  5536. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5537. ;;
  5538. sunos4*)
  5539. if test "x$host_vendor" = xsequent; then
  5540. # Use $CC to link under sequent, because it throws in some extra .o
  5541. # files that make .init and .fini sections work.
  5542. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5543. else
  5544. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5545. fi
  5546. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5547. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5548. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5549. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5550. ;;
  5551. sysv4)
  5552. case $host_vendor in
  5553. sni)
  5554. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5555. _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5556. ;;
  5557. siemens)
  5558. ## LD is ld it makes a PLAMLIB
  5559. ## CC just makes a GrossModule.
  5560. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5561. _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5562. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5563. ;;
  5564. motorola)
  5565. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5566. _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5567. ;;
  5568. esac
  5569. runpath_var='LD_RUN_PATH'
  5570. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5571. ;;
  5572. sysv4.3*)
  5573. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5574. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5575. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5576. ;;
  5577. sysv4*MP*)
  5578. if test -d /usr/nec; then
  5579. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5580. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5581. runpath_var=LD_RUN_PATH
  5582. hardcode_runpath_var=yes
  5583. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5584. fi
  5585. ;;
  5586. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  5587. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5588. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5589. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5590. runpath_var='LD_RUN_PATH'
  5591. if test "$GCC" = yes; then
  5592. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5593. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5594. else
  5595. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5596. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5597. fi
  5598. ;;
  5599. sysv5* | sco3.2v5* | sco5v6*)
  5600. # Note: We can NOT use -z defs as we might desire, because we do not
  5601. # link with -lc, and that would cause any symbols used from libc to
  5602. # always be unresolved, which means just about no library would
  5603. # ever link correctly. If we're not using GNU ld we use -z text
  5604. # though, which does catch some bad symbols but isn't as heavy-handed
  5605. # as -z defs.
  5606. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5607. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5608. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5609. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5610. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  5611. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5612. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5613. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5614. runpath_var='LD_RUN_PATH'
  5615. if test "$GCC" = yes; then
  5616. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5617. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5618. else
  5619. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5620. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5621. fi
  5622. ;;
  5623. uts4*)
  5624. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5625. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5626. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5627. ;;
  5628. *)
  5629. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5630. ;;
  5631. esac
  5632. fi
  5633. ])
  5634. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5635. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5636. #
  5637. # Do we need to explicitly link libc?
  5638. #
  5639. case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  5640. x|xyes)
  5641. # Assume -lc should be added
  5642. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5643. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5644. case $_LT_AC_TAGVAR(archive_cmds, $1) in
  5645. *'~'*)
  5646. # FIXME: we may have to deal with multi-command sequences.
  5647. ;;
  5648. '$CC '*)
  5649. # Test whether the compiler implicitly links with -lc since on some
  5650. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5651. # to ld, don't add -lc before -lgcc.
  5652. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5653. $rm conftest*
  5654. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5655. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5656. soname=conftest
  5657. lib=conftest
  5658. libobjs=conftest.$ac_objext
  5659. deplibs=
  5660. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  5661. pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  5662. compiler_flags=-v
  5663. linker_flags=-v
  5664. verstring=
  5665. output_objdir=.
  5666. libname=conftest
  5667. lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  5668. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5669. if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  5670. then
  5671. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5672. else
  5673. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5674. fi
  5675. _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5676. else
  5677. cat conftest.err 1>&5
  5678. fi
  5679. $rm conftest*
  5680. AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  5681. ;;
  5682. esac
  5683. fi
  5684. ;;
  5685. esac
  5686. ])# AC_LIBTOOL_PROG_LD_SHLIBS
  5687. # _LT_AC_FILE_LTDLL_C
  5688. # -------------------
  5689. # Be careful that the start marker always follows a newline.
  5690. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  5691. # /* ltdll.c starts here */
  5692. # #define WIN32_LEAN_AND_MEAN
  5693. # #include <windows.h>
  5694. # #undef WIN32_LEAN_AND_MEAN
  5695. # #include <stdio.h>
  5696. #
  5697. # #ifndef __CYGWIN__
  5698. # # ifdef __CYGWIN32__
  5699. # # define __CYGWIN__ __CYGWIN32__
  5700. # # endif
  5701. # #endif
  5702. #
  5703. # #ifdef __cplusplus
  5704. # extern "C" {
  5705. # #endif
  5706. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5707. # #ifdef __cplusplus
  5708. # }
  5709. # #endif
  5710. #
  5711. # #ifdef __CYGWIN__
  5712. # #include <cygwin/cygwin_dll.h>
  5713. # DECLARE_CYGWIN_DLL( DllMain );
  5714. # #endif
  5715. # HINSTANCE __hDllInstance_base;
  5716. #
  5717. # BOOL APIENTRY
  5718. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5719. # {
  5720. # __hDllInstance_base = hInst;
  5721. # return TRUE;
  5722. # }
  5723. # /* ltdll.c ends here */
  5724. ])# _LT_AC_FILE_LTDLL_C
  5725. # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  5726. # ---------------------------------
  5727. AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  5728. # old names
  5729. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  5730. AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  5731. AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  5732. AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  5733. AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  5734. AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  5735. AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  5736. # This is just to silence aclocal about the macro not being used
  5737. ifelse([AC_DISABLE_FAST_INSTALL])
  5738. AC_DEFUN([LT_AC_PROG_GCJ],
  5739. [AC_CHECK_TOOL(GCJ, gcj, no)
  5740. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  5741. AC_SUBST(GCJFLAGS)
  5742. ])
  5743. AC_DEFUN([LT_AC_PROG_RC],
  5744. [AC_CHECK_TOOL(RC, windres, no)
  5745. ])
  5746. # NOTE: This macro has been submitted for inclusion into #
  5747. # GNU Autoconf as AC_PROG_SED. When it is available in #
  5748. # a released version of Autoconf we should remove this #
  5749. # macro and use it instead. #
  5750. # LT_AC_PROG_SED
  5751. # --------------
  5752. # Check for a fully-functional sed program, that truncates
  5753. # as few characters as possible. Prefer GNU sed if found.
  5754. AC_DEFUN([LT_AC_PROG_SED],
  5755. [AC_MSG_CHECKING([for a sed that does not truncate output])
  5756. AC_CACHE_VAL(lt_cv_path_SED,
  5757. [# Loop through the user's path and test for sed and gsed.
  5758. # Then use that list of sed's as ones to test for truncation.
  5759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5760. for as_dir in $PATH
  5761. do
  5762. IFS=$as_save_IFS
  5763. test -z "$as_dir" && as_dir=.
  5764. for lt_ac_prog in sed gsed; do
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5767. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5768. fi
  5769. done
  5770. done
  5771. done
  5772. lt_ac_max=0
  5773. lt_ac_count=0
  5774. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5775. # along with /bin/sed that truncates output.
  5776. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5777. test ! -f $lt_ac_sed && continue
  5778. cat /dev/null > conftest.in
  5779. lt_ac_count=0
  5780. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5781. # Check for GNU sed and select it if it is found.
  5782. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5783. lt_cv_path_SED=$lt_ac_sed
  5784. break
  5785. fi
  5786. while true; do
  5787. cat conftest.in conftest.in >conftest.tmp
  5788. mv conftest.tmp conftest.in
  5789. cp conftest.in conftest.nl
  5790. echo >>conftest.nl
  5791. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5792. cmp -s conftest.out conftest.nl || break
  5793. # 10000 chars as input seems more than enough
  5794. test $lt_ac_count -gt 10 && break
  5795. lt_ac_count=`expr $lt_ac_count + 1`
  5796. if test $lt_ac_count -gt $lt_ac_max; then
  5797. lt_ac_max=$lt_ac_count
  5798. lt_cv_path_SED=$lt_ac_sed
  5799. fi
  5800. done
  5801. done
  5802. ])
  5803. SED=$lt_cv_path_SED
  5804. AC_MSG_RESULT([$SED])
  5805. ])
  5806. # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  5807. #
  5808. # This file is free software; the Free Software Foundation
  5809. # gives unlimited permission to copy and/or distribute it,
  5810. # with or without modifications, as long as this notice is preserved.
  5811. # AM_AUTOMAKE_VERSION(VERSION)
  5812. # ----------------------------
  5813. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  5814. # generated from the m4 files accompanying Automake X.Y.
  5815. # (This private macro should not be called outside this file.)
  5816. AC_DEFUN([AM_AUTOMAKE_VERSION],
  5817. [am__api_version='1.10'
  5818. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  5819. dnl require some minimum version. Point them to the right macro.
  5820. m4_if([$1], [1.10], [],
  5821. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  5822. ])
  5823. # _AM_AUTOCONF_VERSION(VERSION)
  5824. # -----------------------------
  5825. # aclocal traces this macro to find the Autoconf version.
  5826. # This is a private macro too. Using m4_define simplifies
  5827. # the logic in aclocal, which can simply ignore this definition.
  5828. m4_define([_AM_AUTOCONF_VERSION], [])
  5829. # AM_SET_CURRENT_AUTOMAKE_VERSION
  5830. # -------------------------------
  5831. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  5832. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  5833. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  5834. [AM_AUTOMAKE_VERSION([1.10])dnl
  5835. _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  5836. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  5837. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  5838. #
  5839. # This file is free software; the Free Software Foundation
  5840. # gives unlimited permission to copy and/or distribute it,
  5841. # with or without modifications, as long as this notice is preserved.
  5842. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  5843. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  5844. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  5845. #
  5846. # Of course, Automake must honor this variable whenever it calls a
  5847. # tool from the auxiliary directory. The problem is that $srcdir (and
  5848. # therefore $ac_aux_dir as well) can be either absolute or relative,
  5849. # depending on how configure is run. This is pretty annoying, since
  5850. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  5851. # source directory, any form will work fine, but in subdirectories a
  5852. # relative path needs to be adjusted first.
  5853. #
  5854. # $ac_aux_dir/missing
  5855. # fails when called from a subdirectory if $ac_aux_dir is relative
  5856. # $top_srcdir/$ac_aux_dir/missing
  5857. # fails if $ac_aux_dir is absolute,
  5858. # fails when called from a subdirectory in a VPATH build with
  5859. # a relative $ac_aux_dir
  5860. #
  5861. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  5862. # are both prefixed by $srcdir. In an in-source build this is usually
  5863. # harmless because $srcdir is `.', but things will broke when you
  5864. # start a VPATH build or use an absolute $srcdir.
  5865. #
  5866. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  5867. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  5868. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  5869. # and then we would define $MISSING as
  5870. # MISSING="\${SHELL} $am_aux_dir/missing"
  5871. # This will work as long as MISSING is not called from configure, because
  5872. # unfortunately $(top_srcdir) has no meaning in configure.
  5873. # However there are other variables, like CC, which are often used in
  5874. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  5875. #
  5876. # Another solution, used here, is to always expand $ac_aux_dir to an
  5877. # absolute PATH. The drawback is that using absolute paths prevent a
  5878. # configured tree to be moved without reconfiguration.
  5879. AC_DEFUN([AM_AUX_DIR_EXPAND],
  5880. [dnl Rely on autoconf to set up CDPATH properly.
  5881. AC_PREREQ([2.50])dnl
  5882. # expand $ac_aux_dir to an absolute path
  5883. am_aux_dir=`cd $ac_aux_dir && pwd`
  5884. ])
  5885. # AM_CONDITIONAL -*- Autoconf -*-
  5886. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  5887. # Free Software Foundation, Inc.
  5888. #
  5889. # This file is free software; the Free Software Foundation
  5890. # gives unlimited permission to copy and/or distribute it,
  5891. # with or without modifications, as long as this notice is preserved.
  5892. # serial 8
  5893. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  5894. # -------------------------------------
  5895. # Define a conditional.
  5896. AC_DEFUN([AM_CONDITIONAL],
  5897. [AC_PREREQ(2.52)dnl
  5898. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  5899. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  5900. AC_SUBST([$1_TRUE])dnl
  5901. AC_SUBST([$1_FALSE])dnl
  5902. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  5903. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  5904. if $2; then
  5905. $1_TRUE=
  5906. $1_FALSE='#'
  5907. else
  5908. $1_TRUE='#'
  5909. $1_FALSE=
  5910. fi
  5911. AC_CONFIG_COMMANDS_PRE(
  5912. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  5913. AC_MSG_ERROR([[conditional "$1" was never defined.
  5914. Usually this means the macro was only invoked conditionally.]])
  5915. fi])])
  5916. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  5917. # Free Software Foundation, Inc.
  5918. #
  5919. # This file is free software; the Free Software Foundation
  5920. # gives unlimited permission to copy and/or distribute it,
  5921. # with or without modifications, as long as this notice is preserved.
  5922. # serial 9
  5923. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  5924. # written in clear, in which case automake, when reading aclocal.m4,
  5925. # will think it sees a *use*, and therefore will trigger all it's
  5926. # C support machinery. Also note that it means that autoscan, seeing
  5927. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  5928. # _AM_DEPENDENCIES(NAME)
  5929. # ----------------------
  5930. # See how the compiler implements dependency checking.
  5931. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  5932. # We try a few techniques and use that to set a single cache variable.
  5933. #
  5934. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  5935. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  5936. # dependency, and given that the user is not expected to run this macro,
  5937. # just rely on AC_PROG_CC.
  5938. AC_DEFUN([_AM_DEPENDENCIES],
  5939. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  5940. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  5941. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  5942. AC_REQUIRE([AM_DEP_TRACK])dnl
  5943. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  5944. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  5945. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  5946. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  5947. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  5948. [depcc="$$1" am_compiler_list=])
  5949. AC_CACHE_CHECK([dependency style of $depcc],
  5950. [am_cv_$1_dependencies_compiler_type],
  5951. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5952. # We make a subdir and do the tests there. Otherwise we can end up
  5953. # making bogus files that we don't know about and never remove. For
  5954. # instance it was reported that on HP-UX the gcc test will end up
  5955. # making a dummy file named `D' -- because `-MD' means `put the output
  5956. # in D'.
  5957. mkdir conftest.dir
  5958. # Copy depcomp to subdir because otherwise we won't find it if we're
  5959. # using a relative directory.
  5960. cp "$am_depcomp" conftest.dir
  5961. cd conftest.dir
  5962. # We will build objects and dependencies in a subdirectory because
  5963. # it helps to detect inapplicable dependency modes. For instance
  5964. # both Tru64's cc and ICC support -MD to output dependencies as a
  5965. # side effect of compilation, but ICC will put the dependencies in
  5966. # the current directory while Tru64 will put them in the object
  5967. # directory.
  5968. mkdir sub
  5969. am_cv_$1_dependencies_compiler_type=none
  5970. if test "$am_compiler_list" = ""; then
  5971. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  5972. fi
  5973. for depmode in $am_compiler_list; do
  5974. # Setup a source with many dependencies, because some compilers
  5975. # like to wrap large dependency lists on column 80 (with \), and
  5976. # we should not choose a depcomp mode which is confused by this.
  5977. #
  5978. # We need to recreate these files for each test, as the compiler may
  5979. # overwrite some of them when testing with obscure command lines.
  5980. # This happens at least with the AIX C compiler.
  5981. : > sub/conftest.c
  5982. for i in 1 2 3 4 5 6; do
  5983. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5984. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5985. # Solaris 8's {/usr,}/bin/sh.
  5986. touch sub/conftst$i.h
  5987. done
  5988. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5989. case $depmode in
  5990. nosideeffect)
  5991. # after this tag, mechanisms are not by side-effect, so they'll
  5992. # only be used when explicitly requested
  5993. if test "x$enable_dependency_tracking" = xyes; then
  5994. continue
  5995. else
  5996. break
  5997. fi
  5998. ;;
  5999. none) break ;;
  6000. esac
  6001. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6002. # mode. It turns out that the SunPro C++ compiler does not properly
  6003. # handle `-M -o', and we need to detect this.
  6004. if depmode=$depmode \
  6005. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6006. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6007. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6008. >/dev/null 2>conftest.err &&
  6009. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6010. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6011. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6012. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6013. # icc doesn't choke on unknown options, it will just issue warnings
  6014. # or remarks (even with -Werror). So we grep stderr for any message
  6015. # that says an option was ignored or not supported.
  6016. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6017. # icc: Command line warning: ignoring option '-M'; no argument required
  6018. # The diagnosis changed in icc 8.0:
  6019. # icc: Command line remark: option '-MP' not supported
  6020. if (grep 'ignoring option' conftest.err ||
  6021. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6022. am_cv_$1_dependencies_compiler_type=$depmode
  6023. break
  6024. fi
  6025. fi
  6026. done
  6027. cd ..
  6028. rm -rf conftest.dir
  6029. else
  6030. am_cv_$1_dependencies_compiler_type=none
  6031. fi
  6032. ])
  6033. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  6034. AM_CONDITIONAL([am__fastdep$1], [
  6035. test "x$enable_dependency_tracking" != xno \
  6036. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  6037. ])
  6038. # AM_SET_DEPDIR
  6039. # -------------
  6040. # Choose a directory name for dependency files.
  6041. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  6042. AC_DEFUN([AM_SET_DEPDIR],
  6043. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6044. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  6045. ])
  6046. # AM_DEP_TRACK
  6047. # ------------
  6048. AC_DEFUN([AM_DEP_TRACK],
  6049. [AC_ARG_ENABLE(dependency-tracking,
  6050. [ --disable-dependency-tracking speeds up one-time build
  6051. --enable-dependency-tracking do not reject slow dependency extractors])
  6052. if test "x$enable_dependency_tracking" != xno; then
  6053. am_depcomp="$ac_aux_dir/depcomp"
  6054. AMDEPBACKSLASH='\'
  6055. fi
  6056. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  6057. AC_SUBST([AMDEPBACKSLASH])dnl
  6058. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  6059. ])
  6060. # Generate code to set up dependency tracking. -*- Autoconf -*-
  6061. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6062. # Free Software Foundation, Inc.
  6063. #
  6064. # This file is free software; the Free Software Foundation
  6065. # gives unlimited permission to copy and/or distribute it,
  6066. # with or without modifications, as long as this notice is preserved.
  6067. #serial 3
  6068. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  6069. # ------------------------------
  6070. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  6071. [for mf in $CONFIG_FILES; do
  6072. # Strip MF so we end up with the name of the file.
  6073. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6074. # Check whether this is an Automake generated Makefile or not.
  6075. # We used to match only the files named `Makefile.in', but
  6076. # some people rename them; so instead we look at the file content.
  6077. # Grep'ing the first line is not enough: some people post-process
  6078. # each Makefile.in and add a new line on top of each file to say so.
  6079. # Grep'ing the whole file is not good either: AIX grep has a line
  6080. # limit of 2048, but all sed's we know have understand at least 4000.
  6081. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  6082. dirpart=`AS_DIRNAME("$mf")`
  6083. else
  6084. continue
  6085. fi
  6086. # Extract the definition of DEPDIR, am__include, and am__quote
  6087. # from the Makefile without running `make'.
  6088. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6089. test -z "$DEPDIR" && continue
  6090. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6091. test -z "am__include" && continue
  6092. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6093. # When using ansi2knr, U may be empty or an underscore; expand it
  6094. U=`sed -n 's/^U = //p' < "$mf"`
  6095. # Find all dependency output files, they are included files with
  6096. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6097. # simplest approach to changing $(DEPDIR) to its actual value in the
  6098. # expansion.
  6099. for file in `sed -n "
  6100. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6101. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6102. # Make sure the directory exists.
  6103. test -f "$dirpart/$file" && continue
  6104. fdir=`AS_DIRNAME(["$file"])`
  6105. AS_MKDIR_P([$dirpart/$fdir])
  6106. # echo "creating $dirpart/$file"
  6107. echo '# dummy' > "$dirpart/$file"
  6108. done
  6109. done
  6110. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  6111. # AM_OUTPUT_DEPENDENCY_COMMANDS
  6112. # -----------------------------
  6113. # This macro should only be invoked once -- use via AC_REQUIRE.
  6114. #
  6115. # This code is only required when automatic dependency tracking
  6116. # is enabled. FIXME. This creates each `.P' file that we will
  6117. # need in order to bootstrap the dependency handling code.
  6118. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  6119. [AC_CONFIG_COMMANDS([depfiles],
  6120. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  6121. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  6122. ])
  6123. # Do all the work for Automake. -*- Autoconf -*-
  6124. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  6125. # 2005, 2006 Free Software Foundation, Inc.
  6126. #
  6127. # This file is free software; the Free Software Foundation
  6128. # gives unlimited permission to copy and/or distribute it,
  6129. # with or without modifications, as long as this notice is preserved.
  6130. # serial 12
  6131. # This macro actually does too much. Some checks are only needed if
  6132. # your package does certain things. But this isn't really a big deal.
  6133. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  6134. # AM_INIT_AUTOMAKE([OPTIONS])
  6135. # -----------------------------------------------
  6136. # The call with PACKAGE and VERSION arguments is the old style
  6137. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  6138. # and VERSION should now be passed to AC_INIT and removed from
  6139. # the call to AM_INIT_AUTOMAKE.
  6140. # We support both call styles for the transition. After
  6141. # the next Automake release, Autoconf can make the AC_INIT
  6142. # arguments mandatory, and then we can depend on a new Autoconf
  6143. # release and drop the old call support.
  6144. AC_DEFUN([AM_INIT_AUTOMAKE],
  6145. [AC_PREREQ([2.60])dnl
  6146. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  6147. dnl the ones we care about.
  6148. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  6149. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  6150. AC_REQUIRE([AC_PROG_INSTALL])dnl
  6151. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  6152. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  6153. # is not polluted with repeated "-I."
  6154. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  6155. # test to see if srcdir already configured
  6156. if test -f $srcdir/config.status; then
  6157. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  6158. fi
  6159. fi
  6160. # test whether we have cygpath
  6161. if test -z "$CYGPATH_W"; then
  6162. if (cygpath --version) >/dev/null 2>/dev/null; then
  6163. CYGPATH_W='cygpath -w'
  6164. else
  6165. CYGPATH_W=echo
  6166. fi
  6167. fi
  6168. AC_SUBST([CYGPATH_W])
  6169. # Define the identity of the package.
  6170. dnl Distinguish between old-style and new-style calls.
  6171. m4_ifval([$2],
  6172. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  6173. AC_SUBST([PACKAGE], [$1])dnl
  6174. AC_SUBST([VERSION], [$2])],
  6175. [_AM_SET_OPTIONS([$1])dnl
  6176. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  6177. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  6178. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  6179. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  6180. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  6181. _AM_IF_OPTION([no-define],,
  6182. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  6183. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  6184. # Some tools Automake needs.
  6185. AC_REQUIRE([AM_SANITY_CHECK])dnl
  6186. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  6187. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  6188. AM_MISSING_PROG(AUTOCONF, autoconf)
  6189. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  6190. AM_MISSING_PROG(AUTOHEADER, autoheader)
  6191. AM_MISSING_PROG(MAKEINFO, makeinfo)
  6192. AM_PROG_INSTALL_SH
  6193. AM_PROG_INSTALL_STRIP
  6194. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  6195. # We need awk for the "check" target. The system "awk" is bad on
  6196. # some platforms.
  6197. AC_REQUIRE([AC_PROG_AWK])dnl
  6198. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  6199. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6200. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  6201. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6202. [_AM_PROG_TAR([v7])])])
  6203. _AM_IF_OPTION([no-dependencies],,
  6204. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  6205. [_AM_DEPENDENCIES(CC)],
  6206. [define([AC_PROG_CC],
  6207. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6208. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  6209. [_AM_DEPENDENCIES(CXX)],
  6210. [define([AC_PROG_CXX],
  6211. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6212. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  6213. [_AM_DEPENDENCIES(OBJC)],
  6214. [define([AC_PROG_OBJC],
  6215. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6216. ])
  6217. ])
  6218. # When config.status generates a header, we must update the stamp-h file.
  6219. # This file resides in the same directory as the config header
  6220. # that is generated. The stamp files are numbered to have different names.
  6221. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  6222. # loop where config.status creates the headers, so we can generate
  6223. # our stamp files there.
  6224. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  6225. [# Compute $1's index in $config_headers.
  6226. _am_stamp_count=1
  6227. for _am_header in $config_headers :; do
  6228. case $_am_header in
  6229. $1 | $1:* )
  6230. break ;;
  6231. * )
  6232. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6233. esac
  6234. done
  6235. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  6236. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6237. #
  6238. # This file is free software; the Free Software Foundation
  6239. # gives unlimited permission to copy and/or distribute it,
  6240. # with or without modifications, as long as this notice is preserved.
  6241. # AM_PROG_INSTALL_SH
  6242. # ------------------
  6243. # Define $install_sh.
  6244. AC_DEFUN([AM_PROG_INSTALL_SH],
  6245. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6246. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  6247. AC_SUBST(install_sh)])
  6248. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  6249. #
  6250. # This file is free software; the Free Software Foundation
  6251. # gives unlimited permission to copy and/or distribute it,
  6252. # with or without modifications, as long as this notice is preserved.
  6253. # serial 2
  6254. # Check whether the underlying file-system supports filenames
  6255. # with a leading dot. For instance MS-DOS doesn't.
  6256. AC_DEFUN([AM_SET_LEADING_DOT],
  6257. [rm -rf .tst 2>/dev/null
  6258. mkdir .tst 2>/dev/null
  6259. if test -d .tst; then
  6260. am__leading_dot=.
  6261. else
  6262. am__leading_dot=_
  6263. fi
  6264. rmdir .tst 2>/dev/null
  6265. AC_SUBST([am__leading_dot])])
  6266. # Check to see how 'make' treats includes. -*- Autoconf -*-
  6267. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6268. #
  6269. # This file is free software; the Free Software Foundation
  6270. # gives unlimited permission to copy and/or distribute it,
  6271. # with or without modifications, as long as this notice is preserved.
  6272. # serial 3
  6273. # AM_MAKE_INCLUDE()
  6274. # -----------------
  6275. # Check to see how make treats includes.
  6276. AC_DEFUN([AM_MAKE_INCLUDE],
  6277. [am_make=${MAKE-make}
  6278. cat > confinc << 'END'
  6279. am__doit:
  6280. @echo done
  6281. .PHONY: am__doit
  6282. END
  6283. # If we don't find an include directive, just comment out the code.
  6284. AC_MSG_CHECKING([for style of include used by $am_make])
  6285. am__include="#"
  6286. am__quote=
  6287. _am_result=none
  6288. # First try GNU make style include.
  6289. echo "include confinc" > confmf
  6290. # We grep out `Entering directory' and `Leaving directory'
  6291. # messages which can occur if `w' ends up in MAKEFLAGS.
  6292. # In particular we don't look at `^make:' because GNU make might
  6293. # be invoked under some other name (usually "gmake"), in which
  6294. # case it prints its new name instead of `make'.
  6295. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  6296. am__include=include
  6297. am__quote=
  6298. _am_result=GNU
  6299. fi
  6300. # Now try BSD make style include.
  6301. if test "$am__include" = "#"; then
  6302. echo '.include "confinc"' > confmf
  6303. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  6304. am__include=.include
  6305. am__quote="\""
  6306. _am_result=BSD
  6307. fi
  6308. fi
  6309. AC_SUBST([am__include])
  6310. AC_SUBST([am__quote])
  6311. AC_MSG_RESULT([$_am_result])
  6312. rm -f confinc confmf
  6313. ])
  6314. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  6315. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  6316. # Free Software Foundation, Inc.
  6317. #
  6318. # This file is free software; the Free Software Foundation
  6319. # gives unlimited permission to copy and/or distribute it,
  6320. # with or without modifications, as long as this notice is preserved.
  6321. # serial 5
  6322. # AM_MISSING_PROG(NAME, PROGRAM)
  6323. # ------------------------------
  6324. AC_DEFUN([AM_MISSING_PROG],
  6325. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  6326. $1=${$1-"${am_missing_run}$2"}
  6327. AC_SUBST($1)])
  6328. # AM_MISSING_HAS_RUN
  6329. # ------------------
  6330. # Define MISSING if not defined so far and test if it supports --run.
  6331. # If it does, set am_missing_run to use it, otherwise, to nothing.
  6332. AC_DEFUN([AM_MISSING_HAS_RUN],
  6333. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6334. AC_REQUIRE_AUX_FILE([missing])dnl
  6335. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  6336. # Use eval to expand $SHELL
  6337. if eval "$MISSING --run true"; then
  6338. am_missing_run="$MISSING --run "
  6339. else
  6340. am_missing_run=
  6341. AC_MSG_WARN([`missing' script is too old or missing])
  6342. fi
  6343. ])
  6344. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  6345. #
  6346. # This file is free software; the Free Software Foundation
  6347. # gives unlimited permission to copy and/or distribute it,
  6348. # with or without modifications, as long as this notice is preserved.
  6349. # AM_PROG_MKDIR_P
  6350. # ---------------
  6351. # Check for `mkdir -p'.
  6352. AC_DEFUN([AM_PROG_MKDIR_P],
  6353. [AC_PREREQ([2.60])dnl
  6354. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  6355. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  6356. dnl while keeping a definition of mkdir_p for backward compatibility.
  6357. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  6358. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  6359. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  6360. dnl adjustment using top_builddir (which is defined more often than
  6361. dnl MKDIR_P).
  6362. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  6363. case $mkdir_p in
  6364. [[\\/$]]* | ?:[[\\/]]*) ;;
  6365. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  6366. esac
  6367. ])
  6368. # Helper functions for option handling. -*- Autoconf -*-
  6369. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6370. #
  6371. # This file is free software; the Free Software Foundation
  6372. # gives unlimited permission to copy and/or distribute it,
  6373. # with or without modifications, as long as this notice is preserved.
  6374. # serial 3
  6375. # _AM_MANGLE_OPTION(NAME)
  6376. # -----------------------
  6377. AC_DEFUN([_AM_MANGLE_OPTION],
  6378. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  6379. # _AM_SET_OPTION(NAME)
  6380. # ------------------------------
  6381. # Set option NAME. Presently that only means defining a flag for this option.
  6382. AC_DEFUN([_AM_SET_OPTION],
  6383. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  6384. # _AM_SET_OPTIONS(OPTIONS)
  6385. # ----------------------------------
  6386. # OPTIONS is a space-separated list of Automake options.
  6387. AC_DEFUN([_AM_SET_OPTIONS],
  6388. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  6389. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  6390. # -------------------------------------------
  6391. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  6392. AC_DEFUN([_AM_IF_OPTION],
  6393. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  6394. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  6395. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  6396. # Free Software Foundation, Inc.
  6397. #
  6398. # This file is free software; the Free Software Foundation
  6399. # gives unlimited permission to copy and/or distribute it,
  6400. # with or without modifications, as long as this notice is preserved.
  6401. # serial 4
  6402. # AM_SANITY_CHECK
  6403. # ---------------
  6404. AC_DEFUN([AM_SANITY_CHECK],
  6405. [AC_MSG_CHECKING([whether build environment is sane])
  6406. # Just in case
  6407. sleep 1
  6408. echo timestamp > conftest.file
  6409. # Do `set' in a subshell so we don't clobber the current shell's
  6410. # arguments. Must try -L first in case configure is actually a
  6411. # symlink; some systems play weird games with the mod time of symlinks
  6412. # (eg FreeBSD returns the mod time of the symlink's containing
  6413. # directory).
  6414. if (
  6415. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  6416. if test "$[*]" = "X"; then
  6417. # -L didn't work.
  6418. set X `ls -t $srcdir/configure conftest.file`
  6419. fi
  6420. rm -f conftest.file
  6421. if test "$[*]" != "X $srcdir/configure conftest.file" \
  6422. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  6423. # If neither matched, then we have a broken ls. This can happen
  6424. # if, for instance, CONFIG_SHELL is bash and it inherits a
  6425. # broken ls alias from the environment. This has actually
  6426. # happened. Such a system could not be considered "sane".
  6427. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  6428. alias in your environment])
  6429. fi
  6430. test "$[2]" = conftest.file
  6431. )
  6432. then
  6433. # Ok.
  6434. :
  6435. else
  6436. AC_MSG_ERROR([newly created file is older than distributed files!
  6437. Check your system clock])
  6438. fi
  6439. AC_MSG_RESULT(yes)])
  6440. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6441. #
  6442. # This file is free software; the Free Software Foundation
  6443. # gives unlimited permission to copy and/or distribute it,
  6444. # with or without modifications, as long as this notice is preserved.
  6445. # AM_PROG_INSTALL_STRIP
  6446. # ---------------------
  6447. # One issue with vendor `install' (even GNU) is that you can't
  6448. # specify the program used to strip binaries. This is especially
  6449. # annoying in cross-compiling environments, where the build's strip
  6450. # is unlikely to handle the host's binaries.
  6451. # Fortunately install-sh will honor a STRIPPROG variable, so we
  6452. # always use install-sh in `make install-strip', and initialize
  6453. # STRIPPROG with the value of the STRIP variable (set by the user).
  6454. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  6455. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6456. # Installed binaries are usually stripped using `strip' when the user
  6457. # run `make install-strip'. However `strip' might not be the right
  6458. # tool to use in cross-compilation environments, therefore Automake
  6459. # will honor the `STRIP' environment variable to overrule this program.
  6460. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  6461. if test "$cross_compiling" != no; then
  6462. AC_CHECK_TOOL([STRIP], [strip], :)
  6463. fi
  6464. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  6465. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  6466. # Copyright (C) 2006 Free Software Foundation, Inc.
  6467. #
  6468. # This file is free software; the Free Software Foundation
  6469. # gives unlimited permission to copy and/or distribute it,
  6470. # with or without modifications, as long as this notice is preserved.
  6471. # _AM_SUBST_NOTMAKE(VARIABLE)
  6472. # ---------------------------
  6473. # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  6474. # This macro is traced by Automake.
  6475. AC_DEFUN([_AM_SUBST_NOTMAKE])
  6476. # Check how to create a tarball. -*- Autoconf -*-
  6477. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  6478. #
  6479. # This file is free software; the Free Software Foundation
  6480. # gives unlimited permission to copy and/or distribute it,
  6481. # with or without modifications, as long as this notice is preserved.
  6482. # serial 2
  6483. # _AM_PROG_TAR(FORMAT)
  6484. # --------------------
  6485. # Check how to create a tarball in format FORMAT.
  6486. # FORMAT should be one of `v7', `ustar', or `pax'.
  6487. #
  6488. # Substitute a variable $(am__tar) that is a command
  6489. # writing to stdout a FORMAT-tarball containing the directory
  6490. # $tardir.
  6491. # tardir=directory && $(am__tar) > result.tar
  6492. #
  6493. # Substitute a variable $(am__untar) that extract such
  6494. # a tarball read from stdin.
  6495. # $(am__untar) < result.tar
  6496. AC_DEFUN([_AM_PROG_TAR],
  6497. [# Always define AMTAR for backward compatibility.
  6498. AM_MISSING_PROG([AMTAR], [tar])
  6499. m4_if([$1], [v7],
  6500. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  6501. [m4_case([$1], [ustar],, [pax],,
  6502. [m4_fatal([Unknown tar format])])
  6503. AC_MSG_CHECKING([how to create a $1 tar archive])
  6504. # Loop over all known methods to create a tar archive until one works.
  6505. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  6506. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  6507. # Do not fold the above two line into one, because Tru64 sh and
  6508. # Solaris sh will not grok spaces in the rhs of `-'.
  6509. for _am_tool in $_am_tools
  6510. do
  6511. case $_am_tool in
  6512. gnutar)
  6513. for _am_tar in tar gnutar gtar;
  6514. do
  6515. AM_RUN_LOG([$_am_tar --version]) && break
  6516. done
  6517. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  6518. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  6519. am__untar="$_am_tar -xf -"
  6520. ;;
  6521. plaintar)
  6522. # Must skip GNU tar: if it does not support --format= it doesn't create
  6523. # ustar tarball either.
  6524. (tar --version) >/dev/null 2>&1 && continue
  6525. am__tar='tar chf - "$$tardir"'
  6526. am__tar_='tar chf - "$tardir"'
  6527. am__untar='tar xf -'
  6528. ;;
  6529. pax)
  6530. am__tar='pax -L -x $1 -w "$$tardir"'
  6531. am__tar_='pax -L -x $1 -w "$tardir"'
  6532. am__untar='pax -r'
  6533. ;;
  6534. cpio)
  6535. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  6536. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  6537. am__untar='cpio -i -H $1 -d'
  6538. ;;
  6539. none)
  6540. am__tar=false
  6541. am__tar_=false
  6542. am__untar=false
  6543. ;;
  6544. esac
  6545. # If the value was cached, stop now. We just wanted to have am__tar
  6546. # and am__untar set.
  6547. test -n "${am_cv_prog_tar_$1}" && break
  6548. # tar/untar a dummy directory, and stop if the command works
  6549. rm -rf conftest.dir
  6550. mkdir conftest.dir
  6551. echo GrepMe > conftest.dir/file
  6552. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  6553. rm -rf conftest.dir
  6554. if test -s conftest.tar; then
  6555. AM_RUN_LOG([$am__untar <conftest.tar])
  6556. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  6557. fi
  6558. done
  6559. rm -rf conftest.dir
  6560. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  6561. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  6562. AC_SUBST([am__tar])
  6563. AC_SUBST([am__untar])
  6564. ]) # _AM_PROG_TAR