autotool.patch 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libXft-2.1.9.orig/aclocal.m4 libXft-2.1.9/aclocal.m4
  6. --- libXft-2.1.9.orig/aclocal.m4 2006-06-03 12:33:23.000000000 +0200
  7. +++ libXft-2.1.9/aclocal.m4 2011-02-16 21:01:09.004802039 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,103 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. +
  28. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29. +#
  30. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  32. +# Written by Gordon Matzigkeit, 1996
  33. +#
  34. +# This file is free software; the Free Software Foundation gives
  35. +# unlimited permission to copy and/or distribute it, with or without
  36. +# modifications, as long as this notice is preserved.
  37. +
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. -# serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
  67. +# serial 56 LT_INIT
  68. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  69. -# -----------------------------------------------------------
  70. -# If this macro is not defined by Autoconf, define it here.
  71. -m4_ifdef([AC_PROVIDE_IFELSE],
  72. - [],
  73. - [m4_define([AC_PROVIDE_IFELSE],
  74. - [m4_ifdef([AC_PROVIDE_$1],
  75. - [$2], [$3])])])
  76. +# LT_PREREQ(VERSION)
  77. +# ------------------
  78. +# Complain and exit if this libtool version is less that VERSION.
  79. +m4_defun([LT_PREREQ],
  80. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  81. + [m4_default([$3],
  82. + [m4_fatal([Libtool version $1 or higher is required],
  83. + 63)])],
  84. + [$2])])
  85. -# AC_PROG_LIBTOOL
  86. -# ---------------
  87. -AC_DEFUN([AC_PROG_LIBTOOL],
  88. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  89. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  90. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  91. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  92. - [AC_LIBTOOL_CXX],
  93. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  94. - ])])
  95. -dnl And a similar setup for Fortran 77 support
  96. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  97. - [AC_LIBTOOL_F77],
  98. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  99. -])])
  100. -
  101. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  102. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  103. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  104. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  105. - [AC_LIBTOOL_GCJ],
  106. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  107. - [AC_LIBTOOL_GCJ],
  108. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [ifdef([AC_PROG_GCJ],
  111. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  112. - ifdef([A][M_PROG_GCJ],
  113. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  114. - ifdef([LT_AC_PROG_GCJ],
  115. - [define([LT_AC_PROG_GCJ],
  116. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  117. -])])# AC_PROG_LIBTOOL
  118. +# _LT_CHECK_BUILDDIR
  119. +# ------------------
  120. +# Complain if the absolute build directory name contains unusual characters
  121. +m4_defun([_LT_CHECK_BUILDDIR],
  122. +[case `pwd` in
  123. + *\ * | *\ *)
  124. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  125. +esac
  126. +])
  127. -# _AC_PROG_LIBTOOL
  128. -# ----------------
  129. -AC_DEFUN([_AC_PROG_LIBTOOL],
  130. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  134. +# LT_INIT([OPTIONS])
  135. +# ------------------
  136. +AC_DEFUN([LT_INIT],
  137. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  138. +AC_BEFORE([$0], [LT_LANG])dnl
  139. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  140. +AC_BEFORE([$0], [LTDL_INIT])dnl
  141. +m4_require([_LT_CHECK_BUILDDIR])dnl
  142. +
  143. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  144. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  145. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  146. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  147. +dnl unless we require an AC_DEFUNed macro:
  148. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  149. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  150. +AC_REQUIRE([LTVERSION_VERSION])dnl
  151. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  152. +m4_require([_LT_PROG_LTMAIN])dnl
  153. +
  154. +dnl Parse OPTIONS
  155. +_LT_SET_OPTIONS([$0], [$1])
  156. # This can be used to rebuild libtool when needed
  157. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  158. +LIBTOOL_DEPS="$ltmain"
  159. # Always use our own libtool.
  160. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  161. AC_SUBST(LIBTOOL)dnl
  162. -# Prevent multiple expansion
  163. -define([AC_PROG_LIBTOOL], [])
  164. -])# _AC_PROG_LIBTOOL
  165. +_LT_SETUP
  166. +# Only expand once:
  167. +m4_define([LT_INIT])
  168. +])# LT_INIT
  169. +
  170. +# Old names:
  171. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  172. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  173. +dnl aclocal-1.4 backwards compatibility:
  174. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  175. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  176. -# AC_LIBTOOL_SETUP
  177. -# ----------------
  178. -AC_DEFUN([AC_LIBTOOL_SETUP],
  179. -[AC_PREREQ(2.50)dnl
  180. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  181. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  182. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  183. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  184. +
  185. +# _LT_CC_BASENAME(CC)
  186. +# -------------------
  187. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  188. +m4_defun([_LT_CC_BASENAME],
  189. +[for cc_temp in $1""; do
  190. + case $cc_temp in
  191. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  192. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  193. + \-*) ;;
  194. + *) break;;
  195. + esac
  196. +done
  197. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  198. +])
  199. +
  200. +
  201. +# _LT_FILEUTILS_DEFAULTS
  202. +# ----------------------
  203. +# It is okay to use these file commands and assume they have been set
  204. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  205. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  206. +[: ${CP="cp -f"}
  207. +: ${MV="mv -f"}
  208. +: ${RM="rm -f"}
  209. +])# _LT_FILEUTILS_DEFAULTS
  210. +
  211. +
  212. +# _LT_SETUP
  213. +# ---------
  214. +m4_defun([_LT_SETUP],
  215. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  216. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  217. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  218. +_LT_DECL([], [host], [0])dnl
  219. +_LT_DECL([], [host_os], [0])dnl
  220. +dnl
  221. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  222. +_LT_DECL([], [build], [0])dnl
  223. +_LT_DECL([], [build_os], [0])dnl
  224. +dnl
  225. AC_REQUIRE([AC_PROG_CC])dnl
  226. -AC_REQUIRE([AC_PROG_LD])dnl
  227. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  228. -AC_REQUIRE([AC_PROG_NM])dnl
  229. -
  230. +AC_REQUIRE([LT_PATH_LD])dnl
  231. +AC_REQUIRE([LT_PATH_NM])dnl
  232. +dnl
  233. AC_REQUIRE([AC_PROG_LN_S])dnl
  234. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  235. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  236. -AC_REQUIRE([AC_OBJEXT])dnl
  237. -AC_REQUIRE([AC_EXEEXT])dnl
  238. +test -z "$LN_S" && LN_S="ln -s"
  239. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  240. +dnl
  241. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  242. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  243. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  244. dnl
  245. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  246. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  247. +m4_require([_LT_CMD_RELOAD])dnl
  248. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  249. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  250. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  251. +
  252. +_LT_CONFIG_LIBTOOL_INIT([
  253. +# See if we are running on zsh, and set the options which allow our
  254. +# commands through without removal of \ escapes INIT.
  255. +if test -n "\${ZSH_VERSION+set}" ; then
  256. + setopt NO_GLOB_SUBST
  257. +fi
  258. +])
  259. +if test -n "${ZSH_VERSION+set}" ; then
  260. + setopt NO_GLOB_SUBST
  261. +fi
  262. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  263. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  264. -AC_LIBTOOL_OBJDIR
  265. +_LT_CHECK_OBJDIR
  266. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  267. -_LT_AC_PROG_ECHO_BACKSLASH
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -123,6299 +216,7775 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  355. -enable_win32_dll=yes, enable_win32_dll=no)
  356. -
  357. -AC_ARG_ENABLE([libtool-lock],
  358. - [AC_HELP_STRING([--disable-libtool-lock],
  359. - [avoid locking (might break parallel builds)])])
  360. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  361. +# Use C for the default configuration in the libtool script
  362. +LT_SUPPORTED_TAG([CC])
  363. +_LT_LANG_C_CONFIG
  364. +_LT_LANG_DEFAULT_CONFIG
  365. +_LT_CONFIG_COMMANDS
  366. +])# _LT_SETUP
  367. -AC_ARG_WITH([pic],
  368. - [AC_HELP_STRING([--with-pic],
  369. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  370. - [pic_mode="$withval"],
  371. - [pic_mode=default])
  372. -test -z "$pic_mode" && pic_mode=default
  373. -# Use C for the default configuration in the libtool script
  374. -tagname=
  375. -AC_LIBTOOL_LANG_C_CONFIG
  376. -_LT_AC_TAGCONFIG
  377. -])# AC_LIBTOOL_SETUP
  378. +# _LT_PROG_LTMAIN
  379. +# ---------------
  380. +# Note that this code is called both from `configure', and `config.status'
  381. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  382. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  383. +# so we pass a copy along to make sure it has a sensible value anyway.
  384. +m4_defun([_LT_PROG_LTMAIN],
  385. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  386. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  387. +ltmain="$ac_aux_dir/ltmain.sh"
  388. +])# _LT_PROG_LTMAIN
  389. -# _LT_AC_SYS_COMPILER
  390. -# -------------------
  391. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  392. -[AC_REQUIRE([AC_PROG_CC])dnl
  393. -# If no C compiler was specified, use CC.
  394. -LTCC=${LTCC-"$CC"}
  395. +# So that we can recreate a full libtool script including additional
  396. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  397. +# in macros and then make a single call at the end using the `libtool'
  398. +# label.
  399. -# If no C compiler flags were specified, use CFLAGS.
  400. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  401. -# Allow CC to be a program name with arguments.
  402. -compiler=$CC
  403. -])# _LT_AC_SYS_COMPILER
  404. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  405. +# ----------------------------------------
  406. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  407. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  408. +[m4_ifval([$1],
  409. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  410. + [$1
  411. +])])])
  412. +# Initialize.
  413. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  414. -# _LT_CC_BASENAME(CC)
  415. -# -------------------
  416. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  417. -AC_DEFUN([_LT_CC_BASENAME],
  418. -[for cc_temp in $1""; do
  419. - case $cc_temp in
  420. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  421. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  422. - \-*) ;;
  423. - *) break;;
  424. - esac
  425. -done
  426. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  427. +
  428. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  429. +# ------------------------------
  430. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  431. +m4_define([_LT_CONFIG_LIBTOOL],
  432. +[m4_ifval([$1],
  433. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  434. + [$1
  435. +])])])
  436. +
  437. +# Initialize.
  438. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  439. +
  440. +
  441. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  442. +# -----------------------------------------------------
  443. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  444. +[_LT_CONFIG_LIBTOOL([$1])
  445. +_LT_CONFIG_LIBTOOL_INIT([$2])
  446. ])
  447. -# _LT_COMPILER_BOILERPLATE
  448. -# ------------------------
  449. -# Check for compiler boilerplate output or warnings with
  450. -# the simple compiler test code.
  451. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  452. -[ac_outfile=conftest.$ac_objext
  453. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  454. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  455. -_lt_compiler_boilerplate=`cat conftest.err`
  456. -$rm conftest*
  457. -])# _LT_COMPILER_BOILERPLATE
  458. +# _LT_FORMAT_COMMENT([COMMENT])
  459. +# -----------------------------
  460. +# Add leading comment marks to the start of each line, and a trailing
  461. +# full-stop to the whole comment if one is not present already.
  462. +m4_define([_LT_FORMAT_COMMENT],
  463. +[m4_ifval([$1], [
  464. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  465. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  466. +)])
  467. -# _LT_LINKER_BOILERPLATE
  468. -# ----------------------
  469. -# Check for linker boilerplate output or warnings with
  470. -# the simple link test code.
  471. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  472. -[ac_outfile=conftest.$ac_objext
  473. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  474. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  475. -_lt_linker_boilerplate=`cat conftest.err`
  476. -$rm conftest*
  477. -])# _LT_LINKER_BOILERPLATE
  478. -# _LT_AC_SYS_LIBPATH_AIX
  479. -# ----------------------
  480. -# Links a minimal program and checks the executable
  481. -# for the system default hardcoded library path. In most cases,
  482. -# this is /usr/lib:/lib, but when the MPI compilers are used
  483. -# the location of the communication and MPI libs are included too.
  484. -# If we don't find anything, use the default library path according
  485. -# to the aix ld manual.
  486. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  487. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  488. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  489. -}'`
  490. -# Check for a 64-bit object if we didn't find anything.
  491. -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; }
  492. -}'`; fi],[])
  493. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  494. -])# _LT_AC_SYS_LIBPATH_AIX
  495. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  496. +# -------------------------------------------------------------------
  497. +# CONFIGNAME is the name given to the value in the libtool script.
  498. +# VARNAME is the (base) name used in the configure script.
  499. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  500. +# VARNAME. Any other value will be used directly.
  501. +m4_define([_LT_DECL],
  502. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  503. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  504. + [m4_ifval([$1], [$1], [$2])])
  505. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  506. + m4_ifval([$4],
  507. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  508. + lt_dict_add_subkey([lt_decl_dict], [$2],
  509. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  510. +])
  511. -# _LT_AC_SHELL_INIT(ARG)
  512. -# ----------------------
  513. -AC_DEFUN([_LT_AC_SHELL_INIT],
  514. -[ifdef([AC_DIVERSION_NOTICE],
  515. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  516. - [AC_DIVERT_PUSH(NOTICE)])
  517. -$1
  518. -AC_DIVERT_POP
  519. -])# _LT_AC_SHELL_INIT
  520. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  521. +# --------------------------------------------------------
  522. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  523. +
  524. +
  525. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  526. +# ------------------------------------------------
  527. +m4_define([lt_decl_tag_varnames],
  528. +[_lt_decl_filter([tagged?], [yes], $@)])
  529. +
  530. +
  531. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  532. +# ---------------------------------------------------------
  533. +m4_define([_lt_decl_filter],
  534. +[m4_case([$#],
  535. + [0], [m4_fatal([$0: too few arguments: $#])],
  536. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  537. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  538. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  539. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  540. +])
  541. -# _LT_AC_PROG_ECHO_BACKSLASH
  542. -# --------------------------
  543. -# Add some code to the start of the generated configure script which
  544. -# will find an echo command which doesn't interpret backslashes.
  545. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  546. -[_LT_AC_SHELL_INIT([
  547. -# Check that we are running under the correct shell.
  548. -SHELL=${CONFIG_SHELL-/bin/sh}
  549. -case X$ECHO in
  550. -X*--fallback-echo)
  551. - # Remove one level of quotation (which was required for Make).
  552. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  553. - ;;
  554. -esac
  555. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  556. +# --------------------------------------------------
  557. +m4_define([lt_decl_quote_varnames],
  558. +[_lt_decl_filter([value], [1], $@)])
  559. +
  560. +
  561. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  562. +# ---------------------------------------------------
  563. +m4_define([lt_decl_dquote_varnames],
  564. +[_lt_decl_filter([value], [2], $@)])
  565. +
  566. +
  567. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  568. +# ---------------------------------------------------
  569. +m4_define([lt_decl_varnames_tagged],
  570. +[m4_assert([$# <= 2])dnl
  571. +_$0(m4_quote(m4_default([$1], [[, ]])),
  572. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  573. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  574. +m4_define([_lt_decl_varnames_tagged],
  575. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  576. +
  577. +
  578. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  579. +# ------------------------------------------------
  580. +m4_define([lt_decl_all_varnames],
  581. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  582. + m4_if([$2], [],
  583. + m4_quote(lt_decl_varnames),
  584. + m4_quote(m4_shift($@))))[]dnl
  585. +])
  586. +m4_define([_lt_decl_all_varnames],
  587. +[lt_join($@, lt_decl_varnames_tagged([$1],
  588. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  589. +])
  590. -echo=${ECHO-echo}
  591. -if test "X[$]1" = X--no-reexec; then
  592. - # Discard the --no-reexec flag, and continue.
  593. - shift
  594. -elif test "X[$]1" = X--fallback-echo; then
  595. - # Avoid inline document here, it may be left over
  596. - :
  597. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  598. - # Yippee, $echo works!
  599. - :
  600. -else
  601. - # Restart under the correct shell.
  602. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  603. -fi
  604. -if test "X[$]1" = X--fallback-echo; then
  605. - # used as fallback echo
  606. - shift
  607. - cat <<EOF
  608. -[$]*
  609. -EOF
  610. - exit 0
  611. -fi
  612. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  613. +# ------------------------------------
  614. +# Quote a variable value, and forward it to `config.status' so that its
  615. +# declaration there will have the same value as in `configure'. VARNAME
  616. +# must have a single quote delimited value for this to work.
  617. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  618. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  619. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  620. -# if CDPATH is set.
  621. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  622. -if test -z "$ECHO"; then
  623. -if test "X${echo_test_string+set}" != Xset; then
  624. -# find a string as large as possible, as long as the shell can cope with it
  625. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  626. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  627. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  628. - echo_test_string=`eval $cmd` &&
  629. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  630. - then
  631. - break
  632. - fi
  633. - done
  634. -fi
  635. +# _LT_CONFIG_STATUS_DECLARATIONS
  636. +# ------------------------------
  637. +# We delimit libtool config variables with single quotes, so when
  638. +# we write them to config.status, we have to be sure to quote all
  639. +# embedded single quotes properly. In configure, this macro expands
  640. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  641. +#
  642. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  643. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  644. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  645. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  646. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  647. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  648. - test "X$echo_testing_string" = "X$echo_test_string"; then
  649. - :
  650. -else
  651. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  652. - # backslashes. This makes it impossible to quote backslashes using
  653. - # echo "$something" | sed 's/\\/\\\\/g'
  654. - #
  655. - # So, first we look for a working echo in the user's PATH.
  656. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  657. - for dir in $PATH /usr/ucb; do
  658. - IFS="$lt_save_ifs"
  659. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  660. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  661. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  662. - test "X$echo_testing_string" = "X$echo_test_string"; then
  663. - echo="$dir/echo"
  664. - break
  665. - fi
  666. - done
  667. - IFS="$lt_save_ifs"
  668. +# _LT_LIBTOOL_TAGS
  669. +# ----------------
  670. +# Output comment and list of tags supported by the script
  671. +m4_defun([_LT_LIBTOOL_TAGS],
  672. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  673. +available_tags="_LT_TAGS"dnl
  674. +])
  675. - if test "X$echo" = Xecho; then
  676. - # We didn't find a better echo, so look for alternatives.
  677. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  678. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  679. - test "X$echo_testing_string" = "X$echo_test_string"; then
  680. - # This shell has a builtin print -r that does the trick.
  681. - echo='print -r'
  682. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  683. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  684. - # If we have ksh, try running configure again with it.
  685. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  686. - export ORIGINAL_CONFIG_SHELL
  687. - CONFIG_SHELL=/bin/ksh
  688. - export CONFIG_SHELL
  689. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  690. - else
  691. - # Try using printf.
  692. - echo='printf %s\n'
  693. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  694. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  695. - test "X$echo_testing_string" = "X$echo_test_string"; then
  696. - # Cool, printf works
  697. - :
  698. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  699. - test "X$echo_testing_string" = 'X\t' &&
  700. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  701. - test "X$echo_testing_string" = "X$echo_test_string"; then
  702. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  703. - export CONFIG_SHELL
  704. - SHELL="$CONFIG_SHELL"
  705. - export SHELL
  706. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  707. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  708. - test "X$echo_testing_string" = 'X\t' &&
  709. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  710. - test "X$echo_testing_string" = "X$echo_test_string"; then
  711. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  712. - else
  713. - # maybe with a smaller string...
  714. - prev=:
  715. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  716. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  717. - then
  718. - break
  719. - fi
  720. - prev="$cmd"
  721. - done
  722. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  723. +# -----------------------------------
  724. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  725. +# expand to a commented shell variable setting:
  726. +#
  727. +# # Some comment about what VAR is for.
  728. +# visible_name=$lt_internal_name
  729. +m4_define([_LT_LIBTOOL_DECLARE],
  730. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  731. + [description])))[]dnl
  732. +m4_pushdef([_libtool_name],
  733. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  734. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  735. + [0], [_libtool_name=[$]$1],
  736. + [1], [_libtool_name=$lt_[]$1],
  737. + [2], [_libtool_name=$lt_[]$1],
  738. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  739. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  740. +])
  741. - if test "$prev" != 'sed 50q "[$]0"'; then
  742. - echo_test_string=`eval $prev`
  743. - export echo_test_string
  744. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  745. - else
  746. - # Oops. We lost completely, so just stick with echo.
  747. - echo=echo
  748. - fi
  749. - fi
  750. - fi
  751. - fi
  752. -fi
  753. -fi
  754. -# Copy echo and quote the copy suitably for passing to libtool from
  755. -# the Makefile, instead of quoting the original, which is used later.
  756. -ECHO=$echo
  757. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  758. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  759. -fi
  760. +# _LT_LIBTOOL_CONFIG_VARS
  761. +# -----------------------
  762. +# Produce commented declarations of non-tagged libtool config variables
  763. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  764. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  765. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  766. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  767. +[m4_foreach([_lt_var],
  768. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  769. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  770. -AC_SUBST(ECHO)
  771. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  772. +# _LT_LIBTOOL_TAG_VARS(TAG)
  773. +# -------------------------
  774. +m4_define([_LT_LIBTOOL_TAG_VARS],
  775. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  776. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  777. -# _LT_AC_LOCK
  778. -# -----------
  779. -AC_DEFUN([_LT_AC_LOCK],
  780. -[AC_ARG_ENABLE([libtool-lock],
  781. - [AC_HELP_STRING([--disable-libtool-lock],
  782. - [avoid locking (might break parallel builds)])])
  783. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  784. -# Some flags need to be propagated to the compiler or linker for good
  785. -# libtool support.
  786. -case $host in
  787. -ia64-*-hpux*)
  788. - # Find out which ABI we are using.
  789. - echo 'int i;' > conftest.$ac_ext
  790. - if AC_TRY_EVAL(ac_compile); then
  791. - case `/usr/bin/file conftest.$ac_objext` in
  792. - *ELF-32*)
  793. - HPUX_IA64_MODE="32"
  794. - ;;
  795. - *ELF-64*)
  796. - HPUX_IA64_MODE="64"
  797. - ;;
  798. - esac
  799. - fi
  800. - rm -rf conftest*
  801. - ;;
  802. -*-*-irix6*)
  803. - # Find out which ABI we are using.
  804. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  805. - if AC_TRY_EVAL(ac_compile); then
  806. - if test "$lt_cv_prog_gnu_ld" = yes; then
  807. - case `/usr/bin/file conftest.$ac_objext` in
  808. - *32-bit*)
  809. - LD="${LD-ld} -melf32bsmip"
  810. - ;;
  811. - *N32*)
  812. - LD="${LD-ld} -melf32bmipn32"
  813. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  814. +# ------------------------------
  815. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  816. +
  817. +
  818. +# _LT_CONFIG_COMMANDS
  819. +# -------------------
  820. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  821. +# variables for single and double quote escaping we saved from calls
  822. +# to _LT_DECL, we can put quote escaped variables declarations
  823. +# into `config.status', and then the shell code to quote escape them in
  824. +# for loops in `config.status'. Finally, any additional code accumulated
  825. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  826. +m4_defun([_LT_CONFIG_COMMANDS],
  827. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  828. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  829. + dnl instead of duplicating it all over again into config.status,
  830. + dnl then we will have config.status run $CONFIG_LT later, so it
  831. + dnl needs to know what name is stored there:
  832. + [AC_CONFIG_COMMANDS([libtool],
  833. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  834. + dnl If the libtool generation code is destined for config.status,
  835. + dnl expand the accumulated commands and init code now:
  836. + [AC_CONFIG_COMMANDS([libtool],
  837. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  838. +])#_LT_CONFIG_COMMANDS
  839. +
  840. +
  841. +# Initialize.
  842. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  843. +[
  844. +
  845. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  846. +# if CDPATH is set.
  847. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  848. +
  849. +sed_quote_subst='$sed_quote_subst'
  850. +double_quote_subst='$double_quote_subst'
  851. +delay_variable_subst='$delay_variable_subst'
  852. +_LT_CONFIG_STATUS_DECLARATIONS
  853. +LTCC='$LTCC'
  854. +LTCFLAGS='$LTCFLAGS'
  855. +compiler='$compiler_DEFAULT'
  856. +
  857. +# Quote evaled strings.
  858. +for var in lt_decl_all_varnames([[ \
  859. +]], lt_decl_quote_varnames); do
  860. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  861. + *[[\\\\\\\`\\"\\\$]]*)
  862. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  863. ;;
  864. - *64-bit*)
  865. - LD="${LD-ld} -melf64bmip"
  866. + *)
  867. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  868. ;;
  869. esac
  870. - else
  871. - case `/usr/bin/file conftest.$ac_objext` in
  872. - *32-bit*)
  873. - LD="${LD-ld} -32"
  874. - ;;
  875. - *N32*)
  876. - LD="${LD-ld} -n32"
  877. +done
  878. +
  879. +# Double-quote double-evaled strings.
  880. +for var in lt_decl_all_varnames([[ \
  881. +]], lt_decl_dquote_varnames); do
  882. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  883. + *[[\\\\\\\`\\"\\\$]]*)
  884. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  885. ;;
  886. - *64-bit*)
  887. - LD="${LD-ld} -64"
  888. + *)
  889. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  890. ;;
  891. esac
  892. - fi
  893. - fi
  894. - rm -rf conftest*
  895. - ;;
  896. -
  897. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  898. - # Find out which ABI we are using.
  899. - echo 'int i;' > conftest.$ac_ext
  900. - if AC_TRY_EVAL(ac_compile); then
  901. - case `/usr/bin/file conftest.o` in
  902. - *32-bit*)
  903. - case $host in
  904. - x86_64-*linux*)
  905. - LD="${LD-ld} -m elf_i386"
  906. - ;;
  907. - ppc64-*linux*|powerpc64-*linux*)
  908. - LD="${LD-ld} -m elf32ppclinux"
  909. - ;;
  910. - s390x-*linux*)
  911. - LD="${LD-ld} -m elf_s390"
  912. - ;;
  913. - sparc64-*linux*)
  914. - LD="${LD-ld} -m elf32_sparc"
  915. - ;;
  916. - esac
  917. - ;;
  918. - *64-bit*)
  919. - case $host in
  920. - x86_64-*linux*)
  921. - LD="${LD-ld} -m elf_x86_64"
  922. - ;;
  923. - ppc*-*linux*|powerpc*-*linux*)
  924. - LD="${LD-ld} -m elf64ppc"
  925. - ;;
  926. - s390*-*linux*)
  927. - LD="${LD-ld} -m elf64_s390"
  928. - ;;
  929. - sparc*-*linux*)
  930. - LD="${LD-ld} -m elf64_sparc"
  931. - ;;
  932. - esac
  933. - ;;
  934. - esac
  935. - fi
  936. - rm -rf conftest*
  937. - ;;
  938. -
  939. -*-*-sco3.2v5*)
  940. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  941. - SAVE_CFLAGS="$CFLAGS"
  942. - CFLAGS="$CFLAGS -belf"
  943. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  944. - [AC_LANG_PUSH(C)
  945. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  946. - AC_LANG_POP])
  947. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  948. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  949. - CFLAGS="$SAVE_CFLAGS"
  950. - fi
  951. - ;;
  952. -sparc*-*solaris*)
  953. - # Find out which ABI we are using.
  954. - echo 'int i;' > conftest.$ac_ext
  955. - if AC_TRY_EVAL(ac_compile); then
  956. - case `/usr/bin/file conftest.o` in
  957. - *64-bit*)
  958. - case $lt_cv_prog_gnu_ld in
  959. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  960. - *) LD="${LD-ld} -64" ;;
  961. - esac
  962. - ;;
  963. - esac
  964. - fi
  965. - rm -rf conftest*
  966. - ;;
  967. +done
  968. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  969. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  970. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  971. - AC_CHECK_TOOL(AS, as, false)
  972. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  973. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  974. +case \$lt_ECHO in
  975. +*'\\\[$]0 --fallback-echo"')dnl "
  976. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  977. ;;
  978. - ])
  979. esac
  980. -need_locks="$enable_libtool_lock"
  981. +_LT_OUTPUT_LIBTOOL_INIT
  982. +])
  983. -])# _LT_AC_LOCK
  984. +# LT_OUTPUT
  985. +# ---------
  986. +# This macro allows early generation of the libtool script (before
  987. +# AC_OUTPUT is called), incase it is used in configure for compilation
  988. +# tests.
  989. +AC_DEFUN([LT_OUTPUT],
  990. +[: ${CONFIG_LT=./config.lt}
  991. +AC_MSG_NOTICE([creating $CONFIG_LT])
  992. +cat >"$CONFIG_LT" <<_LTEOF
  993. +#! $SHELL
  994. +# Generated by $as_me.
  995. +# Run this file to recreate a libtool stub with the current configuration.
  996. +
  997. +lt_cl_silent=false
  998. +SHELL=\${CONFIG_SHELL-$SHELL}
  999. +_LTEOF
  1000. +
  1001. +cat >>"$CONFIG_LT" <<\_LTEOF
  1002. +AS_SHELL_SANITIZE
  1003. +_AS_PREPARE
  1004. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1005. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1006. -# ----------------------------------------------------------------
  1007. -# Check whether the given compiler option works
  1008. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1009. -[AC_REQUIRE([LT_AC_PROG_SED])
  1010. -AC_CACHE_CHECK([$1], [$2],
  1011. - [$2=no
  1012. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1013. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1014. - lt_compiler_flag="$3"
  1015. - # Insert the option either (1) after the last *FLAGS variable, or
  1016. - # (2) before a word containing "conftest.", or (3) at the end.
  1017. - # Note that $ac_compile itself does not contain backslashes and begins
  1018. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1019. - # The option is referenced via a variable to avoid confusing sed.
  1020. - lt_compile=`echo "$ac_compile" | $SED \
  1021. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1022. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1023. - -e 's:$: $lt_compiler_flag:'`
  1024. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1025. - (eval "$lt_compile" 2>conftest.err)
  1026. - ac_status=$?
  1027. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1028. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1029. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1030. - # The compiler can only warn and ignore the option if not recognized
  1031. - # So say no if there are warnings other than the usual output.
  1032. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1033. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1034. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1035. - $2=yes
  1036. - fi
  1037. - fi
  1038. - $rm conftest*
  1039. -])
  1040. +exec AS_MESSAGE_FD>&1
  1041. +exec AS_MESSAGE_LOG_FD>>config.log
  1042. +{
  1043. + echo
  1044. + AS_BOX([Running $as_me.])
  1045. +} >&AS_MESSAGE_LOG_FD
  1046. +
  1047. +lt_cl_help="\
  1048. +\`$as_me' creates a local libtool stub from the current configuration,
  1049. +for use in further configure time tests before the real libtool is
  1050. +generated.
  1051. +
  1052. +Usage: $[0] [[OPTIONS]]
  1053. +
  1054. + -h, --help print this help, then exit
  1055. + -V, --version print version number, then exit
  1056. + -q, --quiet do not print progress messages
  1057. + -d, --debug don't remove temporary files
  1058. +
  1059. +Report bugs to <bug-libtool@gnu.org>."
  1060. +
  1061. +lt_cl_version="\
  1062. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1063. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1064. +configured by $[0], generated by m4_PACKAGE_STRING.
  1065. +
  1066. +Copyright (C) 2008 Free Software Foundation, Inc.
  1067. +This config.lt script is free software; the Free Software Foundation
  1068. +gives unlimited permision to copy, distribute and modify it."
  1069. -if test x"[$]$2" = xyes; then
  1070. - ifelse([$5], , :, [$5])
  1071. -else
  1072. - ifelse([$6], , :, [$6])
  1073. -fi
  1074. -])# AC_LIBTOOL_COMPILER_OPTION
  1075. +while test $[#] != 0
  1076. +do
  1077. + case $[1] in
  1078. + --version | --v* | -V )
  1079. + echo "$lt_cl_version"; exit 0 ;;
  1080. + --help | --h* | -h )
  1081. + echo "$lt_cl_help"; exit 0 ;;
  1082. + --debug | --d* | -d )
  1083. + debug=: ;;
  1084. + --quiet | --q* | --silent | --s* | -q )
  1085. + lt_cl_silent=: ;;
  1086. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1087. +Try \`$[0] --help' for more information.]) ;;
  1088. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1089. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1090. -# ------------------------------------------------------------
  1091. -# Check whether the given compiler option works
  1092. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1093. -[AC_CACHE_CHECK([$1], [$2],
  1094. - [$2=no
  1095. - save_LDFLAGS="$LDFLAGS"
  1096. - LDFLAGS="$LDFLAGS $3"
  1097. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1098. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1099. - # The linker can only warn and ignore the option if not recognized
  1100. - # So say no if there are warnings
  1101. - if test -s conftest.err; then
  1102. - # Append any errors to the config.log.
  1103. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1104. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1105. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1106. - if diff conftest.exp conftest.er2 >/dev/null; then
  1107. - $2=yes
  1108. - fi
  1109. - else
  1110. - $2=yes
  1111. - fi
  1112. - fi
  1113. - $rm conftest*
  1114. - LDFLAGS="$save_LDFLAGS"
  1115. -])
  1116. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1117. +Try \`$[0] --help' for more information.]) ;;
  1118. + esac
  1119. + shift
  1120. +done
  1121. -if test x"[$]$2" = xyes; then
  1122. - ifelse([$4], , :, [$4])
  1123. -else
  1124. - ifelse([$5], , :, [$5])
  1125. +if $lt_cl_silent; then
  1126. + exec AS_MESSAGE_FD>/dev/null
  1127. fi
  1128. -])# AC_LIBTOOL_LINKER_OPTION
  1129. +_LTEOF
  1130. +cat >>"$CONFIG_LT" <<_LTEOF
  1131. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1132. +_LTEOF
  1133. +
  1134. +cat >>"$CONFIG_LT" <<\_LTEOF
  1135. +AC_MSG_NOTICE([creating $ofile])
  1136. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1137. +AS_EXIT(0)
  1138. +_LTEOF
  1139. +chmod +x "$CONFIG_LT"
  1140. +
  1141. +# configure is writing to config.log, but config.lt does its own redirection,
  1142. +# appending to config.log, which fails on DOS, as config.log is still kept
  1143. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1144. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1145. +if test "$no_create" != yes; then
  1146. + lt_cl_success=:
  1147. + test "$silent" = yes &&
  1148. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1149. + exec AS_MESSAGE_LOG_FD>/dev/null
  1150. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1151. + exec AS_MESSAGE_LOG_FD>>config.log
  1152. + $lt_cl_success || AS_EXIT(1)
  1153. +fi
  1154. +])# LT_OUTPUT
  1155. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1156. -# --------------------------
  1157. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1158. -[# find the maximum length of command line arguments
  1159. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1160. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1161. - i=0
  1162. - teststring="ABCD"
  1163. - case $build_os in
  1164. - msdosdjgpp*)
  1165. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1166. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1167. - # during glob expansion). Even if it were fixed, the result of this
  1168. - # check would be larger than it should be.
  1169. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1170. - ;;
  1171. +# _LT_CONFIG(TAG)
  1172. +# ---------------
  1173. +# If TAG is the built-in tag, create an initial libtool script with a
  1174. +# default configuration from the untagged config vars. Otherwise add code
  1175. +# to config.status for appending the configuration named by TAG from the
  1176. +# matching tagged config vars.
  1177. +m4_defun([_LT_CONFIG],
  1178. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1179. +_LT_CONFIG_SAVE_COMMANDS([
  1180. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1181. + m4_if(_LT_TAG, [C], [
  1182. + # See if we are running on zsh, and set the options which allow our
  1183. + # commands through without removal of \ escapes.
  1184. + if test -n "${ZSH_VERSION+set}" ; then
  1185. + setopt NO_GLOB_SUBST
  1186. + fi
  1187. - gnu*)
  1188. - # Under GNU Hurd, this test is not required because there is
  1189. - # no limit to the length of command line arguments.
  1190. - # Libtool will interpret -1 as no limit whatsoever
  1191. - lt_cv_sys_max_cmd_len=-1;
  1192. - ;;
  1193. + cfgfile="${ofile}T"
  1194. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1195. + $RM "$cfgfile"
  1196. - cygwin* | mingw*)
  1197. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1198. - # about 5 minutes as the teststring grows exponentially.
  1199. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1200. - # you end up with a "frozen" computer, even though with patience
  1201. - # the test eventually succeeds (with a max line length of 256k).
  1202. - # Instead, let's just punt: use the minimum linelength reported by
  1203. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1204. - lt_cv_sys_max_cmd_len=8192;
  1205. - ;;
  1206. + cat <<_LT_EOF >> "$cfgfile"
  1207. +#! $SHELL
  1208. - amigaos*)
  1209. - # On AmigaOS with pdksh, this test takes hours, literally.
  1210. - # So we just punt and use a minimum line length of 8192.
  1211. - lt_cv_sys_max_cmd_len=8192;
  1212. - ;;
  1213. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1214. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1215. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1216. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1217. +#
  1218. +_LT_COPYING
  1219. +_LT_LIBTOOL_TAGS
  1220. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1221. - # This has been around since 386BSD, at least. Likely further.
  1222. - if test -x /sbin/sysctl; then
  1223. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1224. - elif test -x /usr/sbin/sysctl; then
  1225. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1226. - else
  1227. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1228. - fi
  1229. - # And add a safety zone
  1230. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1231. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1232. - ;;
  1233. +# ### BEGIN LIBTOOL CONFIG
  1234. +_LT_LIBTOOL_CONFIG_VARS
  1235. +_LT_LIBTOOL_TAG_VARS
  1236. +# ### END LIBTOOL CONFIG
  1237. - interix*)
  1238. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1239. - lt_cv_sys_max_cmd_len=196608
  1240. - ;;
  1241. +_LT_EOF
  1242. - osf*)
  1243. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1244. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1245. - # nice to cause kernel panics so lets avoid the loop below.
  1246. - # First set a reasonable default.
  1247. - lt_cv_sys_max_cmd_len=16384
  1248. - #
  1249. - if test -x /sbin/sysconfig; then
  1250. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1251. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1252. - esac
  1253. - fi
  1254. - ;;
  1255. - sco3.2v5*)
  1256. - lt_cv_sys_max_cmd_len=102400
  1257. - ;;
  1258. - sysv5* | sco5v6* | sysv4.2uw2*)
  1259. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1260. - if test -n "$kargmax"; then
  1261. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1262. - else
  1263. - lt_cv_sys_max_cmd_len=32768
  1264. - fi
  1265. - ;;
  1266. - *)
  1267. - # If test is not a shell built-in, we'll probably end up computing a
  1268. - # maximum length that is only half of the actual maximum length, but
  1269. - # we can't tell.
  1270. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1271. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1272. - = "XX$teststring") >/dev/null 2>&1 &&
  1273. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1274. - lt_cv_sys_max_cmd_len=$new_result &&
  1275. - test $i != 17 # 1/2 MB should be enough
  1276. - do
  1277. - i=`expr $i + 1`
  1278. - teststring=$teststring$teststring
  1279. - done
  1280. - teststring=
  1281. - # Add a significant safety factor because C++ compilers can tack on massive
  1282. - # amounts of additional arguments before passing them to the linker.
  1283. - # It appears as though 1/2 is a usable value.
  1284. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1285. + case $host_os in
  1286. + aix3*)
  1287. + cat <<\_LT_EOF >> "$cfgfile"
  1288. +# AIX sometimes has problems with the GCC collect2 program. For some
  1289. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1290. +# vanish in a puff of smoke.
  1291. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1292. + COLLECT_NAMES=
  1293. + export COLLECT_NAMES
  1294. +fi
  1295. +_LT_EOF
  1296. ;;
  1297. esac
  1298. -])
  1299. -if test -n $lt_cv_sys_max_cmd_len ; then
  1300. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1301. -else
  1302. - AC_MSG_RESULT(none)
  1303. -fi
  1304. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1305. +
  1306. + _LT_PROG_LTMAIN
  1307. +
  1308. + # We use sed instead of cat because bash on DJGPP gets confused if
  1309. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1310. + # text mode, it properly converts lines to CR/LF. This bash problem
  1311. + # is reportedly fixed, but why not run on old versions too?
  1312. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1313. + || (rm -f "$cfgfile"; exit 1)
  1314. +
  1315. + _LT_PROG_XSI_SHELLFNS
  1316. +
  1317. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1318. + || (rm -f "$cfgfile"; exit 1)
  1319. +
  1320. + mv -f "$cfgfile" "$ofile" ||
  1321. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1322. + chmod +x "$ofile"
  1323. +],
  1324. +[cat <<_LT_EOF >> "$ofile"
  1325. +
  1326. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1327. +dnl in a comment (ie after a #).
  1328. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1329. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1330. +# ### END LIBTOOL TAG CONFIG: $1
  1331. +_LT_EOF
  1332. +])dnl /m4_if
  1333. +],
  1334. +[m4_if([$1], [], [
  1335. + PACKAGE='$PACKAGE'
  1336. + VERSION='$VERSION'
  1337. + TIMESTAMP='$TIMESTAMP'
  1338. + RM='$RM'
  1339. + ofile='$ofile'], [])
  1340. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1341. +])# _LT_CONFIG
  1342. +
  1343. +
  1344. +# LT_SUPPORTED_TAG(TAG)
  1345. +# ---------------------
  1346. +# Trace this macro to discover what tags are supported by the libtool
  1347. +# --tag option, using:
  1348. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1349. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1350. +
  1351. +
  1352. +# C support is built-in for now
  1353. +m4_define([_LT_LANG_C_enabled], [])
  1354. +m4_define([_LT_TAGS], [])
  1355. +
  1356. +
  1357. +# LT_LANG(LANG)
  1358. +# -------------
  1359. +# Enable libtool support for the given language if not already enabled.
  1360. +AC_DEFUN([LT_LANG],
  1361. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1362. +m4_case([$1],
  1363. + [C], [_LT_LANG(C)],
  1364. + [C++], [_LT_LANG(CXX)],
  1365. + [Java], [_LT_LANG(GCJ)],
  1366. + [Fortran 77], [_LT_LANG(F77)],
  1367. + [Fortran], [_LT_LANG(FC)],
  1368. + [Windows Resource], [_LT_LANG(RC)],
  1369. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1370. + [_LT_LANG($1)],
  1371. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1372. +])# LT_LANG
  1373. -# _LT_AC_CHECK_DLFCN
  1374. +# _LT_LANG(LANGNAME)
  1375. # ------------------
  1376. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1377. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1378. -])# _LT_AC_CHECK_DLFCN
  1379. +m4_defun([_LT_LANG],
  1380. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1381. + [LT_SUPPORTED_TAG([$1])dnl
  1382. + m4_append([_LT_TAGS], [$1 ])dnl
  1383. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1384. + _LT_LANG_$1_CONFIG($1)])dnl
  1385. +])# _LT_LANG
  1386. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1387. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1388. -# ---------------------------------------------------------------------
  1389. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1390. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1391. -if test "$cross_compiling" = yes; then :
  1392. - [$4]
  1393. -else
  1394. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1395. - lt_status=$lt_dlunknown
  1396. - cat > conftest.$ac_ext <<EOF
  1397. -[#line __oline__ "configure"
  1398. -#include "confdefs.h"
  1399. +# _LT_LANG_DEFAULT_CONFIG
  1400. +# -----------------------
  1401. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1402. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1403. + [LT_LANG(CXX)],
  1404. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1405. +
  1406. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1407. + [LT_LANG(F77)],
  1408. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1409. +
  1410. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1411. + [LT_LANG(FC)],
  1412. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1413. +
  1414. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1415. +dnl pulling things in needlessly.
  1416. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1417. + [LT_LANG(GCJ)],
  1418. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1419. + [LT_LANG(GCJ)],
  1420. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1421. + [LT_LANG(GCJ)],
  1422. + [m4_ifdef([AC_PROG_GCJ],
  1423. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1424. + m4_ifdef([A][M_PROG_GCJ],
  1425. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1426. + m4_ifdef([LT_PROG_GCJ],
  1427. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1428. +
  1429. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1430. + [LT_LANG(RC)],
  1431. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1432. +])# _LT_LANG_DEFAULT_CONFIG
  1433. +
  1434. +# Obsolete macros:
  1435. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1436. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1437. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1438. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1439. +dnl aclocal-1.4 backwards compatibility:
  1440. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1441. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1442. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1443. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1444. -#if HAVE_DLFCN_H
  1445. -#include <dlfcn.h>
  1446. -#endif
  1447. -#include <stdio.h>
  1448. +# _LT_TAG_COMPILER
  1449. +# ----------------
  1450. +m4_defun([_LT_TAG_COMPILER],
  1451. +[AC_REQUIRE([AC_PROG_CC])dnl
  1452. -#ifdef RTLD_GLOBAL
  1453. -# define LT_DLGLOBAL RTLD_GLOBAL
  1454. -#else
  1455. -# ifdef DL_GLOBAL
  1456. -# define LT_DLGLOBAL DL_GLOBAL
  1457. -# else
  1458. -# define LT_DLGLOBAL 0
  1459. -# endif
  1460. -#endif
  1461. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1462. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1463. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1464. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1465. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1466. - find out it does not work in some platform. */
  1467. -#ifndef LT_DLLAZY_OR_NOW
  1468. -# ifdef RTLD_LAZY
  1469. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1470. -# else
  1471. -# ifdef DL_LAZY
  1472. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1473. -# else
  1474. -# ifdef RTLD_NOW
  1475. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1476. -# else
  1477. -# ifdef DL_NOW
  1478. -# define LT_DLLAZY_OR_NOW DL_NOW
  1479. -# else
  1480. -# define LT_DLLAZY_OR_NOW 0
  1481. -# endif
  1482. -# endif
  1483. -# endif
  1484. -# endif
  1485. -#endif
  1486. +# If no C compiler was specified, use CC.
  1487. +LTCC=${LTCC-"$CC"}
  1488. -#ifdef __cplusplus
  1489. -extern "C" void exit (int);
  1490. -#endif
  1491. +# If no C compiler flags were specified, use CFLAGS.
  1492. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1493. -void fnord() { int i=42;}
  1494. -int main ()
  1495. -{
  1496. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1497. - int status = $lt_dlunknown;
  1498. +# Allow CC to be a program name with arguments.
  1499. +compiler=$CC
  1500. +])# _LT_TAG_COMPILER
  1501. - if (self)
  1502. - {
  1503. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1504. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1505. - /* dlclose (self); */
  1506. - }
  1507. - else
  1508. - puts (dlerror ());
  1509. - exit (status);
  1510. -}]
  1511. -EOF
  1512. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1513. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1514. - lt_status=$?
  1515. - case x$lt_status in
  1516. - x$lt_dlno_uscore) $1 ;;
  1517. - x$lt_dlneed_uscore) $2 ;;
  1518. - x$lt_dlunknown|x*) $3 ;;
  1519. - esac
  1520. - else :
  1521. - # compilation failed
  1522. - $3
  1523. - fi
  1524. -fi
  1525. -rm -fr conftest*
  1526. -])# _LT_AC_TRY_DLOPEN_SELF
  1527. +# _LT_COMPILER_BOILERPLATE
  1528. +# ------------------------
  1529. +# Check for compiler boilerplate output or warnings with
  1530. +# the simple compiler test code.
  1531. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1532. +[m4_require([_LT_DECL_SED])dnl
  1533. +ac_outfile=conftest.$ac_objext
  1534. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1535. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1536. +_lt_compiler_boilerplate=`cat conftest.err`
  1537. +$RM conftest*
  1538. +])# _LT_COMPILER_BOILERPLATE
  1539. -# AC_LIBTOOL_DLOPEN_SELF
  1540. +# _LT_LINKER_BOILERPLATE
  1541. # ----------------------
  1542. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1543. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1544. -if test "x$enable_dlopen" != xyes; then
  1545. - enable_dlopen=unknown
  1546. - enable_dlopen_self=unknown
  1547. - enable_dlopen_self_static=unknown
  1548. -else
  1549. - lt_cv_dlopen=no
  1550. - lt_cv_dlopen_libs=
  1551. +# Check for linker boilerplate output or warnings with
  1552. +# the simple link test code.
  1553. +m4_defun([_LT_LINKER_BOILERPLATE],
  1554. +[m4_require([_LT_DECL_SED])dnl
  1555. +ac_outfile=conftest.$ac_objext
  1556. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1557. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1558. +_lt_linker_boilerplate=`cat conftest.err`
  1559. +$RM -r conftest*
  1560. +])# _LT_LINKER_BOILERPLATE
  1561. +# _LT_REQUIRED_DARWIN_CHECKS
  1562. +# -------------------------
  1563. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1564. case $host_os in
  1565. - beos*)
  1566. - lt_cv_dlopen="load_add_on"
  1567. - lt_cv_dlopen_libs=
  1568. - lt_cv_dlopen_self=yes
  1569. - ;;
  1570. -
  1571. - mingw* | pw32*)
  1572. - lt_cv_dlopen="LoadLibrary"
  1573. - lt_cv_dlopen_libs=
  1574. - ;;
  1575. -
  1576. - cygwin*)
  1577. - lt_cv_dlopen="dlopen"
  1578. - lt_cv_dlopen_libs=
  1579. - ;;
  1580. -
  1581. - darwin*)
  1582. - # if libdl is installed we need to link against it
  1583. - AC_CHECK_LIB([dl], [dlopen],
  1584. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1585. - lt_cv_dlopen="dyld"
  1586. - lt_cv_dlopen_libs=
  1587. - lt_cv_dlopen_self=yes
  1588. + rhapsody* | darwin*)
  1589. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1590. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1591. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1592. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1593. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1594. + _LT_DECL([], [DSYMUTIL], [1],
  1595. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1596. + _LT_DECL([], [NMEDIT], [1],
  1597. + [Tool to change global to local symbols on Mac OS X])
  1598. + _LT_DECL([], [LIPO], [1],
  1599. + [Tool to manipulate fat objects and archives on Mac OS X])
  1600. + _LT_DECL([], [OTOOL], [1],
  1601. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1602. + _LT_DECL([], [OTOOL64], [1],
  1603. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1604. +
  1605. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1606. + [lt_cv_apple_cc_single_mod=no
  1607. + if test -z "${LT_MULTI_MODULE}"; then
  1608. + # By default we will add the -single_module flag. You can override
  1609. + # by either setting the environment variable LT_MULTI_MODULE
  1610. + # non-empty at configure time, or by adding -multi_module to the
  1611. + # link flags.
  1612. + rm -rf libconftest.dylib*
  1613. + echo "int foo(void){return 1;}" > conftest.c
  1614. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1615. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1616. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1617. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1618. + _lt_result=$?
  1619. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1620. + lt_cv_apple_cc_single_mod=yes
  1621. + else
  1622. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1623. + fi
  1624. + rm -rf libconftest.dylib*
  1625. + rm -f conftest.*
  1626. + fi])
  1627. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1628. + [lt_cv_ld_exported_symbols_list],
  1629. + [lt_cv_ld_exported_symbols_list=no
  1630. + save_LDFLAGS=$LDFLAGS
  1631. + echo "_main" > conftest.sym
  1632. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1633. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1634. + [lt_cv_ld_exported_symbols_list=yes],
  1635. + [lt_cv_ld_exported_symbols_list=no])
  1636. + LDFLAGS="$save_LDFLAGS"
  1637. ])
  1638. - ;;
  1639. -
  1640. - *)
  1641. - AC_CHECK_FUNC([shl_load],
  1642. - [lt_cv_dlopen="shl_load"],
  1643. - [AC_CHECK_LIB([dld], [shl_load],
  1644. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1645. - [AC_CHECK_FUNC([dlopen],
  1646. - [lt_cv_dlopen="dlopen"],
  1647. - [AC_CHECK_LIB([dl], [dlopen],
  1648. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1649. - [AC_CHECK_LIB([svld], [dlopen],
  1650. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1651. - [AC_CHECK_LIB([dld], [dld_link],
  1652. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1653. - ])
  1654. - ])
  1655. - ])
  1656. - ])
  1657. - ])
  1658. + case $host_os in
  1659. + rhapsody* | darwin1.[[012]])
  1660. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1661. + darwin1.*)
  1662. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1663. + darwin*) # darwin 5.x on
  1664. + # if running on 10.5 or later, the deployment target defaults
  1665. + # to the OS version, if on x86, and 10.4, the deployment
  1666. + # target defaults to 10.4. Don't you love it?
  1667. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1668. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1669. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1670. + 10.[[012]]*)
  1671. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1672. + 10.*)
  1673. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1674. + esac
  1675. + ;;
  1676. + esac
  1677. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1678. + _lt_dar_single_mod='$single_module'
  1679. + fi
  1680. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1681. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1682. + else
  1683. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1684. + fi
  1685. + if test "$DSYMUTIL" != ":"; then
  1686. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1687. + else
  1688. + _lt_dsymutil=
  1689. + fi
  1690. ;;
  1691. esac
  1692. +])
  1693. - if test "x$lt_cv_dlopen" != xno; then
  1694. - enable_dlopen=yes
  1695. +
  1696. +# _LT_DARWIN_LINKER_FEATURES
  1697. +# --------------------------
  1698. +# Checks for linker and compiler features on darwin
  1699. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1700. +[
  1701. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1702. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1703. + _LT_TAGVAR(hardcode_direct, $1)=no
  1704. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1705. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1706. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1707. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1708. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1709. + case $cc_basename in
  1710. + ifort*) _lt_dar_can_shared=yes ;;
  1711. + *) _lt_dar_can_shared=$GCC ;;
  1712. + esac
  1713. + if test "$_lt_dar_can_shared" = "yes"; then
  1714. + output_verbose_link_cmd=echo
  1715. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1716. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1717. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1718. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1719. + m4_if([$1], [CXX],
  1720. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1721. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1722. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1723. + fi
  1724. +],[])
  1725. else
  1726. - enable_dlopen=no
  1727. + _LT_TAGVAR(ld_shlibs, $1)=no
  1728. fi
  1729. +])
  1730. - case $lt_cv_dlopen in
  1731. - dlopen)
  1732. - save_CPPFLAGS="$CPPFLAGS"
  1733. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1734. -
  1735. - save_LDFLAGS="$LDFLAGS"
  1736. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1737. +# _LT_SYS_MODULE_PATH_AIX
  1738. +# -----------------------
  1739. +# Links a minimal program and checks the executable
  1740. +# for the system default hardcoded library path. In most cases,
  1741. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1742. +# the location of the communication and MPI libs are included too.
  1743. +# If we don't find anything, use the default library path according
  1744. +# to the aix ld manual.
  1745. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1746. +[m4_require([_LT_DECL_SED])dnl
  1747. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1748. +lt_aix_libpath_sed='
  1749. + /Import File Strings/,/^$/ {
  1750. + /^0/ {
  1751. + s/^0 *\(.*\)$/\1/
  1752. + p
  1753. + }
  1754. + }'
  1755. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1756. +# Check for a 64-bit object if we didn't find anything.
  1757. +if test -z "$aix_libpath"; then
  1758. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1759. +fi],[])
  1760. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1761. +])# _LT_SYS_MODULE_PATH_AIX
  1762. - save_LIBS="$LIBS"
  1763. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1764. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1765. - lt_cv_dlopen_self, [dnl
  1766. - _LT_AC_TRY_DLOPEN_SELF(
  1767. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1768. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1769. - ])
  1770. +# _LT_SHELL_INIT(ARG)
  1771. +# -------------------
  1772. +m4_define([_LT_SHELL_INIT],
  1773. +[ifdef([AC_DIVERSION_NOTICE],
  1774. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1775. + [AC_DIVERT_PUSH(NOTICE)])
  1776. +$1
  1777. +AC_DIVERT_POP
  1778. +])# _LT_SHELL_INIT
  1779. - if test "x$lt_cv_dlopen_self" = xyes; then
  1780. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1781. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1782. - lt_cv_dlopen_self_static, [dnl
  1783. - _LT_AC_TRY_DLOPEN_SELF(
  1784. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1785. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1786. - ])
  1787. - fi
  1788. - CPPFLAGS="$save_CPPFLAGS"
  1789. - LDFLAGS="$save_LDFLAGS"
  1790. - LIBS="$save_LIBS"
  1791. - ;;
  1792. - esac
  1793. +# _LT_PROG_ECHO_BACKSLASH
  1794. +# -----------------------
  1795. +# Add some code to the start of the generated configure script which
  1796. +# will find an echo command which doesn't interpret backslashes.
  1797. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1798. +[_LT_SHELL_INIT([
  1799. +# Check that we are running under the correct shell.
  1800. +SHELL=${CONFIG_SHELL-/bin/sh}
  1801. - case $lt_cv_dlopen_self in
  1802. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1803. - *) enable_dlopen_self=unknown ;;
  1804. - esac
  1805. +case X$lt_ECHO in
  1806. +X*--fallback-echo)
  1807. + # Remove one level of quotation (which was required for Make).
  1808. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1809. + ;;
  1810. +esac
  1811. - case $lt_cv_dlopen_self_static in
  1812. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1813. - *) enable_dlopen_self_static=unknown ;;
  1814. - esac
  1815. +ECHO=${lt_ECHO-echo}
  1816. +if test "X[$]1" = X--no-reexec; then
  1817. + # Discard the --no-reexec flag, and continue.
  1818. + shift
  1819. +elif test "X[$]1" = X--fallback-echo; then
  1820. + # Avoid inline document here, it may be left over
  1821. + :
  1822. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1823. + # Yippee, $ECHO works!
  1824. + :
  1825. +else
  1826. + # Restart under the correct shell.
  1827. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1828. fi
  1829. -])# AC_LIBTOOL_DLOPEN_SELF
  1830. -
  1831. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1832. -# ---------------------------------
  1833. -# Check to see if options -c and -o are simultaneously supported by compiler
  1834. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1835. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1836. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1837. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1838. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1839. - $rm -r conftest 2>/dev/null
  1840. - mkdir conftest
  1841. - cd conftest
  1842. - mkdir out
  1843. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1844. +if test "X[$]1" = X--fallback-echo; then
  1845. + # used as fallback echo
  1846. + shift
  1847. + cat <<_LT_EOF
  1848. +[$]*
  1849. +_LT_EOF
  1850. + exit 0
  1851. +fi
  1852. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1853. - # Insert the option either (1) after the last *FLAGS variable, or
  1854. - # (2) before a word containing "conftest.", or (3) at the end.
  1855. - # Note that $ac_compile itself does not contain backslashes and begins
  1856. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1857. - lt_compile=`echo "$ac_compile" | $SED \
  1858. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1859. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1860. - -e 's:$: $lt_compiler_flag:'`
  1861. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1862. - (eval "$lt_compile" 2>out/conftest.err)
  1863. - ac_status=$?
  1864. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1865. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1866. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1867. - then
  1868. - # The compiler can only warn and ignore the option if not recognized
  1869. - # So say no if there are warnings
  1870. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1871. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1872. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1873. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1874. - fi
  1875. - fi
  1876. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1877. - $rm conftest*
  1878. - # SGI C++ compiler will create directory out/ii_files/ for
  1879. - # template instantiation
  1880. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1881. - $rm out/* && rmdir out
  1882. - cd ..
  1883. - rmdir conftest
  1884. - $rm conftest*
  1885. -])
  1886. -])# AC_LIBTOOL_PROG_CC_C_O
  1887. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1888. +# if CDPATH is set.
  1889. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1890. +if test -z "$lt_ECHO"; then
  1891. + if test "X${echo_test_string+set}" != Xset; then
  1892. + # find a string as large as possible, as long as the shell can cope with it
  1893. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1894. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1895. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1896. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1897. + then
  1898. + break
  1899. + fi
  1900. + done
  1901. + fi
  1902. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1903. -# -----------------------------------------
  1904. -# Check to see if we can do hard links to lock some files if needed
  1905. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1906. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1907. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1908. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1909. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1910. + :
  1911. + else
  1912. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1913. + # backslashes. This makes it impossible to quote backslashes using
  1914. + # echo "$something" | sed 's/\\/\\\\/g'
  1915. + #
  1916. + # So, first we look for a working echo in the user's PATH.
  1917. -hard_links="nottested"
  1918. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1919. - # do not overwrite the value of need_locks provided by the user
  1920. - AC_MSG_CHECKING([if we can lock with hard links])
  1921. - hard_links=yes
  1922. - $rm conftest*
  1923. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1924. - touch conftest.a
  1925. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1926. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1927. - AC_MSG_RESULT([$hard_links])
  1928. - if test "$hard_links" = no; then
  1929. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1930. - need_locks=warn
  1931. - fi
  1932. -else
  1933. - need_locks=no
  1934. -fi
  1935. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1936. -
  1937. -
  1938. -# AC_LIBTOOL_OBJDIR
  1939. -# -----------------
  1940. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1941. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1942. -[rm -f .libs 2>/dev/null
  1943. -mkdir .libs 2>/dev/null
  1944. -if test -d .libs; then
  1945. - lt_cv_objdir=.libs
  1946. -else
  1947. - # MS-DOS does not allow filenames that begin with a dot.
  1948. - lt_cv_objdir=_libs
  1949. -fi
  1950. -rmdir .libs 2>/dev/null])
  1951. -objdir=$lt_cv_objdir
  1952. -])# AC_LIBTOOL_OBJDIR
  1953. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1954. + for dir in $PATH /usr/ucb; do
  1955. + IFS="$lt_save_ifs"
  1956. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1957. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1958. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1959. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1960. + ECHO="$dir/echo"
  1961. + break
  1962. + fi
  1963. + done
  1964. + IFS="$lt_save_ifs"
  1965. + if test "X$ECHO" = Xecho; then
  1966. + # We didn't find a better echo, so look for alternatives.
  1967. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1968. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1969. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1970. + # This shell has a builtin print -r that does the trick.
  1971. + ECHO='print -r'
  1972. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1973. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1974. + # If we have ksh, try running configure again with it.
  1975. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1976. + export ORIGINAL_CONFIG_SHELL
  1977. + CONFIG_SHELL=/bin/ksh
  1978. + export CONFIG_SHELL
  1979. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1980. + else
  1981. + # Try using printf.
  1982. + ECHO='printf %s\n'
  1983. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1984. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1985. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1986. + # Cool, printf works
  1987. + :
  1988. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1989. + test "X$echo_testing_string" = 'X\t' &&
  1990. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1991. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1992. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1993. + export CONFIG_SHELL
  1994. + SHELL="$CONFIG_SHELL"
  1995. + export SHELL
  1996. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1997. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1998. + test "X$echo_testing_string" = 'X\t' &&
  1999. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2000. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2001. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2002. + else
  2003. + # maybe with a smaller string...
  2004. + prev=:
  2005. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2006. -# ----------------------------------------------
  2007. -# Check hardcoding attributes.
  2008. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2009. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2010. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2011. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2012. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2013. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2014. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2015. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2016. + then
  2017. + break
  2018. + fi
  2019. + prev="$cmd"
  2020. + done
  2021. - # We can hardcode non-existant directories.
  2022. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2023. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2024. - # have to relink, otherwise we might link with an installed library
  2025. - # when we should be linking with a yet-to-be-installed one
  2026. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2027. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2028. - # Linking always hardcodes the temporary library directory.
  2029. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2030. - else
  2031. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2032. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2033. + if test "$prev" != 'sed 50q "[$]0"'; then
  2034. + echo_test_string=`eval $prev`
  2035. + export echo_test_string
  2036. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2037. + else
  2038. + # Oops. We lost completely, so just stick with echo.
  2039. + ECHO=echo
  2040. + fi
  2041. + fi
  2042. + fi
  2043. + fi
  2044. fi
  2045. -else
  2046. - # We cannot hardcode anything, or else we can only hardcode existing
  2047. - # directories.
  2048. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2049. fi
  2050. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2051. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2052. - # Fast installation is not supported
  2053. - enable_fast_install=no
  2054. -elif test "$shlibpath_overrides_runpath" = yes ||
  2055. - test "$enable_shared" = no; then
  2056. - # Fast installation is not necessary
  2057. - enable_fast_install=needless
  2058. +# Copy echo and quote the copy suitably for passing to libtool from
  2059. +# the Makefile, instead of quoting the original, which is used later.
  2060. +lt_ECHO=$ECHO
  2061. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2062. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2063. fi
  2064. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2065. +AC_SUBST(lt_ECHO)
  2066. +])
  2067. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2068. +_LT_DECL([], [ECHO], [1],
  2069. + [An echo program that does not interpret backslashes])
  2070. +])# _LT_PROG_ECHO_BACKSLASH
  2071. -# AC_LIBTOOL_SYS_LIB_STRIP
  2072. -# ------------------------
  2073. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2074. -[striplib=
  2075. -old_striplib=
  2076. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2077. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2078. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2079. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2080. - AC_MSG_RESULT([yes])
  2081. -else
  2082. -# FIXME - insert some real tests, host_os isn't really good enough
  2083. - case $host_os in
  2084. - darwin*)
  2085. - if test -n "$STRIP" ; then
  2086. - striplib="$STRIP -x"
  2087. - AC_MSG_RESULT([yes])
  2088. - else
  2089. - AC_MSG_RESULT([no])
  2090. -fi
  2091. - ;;
  2092. - *)
  2093. - AC_MSG_RESULT([no])
  2094. - ;;
  2095. - esac
  2096. -fi
  2097. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2098. +# _LT_ENABLE_LOCK
  2099. +# ---------------
  2100. +m4_defun([_LT_ENABLE_LOCK],
  2101. +[AC_ARG_ENABLE([libtool-lock],
  2102. + [AS_HELP_STRING([--disable-libtool-lock],
  2103. + [avoid locking (might break parallel builds)])])
  2104. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2105. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2106. -# -----------------------------
  2107. -# PORTME Fill in your ld.so characteristics
  2108. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2109. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2110. -library_names_spec=
  2111. -libname_spec='lib$name'
  2112. -soname_spec=
  2113. -shrext_cmds=".so"
  2114. -postinstall_cmds=
  2115. -postuninstall_cmds=
  2116. -finish_cmds=
  2117. -finish_eval=
  2118. -shlibpath_var=
  2119. -shlibpath_overrides_runpath=unknown
  2120. -version_type=none
  2121. -dynamic_linker="$host_os ld.so"
  2122. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2123. -if test "$GCC" = yes; then
  2124. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2125. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2126. - # if the path contains ";" then we assume it to be the separator
  2127. - # otherwise default to the standard path separator (i.e. ":") - it is
  2128. - # assumed that no part of a normal pathname contains ";" but that should
  2129. - # okay in the real world where ";" in dirpaths is itself problematic.
  2130. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2131. - else
  2132. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2133. +# Some flags need to be propagated to the compiler or linker for good
  2134. +# libtool support.
  2135. +case $host in
  2136. +ia64-*-hpux*)
  2137. + # Find out which ABI we are using.
  2138. + echo 'int i;' > conftest.$ac_ext
  2139. + if AC_TRY_EVAL(ac_compile); then
  2140. + case `/usr/bin/file conftest.$ac_objext` in
  2141. + *ELF-32*)
  2142. + HPUX_IA64_MODE="32"
  2143. + ;;
  2144. + *ELF-64*)
  2145. + HPUX_IA64_MODE="64"
  2146. + ;;
  2147. + esac
  2148. fi
  2149. -else
  2150. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2151. -fi
  2152. -need_lib_prefix=unknown
  2153. -hardcode_into_libs=no
  2154. -
  2155. -# when you set need_version to no, make sure it does not cause -set_version
  2156. -# flags to be left without arguments
  2157. -need_version=unknown
  2158. -
  2159. -case $host_os in
  2160. -aix3*)
  2161. - version_type=linux
  2162. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2163. - shlibpath_var=LIBPATH
  2164. -
  2165. - # AIX 3 has no versioning support, so we append a major version to the name.
  2166. - soname_spec='${libname}${release}${shared_ext}$major'
  2167. + rm -rf conftest*
  2168. ;;
  2169. -
  2170. -aix4* | aix5*)
  2171. - version_type=linux
  2172. - need_lib_prefix=no
  2173. - need_version=no
  2174. - hardcode_into_libs=yes
  2175. - if test "$host_cpu" = ia64; then
  2176. - # AIX 5 supports IA64
  2177. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2178. - shlibpath_var=LD_LIBRARY_PATH
  2179. - else
  2180. - # With GCC up to 2.95.x, collect2 would create an import file
  2181. - # for dependence libraries. The import file would start with
  2182. - # the line `#! .'. This would cause the generated library to
  2183. - # depend on `.', always an invalid library. This was fixed in
  2184. - # development snapshots of GCC prior to 3.0.
  2185. - case $host_os in
  2186. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2187. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2188. - echo ' yes '
  2189. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2190. - :
  2191. - else
  2192. - can_build_shared=no
  2193. - fi
  2194. - ;;
  2195. - esac
  2196. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2197. - # soname into executable. Probably we can add versioning support to
  2198. - # collect2, so additional links can be useful in future.
  2199. - if test "$aix_use_runtimelinking" = yes; then
  2200. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2201. - # instead of lib<name>.a to let people know that these are not
  2202. - # typical AIX shared libraries.
  2203. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2204. +*-*-irix6*)
  2205. + # Find out which ABI we are using.
  2206. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2207. + if AC_TRY_EVAL(ac_compile); then
  2208. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2209. + case `/usr/bin/file conftest.$ac_objext` in
  2210. + *32-bit*)
  2211. + LD="${LD-ld} -melf32bsmip"
  2212. + ;;
  2213. + *N32*)
  2214. + LD="${LD-ld} -melf32bmipn32"
  2215. + ;;
  2216. + *64-bit*)
  2217. + LD="${LD-ld} -melf64bmip"
  2218. + ;;
  2219. + esac
  2220. else
  2221. - # We preserve .a as extension for shared libraries through AIX4.2
  2222. - # and later when we are not doing run time linking.
  2223. - library_names_spec='${libname}${release}.a $libname.a'
  2224. - soname_spec='${libname}${release}${shared_ext}$major'
  2225. + case `/usr/bin/file conftest.$ac_objext` in
  2226. + *32-bit*)
  2227. + LD="${LD-ld} -32"
  2228. + ;;
  2229. + *N32*)
  2230. + LD="${LD-ld} -n32"
  2231. + ;;
  2232. + *64-bit*)
  2233. + LD="${LD-ld} -64"
  2234. + ;;
  2235. + esac
  2236. fi
  2237. - shlibpath_var=LIBPATH
  2238. fi
  2239. + rm -rf conftest*
  2240. ;;
  2241. -amigaos*)
  2242. - library_names_spec='$libname.ixlibrary $libname.a'
  2243. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2244. - 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'
  2245. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2246. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2247. + # Find out which ABI we are using.
  2248. + echo 'int i;' > conftest.$ac_ext
  2249. + if AC_TRY_EVAL(ac_compile); then
  2250. + case `/usr/bin/file conftest.o` in
  2251. + *32-bit*)
  2252. + case $host in
  2253. + x86_64-*kfreebsd*-gnu)
  2254. + LD="${LD-ld} -m elf_i386_fbsd"
  2255. + ;;
  2256. + x86_64-*linux*)
  2257. + LD="${LD-ld} -m elf_i386"
  2258. + ;;
  2259. + ppc64-*linux*|powerpc64-*linux*)
  2260. + LD="${LD-ld} -m elf32ppclinux"
  2261. + ;;
  2262. + s390x-*linux*)
  2263. + LD="${LD-ld} -m elf_s390"
  2264. + ;;
  2265. + sparc64-*linux*)
  2266. + LD="${LD-ld} -m elf32_sparc"
  2267. + ;;
  2268. + esac
  2269. + ;;
  2270. + *64-bit*)
  2271. + case $host in
  2272. + x86_64-*kfreebsd*-gnu)
  2273. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2274. + ;;
  2275. + x86_64-*linux*)
  2276. + LD="${LD-ld} -m elf_x86_64"
  2277. + ;;
  2278. + ppc*-*linux*|powerpc*-*linux*)
  2279. + LD="${LD-ld} -m elf64ppc"
  2280. + ;;
  2281. + s390*-*linux*|s390*-*tpf*)
  2282. + LD="${LD-ld} -m elf64_s390"
  2283. + ;;
  2284. + sparc*-*linux*)
  2285. + LD="${LD-ld} -m elf64_sparc"
  2286. + ;;
  2287. + esac
  2288. + ;;
  2289. + esac
  2290. + fi
  2291. + rm -rf conftest*
  2292. ;;
  2293. -beos*)
  2294. - library_names_spec='${libname}${shared_ext}'
  2295. - dynamic_linker="$host_os ld.so"
  2296. - shlibpath_var=LIBRARY_PATH
  2297. +*-*-sco3.2v5*)
  2298. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2299. + SAVE_CFLAGS="$CFLAGS"
  2300. + CFLAGS="$CFLAGS -belf"
  2301. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2302. + [AC_LANG_PUSH(C)
  2303. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2304. + AC_LANG_POP])
  2305. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2306. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2307. + CFLAGS="$SAVE_CFLAGS"
  2308. + fi
  2309. ;;
  2310. -
  2311. -bsdi[[45]]*)
  2312. - version_type=linux
  2313. - need_version=no
  2314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2315. - soname_spec='${libname}${release}${shared_ext}$major'
  2316. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2317. - shlibpath_var=LD_LIBRARY_PATH
  2318. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2319. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2320. - # the default ld.so.conf also contains /usr/contrib/lib and
  2321. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2322. - # libtool to hard-code these into programs
  2323. +sparc*-*solaris*)
  2324. + # Find out which ABI we are using.
  2325. + echo 'int i;' > conftest.$ac_ext
  2326. + if AC_TRY_EVAL(ac_compile); then
  2327. + case `/usr/bin/file conftest.o` in
  2328. + *64-bit*)
  2329. + case $lt_cv_prog_gnu_ld in
  2330. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2331. + *)
  2332. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2333. + LD="${LD-ld} -64"
  2334. + fi
  2335. + ;;
  2336. + esac
  2337. + ;;
  2338. + esac
  2339. + fi
  2340. + rm -rf conftest*
  2341. ;;
  2342. +esac
  2343. -cygwin* | mingw* | pw32*)
  2344. - version_type=windows
  2345. - shrext_cmds=".dll"
  2346. - need_version=no
  2347. - need_lib_prefix=no
  2348. +need_locks="$enable_libtool_lock"
  2349. +])# _LT_ENABLE_LOCK
  2350. - case $GCC,$host_os in
  2351. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2352. - library_names_spec='$libname.dll.a'
  2353. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2354. - postinstall_cmds='base_file=`basename \${file}`~
  2355. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2356. - dldir=$destdir/`dirname \$dlpath`~
  2357. - test -d \$dldir || mkdir -p \$dldir~
  2358. - $install_prog $dir/$dlname \$dldir/$dlname~
  2359. - chmod a+x \$dldir/$dlname'
  2360. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2361. - dlpath=$dir/\$dldll~
  2362. - $rm \$dlpath'
  2363. - shlibpath_overrides_runpath=yes
  2364. - case $host_os in
  2365. - cygwin*)
  2366. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2367. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2368. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2369. - ;;
  2370. - mingw*)
  2371. - # MinGW DLLs use traditional 'lib' prefix
  2372. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2373. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2374. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2375. - # It is most probably a Windows format PATH printed by
  2376. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2377. - # path with ; separators, and with drive letters. We can handle the
  2378. - # drive letters (cygwin fileutils understands them), so leave them,
  2379. - # especially as we might pass files found there to a mingw objdump,
  2380. - # which wouldn't understand a cygwinified path. Ahh.
  2381. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2382. - else
  2383. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2384. - fi
  2385. - ;;
  2386. - pw32*)
  2387. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2388. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2389. - ;;
  2390. - esac
  2391. - ;;
  2392. +# _LT_CMD_OLD_ARCHIVE
  2393. +# -------------------
  2394. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2395. +[AC_CHECK_TOOL(AR, ar, false)
  2396. +test -z "$AR" && AR=ar
  2397. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2398. +_LT_DECL([], [AR], [1], [The archiver])
  2399. +_LT_DECL([], [AR_FLAGS], [1])
  2400. +
  2401. +AC_CHECK_TOOL(STRIP, strip, :)
  2402. +test -z "$STRIP" && STRIP=:
  2403. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2404. +
  2405. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2406. +test -z "$RANLIB" && RANLIB=:
  2407. +_LT_DECL([], [RANLIB], [1],
  2408. + [Commands used to install an old-style archive])
  2409. +
  2410. +# Determine commands to create old-style static archives.
  2411. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2412. +old_postinstall_cmds='chmod 644 $oldlib'
  2413. +old_postuninstall_cmds=
  2414. +if test -n "$RANLIB"; then
  2415. + case $host_os in
  2416. + openbsd*)
  2417. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2418. + ;;
  2419. *)
  2420. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2421. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2422. ;;
  2423. esac
  2424. - dynamic_linker='Win32 ld.exe'
  2425. - # FIXME: first we should search . and the directory the executable is in
  2426. - shlibpath_var=PATH
  2427. - ;;
  2428. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2429. +fi
  2430. +_LT_DECL([], [old_postinstall_cmds], [2])
  2431. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2432. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2433. + [Commands used to build an old-style archive])
  2434. +])# _LT_CMD_OLD_ARCHIVE
  2435. -darwin* | rhapsody*)
  2436. - dynamic_linker="$host_os dyld"
  2437. - version_type=darwin
  2438. - need_lib_prefix=no
  2439. - need_version=no
  2440. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2441. - soname_spec='${libname}${release}${major}$shared_ext'
  2442. - shlibpath_overrides_runpath=yes
  2443. - shlibpath_var=DYLD_LIBRARY_PATH
  2444. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2445. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2446. - if test "$GCC" = yes; then
  2447. - 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"`
  2448. - else
  2449. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2450. - fi
  2451. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2452. - ;;
  2453. -dgux*)
  2454. - version_type=linux
  2455. - need_lib_prefix=no
  2456. - need_version=no
  2457. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2458. - soname_spec='${libname}${release}${shared_ext}$major'
  2459. - shlibpath_var=LD_LIBRARY_PATH
  2460. - ;;
  2461. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2462. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2463. +# ----------------------------------------------------------------
  2464. +# Check whether the given compiler option works
  2465. +AC_DEFUN([_LT_COMPILER_OPTION],
  2466. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2467. +m4_require([_LT_DECL_SED])dnl
  2468. +AC_CACHE_CHECK([$1], [$2],
  2469. + [$2=no
  2470. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2471. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2472. + lt_compiler_flag="$3"
  2473. + # Insert the option either (1) after the last *FLAGS variable, or
  2474. + # (2) before a word containing "conftest.", or (3) at the end.
  2475. + # Note that $ac_compile itself does not contain backslashes and begins
  2476. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2477. + # The option is referenced via a variable to avoid confusing sed.
  2478. + lt_compile=`echo "$ac_compile" | $SED \
  2479. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2480. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2481. + -e 's:$: $lt_compiler_flag:'`
  2482. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2483. + (eval "$lt_compile" 2>conftest.err)
  2484. + ac_status=$?
  2485. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2486. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2487. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2488. + # The compiler can only warn and ignore the option if not recognized
  2489. + # So say no if there are warnings other than the usual output.
  2490. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2491. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2492. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2493. + $2=yes
  2494. + fi
  2495. + fi
  2496. + $RM conftest*
  2497. +])
  2498. -freebsd1*)
  2499. - dynamic_linker=no
  2500. - ;;
  2501. +if test x"[$]$2" = xyes; then
  2502. + m4_if([$5], , :, [$5])
  2503. +else
  2504. + m4_if([$6], , :, [$6])
  2505. +fi
  2506. +])# _LT_COMPILER_OPTION
  2507. -kfreebsd*-gnu)
  2508. - version_type=linux
  2509. - need_lib_prefix=no
  2510. - need_version=no
  2511. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2512. - soname_spec='${libname}${release}${shared_ext}$major'
  2513. - shlibpath_var=LD_LIBRARY_PATH
  2514. - shlibpath_overrides_runpath=no
  2515. - hardcode_into_libs=yes
  2516. - dynamic_linker='GNU ld.so'
  2517. - ;;
  2518. +# Old name:
  2519. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2520. +dnl aclocal-1.4 backwards compatibility:
  2521. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2522. +
  2523. +
  2524. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2525. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2526. +# ----------------------------------------------------
  2527. +# Check whether the given linker option works
  2528. +AC_DEFUN([_LT_LINKER_OPTION],
  2529. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2530. +m4_require([_LT_DECL_SED])dnl
  2531. +AC_CACHE_CHECK([$1], [$2],
  2532. + [$2=no
  2533. + save_LDFLAGS="$LDFLAGS"
  2534. + LDFLAGS="$LDFLAGS $3"
  2535. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2536. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2537. + # The linker can only warn and ignore the option if not recognized
  2538. + # So say no if there are warnings
  2539. + if test -s conftest.err; then
  2540. + # Append any errors to the config.log.
  2541. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2542. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2543. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2544. + if diff conftest.exp conftest.er2 >/dev/null; then
  2545. + $2=yes
  2546. + fi
  2547. + else
  2548. + $2=yes
  2549. + fi
  2550. + fi
  2551. + $RM -r conftest*
  2552. + LDFLAGS="$save_LDFLAGS"
  2553. +])
  2554. -freebsd* | dragonfly*)
  2555. - # DragonFly does not have aout. When/if they implement a new
  2556. - # versioning mechanism, adjust this.
  2557. - if test -x /usr/bin/objformat; then
  2558. - objformat=`/usr/bin/objformat`
  2559. - else
  2560. - case $host_os in
  2561. - freebsd[[123]]*) objformat=aout ;;
  2562. - *) objformat=elf ;;
  2563. - esac
  2564. - fi
  2565. - version_type=freebsd-$objformat
  2566. - case $version_type in
  2567. - freebsd-elf*)
  2568. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2569. - need_version=no
  2570. - need_lib_prefix=no
  2571. - ;;
  2572. - freebsd-*)
  2573. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2574. - need_version=yes
  2575. - ;;
  2576. - esac
  2577. - shlibpath_var=LD_LIBRARY_PATH
  2578. - case $host_os in
  2579. - freebsd2*)
  2580. - shlibpath_overrides_runpath=yes
  2581. +if test x"[$]$2" = xyes; then
  2582. + m4_if([$4], , :, [$4])
  2583. +else
  2584. + m4_if([$5], , :, [$5])
  2585. +fi
  2586. +])# _LT_LINKER_OPTION
  2587. +
  2588. +# Old name:
  2589. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2590. +dnl aclocal-1.4 backwards compatibility:
  2591. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2592. +
  2593. +
  2594. +# LT_CMD_MAX_LEN
  2595. +#---------------
  2596. +AC_DEFUN([LT_CMD_MAX_LEN],
  2597. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2598. +# find the maximum length of command line arguments
  2599. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2600. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2601. + i=0
  2602. + teststring="ABCD"
  2603. +
  2604. + case $build_os in
  2605. + msdosdjgpp*)
  2606. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2607. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2608. + # during glob expansion). Even if it were fixed, the result of this
  2609. + # check would be larger than it should be.
  2610. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2611. ;;
  2612. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2613. - shlibpath_overrides_runpath=yes
  2614. - hardcode_into_libs=yes
  2615. +
  2616. + gnu*)
  2617. + # Under GNU Hurd, this test is not required because there is
  2618. + # no limit to the length of command line arguments.
  2619. + # Libtool will interpret -1 as no limit whatsoever
  2620. + lt_cv_sys_max_cmd_len=-1;
  2621. ;;
  2622. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2623. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2624. - shlibpath_overrides_runpath=no
  2625. - hardcode_into_libs=yes
  2626. +
  2627. + cygwin* | mingw* | cegcc*)
  2628. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2629. + # about 5 minutes as the teststring grows exponentially.
  2630. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2631. + # you end up with a "frozen" computer, even though with patience
  2632. + # the test eventually succeeds (with a max line length of 256k).
  2633. + # Instead, let's just punt: use the minimum linelength reported by
  2634. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2635. + lt_cv_sys_max_cmd_len=8192;
  2636. ;;
  2637. - freebsd*) # from 4.6 on
  2638. - shlibpath_overrides_runpath=yes
  2639. - hardcode_into_libs=yes
  2640. +
  2641. + amigaos*)
  2642. + # On AmigaOS with pdksh, this test takes hours, literally.
  2643. + # So we just punt and use a minimum line length of 8192.
  2644. + lt_cv_sys_max_cmd_len=8192;
  2645. ;;
  2646. - esac
  2647. - ;;
  2648. -gnu*)
  2649. - version_type=linux
  2650. - need_lib_prefix=no
  2651. - need_version=no
  2652. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2653. - soname_spec='${libname}${release}${shared_ext}$major'
  2654. - shlibpath_var=LD_LIBRARY_PATH
  2655. - hardcode_into_libs=yes
  2656. - ;;
  2657. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2658. + # This has been around since 386BSD, at least. Likely further.
  2659. + if test -x /sbin/sysctl; then
  2660. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2661. + elif test -x /usr/sbin/sysctl; then
  2662. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2663. + else
  2664. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2665. + fi
  2666. + # And add a safety zone
  2667. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2668. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2669. + ;;
  2670. -hpux9* | hpux10* | hpux11*)
  2671. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2672. - # link against other versions.
  2673. - version_type=sunos
  2674. - need_lib_prefix=no
  2675. - need_version=no
  2676. - case $host_cpu in
  2677. - ia64*)
  2678. - shrext_cmds='.so'
  2679. - hardcode_into_libs=yes
  2680. - dynamic_linker="$host_os dld.so"
  2681. - shlibpath_var=LD_LIBRARY_PATH
  2682. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2683. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2684. - soname_spec='${libname}${release}${shared_ext}$major'
  2685. - if test "X$HPUX_IA64_MODE" = X32; then
  2686. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2687. - else
  2688. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2689. + interix*)
  2690. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2691. + lt_cv_sys_max_cmd_len=196608
  2692. + ;;
  2693. +
  2694. + osf*)
  2695. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2696. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2697. + # nice to cause kernel panics so lets avoid the loop below.
  2698. + # First set a reasonable default.
  2699. + lt_cv_sys_max_cmd_len=16384
  2700. + #
  2701. + if test -x /sbin/sysconfig; then
  2702. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2703. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2704. + esac
  2705. fi
  2706. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2707. ;;
  2708. - hppa*64*)
  2709. - shrext_cmds='.sl'
  2710. - hardcode_into_libs=yes
  2711. - dynamic_linker="$host_os dld.sl"
  2712. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2713. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2714. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2715. - soname_spec='${libname}${release}${shared_ext}$major'
  2716. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2717. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2718. - ;;
  2719. - *)
  2720. - shrext_cmds='.sl'
  2721. - dynamic_linker="$host_os dld.sl"
  2722. - shlibpath_var=SHLIB_PATH
  2723. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2724. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2725. - soname_spec='${libname}${release}${shared_ext}$major'
  2726. + sco3.2v5*)
  2727. + lt_cv_sys_max_cmd_len=102400
  2728. ;;
  2729. - esac
  2730. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2731. - postinstall_cmds='chmod 555 $lib'
  2732. - ;;
  2733. -
  2734. -interix3*)
  2735. - version_type=linux
  2736. - need_lib_prefix=no
  2737. - need_version=no
  2738. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2739. - soname_spec='${libname}${release}${shared_ext}$major'
  2740. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2741. - shlibpath_var=LD_LIBRARY_PATH
  2742. - shlibpath_overrides_runpath=no
  2743. - hardcode_into_libs=yes
  2744. - ;;
  2745. -
  2746. -irix5* | irix6* | nonstopux*)
  2747. - case $host_os in
  2748. - nonstopux*) version_type=nonstopux ;;
  2749. - *)
  2750. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2751. - version_type=linux
  2752. - else
  2753. - version_type=irix
  2754. - fi ;;
  2755. - esac
  2756. - need_lib_prefix=no
  2757. - need_version=no
  2758. - soname_spec='${libname}${release}${shared_ext}$major'
  2759. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2760. - case $host_os in
  2761. - irix5* | nonstopux*)
  2762. - libsuff= shlibsuff=
  2763. + sysv5* | sco5v6* | sysv4.2uw2*)
  2764. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2765. + if test -n "$kargmax"; then
  2766. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2767. + else
  2768. + lt_cv_sys_max_cmd_len=32768
  2769. + fi
  2770. ;;
  2771. *)
  2772. - case $LD in # libtool.m4 will add one of these switches to LD
  2773. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2774. - libsuff= shlibsuff= libmagic=32-bit;;
  2775. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2776. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2777. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2778. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2779. - *) libsuff= shlibsuff= libmagic=never-match;;
  2780. - esac
  2781. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2782. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2783. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2784. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2785. + else
  2786. + # Make teststring a little bigger before we do anything with it.
  2787. + # a 1K string should be a reasonable start.
  2788. + for i in 1 2 3 4 5 6 7 8 ; do
  2789. + teststring=$teststring$teststring
  2790. + done
  2791. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2792. + # If test is not a shell built-in, we'll probably end up computing a
  2793. + # maximum length that is only half of the actual maximum length, but
  2794. + # we can't tell.
  2795. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2796. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2797. + test $i != 17 # 1/2 MB should be enough
  2798. + do
  2799. + i=`expr $i + 1`
  2800. + teststring=$teststring$teststring
  2801. + done
  2802. + # Only check the string length outside the loop.
  2803. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2804. + teststring=
  2805. + # Add a significant safety factor because C++ compilers can tack on
  2806. + # massive amounts of additional arguments before passing them to the
  2807. + # linker. It appears as though 1/2 is a usable value.
  2808. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2809. + fi
  2810. ;;
  2811. esac
  2812. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2813. - shlibpath_overrides_runpath=no
  2814. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2815. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2816. - hardcode_into_libs=yes
  2817. - ;;
  2818. +])
  2819. +if test -n $lt_cv_sys_max_cmd_len ; then
  2820. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2821. +else
  2822. + AC_MSG_RESULT(none)
  2823. +fi
  2824. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2825. +_LT_DECL([], [max_cmd_len], [0],
  2826. + [What is the maximum length of a command?])
  2827. +])# LT_CMD_MAX_LEN
  2828. -# No shared lib support for Linux oldld, aout, or coff.
  2829. -linux*oldld* | linux*aout* | linux*coff*)
  2830. - dynamic_linker=no
  2831. - ;;
  2832. +# Old name:
  2833. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2834. +dnl aclocal-1.4 backwards compatibility:
  2835. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2836. -# This must be Linux ELF.
  2837. -linux*)
  2838. - version_type=linux
  2839. - need_lib_prefix=no
  2840. - need_version=no
  2841. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2842. - soname_spec='${libname}${release}${shared_ext}$major'
  2843. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2844. - shlibpath_var=LD_LIBRARY_PATH
  2845. - shlibpath_overrides_runpath=no
  2846. - # This implies no fast_install, which is unacceptable.
  2847. - # Some rework will be needed to allow for fast_install
  2848. - # before this can be enabled.
  2849. - hardcode_into_libs=yes
  2850. - # Append ld.so.conf contents to the search path
  2851. - if test -f /etc/ld.so.conf; then
  2852. - 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' ' '`
  2853. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2854. - fi
  2855. +# _LT_HEADER_DLFCN
  2856. +# ----------------
  2857. +m4_defun([_LT_HEADER_DLFCN],
  2858. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2859. +])# _LT_HEADER_DLFCN
  2860. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2861. - # powerpc, because MkLinux only supported shared libraries with the
  2862. - # GNU dynamic linker. Since this was broken with cross compilers,
  2863. - # most powerpc-linux boxes support dynamic linking these days and
  2864. - # people can always --disable-shared, the test was removed, and we
  2865. - # assume the GNU/Linux dynamic linker is in use.
  2866. - dynamic_linker='GNU/Linux ld.so'
  2867. - ;;
  2868. -netbsdelf*-gnu)
  2869. - version_type=linux
  2870. - need_lib_prefix=no
  2871. - need_version=no
  2872. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2873. - soname_spec='${libname}${release}${shared_ext}$major'
  2874. - shlibpath_var=LD_LIBRARY_PATH
  2875. - shlibpath_overrides_runpath=no
  2876. - hardcode_into_libs=yes
  2877. - dynamic_linker='NetBSD ld.elf_so'
  2878. - ;;
  2879. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2880. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2881. +# ----------------------------------------------------------------
  2882. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2883. +[m4_require([_LT_HEADER_DLFCN])dnl
  2884. +if test "$cross_compiling" = yes; then :
  2885. + [$4]
  2886. +else
  2887. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2888. + lt_status=$lt_dlunknown
  2889. + cat > conftest.$ac_ext <<_LT_EOF
  2890. +[#line __oline__ "configure"
  2891. +#include "confdefs.h"
  2892. -knetbsd*-gnu)
  2893. - version_type=linux
  2894. - need_lib_prefix=no
  2895. - need_version=no
  2896. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2897. - soname_spec='${libname}${release}${shared_ext}$major'
  2898. - shlibpath_var=LD_LIBRARY_PATH
  2899. - shlibpath_overrides_runpath=no
  2900. - hardcode_into_libs=yes
  2901. - dynamic_linker='GNU ld.so'
  2902. - ;;
  2903. +#if HAVE_DLFCN_H
  2904. +#include <dlfcn.h>
  2905. +#endif
  2906. -netbsd*)
  2907. - version_type=sunos
  2908. - need_lib_prefix=no
  2909. - need_version=no
  2910. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2912. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2913. - dynamic_linker='NetBSD (a.out) ld.so'
  2914. - else
  2915. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2916. - soname_spec='${libname}${release}${shared_ext}$major'
  2917. - dynamic_linker='NetBSD ld.elf_so'
  2918. - fi
  2919. - shlibpath_var=LD_LIBRARY_PATH
  2920. - shlibpath_overrides_runpath=yes
  2921. - hardcode_into_libs=yes
  2922. - ;;
  2923. +#include <stdio.h>
  2924. -newsos6)
  2925. - version_type=linux
  2926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2927. - shlibpath_var=LD_LIBRARY_PATH
  2928. - shlibpath_overrides_runpath=yes
  2929. - ;;
  2930. +#ifdef RTLD_GLOBAL
  2931. +# define LT_DLGLOBAL RTLD_GLOBAL
  2932. +#else
  2933. +# ifdef DL_GLOBAL
  2934. +# define LT_DLGLOBAL DL_GLOBAL
  2935. +# else
  2936. +# define LT_DLGLOBAL 0
  2937. +# endif
  2938. +#endif
  2939. -nto-qnx*)
  2940. - version_type=linux
  2941. - need_lib_prefix=no
  2942. - need_version=no
  2943. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2944. - soname_spec='${libname}${release}${shared_ext}$major'
  2945. - shlibpath_var=LD_LIBRARY_PATH
  2946. - shlibpath_overrides_runpath=yes
  2947. - ;;
  2948. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2949. + find out it does not work in some platform. */
  2950. +#ifndef LT_DLLAZY_OR_NOW
  2951. +# ifdef RTLD_LAZY
  2952. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2953. +# else
  2954. +# ifdef DL_LAZY
  2955. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2956. +# else
  2957. +# ifdef RTLD_NOW
  2958. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2959. +# else
  2960. +# ifdef DL_NOW
  2961. +# define LT_DLLAZY_OR_NOW DL_NOW
  2962. +# else
  2963. +# define LT_DLLAZY_OR_NOW 0
  2964. +# endif
  2965. +# endif
  2966. +# endif
  2967. +# endif
  2968. +#endif
  2969. -openbsd*)
  2970. - version_type=sunos
  2971. - sys_lib_dlsearch_path_spec="/usr/lib"
  2972. - need_lib_prefix=no
  2973. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2974. - case $host_os in
  2975. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2976. - *) need_version=no ;;
  2977. - esac
  2978. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2979. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2980. - shlibpath_var=LD_LIBRARY_PATH
  2981. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2982. - case $host_os in
  2983. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2984. - shlibpath_overrides_runpath=no
  2985. - ;;
  2986. - *)
  2987. - shlibpath_overrides_runpath=yes
  2988. - ;;
  2989. - esac
  2990. - else
  2991. - shlibpath_overrides_runpath=yes
  2992. - fi
  2993. - ;;
  2994. +void fnord() { int i=42;}
  2995. +int main ()
  2996. +{
  2997. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2998. + int status = $lt_dlunknown;
  2999. -os2*)
  3000. - libname_spec='$name'
  3001. - shrext_cmds=".dll"
  3002. - need_lib_prefix=no
  3003. - library_names_spec='$libname${shared_ext} $libname.a'
  3004. - dynamic_linker='OS/2 ld.exe'
  3005. - shlibpath_var=LIBPATH
  3006. - ;;
  3007. -
  3008. -osf3* | osf4* | osf5*)
  3009. - version_type=osf
  3010. - need_lib_prefix=no
  3011. - need_version=no
  3012. - soname_spec='${libname}${release}${shared_ext}$major'
  3013. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3014. - shlibpath_var=LD_LIBRARY_PATH
  3015. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3016. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3017. - ;;
  3018. -
  3019. -solaris*)
  3020. - version_type=linux
  3021. - need_lib_prefix=no
  3022. - need_version=no
  3023. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3024. - soname_spec='${libname}${release}${shared_ext}$major'
  3025. - shlibpath_var=LD_LIBRARY_PATH
  3026. - shlibpath_overrides_runpath=yes
  3027. - hardcode_into_libs=yes
  3028. - # ldd complains unless libraries are executable
  3029. - postinstall_cmds='chmod +x $lib'
  3030. - ;;
  3031. -
  3032. -sunos4*)
  3033. - version_type=sunos
  3034. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3035. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3036. - shlibpath_var=LD_LIBRARY_PATH
  3037. - shlibpath_overrides_runpath=yes
  3038. - if test "$with_gnu_ld" = yes; then
  3039. - need_lib_prefix=no
  3040. - fi
  3041. - need_version=yes
  3042. - ;;
  3043. -
  3044. -sysv4 | sysv4.3*)
  3045. - version_type=linux
  3046. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3047. - soname_spec='${libname}${release}${shared_ext}$major'
  3048. - shlibpath_var=LD_LIBRARY_PATH
  3049. - case $host_vendor in
  3050. - sni)
  3051. - shlibpath_overrides_runpath=no
  3052. - need_lib_prefix=no
  3053. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3054. - runpath_var=LD_RUN_PATH
  3055. - ;;
  3056. - siemens)
  3057. - need_lib_prefix=no
  3058. - ;;
  3059. - motorola)
  3060. - need_lib_prefix=no
  3061. - need_version=no
  3062. - shlibpath_overrides_runpath=no
  3063. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3064. - ;;
  3065. - esac
  3066. - ;;
  3067. -
  3068. -sysv4*MP*)
  3069. - if test -d /usr/nec ;then
  3070. - version_type=linux
  3071. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3072. - soname_spec='$libname${shared_ext}.$major'
  3073. - shlibpath_var=LD_LIBRARY_PATH
  3074. - fi
  3075. - ;;
  3076. -
  3077. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3078. - version_type=freebsd-elf
  3079. - need_lib_prefix=no
  3080. - need_version=no
  3081. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3082. - soname_spec='${libname}${release}${shared_ext}$major'
  3083. - shlibpath_var=LD_LIBRARY_PATH
  3084. - hardcode_into_libs=yes
  3085. - if test "$with_gnu_ld" = yes; then
  3086. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3087. - shlibpath_overrides_runpath=no
  3088. + if (self)
  3089. + {
  3090. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3091. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3092. + /* dlclose (self); */
  3093. + }
  3094. else
  3095. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3096. - shlibpath_overrides_runpath=yes
  3097. - case $host_os in
  3098. - sco3.2v5*)
  3099. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3100. - ;;
  3101. + puts (dlerror ());
  3102. +
  3103. + return status;
  3104. +}]
  3105. +_LT_EOF
  3106. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3107. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3108. + lt_status=$?
  3109. + case x$lt_status in
  3110. + x$lt_dlno_uscore) $1 ;;
  3111. + x$lt_dlneed_uscore) $2 ;;
  3112. + x$lt_dlunknown|x*) $3 ;;
  3113. esac
  3114. + else :
  3115. + # compilation failed
  3116. + $3
  3117. fi
  3118. - sys_lib_dlsearch_path_spec='/usr/lib'
  3119. - ;;
  3120. -
  3121. -uts4*)
  3122. - version_type=linux
  3123. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3124. - soname_spec='${libname}${release}${shared_ext}$major'
  3125. - shlibpath_var=LD_LIBRARY_PATH
  3126. - ;;
  3127. -
  3128. -*)
  3129. - dynamic_linker=no
  3130. - ;;
  3131. -esac
  3132. -AC_MSG_RESULT([$dynamic_linker])
  3133. -test "$dynamic_linker" = no && can_build_shared=no
  3134. -
  3135. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3136. -if test "$GCC" = yes; then
  3137. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3138. fi
  3139. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3140. -
  3141. +rm -fr conftest*
  3142. +])# _LT_TRY_DLOPEN_SELF
  3143. -# _LT_AC_TAGCONFIG
  3144. -# ----------------
  3145. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3146. -[AC_ARG_WITH([tags],
  3147. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3148. - [include additional configurations @<:@automatic@:>@])],
  3149. - [tagnames="$withval"])
  3150. -
  3151. -if test -f "$ltmain" && test -n "$tagnames"; then
  3152. - if test ! -f "${ofile}"; then
  3153. - AC_MSG_WARN([output file `$ofile' does not exist])
  3154. - fi
  3155. - if test -z "$LTCC"; then
  3156. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3157. - if test -z "$LTCC"; then
  3158. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3159. - else
  3160. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3161. - fi
  3162. - fi
  3163. - if test -z "$LTCFLAGS"; then
  3164. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3165. - fi
  3166. +# LT_SYS_DLOPEN_SELF
  3167. +# ------------------
  3168. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3169. +[m4_require([_LT_HEADER_DLFCN])dnl
  3170. +if test "x$enable_dlopen" != xyes; then
  3171. + enable_dlopen=unknown
  3172. + enable_dlopen_self=unknown
  3173. + enable_dlopen_self_static=unknown
  3174. +else
  3175. + lt_cv_dlopen=no
  3176. + lt_cv_dlopen_libs=
  3177. - # Extract list of available tagged configurations in $ofile.
  3178. - # Note that this assumes the entire list is on one line.
  3179. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3180. + case $host_os in
  3181. + beos*)
  3182. + lt_cv_dlopen="load_add_on"
  3183. + lt_cv_dlopen_libs=
  3184. + lt_cv_dlopen_self=yes
  3185. + ;;
  3186. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3187. - for tagname in $tagnames; do
  3188. - IFS="$lt_save_ifs"
  3189. - # Check whether tagname contains only valid characters
  3190. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3191. - "") ;;
  3192. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3193. - ;;
  3194. - esac
  3195. + mingw* | pw32* | cegcc*)
  3196. + lt_cv_dlopen="LoadLibrary"
  3197. + lt_cv_dlopen_libs=
  3198. + ;;
  3199. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3200. - then
  3201. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3202. - fi
  3203. + cygwin*)
  3204. + lt_cv_dlopen="dlopen"
  3205. + lt_cv_dlopen_libs=
  3206. + ;;
  3207. - # Update the list of available tags.
  3208. - if test -n "$tagname"; then
  3209. - echo appending configuration tag \"$tagname\" to $ofile
  3210. -
  3211. - case $tagname in
  3212. - CXX)
  3213. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3214. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3215. - (test "X$CXX" != "Xg++"))) ; then
  3216. - AC_LIBTOOL_LANG_CXX_CONFIG
  3217. - else
  3218. - tagname=""
  3219. - fi
  3220. - ;;
  3221. + darwin*)
  3222. + # if libdl is installed we need to link against it
  3223. + AC_CHECK_LIB([dl], [dlopen],
  3224. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3225. + lt_cv_dlopen="dyld"
  3226. + lt_cv_dlopen_libs=
  3227. + lt_cv_dlopen_self=yes
  3228. + ])
  3229. + ;;
  3230. - F77)
  3231. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3232. - AC_LIBTOOL_LANG_F77_CONFIG
  3233. - else
  3234. - tagname=""
  3235. - fi
  3236. - ;;
  3237. + *)
  3238. + AC_CHECK_FUNC([shl_load],
  3239. + [lt_cv_dlopen="shl_load"],
  3240. + [AC_CHECK_LIB([dld], [shl_load],
  3241. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3242. + [AC_CHECK_FUNC([dlopen],
  3243. + [lt_cv_dlopen="dlopen"],
  3244. + [AC_CHECK_LIB([dl], [dlopen],
  3245. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3246. + [AC_CHECK_LIB([svld], [dlopen],
  3247. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3248. + [AC_CHECK_LIB([dld], [dld_link],
  3249. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3250. + ])
  3251. + ])
  3252. + ])
  3253. + ])
  3254. + ])
  3255. + ;;
  3256. + esac
  3257. - GCJ)
  3258. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3259. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3260. - else
  3261. - tagname=""
  3262. - fi
  3263. - ;;
  3264. + if test "x$lt_cv_dlopen" != xno; then
  3265. + enable_dlopen=yes
  3266. + else
  3267. + enable_dlopen=no
  3268. + fi
  3269. - RC)
  3270. - AC_LIBTOOL_LANG_RC_CONFIG
  3271. - ;;
  3272. + case $lt_cv_dlopen in
  3273. + dlopen)
  3274. + save_CPPFLAGS="$CPPFLAGS"
  3275. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3276. - *)
  3277. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3278. - ;;
  3279. - esac
  3280. + save_LDFLAGS="$LDFLAGS"
  3281. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3282. - # Append the new tag name to the list of available tags.
  3283. - if test -n "$tagname" ; then
  3284. - available_tags="$available_tags $tagname"
  3285. - fi
  3286. - fi
  3287. - done
  3288. - IFS="$lt_save_ifs"
  3289. + save_LIBS="$LIBS"
  3290. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3291. - # Now substitute the updated list of available tags.
  3292. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3293. - mv "${ofile}T" "$ofile"
  3294. - chmod +x "$ofile"
  3295. - else
  3296. - rm -f "${ofile}T"
  3297. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3298. - fi
  3299. -fi
  3300. -])# _LT_AC_TAGCONFIG
  3301. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3302. + lt_cv_dlopen_self, [dnl
  3303. + _LT_TRY_DLOPEN_SELF(
  3304. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3305. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3306. + ])
  3307. + if test "x$lt_cv_dlopen_self" = xyes; then
  3308. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3309. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3310. + lt_cv_dlopen_self_static, [dnl
  3311. + _LT_TRY_DLOPEN_SELF(
  3312. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3313. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3314. + ])
  3315. + fi
  3316. -# AC_LIBTOOL_DLOPEN
  3317. -# -----------------
  3318. -# enable checks for dlopen support
  3319. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3320. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3321. -])# AC_LIBTOOL_DLOPEN
  3322. + CPPFLAGS="$save_CPPFLAGS"
  3323. + LDFLAGS="$save_LDFLAGS"
  3324. + LIBS="$save_LIBS"
  3325. + ;;
  3326. + esac
  3327. + case $lt_cv_dlopen_self in
  3328. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3329. + *) enable_dlopen_self=unknown ;;
  3330. + esac
  3331. -# AC_LIBTOOL_WIN32_DLL
  3332. -# --------------------
  3333. -# declare package support for building win32 DLLs
  3334. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3335. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3336. -])# AC_LIBTOOL_WIN32_DLL
  3337. + case $lt_cv_dlopen_self_static in
  3338. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3339. + *) enable_dlopen_self_static=unknown ;;
  3340. + esac
  3341. +fi
  3342. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3343. + [Whether dlopen is supported])
  3344. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3345. + [Whether dlopen of programs is supported])
  3346. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3347. + [Whether dlopen of statically linked programs is supported])
  3348. +])# LT_SYS_DLOPEN_SELF
  3349. +
  3350. +# Old name:
  3351. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3352. +dnl aclocal-1.4 backwards compatibility:
  3353. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3354. -# AC_ENABLE_SHARED([DEFAULT])
  3355. +# _LT_COMPILER_C_O([TAGNAME])
  3356. # ---------------------------
  3357. -# implement the --enable-shared flag
  3358. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3359. -AC_DEFUN([AC_ENABLE_SHARED],
  3360. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3361. -AC_ARG_ENABLE([shared],
  3362. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3363. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3364. - [p=${PACKAGE-default}
  3365. - case $enableval in
  3366. - yes) enable_shared=yes ;;
  3367. - no) enable_shared=no ;;
  3368. - *)
  3369. - enable_shared=no
  3370. - # Look at the argument we got. We use all the common list separators.
  3371. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3372. - for pkg in $enableval; do
  3373. - IFS="$lt_save_ifs"
  3374. - if test "X$pkg" = "X$p"; then
  3375. - enable_shared=yes
  3376. - fi
  3377. - done
  3378. - IFS="$lt_save_ifs"
  3379. - ;;
  3380. - esac],
  3381. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3382. -])# AC_ENABLE_SHARED
  3383. -
  3384. -
  3385. -# AC_DISABLE_SHARED
  3386. -# -----------------
  3387. -# set the default shared flag to --disable-shared
  3388. -AC_DEFUN([AC_DISABLE_SHARED],
  3389. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3390. -AC_ENABLE_SHARED(no)
  3391. -])# AC_DISABLE_SHARED
  3392. -
  3393. -
  3394. -# AC_ENABLE_STATIC([DEFAULT])
  3395. -# ---------------------------
  3396. -# implement the --enable-static flag
  3397. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3398. -AC_DEFUN([AC_ENABLE_STATIC],
  3399. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3400. -AC_ARG_ENABLE([static],
  3401. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3402. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3403. - [p=${PACKAGE-default}
  3404. - case $enableval in
  3405. - yes) enable_static=yes ;;
  3406. - no) enable_static=no ;;
  3407. - *)
  3408. - enable_static=no
  3409. - # Look at the argument we got. We use all the common list separators.
  3410. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3411. - for pkg in $enableval; do
  3412. - IFS="$lt_save_ifs"
  3413. - if test "X$pkg" = "X$p"; then
  3414. - enable_static=yes
  3415. - fi
  3416. - done
  3417. - IFS="$lt_save_ifs"
  3418. - ;;
  3419. - esac],
  3420. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3421. -])# AC_ENABLE_STATIC
  3422. -
  3423. -
  3424. -# AC_DISABLE_STATIC
  3425. -# -----------------
  3426. -# set the default static flag to --disable-static
  3427. -AC_DEFUN([AC_DISABLE_STATIC],
  3428. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3429. -AC_ENABLE_STATIC(no)
  3430. -])# AC_DISABLE_STATIC
  3431. -
  3432. -
  3433. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3434. -# ---------------------------------
  3435. -# implement the --enable-fast-install flag
  3436. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3437. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3438. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3439. -AC_ARG_ENABLE([fast-install],
  3440. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3441. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3442. - [p=${PACKAGE-default}
  3443. - case $enableval in
  3444. - yes) enable_fast_install=yes ;;
  3445. - no) enable_fast_install=no ;;
  3446. - *)
  3447. - enable_fast_install=no
  3448. - # Look at the argument we got. We use all the common list separators.
  3449. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3450. - for pkg in $enableval; do
  3451. - IFS="$lt_save_ifs"
  3452. - if test "X$pkg" = "X$p"; then
  3453. - enable_fast_install=yes
  3454. - fi
  3455. - done
  3456. - IFS="$lt_save_ifs"
  3457. - ;;
  3458. - esac],
  3459. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3460. -])# AC_ENABLE_FAST_INSTALL
  3461. -
  3462. -
  3463. -# AC_DISABLE_FAST_INSTALL
  3464. -# -----------------------
  3465. -# set the default to --disable-fast-install
  3466. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3467. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3468. -AC_ENABLE_FAST_INSTALL(no)
  3469. -])# AC_DISABLE_FAST_INSTALL
  3470. -
  3471. -
  3472. -# AC_LIBTOOL_PICMODE([MODE])
  3473. -# --------------------------
  3474. -# implement the --with-pic flag
  3475. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3476. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3477. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3478. -pic_mode=ifelse($#,1,$1,default)
  3479. -])# AC_LIBTOOL_PICMODE
  3480. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3481. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3482. +m4_defun([_LT_COMPILER_C_O],
  3483. +[m4_require([_LT_DECL_SED])dnl
  3484. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3485. +m4_require([_LT_TAG_COMPILER])dnl
  3486. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3487. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3488. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3489. + $RM -r conftest 2>/dev/null
  3490. + mkdir conftest
  3491. + cd conftest
  3492. + mkdir out
  3493. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3494. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3495. + # Insert the option either (1) after the last *FLAGS variable, or
  3496. + # (2) before a word containing "conftest.", or (3) at the end.
  3497. + # Note that $ac_compile itself does not contain backslashes and begins
  3498. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3499. + lt_compile=`echo "$ac_compile" | $SED \
  3500. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3501. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3502. + -e 's:$: $lt_compiler_flag:'`
  3503. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3504. + (eval "$lt_compile" 2>out/conftest.err)
  3505. + ac_status=$?
  3506. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3507. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3508. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3509. + then
  3510. + # The compiler can only warn and ignore the option if not recognized
  3511. + # So say no if there are warnings
  3512. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3513. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3514. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3515. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3516. + fi
  3517. + fi
  3518. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3519. + $RM conftest*
  3520. + # SGI C++ compiler will create directory out/ii_files/ for
  3521. + # template instantiation
  3522. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3523. + $RM out/* && rmdir out
  3524. + cd ..
  3525. + $RM -r conftest
  3526. + $RM conftest*
  3527. +])
  3528. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3529. + [Does compiler simultaneously support -c and -o options?])
  3530. +])# _LT_COMPILER_C_O
  3531. -# AC_PROG_EGREP
  3532. -# -------------
  3533. -# This is predefined starting with Autoconf 2.54, so this conditional
  3534. -# definition can be removed once we require Autoconf 2.54 or later.
  3535. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3536. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3537. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3538. - then ac_cv_prog_egrep='grep -E'
  3539. - else ac_cv_prog_egrep='egrep'
  3540. - fi])
  3541. - EGREP=$ac_cv_prog_egrep
  3542. - AC_SUBST([EGREP])
  3543. -])])
  3544. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3545. +# ----------------------------------
  3546. +# Check to see if we can do hard links to lock some files if needed
  3547. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3548. +[m4_require([_LT_ENABLE_LOCK])dnl
  3549. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3550. +_LT_COMPILER_C_O([$1])
  3551. -# AC_PATH_TOOL_PREFIX
  3552. -# -------------------
  3553. -# find a file program which can recognise shared library
  3554. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3555. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3556. -AC_MSG_CHECKING([for $1])
  3557. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3558. -[case $MAGIC_CMD in
  3559. -[[\\/*] | ?:[\\/]*])
  3560. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3561. - ;;
  3562. -*)
  3563. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3564. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3565. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3566. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3567. -dnl not every word. This closes a longstanding sh security hole.
  3568. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3569. - for ac_dir in $ac_dummy; do
  3570. - IFS="$lt_save_ifs"
  3571. - test -z "$ac_dir" && ac_dir=.
  3572. - if test -f $ac_dir/$1; then
  3573. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3574. - if test -n "$file_magic_test_file"; then
  3575. - case $deplibs_check_method in
  3576. - "file_magic "*)
  3577. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3578. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3579. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3580. - $EGREP "$file_magic_regex" > /dev/null; then
  3581. - :
  3582. - else
  3583. - cat <<EOF 1>&2
  3584. +hard_links="nottested"
  3585. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3586. + # do not overwrite the value of need_locks provided by the user
  3587. + AC_MSG_CHECKING([if we can lock with hard links])
  3588. + hard_links=yes
  3589. + $RM conftest*
  3590. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3591. + touch conftest.a
  3592. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3593. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3594. + AC_MSG_RESULT([$hard_links])
  3595. + if test "$hard_links" = no; then
  3596. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3597. + need_locks=warn
  3598. + fi
  3599. +else
  3600. + need_locks=no
  3601. +fi
  3602. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3603. +])# _LT_COMPILER_FILE_LOCKS
  3604. -*** Warning: the command libtool uses to detect shared libraries,
  3605. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3606. -*** The result is that libtool may fail to recognize shared libraries
  3607. -*** as such. This will affect the creation of libtool libraries that
  3608. -*** depend on shared libraries, but programs linked with such libtool
  3609. -*** libraries will work regardless of this problem. Nevertheless, you
  3610. -*** may want to report the problem to your system manager and/or to
  3611. -*** bug-libtool@gnu.org
  3612. -EOF
  3613. - fi ;;
  3614. - esac
  3615. - fi
  3616. - break
  3617. - fi
  3618. - done
  3619. - IFS="$lt_save_ifs"
  3620. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3621. - ;;
  3622. -esac])
  3623. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3624. -if test -n "$MAGIC_CMD"; then
  3625. - AC_MSG_RESULT($MAGIC_CMD)
  3626. +# _LT_CHECK_OBJDIR
  3627. +# ----------------
  3628. +m4_defun([_LT_CHECK_OBJDIR],
  3629. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3630. +[rm -f .libs 2>/dev/null
  3631. +mkdir .libs 2>/dev/null
  3632. +if test -d .libs; then
  3633. + lt_cv_objdir=.libs
  3634. else
  3635. - AC_MSG_RESULT(no)
  3636. + # MS-DOS does not allow filenames that begin with a dot.
  3637. + lt_cv_objdir=_libs
  3638. fi
  3639. -])# AC_PATH_TOOL_PREFIX
  3640. +rmdir .libs 2>/dev/null])
  3641. +objdir=$lt_cv_objdir
  3642. +_LT_DECL([], [objdir], [0],
  3643. + [The name of the directory that contains temporary libtool files])dnl
  3644. +m4_pattern_allow([LT_OBJDIR])dnl
  3645. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3646. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3647. +])# _LT_CHECK_OBJDIR
  3648. -# AC_PATH_MAGIC
  3649. -# -------------
  3650. -# find a file program which can recognise a shared library
  3651. -AC_DEFUN([AC_PATH_MAGIC],
  3652. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3653. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3654. - if test -n "$ac_tool_prefix"; then
  3655. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3656. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3657. +# --------------------------------------
  3658. +# Check hardcoding attributes.
  3659. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3660. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3661. +_LT_TAGVAR(hardcode_action, $1)=
  3662. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3663. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3664. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3665. +
  3666. + # We can hardcode non-existent directories.
  3667. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3668. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3669. + # have to relink, otherwise we might link with an installed library
  3670. + # when we should be linking with a yet-to-be-installed one
  3671. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3672. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3673. + # Linking always hardcodes the temporary library directory.
  3674. + _LT_TAGVAR(hardcode_action, $1)=relink
  3675. else
  3676. - MAGIC_CMD=:
  3677. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3678. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3679. fi
  3680. +else
  3681. + # We cannot hardcode anything, or else we can only hardcode existing
  3682. + # directories.
  3683. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3684. fi
  3685. -])# AC_PATH_MAGIC
  3686. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3687. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3688. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3689. + # Fast installation is not supported
  3690. + enable_fast_install=no
  3691. +elif test "$shlibpath_overrides_runpath" = yes ||
  3692. + test "$enable_shared" = no; then
  3693. + # Fast installation is not necessary
  3694. + enable_fast_install=needless
  3695. +fi
  3696. +_LT_TAGDECL([], [hardcode_action], [0],
  3697. + [How to hardcode a shared library path into an executable])
  3698. +])# _LT_LINKER_HARDCODE_LIBPATH
  3699. -# AC_PROG_LD
  3700. -# ----------
  3701. -# find the pathname to the GNU or non-GNU linker
  3702. -AC_DEFUN([AC_PROG_LD],
  3703. -[AC_ARG_WITH([gnu-ld],
  3704. - [AC_HELP_STRING([--with-gnu-ld],
  3705. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3706. - [test "$withval" = no || with_gnu_ld=yes],
  3707. - [with_gnu_ld=no])
  3708. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3709. -AC_REQUIRE([AC_PROG_CC])dnl
  3710. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3711. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3712. -ac_prog=ld
  3713. -if test "$GCC" = yes; then
  3714. - # Check if gcc -print-prog-name=ld gives a path.
  3715. - AC_MSG_CHECKING([for ld used by $CC])
  3716. - case $host in
  3717. - *-*-mingw*)
  3718. - # gcc leaves a trailing carriage return which upsets mingw
  3719. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3720. - *)
  3721. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3722. - esac
  3723. - case $ac_prog in
  3724. - # Accept absolute paths.
  3725. - [[\\/]]* | ?:[[\\/]]*)
  3726. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3727. - # Canonicalize the pathname of ld
  3728. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3729. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3730. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3731. - done
  3732. - test -z "$LD" && LD="$ac_prog"
  3733. - ;;
  3734. - "")
  3735. - # If it fails, then pretend we aren't using GCC.
  3736. - ac_prog=ld
  3737. +
  3738. +# _LT_CMD_STRIPLIB
  3739. +# ----------------
  3740. +m4_defun([_LT_CMD_STRIPLIB],
  3741. +[m4_require([_LT_DECL_EGREP])
  3742. +striplib=
  3743. +old_striplib=
  3744. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3745. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3746. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3747. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3748. + AC_MSG_RESULT([yes])
  3749. +else
  3750. +# FIXME - insert some real tests, host_os isn't really good enough
  3751. + case $host_os in
  3752. + darwin*)
  3753. + if test -n "$STRIP" ; then
  3754. + striplib="$STRIP -x"
  3755. + old_striplib="$STRIP -S"
  3756. + AC_MSG_RESULT([yes])
  3757. + else
  3758. + AC_MSG_RESULT([no])
  3759. + fi
  3760. ;;
  3761. *)
  3762. - # If it is relative, then search for the first ld in PATH.
  3763. - with_gnu_ld=unknown
  3764. + AC_MSG_RESULT([no])
  3765. ;;
  3766. esac
  3767. -elif test "$with_gnu_ld" = yes; then
  3768. - AC_MSG_CHECKING([for GNU ld])
  3769. -else
  3770. - AC_MSG_CHECKING([for non-GNU ld])
  3771. fi
  3772. -AC_CACHE_VAL(lt_cv_path_LD,
  3773. -[if test -z "$LD"; then
  3774. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3775. - for ac_dir in $PATH; do
  3776. - IFS="$lt_save_ifs"
  3777. - test -z "$ac_dir" && ac_dir=.
  3778. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3779. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3780. - # Check to see if the program is GNU ld. I'd rather use --version,
  3781. - # but apparently some variants of GNU ld only accept -v.
  3782. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3783. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3784. - *GNU* | *'with BFD'*)
  3785. - test "$with_gnu_ld" != no && break
  3786. - ;;
  3787. - *)
  3788. - test "$with_gnu_ld" != yes && break
  3789. - ;;
  3790. - esac
  3791. - fi
  3792. - done
  3793. - IFS="$lt_save_ifs"
  3794. -else
  3795. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3796. -fi])
  3797. -LD="$lt_cv_path_LD"
  3798. -if test -n "$LD"; then
  3799. - AC_MSG_RESULT($LD)
  3800. -else
  3801. - AC_MSG_RESULT(no)
  3802. -fi
  3803. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3804. -AC_PROG_LD_GNU
  3805. -])# AC_PROG_LD
  3806. -
  3807. -
  3808. -# AC_PROG_LD_GNU
  3809. -# --------------
  3810. -AC_DEFUN([AC_PROG_LD_GNU],
  3811. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3812. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3813. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3814. -case `$LD -v 2>&1 </dev/null` in
  3815. -*GNU* | *'with BFD'*)
  3816. - lt_cv_prog_gnu_ld=yes
  3817. - ;;
  3818. -*)
  3819. - lt_cv_prog_gnu_ld=no
  3820. - ;;
  3821. -esac])
  3822. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3823. -])# AC_PROG_LD_GNU
  3824. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3825. +_LT_DECL([], [striplib], [1])
  3826. +])# _LT_CMD_STRIPLIB
  3827. -# AC_PROG_LD_RELOAD_FLAG
  3828. -# ----------------------
  3829. -# find reload flag for linker
  3830. -# -- PORTME Some linkers may need a different reload flag.
  3831. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3832. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3833. - lt_cv_ld_reload_flag,
  3834. - [lt_cv_ld_reload_flag='-r'])
  3835. -reload_flag=$lt_cv_ld_reload_flag
  3836. -case $reload_flag in
  3837. -"" | " "*) ;;
  3838. -*) reload_flag=" $reload_flag" ;;
  3839. -esac
  3840. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3841. -case $host_os in
  3842. - darwin*)
  3843. - if test "$GCC" = yes; then
  3844. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3845. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3846. +# -----------------------------
  3847. +# PORTME Fill in your ld.so characteristics
  3848. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3849. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3850. +m4_require([_LT_DECL_EGREP])dnl
  3851. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3852. +m4_require([_LT_DECL_OBJDUMP])dnl
  3853. +m4_require([_LT_DECL_SED])dnl
  3854. +AC_MSG_CHECKING([dynamic linker characteristics])
  3855. +m4_if([$1],
  3856. + [], [
  3857. +if test "$GCC" = yes; then
  3858. + case $host_os in
  3859. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3860. + *) lt_awk_arg="/^libraries:/" ;;
  3861. + esac
  3862. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3863. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3864. + # if the path contains ";" then we assume it to be the separator
  3865. + # otherwise default to the standard path separator (i.e. ":") - it is
  3866. + # assumed that no part of a normal pathname contains ";" but that should
  3867. + # okay in the real world where ";" in dirpaths is itself problematic.
  3868. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3869. + else
  3870. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3871. + fi
  3872. + # Ok, now we have the path, separated by spaces, we can step through it
  3873. + # and add multilib dir if necessary.
  3874. + lt_tmp_lt_search_path_spec=
  3875. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3876. + for lt_sys_path in $lt_search_path_spec; do
  3877. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3878. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3879. else
  3880. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3881. + test -d "$lt_sys_path" && \
  3882. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3883. fi
  3884. - ;;
  3885. -esac
  3886. -])# AC_PROG_LD_RELOAD_FLAG
  3887. -
  3888. + done
  3889. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3890. +BEGIN {RS=" "; FS="/|\n";} {
  3891. + lt_foo="";
  3892. + lt_count=0;
  3893. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3894. + if ($lt_i != "" && $lt_i != ".") {
  3895. + if ($lt_i == "..") {
  3896. + lt_count++;
  3897. + } else {
  3898. + if (lt_count == 0) {
  3899. + lt_foo="/" $lt_i lt_foo;
  3900. + } else {
  3901. + lt_count--;
  3902. + }
  3903. + }
  3904. + }
  3905. + }
  3906. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3907. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3908. +}'`
  3909. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3910. +else
  3911. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3912. +fi])
  3913. +library_names_spec=
  3914. +libname_spec='lib$name'
  3915. +soname_spec=
  3916. +shrext_cmds=".so"
  3917. +postinstall_cmds=
  3918. +postuninstall_cmds=
  3919. +finish_cmds=
  3920. +finish_eval=
  3921. +shlibpath_var=
  3922. +shlibpath_overrides_runpath=unknown
  3923. +version_type=none
  3924. +dynamic_linker="$host_os ld.so"
  3925. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3926. +need_lib_prefix=unknown
  3927. +hardcode_into_libs=no
  3928. -# AC_DEPLIBS_CHECK_METHOD
  3929. -# -----------------------
  3930. -# how to check for library dependencies
  3931. -# -- PORTME fill in with the dynamic library characteristics
  3932. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3933. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3934. -lt_cv_deplibs_check_method,
  3935. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3936. -lt_cv_file_magic_test_file=
  3937. -lt_cv_deplibs_check_method='unknown'
  3938. -# Need to set the preceding variable on all platforms that support
  3939. -# interlibrary dependencies.
  3940. -# 'none' -- dependencies not supported.
  3941. -# `unknown' -- same as none, but documents that we really don't know.
  3942. -# 'pass_all' -- all dependencies passed with no checks.
  3943. -# 'test_compile' -- check by making test program.
  3944. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3945. -# which responds to the $file_magic_cmd with a given extended regex.
  3946. -# If you have `file' or equivalent on your system and you're not sure
  3947. -# whether `pass_all' will *always* work, you probably want this one.
  3948. +# when you set need_version to no, make sure it does not cause -set_version
  3949. +# flags to be left without arguments
  3950. +need_version=unknown
  3951. case $host_os in
  3952. -aix4* | aix5*)
  3953. - lt_cv_deplibs_check_method=pass_all
  3954. - ;;
  3955. -
  3956. -beos*)
  3957. - lt_cv_deplibs_check_method=pass_all
  3958. - ;;
  3959. -
  3960. -bsdi[[45]]*)
  3961. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3962. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3963. - lt_cv_file_magic_test_file=/shlib/libc.so
  3964. - ;;
  3965. -
  3966. -cygwin*)
  3967. - # func_win32_libid is a shell function defined in ltmain.sh
  3968. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3969. - lt_cv_file_magic_cmd='func_win32_libid'
  3970. - ;;
  3971. -
  3972. -mingw* | pw32*)
  3973. - # Base MSYS/MinGW do not provide the 'file' command needed by
  3974. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3975. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3976. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  3977. - ;;
  3978. +aix3*)
  3979. + version_type=linux
  3980. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3981. + shlibpath_var=LIBPATH
  3982. -darwin* | rhapsody*)
  3983. - lt_cv_deplibs_check_method=pass_all
  3984. + # AIX 3 has no versioning support, so we append a major version to the name.
  3985. + soname_spec='${libname}${release}${shared_ext}$major'
  3986. ;;
  3987. -freebsd* | kfreebsd*-gnu | dragonfly*)
  3988. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3989. - case $host_cpu in
  3990. - i*86 )
  3991. - # Not sure whether the presence of OpenBSD here was a mistake.
  3992. - # Let's accept both of them until this is cleared up.
  3993. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3994. - lt_cv_file_magic_cmd=/usr/bin/file
  3995. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3996. +aix[[4-9]]*)
  3997. + version_type=linux
  3998. + need_lib_prefix=no
  3999. + need_version=no
  4000. + hardcode_into_libs=yes
  4001. + if test "$host_cpu" = ia64; then
  4002. + # AIX 5 supports IA64
  4003. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  4004. + shlibpath_var=LD_LIBRARY_PATH
  4005. + else
  4006. + # With GCC up to 2.95.x, collect2 would create an import file
  4007. + # for dependence libraries. The import file would start with
  4008. + # the line `#! .'. This would cause the generated library to
  4009. + # depend on `.', always an invalid library. This was fixed in
  4010. + # development snapshots of GCC prior to 3.0.
  4011. + case $host_os in
  4012. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  4013. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  4014. + echo ' yes '
  4015. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  4016. + :
  4017. + else
  4018. + can_build_shared=no
  4019. + fi
  4020. ;;
  4021. esac
  4022. - else
  4023. - lt_cv_deplibs_check_method=pass_all
  4024. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  4025. + # soname into executable. Probably we can add versioning support to
  4026. + # collect2, so additional links can be useful in future.
  4027. + if test "$aix_use_runtimelinking" = yes; then
  4028. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  4029. + # instead of lib<name>.a to let people know that these are not
  4030. + # typical AIX shared libraries.
  4031. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4032. + else
  4033. + # We preserve .a as extension for shared libraries through AIX4.2
  4034. + # and later when we are not doing run time linking.
  4035. + library_names_spec='${libname}${release}.a $libname.a'
  4036. + soname_spec='${libname}${release}${shared_ext}$major'
  4037. + fi
  4038. + shlibpath_var=LIBPATH
  4039. fi
  4040. ;;
  4041. -gnu*)
  4042. - lt_cv_deplibs_check_method=pass_all
  4043. - ;;
  4044. -
  4045. -hpux10.20* | hpux11*)
  4046. - lt_cv_file_magic_cmd=/usr/bin/file
  4047. +amigaos*)
  4048. case $host_cpu in
  4049. - ia64*)
  4050. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4051. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4052. - ;;
  4053. - hppa*64*)
  4054. - [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]']
  4055. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4056. + powerpc)
  4057. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  4058. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  4059. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4060. ;;
  4061. - *)
  4062. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4063. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4064. + m68k)
  4065. + library_names_spec='$libname.ixlibrary $libname.a'
  4066. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4067. + 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'
  4068. ;;
  4069. esac
  4070. ;;
  4071. -interix3*)
  4072. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4073. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4074. - ;;
  4075. -
  4076. -irix5* | irix6* | nonstopux*)
  4077. - case $LD in
  4078. - *-32|*"-32 ") libmagic=32-bit;;
  4079. - *-n32|*"-n32 ") libmagic=N32;;
  4080. - *-64|*"-64 ") libmagic=64-bit;;
  4081. - *) libmagic=never-match;;
  4082. - esac
  4083. - lt_cv_deplibs_check_method=pass_all
  4084. +beos*)
  4085. + library_names_spec='${libname}${shared_ext}'
  4086. + dynamic_linker="$host_os ld.so"
  4087. + shlibpath_var=LIBRARY_PATH
  4088. ;;
  4089. -# This must be Linux ELF.
  4090. -linux*)
  4091. - lt_cv_deplibs_check_method=pass_all
  4092. +bsdi[[45]]*)
  4093. + version_type=linux
  4094. + need_version=no
  4095. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4096. + soname_spec='${libname}${release}${shared_ext}$major'
  4097. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4098. + shlibpath_var=LD_LIBRARY_PATH
  4099. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4100. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4101. + # the default ld.so.conf also contains /usr/contrib/lib and
  4102. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4103. + # libtool to hard-code these into programs
  4104. ;;
  4105. -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  4106. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4107. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4108. - else
  4109. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4110. - fi
  4111. - ;;
  4112. +cygwin* | mingw* | pw32* | cegcc*)
  4113. + version_type=windows
  4114. + shrext_cmds=".dll"
  4115. + need_version=no
  4116. + need_lib_prefix=no
  4117. -newos6*)
  4118. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4119. - lt_cv_file_magic_cmd=/usr/bin/file
  4120. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4121. - ;;
  4122. + case $GCC,$host_os in
  4123. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4124. + library_names_spec='$libname.dll.a'
  4125. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4126. + postinstall_cmds='base_file=`basename \${file}`~
  4127. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4128. + dldir=$destdir/`dirname \$dlpath`~
  4129. + test -d \$dldir || mkdir -p \$dldir~
  4130. + $install_prog $dir/$dlname \$dldir/$dlname~
  4131. + chmod a+x \$dldir/$dlname~
  4132. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4133. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4134. + fi'
  4135. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4136. + dlpath=$dir/\$dldll~
  4137. + $RM \$dlpath'
  4138. + shlibpath_overrides_runpath=yes
  4139. +
  4140. + case $host_os in
  4141. + cygwin*)
  4142. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4143. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4144. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4145. + ;;
  4146. + mingw* | cegcc*)
  4147. + # MinGW DLLs use traditional 'lib' prefix
  4148. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4149. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4150. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4151. + # It is most probably a Windows format PATH printed by
  4152. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4153. + # path with ; separators, and with drive letters. We can handle the
  4154. + # drive letters (cygwin fileutils understands them), so leave them,
  4155. + # especially as we might pass files found there to a mingw objdump,
  4156. + # which wouldn't understand a cygwinified path. Ahh.
  4157. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4158. + else
  4159. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4160. + fi
  4161. + ;;
  4162. + pw32*)
  4163. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4164. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4165. + ;;
  4166. + esac
  4167. + ;;
  4168. -nto-qnx*)
  4169. - lt_cv_deplibs_check_method=unknown
  4170. + *)
  4171. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4172. + ;;
  4173. + esac
  4174. + dynamic_linker='Win32 ld.exe'
  4175. + # FIXME: first we should search . and the directory the executable is in
  4176. + shlibpath_var=PATH
  4177. ;;
  4178. -openbsd*)
  4179. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4180. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4181. - else
  4182. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4183. - fi
  4184. +darwin* | rhapsody*)
  4185. + dynamic_linker="$host_os dyld"
  4186. + version_type=darwin
  4187. + need_lib_prefix=no
  4188. + need_version=no
  4189. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4190. + soname_spec='${libname}${release}${major}$shared_ext'
  4191. + shlibpath_overrides_runpath=yes
  4192. + shlibpath_var=DYLD_LIBRARY_PATH
  4193. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4194. +m4_if([$1], [],[
  4195. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4196. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4197. ;;
  4198. -osf3* | osf4* | osf5*)
  4199. - lt_cv_deplibs_check_method=pass_all
  4200. +dgux*)
  4201. + version_type=linux
  4202. + need_lib_prefix=no
  4203. + need_version=no
  4204. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4205. + soname_spec='${libname}${release}${shared_ext}$major'
  4206. + shlibpath_var=LD_LIBRARY_PATH
  4207. ;;
  4208. -solaris*)
  4209. - lt_cv_deplibs_check_method=pass_all
  4210. +freebsd1*)
  4211. + dynamic_linker=no
  4212. ;;
  4213. -sysv4 | sysv4.3*)
  4214. - case $host_vendor in
  4215. - motorola)
  4216. - 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]]'
  4217. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4218. - ;;
  4219. - ncr)
  4220. - lt_cv_deplibs_check_method=pass_all
  4221. - ;;
  4222. - sequent)
  4223. - lt_cv_file_magic_cmd='/bin/file'
  4224. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4225. +freebsd* | dragonfly*)
  4226. + # DragonFly does not have aout. When/if they implement a new
  4227. + # versioning mechanism, adjust this.
  4228. + if test -x /usr/bin/objformat; then
  4229. + objformat=`/usr/bin/objformat`
  4230. + else
  4231. + case $host_os in
  4232. + freebsd[[123]]*) objformat=aout ;;
  4233. + *) objformat=elf ;;
  4234. + esac
  4235. + fi
  4236. + version_type=freebsd-$objformat
  4237. + case $version_type in
  4238. + freebsd-elf*)
  4239. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4240. + need_version=no
  4241. + need_lib_prefix=no
  4242. + ;;
  4243. + freebsd-*)
  4244. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4245. + need_version=yes
  4246. + ;;
  4247. + esac
  4248. + shlibpath_var=LD_LIBRARY_PATH
  4249. + case $host_os in
  4250. + freebsd2*)
  4251. + shlibpath_overrides_runpath=yes
  4252. ;;
  4253. - sni)
  4254. - lt_cv_file_magic_cmd='/bin/file'
  4255. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4256. - lt_cv_file_magic_test_file=/lib/libc.so
  4257. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4258. + shlibpath_overrides_runpath=yes
  4259. + hardcode_into_libs=yes
  4260. ;;
  4261. - siemens)
  4262. - lt_cv_deplibs_check_method=pass_all
  4263. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4264. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4265. + shlibpath_overrides_runpath=no
  4266. + hardcode_into_libs=yes
  4267. ;;
  4268. - pc)
  4269. - lt_cv_deplibs_check_method=pass_all
  4270. + *) # from 4.6 on, and DragonFly
  4271. + shlibpath_overrides_runpath=yes
  4272. + hardcode_into_libs=yes
  4273. ;;
  4274. esac
  4275. ;;
  4276. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4277. - lt_cv_deplibs_check_method=pass_all
  4278. +gnu*)
  4279. + version_type=linux
  4280. + need_lib_prefix=no
  4281. + need_version=no
  4282. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4283. + soname_spec='${libname}${release}${shared_ext}$major'
  4284. + shlibpath_var=LD_LIBRARY_PATH
  4285. + hardcode_into_libs=yes
  4286. ;;
  4287. -esac
  4288. -])
  4289. -file_magic_cmd=$lt_cv_file_magic_cmd
  4290. -deplibs_check_method=$lt_cv_deplibs_check_method
  4291. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4292. -])# AC_DEPLIBS_CHECK_METHOD
  4293. -
  4294. -
  4295. -# AC_PROG_NM
  4296. -# ----------
  4297. -# find the pathname to a BSD-compatible name lister
  4298. -AC_DEFUN([AC_PROG_NM],
  4299. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4300. -[if test -n "$NM"; then
  4301. - # Let the user override the test.
  4302. - lt_cv_path_NM="$NM"
  4303. -else
  4304. - lt_nm_to_check="${ac_tool_prefix}nm"
  4305. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4306. - lt_nm_to_check="$lt_nm_to_check nm"
  4307. - fi
  4308. - for lt_tmp_nm in $lt_nm_to_check; do
  4309. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4310. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4311. - IFS="$lt_save_ifs"
  4312. - test -z "$ac_dir" && ac_dir=.
  4313. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4314. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4315. - # Check to see if the nm accepts a BSD-compat flag.
  4316. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4317. - # nm: unknown option "B" ignored
  4318. - # Tru64's nm complains that /dev/null is an invalid object file
  4319. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4320. - */dev/null* | *'Invalid file or object type'*)
  4321. - lt_cv_path_NM="$tmp_nm -B"
  4322. - break
  4323. - ;;
  4324. - *)
  4325. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4326. - */dev/null*)
  4327. - lt_cv_path_NM="$tmp_nm -p"
  4328. - break
  4329. - ;;
  4330. - *)
  4331. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4332. - continue # so that we can try to find one that supports BSD flags
  4333. - ;;
  4334. - esac
  4335. - ;;
  4336. - esac
  4337. - fi
  4338. - done
  4339. - IFS="$lt_save_ifs"
  4340. - done
  4341. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4342. -fi])
  4343. -NM="$lt_cv_path_NM"
  4344. -])# AC_PROG_NM
  4345. -
  4346. -# AC_CHECK_LIBM
  4347. -# -------------
  4348. -# check for math library
  4349. -AC_DEFUN([AC_CHECK_LIBM],
  4350. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4351. -LIBM=
  4352. -case $host in
  4353. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4354. - # These system don't have libm, or don't need it
  4355. - ;;
  4356. -*-ncr-sysv4.3*)
  4357. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4358. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4359. - ;;
  4360. -*)
  4361. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4362. +hpux9* | hpux10* | hpux11*)
  4363. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4364. + # link against other versions.
  4365. + version_type=sunos
  4366. + need_lib_prefix=no
  4367. + need_version=no
  4368. + case $host_cpu in
  4369. + ia64*)
  4370. + shrext_cmds='.so'
  4371. + hardcode_into_libs=yes
  4372. + dynamic_linker="$host_os dld.so"
  4373. + shlibpath_var=LD_LIBRARY_PATH
  4374. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4375. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4376. + soname_spec='${libname}${release}${shared_ext}$major'
  4377. + if test "X$HPUX_IA64_MODE" = X32; then
  4378. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4379. + else
  4380. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4381. + fi
  4382. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4383. + ;;
  4384. + hppa*64*)
  4385. + shrext_cmds='.sl'
  4386. + hardcode_into_libs=yes
  4387. + dynamic_linker="$host_os dld.sl"
  4388. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4389. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4390. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4391. + soname_spec='${libname}${release}${shared_ext}$major'
  4392. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4393. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4394. + ;;
  4395. + *)
  4396. + shrext_cmds='.sl'
  4397. + dynamic_linker="$host_os dld.sl"
  4398. + shlibpath_var=SHLIB_PATH
  4399. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4401. + soname_spec='${libname}${release}${shared_ext}$major'
  4402. + ;;
  4403. + esac
  4404. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4405. + postinstall_cmds='chmod 555 $lib'
  4406. ;;
  4407. -esac
  4408. -])# AC_CHECK_LIBM
  4409. -
  4410. -
  4411. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4412. -# -----------------------------------
  4413. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4414. -# LTDLINCL to the include flags for the libltdl header and adds
  4415. -# --enable-ltdl-convenience to the configure arguments. Note that
  4416. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4417. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4418. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4419. -# (note the single quotes!). If your package is not flat and you're not
  4420. -# using automake, define top_builddir and top_srcdir appropriately in
  4421. -# the Makefiles.
  4422. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4423. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4424. - case $enable_ltdl_convenience in
  4425. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4426. - "") enable_ltdl_convenience=yes
  4427. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4428. - esac
  4429. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4430. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4431. - # For backwards non-gettext consistent compatibility...
  4432. - INCLTDL="$LTDLINCL"
  4433. -])# AC_LIBLTDL_CONVENIENCE
  4434. +interix[[3-9]]*)
  4435. + version_type=linux
  4436. + need_lib_prefix=no
  4437. + need_version=no
  4438. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4439. + soname_spec='${libname}${release}${shared_ext}$major'
  4440. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4441. + shlibpath_var=LD_LIBRARY_PATH
  4442. + shlibpath_overrides_runpath=no
  4443. + hardcode_into_libs=yes
  4444. + ;;
  4445. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4446. -# -----------------------------------
  4447. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4448. -# LTDLINCL to the include flags for the libltdl header and adds
  4449. -# --enable-ltdl-install to the configure arguments. Note that
  4450. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4451. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4452. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4453. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4454. -# flat and you're not using automake, define top_builddir and top_srcdir
  4455. -# appropriately in the Makefiles.
  4456. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4457. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4458. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4459. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4460. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4461. - [if test x"$enable_ltdl_install" = xno; then
  4462. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4463. - else
  4464. - enable_ltdl_install=yes
  4465. - fi
  4466. - ])
  4467. - if test x"$enable_ltdl_install" = x"yes"; then
  4468. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4469. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4470. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4471. - else
  4472. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4473. - LIBLTDL="-lltdl"
  4474. - LTDLINCL=
  4475. - fi
  4476. - # For backwards non-gettext consistent compatibility...
  4477. - INCLTDL="$LTDLINCL"
  4478. -])# AC_LIBLTDL_INSTALLABLE
  4479. -
  4480. -
  4481. -# AC_LIBTOOL_CXX
  4482. -# --------------
  4483. -# enable support for C++ libraries
  4484. -AC_DEFUN([AC_LIBTOOL_CXX],
  4485. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4486. -])# AC_LIBTOOL_CXX
  4487. -
  4488. -
  4489. -# _LT_AC_LANG_CXX
  4490. -# ---------------
  4491. -AC_DEFUN([_LT_AC_LANG_CXX],
  4492. -[AC_REQUIRE([AC_PROG_CXX])
  4493. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4494. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4495. -])# _LT_AC_LANG_CXX
  4496. -
  4497. -# _LT_AC_PROG_CXXCPP
  4498. -# ------------------
  4499. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4500. -[
  4501. -AC_REQUIRE([AC_PROG_CXX])
  4502. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4503. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4504. - (test "X$CXX" != "Xg++"))) ; then
  4505. - AC_PROG_CXXCPP
  4506. -fi
  4507. -])# _LT_AC_PROG_CXXCPP
  4508. -
  4509. -# AC_LIBTOOL_F77
  4510. -# --------------
  4511. -# enable support for Fortran 77 libraries
  4512. -AC_DEFUN([AC_LIBTOOL_F77],
  4513. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4514. -])# AC_LIBTOOL_F77
  4515. -
  4516. -
  4517. -# _LT_AC_LANG_F77
  4518. -# ---------------
  4519. -AC_DEFUN([_LT_AC_LANG_F77],
  4520. -[AC_REQUIRE([AC_PROG_F77])
  4521. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4522. -])# _LT_AC_LANG_F77
  4523. -
  4524. -
  4525. -# AC_LIBTOOL_GCJ
  4526. -# --------------
  4527. -# enable support for GCJ libraries
  4528. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4529. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4530. -])# AC_LIBTOOL_GCJ
  4531. -
  4532. -
  4533. -# _LT_AC_LANG_GCJ
  4534. -# ---------------
  4535. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4536. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4537. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4538. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4539. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4540. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4541. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4542. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4543. -])# _LT_AC_LANG_GCJ
  4544. -
  4545. -
  4546. -# AC_LIBTOOL_RC
  4547. -# -------------
  4548. -# enable support for Windows resource files
  4549. -AC_DEFUN([AC_LIBTOOL_RC],
  4550. -[AC_REQUIRE([LT_AC_PROG_RC])
  4551. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4552. -])# AC_LIBTOOL_RC
  4553. -
  4554. +irix5* | irix6* | nonstopux*)
  4555. + case $host_os in
  4556. + nonstopux*) version_type=nonstopux ;;
  4557. + *)
  4558. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4559. + version_type=linux
  4560. + else
  4561. + version_type=irix
  4562. + fi ;;
  4563. + esac
  4564. + need_lib_prefix=no
  4565. + need_version=no
  4566. + soname_spec='${libname}${release}${shared_ext}$major'
  4567. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4568. + case $host_os in
  4569. + irix5* | nonstopux*)
  4570. + libsuff= shlibsuff=
  4571. + ;;
  4572. + *)
  4573. + case $LD in # libtool.m4 will add one of these switches to LD
  4574. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4575. + libsuff= shlibsuff= libmagic=32-bit;;
  4576. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4577. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4578. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4579. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4580. + *) libsuff= shlibsuff= libmagic=never-match;;
  4581. + esac
  4582. + ;;
  4583. + esac
  4584. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4585. + shlibpath_overrides_runpath=no
  4586. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4587. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4588. + hardcode_into_libs=yes
  4589. + ;;
  4590. -# AC_LIBTOOL_LANG_C_CONFIG
  4591. -# ------------------------
  4592. -# Ensure that the configuration vars for the C compiler are
  4593. -# suitably defined. Those variables are subsequently used by
  4594. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4595. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4596. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4597. -[lt_save_CC="$CC"
  4598. -AC_LANG_PUSH(C)
  4599. +# No shared lib support for Linux oldld, aout, or coff.
  4600. +linux*oldld* | linux*aout* | linux*coff*)
  4601. + dynamic_linker=no
  4602. + ;;
  4603. -# Source file extension for C test sources.
  4604. -ac_ext=c
  4605. +# This must be Linux ELF.
  4606. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4607. + version_type=linux
  4608. + need_lib_prefix=no
  4609. + need_version=no
  4610. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4611. + soname_spec='${libname}${release}${shared_ext}$major'
  4612. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4613. + shlibpath_var=LD_LIBRARY_PATH
  4614. + shlibpath_overrides_runpath=no
  4615. + # Some binutils ld are patched to set DT_RUNPATH
  4616. + save_LDFLAGS=$LDFLAGS
  4617. + save_libdir=$libdir
  4618. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4619. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4620. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4621. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4622. + [shlibpath_overrides_runpath=yes])])
  4623. + LDFLAGS=$save_LDFLAGS
  4624. + libdir=$save_libdir
  4625. -# Object file extension for compiled C test sources.
  4626. -objext=o
  4627. -_LT_AC_TAGVAR(objext, $1)=$objext
  4628. + # This implies no fast_install, which is unacceptable.
  4629. + # Some rework will be needed to allow for fast_install
  4630. + # before this can be enabled.
  4631. + hardcode_into_libs=yes
  4632. -# Code to be used in simple compile tests
  4633. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4634. + # Append ld.so.conf contents to the search path
  4635. + if test -f /etc/ld.so.conf; then
  4636. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  4637. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4638. + fi
  4639. -# Code to be used in simple link tests
  4640. -lt_simple_link_test_code='int main(){return(0);}\n'
  4641. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4642. + # powerpc, because MkLinux only supported shared libraries with the
  4643. + # GNU dynamic linker. Since this was broken with cross compilers,
  4644. + # most powerpc-linux boxes support dynamic linking these days and
  4645. + # people can always --disable-shared, the test was removed, and we
  4646. + # assume the GNU/Linux dynamic linker is in use.
  4647. + dynamic_linker='GNU/Linux ld.so'
  4648. + ;;
  4649. -_LT_AC_SYS_COMPILER
  4650. +netbsdelf*-gnu)
  4651. + version_type=linux
  4652. + need_lib_prefix=no
  4653. + need_version=no
  4654. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4655. + soname_spec='${libname}${release}${shared_ext}$major'
  4656. + shlibpath_var=LD_LIBRARY_PATH
  4657. + shlibpath_overrides_runpath=no
  4658. + hardcode_into_libs=yes
  4659. + dynamic_linker='NetBSD ld.elf_so'
  4660. + ;;
  4661. -# save warnings/boilerplate of simple test code
  4662. -_LT_COMPILER_BOILERPLATE
  4663. -_LT_LINKER_BOILERPLATE
  4664. +netbsd*)
  4665. + version_type=sunos
  4666. + need_lib_prefix=no
  4667. + need_version=no
  4668. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4669. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4670. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4671. + dynamic_linker='NetBSD (a.out) ld.so'
  4672. + else
  4673. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4674. + soname_spec='${libname}${release}${shared_ext}$major'
  4675. + dynamic_linker='NetBSD ld.elf_so'
  4676. + fi
  4677. + shlibpath_var=LD_LIBRARY_PATH
  4678. + shlibpath_overrides_runpath=yes
  4679. + hardcode_into_libs=yes
  4680. + ;;
  4681. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4682. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4683. -AC_LIBTOOL_PROG_CC_C_O($1)
  4684. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4685. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4686. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4687. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4688. -AC_LIBTOOL_SYS_LIB_STRIP
  4689. -AC_LIBTOOL_DLOPEN_SELF
  4690. -
  4691. -# Report which library types will actually be built
  4692. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4693. -AC_MSG_RESULT([$can_build_shared])
  4694. +newsos6)
  4695. + version_type=linux
  4696. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4697. + shlibpath_var=LD_LIBRARY_PATH
  4698. + shlibpath_overrides_runpath=yes
  4699. + ;;
  4700. -AC_MSG_CHECKING([whether to build shared libraries])
  4701. -test "$can_build_shared" = "no" && enable_shared=no
  4702. +*nto* | *qnx*)
  4703. + version_type=qnx
  4704. + need_lib_prefix=no
  4705. + need_version=no
  4706. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4707. + soname_spec='${libname}${release}${shared_ext}$major'
  4708. + shlibpath_var=LD_LIBRARY_PATH
  4709. + shlibpath_overrides_runpath=no
  4710. + hardcode_into_libs=yes
  4711. + dynamic_linker='ldqnx.so'
  4712. + ;;
  4713. -# On AIX, shared libraries and static libraries use the same namespace, and
  4714. -# are all built from PIC.
  4715. -case $host_os in
  4716. -aix3*)
  4717. - test "$enable_shared" = yes && enable_static=no
  4718. - if test -n "$RANLIB"; then
  4719. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4720. - postinstall_cmds='$RANLIB $lib'
  4721. +openbsd*)
  4722. + version_type=sunos
  4723. + sys_lib_dlsearch_path_spec="/usr/lib"
  4724. + need_lib_prefix=no
  4725. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4726. + case $host_os in
  4727. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4728. + *) need_version=no ;;
  4729. + esac
  4730. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4731. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4732. + shlibpath_var=LD_LIBRARY_PATH
  4733. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4734. + case $host_os in
  4735. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4736. + shlibpath_overrides_runpath=no
  4737. + ;;
  4738. + *)
  4739. + shlibpath_overrides_runpath=yes
  4740. + ;;
  4741. + esac
  4742. + else
  4743. + shlibpath_overrides_runpath=yes
  4744. fi
  4745. ;;
  4746. -aix4* | aix5*)
  4747. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4748. - test "$enable_shared" = yes && enable_static=no
  4749. - fi
  4750. - ;;
  4751. -esac
  4752. -AC_MSG_RESULT([$enable_shared])
  4753. +os2*)
  4754. + libname_spec='$name'
  4755. + shrext_cmds=".dll"
  4756. + need_lib_prefix=no
  4757. + library_names_spec='$libname${shared_ext} $libname.a'
  4758. + dynamic_linker='OS/2 ld.exe'
  4759. + shlibpath_var=LIBPATH
  4760. + ;;
  4761. -AC_MSG_CHECKING([whether to build static libraries])
  4762. -# Make sure either enable_shared or enable_static is yes.
  4763. -test "$enable_shared" = yes || enable_static=yes
  4764. -AC_MSG_RESULT([$enable_static])
  4765. +osf3* | osf4* | osf5*)
  4766. + version_type=osf
  4767. + need_lib_prefix=no
  4768. + need_version=no
  4769. + soname_spec='${libname}${release}${shared_ext}$major'
  4770. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4771. + shlibpath_var=LD_LIBRARY_PATH
  4772. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4773. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4774. + ;;
  4775. -AC_LIBTOOL_CONFIG($1)
  4776. +rdos*)
  4777. + dynamic_linker=no
  4778. + ;;
  4779. -AC_LANG_POP
  4780. -CC="$lt_save_CC"
  4781. -])# AC_LIBTOOL_LANG_C_CONFIG
  4782. +solaris*)
  4783. + version_type=linux
  4784. + need_lib_prefix=no
  4785. + need_version=no
  4786. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4787. + soname_spec='${libname}${release}${shared_ext}$major'
  4788. + shlibpath_var=LD_LIBRARY_PATH
  4789. + shlibpath_overrides_runpath=yes
  4790. + hardcode_into_libs=yes
  4791. + # ldd complains unless libraries are executable
  4792. + postinstall_cmds='chmod +x $lib'
  4793. + ;;
  4794. +sunos4*)
  4795. + version_type=sunos
  4796. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4797. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4798. + shlibpath_var=LD_LIBRARY_PATH
  4799. + shlibpath_overrides_runpath=yes
  4800. + if test "$with_gnu_ld" = yes; then
  4801. + need_lib_prefix=no
  4802. + fi
  4803. + need_version=yes
  4804. + ;;
  4805. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4806. -# --------------------------
  4807. -# Ensure that the configuration vars for the C compiler are
  4808. -# suitably defined. Those variables are subsequently used by
  4809. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4810. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4811. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4812. -[AC_LANG_PUSH(C++)
  4813. -AC_REQUIRE([AC_PROG_CXX])
  4814. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4815. -
  4816. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4817. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4818. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4819. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4820. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4821. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4822. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4823. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4824. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4825. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4826. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4827. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4828. -_LT_AC_TAGVAR(module_cmds, $1)=
  4829. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4830. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4831. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4832. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4833. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4834. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4835. +sysv4 | sysv4.3*)
  4836. + version_type=linux
  4837. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4838. + soname_spec='${libname}${release}${shared_ext}$major'
  4839. + shlibpath_var=LD_LIBRARY_PATH
  4840. + case $host_vendor in
  4841. + sni)
  4842. + shlibpath_overrides_runpath=no
  4843. + need_lib_prefix=no
  4844. + runpath_var=LD_RUN_PATH
  4845. + ;;
  4846. + siemens)
  4847. + need_lib_prefix=no
  4848. + ;;
  4849. + motorola)
  4850. + need_lib_prefix=no
  4851. + need_version=no
  4852. + shlibpath_overrides_runpath=no
  4853. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4854. + ;;
  4855. + esac
  4856. + ;;
  4857. -# Dependencies to place before and after the object being linked:
  4858. -_LT_AC_TAGVAR(predep_objects, $1)=
  4859. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4860. -_LT_AC_TAGVAR(predeps, $1)=
  4861. -_LT_AC_TAGVAR(postdeps, $1)=
  4862. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4863. +sysv4*MP*)
  4864. + if test -d /usr/nec ;then
  4865. + version_type=linux
  4866. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4867. + soname_spec='$libname${shared_ext}.$major'
  4868. + shlibpath_var=LD_LIBRARY_PATH
  4869. + fi
  4870. + ;;
  4871. -# Source file extension for C++ test sources.
  4872. -ac_ext=cpp
  4873. -
  4874. -# Object file extension for compiled C++ test sources.
  4875. -objext=o
  4876. -_LT_AC_TAGVAR(objext, $1)=$objext
  4877. -
  4878. -# Code to be used in simple compile tests
  4879. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4880. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4881. + version_type=freebsd-elf
  4882. + need_lib_prefix=no
  4883. + need_version=no
  4884. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4885. + soname_spec='${libname}${release}${shared_ext}$major'
  4886. + shlibpath_var=LD_LIBRARY_PATH
  4887. + shlibpath_overrides_runpath=yes
  4888. + hardcode_into_libs=yes
  4889. + if test "$with_gnu_ld" = yes; then
  4890. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4891. + else
  4892. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4893. + case $host_os in
  4894. + sco3.2v5*)
  4895. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4896. + ;;
  4897. + esac
  4898. + fi
  4899. + sys_lib_dlsearch_path_spec='/usr/lib'
  4900. + ;;
  4901. -# Code to be used in simple link tests
  4902. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  4903. +tpf*)
  4904. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4905. + version_type=linux
  4906. + need_lib_prefix=no
  4907. + need_version=no
  4908. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4909. + shlibpath_var=LD_LIBRARY_PATH
  4910. + shlibpath_overrides_runpath=no
  4911. + hardcode_into_libs=yes
  4912. + ;;
  4913. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4914. -_LT_AC_SYS_COMPILER
  4915. +uts4*)
  4916. + version_type=linux
  4917. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4918. + soname_spec='${libname}${release}${shared_ext}$major'
  4919. + shlibpath_var=LD_LIBRARY_PATH
  4920. + ;;
  4921. -# save warnings/boilerplate of simple test code
  4922. -_LT_COMPILER_BOILERPLATE
  4923. -_LT_LINKER_BOILERPLATE
  4924. +*)
  4925. + dynamic_linker=no
  4926. + ;;
  4927. +esac
  4928. +AC_MSG_RESULT([$dynamic_linker])
  4929. +test "$dynamic_linker" = no && can_build_shared=no
  4930. -# Allow CC to be a program name with arguments.
  4931. -lt_save_CC=$CC
  4932. -lt_save_LD=$LD
  4933. -lt_save_GCC=$GCC
  4934. -GCC=$GXX
  4935. -lt_save_with_gnu_ld=$with_gnu_ld
  4936. -lt_save_path_LD=$lt_cv_path_LD
  4937. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4938. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4939. -else
  4940. - $as_unset lt_cv_prog_gnu_ld
  4941. -fi
  4942. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4943. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4944. -else
  4945. - $as_unset lt_cv_path_LD
  4946. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4947. +if test "$GCC" = yes; then
  4948. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4949. fi
  4950. -test -z "${LDCXX+set}" || LD=$LDCXX
  4951. -CC=${CXX-"c++"}
  4952. -compiler=$CC
  4953. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4954. -_LT_CC_BASENAME([$compiler])
  4955. -# We don't want -fno-exception wen compiling C++ code, so set the
  4956. -# no_builtin_flag separately
  4957. -if test "$GXX" = yes; then
  4958. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4959. -else
  4960. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4961. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4962. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4963. +fi
  4964. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4965. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4966. fi
  4967. -if test "$GXX" = yes; then
  4968. - # Set up default GNU C++ configuration
  4969. -
  4970. - AC_PROG_LD
  4971. +_LT_DECL([], [variables_saved_for_relink], [1],
  4972. + [Variables whose values should be saved in libtool wrapper scripts and
  4973. + restored at link time])
  4974. +_LT_DECL([], [need_lib_prefix], [0],
  4975. + [Do we need the "lib" prefix for modules?])
  4976. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4977. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4978. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4979. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4980. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4981. + [Is shlibpath searched before the hard-coded library search path?])
  4982. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4983. +_LT_DECL([], [library_names_spec], [1],
  4984. + [[List of archive names. First name is the real one, the rest are links.
  4985. + The last name is the one that the linker finds with -lNAME]])
  4986. +_LT_DECL([], [soname_spec], [1],
  4987. + [[The coded name of the library, if different from the real name]])
  4988. +_LT_DECL([], [postinstall_cmds], [2],
  4989. + [Command to use after installation of a shared archive])
  4990. +_LT_DECL([], [postuninstall_cmds], [2],
  4991. + [Command to use after uninstallation of a shared archive])
  4992. +_LT_DECL([], [finish_cmds], [2],
  4993. + [Commands used to finish a libtool library installation in a directory])
  4994. +_LT_DECL([], [finish_eval], [1],
  4995. + [[As "finish_cmds", except a single script fragment to be evaled but
  4996. + not shown]])
  4997. +_LT_DECL([], [hardcode_into_libs], [0],
  4998. + [Whether we should hardcode library paths into libraries])
  4999. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  5000. + [Compile-time system search path for libraries])
  5001. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  5002. + [Run-time system search path for libraries])
  5003. +])# _LT_SYS_DYNAMIC_LINKER
  5004. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5005. - # archiving commands below assume that GNU ld is being used.
  5006. - if test "$with_gnu_ld" = yes; then
  5007. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5008. - _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'
  5009. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5010. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5011. +# _LT_PATH_TOOL_PREFIX(TOOL)
  5012. +# --------------------------
  5013. +# find a file program which can recognize shared library
  5014. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  5015. +[m4_require([_LT_DECL_EGREP])dnl
  5016. +AC_MSG_CHECKING([for $1])
  5017. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  5018. +[case $MAGIC_CMD in
  5019. +[[\\/*] | ?:[\\/]*])
  5020. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5021. + ;;
  5022. +*)
  5023. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  5024. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5025. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  5026. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  5027. +dnl not every word. This closes a longstanding sh security hole.
  5028. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  5029. + for ac_dir in $ac_dummy; do
  5030. + IFS="$lt_save_ifs"
  5031. + test -z "$ac_dir" && ac_dir=.
  5032. + if test -f $ac_dir/$1; then
  5033. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  5034. + if test -n "$file_magic_test_file"; then
  5035. + case $deplibs_check_method in
  5036. + "file_magic "*)
  5037. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5038. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5039. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5040. + $EGREP "$file_magic_regex" > /dev/null; then
  5041. + :
  5042. + else
  5043. + cat <<_LT_EOF 1>&2
  5044. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5045. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5046. - # investigate it a little bit more. (MM)
  5047. - wlarc='${wl}'
  5048. +*** Warning: the command libtool uses to detect shared libraries,
  5049. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5050. +*** The result is that libtool may fail to recognize shared libraries
  5051. +*** as such. This will affect the creation of libtool libraries that
  5052. +*** depend on shared libraries, but programs linked with such libtool
  5053. +*** libraries will work regardless of this problem. Nevertheless, you
  5054. +*** may want to report the problem to your system manager and/or to
  5055. +*** bug-libtool@gnu.org
  5056. - # ancient GNU ld didn't support --whole-archive et. al.
  5057. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5058. - grep 'no-whole-archive' > /dev/null; then
  5059. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5060. - else
  5061. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5062. +_LT_EOF
  5063. + fi ;;
  5064. + esac
  5065. + fi
  5066. + break
  5067. fi
  5068. - else
  5069. - with_gnu_ld=no
  5070. - wlarc=
  5071. -
  5072. - # A generic and very simple default shared library creation
  5073. - # command for GNU C++ for the case where it uses the native
  5074. - # linker, instead of GNU ld. If possible, this setting should
  5075. - # overridden to take advantage of the native linker features on
  5076. - # the platform it is being used on.
  5077. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5078. - fi
  5079. -
  5080. - # Commands to make compiler produce verbose output that lists
  5081. - # what "hidden" libraries, object files and flags are used when
  5082. - # linking a shared library.
  5083. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5084. -
  5085. + done
  5086. + IFS="$lt_save_ifs"
  5087. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  5088. + ;;
  5089. +esac])
  5090. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5091. +if test -n "$MAGIC_CMD"; then
  5092. + AC_MSG_RESULT($MAGIC_CMD)
  5093. else
  5094. - GXX=no
  5095. - with_gnu_ld=no
  5096. - wlarc=
  5097. + AC_MSG_RESULT(no)
  5098. fi
  5099. +_LT_DECL([], [MAGIC_CMD], [0],
  5100. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  5101. +])# _LT_PATH_TOOL_PREFIX
  5102. -# PORTME: fill in a description of your system's C++ link characteristics
  5103. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5104. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5105. -case $host_os in
  5106. - aix3*)
  5107. - # FIXME: insert proper C++ library support
  5108. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5109. - ;;
  5110. - aix4* | aix5*)
  5111. - if test "$host_cpu" = ia64; then
  5112. - # On IA64, the linker does run time linking by default, so we don't
  5113. - # have to do anything special.
  5114. - aix_use_runtimelinking=no
  5115. - exp_sym_flag='-Bexport'
  5116. - no_entry_flag=""
  5117. - else
  5118. - aix_use_runtimelinking=no
  5119. +# Old name:
  5120. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  5121. +dnl aclocal-1.4 backwards compatibility:
  5122. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  5123. - # Test if we are trying to use run time linking or normal
  5124. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5125. - # need to do runtime linking.
  5126. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5127. - for ld_flag in $LDFLAGS; do
  5128. - case $ld_flag in
  5129. - *-brtl*)
  5130. - aix_use_runtimelinking=yes
  5131. - break
  5132. - ;;
  5133. - esac
  5134. - done
  5135. - ;;
  5136. - esac
  5137. - exp_sym_flag='-bexport'
  5138. - no_entry_flag='-bnoentry'
  5139. - fi
  5140. +# _LT_PATH_MAGIC
  5141. +# --------------
  5142. +# find a file program which can recognize a shared library
  5143. +m4_defun([_LT_PATH_MAGIC],
  5144. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5145. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5146. + if test -n "$ac_tool_prefix"; then
  5147. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5148. + else
  5149. + MAGIC_CMD=:
  5150. + fi
  5151. +fi
  5152. +])# _LT_PATH_MAGIC
  5153. - # When large executables or shared objects are built, AIX ld can
  5154. - # have problems creating the table of contents. If linking a library
  5155. - # or program results in "error TOC overflow" add -mminimal-toc to
  5156. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5157. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5158. -
  5159. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5160. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5161. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5162. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5163. - if test "$GXX" = yes; then
  5164. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5165. - # We only want to do this on AIX 4.2 and lower, the check
  5166. - # below for broken collect2 doesn't work under 4.3+
  5167. - collect2name=`${CC} -print-prog-name=collect2`
  5168. - if test -f "$collect2name" && \
  5169. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5170. - then
  5171. - # We have reworked collect2
  5172. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5173. - else
  5174. - # We have old collect2
  5175. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5176. - # It fails to find uninstalled libraries when the uninstalled
  5177. - # path is not listed in the libpath. Setting hardcode_minus_L
  5178. - # to unsupported forces relinking
  5179. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5180. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5181. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5182. - fi
  5183. - ;;
  5184. - esac
  5185. - shared_flag='-shared'
  5186. - if test "$aix_use_runtimelinking" = yes; then
  5187. - shared_flag="$shared_flag "'${wl}-G'
  5188. - fi
  5189. - else
  5190. - # not using gcc
  5191. - if test "$host_cpu" = ia64; then
  5192. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5193. - # chokes on -Wl,-G. The following line is correct:
  5194. - shared_flag='-G'
  5195. - else
  5196. - if test "$aix_use_runtimelinking" = yes; then
  5197. - shared_flag='${wl}-G'
  5198. - else
  5199. - shared_flag='${wl}-bM:SRE'
  5200. - fi
  5201. - fi
  5202. - fi
  5203. +# LT_PATH_LD
  5204. +# ----------
  5205. +# find the pathname to the GNU or non-GNU linker
  5206. +AC_DEFUN([LT_PATH_LD],
  5207. +[AC_REQUIRE([AC_PROG_CC])dnl
  5208. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5209. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5210. +m4_require([_LT_DECL_SED])dnl
  5211. +m4_require([_LT_DECL_EGREP])dnl
  5212. - # It seems that -bexpall does not export symbols beginning with
  5213. - # underscore (_), so it is better to generate a list of symbols to export.
  5214. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5215. - if test "$aix_use_runtimelinking" = yes; then
  5216. - # Warning - without using the other runtime loading flags (-brtl),
  5217. - # -berok will link without error, but may produce a broken library.
  5218. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5219. - # Determine the default libpath from the value encoded in an empty executable.
  5220. - _LT_AC_SYS_LIBPATH_AIX
  5221. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5222. +AC_ARG_WITH([gnu-ld],
  5223. + [AS_HELP_STRING([--with-gnu-ld],
  5224. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5225. + [test "$withval" = no || with_gnu_ld=yes],
  5226. + [with_gnu_ld=no])dnl
  5227. - _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"
  5228. - else
  5229. - if test "$host_cpu" = ia64; then
  5230. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5231. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5232. - _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"
  5233. - else
  5234. - # Determine the default libpath from the value encoded in an empty executable.
  5235. - _LT_AC_SYS_LIBPATH_AIX
  5236. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5237. - # Warning - without using the other run time loading flags,
  5238. - # -berok will link without error, but may produce a broken library.
  5239. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5240. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5241. - # Exported symbols can be pulled into shared objects from archives
  5242. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5243. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5244. - # This is similar to how AIX traditionally builds its shared libraries.
  5245. - _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'
  5246. - fi
  5247. - fi
  5248. +ac_prog=ld
  5249. +if test "$GCC" = yes; then
  5250. + # Check if gcc -print-prog-name=ld gives a path.
  5251. + AC_MSG_CHECKING([for ld used by $CC])
  5252. + case $host in
  5253. + *-*-mingw*)
  5254. + # gcc leaves a trailing carriage return which upsets mingw
  5255. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5256. + *)
  5257. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5258. + esac
  5259. + case $ac_prog in
  5260. + # Accept absolute paths.
  5261. + [[\\/]]* | ?:[[\\/]]*)
  5262. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5263. + # Canonicalize the pathname of ld
  5264. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5265. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5266. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5267. + done
  5268. + test -z "$LD" && LD="$ac_prog"
  5269. + ;;
  5270. + "")
  5271. + # If it fails, then pretend we aren't using GCC.
  5272. + ac_prog=ld
  5273. ;;
  5274. -
  5275. - beos*)
  5276. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5277. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5278. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5279. - # support --undefined. This deserves some investigation. FIXME
  5280. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5281. - else
  5282. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5283. - fi
  5284. + *)
  5285. + # If it is relative, then search for the first ld in PATH.
  5286. + with_gnu_ld=unknown
  5287. ;;
  5288. -
  5289. - chorus*)
  5290. - case $cc_basename in
  5291. + esac
  5292. +elif test "$with_gnu_ld" = yes; then
  5293. + AC_MSG_CHECKING([for GNU ld])
  5294. +else
  5295. + AC_MSG_CHECKING([for non-GNU ld])
  5296. +fi
  5297. +AC_CACHE_VAL(lt_cv_path_LD,
  5298. +[if test -z "$LD"; then
  5299. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5300. + for ac_dir in $PATH; do
  5301. + IFS="$lt_save_ifs"
  5302. + test -z "$ac_dir" && ac_dir=.
  5303. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5304. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5305. + # Check to see if the program is GNU ld. I'd rather use --version,
  5306. + # but apparently some variants of GNU ld only accept -v.
  5307. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5308. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5309. + *GNU* | *'with BFD'*)
  5310. + test "$with_gnu_ld" != no && break
  5311. + ;;
  5312. *)
  5313. - # FIXME: insert proper C++ library support
  5314. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5315. + test "$with_gnu_ld" != yes && break
  5316. ;;
  5317. - esac
  5318. - ;;
  5319. -
  5320. - cygwin* | mingw* | pw32*)
  5321. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5322. - # as there is no search path for DLLs.
  5323. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5324. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5325. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5326. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5327. -
  5328. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5329. - _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'
  5330. - # If the export-symbols file already is a .def file (1st line
  5331. - # is EXPORTS), use it as is; otherwise, prepend...
  5332. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5333. - cp $export_symbols $output_objdir/$soname.def;
  5334. - else
  5335. - echo EXPORTS > $output_objdir/$soname.def;
  5336. - cat $export_symbols >> $output_objdir/$soname.def;
  5337. - fi~
  5338. - $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'
  5339. - else
  5340. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5341. + esac
  5342. fi
  5343. + done
  5344. + IFS="$lt_save_ifs"
  5345. +else
  5346. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5347. +fi])
  5348. +LD="$lt_cv_path_LD"
  5349. +if test -n "$LD"; then
  5350. + AC_MSG_RESULT($LD)
  5351. +else
  5352. + AC_MSG_RESULT(no)
  5353. +fi
  5354. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5355. +_LT_PATH_LD_GNU
  5356. +AC_SUBST([LD])
  5357. +
  5358. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5359. +])# LT_PATH_LD
  5360. +
  5361. +# Old names:
  5362. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5363. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5364. +dnl aclocal-1.4 backwards compatibility:
  5365. +dnl AC_DEFUN([AM_PROG_LD], [])
  5366. +dnl AC_DEFUN([AC_PROG_LD], [])
  5367. +
  5368. +
  5369. +# _LT_PATH_LD_GNU
  5370. +#- --------------
  5371. +m4_defun([_LT_PATH_LD_GNU],
  5372. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5373. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5374. +case `$LD -v 2>&1 </dev/null` in
  5375. +*GNU* | *'with BFD'*)
  5376. + lt_cv_prog_gnu_ld=yes
  5377. ;;
  5378. - darwin* | rhapsody*)
  5379. - case $host_os in
  5380. - rhapsody* | darwin1.[[012]])
  5381. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5382. - ;;
  5383. - *) # Darwin 1.3 on
  5384. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5385. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5386. - else
  5387. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5388. - 10.[[012]])
  5389. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5390. - ;;
  5391. - 10.*)
  5392. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5393. - ;;
  5394. - esac
  5395. - fi
  5396. - ;;
  5397. - esac
  5398. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5399. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5400. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5401. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5402. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5403. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5404. -
  5405. - if test "$GXX" = yes ; then
  5406. - lt_int_apple_cc_single_mod=no
  5407. - output_verbose_link_cmd='echo'
  5408. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5409. - lt_int_apple_cc_single_mod=yes
  5410. - fi
  5411. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5412. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5413. - else
  5414. - _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'
  5415. - fi
  5416. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5417. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5418. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5419. - _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}'
  5420. - else
  5421. - _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}'
  5422. - fi
  5423. - _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}'
  5424. - else
  5425. - case $cc_basename in
  5426. - xlc*)
  5427. - output_verbose_link_cmd='echo'
  5428. - _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'
  5429. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5430. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5431. - _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}'
  5432. - _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}'
  5433. - ;;
  5434. - *)
  5435. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5436. - ;;
  5437. - esac
  5438. - fi
  5439. - ;;
  5440. +*)
  5441. + lt_cv_prog_gnu_ld=no
  5442. + ;;
  5443. +esac])
  5444. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5445. +])# _LT_PATH_LD_GNU
  5446. - dgux*)
  5447. - case $cc_basename in
  5448. - ec++*)
  5449. - # FIXME: insert proper C++ library support
  5450. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5451. - ;;
  5452. - ghcx*)
  5453. - # Green Hills C++ Compiler
  5454. - # FIXME: insert proper C++ library support
  5455. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5456. - ;;
  5457. - *)
  5458. - # FIXME: insert proper C++ library support
  5459. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5460. - ;;
  5461. - esac
  5462. - ;;
  5463. - freebsd[[12]]*)
  5464. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5465. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5466. - ;;
  5467. - freebsd-elf*)
  5468. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5469. - ;;
  5470. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5471. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5472. - # conventions
  5473. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5474. - ;;
  5475. - gnu*)
  5476. - ;;
  5477. - hpux9*)
  5478. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5479. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5480. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5481. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5482. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5483. - # but as the default
  5484. - # location of the library.
  5485. -
  5486. - case $cc_basename in
  5487. - CC*)
  5488. - # FIXME: insert proper C++ library support
  5489. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5490. - ;;
  5491. - aCC*)
  5492. - _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'
  5493. - # Commands to make compiler produce verbose output that lists
  5494. - # what "hidden" libraries, object files and flags are used when
  5495. - # linking a shared library.
  5496. - #
  5497. - # There doesn't appear to be a way to prevent this compiler from
  5498. - # explicitly linking system object files so we need to strip them
  5499. - # from the output so that they don't get included in the library
  5500. - # dependencies.
  5501. - 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'
  5502. - ;;
  5503. - *)
  5504. - if test "$GXX" = yes; then
  5505. - _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'
  5506. - else
  5507. - # FIXME: insert proper C++ library support
  5508. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5509. - fi
  5510. - ;;
  5511. - esac
  5512. - ;;
  5513. - hpux10*|hpux11*)
  5514. - if test $with_gnu_ld = no; then
  5515. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5516. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5517. - case $host_cpu in
  5518. - hppa*64*|ia64*)
  5519. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5520. - ;;
  5521. - *)
  5522. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5523. - ;;
  5524. - esac
  5525. +# _LT_CMD_RELOAD
  5526. +# --------------
  5527. +# find reload flag for linker
  5528. +# -- PORTME Some linkers may need a different reload flag.
  5529. +m4_defun([_LT_CMD_RELOAD],
  5530. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5531. + lt_cv_ld_reload_flag,
  5532. + [lt_cv_ld_reload_flag='-r'])
  5533. +reload_flag=$lt_cv_ld_reload_flag
  5534. +case $reload_flag in
  5535. +"" | " "*) ;;
  5536. +*) reload_flag=" $reload_flag" ;;
  5537. +esac
  5538. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5539. +case $host_os in
  5540. + darwin*)
  5541. + if test "$GCC" = yes; then
  5542. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5543. + else
  5544. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5545. fi
  5546. - case $host_cpu in
  5547. - hppa*64*|ia64*)
  5548. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5549. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5550. - ;;
  5551. - *)
  5552. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5553. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5554. - # but as the default
  5555. - # location of the library.
  5556. - ;;
  5557. - esac
  5558. -
  5559. - case $cc_basename in
  5560. - CC*)
  5561. - # FIXME: insert proper C++ library support
  5562. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5563. - ;;
  5564. - aCC*)
  5565. - case $host_cpu in
  5566. - hppa*64*)
  5567. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5568. - ;;
  5569. - ia64*)
  5570. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5571. - ;;
  5572. - *)
  5573. - _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'
  5574. - ;;
  5575. - esac
  5576. - # Commands to make compiler produce verbose output that lists
  5577. - # what "hidden" libraries, object files and flags are used when
  5578. - # linking a shared library.
  5579. - #
  5580. - # There doesn't appear to be a way to prevent this compiler from
  5581. - # explicitly linking system object files so we need to strip them
  5582. - # from the output so that they don't get included in the library
  5583. - # dependencies.
  5584. - 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'
  5585. - ;;
  5586. - *)
  5587. - if test "$GXX" = yes; then
  5588. - if test $with_gnu_ld = no; then
  5589. - case $host_cpu in
  5590. - hppa*64*)
  5591. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5592. - ;;
  5593. - ia64*)
  5594. - _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'
  5595. - ;;
  5596. - *)
  5597. - _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'
  5598. - ;;
  5599. - esac
  5600. - fi
  5601. - else
  5602. - # FIXME: insert proper C++ library support
  5603. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5604. - fi
  5605. - ;;
  5606. - esac
  5607. - ;;
  5608. - interix3*)
  5609. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5610. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5611. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5612. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5613. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5614. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5615. - # default) and relocated if they conflict, which is a slow very memory
  5616. - # consuming and fragmenting process. To avoid this, we pick a random,
  5617. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5618. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5619. - _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'
  5620. - _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'
  5621. - ;;
  5622. - irix5* | irix6*)
  5623. - case $cc_basename in
  5624. - CC*)
  5625. - # SGI C++
  5626. - _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'
  5627. -
  5628. - # Archives containing C++ object files must be created using
  5629. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5630. - # necessary to make sure instantiated templates are included
  5631. - # in the archive.
  5632. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5633. - ;;
  5634. - *)
  5635. - if test "$GXX" = yes; then
  5636. - if test "$with_gnu_ld" = no; then
  5637. - _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'
  5638. - else
  5639. - _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'
  5640. - fi
  5641. - fi
  5642. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5643. - ;;
  5644. - esac
  5645. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5646. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5647. ;;
  5648. - linux*)
  5649. - case $cc_basename in
  5650. - KCC*)
  5651. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5652. -
  5653. - # KCC will only create a shared library if the output file
  5654. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5655. - # to its proper name (with version) after linking.
  5656. - _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'
  5657. - _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'
  5658. - # Commands to make compiler produce verbose output that lists
  5659. - # what "hidden" libraries, object files and flags are used when
  5660. - # linking a shared library.
  5661. - #
  5662. - # There doesn't appear to be a way to prevent this compiler from
  5663. - # explicitly linking system object files so we need to strip them
  5664. - # from the output so that they don't get included in the library
  5665. - # dependencies.
  5666. - 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'
  5667. -
  5668. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5669. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5670. -
  5671. - # Archives containing C++ object files must be created using
  5672. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5673. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5674. - ;;
  5675. - icpc*)
  5676. - # Intel C++
  5677. - with_gnu_ld=yes
  5678. - # version 8.0 and above of icpc choke on multiply defined symbols
  5679. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5680. - # earlier do not add the objects themselves.
  5681. - case `$CC -V 2>&1` in
  5682. - *"Version 7."*)
  5683. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5684. - _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'
  5685. - ;;
  5686. - *) # Version 8.0 or newer
  5687. - tmp_idyn=
  5688. - case $host_cpu in
  5689. - ia64*) tmp_idyn=' -i_dynamic';;
  5690. - esac
  5691. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5692. - _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'
  5693. - ;;
  5694. - esac
  5695. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5696. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5697. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5698. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5699. - ;;
  5700. - pgCC*)
  5701. - # Portland Group C++ compiler
  5702. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5703. - _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'
  5704. -
  5705. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5706. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5707. - _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'
  5708. - ;;
  5709. - cxx*)
  5710. - # Compaq C++
  5711. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5712. - _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'
  5713. +esac
  5714. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5715. +_LT_DECL([], [reload_cmds], [2])dnl
  5716. +])# _LT_CMD_RELOAD
  5717. - runpath_var=LD_RUN_PATH
  5718. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5719. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5720. - # Commands to make compiler produce verbose output that lists
  5721. - # what "hidden" libraries, object files and flags are used when
  5722. - # linking a shared library.
  5723. - #
  5724. - # There doesn't appear to be a way to prevent this compiler from
  5725. - # explicitly linking system object files so we need to strip them
  5726. - # from the output so that they don't get included in the library
  5727. - # dependencies.
  5728. - 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'
  5729. - ;;
  5730. - esac
  5731. - ;;
  5732. - lynxos*)
  5733. - # FIXME: insert proper C++ library support
  5734. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5735. - ;;
  5736. - m88k*)
  5737. - # FIXME: insert proper C++ library support
  5738. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5739. - ;;
  5740. - mvs*)
  5741. - case $cc_basename in
  5742. - cxx*)
  5743. - # FIXME: insert proper C++ library support
  5744. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5745. - ;;
  5746. - *)
  5747. - # FIXME: insert proper C++ library support
  5748. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5749. - ;;
  5750. - esac
  5751. - ;;
  5752. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  5753. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5754. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5755. - wlarc=
  5756. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5757. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5758. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5759. - fi
  5760. - # Workaround some broken pre-1.5 toolchains
  5761. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5762. - ;;
  5763. - openbsd2*)
  5764. - # C++ shared libraries are fairly broken
  5765. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5766. - ;;
  5767. - openbsd*)
  5768. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5769. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5770. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5771. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5772. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5773. - _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'
  5774. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5775. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5776. - fi
  5777. - output_verbose_link_cmd='echo'
  5778. - ;;
  5779. - osf3*)
  5780. - case $cc_basename in
  5781. - KCC*)
  5782. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5783. -
  5784. - # KCC will only create a shared library if the output file
  5785. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5786. - # to its proper name (with version) after linking.
  5787. - _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'
  5788. -
  5789. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5790. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5791. -
  5792. - # Archives containing C++ object files must be created using
  5793. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5794. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5795. -
  5796. - ;;
  5797. - RCC*)
  5798. - # Rational C++ 2.4.1
  5799. - # FIXME: insert proper C++ library support
  5800. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5801. - ;;
  5802. - cxx*)
  5803. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5804. - _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'
  5805. -
  5806. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5807. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5808. -
  5809. - # Commands to make compiler produce verbose output that lists
  5810. - # what "hidden" libraries, object files and flags are used when
  5811. - # linking a shared library.
  5812. - #
  5813. - # There doesn't appear to be a way to prevent this compiler from
  5814. - # explicitly linking system object files so we need to strip them
  5815. - # from the output so that they don't get included in the library
  5816. - # dependencies.
  5817. - 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'
  5818. - ;;
  5819. - *)
  5820. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5821. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5822. - _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'
  5823. -
  5824. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5825. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5826. -
  5827. - # Commands to make compiler produce verbose output that lists
  5828. - # what "hidden" libraries, object files and flags are used when
  5829. - # linking a shared library.
  5830. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5831. +# _LT_CHECK_MAGIC_METHOD
  5832. +# ----------------------
  5833. +# how to check for library dependencies
  5834. +# -- PORTME fill in with the dynamic library characteristics
  5835. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5836. +[m4_require([_LT_DECL_EGREP])
  5837. +m4_require([_LT_DECL_OBJDUMP])
  5838. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5839. +lt_cv_deplibs_check_method,
  5840. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5841. +lt_cv_file_magic_test_file=
  5842. +lt_cv_deplibs_check_method='unknown'
  5843. +# Need to set the preceding variable on all platforms that support
  5844. +# interlibrary dependencies.
  5845. +# 'none' -- dependencies not supported.
  5846. +# `unknown' -- same as none, but documents that we really don't know.
  5847. +# 'pass_all' -- all dependencies passed with no checks.
  5848. +# 'test_compile' -- check by making test program.
  5849. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5850. +# which responds to the $file_magic_cmd with a given extended regex.
  5851. +# If you have `file' or equivalent on your system and you're not sure
  5852. +# whether `pass_all' will *always* work, you probably want this one.
  5853. - else
  5854. - # FIXME: insert proper C++ library support
  5855. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5856. - fi
  5857. - ;;
  5858. - esac
  5859. - ;;
  5860. - osf4* | osf5*)
  5861. - case $cc_basename in
  5862. - KCC*)
  5863. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5864. -
  5865. - # KCC will only create a shared library if the output file
  5866. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5867. - # to its proper name (with version) after linking.
  5868. - _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'
  5869. -
  5870. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5871. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5872. -
  5873. - # Archives containing C++ object files must be created using
  5874. - # the KAI C++ compiler.
  5875. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5876. - ;;
  5877. - RCC*)
  5878. - # Rational C++ 2.4.1
  5879. - # FIXME: insert proper C++ library support
  5880. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5881. - ;;
  5882. - cxx*)
  5883. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5884. - _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'
  5885. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5886. - echo "-hidden">> $lib.exp~
  5887. - $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~
  5888. - $rm $lib.exp'
  5889. -
  5890. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5891. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5892. -
  5893. - # Commands to make compiler produce verbose output that lists
  5894. - # what "hidden" libraries, object files and flags are used when
  5895. - # linking a shared library.
  5896. - #
  5897. - # There doesn't appear to be a way to prevent this compiler from
  5898. - # explicitly linking system object files so we need to strip them
  5899. - # from the output so that they don't get included in the library
  5900. - # dependencies.
  5901. - 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'
  5902. - ;;
  5903. - *)
  5904. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5905. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5906. - _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'
  5907. -
  5908. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5909. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5910. -
  5911. - # Commands to make compiler produce verbose output that lists
  5912. - # what "hidden" libraries, object files and flags are used when
  5913. - # linking a shared library.
  5914. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5915. +case $host_os in
  5916. +aix[[4-9]]*)
  5917. + lt_cv_deplibs_check_method=pass_all
  5918. + ;;
  5919. - else
  5920. - # FIXME: insert proper C++ library support
  5921. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5922. - fi
  5923. - ;;
  5924. - esac
  5925. - ;;
  5926. - psos*)
  5927. - # FIXME: insert proper C++ library support
  5928. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5929. - ;;
  5930. - sunos4*)
  5931. - case $cc_basename in
  5932. - CC*)
  5933. - # Sun C++ 4.x
  5934. - # FIXME: insert proper C++ library support
  5935. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5936. - ;;
  5937. - lcc*)
  5938. - # Lucid
  5939. - # FIXME: insert proper C++ library support
  5940. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5941. - ;;
  5942. - *)
  5943. - # FIXME: insert proper C++ library support
  5944. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5945. - ;;
  5946. - esac
  5947. - ;;
  5948. - solaris*)
  5949. - case $cc_basename in
  5950. - CC*)
  5951. - # Sun C++ 4.2, 5.x and Centerline C++
  5952. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  5953. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5954. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5955. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5956. - $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'
  5957. -
  5958. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5959. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5960. - case $host_os in
  5961. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5962. - *)
  5963. - # The C++ compiler is used as linker so we must use $wl
  5964. - # flag to pass the commands to the underlying system
  5965. - # linker. We must also pass each convience library through
  5966. - # to the system linker between allextract/defaultextract.
  5967. - # The C++ compiler will combine linker options so we
  5968. - # cannot just pass the convience library names through
  5969. - # without $wl.
  5970. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5971. - _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'
  5972. - ;;
  5973. - esac
  5974. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5975. +beos*)
  5976. + lt_cv_deplibs_check_method=pass_all
  5977. + ;;
  5978. - output_verbose_link_cmd='echo'
  5979. +bsdi[[45]]*)
  5980. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5981. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5982. + lt_cv_file_magic_test_file=/shlib/libc.so
  5983. + ;;
  5984. - # Archives containing C++ object files must be created using
  5985. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5986. - # necessary to make sure instantiated templates are included
  5987. - # in the archive.
  5988. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5989. - ;;
  5990. - gcx*)
  5991. - # Green Hills C++ Compiler
  5992. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5993. +cygwin*)
  5994. + # func_win32_libid is a shell function defined in ltmain.sh
  5995. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5996. + lt_cv_file_magic_cmd='func_win32_libid'
  5997. + ;;
  5998. - # The C++ compiler must be used to create the archive.
  5999. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6000. - ;;
  6001. - *)
  6002. - # GNU C++ compiler with Solaris linker
  6003. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6004. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6005. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6006. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6007. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6008. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6009. +mingw* | pw32*)
  6010. + # Base MSYS/MinGW do not provide the 'file' command needed by
  6011. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6012. + # unless we find 'file', for example because we are cross-compiling.
  6013. + if ( file / ) >/dev/null 2>&1; then
  6014. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6015. + lt_cv_file_magic_cmd='func_win32_libid'
  6016. + else
  6017. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6018. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  6019. + fi
  6020. + ;;
  6021. - # Commands to make compiler produce verbose output that lists
  6022. - # what "hidden" libraries, object files and flags are used when
  6023. - # linking a shared library.
  6024. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6025. - else
  6026. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6027. - # platform.
  6028. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6029. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6030. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6031. +cegcc)
  6032. + # use the weaker test based on 'objdump'. See mingw*.
  6033. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6034. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  6035. + ;;
  6036. - # Commands to make compiler produce verbose output that lists
  6037. - # what "hidden" libraries, object files and flags are used when
  6038. - # linking a shared library.
  6039. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6040. - fi
  6041. +darwin* | rhapsody*)
  6042. + lt_cv_deplibs_check_method=pass_all
  6043. + ;;
  6044. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6045. - fi
  6046. - ;;
  6047. - esac
  6048. - ;;
  6049. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6050. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6051. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6052. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6053. - runpath_var='LD_RUN_PATH'
  6054. -
  6055. - case $cc_basename in
  6056. - CC*)
  6057. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6058. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6059. - ;;
  6060. - *)
  6061. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6062. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6063. - ;;
  6064. - esac
  6065. - ;;
  6066. - sysv5* | sco3.2v5* | sco5v6*)
  6067. - # Note: We can NOT use -z defs as we might desire, because we do not
  6068. - # link with -lc, and that would cause any symbols used from libc to
  6069. - # always be unresolved, which means just about no library would
  6070. - # ever link correctly. If we're not using GNU ld we use -z text
  6071. - # though, which does catch some bad symbols but isn't as heavy-handed
  6072. - # as -z defs.
  6073. - # For security reasons, it is highly recommended that you always
  6074. - # use absolute paths for naming shared libraries, and exclude the
  6075. - # DT_RUNPATH tag from executables and libraries. But doing so
  6076. - # requires that you compile everything twice, which is a pain.
  6077. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6078. - # non-empty value in the environment. Most likely only useful for
  6079. - # creating official distributions of packages.
  6080. - # This is a hack until libtool officially supports absolute path
  6081. - # names for shared libraries.
  6082. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6083. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6084. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6085. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6086. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6087. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6088. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6089. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6090. - runpath_var='LD_RUN_PATH'
  6091. -
  6092. - case $cc_basename in
  6093. - CC*)
  6094. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6095. - _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'
  6096. - ;;
  6097. - *)
  6098. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6099. - _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'
  6100. - ;;
  6101. - esac
  6102. - ;;
  6103. - tandem*)
  6104. - case $cc_basename in
  6105. - NCC*)
  6106. - # NonStop-UX NCC 3.20
  6107. - # FIXME: insert proper C++ library support
  6108. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6109. - ;;
  6110. - *)
  6111. - # FIXME: insert proper C++ library support
  6112. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6113. - ;;
  6114. +freebsd* | dragonfly*)
  6115. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6116. + case $host_cpu in
  6117. + i*86 )
  6118. + # Not sure whether the presence of OpenBSD here was a mistake.
  6119. + # Let's accept both of them until this is cleared up.
  6120. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  6121. + lt_cv_file_magic_cmd=/usr/bin/file
  6122. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6123. + ;;
  6124. esac
  6125. + else
  6126. + lt_cv_deplibs_check_method=pass_all
  6127. + fi
  6128. + ;;
  6129. +
  6130. +gnu*)
  6131. + lt_cv_deplibs_check_method=pass_all
  6132. + ;;
  6133. +
  6134. +hpux10.20* | hpux11*)
  6135. + lt_cv_file_magic_cmd=/usr/bin/file
  6136. + case $host_cpu in
  6137. + ia64*)
  6138. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  6139. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6140. ;;
  6141. - vxworks*)
  6142. - # FIXME: insert proper C++ library support
  6143. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6144. + hppa*64*)
  6145. + [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]']
  6146. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6147. ;;
  6148. *)
  6149. - # FIXME: insert proper C++ library support
  6150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6151. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  6152. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6153. ;;
  6154. -esac
  6155. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6156. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6157. -
  6158. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6159. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6160. -
  6161. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6162. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6163. -AC_LIBTOOL_PROG_CC_C_O($1)
  6164. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6165. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6166. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6167. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6168. -
  6169. -AC_LIBTOOL_CONFIG($1)
  6170. + esac
  6171. + ;;
  6172. -AC_LANG_POP
  6173. -CC=$lt_save_CC
  6174. -LDCXX=$LD
  6175. -LD=$lt_save_LD
  6176. -GCC=$lt_save_GCC
  6177. -with_gnu_ldcxx=$with_gnu_ld
  6178. -with_gnu_ld=$lt_save_with_gnu_ld
  6179. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6180. -lt_cv_path_LD=$lt_save_path_LD
  6181. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6182. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6183. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6184. +interix[[3-9]]*)
  6185. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6186. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  6187. + ;;
  6188. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6189. -# ------------------------------------
  6190. -# Figure out "hidden" library dependencies from verbose
  6191. -# compiler output when linking a shared library.
  6192. -# Parse the compiler output and extract the necessary
  6193. -# objects, libraries and library flags.
  6194. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6195. -dnl we can't use the lt_simple_compile_test_code here,
  6196. -dnl because it contains code intended for an executable,
  6197. -dnl not a library. It's possible we should let each
  6198. -dnl tag define a new lt_????_link_test_code variable,
  6199. -dnl but it's only used here...
  6200. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6201. -int a;
  6202. -void foo (void) { a = 0; }
  6203. -EOF
  6204. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6205. -class Foo
  6206. -{
  6207. -public:
  6208. - Foo (void) { a = 0; }
  6209. -private:
  6210. - int a;
  6211. -};
  6212. -EOF
  6213. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6214. - subroutine foo
  6215. - implicit none
  6216. - integer*4 a
  6217. - a=0
  6218. - return
  6219. - end
  6220. -EOF
  6221. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6222. -public class foo {
  6223. - private int a;
  6224. - public void bar (void) {
  6225. - a = 0;
  6226. - }
  6227. -};
  6228. -EOF
  6229. -])
  6230. -dnl Parse the compiler output and extract the necessary
  6231. -dnl objects, libraries and library flags.
  6232. -if AC_TRY_EVAL(ac_compile); then
  6233. - # Parse the compiler output and extract the necessary
  6234. - # objects, libraries and library flags.
  6235. -
  6236. - # Sentinel used to keep track of whether or not we are before
  6237. - # the conftest object file.
  6238. - pre_test_object_deps_done=no
  6239. -
  6240. - # The `*' in the case matches for architectures that use `case' in
  6241. - # $output_verbose_cmd can trigger glob expansion during the loop
  6242. - # eval without this substitution.
  6243. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6244. -
  6245. - for p in `eval $output_verbose_link_cmd`; do
  6246. - case $p in
  6247. +irix5* | irix6* | nonstopux*)
  6248. + case $LD in
  6249. + *-32|*"-32 ") libmagic=32-bit;;
  6250. + *-n32|*"-n32 ") libmagic=N32;;
  6251. + *-64|*"-64 ") libmagic=64-bit;;
  6252. + *) libmagic=never-match;;
  6253. + esac
  6254. + lt_cv_deplibs_check_method=pass_all
  6255. + ;;
  6256. - -L* | -R* | -l*)
  6257. - # Some compilers place space between "-{L,R}" and the path.
  6258. - # Remove the space.
  6259. - if test $p = "-L" \
  6260. - || test $p = "-R"; then
  6261. - prev=$p
  6262. - continue
  6263. - else
  6264. - prev=
  6265. - fi
  6266. +# This must be Linux ELF.
  6267. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6268. + lt_cv_deplibs_check_method=pass_all
  6269. + ;;
  6270. - if test "$pre_test_object_deps_done" = no; then
  6271. - case $p in
  6272. - -L* | -R*)
  6273. - # Internal compiler library paths should come after those
  6274. - # provided the user. The postdeps already come after the
  6275. - # user supplied libs so there is no need to process them.
  6276. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6277. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6278. - else
  6279. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6280. - fi
  6281. - ;;
  6282. - # The "-l" case would never come before the object being
  6283. - # linked, so don't bother handling this case.
  6284. - esac
  6285. - else
  6286. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6287. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6288. - else
  6289. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6290. - fi
  6291. - fi
  6292. - ;;
  6293. +netbsd* | netbsdelf*-gnu)
  6294. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6295. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6296. + else
  6297. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  6298. + fi
  6299. + ;;
  6300. - *.$objext)
  6301. - # This assumes that the test object file only shows up
  6302. - # once in the compiler output.
  6303. - if test "$p" = "conftest.$objext"; then
  6304. - pre_test_object_deps_done=yes
  6305. - continue
  6306. - fi
  6307. +newos6*)
  6308. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6309. + lt_cv_file_magic_cmd=/usr/bin/file
  6310. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6311. + ;;
  6312. - if test "$pre_test_object_deps_done" = no; then
  6313. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6314. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6315. - else
  6316. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6317. - fi
  6318. - else
  6319. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6320. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6321. - else
  6322. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6323. - fi
  6324. - fi
  6325. - ;;
  6326. +*nto* | *qnx*)
  6327. + lt_cv_deplibs_check_method=pass_all
  6328. + ;;
  6329. - *) ;; # Ignore the rest.
  6330. +openbsd*)
  6331. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6332. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6333. + else
  6334. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6335. + fi
  6336. + ;;
  6337. - esac
  6338. - done
  6339. +osf3* | osf4* | osf5*)
  6340. + lt_cv_deplibs_check_method=pass_all
  6341. + ;;
  6342. - # Clean up.
  6343. - rm -f a.out a.exe
  6344. -else
  6345. - echo "libtool.m4: error: problem compiling $1 test program"
  6346. -fi
  6347. +rdos*)
  6348. + lt_cv_deplibs_check_method=pass_all
  6349. + ;;
  6350. -$rm -f confest.$objext
  6351. +solaris*)
  6352. + lt_cv_deplibs_check_method=pass_all
  6353. + ;;
  6354. -# PORTME: override above test on systems where it is broken
  6355. -ifelse([$1],[CXX],
  6356. -[case $host_os in
  6357. -interix3*)
  6358. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6359. - # hack all around it, let's just trust "g++" to DTRT.
  6360. - _LT_AC_TAGVAR(predep_objects,$1)=
  6361. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6362. - _LT_AC_TAGVAR(postdeps,$1)=
  6363. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6364. + lt_cv_deplibs_check_method=pass_all
  6365. ;;
  6366. -solaris*)
  6367. - case $cc_basename in
  6368. - CC*)
  6369. - # Adding this requires a known-good setup of shared libraries for
  6370. - # Sun compiler versions before 5.6, else PIC objects from an old
  6371. - # archive will be linked into the output, leading to subtle bugs.
  6372. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  6373. +sysv4 | sysv4.3*)
  6374. + case $host_vendor in
  6375. + motorola)
  6376. + 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]]'
  6377. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6378. + ;;
  6379. + ncr)
  6380. + lt_cv_deplibs_check_method=pass_all
  6381. + ;;
  6382. + sequent)
  6383. + lt_cv_file_magic_cmd='/bin/file'
  6384. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6385. + ;;
  6386. + sni)
  6387. + lt_cv_file_magic_cmd='/bin/file'
  6388. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6389. + lt_cv_file_magic_test_file=/lib/libc.so
  6390. + ;;
  6391. + siemens)
  6392. + lt_cv_deplibs_check_method=pass_all
  6393. + ;;
  6394. + pc)
  6395. + lt_cv_deplibs_check_method=pass_all
  6396. ;;
  6397. esac
  6398. ;;
  6399. +
  6400. +tpf*)
  6401. + lt_cv_deplibs_check_method=pass_all
  6402. + ;;
  6403. esac
  6404. ])
  6405. +file_magic_cmd=$lt_cv_file_magic_cmd
  6406. +deplibs_check_method=$lt_cv_deplibs_check_method
  6407. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6408. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6409. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6410. -esac
  6411. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6412. +_LT_DECL([], [deplibs_check_method], [1],
  6413. + [Method to check whether dependent libraries are shared objects])
  6414. +_LT_DECL([], [file_magic_cmd], [1],
  6415. + [Command to use when deplibs_check_method == "file_magic"])
  6416. +])# _LT_CHECK_MAGIC_METHOD
  6417. -# AC_LIBTOOL_LANG_F77_CONFIG
  6418. -# --------------------------
  6419. -# Ensure that the configuration vars for the C compiler are
  6420. -# suitably defined. Those variables are subsequently used by
  6421. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6422. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6423. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6424. -[AC_REQUIRE([AC_PROG_F77])
  6425. -AC_LANG_PUSH(Fortran 77)
  6426. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6427. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6428. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6429. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6430. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6431. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6432. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6433. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6434. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6435. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6436. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6437. -_LT_AC_TAGVAR(module_cmds, $1)=
  6438. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6439. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6440. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6441. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6442. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6443. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6444. +# LT_PATH_NM
  6445. +# ----------
  6446. +# find the pathname to a BSD- or MS-compatible name lister
  6447. +AC_DEFUN([LT_PATH_NM],
  6448. +[AC_REQUIRE([AC_PROG_CC])dnl
  6449. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6450. +[if test -n "$NM"; then
  6451. + # Let the user override the test.
  6452. + lt_cv_path_NM="$NM"
  6453. +else
  6454. + lt_nm_to_check="${ac_tool_prefix}nm"
  6455. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6456. + lt_nm_to_check="$lt_nm_to_check nm"
  6457. + fi
  6458. + for lt_tmp_nm in $lt_nm_to_check; do
  6459. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6460. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6461. + IFS="$lt_save_ifs"
  6462. + test -z "$ac_dir" && ac_dir=.
  6463. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6464. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6465. + # Check to see if the nm accepts a BSD-compat flag.
  6466. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6467. + # nm: unknown option "B" ignored
  6468. + # Tru64's nm complains that /dev/null is an invalid object file
  6469. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6470. + */dev/null* | *'Invalid file or object type'*)
  6471. + lt_cv_path_NM="$tmp_nm -B"
  6472. + break
  6473. + ;;
  6474. + *)
  6475. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6476. + */dev/null*)
  6477. + lt_cv_path_NM="$tmp_nm -p"
  6478. + break
  6479. + ;;
  6480. + *)
  6481. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6482. + continue # so that we can try to find one that supports BSD flags
  6483. + ;;
  6484. + esac
  6485. + ;;
  6486. + esac
  6487. + fi
  6488. + done
  6489. + IFS="$lt_save_ifs"
  6490. + done
  6491. + : ${lt_cv_path_NM=no}
  6492. +fi])
  6493. +if test "$lt_cv_path_NM" != "no"; then
  6494. + NM="$lt_cv_path_NM"
  6495. +else
  6496. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6497. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6498. + AC_SUBST([DUMPBIN])
  6499. + if test "$DUMPBIN" != ":"; then
  6500. + NM="$DUMPBIN"
  6501. + fi
  6502. +fi
  6503. +test -z "$NM" && NM=nm
  6504. +AC_SUBST([NM])
  6505. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6506. -# Source file extension for f77 test sources.
  6507. -ac_ext=f
  6508. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6509. + [lt_cv_nm_interface="BSD nm"
  6510. + echo "int some_variable = 0;" > conftest.$ac_ext
  6511. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6512. + (eval "$ac_compile" 2>conftest.err)
  6513. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6514. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6515. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6516. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6517. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6518. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6519. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6520. + lt_cv_nm_interface="MS dumpbin"
  6521. + fi
  6522. + rm -f conftest*])
  6523. +])# LT_PATH_NM
  6524. +
  6525. +# Old names:
  6526. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6527. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6528. +dnl aclocal-1.4 backwards compatibility:
  6529. +dnl AC_DEFUN([AM_PROG_NM], [])
  6530. +dnl AC_DEFUN([AC_PROG_NM], [])
  6531. -# Object file extension for compiled f77 test sources.
  6532. -objext=o
  6533. -_LT_AC_TAGVAR(objext, $1)=$objext
  6534. -# Code to be used in simple compile tests
  6535. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6536. +# LT_LIB_M
  6537. +# --------
  6538. +# check for math library
  6539. +AC_DEFUN([LT_LIB_M],
  6540. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6541. +LIBM=
  6542. +case $host in
  6543. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6544. + # These system don't have libm, or don't need it
  6545. + ;;
  6546. +*-ncr-sysv4.3*)
  6547. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6548. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6549. + ;;
  6550. +*)
  6551. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6552. + ;;
  6553. +esac
  6554. +AC_SUBST([LIBM])
  6555. +])# LT_LIB_M
  6556. -# Code to be used in simple link tests
  6557. -lt_simple_link_test_code=" program t\n end\n"
  6558. +# Old name:
  6559. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6560. +dnl aclocal-1.4 backwards compatibility:
  6561. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6562. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6563. -_LT_AC_SYS_COMPILER
  6564. -# save warnings/boilerplate of simple test code
  6565. -_LT_COMPILER_BOILERPLATE
  6566. -_LT_LINKER_BOILERPLATE
  6567. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6568. +# -------------------------------
  6569. +m4_defun([_LT_COMPILER_NO_RTTI],
  6570. +[m4_require([_LT_TAG_COMPILER])dnl
  6571. -# Allow CC to be a program name with arguments.
  6572. -lt_save_CC="$CC"
  6573. -CC=${F77-"f77"}
  6574. -compiler=$CC
  6575. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6576. -_LT_CC_BASENAME([$compiler])
  6577. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6578. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6579. -AC_MSG_RESULT([$can_build_shared])
  6580. +if test "$GCC" = yes; then
  6581. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6582. -AC_MSG_CHECKING([whether to build shared libraries])
  6583. -test "$can_build_shared" = "no" && enable_shared=no
  6584. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6585. + lt_cv_prog_compiler_rtti_exceptions,
  6586. + [-fno-rtti -fno-exceptions], [],
  6587. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6588. +fi
  6589. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6590. + [Compiler flag to turn off builtin functions])
  6591. +])# _LT_COMPILER_NO_RTTI
  6592. -# On AIX, shared libraries and static libraries use the same namespace, and
  6593. -# are all built from PIC.
  6594. -case $host_os in
  6595. -aix3*)
  6596. - test "$enable_shared" = yes && enable_static=no
  6597. - if test -n "$RANLIB"; then
  6598. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6599. - postinstall_cmds='$RANLIB $lib'
  6600. - fi
  6601. - ;;
  6602. -aix4* | aix5*)
  6603. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6604. - test "$enable_shared" = yes && enable_static=no
  6605. - fi
  6606. - ;;
  6607. -esac
  6608. -AC_MSG_RESULT([$enable_shared])
  6609. -
  6610. -AC_MSG_CHECKING([whether to build static libraries])
  6611. -# Make sure either enable_shared or enable_static is yes.
  6612. -test "$enable_shared" = yes || enable_static=yes
  6613. -AC_MSG_RESULT([$enable_static])
  6614. -
  6615. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6616. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6617. -
  6618. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6619. -AC_LIBTOOL_PROG_CC_C_O($1)
  6620. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6621. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6622. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6623. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6624. -AC_LIBTOOL_CONFIG($1)
  6625. +# _LT_CMD_GLOBAL_SYMBOLS
  6626. +# ----------------------
  6627. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6628. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6629. +AC_REQUIRE([AC_PROG_CC])dnl
  6630. +AC_REQUIRE([LT_PATH_NM])dnl
  6631. +AC_REQUIRE([LT_PATH_LD])dnl
  6632. +m4_require([_LT_DECL_SED])dnl
  6633. +m4_require([_LT_DECL_EGREP])dnl
  6634. +m4_require([_LT_TAG_COMPILER])dnl
  6635. -AC_LANG_POP
  6636. -CC="$lt_save_CC"
  6637. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6638. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6639. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6640. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6641. +[
  6642. +# These are sane defaults that work on at least a few old systems.
  6643. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6644. +# Character class describing NM global symbol codes.
  6645. +symcode='[[BCDEGRST]]'
  6646. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6647. -# --------------------------
  6648. -# Ensure that the configuration vars for the C compiler are
  6649. -# suitably defined. Those variables are subsequently used by
  6650. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6651. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6652. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6653. -[AC_LANG_SAVE
  6654. +# Regexp to match symbols that can be accessed directly from C.
  6655. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6656. -# Source file extension for Java test sources.
  6657. -ac_ext=java
  6658. +# Define system-specific variables.
  6659. +case $host_os in
  6660. +aix*)
  6661. + symcode='[[BCDT]]'
  6662. + ;;
  6663. +cygwin* | mingw* | pw32* | cegcc*)
  6664. + symcode='[[ABCDGISTW]]'
  6665. + ;;
  6666. +hpux*)
  6667. + if test "$host_cpu" = ia64; then
  6668. + symcode='[[ABCDEGRST]]'
  6669. + fi
  6670. + ;;
  6671. +irix* | nonstopux*)
  6672. + symcode='[[BCDEGRST]]'
  6673. + ;;
  6674. +osf*)
  6675. + symcode='[[BCDEGQRST]]'
  6676. + ;;
  6677. +solaris*)
  6678. + symcode='[[BDRT]]'
  6679. + ;;
  6680. +sco3.2v5*)
  6681. + symcode='[[DT]]'
  6682. + ;;
  6683. +sysv4.2uw2*)
  6684. + symcode='[[DT]]'
  6685. + ;;
  6686. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6687. + symcode='[[ABDT]]'
  6688. + ;;
  6689. +sysv4)
  6690. + symcode='[[DFNSTU]]'
  6691. + ;;
  6692. +esac
  6693. -# Object file extension for compiled Java test sources.
  6694. -objext=o
  6695. -_LT_AC_TAGVAR(objext, $1)=$objext
  6696. +# If we're using GNU nm, then use its standard symbol codes.
  6697. +case `$NM -V 2>&1` in
  6698. +*GNU* | *'with BFD'*)
  6699. + symcode='[[ABCDGIRSTW]]' ;;
  6700. +esac
  6701. -# Code to be used in simple compile tests
  6702. -lt_simple_compile_test_code="class foo {}\n"
  6703. +# Transform an extracted symbol line into a proper C declaration.
  6704. +# Some systems (esp. on ia64) link data and code symbols differently,
  6705. +# so use this general approach.
  6706. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6707. -# Code to be used in simple link tests
  6708. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6709. +# Transform an extracted symbol line into symbol name and symbol address
  6710. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6711. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6712. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6713. -_LT_AC_SYS_COMPILER
  6714. +# Handle CRLF in mingw tool chain
  6715. +opt_cr=
  6716. +case $build_os in
  6717. +mingw*)
  6718. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6719. + ;;
  6720. +esac
  6721. -# save warnings/boilerplate of simple test code
  6722. -_LT_COMPILER_BOILERPLATE
  6723. -_LT_LINKER_BOILERPLATE
  6724. +# Try without a prefix underscore, then with it.
  6725. +for ac_symprfx in "" "_"; do
  6726. -# Allow CC to be a program name with arguments.
  6727. -lt_save_CC="$CC"
  6728. -CC=${GCJ-"gcj"}
  6729. -compiler=$CC
  6730. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6731. -_LT_CC_BASENAME([$compiler])
  6732. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6733. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6734. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6735. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6736. + # Write the raw and C identifiers.
  6737. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6738. + # Fake it for dumpbin and say T for any non-static function
  6739. + # and D for any global variable.
  6740. + # Also find C++ and __fastcall symbols from MSVC++,
  6741. + # which start with @ or ?.
  6742. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6743. +" {last_section=section; section=\$ 3};"\
  6744. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6745. +" \$ 0!~/External *\|/{next};"\
  6746. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6747. +" {if(hide[section]) next};"\
  6748. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6749. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6750. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6751. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6752. +" ' prfx=^$ac_symprfx]"
  6753. + else
  6754. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6755. + fi
  6756. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6757. + # Check to see that the pipe works correctly.
  6758. + pipe_works=no
  6759. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6760. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6761. -AC_LIBTOOL_PROG_CC_C_O($1)
  6762. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6763. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6764. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6765. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6766. + rm -f conftest*
  6767. + cat > conftest.$ac_ext <<_LT_EOF
  6768. +#ifdef __cplusplus
  6769. +extern "C" {
  6770. +#endif
  6771. +char nm_test_var;
  6772. +void nm_test_func(void);
  6773. +void nm_test_func(void){}
  6774. +#ifdef __cplusplus
  6775. +}
  6776. +#endif
  6777. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6778. +_LT_EOF
  6779. -AC_LIBTOOL_CONFIG($1)
  6780. + if AC_TRY_EVAL(ac_compile); then
  6781. + # Now try to grab the symbols.
  6782. + nlist=conftest.nm
  6783. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6784. + # Try sorting and uniquifying the output.
  6785. + if sort "$nlist" | uniq > "$nlist"T; then
  6786. + mv -f "$nlist"T "$nlist"
  6787. + else
  6788. + rm -f "$nlist"T
  6789. + fi
  6790. -AC_LANG_RESTORE
  6791. -CC="$lt_save_CC"
  6792. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6793. + # Make sure that we snagged all the symbols we need.
  6794. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6795. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6796. + cat <<_LT_EOF > conftest.$ac_ext
  6797. +#ifdef __cplusplus
  6798. +extern "C" {
  6799. +#endif
  6800. +_LT_EOF
  6801. + # Now generate the symbol file.
  6802. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6803. -# AC_LIBTOOL_LANG_RC_CONFIG
  6804. -# -------------------------
  6805. -# Ensure that the configuration vars for the Windows resource compiler are
  6806. -# suitably defined. Those variables are subsequently used by
  6807. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6808. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6809. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6810. -[AC_LANG_SAVE
  6811. + cat <<_LT_EOF >> conftest.$ac_ext
  6812. -# Source file extension for RC test sources.
  6813. -ac_ext=rc
  6814. +/* The mapping between symbol names and symbols. */
  6815. +const struct {
  6816. + const char *name;
  6817. + void *address;
  6818. +}
  6819. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6820. +{
  6821. + { "@PROGRAM@", (void *) 0 },
  6822. +_LT_EOF
  6823. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6824. + cat <<\_LT_EOF >> conftest.$ac_ext
  6825. + {0, (void *) 0}
  6826. +};
  6827. -# Object file extension for compiled RC test sources.
  6828. -objext=o
  6829. -_LT_AC_TAGVAR(objext, $1)=$objext
  6830. +/* This works around a problem in FreeBSD linker */
  6831. +#ifdef FREEBSD_WORKAROUND
  6832. +static const void *lt_preloaded_setup() {
  6833. + return lt__PROGRAM__LTX_preloaded_symbols;
  6834. +}
  6835. +#endif
  6836. -# Code to be used in simple compile tests
  6837. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6838. +#ifdef __cplusplus
  6839. +}
  6840. +#endif
  6841. +_LT_EOF
  6842. + # Now try linking the two files.
  6843. + mv conftest.$ac_objext conftstm.$ac_objext
  6844. + lt_save_LIBS="$LIBS"
  6845. + lt_save_CFLAGS="$CFLAGS"
  6846. + LIBS="conftstm.$ac_objext"
  6847. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6848. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6849. + pipe_works=yes
  6850. + fi
  6851. + LIBS="$lt_save_LIBS"
  6852. + CFLAGS="$lt_save_CFLAGS"
  6853. + else
  6854. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6855. + fi
  6856. + else
  6857. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6858. + fi
  6859. + else
  6860. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6861. + fi
  6862. + else
  6863. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6864. + cat conftest.$ac_ext >&5
  6865. + fi
  6866. + rm -rf conftest* conftst*
  6867. -# Code to be used in simple link tests
  6868. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6869. + # Do not use the global_symbol_pipe unless it works.
  6870. + if test "$pipe_works" = yes; then
  6871. + break
  6872. + else
  6873. + lt_cv_sys_global_symbol_pipe=
  6874. + fi
  6875. +done
  6876. +])
  6877. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6878. + lt_cv_sys_global_symbol_to_cdecl=
  6879. +fi
  6880. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6881. + AC_MSG_RESULT(failed)
  6882. +else
  6883. + AC_MSG_RESULT(ok)
  6884. +fi
  6885. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6886. -_LT_AC_SYS_COMPILER
  6887. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6888. + [Take the output of nm and produce a listing of raw symbols and C names])
  6889. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6890. + [Transform the output of nm in a proper C declaration])
  6891. +_LT_DECL([global_symbol_to_c_name_address],
  6892. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6893. + [Transform the output of nm in a C name address pair])
  6894. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6895. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6896. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6897. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6898. -# save warnings/boilerplate of simple test code
  6899. -_LT_COMPILER_BOILERPLATE
  6900. -_LT_LINKER_BOILERPLATE
  6901. -# Allow CC to be a program name with arguments.
  6902. -lt_save_CC="$CC"
  6903. -CC=${RC-"windres"}
  6904. -compiler=$CC
  6905. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6906. -_LT_CC_BASENAME([$compiler])
  6907. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6908. +# _LT_COMPILER_PIC([TAGNAME])
  6909. +# ---------------------------
  6910. +m4_defun([_LT_COMPILER_PIC],
  6911. +[m4_require([_LT_TAG_COMPILER])dnl
  6912. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6913. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6914. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6915. -AC_LIBTOOL_CONFIG($1)
  6916. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6917. +m4_if([$1], [CXX], [
  6918. + # C++ specific cases for pic, static, wl, etc.
  6919. + if test "$GXX" = yes; then
  6920. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6921. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6922. -AC_LANG_RESTORE
  6923. -CC="$lt_save_CC"
  6924. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6925. + case $host_os in
  6926. + aix*)
  6927. + # All AIX code is PIC.
  6928. + if test "$host_cpu" = ia64; then
  6929. + # AIX 5 now supports IA64 processor
  6930. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6931. + fi
  6932. + ;;
  6933. + amigaos*)
  6934. + case $host_cpu in
  6935. + powerpc)
  6936. + # see comment about AmigaOS4 .so support
  6937. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6938. + ;;
  6939. + m68k)
  6940. + # FIXME: we need at least 68020 code to build shared libraries, but
  6941. + # adding the `-m68020' flag to GCC prevents building anything better,
  6942. + # like `-m68040'.
  6943. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6944. + ;;
  6945. + esac
  6946. + ;;
  6947. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6948. -# ----------------------------
  6949. -# If TAGNAME is not passed, then create an initial libtool script
  6950. -# with a default configuration from the untagged config vars. Otherwise
  6951. -# add code to config.status for appending the configuration named by
  6952. -# TAGNAME from the matching tagged config vars.
  6953. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6954. -[# The else clause should only fire when bootstrapping the
  6955. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6956. -# with your package, and you will get complaints that there are
  6957. -# no rules to generate ltmain.sh.
  6958. -if test -f "$ltmain"; then
  6959. - # See if we are running on zsh, and set the options which allow our commands through
  6960. - # without removal of \ escapes.
  6961. - if test -n "${ZSH_VERSION+set}" ; then
  6962. - setopt NO_GLOB_SUBST
  6963. - fi
  6964. - # Now quote all the things that may contain metacharacters while being
  6965. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6966. - # variables and quote the copies for generation of the libtool script.
  6967. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  6968. - SED SHELL STRIP \
  6969. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6970. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6971. - deplibs_check_method reload_flag reload_cmds need_locks \
  6972. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6973. - lt_cv_sys_global_symbol_to_c_name_address \
  6974. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6975. - old_postinstall_cmds old_postuninstall_cmds \
  6976. - _LT_AC_TAGVAR(compiler, $1) \
  6977. - _LT_AC_TAGVAR(CC, $1) \
  6978. - _LT_AC_TAGVAR(LD, $1) \
  6979. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6980. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6981. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6982. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6983. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6984. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6985. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6986. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6987. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6988. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6989. - _LT_AC_TAGVAR(predep_objects, $1) \
  6990. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6991. - _LT_AC_TAGVAR(predeps, $1) \
  6992. - _LT_AC_TAGVAR(postdeps, $1) \
  6993. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6994. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6995. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6996. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6997. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6998. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6999. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  7000. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  7001. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7002. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7003. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7004. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7005. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7006. - _LT_AC_TAGVAR(module_cmds, $1) \
  7007. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7008. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7009. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7010. - _LT_AC_TAGVAR(include_expsyms, $1); do
  7011. -
  7012. - case $var in
  7013. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7014. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7015. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  7016. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7017. - _LT_AC_TAGVAR(module_cmds, $1) | \
  7018. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7019. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7020. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7021. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7022. - postinstall_cmds | postuninstall_cmds | \
  7023. - old_postinstall_cmds | old_postuninstall_cmds | \
  7024. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7025. - # Double-quote double-evaled strings.
  7026. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7027. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7028. + # PIC is the default for these OSes.
  7029. + ;;
  7030. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7031. + # This hack is so that the source file can tell whether it is being
  7032. + # built for inclusion in a dll (and should export symbols for example).
  7033. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7034. + # (--disable-auto-import) libraries
  7035. + m4_if([$1], [GCJ], [],
  7036. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7037. + ;;
  7038. + darwin* | rhapsody*)
  7039. + # PIC is the default on this platform
  7040. + # Common symbols not allowed in MH_DYLIB files
  7041. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7042. + ;;
  7043. + *djgpp*)
  7044. + # DJGPP does not support shared libraries at all
  7045. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7046. + ;;
  7047. + interix[[3-9]]*)
  7048. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7049. + # Instead, we relocate shared libraries at runtime.
  7050. + ;;
  7051. + sysv4*MP*)
  7052. + if test -d /usr/nec; then
  7053. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7054. + fi
  7055. + ;;
  7056. + hpux*)
  7057. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7058. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7059. + # sets the default TLS model and affects inlining.
  7060. + case $host_cpu in
  7061. + hppa*64*)
  7062. + ;;
  7063. + *)
  7064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7065. + ;;
  7066. + esac
  7067. + ;;
  7068. + *qnx* | *nto*)
  7069. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7070. + # it will coredump.
  7071. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7072. ;;
  7073. *)
  7074. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7075. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7076. ;;
  7077. esac
  7078. - done
  7079. -
  7080. - case $lt_echo in
  7081. - *'\[$]0 --fallback-echo"')
  7082. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7083. - ;;
  7084. - esac
  7085. -
  7086. -ifelse([$1], [],
  7087. - [cfgfile="${ofile}T"
  7088. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7089. - $rm -f "$cfgfile"
  7090. - AC_MSG_NOTICE([creating $ofile])],
  7091. - [cfgfile="$ofile"])
  7092. -
  7093. - cat <<__EOF__ >> "$cfgfile"
  7094. -ifelse([$1], [],
  7095. -[#! $SHELL
  7096. -
  7097. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7098. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7099. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7100. -#
  7101. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7102. -# Free Software Foundation, Inc.
  7103. -#
  7104. -# This file is part of GNU Libtool:
  7105. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7106. -#
  7107. -# This program is free software; you can redistribute it and/or modify
  7108. -# it under the terms of the GNU General Public License as published by
  7109. -# the Free Software Foundation; either version 2 of the License, or
  7110. -# (at your option) any later version.
  7111. -#
  7112. -# This program is distributed in the hope that it will be useful, but
  7113. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7114. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7115. -# General Public License for more details.
  7116. -#
  7117. -# You should have received a copy of the GNU General Public License
  7118. -# along with this program; if not, write to the Free Software
  7119. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7120. -#
  7121. -# As a special exception to the GNU General Public License, if you
  7122. -# distribute this file as part of a program that contains a
  7123. -# configuration script generated by Autoconf, you may include it under
  7124. -# the same distribution terms that you use for the rest of that program.
  7125. -
  7126. -# A sed program that does not truncate output.
  7127. -SED=$lt_SED
  7128. -
  7129. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7130. -Xsed="$SED -e 1s/^X//"
  7131. -
  7132. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7133. -# if CDPATH is set.
  7134. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7135. -
  7136. -# The names of the tagged configurations supported by this script.
  7137. -available_tags=
  7138. -
  7139. -# ### BEGIN LIBTOOL CONFIG],
  7140. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7141. -
  7142. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7143. -
  7144. -# Shell to use when invoking shell scripts.
  7145. -SHELL=$lt_SHELL
  7146. -
  7147. -# Whether or not to build shared libraries.
  7148. -build_libtool_libs=$enable_shared
  7149. -
  7150. -# Whether or not to build static libraries.
  7151. -build_old_libs=$enable_static
  7152. -
  7153. -# Whether or not to add -lc for building shared libraries.
  7154. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7155. -
  7156. -# Whether or not to disallow shared libs when runtime libs are static
  7157. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7158. -
  7159. -# Whether or not to optimize for fast installation.
  7160. -fast_install=$enable_fast_install
  7161. -
  7162. -# The host system.
  7163. -host_alias=$host_alias
  7164. -host=$host
  7165. -host_os=$host_os
  7166. + else
  7167. + case $host_os in
  7168. + aix[[4-9]]*)
  7169. + # All AIX code is PIC.
  7170. + if test "$host_cpu" = ia64; then
  7171. + # AIX 5 now supports IA64 processor
  7172. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7173. + else
  7174. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7175. + fi
  7176. + ;;
  7177. + chorus*)
  7178. + case $cc_basename in
  7179. + cxch68*)
  7180. + # Green Hills C++ Compiler
  7181. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  7182. + ;;
  7183. + esac
  7184. + ;;
  7185. + dgux*)
  7186. + case $cc_basename in
  7187. + ec++*)
  7188. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7189. + ;;
  7190. + ghcx*)
  7191. + # Green Hills C++ Compiler
  7192. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7193. + ;;
  7194. + *)
  7195. + ;;
  7196. + esac
  7197. + ;;
  7198. + freebsd* | dragonfly*)
  7199. + # FreeBSD uses GNU C++
  7200. + ;;
  7201. + hpux9* | hpux10* | hpux11*)
  7202. + case $cc_basename in
  7203. + CC*)
  7204. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7205. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7206. + if test "$host_cpu" != ia64; then
  7207. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7208. + fi
  7209. + ;;
  7210. + aCC*)
  7211. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7212. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7213. + case $host_cpu in
  7214. + hppa*64*|ia64*)
  7215. + # +Z the default
  7216. + ;;
  7217. + *)
  7218. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7219. + ;;
  7220. + esac
  7221. + ;;
  7222. + *)
  7223. + ;;
  7224. + esac
  7225. + ;;
  7226. + interix*)
  7227. + # This is c89, which is MS Visual C++ (no shared libs)
  7228. + # Anyone wants to do a port?
  7229. + ;;
  7230. + irix5* | irix6* | nonstopux*)
  7231. + case $cc_basename in
  7232. + CC*)
  7233. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7234. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7235. + # CC pic flag -KPIC is the default.
  7236. + ;;
  7237. + *)
  7238. + ;;
  7239. + esac
  7240. + ;;
  7241. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7242. + case $cc_basename in
  7243. + KCC*)
  7244. + # KAI C++ Compiler
  7245. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7246. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7247. + ;;
  7248. + ecpc* )
  7249. + # old Intel C++ for x86_64 which still supported -KPIC.
  7250. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7251. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7252. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7253. + ;;
  7254. + icpc* )
  7255. + # Intel C++, used to be incompatible with GCC.
  7256. + # ICC 10 doesn't accept -KPIC any more.
  7257. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7258. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7259. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7260. + ;;
  7261. + pgCC* | pgcpp*)
  7262. + # Portland Group C++ compiler
  7263. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7265. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7266. + ;;
  7267. + cxx*)
  7268. + # Compaq C++
  7269. + # Make sure the PIC flag is empty. It appears that all Alpha
  7270. + # Linux and Compaq Tru64 Unix objects are PIC.
  7271. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7272. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7273. + ;;
  7274. + xlc* | xlC*)
  7275. + # IBM XL 8.0 on PPC
  7276. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7277. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7278. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7279. + ;;
  7280. + *)
  7281. + case `$CC -V 2>&1 | sed 5q` in
  7282. + *Sun\ C*)
  7283. + # Sun C++ 5.9
  7284. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7285. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7286. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7287. + ;;
  7288. + esac
  7289. + ;;
  7290. + esac
  7291. + ;;
  7292. + lynxos*)
  7293. + ;;
  7294. + m88k*)
  7295. + ;;
  7296. + mvs*)
  7297. + case $cc_basename in
  7298. + cxx*)
  7299. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7300. + ;;
  7301. + *)
  7302. + ;;
  7303. + esac
  7304. + ;;
  7305. + netbsd* | netbsdelf*-gnu)
  7306. + ;;
  7307. + *qnx* | *nto*)
  7308. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7309. + # it will coredump.
  7310. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7311. + ;;
  7312. + osf3* | osf4* | osf5*)
  7313. + case $cc_basename in
  7314. + KCC*)
  7315. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7316. + ;;
  7317. + RCC*)
  7318. + # Rational C++ 2.4.1
  7319. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7320. + ;;
  7321. + cxx*)
  7322. + # Digital/Compaq C++
  7323. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7324. + # Make sure the PIC flag is empty. It appears that all Alpha
  7325. + # Linux and Compaq Tru64 Unix objects are PIC.
  7326. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7328. + ;;
  7329. + *)
  7330. + ;;
  7331. + esac
  7332. + ;;
  7333. + psos*)
  7334. + ;;
  7335. + solaris*)
  7336. + case $cc_basename in
  7337. + CC*)
  7338. + # Sun C++ 4.2, 5.x and Centerline C++
  7339. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7340. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7341. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7342. + ;;
  7343. + gcx*)
  7344. + # Green Hills C++ Compiler
  7345. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7346. + ;;
  7347. + *)
  7348. + ;;
  7349. + esac
  7350. + ;;
  7351. + sunos4*)
  7352. + case $cc_basename in
  7353. + CC*)
  7354. + # Sun C++ 4.x
  7355. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7356. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7357. + ;;
  7358. + lcc*)
  7359. + # Lucid
  7360. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7361. + ;;
  7362. + *)
  7363. + ;;
  7364. + esac
  7365. + ;;
  7366. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7367. + case $cc_basename in
  7368. + CC*)
  7369. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7370. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7371. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7372. + ;;
  7373. + esac
  7374. + ;;
  7375. + tandem*)
  7376. + case $cc_basename in
  7377. + NCC*)
  7378. + # NonStop-UX NCC 3.20
  7379. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7380. + ;;
  7381. + *)
  7382. + ;;
  7383. + esac
  7384. + ;;
  7385. + vxworks*)
  7386. + ;;
  7387. + *)
  7388. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7389. + ;;
  7390. + esac
  7391. + fi
  7392. +],
  7393. +[
  7394. + if test "$GCC" = yes; then
  7395. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7396. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7397. -# The build system.
  7398. -build_alias=$build_alias
  7399. -build=$build
  7400. -build_os=$build_os
  7401. + case $host_os in
  7402. + aix*)
  7403. + # All AIX code is PIC.
  7404. + if test "$host_cpu" = ia64; then
  7405. + # AIX 5 now supports IA64 processor
  7406. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7407. + fi
  7408. + ;;
  7409. -# An echo program that does not interpret backslashes.
  7410. -echo=$lt_echo
  7411. + amigaos*)
  7412. + case $host_cpu in
  7413. + powerpc)
  7414. + # see comment about AmigaOS4 .so support
  7415. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7416. + ;;
  7417. + m68k)
  7418. + # FIXME: we need at least 68020 code to build shared libraries, but
  7419. + # adding the `-m68020' flag to GCC prevents building anything better,
  7420. + # like `-m68040'.
  7421. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7422. + ;;
  7423. + esac
  7424. + ;;
  7425. -# The archiver.
  7426. -AR=$lt_AR
  7427. -AR_FLAGS=$lt_AR_FLAGS
  7428. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7429. + # PIC is the default for these OSes.
  7430. + ;;
  7431. -# A C compiler.
  7432. -LTCC=$lt_LTCC
  7433. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7434. + # This hack is so that the source file can tell whether it is being
  7435. + # built for inclusion in a dll (and should export symbols for example).
  7436. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7437. + # (--disable-auto-import) libraries
  7438. + m4_if([$1], [GCJ], [],
  7439. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7440. + ;;
  7441. -# LTCC compiler flags.
  7442. -LTCFLAGS=$lt_LTCFLAGS
  7443. + darwin* | rhapsody*)
  7444. + # PIC is the default on this platform
  7445. + # Common symbols not allowed in MH_DYLIB files
  7446. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7447. + ;;
  7448. -# A language-specific compiler.
  7449. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7450. + hpux*)
  7451. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7452. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7453. + # sets the default TLS model and affects inlining.
  7454. + case $host_cpu in
  7455. + hppa*64*)
  7456. + # +Z the default
  7457. + ;;
  7458. + *)
  7459. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7460. + ;;
  7461. + esac
  7462. + ;;
  7463. -# Is the compiler the GNU C compiler?
  7464. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7465. + interix[[3-9]]*)
  7466. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7467. + # Instead, we relocate shared libraries at runtime.
  7468. + ;;
  7469. -# An ERE matcher.
  7470. -EGREP=$lt_EGREP
  7471. + msdosdjgpp*)
  7472. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7473. + # on systems that don't support them.
  7474. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7475. + enable_shared=no
  7476. + ;;
  7477. -# The linker used to build libraries.
  7478. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7479. + *nto* | *qnx*)
  7480. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7481. + # it will coredump.
  7482. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7483. + ;;
  7484. -# Whether we need hard or soft links.
  7485. -LN_S=$lt_LN_S
  7486. + sysv4*MP*)
  7487. + if test -d /usr/nec; then
  7488. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7489. + fi
  7490. + ;;
  7491. -# A BSD-compatible nm program.
  7492. -NM=$lt_NM
  7493. + *)
  7494. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7495. + ;;
  7496. + esac
  7497. + else
  7498. + # PORTME Check for flag to pass linker flags through the system compiler.
  7499. + case $host_os in
  7500. + aix*)
  7501. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7502. + if test "$host_cpu" = ia64; then
  7503. + # AIX 5 now supports IA64 processor
  7504. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7505. + else
  7506. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7507. + fi
  7508. + ;;
  7509. -# A symbol stripping program
  7510. -STRIP=$lt_STRIP
  7511. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7512. + # This hack is so that the source file can tell whether it is being
  7513. + # built for inclusion in a dll (and should export symbols for example).
  7514. + m4_if([$1], [GCJ], [],
  7515. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7516. + ;;
  7517. -# Used to examine libraries when file_magic_cmd begins "file"
  7518. -MAGIC_CMD=$MAGIC_CMD
  7519. + hpux9* | hpux10* | hpux11*)
  7520. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7521. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7522. + # not for PA HP-UX.
  7523. + case $host_cpu in
  7524. + hppa*64*|ia64*)
  7525. + # +Z the default
  7526. + ;;
  7527. + *)
  7528. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7529. + ;;
  7530. + esac
  7531. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7532. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7533. + ;;
  7534. -# Used on cygwin: DLL creation program.
  7535. -DLLTOOL="$DLLTOOL"
  7536. + irix5* | irix6* | nonstopux*)
  7537. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7538. + # PIC (with -KPIC) is the default.
  7539. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7540. + ;;
  7541. -# Used on cygwin: object dumper.
  7542. -OBJDUMP="$OBJDUMP"
  7543. -
  7544. -# Used on cygwin: assembler.
  7545. -AS="$AS"
  7546. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7547. + case $cc_basename in
  7548. + # old Intel for x86_64 which still supported -KPIC.
  7549. + ecc*)
  7550. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7552. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7553. + ;;
  7554. + # icc used to be incompatible with GCC.
  7555. + # ICC 10 doesn't accept -KPIC any more.
  7556. + icc* | ifort*)
  7557. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7558. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7559. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7560. + ;;
  7561. + # Lahey Fortran 8.1.
  7562. + lf95*)
  7563. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7564. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7565. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7566. + ;;
  7567. + pgcc* | pgf77* | pgf90* | pgf95*)
  7568. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7569. + # which looks to be a dead project)
  7570. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7571. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7572. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7573. + ;;
  7574. + ccc*)
  7575. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7576. + # All Alpha code is PIC.
  7577. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7578. + ;;
  7579. + xl*)
  7580. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7581. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7582. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7583. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7584. + ;;
  7585. + *)
  7586. + case `$CC -V 2>&1 | sed 5q` in
  7587. + *Sun\ C*)
  7588. + # Sun C 5.9
  7589. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7591. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7592. + ;;
  7593. + *Sun\ F*)
  7594. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7595. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7596. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7597. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7598. + ;;
  7599. + esac
  7600. + ;;
  7601. + esac
  7602. + ;;
  7603. -# The name of the directory that contains temporary libtool files.
  7604. -objdir=$objdir
  7605. + newsos6)
  7606. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7607. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7608. + ;;
  7609. -# How to create reloadable object files.
  7610. -reload_flag=$lt_reload_flag
  7611. -reload_cmds=$lt_reload_cmds
  7612. + *nto* | *qnx*)
  7613. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7614. + # it will coredump.
  7615. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7616. + ;;
  7617. -# How to pass a linker flag through the compiler.
  7618. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7619. + osf3* | osf4* | osf5*)
  7620. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7621. + # All OSF/1 code is PIC.
  7622. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7623. + ;;
  7624. -# Object file suffix (normally "o").
  7625. -objext="$ac_objext"
  7626. + rdos*)
  7627. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7628. + ;;
  7629. -# Old archive suffix (normally "a").
  7630. -libext="$libext"
  7631. + solaris*)
  7632. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7633. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7634. + case $cc_basename in
  7635. + f77* | f90* | f95*)
  7636. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7637. + *)
  7638. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7639. + esac
  7640. + ;;
  7641. -# Shared library suffix (normally ".so").
  7642. -shrext_cmds='$shrext_cmds'
  7643. + sunos4*)
  7644. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7645. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7646. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7647. + ;;
  7648. -# Executable file suffix (normally "").
  7649. -exeext="$exeext"
  7650. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7651. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7652. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7653. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7654. + ;;
  7655. -# Additional compiler flags for building library objects.
  7656. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7657. -pic_mode=$pic_mode
  7658. + sysv4*MP*)
  7659. + if test -d /usr/nec ;then
  7660. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7661. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7662. + fi
  7663. + ;;
  7664. -# What is the maximum length of a command?
  7665. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7666. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7667. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7668. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7669. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7670. + ;;
  7671. -# Does compiler simultaneously support -c and -o options?
  7672. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7673. + unicos*)
  7674. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7675. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7676. + ;;
  7677. -# Must we lock files when doing compilation?
  7678. -need_locks=$lt_need_locks
  7679. + uts4*)
  7680. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7681. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7682. + ;;
  7683. -# Do we need the lib prefix for modules?
  7684. -need_lib_prefix=$need_lib_prefix
  7685. + *)
  7686. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7687. + ;;
  7688. + esac
  7689. + fi
  7690. +])
  7691. +case $host_os in
  7692. + # For platforms which do not support PIC, -DPIC is meaningless:
  7693. + *djgpp*)
  7694. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7695. + ;;
  7696. + *)
  7697. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7698. + ;;
  7699. +esac
  7700. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7701. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7702. + [How to pass a linker flag through the compiler])
  7703. -# Do we need a version for libraries?
  7704. -need_version=$need_version
  7705. +#
  7706. +# Check to make sure the PIC flag actually works.
  7707. +#
  7708. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7709. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7710. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7711. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7712. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7713. + "" | " "*) ;;
  7714. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7715. + esac],
  7716. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7717. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7718. +fi
  7719. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7720. + [Additional compiler flags for building library objects])
  7721. -# Whether dlopen is supported.
  7722. -dlopen_support=$enable_dlopen
  7723. +#
  7724. +# Check to make sure the static flag actually works.
  7725. +#
  7726. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7727. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7728. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7729. + $lt_tmp_static_flag,
  7730. + [],
  7731. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7732. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7733. + [Compiler flag to prevent dynamic linking])
  7734. +])# _LT_COMPILER_PIC
  7735. -# Whether dlopen of programs is supported.
  7736. -dlopen_self=$enable_dlopen_self
  7737. -# Whether dlopen of statically linked programs is supported.
  7738. -dlopen_self_static=$enable_dlopen_self_static
  7739. +# _LT_LINKER_SHLIBS([TAGNAME])
  7740. +# ----------------------------
  7741. +# See if the linker supports building shared libraries.
  7742. +m4_defun([_LT_LINKER_SHLIBS],
  7743. +[AC_REQUIRE([LT_PATH_LD])dnl
  7744. +AC_REQUIRE([LT_PATH_NM])dnl
  7745. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7746. +m4_require([_LT_DECL_EGREP])dnl
  7747. +m4_require([_LT_DECL_SED])dnl
  7748. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7749. +m4_require([_LT_TAG_COMPILER])dnl
  7750. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7751. +m4_if([$1], [CXX], [
  7752. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7753. + case $host_os in
  7754. + aix[[4-9]]*)
  7755. + # If we're using GNU nm, then we don't want the "-C" option.
  7756. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7757. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7758. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7759. + else
  7760. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7761. + fi
  7762. + ;;
  7763. + pw32*)
  7764. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7765. + ;;
  7766. + cygwin* | mingw* | cegcc*)
  7767. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  7768. + ;;
  7769. + linux* | k*bsd*-gnu)
  7770. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7771. + ;;
  7772. + *)
  7773. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7774. + ;;
  7775. + esac
  7776. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7777. +], [
  7778. + runpath_var=
  7779. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7780. + _LT_TAGVAR(always_export_symbols, $1)=no
  7781. + _LT_TAGVAR(archive_cmds, $1)=
  7782. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7783. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7784. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7785. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7786. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7787. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7788. + _LT_TAGVAR(hardcode_direct, $1)=no
  7789. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7790. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7791. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7792. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7793. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7794. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7795. + _LT_TAGVAR(inherit_rpath, $1)=no
  7796. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7797. + _LT_TAGVAR(module_cmds, $1)=
  7798. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7799. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7800. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7801. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7802. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7803. + # include_expsyms should be a list of space-separated symbols to be *always*
  7804. + # included in the symbol list
  7805. + _LT_TAGVAR(include_expsyms, $1)=
  7806. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7807. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7808. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7809. + # as well as any symbol that contains `d'.
  7810. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7811. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7812. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7813. + # the symbol is explicitly referenced. Since portable code cannot
  7814. + # rely on this symbol name, it's probably fine to never include it in
  7815. + # preloaded symbol tables.
  7816. + # Exclude shared library initialization/finalization symbols.
  7817. +dnl Note also adjust exclude_expsyms for C++ above.
  7818. + extract_expsyms_cmds=
  7819. -# Compiler flag to prevent dynamic linking.
  7820. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7821. + case $host_os in
  7822. + cygwin* | mingw* | pw32* | cegcc*)
  7823. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7824. + # When not using gcc, we currently assume that we are using
  7825. + # Microsoft Visual C++.
  7826. + if test "$GCC" != yes; then
  7827. + with_gnu_ld=no
  7828. + fi
  7829. + ;;
  7830. + interix*)
  7831. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7832. + with_gnu_ld=yes
  7833. + ;;
  7834. + openbsd*)
  7835. + with_gnu_ld=no
  7836. + ;;
  7837. + linux* | k*bsd*-gnu)
  7838. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7839. + ;;
  7840. + esac
  7841. -# Compiler flag to turn off builtin functions.
  7842. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7843. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7844. + if test "$with_gnu_ld" = yes; then
  7845. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7846. + wlarc='${wl}'
  7847. -# Compiler flag to allow reflexive dlopens.
  7848. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7849. + # Set some defaults for GNU ld with shared library support. These
  7850. + # are reset later if shared libraries are not supported. Putting them
  7851. + # here allows them to be overridden if necessary.
  7852. + runpath_var=LD_RUN_PATH
  7853. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7854. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7855. + # ancient GNU ld didn't support --whole-archive et. al.
  7856. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7857. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7858. + else
  7859. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7860. + fi
  7861. + supports_anon_versioning=no
  7862. + case `$LD -v 2>&1` in
  7863. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7864. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7865. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7866. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7867. + *\ 2.11.*) ;; # other 2.11 versions
  7868. + *) supports_anon_versioning=yes ;;
  7869. + esac
  7870. -# Compiler flag to generate shared objects directly from archives.
  7871. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7872. + # See if GNU ld supports shared libraries.
  7873. + case $host_os in
  7874. + aix[[3-9]]*)
  7875. + # On AIX/PPC, the GNU linker is very broken
  7876. + if test "$host_cpu" != ia64; then
  7877. + _LT_TAGVAR(ld_shlibs, $1)=no
  7878. + cat <<_LT_EOF 1>&2
  7879. -# Compiler flag to generate thread-safe objects.
  7880. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7881. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7882. +*** to be unable to reliably create shared libraries on AIX.
  7883. +*** Therefore, libtool is disabling shared libraries support. If you
  7884. +*** really care for shared libraries, you may want to modify your PATH
  7885. +*** so that a non-GNU linker is found, and then restart.
  7886. -# Library versioning type.
  7887. -version_type=$version_type
  7888. +_LT_EOF
  7889. + fi
  7890. + ;;
  7891. -# Format of library name prefix.
  7892. -libname_spec=$lt_libname_spec
  7893. + amigaos*)
  7894. + case $host_cpu in
  7895. + powerpc)
  7896. + # see comment about AmigaOS4 .so support
  7897. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7898. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7899. + ;;
  7900. + m68k)
  7901. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7902. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7903. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7904. + ;;
  7905. + esac
  7906. + ;;
  7907. -# List of archive names. First name is the real one, the rest are links.
  7908. -# The last name is the one that the linker finds with -lNAME.
  7909. -library_names_spec=$lt_library_names_spec
  7910. + beos*)
  7911. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7912. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7913. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7914. + # support --undefined. This deserves some investigation. FIXME
  7915. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7916. + else
  7917. + _LT_TAGVAR(ld_shlibs, $1)=no
  7918. + fi
  7919. + ;;
  7920. -# The coded name of the library, if different from the real name.
  7921. -soname_spec=$lt_soname_spec
  7922. + cygwin* | mingw* | pw32* | cegcc*)
  7923. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7924. + # as there is no search path for DLLs.
  7925. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7926. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7927. + _LT_TAGVAR(always_export_symbols, $1)=no
  7928. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7929. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  7930. -# Commands used to build and install an old-style archive.
  7931. -RANLIB=$lt_RANLIB
  7932. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7933. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7934. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7935. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7936. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7937. + # If the export-symbols file already is a .def file (1st line
  7938. + # is EXPORTS), use it as is; otherwise, prepend...
  7939. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7940. + cp $export_symbols $output_objdir/$soname.def;
  7941. + else
  7942. + echo EXPORTS > $output_objdir/$soname.def;
  7943. + cat $export_symbols >> $output_objdir/$soname.def;
  7944. + fi~
  7945. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7946. + else
  7947. + _LT_TAGVAR(ld_shlibs, $1)=no
  7948. + fi
  7949. + ;;
  7950. -# Create an old-style archive from a shared archive.
  7951. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7952. + interix[[3-9]]*)
  7953. + _LT_TAGVAR(hardcode_direct, $1)=no
  7954. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7955. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7956. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7957. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7958. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7959. + # default) and relocated if they conflict, which is a slow very memory
  7960. + # consuming and fragmenting process. To avoid this, we pick a random,
  7961. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7962. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7963. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7964. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7965. + ;;
  7966. -# Create a temporary old-style archive to link instead of a shared archive.
  7967. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7968. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7969. + tmp_diet=no
  7970. + if test "$host_os" = linux-dietlibc; then
  7971. + case $cc_basename in
  7972. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7973. + esac
  7974. + fi
  7975. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7976. + && test "$tmp_diet" = no
  7977. + then
  7978. + tmp_addflag=
  7979. + tmp_sharedflag='-shared'
  7980. + case $cc_basename,$host_cpu in
  7981. + pgcc*) # Portland Group C compiler
  7982. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7983. + tmp_addflag=' $pic_flag'
  7984. + ;;
  7985. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7986. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7987. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7988. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7989. + tmp_addflag=' -i_dynamic' ;;
  7990. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7991. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7992. + ifc* | ifort*) # Intel Fortran compiler
  7993. + tmp_addflag=' -nofor_main' ;;
  7994. + lf95*) # Lahey Fortran 8.1
  7995. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7996. + tmp_sharedflag='--shared' ;;
  7997. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7998. + tmp_sharedflag='-qmkshrobj'
  7999. + tmp_addflag= ;;
  8000. + esac
  8001. + case `$CC -V 2>&1 | sed 5q` in
  8002. + *Sun\ C*) # Sun C 5.9
  8003. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8004. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8005. + tmp_sharedflag='-G' ;;
  8006. + *Sun\ F*) # Sun Fortran 8.3
  8007. + tmp_sharedflag='-G' ;;
  8008. + esac
  8009. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8010. -# Commands used to build and install a shared archive.
  8011. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  8012. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  8013. -postinstall_cmds=$lt_postinstall_cmds
  8014. -postuninstall_cmds=$lt_postuninstall_cmds
  8015. + if test "x$supports_anon_versioning" = xyes; then
  8016. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8017. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8018. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8019. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8020. + fi
  8021. -# Commands used to build a loadable module (assumed same as above if empty)
  8022. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  8023. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  8024. + case $cc_basename in
  8025. + xlf*)
  8026. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8027. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8028. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8029. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8030. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8031. + if test "x$supports_anon_versioning" = xyes; then
  8032. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8033. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8034. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8035. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8036. + fi
  8037. + ;;
  8038. + esac
  8039. + else
  8040. + _LT_TAGVAR(ld_shlibs, $1)=no
  8041. + fi
  8042. + ;;
  8043. -# Commands to strip libraries.
  8044. -old_striplib=$lt_old_striplib
  8045. -striplib=$lt_striplib
  8046. + netbsd* | netbsdelf*-gnu)
  8047. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8048. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8049. + wlarc=
  8050. + else
  8051. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8052. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8053. + fi
  8054. + ;;
  8055. -# Dependencies to place before the objects being linked to create a
  8056. -# shared library.
  8057. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  8058. + solaris*)
  8059. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8060. + _LT_TAGVAR(ld_shlibs, $1)=no
  8061. + cat <<_LT_EOF 1>&2
  8062. -# Dependencies to place after the objects being linked to create a
  8063. -# shared library.
  8064. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  8065. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8066. +*** create shared libraries on Solaris systems. Therefore, libtool
  8067. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8068. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8069. +*** your PATH or compiler configuration so that the native linker is
  8070. +*** used, and then restart.
  8071. -# Dependencies to place before the objects being linked to create a
  8072. -# shared library.
  8073. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  8074. +_LT_EOF
  8075. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8076. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8077. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8078. + else
  8079. + _LT_TAGVAR(ld_shlibs, $1)=no
  8080. + fi
  8081. + ;;
  8082. -# Dependencies to place after the objects being linked to create a
  8083. -# shared library.
  8084. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  8085. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8086. + case `$LD -v 2>&1` in
  8087. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8088. + _LT_TAGVAR(ld_shlibs, $1)=no
  8089. + cat <<_LT_EOF 1>&2
  8090. -# The library search path used internally by the compiler when linking
  8091. -# a shared library.
  8092. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  8093. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8094. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8095. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8096. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8097. +*** your PATH or compiler configuration so that the native linker is
  8098. +*** used, and then restart.
  8099. -# Method to check whether dependent libraries are shared objects.
  8100. -deplibs_check_method=$lt_deplibs_check_method
  8101. +_LT_EOF
  8102. + ;;
  8103. + *)
  8104. + # For security reasons, it is highly recommended that you always
  8105. + # use absolute paths for naming shared libraries, and exclude the
  8106. + # DT_RUNPATH tag from executables and libraries. But doing so
  8107. + # requires that you compile everything twice, which is a pain.
  8108. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8109. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8111. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8112. + else
  8113. + _LT_TAGVAR(ld_shlibs, $1)=no
  8114. + fi
  8115. + ;;
  8116. + esac
  8117. + ;;
  8118. -# Command to use when deplibs_check_method == file_magic.
  8119. -file_magic_cmd=$lt_file_magic_cmd
  8120. + sunos4*)
  8121. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8122. + wlarc=
  8123. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8124. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8125. + ;;
  8126. -# Flag that allows shared libraries with undefined symbols to be built.
  8127. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8128. + *)
  8129. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8130. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8131. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8132. + else
  8133. + _LT_TAGVAR(ld_shlibs, $1)=no
  8134. + fi
  8135. + ;;
  8136. + esac
  8137. -# Flag that forces no undefined symbols.
  8138. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8139. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8140. + runpath_var=
  8141. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8142. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8143. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8144. + fi
  8145. + else
  8146. + # PORTME fill in a description of your system's linker (not GNU ld)
  8147. + case $host_os in
  8148. + aix3*)
  8149. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8150. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8151. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8152. + # Note: this linker hardcodes the directories in LIBPATH if there
  8153. + # are no directories specified by -L.
  8154. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8155. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8156. + # Neither direct hardcoding nor static linking is supported with a
  8157. + # broken collect2.
  8158. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8159. + fi
  8160. + ;;
  8161. -# Commands used to finish a libtool library installation in a directory.
  8162. -finish_cmds=$lt_finish_cmds
  8163. + aix[[4-9]]*)
  8164. + if test "$host_cpu" = ia64; then
  8165. + # On IA64, the linker does run time linking by default, so we don't
  8166. + # have to do anything special.
  8167. + aix_use_runtimelinking=no
  8168. + exp_sym_flag='-Bexport'
  8169. + no_entry_flag=""
  8170. + else
  8171. + # If we're using GNU nm, then we don't want the "-C" option.
  8172. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8173. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8174. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8175. + else
  8176. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8177. + fi
  8178. + aix_use_runtimelinking=no
  8179. -# Same as above, but a single script fragment to be evaled but not shown.
  8180. -finish_eval=$lt_finish_eval
  8181. + # Test if we are trying to use run time linking or normal
  8182. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8183. + # need to do runtime linking.
  8184. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8185. + for ld_flag in $LDFLAGS; do
  8186. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8187. + aix_use_runtimelinking=yes
  8188. + break
  8189. + fi
  8190. + done
  8191. + ;;
  8192. + esac
  8193. -# Take the output of nm and produce a listing of raw symbols and C names.
  8194. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8195. + exp_sym_flag='-bexport'
  8196. + no_entry_flag='-bnoentry'
  8197. + fi
  8198. -# Transform the output of nm in a proper C declaration
  8199. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8200. + # When large executables or shared objects are built, AIX ld can
  8201. + # have problems creating the table of contents. If linking a library
  8202. + # or program results in "error TOC overflow" add -mminimal-toc to
  8203. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8204. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8205. -# Transform the output of nm in a C name address pair
  8206. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8207. + _LT_TAGVAR(archive_cmds, $1)=''
  8208. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8209. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8210. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8211. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8212. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8213. -# This is the shared library runtime path variable.
  8214. -runpath_var=$runpath_var
  8215. + if test "$GCC" = yes; then
  8216. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8217. + # We only want to do this on AIX 4.2 and lower, the check
  8218. + # below for broken collect2 doesn't work under 4.3+
  8219. + collect2name=`${CC} -print-prog-name=collect2`
  8220. + if test -f "$collect2name" &&
  8221. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8222. + then
  8223. + # We have reworked collect2
  8224. + :
  8225. + else
  8226. + # We have old collect2
  8227. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8228. + # It fails to find uninstalled libraries when the uninstalled
  8229. + # path is not listed in the libpath. Setting hardcode_minus_L
  8230. + # to unsupported forces relinking
  8231. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8232. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8233. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8234. + fi
  8235. + ;;
  8236. + esac
  8237. + shared_flag='-shared'
  8238. + if test "$aix_use_runtimelinking" = yes; then
  8239. + shared_flag="$shared_flag "'${wl}-G'
  8240. + fi
  8241. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8242. + else
  8243. + # not using gcc
  8244. + if test "$host_cpu" = ia64; then
  8245. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8246. + # chokes on -Wl,-G. The following line is correct:
  8247. + shared_flag='-G'
  8248. + else
  8249. + if test "$aix_use_runtimelinking" = yes; then
  8250. + shared_flag='${wl}-G'
  8251. + else
  8252. + shared_flag='${wl}-bM:SRE'
  8253. + fi
  8254. + fi
  8255. + fi
  8256. -# This is the shared library path variable.
  8257. -shlibpath_var=$shlibpath_var
  8258. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8259. + # It seems that -bexpall does not export symbols beginning with
  8260. + # underscore (_), so it is better to generate a list of symbols to export.
  8261. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8262. + if test "$aix_use_runtimelinking" = yes; then
  8263. + # Warning - without using the other runtime loading flags (-brtl),
  8264. + # -berok will link without error, but may produce a broken library.
  8265. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8266. + # Determine the default libpath from the value encoded in an
  8267. + # empty executable.
  8268. + _LT_SYS_MODULE_PATH_AIX
  8269. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8270. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8271. + else
  8272. + if test "$host_cpu" = ia64; then
  8273. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8274. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8275. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8276. + else
  8277. + # Determine the default libpath from the value encoded in an
  8278. + # empty executable.
  8279. + _LT_SYS_MODULE_PATH_AIX
  8280. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8281. + # Warning - without using the other run time loading flags,
  8282. + # -berok will link without error, but may produce a broken library.
  8283. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8284. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8285. + # Exported symbols can be pulled into shared objects from archives
  8286. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8287. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8288. + # This is similar to how AIX traditionally builds its shared libraries.
  8289. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8290. + fi
  8291. + fi
  8292. + ;;
  8293. -# Is shlibpath searched before the hard-coded library search path?
  8294. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8295. + amigaos*)
  8296. + case $host_cpu in
  8297. + powerpc)
  8298. + # see comment about AmigaOS4 .so support
  8299. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8300. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8301. + ;;
  8302. + m68k)
  8303. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8304. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8305. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8306. + ;;
  8307. + esac
  8308. + ;;
  8309. -# How to hardcode a shared library path into an executable.
  8310. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8311. + bsdi[[45]]*)
  8312. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8313. + ;;
  8314. -# Whether we should hardcode library paths into libraries.
  8315. -hardcode_into_libs=$hardcode_into_libs
  8316. + cygwin* | mingw* | pw32* | cegcc*)
  8317. + # When not using gcc, we currently assume that we are using
  8318. + # Microsoft Visual C++.
  8319. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8320. + # no search path for DLLs.
  8321. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8322. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8323. + # Tell ltmain to make .lib files, not .a files.
  8324. + libext=lib
  8325. + # Tell ltmain to make .dll files, not .so files.
  8326. + shrext_cmds=".dll"
  8327. + # FIXME: Setting linknames here is a bad hack.
  8328. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8329. + # The linker will automatically build a .lib file if we build a DLL.
  8330. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8331. + # FIXME: Should let the user specify the lib program.
  8332. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8333. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8334. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8335. + ;;
  8336. -# Flag to hardcode \$libdir into a binary during linking.
  8337. -# This must work even if \$libdir does not exist.
  8338. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8339. + darwin* | rhapsody*)
  8340. + _LT_DARWIN_LINKER_FEATURES($1)
  8341. + ;;
  8342. -# If ld is used when linking, flag to hardcode \$libdir into
  8343. -# a binary during linking. This must work even if \$libdir does
  8344. -# not exist.
  8345. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8346. + dgux*)
  8347. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8348. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8349. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8350. + ;;
  8351. -# Whether we need a single -rpath flag with a separated argument.
  8352. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8353. + freebsd1*)
  8354. + _LT_TAGVAR(ld_shlibs, $1)=no
  8355. + ;;
  8356. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8357. -# resulting binary.
  8358. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8359. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8360. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8361. + # does not break anything, and helps significantly (at the cost of a little
  8362. + # extra space).
  8363. + freebsd2.2*)
  8364. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8365. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8366. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8367. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8368. + ;;
  8369. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8370. -# resulting binary.
  8371. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8372. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8373. + freebsd2*)
  8374. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8375. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8376. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8377. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8378. + ;;
  8379. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8380. -# the resulting binary.
  8381. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8382. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8383. + freebsd* | dragonfly*)
  8384. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8385. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8386. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8387. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8388. + ;;
  8389. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8390. -# and all subsequent libraries and executables linked against it.
  8391. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8392. + hpux9*)
  8393. + if test "$GCC" = yes; then
  8394. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8395. + else
  8396. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8397. + fi
  8398. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8399. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8400. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8401. -# Variables whose values should be saved in libtool wrapper scripts and
  8402. -# restored at relink time.
  8403. -variables_saved_for_relink="$variables_saved_for_relink"
  8404. + # hardcode_minus_L: Not really in the search PATH,
  8405. + # but as the default location of the library.
  8406. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8407. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8408. + ;;
  8409. -# Whether libtool must link a program against all its dependency libraries.
  8410. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8411. + hpux10*)
  8412. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8413. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8414. + else
  8415. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8416. + fi
  8417. + if test "$with_gnu_ld" = no; then
  8418. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8419. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8420. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8421. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8422. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8423. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8424. + # hardcode_minus_L: Not really in the search PATH,
  8425. + # but as the default location of the library.
  8426. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8427. + fi
  8428. + ;;
  8429. -# Compile-time system search path for libraries
  8430. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8431. + hpux11*)
  8432. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8433. + case $host_cpu in
  8434. + hppa*64*)
  8435. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. + ;;
  8437. + ia64*)
  8438. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8439. + ;;
  8440. + *)
  8441. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8442. + ;;
  8443. + esac
  8444. + else
  8445. + case $host_cpu in
  8446. + hppa*64*)
  8447. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. + ;;
  8449. + ia64*)
  8450. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8451. + ;;
  8452. + *)
  8453. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8454. + ;;
  8455. + esac
  8456. + fi
  8457. + if test "$with_gnu_ld" = no; then
  8458. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8459. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8460. -# Run-time system search path for libraries
  8461. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8462. + case $host_cpu in
  8463. + hppa*64*|ia64*)
  8464. + _LT_TAGVAR(hardcode_direct, $1)=no
  8465. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8466. + ;;
  8467. + *)
  8468. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8469. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8470. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8471. -# Fix the shell variable \$srcfile for the compiler.
  8472. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8473. + # hardcode_minus_L: Not really in the search PATH,
  8474. + # but as the default location of the library.
  8475. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8476. + ;;
  8477. + esac
  8478. + fi
  8479. + ;;
  8480. -# Set to yes if exported symbols are required.
  8481. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8482. + irix5* | irix6* | nonstopux*)
  8483. + if test "$GCC" = yes; then
  8484. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8485. + # Try to use the -exported_symbol ld option, if it does not
  8486. + # work, assume that -exports_file does not work either and
  8487. + # implicitly export all symbols.
  8488. + save_LDFLAGS="$LDFLAGS"
  8489. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8490. + AC_LINK_IFELSE(int foo(void) {},
  8491. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8492. + )
  8493. + LDFLAGS="$save_LDFLAGS"
  8494. + else
  8495. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8496. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8497. + fi
  8498. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8499. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8500. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8501. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8502. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8503. + ;;
  8504. -# The commands to list exported symbols.
  8505. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8506. + netbsd* | netbsdelf*-gnu)
  8507. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8508. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8509. + else
  8510. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8511. + fi
  8512. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8513. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8514. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8515. + ;;
  8516. -# The commands to extract the exported symbol list from a shared archive.
  8517. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8518. + newsos6)
  8519. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8521. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8522. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8523. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8524. + ;;
  8525. -# Symbols that should not be listed in the preloaded symbols.
  8526. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8527. + *nto* | *qnx*)
  8528. + ;;
  8529. -# Symbols that must always be exported.
  8530. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8531. + openbsd*)
  8532. + if test -f /usr/libexec/ld.so; then
  8533. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8534. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8535. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8536. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8537. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8538. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8539. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8540. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8541. + else
  8542. + case $host_os in
  8543. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8544. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8545. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8546. + ;;
  8547. + *)
  8548. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8549. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8550. + ;;
  8551. + esac
  8552. + fi
  8553. + else
  8554. + _LT_TAGVAR(ld_shlibs, $1)=no
  8555. + fi
  8556. + ;;
  8557. -ifelse([$1],[],
  8558. -[# ### END LIBTOOL CONFIG],
  8559. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8560. + os2*)
  8561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8562. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8563. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8564. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8565. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8566. + ;;
  8567. -__EOF__
  8568. + osf3*)
  8569. + if test "$GCC" = yes; then
  8570. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8571. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8572. + else
  8573. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8574. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8575. + fi
  8576. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8578. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8579. + ;;
  8580. -ifelse([$1],[], [
  8581. - case $host_os in
  8582. - aix3*)
  8583. - cat <<\EOF >> "$cfgfile"
  8584. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8585. + if test "$GCC" = yes; then
  8586. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8587. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8588. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8589. + else
  8590. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8591. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8592. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8593. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8594. -# AIX sometimes has problems with the GCC collect2 program. For some
  8595. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8596. -# vanish in a puff of smoke.
  8597. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8598. - COLLECT_NAMES=
  8599. - export COLLECT_NAMES
  8600. -fi
  8601. -EOF
  8602. - ;;
  8603. - esac
  8604. + # Both c and cxx compiler support -rpath directly
  8605. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8606. + fi
  8607. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8608. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8609. + ;;
  8610. - # We use sed instead of cat because bash on DJGPP gets confused if
  8611. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8612. - # text mode, it properly converts lines to CR/LF. This bash problem
  8613. - # is reportedly fixed, but why not run on old versions too?
  8614. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8615. + solaris*)
  8616. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8617. + if test "$GCC" = yes; then
  8618. + wlarc='${wl}'
  8619. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8620. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8621. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8622. + else
  8623. + case `$CC -V 2>&1` in
  8624. + *"Compilers 5.0"*)
  8625. + wlarc=''
  8626. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8627. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8628. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8629. + ;;
  8630. + *)
  8631. + wlarc='${wl}'
  8632. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8633. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8634. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8635. + ;;
  8636. + esac
  8637. + fi
  8638. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8639. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8640. + case $host_os in
  8641. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8642. + *)
  8643. + # The compiler driver will combine and reorder linker options,
  8644. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8645. + # but is careful enough not to reorder.
  8646. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8647. + if test "$GCC" = yes; then
  8648. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8649. + else
  8650. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8651. + fi
  8652. + ;;
  8653. + esac
  8654. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8655. + ;;
  8656. - mv -f "$cfgfile" "$ofile" || \
  8657. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8658. - chmod +x "$ofile"
  8659. -])
  8660. -else
  8661. - # If there is no Makefile yet, we rely on a make rule to execute
  8662. - # `config.status --recheck' to rerun these tests and create the
  8663. - # libtool script then.
  8664. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8665. - if test -f "$ltmain_in"; then
  8666. - test -f Makefile && make "$ltmain"
  8667. - fi
  8668. -fi
  8669. -])# AC_LIBTOOL_CONFIG
  8670. + sunos4*)
  8671. + if test "x$host_vendor" = xsequent; then
  8672. + # Use $CC to link under sequent, because it throws in some extra .o
  8673. + # files that make .init and .fini sections work.
  8674. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8675. + else
  8676. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8677. + fi
  8678. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8679. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8680. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8681. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8682. + ;;
  8683. + sysv4)
  8684. + case $host_vendor in
  8685. + sni)
  8686. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8687. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8688. + ;;
  8689. + siemens)
  8690. + ## LD is ld it makes a PLAMLIB
  8691. + ## CC just makes a GrossModule.
  8692. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8693. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8694. + _LT_TAGVAR(hardcode_direct, $1)=no
  8695. + ;;
  8696. + motorola)
  8697. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8698. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8699. + ;;
  8700. + esac
  8701. + runpath_var='LD_RUN_PATH'
  8702. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8703. + ;;
  8704. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8705. -# -------------------------------------------
  8706. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8707. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8708. + sysv4.3*)
  8709. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8710. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8711. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8712. + ;;
  8713. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8714. + sysv4*MP*)
  8715. + if test -d /usr/nec; then
  8716. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8717. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8718. + runpath_var=LD_RUN_PATH
  8719. + hardcode_runpath_var=yes
  8720. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8721. + fi
  8722. + ;;
  8723. -if test "$GCC" = yes; then
  8724. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8725. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8726. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8727. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8728. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8729. + runpath_var='LD_RUN_PATH'
  8730. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8731. - lt_cv_prog_compiler_rtti_exceptions,
  8732. - [-fno-rtti -fno-exceptions], [],
  8733. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8734. -fi
  8735. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8736. + if test "$GCC" = yes; then
  8737. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8739. + else
  8740. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8741. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8742. + fi
  8743. + ;;
  8744. + sysv5* | sco3.2v5* | sco5v6*)
  8745. + # Note: We can NOT use -z defs as we might desire, because we do not
  8746. + # link with -lc, and that would cause any symbols used from libc to
  8747. + # always be unresolved, which means just about no library would
  8748. + # ever link correctly. If we're not using GNU ld we use -z text
  8749. + # though, which does catch some bad symbols but isn't as heavy-handed
  8750. + # as -z defs.
  8751. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8752. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8753. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8754. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8755. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8756. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8757. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8758. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8759. + runpath_var='LD_RUN_PATH'
  8760. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8761. -# ---------------------------------
  8762. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8763. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8764. -AC_REQUIRE([AC_PROG_NM])
  8765. -AC_REQUIRE([AC_OBJEXT])
  8766. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8767. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8768. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8769. -[
  8770. -# These are sane defaults that work on at least a few old systems.
  8771. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8772. + if test "$GCC" = yes; then
  8773. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8774. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8775. + else
  8776. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8777. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8778. + fi
  8779. + ;;
  8780. -# Character class describing NM global symbol codes.
  8781. -symcode='[[BCDEGRST]]'
  8782. + uts4*)
  8783. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8784. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8785. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8786. + ;;
  8787. -# Regexp to match symbols that can be accessed directly from C.
  8788. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8789. + *)
  8790. + _LT_TAGVAR(ld_shlibs, $1)=no
  8791. + ;;
  8792. + esac
  8793. +
  8794. + if test x$host_vendor = xsni; then
  8795. + case $host in
  8796. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8797. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8798. + ;;
  8799. + esac
  8800. + fi
  8801. + fi
  8802. +])
  8803. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8804. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8805. -# Transform an extracted symbol line into a proper C declaration
  8806. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8807. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8808. -# Transform an extracted symbol line into symbol name and symbol address
  8809. -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'"
  8810. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8811. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8812. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8813. + [The commands to extract the exported symbol list from a shared archive])
  8814. -# Define system-specific variables.
  8815. -case $host_os in
  8816. -aix*)
  8817. - symcode='[[BCDT]]'
  8818. - ;;
  8819. -cygwin* | mingw* | pw32*)
  8820. - symcode='[[ABCDGISTW]]'
  8821. - ;;
  8822. -hpux*) # Its linker distinguishes data from code symbols
  8823. - if test "$host_cpu" = ia64; then
  8824. - symcode='[[ABCDEGRST]]'
  8825. - fi
  8826. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8827. - 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'"
  8828. - ;;
  8829. -linux*)
  8830. - if test "$host_cpu" = ia64; then
  8831. - symcode='[[ABCDGIRSTW]]'
  8832. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8833. - 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'"
  8834. +#
  8835. +# Do we need to explicitly link libc?
  8836. +#
  8837. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8838. +x|xyes)
  8839. + # Assume -lc should be added
  8840. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8841. +
  8842. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8843. + case $_LT_TAGVAR(archive_cmds, $1) in
  8844. + *'~'*)
  8845. + # FIXME: we may have to deal with multi-command sequences.
  8846. + ;;
  8847. + '$CC '*)
  8848. + # Test whether the compiler implicitly links with -lc since on some
  8849. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8850. + # to ld, don't add -lc before -lgcc.
  8851. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8852. + $RM conftest*
  8853. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8854. +
  8855. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8856. + soname=conftest
  8857. + lib=conftest
  8858. + libobjs=conftest.$ac_objext
  8859. + deplibs=
  8860. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8861. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8862. + compiler_flags=-v
  8863. + linker_flags=-v
  8864. + verstring=
  8865. + output_objdir=.
  8866. + libname=conftest
  8867. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8868. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8869. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8870. + then
  8871. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8872. + else
  8873. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8874. + fi
  8875. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8876. + else
  8877. + cat conftest.err 1>&5
  8878. + fi
  8879. + $RM conftest*
  8880. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8881. + ;;
  8882. + esac
  8883. fi
  8884. ;;
  8885. -irix* | nonstopux*)
  8886. - symcode='[[BCDEGRST]]'
  8887. - ;;
  8888. -osf*)
  8889. - symcode='[[BCDEGQRST]]'
  8890. - ;;
  8891. -solaris*)
  8892. - symcode='[[BDRT]]'
  8893. - ;;
  8894. -sco3.2v5*)
  8895. - symcode='[[DT]]'
  8896. - ;;
  8897. -sysv4.2uw2*)
  8898. - symcode='[[DT]]'
  8899. - ;;
  8900. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8901. - symcode='[[ABDT]]'
  8902. - ;;
  8903. -sysv4)
  8904. - symcode='[[DFNSTU]]'
  8905. - ;;
  8906. esac
  8907. -# Handle CRLF in mingw tool chain
  8908. -opt_cr=
  8909. -case $build_os in
  8910. -mingw*)
  8911. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8912. - ;;
  8913. -esac
  8914. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8915. + [Whether or not to add -lc for building shared libraries])
  8916. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8917. + [enable_shared_with_static_runtimes], [0],
  8918. + [Whether or not to disallow shared libs when runtime libs are static])
  8919. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8920. + [Compiler flag to allow reflexive dlopens])
  8921. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8922. + [Compiler flag to generate shared objects directly from archives])
  8923. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8924. + [Whether the compiler copes with passing no objects directly])
  8925. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8926. + [Create an old-style archive from a shared archive])
  8927. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8928. + [Create a temporary old-style archive to link instead of a shared archive])
  8929. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8930. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8931. +_LT_TAGDECL([], [module_cmds], [2],
  8932. + [Commands used to build a loadable module if different from building
  8933. + a shared archive.])
  8934. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8935. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8936. + [Whether we are building with GNU ld or not])
  8937. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8938. + [Flag that allows shared libraries with undefined symbols to be built])
  8939. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8940. + [Flag that enforces no undefined symbols])
  8941. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8942. + [Flag to hardcode $libdir into a binary during linking.
  8943. + This must work even if $libdir does not exist])
  8944. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8945. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8946. + during linking. This must work even if $libdir does not exist]])
  8947. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8948. + [Whether we need a single "-rpath" flag with a separated argument])
  8949. +_LT_TAGDECL([], [hardcode_direct], [0],
  8950. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8951. + DIR into the resulting binary])
  8952. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8953. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8954. + DIR into the resulting binary and the resulting library dependency is
  8955. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8956. + library is relocated])
  8957. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8958. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8959. + into the resulting binary])
  8960. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8961. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8962. + into the resulting binary])
  8963. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8964. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8965. + into the library and all subsequent libraries and executables linked
  8966. + against it])
  8967. +_LT_TAGDECL([], [inherit_rpath], [0],
  8968. + [Set to yes if linker adds runtime paths of dependent libraries
  8969. + to runtime path list])
  8970. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8971. + [Whether libtool must link a program against all its dependency libraries])
  8972. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8973. + [Fix the shell variable $srcfile for the compiler])
  8974. +_LT_TAGDECL([], [always_export_symbols], [0],
  8975. + [Set to "yes" if exported symbols are required])
  8976. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8977. + [The commands to list exported symbols])
  8978. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8979. + [Symbols that should not be listed in the preloaded symbols])
  8980. +_LT_TAGDECL([], [include_expsyms], [1],
  8981. + [Symbols that must always be exported])
  8982. +_LT_TAGDECL([], [prelink_cmds], [2],
  8983. + [Commands necessary for linking programs (against libraries) with templates])
  8984. +_LT_TAGDECL([], [file_list_spec], [1],
  8985. + [Specify filename containing input files])
  8986. +dnl FIXME: Not yet implemented
  8987. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8988. +dnl [Compiler flag to generate thread safe objects])
  8989. +])# _LT_LINKER_SHLIBS
  8990. -# If we're using GNU nm, then use its standard symbol codes.
  8991. -case `$NM -V 2>&1` in
  8992. -*GNU* | *'with BFD'*)
  8993. - symcode='[[ABCDGIRSTW]]' ;;
  8994. -esac
  8995. -# Try without a prefix undercore, then with it.
  8996. -for ac_symprfx in "" "_"; do
  8997. +# _LT_LANG_C_CONFIG([TAG])
  8998. +# ------------------------
  8999. +# Ensure that the configuration variables for a C compiler are suitably
  9000. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9001. +# the compiler configuration to `libtool'.
  9002. +m4_defun([_LT_LANG_C_CONFIG],
  9003. +[m4_require([_LT_DECL_EGREP])dnl
  9004. +lt_save_CC="$CC"
  9005. +AC_LANG_PUSH(C)
  9006. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9007. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  9008. +# Source file extension for C test sources.
  9009. +ac_ext=c
  9010. - # Write the raw and C identifiers.
  9011. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9012. +# Object file extension for compiled C test sources.
  9013. +objext=o
  9014. +_LT_TAGVAR(objext, $1)=$objext
  9015. - # Check to see that the pipe works correctly.
  9016. - pipe_works=no
  9017. +# Code to be used in simple compile tests
  9018. +lt_simple_compile_test_code="int some_variable = 0;"
  9019. - rm -f conftest*
  9020. - cat > conftest.$ac_ext <<EOF
  9021. -#ifdef __cplusplus
  9022. -extern "C" {
  9023. -#endif
  9024. -char nm_test_var;
  9025. -void nm_test_func(){}
  9026. -#ifdef __cplusplus
  9027. -}
  9028. -#endif
  9029. -int main(){nm_test_var='a';nm_test_func();return(0);}
  9030. -EOF
  9031. +# Code to be used in simple link tests
  9032. +lt_simple_link_test_code='int main(){return(0);}'
  9033. - if AC_TRY_EVAL(ac_compile); then
  9034. - # Now try to grab the symbols.
  9035. - nlist=conftest.nm
  9036. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  9037. - # Try sorting and uniquifying the output.
  9038. - if sort "$nlist" | uniq > "$nlist"T; then
  9039. - mv -f "$nlist"T "$nlist"
  9040. - else
  9041. - rm -f "$nlist"T
  9042. - fi
  9043. +_LT_TAG_COMPILER
  9044. +# Save the default compiler, since it gets overwritten when the other
  9045. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9046. +compiler_DEFAULT=$CC
  9047. - # Make sure that we snagged all the symbols we need.
  9048. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9049. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9050. - cat <<EOF > conftest.$ac_ext
  9051. -#ifdef __cplusplus
  9052. -extern "C" {
  9053. -#endif
  9054. +# save warnings/boilerplate of simple test code
  9055. +_LT_COMPILER_BOILERPLATE
  9056. +_LT_LINKER_BOILERPLATE
  9057. -EOF
  9058. - # Now generate the symbol file.
  9059. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9060. +if test -n "$compiler"; then
  9061. + _LT_COMPILER_NO_RTTI($1)
  9062. + _LT_COMPILER_PIC($1)
  9063. + _LT_COMPILER_C_O($1)
  9064. + _LT_COMPILER_FILE_LOCKS($1)
  9065. + _LT_LINKER_SHLIBS($1)
  9066. + _LT_SYS_DYNAMIC_LINKER($1)
  9067. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9068. + LT_SYS_DLOPEN_SELF
  9069. + _LT_CMD_STRIPLIB
  9070. +
  9071. + # Report which library types will actually be built
  9072. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9073. + AC_MSG_RESULT([$can_build_shared])
  9074. - cat <<EOF >> conftest.$ac_ext
  9075. -#if defined (__STDC__) && __STDC__
  9076. -# define lt_ptr_t void *
  9077. -#else
  9078. -# define lt_ptr_t char *
  9079. -# define const
  9080. -#endif
  9081. + AC_MSG_CHECKING([whether to build shared libraries])
  9082. + test "$can_build_shared" = "no" && enable_shared=no
  9083. -/* The mapping between symbol names and symbols. */
  9084. -const struct {
  9085. - const char *name;
  9086. - lt_ptr_t address;
  9087. -}
  9088. -lt_preloaded_symbols[[]] =
  9089. -{
  9090. -EOF
  9091. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9092. - cat <<\EOF >> conftest.$ac_ext
  9093. - {0, (lt_ptr_t) 0}
  9094. -};
  9095. + # On AIX, shared libraries and static libraries use the same namespace, and
  9096. + # are all built from PIC.
  9097. + case $host_os in
  9098. + aix3*)
  9099. + test "$enable_shared" = yes && enable_static=no
  9100. + if test -n "$RANLIB"; then
  9101. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9102. + postinstall_cmds='$RANLIB $lib'
  9103. + fi
  9104. + ;;
  9105. -#ifdef __cplusplus
  9106. -}
  9107. -#endif
  9108. -EOF
  9109. - # Now try linking the two files.
  9110. - mv conftest.$ac_objext conftstm.$ac_objext
  9111. - lt_save_LIBS="$LIBS"
  9112. - lt_save_CFLAGS="$CFLAGS"
  9113. - LIBS="conftstm.$ac_objext"
  9114. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  9115. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  9116. - pipe_works=yes
  9117. - fi
  9118. - LIBS="$lt_save_LIBS"
  9119. - CFLAGS="$lt_save_CFLAGS"
  9120. - else
  9121. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  9122. - fi
  9123. - else
  9124. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9125. - fi
  9126. - else
  9127. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9128. + aix[[4-9]]*)
  9129. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9130. + test "$enable_shared" = yes && enable_static=no
  9131. fi
  9132. - else
  9133. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9134. - cat conftest.$ac_ext >&5
  9135. - fi
  9136. - rm -f conftest* conftst*
  9137. + ;;
  9138. + esac
  9139. + AC_MSG_RESULT([$enable_shared])
  9140. - # Do not use the global_symbol_pipe unless it works.
  9141. - if test "$pipe_works" = yes; then
  9142. - break
  9143. - else
  9144. - lt_cv_sys_global_symbol_pipe=
  9145. - fi
  9146. -done
  9147. -])
  9148. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9149. - lt_cv_sys_global_symbol_to_cdecl=
  9150. + AC_MSG_CHECKING([whether to build static libraries])
  9151. + # Make sure either enable_shared or enable_static is yes.
  9152. + test "$enable_shared" = yes || enable_static=yes
  9153. + AC_MSG_RESULT([$enable_static])
  9154. +
  9155. + _LT_CONFIG($1)
  9156. fi
  9157. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9158. - AC_MSG_RESULT(failed)
  9159. +AC_LANG_POP
  9160. +CC="$lt_save_CC"
  9161. +])# _LT_LANG_C_CONFIG
  9162. +
  9163. +
  9164. +# _LT_PROG_CXX
  9165. +# ------------
  9166. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9167. +# compiler, we have our own version here.
  9168. +m4_defun([_LT_PROG_CXX],
  9169. +[
  9170. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9171. +AC_PROG_CXX
  9172. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9173. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9174. + (test "X$CXX" != "Xg++"))) ; then
  9175. + AC_PROG_CXXCPP
  9176. else
  9177. - AC_MSG_RESULT(ok)
  9178. + _lt_caught_CXX_error=yes
  9179. fi
  9180. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9181. +popdef([AC_MSG_ERROR])
  9182. +])# _LT_PROG_CXX
  9183. +dnl aclocal-1.4 backwards compatibility:
  9184. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9185. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9186. -# ---------------------------------------
  9187. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9188. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9189. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9190. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9191. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  9192. - ifelse([$1],[CXX],[
  9193. - # C++ specific cases for pic, static, wl, etc.
  9194. - if test "$GXX" = yes; then
  9195. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9196. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9197. +# _LT_LANG_CXX_CONFIG([TAG])
  9198. +# --------------------------
  9199. +# Ensure that the configuration variables for a C++ compiler are suitably
  9200. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9201. +# the compiler configuration to `libtool'.
  9202. +m4_defun([_LT_LANG_CXX_CONFIG],
  9203. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9204. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9205. +m4_require([_LT_DECL_EGREP])dnl
  9206. +
  9207. +AC_LANG_PUSH(C++)
  9208. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9209. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9210. +_LT_TAGVAR(always_export_symbols, $1)=no
  9211. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9212. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9213. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9214. +_LT_TAGVAR(hardcode_direct, $1)=no
  9215. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9216. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9217. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9218. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9219. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9220. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9221. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9222. +_LT_TAGVAR(inherit_rpath, $1)=no
  9223. +_LT_TAGVAR(module_cmds, $1)=
  9224. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9225. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9226. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9227. +_LT_TAGVAR(no_undefined_flag, $1)=
  9228. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9229. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9230. - case $host_os in
  9231. - aix*)
  9232. - # All AIX code is PIC.
  9233. - if test "$host_cpu" = ia64; then
  9234. - # AIX 5 now supports IA64 processor
  9235. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9236. - fi
  9237. - ;;
  9238. - amigaos*)
  9239. - # FIXME: we need at least 68020 code to build shared libraries, but
  9240. - # adding the `-m68020' flag to GCC prevents building anything better,
  9241. - # like `-m68040'.
  9242. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9243. - ;;
  9244. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9245. - # PIC is the default for these OSes.
  9246. - ;;
  9247. - mingw* | os2* | pw32*)
  9248. - # This hack is so that the source file can tell whether it is being
  9249. - # built for inclusion in a dll (and should export symbols for example).
  9250. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9251. - ;;
  9252. - darwin* | rhapsody*)
  9253. - # PIC is the default on this platform
  9254. - # Common symbols not allowed in MH_DYLIB files
  9255. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9256. - ;;
  9257. - *djgpp*)
  9258. - # DJGPP does not support shared libraries at all
  9259. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9260. - ;;
  9261. - interix3*)
  9262. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9263. - # Instead, we relocate shared libraries at runtime.
  9264. - ;;
  9265. - sysv4*MP*)
  9266. - if test -d /usr/nec; then
  9267. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9268. - fi
  9269. - ;;
  9270. - hpux*)
  9271. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9272. - # not for PA HP-UX.
  9273. - case $host_cpu in
  9274. - hppa*64*|ia64*)
  9275. - ;;
  9276. - *)
  9277. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9278. - ;;
  9279. - esac
  9280. - ;;
  9281. - *)
  9282. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9283. - ;;
  9284. - esac
  9285. +# Source file extension for C++ test sources.
  9286. +ac_ext=cpp
  9287. +
  9288. +# Object file extension for compiled C++ test sources.
  9289. +objext=o
  9290. +_LT_TAGVAR(objext, $1)=$objext
  9291. +
  9292. +# No sense in running all these tests if we already determined that
  9293. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9294. +# are currently assumed to apply to all compilers on this platform,
  9295. +# and will be corrupted by setting them based on a non-working compiler.
  9296. +if test "$_lt_caught_CXX_error" != yes; then
  9297. + # Code to be used in simple compile tests
  9298. + lt_simple_compile_test_code="int some_variable = 0;"
  9299. +
  9300. + # Code to be used in simple link tests
  9301. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9302. +
  9303. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9304. + _LT_TAG_COMPILER
  9305. +
  9306. + # save warnings/boilerplate of simple test code
  9307. + _LT_COMPILER_BOILERPLATE
  9308. + _LT_LINKER_BOILERPLATE
  9309. +
  9310. + # Allow CC to be a program name with arguments.
  9311. + lt_save_CC=$CC
  9312. + lt_save_LD=$LD
  9313. + lt_save_GCC=$GCC
  9314. + GCC=$GXX
  9315. + lt_save_with_gnu_ld=$with_gnu_ld
  9316. + lt_save_path_LD=$lt_cv_path_LD
  9317. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9318. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9319. + else
  9320. + $as_unset lt_cv_prog_gnu_ld
  9321. + fi
  9322. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9323. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9324. else
  9325. + $as_unset lt_cv_path_LD
  9326. + fi
  9327. + test -z "${LDCXX+set}" || LD=$LDCXX
  9328. + CC=${CXX-"c++"}
  9329. + compiler=$CC
  9330. + _LT_TAGVAR(compiler, $1)=$CC
  9331. + _LT_CC_BASENAME([$compiler])
  9332. +
  9333. + if test -n "$compiler"; then
  9334. + # We don't want -fno-exception when compiling C++ code, so set the
  9335. + # no_builtin_flag separately
  9336. + if test "$GXX" = yes; then
  9337. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9338. + else
  9339. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9340. + fi
  9341. +
  9342. + if test "$GXX" = yes; then
  9343. + # Set up default GNU C++ configuration
  9344. +
  9345. + LT_PATH_LD
  9346. +
  9347. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9348. + # archiving commands below assume that GNU ld is being used.
  9349. + if test "$with_gnu_ld" = yes; then
  9350. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9351. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9352. +
  9353. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9354. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9355. +
  9356. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9357. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9358. + # investigate it a little bit more. (MM)
  9359. + wlarc='${wl}'
  9360. +
  9361. + # ancient GNU ld didn't support --whole-archive et. al.
  9362. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9363. + $GREP 'no-whole-archive' > /dev/null; then
  9364. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9365. + else
  9366. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9367. + fi
  9368. + else
  9369. + with_gnu_ld=no
  9370. + wlarc=
  9371. +
  9372. + # A generic and very simple default shared library creation
  9373. + # command for GNU C++ for the case where it uses the native
  9374. + # linker, instead of GNU ld. If possible, this setting should
  9375. + # overridden to take advantage of the native linker features on
  9376. + # the platform it is being used on.
  9377. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9378. + fi
  9379. +
  9380. + # Commands to make compiler produce verbose output that lists
  9381. + # what "hidden" libraries, object files and flags are used when
  9382. + # linking a shared library.
  9383. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9384. +
  9385. + else
  9386. + GXX=no
  9387. + with_gnu_ld=no
  9388. + wlarc=
  9389. + fi
  9390. +
  9391. + # PORTME: fill in a description of your system's C++ link characteristics
  9392. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9393. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9394. case $host_os in
  9395. - aix4* | aix5*)
  9396. - # All AIX code is PIC.
  9397. - if test "$host_cpu" = ia64; then
  9398. - # AIX 5 now supports IA64 processor
  9399. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9400. + aix3*)
  9401. + # FIXME: insert proper C++ library support
  9402. + _LT_TAGVAR(ld_shlibs, $1)=no
  9403. + ;;
  9404. + aix[[4-9]]*)
  9405. + if test "$host_cpu" = ia64; then
  9406. + # On IA64, the linker does run time linking by default, so we don't
  9407. + # have to do anything special.
  9408. + aix_use_runtimelinking=no
  9409. + exp_sym_flag='-Bexport'
  9410. + no_entry_flag=""
  9411. + else
  9412. + aix_use_runtimelinking=no
  9413. +
  9414. + # Test if we are trying to use run time linking or normal
  9415. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9416. + # need to do runtime linking.
  9417. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9418. + for ld_flag in $LDFLAGS; do
  9419. + case $ld_flag in
  9420. + *-brtl*)
  9421. + aix_use_runtimelinking=yes
  9422. + break
  9423. + ;;
  9424. + esac
  9425. + done
  9426. + ;;
  9427. + esac
  9428. +
  9429. + exp_sym_flag='-bexport'
  9430. + no_entry_flag='-bnoentry'
  9431. + fi
  9432. +
  9433. + # When large executables or shared objects are built, AIX ld can
  9434. + # have problems creating the table of contents. If linking a library
  9435. + # or program results in "error TOC overflow" add -mminimal-toc to
  9436. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9437. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9438. +
  9439. + _LT_TAGVAR(archive_cmds, $1)=''
  9440. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9441. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9442. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9443. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9444. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9445. +
  9446. + if test "$GXX" = yes; then
  9447. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9448. + # We only want to do this on AIX 4.2 and lower, the check
  9449. + # below for broken collect2 doesn't work under 4.3+
  9450. + collect2name=`${CC} -print-prog-name=collect2`
  9451. + if test -f "$collect2name" &&
  9452. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9453. + then
  9454. + # We have reworked collect2
  9455. + :
  9456. + else
  9457. + # We have old collect2
  9458. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9459. + # It fails to find uninstalled libraries when the uninstalled
  9460. + # path is not listed in the libpath. Setting hardcode_minus_L
  9461. + # to unsupported forces relinking
  9462. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9463. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9464. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9465. + fi
  9466. + esac
  9467. + shared_flag='-shared'
  9468. + if test "$aix_use_runtimelinking" = yes; then
  9469. + shared_flag="$shared_flag "'${wl}-G'
  9470. + fi
  9471. + else
  9472. + # not using gcc
  9473. + if test "$host_cpu" = ia64; then
  9474. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9475. + # chokes on -Wl,-G. The following line is correct:
  9476. + shared_flag='-G'
  9477. + else
  9478. + if test "$aix_use_runtimelinking" = yes; then
  9479. + shared_flag='${wl}-G'
  9480. + else
  9481. + shared_flag='${wl}-bM:SRE'
  9482. + fi
  9483. + fi
  9484. + fi
  9485. +
  9486. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9487. + # It seems that -bexpall does not export symbols beginning with
  9488. + # underscore (_), so it is better to generate a list of symbols to
  9489. + # export.
  9490. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9491. + if test "$aix_use_runtimelinking" = yes; then
  9492. + # Warning - without using the other runtime loading flags (-brtl),
  9493. + # -berok will link without error, but may produce a broken library.
  9494. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9495. + # Determine the default libpath from the value encoded in an empty
  9496. + # executable.
  9497. + _LT_SYS_MODULE_PATH_AIX
  9498. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9499. +
  9500. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9501. + else
  9502. + if test "$host_cpu" = ia64; then
  9503. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9504. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9505. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9506. + else
  9507. + # Determine the default libpath from the value encoded in an
  9508. + # empty executable.
  9509. + _LT_SYS_MODULE_PATH_AIX
  9510. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9511. + # Warning - without using the other run time loading flags,
  9512. + # -berok will link without error, but may produce a broken library.
  9513. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9514. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9515. + # Exported symbols can be pulled into shared objects from archives
  9516. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9517. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9518. + # This is similar to how AIX traditionally builds its shared
  9519. + # libraries.
  9520. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9521. + fi
  9522. + fi
  9523. + ;;
  9524. +
  9525. + beos*)
  9526. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9527. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9528. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9529. + # support --undefined. This deserves some investigation. FIXME
  9530. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9531. else
  9532. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9533. + _LT_TAGVAR(ld_shlibs, $1)=no
  9534. fi
  9535. ;;
  9536. +
  9537. chorus*)
  9538. - case $cc_basename in
  9539. - cxch68*)
  9540. - # Green Hills C++ Compiler
  9541. - # _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"
  9542. + case $cc_basename in
  9543. + *)
  9544. + # FIXME: insert proper C++ library support
  9545. + _LT_TAGVAR(ld_shlibs, $1)=no
  9546. ;;
  9547. - esac
  9548. + esac
  9549. + ;;
  9550. +
  9551. + cygwin* | mingw* | pw32* | cegcc*)
  9552. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9553. + # as there is no search path for DLLs.
  9554. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9555. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9556. + _LT_TAGVAR(always_export_symbols, $1)=no
  9557. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9558. +
  9559. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9560. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9561. + # If the export-symbols file already is a .def file (1st line
  9562. + # is EXPORTS), use it as is; otherwise, prepend...
  9563. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9564. + cp $export_symbols $output_objdir/$soname.def;
  9565. + else
  9566. + echo EXPORTS > $output_objdir/$soname.def;
  9567. + cat $export_symbols >> $output_objdir/$soname.def;
  9568. + fi~
  9569. + $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'
  9570. + else
  9571. + _LT_TAGVAR(ld_shlibs, $1)=no
  9572. + fi
  9573. + ;;
  9574. + darwin* | rhapsody*)
  9575. + _LT_DARWIN_LINKER_FEATURES($1)
  9576. ;;
  9577. - darwin*)
  9578. - # PIC is the default on this platform
  9579. - # Common symbols not allowed in MH_DYLIB files
  9580. - case $cc_basename in
  9581. - xlc*)
  9582. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9583. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9584. - ;;
  9585. - esac
  9586. - ;;
  9587. +
  9588. dgux*)
  9589. - case $cc_basename in
  9590. - ec++*)
  9591. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9592. + case $cc_basename in
  9593. + ec++*)
  9594. + # FIXME: insert proper C++ library support
  9595. + _LT_TAGVAR(ld_shlibs, $1)=no
  9596. ;;
  9597. - ghcx*)
  9598. + ghcx*)
  9599. # Green Hills C++ Compiler
  9600. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9601. + # FIXME: insert proper C++ library support
  9602. + _LT_TAGVAR(ld_shlibs, $1)=no
  9603. ;;
  9604. - *)
  9605. + *)
  9606. + # FIXME: insert proper C++ library support
  9607. + _LT_TAGVAR(ld_shlibs, $1)=no
  9608. ;;
  9609. - esac
  9610. - ;;
  9611. - freebsd* | kfreebsd*-gnu | dragonfly*)
  9612. - # FreeBSD uses GNU C++
  9613. - ;;
  9614. - hpux9* | hpux10* | hpux11*)
  9615. - case $cc_basename in
  9616. - CC*)
  9617. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9618. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9619. - if test "$host_cpu" != ia64; then
  9620. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9621. - fi
  9622. + esac
  9623. + ;;
  9624. +
  9625. + freebsd[[12]]*)
  9626. + # C++ shared libraries reported to be fairly broken before
  9627. + # switch to ELF
  9628. + _LT_TAGVAR(ld_shlibs, $1)=no
  9629. + ;;
  9630. +
  9631. + freebsd-elf*)
  9632. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9633. + ;;
  9634. +
  9635. + freebsd* | dragonfly*)
  9636. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9637. + # conventions
  9638. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9639. + ;;
  9640. +
  9641. + gnu*)
  9642. + ;;
  9643. +
  9644. + hpux9*)
  9645. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9646. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9647. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9648. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9649. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9650. + # but as the default
  9651. + # location of the library.
  9652. +
  9653. + case $cc_basename in
  9654. + CC*)
  9655. + # FIXME: insert proper C++ library support
  9656. + _LT_TAGVAR(ld_shlibs, $1)=no
  9657. + ;;
  9658. + aCC*)
  9659. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9660. + # Commands to make compiler produce verbose output that lists
  9661. + # what "hidden" libraries, object files and flags are used when
  9662. + # linking a shared library.
  9663. + #
  9664. + # There doesn't appear to be a way to prevent this compiler from
  9665. + # explicitly linking system object files so we need to strip them
  9666. + # from the output so that they don't get included in the library
  9667. + # dependencies.
  9668. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9669. + ;;
  9670. + *)
  9671. + if test "$GXX" = yes; then
  9672. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9673. + else
  9674. + # FIXME: insert proper C++ library support
  9675. + _LT_TAGVAR(ld_shlibs, $1)=no
  9676. + fi
  9677. + ;;
  9678. + esac
  9679. + ;;
  9680. +
  9681. + hpux10*|hpux11*)
  9682. + if test $with_gnu_ld = no; then
  9683. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9684. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9685. +
  9686. + case $host_cpu in
  9687. + hppa*64*|ia64*)
  9688. + ;;
  9689. + *)
  9690. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9691. + ;;
  9692. + esac
  9693. + fi
  9694. + case $host_cpu in
  9695. + hppa*64*|ia64*)
  9696. + _LT_TAGVAR(hardcode_direct, $1)=no
  9697. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9698. + ;;
  9699. + *)
  9700. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9701. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9702. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9703. + # but as the default
  9704. + # location of the library.
  9705. + ;;
  9706. + esac
  9707. +
  9708. + case $cc_basename in
  9709. + CC*)
  9710. + # FIXME: insert proper C++ library support
  9711. + _LT_TAGVAR(ld_shlibs, $1)=no
  9712. ;;
  9713. - aCC*)
  9714. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9715. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9716. + aCC*)
  9717. case $host_cpu in
  9718. - hppa*64*|ia64*)
  9719. - # +Z the default
  9720. - ;;
  9721. - *)
  9722. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9723. - ;;
  9724. + hppa*64*)
  9725. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9726. + ;;
  9727. + ia64*)
  9728. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9729. + ;;
  9730. + *)
  9731. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9732. + ;;
  9733. esac
  9734. + # Commands to make compiler produce verbose output that lists
  9735. + # what "hidden" libraries, object files and flags are used when
  9736. + # linking a shared library.
  9737. + #
  9738. + # There doesn't appear to be a way to prevent this compiler from
  9739. + # explicitly linking system object files so we need to strip them
  9740. + # from the output so that they don't get included in the library
  9741. + # dependencies.
  9742. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9743. ;;
  9744. - *)
  9745. + *)
  9746. + if test "$GXX" = yes; then
  9747. + if test $with_gnu_ld = no; then
  9748. + case $host_cpu in
  9749. + hppa*64*)
  9750. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9751. + ;;
  9752. + ia64*)
  9753. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9754. + ;;
  9755. + *)
  9756. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9757. + ;;
  9758. + esac
  9759. + fi
  9760. + else
  9761. + # FIXME: insert proper C++ library support
  9762. + _LT_TAGVAR(ld_shlibs, $1)=no
  9763. + fi
  9764. ;;
  9765. - esac
  9766. - ;;
  9767. - interix*)
  9768. - # This is c89, which is MS Visual C++ (no shared libs)
  9769. - # Anyone wants to do a port?
  9770. - ;;
  9771. - irix5* | irix6* | nonstopux*)
  9772. - case $cc_basename in
  9773. - CC*)
  9774. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9775. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9776. - # CC pic flag -KPIC is the default.
  9777. + esac
  9778. + ;;
  9779. +
  9780. + interix[[3-9]]*)
  9781. + _LT_TAGVAR(hardcode_direct, $1)=no
  9782. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9783. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9784. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9785. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9786. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9787. + # default) and relocated if they conflict, which is a slow very memory
  9788. + # consuming and fragmenting process. To avoid this, we pick a random,
  9789. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9790. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9791. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9792. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9793. + ;;
  9794. + irix5* | irix6*)
  9795. + case $cc_basename in
  9796. + CC*)
  9797. + # SGI C++
  9798. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9799. +
  9800. + # Archives containing C++ object files must be created using
  9801. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9802. + # necessary to make sure instantiated templates are included
  9803. + # in the archive.
  9804. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9805. ;;
  9806. - *)
  9807. + *)
  9808. + if test "$GXX" = yes; then
  9809. + if test "$with_gnu_ld" = no; then
  9810. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9811. + else
  9812. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  9813. + fi
  9814. + fi
  9815. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9816. ;;
  9817. - esac
  9818. - ;;
  9819. - linux*)
  9820. - case $cc_basename in
  9821. - KCC*)
  9822. - # KAI C++ Compiler
  9823. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9824. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9825. + esac
  9826. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9827. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9828. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9829. + ;;
  9830. +
  9831. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9832. + case $cc_basename in
  9833. + KCC*)
  9834. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9835. +
  9836. + # KCC will only create a shared library if the output file
  9837. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9838. + # to its proper name (with version) after linking.
  9839. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9840. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9841. + # Commands to make compiler produce verbose output that lists
  9842. + # what "hidden" libraries, object files and flags are used when
  9843. + # linking a shared library.
  9844. + #
  9845. + # There doesn't appear to be a way to prevent this compiler from
  9846. + # explicitly linking system object files so we need to strip them
  9847. + # from the output so that they don't get included in the library
  9848. + # dependencies.
  9849. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9850. +
  9851. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9852. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9853. +
  9854. + # Archives containing C++ object files must be created using
  9855. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9856. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9857. ;;
  9858. - icpc* | ecpc*)
  9859. + icpc* | ecpc* )
  9860. # Intel C++
  9861. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9862. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9863. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9864. - ;;
  9865. - pgCC*)
  9866. - # Portland Group C++ compiler.
  9867. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9868. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9869. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9870. + with_gnu_ld=yes
  9871. + # version 8.0 and above of icpc choke on multiply defined symbols
  9872. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9873. + # earlier do not add the objects themselves.
  9874. + case `$CC -V 2>&1` in
  9875. + *"Version 7."*)
  9876. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9877. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9878. + ;;
  9879. + *) # Version 8.0 or newer
  9880. + tmp_idyn=
  9881. + case $host_cpu in
  9882. + ia64*) tmp_idyn=' -i_dynamic';;
  9883. + esac
  9884. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9885. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9886. + ;;
  9887. + esac
  9888. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9889. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9890. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9891. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9892. ;;
  9893. + pgCC* | pgcpp*)
  9894. + # Portland Group C++ compiler
  9895. + case `$CC -V` in
  9896. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9897. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9898. + rm -rf $tpldir~
  9899. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9900. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9901. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9902. + rm -rf $tpldir~
  9903. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9904. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9905. + $RANLIB $oldlib'
  9906. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9907. + rm -rf $tpldir~
  9908. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9909. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9910. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9911. + rm -rf $tpldir~
  9912. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9913. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9914. + ;;
  9915. + *) # Version 6 will use weak symbols
  9916. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9917. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9918. + ;;
  9919. + esac
  9920. +
  9921. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9922. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9923. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9924. + ;;
  9925. cxx*)
  9926. # Compaq C++
  9927. - # Make sure the PIC flag is empty. It appears that all Alpha
  9928. - # Linux and Compaq Tru64 Unix objects are PIC.
  9929. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9930. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9931. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9932. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9933. +
  9934. + runpath_var=LD_RUN_PATH
  9935. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9936. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9937. +
  9938. + # Commands to make compiler produce verbose output that lists
  9939. + # what "hidden" libraries, object files and flags are used when
  9940. + # linking a shared library.
  9941. + #
  9942. + # There doesn't appear to be a way to prevent this compiler from
  9943. + # explicitly linking system object files so we need to strip them
  9944. + # from the output so that they don't get included in the library
  9945. + # dependencies.
  9946. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9947. + ;;
  9948. + xl*)
  9949. + # IBM XL 8.0 on PPC, with GNU ld
  9950. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9951. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9952. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9953. + if test "x$supports_anon_versioning" = xyes; then
  9954. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9955. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9956. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9957. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9958. + fi
  9959. ;;
  9960. *)
  9961. + case `$CC -V 2>&1 | sed 5q` in
  9962. + *Sun\ C*)
  9963. + # Sun C++ 5.9
  9964. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9965. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9966. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  9967. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9968. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9969. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9970. +
  9971. + # Not sure whether something based on
  9972. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9973. + # would be better.
  9974. + output_verbose_link_cmd='echo'
  9975. +
  9976. + # Archives containing C++ object files must be created using
  9977. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9978. + # necessary to make sure instantiated templates are included
  9979. + # in the archive.
  9980. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9981. + ;;
  9982. + esac
  9983. ;;
  9984. esac
  9985. ;;
  9986. +
  9987. lynxos*)
  9988. + # FIXME: insert proper C++ library support
  9989. + _LT_TAGVAR(ld_shlibs, $1)=no
  9990. ;;
  9991. +
  9992. m88k*)
  9993. + # FIXME: insert proper C++ library support
  9994. + _LT_TAGVAR(ld_shlibs, $1)=no
  9995. ;;
  9996. +
  9997. mvs*)
  9998. - case $cc_basename in
  9999. - cxx*)
  10000. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  10001. + case $cc_basename in
  10002. + cxx*)
  10003. + # FIXME: insert proper C++ library support
  10004. + _LT_TAGVAR(ld_shlibs, $1)=no
  10005. ;;
  10006. *)
  10007. + # FIXME: insert proper C++ library support
  10008. + _LT_TAGVAR(ld_shlibs, $1)=no
  10009. ;;
  10010. esac
  10011. ;;
  10012. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  10013. +
  10014. + netbsd*)
  10015. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10016. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10017. + wlarc=
  10018. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10019. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10020. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10021. + fi
  10022. + # Workaround some broken pre-1.5 toolchains
  10023. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10024. + ;;
  10025. +
  10026. + *nto* | *qnx*)
  10027. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10028. + ;;
  10029. +
  10030. + openbsd2*)
  10031. + # C++ shared libraries are fairly broken
  10032. + _LT_TAGVAR(ld_shlibs, $1)=no
  10033. + ;;
  10034. +
  10035. + openbsd*)
  10036. + if test -f /usr/libexec/ld.so; then
  10037. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10038. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10039. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10040. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10041. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10042. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10043. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10044. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10045. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10046. + fi
  10047. + output_verbose_link_cmd=echo
  10048. + else
  10049. + _LT_TAGVAR(ld_shlibs, $1)=no
  10050. + fi
  10051. ;;
  10052. +
  10053. osf3* | osf4* | osf5*)
  10054. - case $cc_basename in
  10055. - KCC*)
  10056. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10057. + case $cc_basename in
  10058. + KCC*)
  10059. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10060. +
  10061. + # KCC will only create a shared library if the output file
  10062. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10063. + # to its proper name (with version) after linking.
  10064. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10065. +
  10066. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10067. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10068. +
  10069. + # Archives containing C++ object files must be created using
  10070. + # the KAI C++ compiler.
  10071. + case $host in
  10072. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10073. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10074. + esac
  10075. ;;
  10076. - RCC*)
  10077. + RCC*)
  10078. # Rational C++ 2.4.1
  10079. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10080. + # FIXME: insert proper C++ library support
  10081. + _LT_TAGVAR(ld_shlibs, $1)=no
  10082. ;;
  10083. - cxx*)
  10084. - # Digital/Compaq C++
  10085. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10086. - # Make sure the PIC flag is empty. It appears that all Alpha
  10087. - # Linux and Compaq Tru64 Unix objects are PIC.
  10088. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10089. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10090. + cxx*)
  10091. + case $host in
  10092. + osf3*)
  10093. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10094. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10095. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10096. + ;;
  10097. + *)
  10098. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10099. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10100. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10101. + echo "-hidden">> $lib.exp~
  10102. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10103. + $RM $lib.exp'
  10104. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10105. + ;;
  10106. + esac
  10107. +
  10108. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10109. +
  10110. + # Commands to make compiler produce verbose output that lists
  10111. + # what "hidden" libraries, object files and flags are used when
  10112. + # linking a shared library.
  10113. + #
  10114. + # There doesn't appear to be a way to prevent this compiler from
  10115. + # explicitly linking system object files so we need to strip them
  10116. + # from the output so that they don't get included in the library
  10117. + # dependencies.
  10118. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10119. ;;
  10120. *)
  10121. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10122. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10123. + case $host in
  10124. + osf3*)
  10125. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10126. + ;;
  10127. + *)
  10128. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10129. + ;;
  10130. + esac
  10131. +
  10132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10133. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10134. +
  10135. + # Commands to make compiler produce verbose output that lists
  10136. + # what "hidden" libraries, object files and flags are used when
  10137. + # linking a shared library.
  10138. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10139. +
  10140. + else
  10141. + # FIXME: insert proper C++ library support
  10142. + _LT_TAGVAR(ld_shlibs, $1)=no
  10143. + fi
  10144. ;;
  10145. - esac
  10146. - ;;
  10147. + esac
  10148. + ;;
  10149. +
  10150. psos*)
  10151. - ;;
  10152. - solaris*)
  10153. - case $cc_basename in
  10154. - CC*)
  10155. - # Sun C++ 4.2, 5.x and Centerline C++
  10156. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10157. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10158. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10159. - ;;
  10160. - gcx*)
  10161. - # Green Hills C++ Compiler
  10162. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10163. - ;;
  10164. - *)
  10165. - ;;
  10166. - esac
  10167. - ;;
  10168. + # FIXME: insert proper C++ library support
  10169. + _LT_TAGVAR(ld_shlibs, $1)=no
  10170. + ;;
  10171. +
  10172. sunos4*)
  10173. - case $cc_basename in
  10174. - CC*)
  10175. + case $cc_basename in
  10176. + CC*)
  10177. # Sun C++ 4.x
  10178. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10179. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10180. + # FIXME: insert proper C++ library support
  10181. + _LT_TAGVAR(ld_shlibs, $1)=no
  10182. ;;
  10183. - lcc*)
  10184. + lcc*)
  10185. # Lucid
  10186. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10187. - ;;
  10188. - *)
  10189. - ;;
  10190. - esac
  10191. - ;;
  10192. - tandem*)
  10193. - case $cc_basename in
  10194. - NCC*)
  10195. - # NonStop-UX NCC 3.20
  10196. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10197. + # FIXME: insert proper C++ library support
  10198. + _LT_TAGVAR(ld_shlibs, $1)=no
  10199. ;;
  10200. - *)
  10201. + *)
  10202. + # FIXME: insert proper C++ library support
  10203. + _LT_TAGVAR(ld_shlibs, $1)=no
  10204. ;;
  10205. - esac
  10206. - ;;
  10207. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10208. + esac
  10209. + ;;
  10210. +
  10211. + solaris*)
  10212. + case $cc_basename in
  10213. + CC*)
  10214. + # Sun C++ 4.2, 5.x and Centerline C++
  10215. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10216. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10217. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10218. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10219. + $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'
  10220. +
  10221. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10222. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10223. + case $host_os in
  10224. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10225. + *)
  10226. + # The compiler driver will combine and reorder linker options,
  10227. + # but understands `-z linker_flag'.
  10228. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10229. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10230. + ;;
  10231. + esac
  10232. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10233. +
  10234. + output_verbose_link_cmd='echo'
  10235. +
  10236. + # Archives containing C++ object files must be created using
  10237. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10238. + # necessary to make sure instantiated templates are included
  10239. + # in the archive.
  10240. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10241. + ;;
  10242. + gcx*)
  10243. + # Green Hills C++ Compiler
  10244. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10245. +
  10246. + # The C++ compiler must be used to create the archive.
  10247. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10248. + ;;
  10249. + *)
  10250. + # GNU C++ compiler with Solaris linker
  10251. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10252. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10253. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10254. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10255. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10256. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10257. +
  10258. + # Commands to make compiler produce verbose output that lists
  10259. + # what "hidden" libraries, object files and flags are used when
  10260. + # linking a shared library.
  10261. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10262. + else
  10263. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10264. + # platform.
  10265. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10266. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10267. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10268. +
  10269. + # Commands to make compiler produce verbose output that lists
  10270. + # what "hidden" libraries, object files and flags are used when
  10271. + # linking a shared library.
  10272. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10273. + fi
  10274. +
  10275. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10276. + case $host_os in
  10277. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10278. + *)
  10279. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10280. + ;;
  10281. + esac
  10282. + fi
  10283. + ;;
  10284. + esac
  10285. + ;;
  10286. +
  10287. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10288. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10289. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10290. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10291. + runpath_var='LD_RUN_PATH'
  10292. +
  10293. + case $cc_basename in
  10294. + CC*)
  10295. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10296. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10297. + ;;
  10298. + *)
  10299. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10300. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10301. + ;;
  10302. + esac
  10303. + ;;
  10304. +
  10305. + sysv5* | sco3.2v5* | sco5v6*)
  10306. + # Note: We can NOT use -z defs as we might desire, because we do not
  10307. + # link with -lc, and that would cause any symbols used from libc to
  10308. + # always be unresolved, which means just about no library would
  10309. + # ever link correctly. If we're not using GNU ld we use -z text
  10310. + # though, which does catch some bad symbols but isn't as heavy-handed
  10311. + # as -z defs.
  10312. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10313. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10314. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10315. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10316. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10317. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10318. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10319. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10320. + runpath_var='LD_RUN_PATH'
  10321. +
  10322. case $cc_basename in
  10323. - CC*)
  10324. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10325. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10326. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10327. + CC*)
  10328. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10329. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10330. + ;;
  10331. + *)
  10332. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10333. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10334. ;;
  10335. esac
  10336. - ;;
  10337. + ;;
  10338. +
  10339. + tandem*)
  10340. + case $cc_basename in
  10341. + NCC*)
  10342. + # NonStop-UX NCC 3.20
  10343. + # FIXME: insert proper C++ library support
  10344. + _LT_TAGVAR(ld_shlibs, $1)=no
  10345. + ;;
  10346. + *)
  10347. + # FIXME: insert proper C++ library support
  10348. + _LT_TAGVAR(ld_shlibs, $1)=no
  10349. + ;;
  10350. + esac
  10351. + ;;
  10352. +
  10353. vxworks*)
  10354. - ;;
  10355. + # FIXME: insert proper C++ library support
  10356. + _LT_TAGVAR(ld_shlibs, $1)=no
  10357. + ;;
  10358. +
  10359. *)
  10360. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10361. - ;;
  10362. + # FIXME: insert proper C++ library support
  10363. + _LT_TAGVAR(ld_shlibs, $1)=no
  10364. + ;;
  10365. esac
  10366. - fi
  10367. -],
  10368. +
  10369. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10370. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10371. +
  10372. + _LT_TAGVAR(GCC, $1)="$GXX"
  10373. + _LT_TAGVAR(LD, $1)="$LD"
  10374. +
  10375. + ## CAVEAT EMPTOR:
  10376. + ## There is no encapsulation within the following macros, do not change
  10377. + ## the running order or otherwise move them around unless you know exactly
  10378. + ## what you are doing...
  10379. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10380. + _LT_COMPILER_PIC($1)
  10381. + _LT_COMPILER_C_O($1)
  10382. + _LT_COMPILER_FILE_LOCKS($1)
  10383. + _LT_LINKER_SHLIBS($1)
  10384. + _LT_SYS_DYNAMIC_LINKER($1)
  10385. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10386. +
  10387. + _LT_CONFIG($1)
  10388. + fi # test -n "$compiler"
  10389. +
  10390. + CC=$lt_save_CC
  10391. + LDCXX=$LD
  10392. + LD=$lt_save_LD
  10393. + GCC=$lt_save_GCC
  10394. + with_gnu_ld=$lt_save_with_gnu_ld
  10395. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10396. + lt_cv_path_LD=$lt_save_path_LD
  10397. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10398. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10399. +fi # test "$_lt_caught_CXX_error" != yes
  10400. +
  10401. +AC_LANG_POP
  10402. +])# _LT_LANG_CXX_CONFIG
  10403. +
  10404. +
  10405. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10406. +# ---------------------------------
  10407. +# Figure out "hidden" library dependencies from verbose
  10408. +# compiler output when linking a shared library.
  10409. +# Parse the compiler output and extract the necessary
  10410. +# objects, libraries and library flags.
  10411. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10412. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10413. +# Dependencies to place before and after the object being linked:
  10414. +_LT_TAGVAR(predep_objects, $1)=
  10415. +_LT_TAGVAR(postdep_objects, $1)=
  10416. +_LT_TAGVAR(predeps, $1)=
  10417. +_LT_TAGVAR(postdeps, $1)=
  10418. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10419. +
  10420. +dnl we can't use the lt_simple_compile_test_code here,
  10421. +dnl because it contains code intended for an executable,
  10422. +dnl not a library. It's possible we should let each
  10423. +dnl tag define a new lt_????_link_test_code variable,
  10424. +dnl but it's only used here...
  10425. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10426. +int a;
  10427. +void foo (void) { a = 0; }
  10428. +_LT_EOF
  10429. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10430. +class Foo
  10431. +{
  10432. +public:
  10433. + Foo (void) { a = 0; }
  10434. +private:
  10435. + int a;
  10436. +};
  10437. +_LT_EOF
  10438. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10439. + subroutine foo
  10440. + implicit none
  10441. + integer*4 a
  10442. + a=0
  10443. + return
  10444. + end
  10445. +_LT_EOF
  10446. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10447. + subroutine foo
  10448. + implicit none
  10449. + integer a
  10450. + a=0
  10451. + return
  10452. + end
  10453. +_LT_EOF
  10454. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10455. +public class foo {
  10456. + private int a;
  10457. + public void bar (void) {
  10458. + a = 0;
  10459. + }
  10460. +};
  10461. +_LT_EOF
  10462. +])
  10463. +dnl Parse the compiler output and extract the necessary
  10464. +dnl objects, libraries and library flags.
  10465. +if AC_TRY_EVAL(ac_compile); then
  10466. + # Parse the compiler output and extract the necessary
  10467. + # objects, libraries and library flags.
  10468. +
  10469. + # Sentinel used to keep track of whether or not we are before
  10470. + # the conftest object file.
  10471. + pre_test_object_deps_done=no
  10472. +
  10473. + for p in `eval "$output_verbose_link_cmd"`; do
  10474. + case $p in
  10475. +
  10476. + -L* | -R* | -l*)
  10477. + # Some compilers place space between "-{L,R}" and the path.
  10478. + # Remove the space.
  10479. + if test $p = "-L" ||
  10480. + test $p = "-R"; then
  10481. + prev=$p
  10482. + continue
  10483. + else
  10484. + prev=
  10485. + fi
  10486. +
  10487. + if test "$pre_test_object_deps_done" = no; then
  10488. + case $p in
  10489. + -L* | -R*)
  10490. + # Internal compiler library paths should come after those
  10491. + # provided the user. The postdeps already come after the
  10492. + # user supplied libs so there is no need to process them.
  10493. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10494. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10495. + else
  10496. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10497. + fi
  10498. + ;;
  10499. + # The "-l" case would never come before the object being
  10500. + # linked, so don't bother handling this case.
  10501. + esac
  10502. + else
  10503. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10504. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10505. + else
  10506. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10507. + fi
  10508. + fi
  10509. + ;;
  10510. +
  10511. + *.$objext)
  10512. + # This assumes that the test object file only shows up
  10513. + # once in the compiler output.
  10514. + if test "$p" = "conftest.$objext"; then
  10515. + pre_test_object_deps_done=yes
  10516. + continue
  10517. + fi
  10518. +
  10519. + if test "$pre_test_object_deps_done" = no; then
  10520. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10521. + _LT_TAGVAR(predep_objects, $1)="$p"
  10522. + else
  10523. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10524. + fi
  10525. + else
  10526. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10527. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10528. + else
  10529. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10530. + fi
  10531. + fi
  10532. + ;;
  10533. +
  10534. + *) ;; # Ignore the rest.
  10535. +
  10536. + esac
  10537. + done
  10538. +
  10539. + # Clean up.
  10540. + rm -f a.out a.exe
  10541. +else
  10542. + echo "libtool.m4: error: problem compiling $1 test program"
  10543. +fi
  10544. +
  10545. +$RM -f confest.$objext
  10546. +
  10547. +# PORTME: override above test on systems where it is broken
  10548. +m4_if([$1], [CXX],
  10549. +[case $host_os in
  10550. +interix[[3-9]]*)
  10551. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10552. + # hack all around it, let's just trust "g++" to DTRT.
  10553. + _LT_TAGVAR(predep_objects,$1)=
  10554. + _LT_TAGVAR(postdep_objects,$1)=
  10555. + _LT_TAGVAR(postdeps,$1)=
  10556. + ;;
  10557. +
  10558. +linux*)
  10559. + case `$CC -V 2>&1 | sed 5q` in
  10560. + *Sun\ C*)
  10561. + # Sun C++ 5.9
  10562. +
  10563. + # The more standards-conforming stlport4 library is
  10564. + # incompatible with the Cstd library. Avoid specifying
  10565. + # it if it's in CXXFLAGS. Ignore libCrun as
  10566. + # -library=stlport4 depends on it.
  10567. + case " $CXX $CXXFLAGS " in
  10568. + *" -library=stlport4 "*)
  10569. + solaris_use_stlport4=yes
  10570. + ;;
  10571. + esac
  10572. +
  10573. + if test "$solaris_use_stlport4" != yes; then
  10574. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10575. + fi
  10576. + ;;
  10577. + esac
  10578. + ;;
  10579. +
  10580. +solaris*)
  10581. + case $cc_basename in
  10582. + CC*)
  10583. + # The more standards-conforming stlport4 library is
  10584. + # incompatible with the Cstd library. Avoid specifying
  10585. + # it if it's in CXXFLAGS. Ignore libCrun as
  10586. + # -library=stlport4 depends on it.
  10587. + case " $CXX $CXXFLAGS " in
  10588. + *" -library=stlport4 "*)
  10589. + solaris_use_stlport4=yes
  10590. + ;;
  10591. + esac
  10592. +
  10593. + # Adding this requires a known-good setup of shared libraries for
  10594. + # Sun compiler versions before 5.6, else PIC objects from an old
  10595. + # archive will be linked into the output, leading to subtle bugs.
  10596. + if test "$solaris_use_stlport4" != yes; then
  10597. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10598. + fi
  10599. + ;;
  10600. + esac
  10601. + ;;
  10602. +esac
  10603. +])
  10604. +
  10605. +case " $_LT_TAGVAR(postdeps, $1) " in
  10606. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10607. +esac
  10608. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10609. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10610. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10611. +fi
  10612. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10613. + [The directories searched by this compiler when creating a shared library])
  10614. +_LT_TAGDECL([], [predep_objects], [1],
  10615. + [Dependencies to place before and after the objects being linked to
  10616. + create a shared library])
  10617. +_LT_TAGDECL([], [postdep_objects], [1])
  10618. +_LT_TAGDECL([], [predeps], [1])
  10619. +_LT_TAGDECL([], [postdeps], [1])
  10620. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10621. + [The library search path used internally by the compiler when linking
  10622. + a shared library])
  10623. +])# _LT_SYS_HIDDEN_LIBDEPS
  10624. +
  10625. +
  10626. +# _LT_PROG_F77
  10627. +# ------------
  10628. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10629. +# if there is no fortran compiler, we have our own version here.
  10630. +m4_defun([_LT_PROG_F77],
  10631. [
  10632. - if test "$GCC" = yes; then
  10633. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10634. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10635. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10636. +AC_PROG_F77
  10637. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10638. + _lt_disable_F77=yes
  10639. +fi
  10640. +popdef([AC_MSG_ERROR])
  10641. +])# _LT_PROG_F77
  10642. +
  10643. +dnl aclocal-1.4 backwards compatibility:
  10644. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10645. +
  10646. +
  10647. +# _LT_LANG_F77_CONFIG([TAG])
  10648. +# --------------------------
  10649. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10650. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10651. +# to write the compiler configuration to `libtool'.
  10652. +m4_defun([_LT_LANG_F77_CONFIG],
  10653. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10654. +AC_LANG_PUSH(Fortran 77)
  10655. +
  10656. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10657. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10658. +_LT_TAGVAR(always_export_symbols, $1)=no
  10659. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10660. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10661. +_LT_TAGVAR(hardcode_direct, $1)=no
  10662. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10663. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10664. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10665. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10666. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10667. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10668. +_LT_TAGVAR(inherit_rpath, $1)=no
  10669. +_LT_TAGVAR(module_cmds, $1)=
  10670. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10671. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10672. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10673. +_LT_TAGVAR(no_undefined_flag, $1)=
  10674. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10675. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10676. +
  10677. +# Source file extension for f77 test sources.
  10678. +ac_ext=f
  10679. +
  10680. +# Object file extension for compiled f77 test sources.
  10681. +objext=o
  10682. +_LT_TAGVAR(objext, $1)=$objext
  10683. +
  10684. +# No sense in running all these tests if we already determined that
  10685. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10686. +# are currently assumed to apply to all compilers on this platform,
  10687. +# and will be corrupted by setting them based on a non-working compiler.
  10688. +if test "$_lt_disable_F77" != yes; then
  10689. + # Code to be used in simple compile tests
  10690. + lt_simple_compile_test_code="\
  10691. + subroutine t
  10692. + return
  10693. + end
  10694. +"
  10695. +
  10696. + # Code to be used in simple link tests
  10697. + lt_simple_link_test_code="\
  10698. + program t
  10699. + end
  10700. +"
  10701. +
  10702. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10703. + _LT_TAG_COMPILER
  10704. +
  10705. + # save warnings/boilerplate of simple test code
  10706. + _LT_COMPILER_BOILERPLATE
  10707. + _LT_LINKER_BOILERPLATE
  10708. +
  10709. + # Allow CC to be a program name with arguments.
  10710. + lt_save_CC="$CC"
  10711. + lt_save_GCC=$GCC
  10712. + CC=${F77-"f77"}
  10713. + compiler=$CC
  10714. + _LT_TAGVAR(compiler, $1)=$CC
  10715. + _LT_CC_BASENAME([$compiler])
  10716. + GCC=$G77
  10717. + if test -n "$compiler"; then
  10718. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10719. + AC_MSG_RESULT([$can_build_shared])
  10720. +
  10721. + AC_MSG_CHECKING([whether to build shared libraries])
  10722. + test "$can_build_shared" = "no" && enable_shared=no
  10723. +
  10724. + # On AIX, shared libraries and static libraries use the same namespace, and
  10725. + # are all built from PIC.
  10726. + case $host_os in
  10727. + aix3*)
  10728. + test "$enable_shared" = yes && enable_static=no
  10729. + if test -n "$RANLIB"; then
  10730. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10731. + postinstall_cmds='$RANLIB $lib'
  10732. + fi
  10733. + ;;
  10734. + aix[[4-9]]*)
  10735. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10736. + test "$enable_shared" = yes && enable_static=no
  10737. + fi
  10738. + ;;
  10739. + esac
  10740. + AC_MSG_RESULT([$enable_shared])
  10741. +
  10742. + AC_MSG_CHECKING([whether to build static libraries])
  10743. + # Make sure either enable_shared or enable_static is yes.
  10744. + test "$enable_shared" = yes || enable_static=yes
  10745. + AC_MSG_RESULT([$enable_static])
  10746. +
  10747. + _LT_TAGVAR(GCC, $1)="$G77"
  10748. + _LT_TAGVAR(LD, $1)="$LD"
  10749. +
  10750. + ## CAVEAT EMPTOR:
  10751. + ## There is no encapsulation within the following macros, do not change
  10752. + ## the running order or otherwise move them around unless you know exactly
  10753. + ## what you are doing...
  10754. + _LT_COMPILER_PIC($1)
  10755. + _LT_COMPILER_C_O($1)
  10756. + _LT_COMPILER_FILE_LOCKS($1)
  10757. + _LT_LINKER_SHLIBS($1)
  10758. + _LT_SYS_DYNAMIC_LINKER($1)
  10759. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10760. +
  10761. + _LT_CONFIG($1)
  10762. + fi # test -n "$compiler"
  10763. +
  10764. + GCC=$lt_save_GCC
  10765. + CC="$lt_save_CC"
  10766. +fi # test "$_lt_disable_F77" != yes
  10767. +
  10768. +AC_LANG_POP
  10769. +])# _LT_LANG_F77_CONFIG
  10770. +
  10771. +
  10772. +# _LT_PROG_FC
  10773. +# -----------
  10774. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10775. +# if there is no fortran compiler, we have our own version here.
  10776. +m4_defun([_LT_PROG_FC],
  10777. +[
  10778. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10779. +AC_PROG_FC
  10780. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10781. + _lt_disable_FC=yes
  10782. +fi
  10783. +popdef([AC_MSG_ERROR])
  10784. +])# _LT_PROG_FC
  10785. +
  10786. +dnl aclocal-1.4 backwards compatibility:
  10787. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10788. +
  10789. +
  10790. +# _LT_LANG_FC_CONFIG([TAG])
  10791. +# -------------------------
  10792. +# Ensure that the configuration variables for a Fortran compiler are
  10793. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10794. +# to write the compiler configuration to `libtool'.
  10795. +m4_defun([_LT_LANG_FC_CONFIG],
  10796. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10797. +AC_LANG_PUSH(Fortran)
  10798. +
  10799. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10800. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10801. +_LT_TAGVAR(always_export_symbols, $1)=no
  10802. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10803. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10804. +_LT_TAGVAR(hardcode_direct, $1)=no
  10805. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10806. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10807. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10808. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10809. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10810. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10811. +_LT_TAGVAR(inherit_rpath, $1)=no
  10812. +_LT_TAGVAR(module_cmds, $1)=
  10813. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10814. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10815. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10816. +_LT_TAGVAR(no_undefined_flag, $1)=
  10817. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10818. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10819. +
  10820. +# Source file extension for fc test sources.
  10821. +ac_ext=${ac_fc_srcext-f}
  10822. +
  10823. +# Object file extension for compiled fc test sources.
  10824. +objext=o
  10825. +_LT_TAGVAR(objext, $1)=$objext
  10826. +
  10827. +# No sense in running all these tests if we already determined that
  10828. +# the FC compiler isn't working. Some variables (like enable_shared)
  10829. +# are currently assumed to apply to all compilers on this platform,
  10830. +# and will be corrupted by setting them based on a non-working compiler.
  10831. +if test "$_lt_disable_FC" != yes; then
  10832. + # Code to be used in simple compile tests
  10833. + lt_simple_compile_test_code="\
  10834. + subroutine t
  10835. + return
  10836. + end
  10837. +"
  10838. +
  10839. + # Code to be used in simple link tests
  10840. + lt_simple_link_test_code="\
  10841. + program t
  10842. + end
  10843. +"
  10844. +
  10845. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10846. + _LT_TAG_COMPILER
  10847. +
  10848. + # save warnings/boilerplate of simple test code
  10849. + _LT_COMPILER_BOILERPLATE
  10850. + _LT_LINKER_BOILERPLATE
  10851. +
  10852. + # Allow CC to be a program name with arguments.
  10853. + lt_save_CC="$CC"
  10854. + lt_save_GCC=$GCC
  10855. + CC=${FC-"f95"}
  10856. + compiler=$CC
  10857. + GCC=$ac_cv_fc_compiler_gnu
  10858. +
  10859. + _LT_TAGVAR(compiler, $1)=$CC
  10860. + _LT_CC_BASENAME([$compiler])
  10861. +
  10862. + if test -n "$compiler"; then
  10863. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10864. + AC_MSG_RESULT([$can_build_shared])
  10865. +
  10866. + AC_MSG_CHECKING([whether to build shared libraries])
  10867. + test "$can_build_shared" = "no" && enable_shared=no
  10868. +
  10869. + # On AIX, shared libraries and static libraries use the same namespace, and
  10870. + # are all built from PIC.
  10871. + case $host_os in
  10872. + aix3*)
  10873. + test "$enable_shared" = yes && enable_static=no
  10874. + if test -n "$RANLIB"; then
  10875. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10876. + postinstall_cmds='$RANLIB $lib'
  10877. + fi
  10878. + ;;
  10879. + aix[[4-9]]*)
  10880. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10881. + test "$enable_shared" = yes && enable_static=no
  10882. + fi
  10883. + ;;
  10884. + esac
  10885. + AC_MSG_RESULT([$enable_shared])
  10886. +
  10887. + AC_MSG_CHECKING([whether to build static libraries])
  10888. + # Make sure either enable_shared or enable_static is yes.
  10889. + test "$enable_shared" = yes || enable_static=yes
  10890. + AC_MSG_RESULT([$enable_static])
  10891. +
  10892. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10893. + _LT_TAGVAR(LD, $1)="$LD"
  10894. +
  10895. + ## CAVEAT EMPTOR:
  10896. + ## There is no encapsulation within the following macros, do not change
  10897. + ## the running order or otherwise move them around unless you know exactly
  10898. + ## what you are doing...
  10899. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10900. + _LT_COMPILER_PIC($1)
  10901. + _LT_COMPILER_C_O($1)
  10902. + _LT_COMPILER_FILE_LOCKS($1)
  10903. + _LT_LINKER_SHLIBS($1)
  10904. + _LT_SYS_DYNAMIC_LINKER($1)
  10905. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10906. +
  10907. + _LT_CONFIG($1)
  10908. + fi # test -n "$compiler"
  10909. +
  10910. + GCC=$lt_save_GCC
  10911. + CC="$lt_save_CC"
  10912. +fi # test "$_lt_disable_FC" != yes
  10913. +
  10914. +AC_LANG_POP
  10915. +])# _LT_LANG_FC_CONFIG
  10916. +
  10917. +
  10918. +# _LT_LANG_GCJ_CONFIG([TAG])
  10919. +# --------------------------
  10920. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10921. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10922. +# to write the compiler configuration to `libtool'.
  10923. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10924. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10925. +AC_LANG_SAVE
  10926. +
  10927. +# Source file extension for Java test sources.
  10928. +ac_ext=java
  10929. +
  10930. +# Object file extension for compiled Java test sources.
  10931. +objext=o
  10932. +_LT_TAGVAR(objext, $1)=$objext
  10933. +
  10934. +# Code to be used in simple compile tests
  10935. +lt_simple_compile_test_code="class foo {}"
  10936. +
  10937. +# Code to be used in simple link tests
  10938. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10939. +
  10940. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10941. +_LT_TAG_COMPILER
  10942. +
  10943. +# save warnings/boilerplate of simple test code
  10944. +_LT_COMPILER_BOILERPLATE
  10945. +_LT_LINKER_BOILERPLATE
  10946. - case $host_os in
  10947. - aix*)
  10948. - # All AIX code is PIC.
  10949. - if test "$host_cpu" = ia64; then
  10950. - # AIX 5 now supports IA64 processor
  10951. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10952. - fi
  10953. - ;;
  10954. +# Allow CC to be a program name with arguments.
  10955. +lt_save_CC="$CC"
  10956. +lt_save_GCC=$GCC
  10957. +GCC=yes
  10958. +CC=${GCJ-"gcj"}
  10959. +compiler=$CC
  10960. +_LT_TAGVAR(compiler, $1)=$CC
  10961. +_LT_TAGVAR(LD, $1)="$LD"
  10962. +_LT_CC_BASENAME([$compiler])
  10963. - amigaos*)
  10964. - # FIXME: we need at least 68020 code to build shared libraries, but
  10965. - # adding the `-m68020' flag to GCC prevents building anything better,
  10966. - # like `-m68040'.
  10967. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10968. - ;;
  10969. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10970. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10971. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10972. - # PIC is the default for these OSes.
  10973. - ;;
  10974. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10975. - mingw* | pw32* | os2*)
  10976. - # This hack is so that the source file can tell whether it is being
  10977. - # built for inclusion in a dll (and should export symbols for example).
  10978. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10979. - ;;
  10980. +if test -n "$compiler"; then
  10981. + _LT_COMPILER_NO_RTTI($1)
  10982. + _LT_COMPILER_PIC($1)
  10983. + _LT_COMPILER_C_O($1)
  10984. + _LT_COMPILER_FILE_LOCKS($1)
  10985. + _LT_LINKER_SHLIBS($1)
  10986. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10987. - darwin* | rhapsody*)
  10988. - # PIC is the default on this platform
  10989. - # Common symbols not allowed in MH_DYLIB files
  10990. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10991. - ;;
  10992. + _LT_CONFIG($1)
  10993. +fi
  10994. - interix3*)
  10995. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10996. - # Instead, we relocate shared libraries at runtime.
  10997. - ;;
  10998. +AC_LANG_RESTORE
  10999. - msdosdjgpp*)
  11000. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  11001. - # on systems that don't support them.
  11002. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11003. - enable_shared=no
  11004. - ;;
  11005. +GCC=$lt_save_GCC
  11006. +CC="$lt_save_CC"
  11007. +])# _LT_LANG_GCJ_CONFIG
  11008. - sysv4*MP*)
  11009. - if test -d /usr/nec; then
  11010. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  11011. - fi
  11012. - ;;
  11013. - hpux*)
  11014. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11015. - # not for PA HP-UX.
  11016. - case $host_cpu in
  11017. - hppa*64*|ia64*)
  11018. - # +Z the default
  11019. - ;;
  11020. - *)
  11021. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11022. - ;;
  11023. - esac
  11024. - ;;
  11025. +# _LT_LANG_RC_CONFIG([TAG])
  11026. +# -------------------------
  11027. +# Ensure that the configuration variables for the Windows resource compiler
  11028. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11029. +# to write the compiler configuration to `libtool'.
  11030. +m4_defun([_LT_LANG_RC_CONFIG],
  11031. +[AC_REQUIRE([LT_PROG_RC])dnl
  11032. +AC_LANG_SAVE
  11033. - *)
  11034. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11035. - ;;
  11036. - esac
  11037. - else
  11038. - # PORTME Check for flag to pass linker flags through the system compiler.
  11039. - case $host_os in
  11040. - aix*)
  11041. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11042. - if test "$host_cpu" = ia64; then
  11043. - # AIX 5 now supports IA64 processor
  11044. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11045. - else
  11046. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11047. - fi
  11048. - ;;
  11049. - darwin*)
  11050. - # PIC is the default on this platform
  11051. - # Common symbols not allowed in MH_DYLIB files
  11052. - case $cc_basename in
  11053. - xlc*)
  11054. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  11055. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11056. - ;;
  11057. - esac
  11058. - ;;
  11059. +# Source file extension for RC test sources.
  11060. +ac_ext=rc
  11061. - mingw* | pw32* | os2*)
  11062. - # This hack is so that the source file can tell whether it is being
  11063. - # built for inclusion in a dll (and should export symbols for example).
  11064. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11065. - ;;
  11066. +# Object file extension for compiled RC test sources.
  11067. +objext=o
  11068. +_LT_TAGVAR(objext, $1)=$objext
  11069. - hpux9* | hpux10* | hpux11*)
  11070. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11071. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11072. - # not for PA HP-UX.
  11073. - case $host_cpu in
  11074. - hppa*64*|ia64*)
  11075. - # +Z the default
  11076. - ;;
  11077. - *)
  11078. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11079. - ;;
  11080. - esac
  11081. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11082. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11083. - ;;
  11084. +# Code to be used in simple compile tests
  11085. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11086. - irix5* | irix6* | nonstopux*)
  11087. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11088. - # PIC (with -KPIC) is the default.
  11089. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11090. - ;;
  11091. +# Code to be used in simple link tests
  11092. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  11093. - newsos6)
  11094. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11095. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11096. - ;;
  11097. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11098. +_LT_TAG_COMPILER
  11099. - linux*)
  11100. - case $cc_basename in
  11101. - icc* | ecc*)
  11102. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11103. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11104. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11105. - ;;
  11106. - pgcc* | pgf77* | pgf90* | pgf95*)
  11107. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11108. - # which looks to be a dead project)
  11109. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11110. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11111. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11112. - ;;
  11113. - ccc*)
  11114. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11115. - # All Alpha code is PIC.
  11116. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11117. - ;;
  11118. - esac
  11119. - ;;
  11120. +# save warnings/boilerplate of simple test code
  11121. +_LT_COMPILER_BOILERPLATE
  11122. +_LT_LINKER_BOILERPLATE
  11123. - osf3* | osf4* | osf5*)
  11124. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11125. - # All OSF/1 code is PIC.
  11126. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11127. - ;;
  11128. +# Allow CC to be a program name with arguments.
  11129. +lt_save_CC="$CC"
  11130. +lt_save_GCC=$GCC
  11131. +GCC=
  11132. +CC=${RC-"windres"}
  11133. +compiler=$CC
  11134. +_LT_TAGVAR(compiler, $1)=$CC
  11135. +_LT_CC_BASENAME([$compiler])
  11136. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11137. - solaris*)
  11138. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11139. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11140. - case $cc_basename in
  11141. - f77* | f90* | f95*)
  11142. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11143. - *)
  11144. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11145. - esac
  11146. - ;;
  11147. +if test -n "$compiler"; then
  11148. + :
  11149. + _LT_CONFIG($1)
  11150. +fi
  11151. - sunos4*)
  11152. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11153. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11154. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11155. - ;;
  11156. +GCC=$lt_save_GCC
  11157. +AC_LANG_RESTORE
  11158. +CC="$lt_save_CC"
  11159. +])# _LT_LANG_RC_CONFIG
  11160. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11161. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11162. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11163. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11164. - ;;
  11165. - sysv4*MP*)
  11166. - if test -d /usr/nec ;then
  11167. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11168. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11169. +# LT_PROG_GCJ
  11170. +# -----------
  11171. +AC_DEFUN([LT_PROG_GCJ],
  11172. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11173. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11174. + [AC_CHECK_TOOL(GCJ, gcj,)
  11175. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11176. + AC_SUBST(GCJFLAGS)])])[]dnl
  11177. +])
  11178. +
  11179. +# Old name:
  11180. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11181. +dnl aclocal-1.4 backwards compatibility:
  11182. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11183. +
  11184. +
  11185. +# LT_PROG_RC
  11186. +# ----------
  11187. +AC_DEFUN([LT_PROG_RC],
  11188. +[AC_CHECK_TOOL(RC, windres,)
  11189. +])
  11190. +
  11191. +# Old name:
  11192. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11193. +dnl aclocal-1.4 backwards compatibility:
  11194. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11195. +
  11196. +
  11197. +# _LT_DECL_EGREP
  11198. +# --------------
  11199. +# If we don't have a new enough Autoconf to choose the best grep
  11200. +# available, choose the one first in the user's PATH.
  11201. +m4_defun([_LT_DECL_EGREP],
  11202. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11203. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11204. +test -z "$GREP" && GREP=grep
  11205. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11206. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11207. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11208. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11209. +AC_SUBST([GREP])
  11210. +])
  11211. +
  11212. +
  11213. +# _LT_DECL_OBJDUMP
  11214. +# --------------
  11215. +# If we don't have a new enough Autoconf to choose the best objdump
  11216. +# available, choose the one first in the user's PATH.
  11217. +m4_defun([_LT_DECL_OBJDUMP],
  11218. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11219. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11220. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11221. +AC_SUBST([OBJDUMP])
  11222. +])
  11223. +
  11224. +
  11225. +# _LT_DECL_SED
  11226. +# ------------
  11227. +# Check for a fully-functional sed program, that truncates
  11228. +# as few characters as possible. Prefer GNU sed if found.
  11229. +m4_defun([_LT_DECL_SED],
  11230. +[AC_PROG_SED
  11231. +test -z "$SED" && SED=sed
  11232. +Xsed="$SED -e 1s/^X//"
  11233. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11234. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11235. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11236. +])# _LT_DECL_SED
  11237. +
  11238. +m4_ifndef([AC_PROG_SED], [
  11239. +# NOTE: This macro has been submitted for inclusion into #
  11240. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11241. +# a released version of Autoconf we should remove this #
  11242. +# macro and use it instead. #
  11243. +
  11244. +m4_defun([AC_PROG_SED],
  11245. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11246. +AC_CACHE_VAL(lt_cv_path_SED,
  11247. +[# Loop through the user's path and test for sed and gsed.
  11248. +# Then use that list of sed's as ones to test for truncation.
  11249. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11250. +for as_dir in $PATH
  11251. +do
  11252. + IFS=$as_save_IFS
  11253. + test -z "$as_dir" && as_dir=.
  11254. + for lt_ac_prog in sed gsed; do
  11255. + for ac_exec_ext in '' $ac_executable_extensions; do
  11256. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11257. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11258. fi
  11259. - ;;
  11260. + done
  11261. + done
  11262. +done
  11263. +IFS=$as_save_IFS
  11264. +lt_ac_max=0
  11265. +lt_ac_count=0
  11266. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11267. +# along with /bin/sed that truncates output.
  11268. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11269. + test ! -f $lt_ac_sed && continue
  11270. + cat /dev/null > conftest.in
  11271. + lt_ac_count=0
  11272. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11273. + # Check for GNU sed and select it if it is found.
  11274. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11275. + lt_cv_path_SED=$lt_ac_sed
  11276. + break
  11277. + fi
  11278. + while true; do
  11279. + cat conftest.in conftest.in >conftest.tmp
  11280. + mv conftest.tmp conftest.in
  11281. + cp conftest.in conftest.nl
  11282. + echo >>conftest.nl
  11283. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11284. + cmp -s conftest.out conftest.nl || break
  11285. + # 10000 chars as input seems more than enough
  11286. + test $lt_ac_count -gt 10 && break
  11287. + lt_ac_count=`expr $lt_ac_count + 1`
  11288. + if test $lt_ac_count -gt $lt_ac_max; then
  11289. + lt_ac_max=$lt_ac_count
  11290. + lt_cv_path_SED=$lt_ac_sed
  11291. + fi
  11292. + done
  11293. +done
  11294. +])
  11295. +SED=$lt_cv_path_SED
  11296. +AC_SUBST([SED])
  11297. +AC_MSG_RESULT([$SED])
  11298. +])#AC_PROG_SED
  11299. +])#m4_ifndef
  11300. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11301. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11302. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11303. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11304. - ;;
  11305. +# Old name:
  11306. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11307. +dnl aclocal-1.4 backwards compatibility:
  11308. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11309. - unicos*)
  11310. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11311. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11312. - ;;
  11313. - uts4*)
  11314. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11315. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11316. - ;;
  11317. +# _LT_CHECK_SHELL_FEATURES
  11318. +# ------------------------
  11319. +# Find out whether the shell is Bourne or XSI compatible,
  11320. +# or has some other useful features.
  11321. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11322. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11323. +# Try some XSI features
  11324. +xsi_shell=no
  11325. +( _lt_dummy="a/b/c"
  11326. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11327. + = c,a/b,, \
  11328. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11329. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11330. + && xsi_shell=yes
  11331. +AC_MSG_RESULT([$xsi_shell])
  11332. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11333. +
  11334. +AC_MSG_CHECKING([whether the shell understands "+="])
  11335. +lt_shell_append=no
  11336. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11337. + >/dev/null 2>&1 \
  11338. + && lt_shell_append=yes
  11339. +AC_MSG_RESULT([$lt_shell_append])
  11340. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11341. +
  11342. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11343. + lt_unset=unset
  11344. +else
  11345. + lt_unset=false
  11346. +fi
  11347. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11348. +
  11349. +# test EBCDIC or ASCII
  11350. +case `echo X|tr X '\101'` in
  11351. + A) # ASCII based system
  11352. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11353. + lt_SP2NL='tr \040 \012'
  11354. + lt_NL2SP='tr \015\012 \040\040'
  11355. + ;;
  11356. + *) # EBCDIC based system
  11357. + lt_SP2NL='tr \100 \n'
  11358. + lt_NL2SP='tr \r\n \100\100'
  11359. + ;;
  11360. +esac
  11361. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11362. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11363. +])# _LT_CHECK_SHELL_FEATURES
  11364. +
  11365. +
  11366. +# _LT_PROG_XSI_SHELLFNS
  11367. +# ---------------------
  11368. +# Bourne and XSI compatible variants of some useful shell functions.
  11369. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11370. +[case $xsi_shell in
  11371. + yes)
  11372. + cat << \_LT_EOF >> "$cfgfile"
  11373. +
  11374. +# func_dirname file append nondir_replacement
  11375. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11376. +# otherwise set result to NONDIR_REPLACEMENT.
  11377. +func_dirname ()
  11378. +{
  11379. + case ${1} in
  11380. + */*) func_dirname_result="${1%/*}${2}" ;;
  11381. + * ) func_dirname_result="${3}" ;;
  11382. + esac
  11383. +}
  11384. +
  11385. +# func_basename file
  11386. +func_basename ()
  11387. +{
  11388. + func_basename_result="${1##*/}"
  11389. +}
  11390. +
  11391. +# func_dirname_and_basename file append nondir_replacement
  11392. +# perform func_basename and func_dirname in a single function
  11393. +# call:
  11394. +# dirname: Compute the dirname of FILE. If nonempty,
  11395. +# add APPEND to the result, otherwise set result
  11396. +# to NONDIR_REPLACEMENT.
  11397. +# value returned in "$func_dirname_result"
  11398. +# basename: Compute filename of FILE.
  11399. +# value retuned in "$func_basename_result"
  11400. +# Implementation must be kept synchronized with func_dirname
  11401. +# and func_basename. For efficiency, we do not delegate to
  11402. +# those functions but instead duplicate the functionality here.
  11403. +func_dirname_and_basename ()
  11404. +{
  11405. + case ${1} in
  11406. + */*) func_dirname_result="${1%/*}${2}" ;;
  11407. + * ) func_dirname_result="${3}" ;;
  11408. + esac
  11409. + func_basename_result="${1##*/}"
  11410. +}
  11411. +
  11412. +# func_stripname prefix suffix name
  11413. +# strip PREFIX and SUFFIX off of NAME.
  11414. +# PREFIX and SUFFIX must not contain globbing or regex special
  11415. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11416. +# dot (in which case that matches only a dot).
  11417. +func_stripname ()
  11418. +{
  11419. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11420. + # positional parameters, so assign one to ordinary parameter first.
  11421. + func_stripname_result=${3}
  11422. + func_stripname_result=${func_stripname_result#"${1}"}
  11423. + func_stripname_result=${func_stripname_result%"${2}"}
  11424. +}
  11425. +
  11426. +# func_opt_split
  11427. +func_opt_split ()
  11428. +{
  11429. + func_opt_split_opt=${1%%=*}
  11430. + func_opt_split_arg=${1#*=}
  11431. +}
  11432. +
  11433. +# func_lo2o object
  11434. +func_lo2o ()
  11435. +{
  11436. + case ${1} in
  11437. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11438. + *) func_lo2o_result=${1} ;;
  11439. + esac
  11440. +}
  11441. +
  11442. +# func_xform libobj-or-source
  11443. +func_xform ()
  11444. +{
  11445. + func_xform_result=${1%.*}.lo
  11446. +}
  11447. +
  11448. +# func_arith arithmetic-term...
  11449. +func_arith ()
  11450. +{
  11451. + func_arith_result=$(( $[*] ))
  11452. +}
  11453. - *)
  11454. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11455. - ;;
  11456. - esac
  11457. - fi
  11458. -])
  11459. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11460. +# func_len string
  11461. +# STRING may not start with a hyphen.
  11462. +func_len ()
  11463. +{
  11464. + func_len_result=${#1}
  11465. +}
  11466. -#
  11467. -# Check to make sure the PIC flag actually works.
  11468. -#
  11469. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11470. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11471. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11472. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11473. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11474. - "" | " "*) ;;
  11475. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11476. - esac],
  11477. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11478. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11479. -fi
  11480. -case $host_os in
  11481. - # For platforms which do not support PIC, -DPIC is meaningless:
  11482. - *djgpp*)
  11483. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11484. - ;;
  11485. - *)
  11486. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11487. +_LT_EOF
  11488. ;;
  11489. -esac
  11490. + *) # Bourne compatible functions.
  11491. + cat << \_LT_EOF >> "$cfgfile"
  11492. -#
  11493. -# Check to make sure the static flag actually works.
  11494. -#
  11495. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11496. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11497. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11498. - $lt_tmp_static_flag,
  11499. - [],
  11500. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11501. -])
  11502. +# func_dirname file append nondir_replacement
  11503. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11504. +# otherwise set result to NONDIR_REPLACEMENT.
  11505. +func_dirname ()
  11506. +{
  11507. + # Extract subdirectory from the argument.
  11508. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11509. + if test "X$func_dirname_result" = "X${1}"; then
  11510. + func_dirname_result="${3}"
  11511. + else
  11512. + func_dirname_result="$func_dirname_result${2}"
  11513. + fi
  11514. +}
  11515. +# func_basename file
  11516. +func_basename ()
  11517. +{
  11518. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11519. +}
  11520. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11521. -# ------------------------------------
  11522. -# See if the linker supports building shared libraries.
  11523. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11524. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11525. -ifelse([$1],[CXX],[
  11526. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11527. - case $host_os in
  11528. - aix4* | aix5*)
  11529. - # If we're using GNU nm, then we don't want the "-C" option.
  11530. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11531. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11532. - _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'
  11533. - else
  11534. - _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'
  11535. - fi
  11536. - ;;
  11537. - pw32*)
  11538. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11539. - ;;
  11540. - cygwin* | mingw*)
  11541. - _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'
  11542. - ;;
  11543. - kfreebsd*-gnu)
  11544. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11545. - ;;
  11546. - linux*)
  11547. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11548. - ;;
  11549. - *)
  11550. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11551. - ;;
  11552. - esac
  11553. -],[
  11554. - runpath_var=
  11555. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11556. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11557. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11558. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11559. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11560. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11561. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11562. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11563. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11564. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11565. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11566. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11567. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11568. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11569. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11570. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11571. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11572. - _LT_AC_TAGVAR(module_cmds, $1)=
  11573. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11574. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11575. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11576. - # include_expsyms should be a list of space-separated symbols to be *always*
  11577. - # included in the symbol list
  11578. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11579. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11580. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11581. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11582. - # as well as any symbol that contains `d'.
  11583. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11584. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11585. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11586. - # the symbol is explicitly referenced. Since portable code cannot
  11587. - # rely on this symbol name, it's probably fine to never include it in
  11588. - # preloaded symbol tables.
  11589. - extract_expsyms_cmds=
  11590. - # Just being paranoid about ensuring that cc_basename is set.
  11591. - _LT_CC_BASENAME([$compiler])
  11592. - case $host_os in
  11593. - cygwin* | mingw* | pw32*)
  11594. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11595. - # When not using gcc, we currently assume that we are using
  11596. - # Microsoft Visual C++.
  11597. - if test "$GCC" != yes; then
  11598. - with_gnu_ld=no
  11599. - fi
  11600. - ;;
  11601. - interix*)
  11602. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11603. - with_gnu_ld=yes
  11604. - ;;
  11605. - openbsd*)
  11606. - with_gnu_ld=no
  11607. - ;;
  11608. +dnl func_dirname_and_basename
  11609. +dnl A portable version of this function is already defined in general.m4sh
  11610. +dnl so there is no need for it here.
  11611. +
  11612. +# func_stripname prefix suffix name
  11613. +# strip PREFIX and SUFFIX off of NAME.
  11614. +# PREFIX and SUFFIX must not contain globbing or regex special
  11615. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11616. +# dot (in which case that matches only a dot).
  11617. +# func_strip_suffix prefix name
  11618. +func_stripname ()
  11619. +{
  11620. + case ${2} in
  11621. + .*) func_stripname_result=`$ECHO "X${3}" \
  11622. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11623. + *) func_stripname_result=`$ECHO "X${3}" \
  11624. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11625. esac
  11626. +}
  11627. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11628. - if test "$with_gnu_ld" = yes; then
  11629. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11630. - wlarc='${wl}'
  11631. +# sed scripts:
  11632. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11633. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11634. - # Set some defaults for GNU ld with shared library support. These
  11635. - # are reset later if shared libraries are not supported. Putting them
  11636. - # here allows them to be overridden if necessary.
  11637. - runpath_var=LD_RUN_PATH
  11638. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11639. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11640. - # ancient GNU ld didn't support --whole-archive et. al.
  11641. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11642. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11643. - else
  11644. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11645. - fi
  11646. - supports_anon_versioning=no
  11647. - case `$LD -v 2>/dev/null` in
  11648. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11649. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11650. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11651. - *\ 2.11.*) ;; # other 2.11 versions
  11652. - *) supports_anon_versioning=yes ;;
  11653. - esac
  11654. +# func_opt_split
  11655. +func_opt_split ()
  11656. +{
  11657. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11658. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11659. +}
  11660. - # See if GNU ld supports shared libraries.
  11661. - case $host_os in
  11662. - aix3* | aix4* | aix5*)
  11663. - # On AIX/PPC, the GNU linker is very broken
  11664. - if test "$host_cpu" != ia64; then
  11665. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11666. - cat <<EOF 1>&2
  11667. +# func_lo2o object
  11668. +func_lo2o ()
  11669. +{
  11670. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11671. +}
  11672. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11673. -*** to be unable to reliably create shared libraries on AIX.
  11674. -*** Therefore, libtool is disabling shared libraries support. If you
  11675. -*** really care for shared libraries, you may want to modify your PATH
  11676. -*** so that a non-GNU linker is found, and then restart.
  11677. +# func_xform libobj-or-source
  11678. +func_xform ()
  11679. +{
  11680. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11681. +}
  11682. -EOF
  11683. - fi
  11684. - ;;
  11685. +# func_arith arithmetic-term...
  11686. +func_arith ()
  11687. +{
  11688. + func_arith_result=`expr "$[@]"`
  11689. +}
  11690. - amigaos*)
  11691. - _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)'
  11692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11693. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11694. -
  11695. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11696. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11697. - # to version 4, is to share data among multiple programs linked
  11698. - # with the same dynamic library. Since this doesn't match the
  11699. - # behavior of shared libraries on other platforms, we can't use
  11700. - # them.
  11701. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11702. - ;;
  11703. +# func_len string
  11704. +# STRING may not start with a hyphen.
  11705. +func_len ()
  11706. +{
  11707. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11708. +}
  11709. - beos*)
  11710. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11711. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11712. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11713. - # support --undefined. This deserves some investigation. FIXME
  11714. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11715. - else
  11716. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11717. - fi
  11718. - ;;
  11719. +_LT_EOF
  11720. +esac
  11721. - cygwin* | mingw* | pw32*)
  11722. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11723. - # as there is no search path for DLLs.
  11724. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11725. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11726. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11727. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11728. - _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'
  11729. +case $lt_shell_append in
  11730. + yes)
  11731. + cat << \_LT_EOF >> "$cfgfile"
  11732. +
  11733. +# func_append var value
  11734. +# Append VALUE to the end of shell variable VAR.
  11735. +func_append ()
  11736. +{
  11737. + eval "$[1]+=\$[2]"
  11738. +}
  11739. +_LT_EOF
  11740. + ;;
  11741. + *)
  11742. + cat << \_LT_EOF >> "$cfgfile"
  11743. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11744. - _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'
  11745. - # If the export-symbols file already is a .def file (1st line
  11746. - # is EXPORTS), use it as is; otherwise, prepend...
  11747. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11748. - cp $export_symbols $output_objdir/$soname.def;
  11749. - else
  11750. - echo EXPORTS > $output_objdir/$soname.def;
  11751. - cat $export_symbols >> $output_objdir/$soname.def;
  11752. - fi~
  11753. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11754. - else
  11755. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11756. - fi
  11757. - ;;
  11758. +# func_append var value
  11759. +# Append VALUE to the end of shell variable VAR.
  11760. +func_append ()
  11761. +{
  11762. + eval "$[1]=\$$[1]\$[2]"
  11763. +}
  11764. - interix3*)
  11765. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11766. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11767. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11768. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11769. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11770. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11771. - # default) and relocated if they conflict, which is a slow very memory
  11772. - # consuming and fragmenting process. To avoid this, we pick a random,
  11773. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11774. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11775. - _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'
  11776. - _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'
  11777. - ;;
  11778. +_LT_EOF
  11779. + ;;
  11780. + esac
  11781. +])
  11782. - linux*)
  11783. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11784. - tmp_addflag=
  11785. - case $cc_basename,$host_cpu in
  11786. - pgcc*) # Portland Group C compiler
  11787. - _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'
  11788. - tmp_addflag=' $pic_flag'
  11789. - ;;
  11790. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11791. - _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'
  11792. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11793. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11794. - tmp_addflag=' -i_dynamic' ;;
  11795. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11796. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11797. - ifc* | ifort*) # Intel Fortran compiler
  11798. - tmp_addflag=' -nofor_main' ;;
  11799. - esac
  11800. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11801. +# Helper functions for option handling. -*- Autoconf -*-
  11802. +#
  11803. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11804. +# Written by Gary V. Vaughan, 2004
  11805. +#
  11806. +# This file is free software; the Free Software Foundation gives
  11807. +# unlimited permission to copy and/or distribute it, with or without
  11808. +# modifications, as long as this notice is preserved.
  11809. - if test $supports_anon_versioning = yes; then
  11810. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11811. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11812. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11813. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11814. - fi
  11815. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11816. - else
  11817. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11818. - fi
  11819. - ;;
  11820. +# serial 6 ltoptions.m4
  11821. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  11822. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11823. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11824. - wlarc=
  11825. - else
  11826. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11827. - _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'
  11828. - fi
  11829. - ;;
  11830. +# This is to help aclocal find these macros, as it can't see m4_define.
  11831. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11832. - solaris*)
  11833. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11834. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11835. - cat <<EOF 1>&2
  11836. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11837. -*** create shared libraries on Solaris systems. Therefore, libtool
  11838. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11839. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11840. -*** your PATH or compiler configuration so that the native linker is
  11841. -*** used, and then restart.
  11842. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11843. +# ------------------------------------------
  11844. +m4_define([_LT_MANGLE_OPTION],
  11845. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11846. -EOF
  11847. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11848. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11849. - _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'
  11850. - else
  11851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11852. - fi
  11853. - ;;
  11854. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11855. - case `$LD -v 2>&1` in
  11856. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11857. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11858. - cat <<_LT_EOF 1>&2
  11859. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11860. +# ---------------------------------------
  11861. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11862. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11863. +# saved as a flag.
  11864. +m4_define([_LT_SET_OPTION],
  11865. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11866. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11867. + _LT_MANGLE_DEFUN([$1], [$2]),
  11868. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11869. +])
  11870. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11871. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11872. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11873. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11874. -*** your PATH or compiler configuration so that the native linker is
  11875. -*** used, and then restart.
  11876. -_LT_EOF
  11877. - ;;
  11878. - *)
  11879. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11880. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11881. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11882. - _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'
  11883. - else
  11884. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11885. - fi
  11886. - ;;
  11887. - esac
  11888. - ;;
  11889. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11890. +# ------------------------------------------------------------
  11891. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11892. +m4_define([_LT_IF_OPTION],
  11893. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11894. - sunos4*)
  11895. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11896. - wlarc=
  11897. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11898. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11899. - ;;
  11900. - *)
  11901. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11902. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11903. - _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'
  11904. - else
  11905. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11906. - fi
  11907. - ;;
  11908. - esac
  11909. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11910. +# -------------------------------------------------------
  11911. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11912. +# are set.
  11913. +m4_define([_LT_UNLESS_OPTIONS],
  11914. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11915. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11916. + [m4_define([$0_found])])])[]dnl
  11917. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11918. +])[]dnl
  11919. +])
  11920. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11921. - runpath_var=
  11922. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11923. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11924. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11925. - fi
  11926. - else
  11927. - # PORTME fill in a description of your system's linker (not GNU ld)
  11928. - case $host_os in
  11929. - aix3*)
  11930. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11931. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11932. - _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'
  11933. - # Note: this linker hardcodes the directories in LIBPATH if there
  11934. - # are no directories specified by -L.
  11935. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11936. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11937. - # Neither direct hardcoding nor static linking is supported with a
  11938. - # broken collect2.
  11939. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11940. - fi
  11941. - ;;
  11942. - aix4* | aix5*)
  11943. - if test "$host_cpu" = ia64; then
  11944. - # On IA64, the linker does run time linking by default, so we don't
  11945. - # have to do anything special.
  11946. - aix_use_runtimelinking=no
  11947. - exp_sym_flag='-Bexport'
  11948. - no_entry_flag=""
  11949. - else
  11950. - # If we're using GNU nm, then we don't want the "-C" option.
  11951. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11952. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11953. - _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'
  11954. - else
  11955. - _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'
  11956. - fi
  11957. - aix_use_runtimelinking=no
  11958. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11959. +# ----------------------------------------
  11960. +# OPTION-LIST is a space-separated list of Libtool options associated
  11961. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11962. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11963. +# the unknown option and exit.
  11964. +m4_defun([_LT_SET_OPTIONS],
  11965. +[# Set options
  11966. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11967. + [_LT_SET_OPTION([$1], _LT_Option)])
  11968. +
  11969. +m4_if([$1],[LT_INIT],[
  11970. + dnl
  11971. + dnl Simply set some default values (i.e off) if boolean options were not
  11972. + dnl specified:
  11973. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11974. + ])
  11975. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11976. + ])
  11977. + dnl
  11978. + dnl If no reference was made to various pairs of opposing options, then
  11979. + dnl we run the default mode handler for the pair. For example, if neither
  11980. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11981. + dnl archives by default:
  11982. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11983. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11984. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11985. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11986. + [_LT_ENABLE_FAST_INSTALL])
  11987. + ])
  11988. +])# _LT_SET_OPTIONS
  11989. +
  11990. - # Test if we are trying to use run time linking or normal
  11991. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11992. - # need to do runtime linking.
  11993. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11994. - for ld_flag in $LDFLAGS; do
  11995. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11996. - aix_use_runtimelinking=yes
  11997. - break
  11998. - fi
  11999. - done
  12000. - ;;
  12001. - esac
  12002. - exp_sym_flag='-bexport'
  12003. - no_entry_flag='-bnoentry'
  12004. - fi
  12005. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  12006. +# -----------------------------------------
  12007. +m4_define([_LT_MANGLE_DEFUN],
  12008. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  12009. - # When large executables or shared objects are built, AIX ld can
  12010. - # have problems creating the table of contents. If linking a library
  12011. - # or program results in "error TOC overflow" add -mminimal-toc to
  12012. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12013. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12014. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  12015. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12016. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12017. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12018. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  12019. +# -----------------------------------------------
  12020. +m4_define([LT_OPTION_DEFINE],
  12021. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  12022. +])# LT_OPTION_DEFINE
  12023. - if test "$GCC" = yes; then
  12024. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  12025. - # We only want to do this on AIX 4.2 and lower, the check
  12026. - # below for broken collect2 doesn't work under 4.3+
  12027. - collect2name=`${CC} -print-prog-name=collect2`
  12028. - if test -f "$collect2name" && \
  12029. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  12030. - then
  12031. - # We have reworked collect2
  12032. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12033. - else
  12034. - # We have old collect2
  12035. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  12036. - # It fails to find uninstalled libraries when the uninstalled
  12037. - # path is not listed in the libpath. Setting hardcode_minus_L
  12038. - # to unsupported forces relinking
  12039. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12040. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12041. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  12042. - fi
  12043. - ;;
  12044. - esac
  12045. - shared_flag='-shared'
  12046. - if test "$aix_use_runtimelinking" = yes; then
  12047. - shared_flag="$shared_flag "'${wl}-G'
  12048. - fi
  12049. - else
  12050. - # not using gcc
  12051. - if test "$host_cpu" = ia64; then
  12052. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12053. - # chokes on -Wl,-G. The following line is correct:
  12054. - shared_flag='-G'
  12055. - else
  12056. - if test "$aix_use_runtimelinking" = yes; then
  12057. - shared_flag='${wl}-G'
  12058. - else
  12059. - shared_flag='${wl}-bM:SRE'
  12060. - fi
  12061. - fi
  12062. - fi
  12063. - # It seems that -bexpall does not export symbols beginning with
  12064. - # underscore (_), so it is better to generate a list of symbols to export.
  12065. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  12066. - if test "$aix_use_runtimelinking" = yes; then
  12067. - # Warning - without using the other runtime loading flags (-brtl),
  12068. - # -berok will link without error, but may produce a broken library.
  12069. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  12070. - # Determine the default libpath from the value encoded in an empty executable.
  12071. - _LT_AC_SYS_LIBPATH_AIX
  12072. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12073. - _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"
  12074. - else
  12075. - if test "$host_cpu" = ia64; then
  12076. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  12077. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  12078. - _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"
  12079. - else
  12080. - # Determine the default libpath from the value encoded in an empty executable.
  12081. - _LT_AC_SYS_LIBPATH_AIX
  12082. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12083. - # Warning - without using the other run time loading flags,
  12084. - # -berok will link without error, but may produce a broken library.
  12085. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  12086. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  12087. - # Exported symbols can be pulled into shared objects from archives
  12088. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  12089. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12090. - # This is similar to how AIX traditionally builds its shared libraries.
  12091. - _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'
  12092. - fi
  12093. - fi
  12094. - ;;
  12095. +# dlopen
  12096. +# ------
  12097. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12098. +])
  12099. - amigaos*)
  12100. - _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)'
  12101. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12102. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12103. - # see comment about different semantics on the GNU ld section
  12104. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12105. - ;;
  12106. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12107. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  12108. +AC_DIAGNOSE([obsolete],
  12109. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12110. +put the `dlopen' option into LT_INIT's first parameter.])
  12111. +])
  12112. - bsdi[[45]]*)
  12113. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  12114. - ;;
  12115. +dnl aclocal-1.4 backwards compatibility:
  12116. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12117. - cygwin* | mingw* | pw32*)
  12118. - # When not using gcc, we currently assume that we are using
  12119. - # Microsoft Visual C++.
  12120. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12121. - # no search path for DLLs.
  12122. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12123. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12124. - # Tell ltmain to make .lib files, not .a files.
  12125. - libext=lib
  12126. - # Tell ltmain to make .dll files, not .so files.
  12127. - shrext_cmds=".dll"
  12128. - # FIXME: Setting linknames here is a bad hack.
  12129. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12130. - # The linker will automatically build a .lib file if we build a DLL.
  12131. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12132. - # FIXME: Should let the user specify the lib program.
  12133. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12134. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12135. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12136. - ;;
  12137. - darwin* | rhapsody*)
  12138. - case $host_os in
  12139. - rhapsody* | darwin1.[[012]])
  12140. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12141. - ;;
  12142. - *) # Darwin 1.3 on
  12143. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12144. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12145. - else
  12146. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12147. - 10.[[012]])
  12148. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12149. - ;;
  12150. - 10.*)
  12151. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12152. - ;;
  12153. - esac
  12154. - fi
  12155. - ;;
  12156. - esac
  12157. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12158. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12159. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12160. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12161. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12162. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12163. - if test "$GCC" = yes ; then
  12164. - output_verbose_link_cmd='echo'
  12165. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12166. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12167. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12168. - _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}'
  12169. - _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}'
  12170. - else
  12171. - case $cc_basename in
  12172. - xlc*)
  12173. - output_verbose_link_cmd='echo'
  12174. - _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'
  12175. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12176. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12177. - _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}'
  12178. - _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}'
  12179. - ;;
  12180. - *)
  12181. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12182. - ;;
  12183. - esac
  12184. - fi
  12185. - ;;
  12186. +# win32-dll
  12187. +# ---------
  12188. +# Declare package support for building win32 dll's.
  12189. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12190. +[enable_win32_dll=yes
  12191. - dgux*)
  12192. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12193. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12194. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12195. - ;;
  12196. +case $host in
  12197. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12198. + AC_CHECK_TOOL(AS, as, false)
  12199. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12200. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12201. + ;;
  12202. +esac
  12203. - freebsd1*)
  12204. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12205. - ;;
  12206. +test -z "$AS" && AS=as
  12207. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12208. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12209. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12210. - # does not break anything, and helps significantly (at the cost of a little
  12211. - # extra space).
  12212. - freebsd2.2*)
  12213. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12214. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12215. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12216. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12217. - ;;
  12218. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12219. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12220. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12221. - freebsd2*)
  12222. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12223. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12224. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12225. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12226. - ;;
  12227. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12228. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12229. +])# win32-dll
  12230. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12231. - freebsd* | dragonfly*)
  12232. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12233. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12234. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12235. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12236. - ;;
  12237. -
  12238. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  12239. - kfreebsd*-gnu)
  12240. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12241. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12242. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12243. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12244. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  12245. - ;;
  12246. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12247. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12248. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12249. +AC_DIAGNOSE([obsolete],
  12250. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12251. +put the `win32-dll' option into LT_INIT's first parameter.])
  12252. +])
  12253. - hpux9*)
  12254. - if test "$GCC" = yes; then
  12255. - _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'
  12256. - else
  12257. - _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'
  12258. - fi
  12259. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12260. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12261. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12262. +dnl aclocal-1.4 backwards compatibility:
  12263. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12264. - # hardcode_minus_L: Not really in the search PATH,
  12265. - # but as the default location of the library.
  12266. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12267. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12268. +
  12269. +# _LT_ENABLE_SHARED([DEFAULT])
  12270. +# ----------------------------
  12271. +# implement the --enable-shared flag, and supports the `shared' and
  12272. +# `disable-shared' LT_INIT options.
  12273. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12274. +m4_define([_LT_ENABLE_SHARED],
  12275. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12276. +AC_ARG_ENABLE([shared],
  12277. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12278. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12279. + [p=${PACKAGE-default}
  12280. + case $enableval in
  12281. + yes) enable_shared=yes ;;
  12282. + no) enable_shared=no ;;
  12283. + *)
  12284. + enable_shared=no
  12285. + # Look at the argument we got. We use all the common list separators.
  12286. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12287. + for pkg in $enableval; do
  12288. + IFS="$lt_save_ifs"
  12289. + if test "X$pkg" = "X$p"; then
  12290. + enable_shared=yes
  12291. + fi
  12292. + done
  12293. + IFS="$lt_save_ifs"
  12294. ;;
  12295. + esac],
  12296. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12297. - hpux10*)
  12298. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12299. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12300. - else
  12301. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12302. - fi
  12303. - if test "$with_gnu_ld" = no; then
  12304. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12305. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12306. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12307. + [Whether or not to build shared libraries])
  12308. +])# _LT_ENABLE_SHARED
  12309. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12310. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12311. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12312. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12313. - # hardcode_minus_L: Not really in the search PATH,
  12314. - # but as the default location of the library.
  12315. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12316. - fi
  12317. - ;;
  12318. +# Old names:
  12319. +AC_DEFUN([AC_ENABLE_SHARED],
  12320. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12321. +])
  12322. - hpux11*)
  12323. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12324. - case $host_cpu in
  12325. - hppa*64*)
  12326. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12327. - ;;
  12328. - ia64*)
  12329. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12330. - ;;
  12331. - *)
  12332. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12333. - ;;
  12334. - esac
  12335. - else
  12336. - case $host_cpu in
  12337. - hppa*64*)
  12338. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12339. - ;;
  12340. - ia64*)
  12341. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12342. - ;;
  12343. - *)
  12344. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12345. - ;;
  12346. - esac
  12347. - fi
  12348. - if test "$with_gnu_ld" = no; then
  12349. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12350. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12351. +AC_DEFUN([AC_DISABLE_SHARED],
  12352. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12353. +])
  12354. - case $host_cpu in
  12355. - hppa*64*|ia64*)
  12356. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12357. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12358. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12359. - ;;
  12360. - *)
  12361. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12362. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12363. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12364. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12365. - # hardcode_minus_L: Not really in the search PATH,
  12366. - # but as the default location of the library.
  12367. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12368. - ;;
  12369. - esac
  12370. - fi
  12371. - ;;
  12372. +dnl aclocal-1.4 backwards compatibility:
  12373. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12374. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12375. - irix5* | irix6* | nonstopux*)
  12376. - if test "$GCC" = yes; then
  12377. - _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'
  12378. - else
  12379. - _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'
  12380. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12381. - fi
  12382. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12383. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12384. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12385. - ;;
  12386. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  12387. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12388. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12389. - else
  12390. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12391. - fi
  12392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12393. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12394. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12395. - ;;
  12396. - newsos6)
  12397. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12398. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12399. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12400. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12401. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12402. +# _LT_ENABLE_STATIC([DEFAULT])
  12403. +# ----------------------------
  12404. +# implement the --enable-static flag, and support the `static' and
  12405. +# `disable-static' LT_INIT options.
  12406. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12407. +m4_define([_LT_ENABLE_STATIC],
  12408. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12409. +AC_ARG_ENABLE([static],
  12410. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12411. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12412. + [p=${PACKAGE-default}
  12413. + case $enableval in
  12414. + yes) enable_static=yes ;;
  12415. + no) enable_static=no ;;
  12416. + *)
  12417. + enable_static=no
  12418. + # Look at the argument we got. We use all the common list separators.
  12419. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12420. + for pkg in $enableval; do
  12421. + IFS="$lt_save_ifs"
  12422. + if test "X$pkg" = "X$p"; then
  12423. + enable_static=yes
  12424. + fi
  12425. + done
  12426. + IFS="$lt_save_ifs"
  12427. ;;
  12428. + esac],
  12429. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12430. - openbsd*)
  12431. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12432. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12433. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12434. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12435. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12436. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12437. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12438. - else
  12439. - case $host_os in
  12440. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12441. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12442. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12443. - ;;
  12444. - *)
  12445. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12446. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12447. - ;;
  12448. - esac
  12449. - fi
  12450. - ;;
  12451. + _LT_DECL([build_old_libs], [enable_static], [0],
  12452. + [Whether or not to build static libraries])
  12453. +])# _LT_ENABLE_STATIC
  12454. - os2*)
  12455. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12456. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12457. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12458. - _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'
  12459. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12460. - ;;
  12461. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12462. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12463. - osf3*)
  12464. - if test "$GCC" = yes; then
  12465. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12466. - _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'
  12467. - else
  12468. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12469. - _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'
  12470. - fi
  12471. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12472. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12473. - ;;
  12474. +# Old names:
  12475. +AC_DEFUN([AC_ENABLE_STATIC],
  12476. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12477. +])
  12478. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12479. - if test "$GCC" = yes; then
  12480. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12481. - _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'
  12482. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12483. - else
  12484. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12485. - _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'
  12486. - _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~
  12487. - $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'
  12488. +AC_DEFUN([AC_DISABLE_STATIC],
  12489. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12490. +])
  12491. - # Both c and cxx compiler support -rpath directly
  12492. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12493. - fi
  12494. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12495. - ;;
  12496. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12497. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12498. - solaris*)
  12499. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12500. - if test "$GCC" = yes; then
  12501. - wlarc='${wl}'
  12502. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12503. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12504. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12505. - else
  12506. - wlarc=''
  12507. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12508. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12509. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12510. - fi
  12511. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12512. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12513. - case $host_os in
  12514. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12515. - *)
  12516. - # The compiler driver will combine linker options so we
  12517. - # cannot just pass the convience library names through
  12518. - # without $wl, iff we do not link with $LD.
  12519. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12520. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12521. - case $wlarc in
  12522. - '')
  12523. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12524. - *)
  12525. - _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' ;;
  12526. - esac ;;
  12527. - esac
  12528. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12529. - ;;
  12530. +dnl aclocal-1.4 backwards compatibility:
  12531. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12532. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12533. - sunos4*)
  12534. - if test "x$host_vendor" = xsequent; then
  12535. - # Use $CC to link under sequent, because it throws in some extra .o
  12536. - # files that make .init and .fini sections work.
  12537. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12538. - else
  12539. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12540. - fi
  12541. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12542. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12543. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12544. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12545. +
  12546. +
  12547. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12548. +# ----------------------------------
  12549. +# implement the --enable-fast-install flag, and support the `fast-install'
  12550. +# and `disable-fast-install' LT_INIT options.
  12551. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12552. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12553. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12554. +AC_ARG_ENABLE([fast-install],
  12555. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12556. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12557. + [p=${PACKAGE-default}
  12558. + case $enableval in
  12559. + yes) enable_fast_install=yes ;;
  12560. + no) enable_fast_install=no ;;
  12561. + *)
  12562. + enable_fast_install=no
  12563. + # Look at the argument we got. We use all the common list separators.
  12564. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12565. + for pkg in $enableval; do
  12566. + IFS="$lt_save_ifs"
  12567. + if test "X$pkg" = "X$p"; then
  12568. + enable_fast_install=yes
  12569. + fi
  12570. + done
  12571. + IFS="$lt_save_ifs"
  12572. ;;
  12573. + esac],
  12574. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12575. - sysv4)
  12576. - case $host_vendor in
  12577. - sni)
  12578. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12579. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12580. - ;;
  12581. - siemens)
  12582. - ## LD is ld it makes a PLAMLIB
  12583. - ## CC just makes a GrossModule.
  12584. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12585. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12586. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12587. - ;;
  12588. - motorola)
  12589. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12590. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12591. - ;;
  12592. - esac
  12593. - runpath_var='LD_RUN_PATH'
  12594. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12595. - ;;
  12596. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12597. + [Whether or not to optimize for fast installation])dnl
  12598. +])# _LT_ENABLE_FAST_INSTALL
  12599. +
  12600. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12601. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12602. +
  12603. +# Old names:
  12604. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12605. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12606. +AC_DIAGNOSE([obsolete],
  12607. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12608. +the `fast-install' option into LT_INIT's first parameter.])
  12609. +])
  12610. - sysv4.3*)
  12611. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12612. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12613. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12614. - ;;
  12615. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12616. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12617. +AC_DIAGNOSE([obsolete],
  12618. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12619. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12620. +])
  12621. - sysv4*MP*)
  12622. - if test -d /usr/nec; then
  12623. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12624. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12625. - runpath_var=LD_RUN_PATH
  12626. - hardcode_runpath_var=yes
  12627. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12628. - fi
  12629. - ;;
  12630. +dnl aclocal-1.4 backwards compatibility:
  12631. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12632. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12633. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12634. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12635. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12636. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12637. - runpath_var='LD_RUN_PATH'
  12638. - if test "$GCC" = yes; then
  12639. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12640. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12641. - else
  12642. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12643. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12644. - fi
  12645. - ;;
  12646. +# _LT_WITH_PIC([MODE])
  12647. +# --------------------
  12648. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12649. +# LT_INIT options.
  12650. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12651. +m4_define([_LT_WITH_PIC],
  12652. +[AC_ARG_WITH([pic],
  12653. + [AS_HELP_STRING([--with-pic],
  12654. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12655. + [pic_mode="$withval"],
  12656. + [pic_mode=default])
  12657. - sysv5* | sco3.2v5* | sco5v6*)
  12658. - # Note: We can NOT use -z defs as we might desire, because we do not
  12659. - # link with -lc, and that would cause any symbols used from libc to
  12660. - # always be unresolved, which means just about no library would
  12661. - # ever link correctly. If we're not using GNU ld we use -z text
  12662. - # though, which does catch some bad symbols but isn't as heavy-handed
  12663. - # as -z defs.
  12664. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12665. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12666. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12667. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12668. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12669. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12670. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12671. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12672. - runpath_var='LD_RUN_PATH'
  12673. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12674. - if test "$GCC" = yes; then
  12675. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12676. - _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'
  12677. - else
  12678. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12679. - _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'
  12680. - fi
  12681. - ;;
  12682. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12683. +])# _LT_WITH_PIC
  12684. - uts4*)
  12685. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12686. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12687. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12688. - ;;
  12689. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12690. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12691. - *)
  12692. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12693. - ;;
  12694. - esac
  12695. - fi
  12696. +# Old name:
  12697. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12698. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12699. +AC_DIAGNOSE([obsolete],
  12700. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12701. +put the `pic-only' option into LT_INIT's first parameter.])
  12702. ])
  12703. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12704. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12705. +dnl aclocal-1.4 backwards compatibility:
  12706. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12707. +
  12708. +
  12709. +m4_define([_LTDL_MODE], [])
  12710. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12711. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12712. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12713. + [m4_define([_LTDL_MODE], [recursive])])
  12714. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12715. + [m4_define([_LTDL_MODE], [subproject])])
  12716. +
  12717. +m4_define([_LTDL_TYPE], [])
  12718. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12719. + [m4_define([_LTDL_TYPE], [installable])])
  12720. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12721. + [m4_define([_LTDL_TYPE], [convenience])])
  12722. +
  12723. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12724. #
  12725. -# Do we need to explicitly link libc?
  12726. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12727. +# Written by Gary V. Vaughan, 2004
  12728. #
  12729. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12730. -x|xyes)
  12731. - # Assume -lc should be added
  12732. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12733. +# This file is free software; the Free Software Foundation gives
  12734. +# unlimited permission to copy and/or distribute it, with or without
  12735. +# modifications, as long as this notice is preserved.
  12736. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12737. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12738. - *'~'*)
  12739. - # FIXME: we may have to deal with multi-command sequences.
  12740. - ;;
  12741. - '$CC '*)
  12742. - # Test whether the compiler implicitly links with -lc since on some
  12743. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12744. - # to ld, don't add -lc before -lgcc.
  12745. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12746. - $rm conftest*
  12747. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12748. +# serial 6 ltsugar.m4
  12749. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12750. - soname=conftest
  12751. - lib=conftest
  12752. - libobjs=conftest.$ac_objext
  12753. - deplibs=
  12754. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12755. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12756. - compiler_flags=-v
  12757. - linker_flags=-v
  12758. - verstring=
  12759. - output_objdir=.
  12760. - libname=conftest
  12761. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12762. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12763. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12764. - then
  12765. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12766. - else
  12767. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12768. - fi
  12769. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12770. - else
  12771. - cat conftest.err 1>&5
  12772. - fi
  12773. - $rm conftest*
  12774. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12775. - ;;
  12776. - esac
  12777. - fi
  12778. - ;;
  12779. -esac
  12780. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12781. +# This is to help aclocal find these macros, as it can't see m4_define.
  12782. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12783. -# _LT_AC_FILE_LTDLL_C
  12784. -# -------------------
  12785. -# Be careful that the start marker always follows a newline.
  12786. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12787. -# /* ltdll.c starts here */
  12788. -# #define WIN32_LEAN_AND_MEAN
  12789. -# #include <windows.h>
  12790. -# #undef WIN32_LEAN_AND_MEAN
  12791. -# #include <stdio.h>
  12792. -#
  12793. -# #ifndef __CYGWIN__
  12794. -# # ifdef __CYGWIN32__
  12795. -# # define __CYGWIN__ __CYGWIN32__
  12796. -# # endif
  12797. -# #endif
  12798. -#
  12799. -# #ifdef __cplusplus
  12800. -# extern "C" {
  12801. -# #endif
  12802. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12803. -# #ifdef __cplusplus
  12804. -# }
  12805. -# #endif
  12806. -#
  12807. -# #ifdef __CYGWIN__
  12808. -# #include <cygwin/cygwin_dll.h>
  12809. -# DECLARE_CYGWIN_DLL( DllMain );
  12810. -# #endif
  12811. -# HINSTANCE __hDllInstance_base;
  12812. -#
  12813. -# BOOL APIENTRY
  12814. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12815. -# {
  12816. -# __hDllInstance_base = hInst;
  12817. -# return TRUE;
  12818. -# }
  12819. -# /* ltdll.c ends here */
  12820. -])# _LT_AC_FILE_LTDLL_C
  12821. +# lt_join(SEP, ARG1, [ARG2...])
  12822. +# -----------------------------
  12823. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12824. +# associated separator.
  12825. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12826. +# versions in m4sugar had bugs.
  12827. +m4_define([lt_join],
  12828. +[m4_if([$#], [1], [],
  12829. + [$#], [2], [[$2]],
  12830. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12831. +m4_define([_lt_join],
  12832. +[m4_if([$#$2], [2], [],
  12833. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12834. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12835. -# ---------------------------------
  12836. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12837. +# lt_car(LIST)
  12838. +# lt_cdr(LIST)
  12839. +# ------------
  12840. +# Manipulate m4 lists.
  12841. +# These macros are necessary as long as will still need to support
  12842. +# Autoconf-2.59 which quotes differently.
  12843. +m4_define([lt_car], [[$1]])
  12844. +m4_define([lt_cdr],
  12845. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12846. + [$#], 1, [],
  12847. + [m4_dquote(m4_shift($@))])])
  12848. +m4_define([lt_unquote], $1)
  12849. +
  12850. +
  12851. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12852. +# ------------------------------------------
  12853. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12854. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12855. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12856. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12857. +# than defined and empty).
  12858. +#
  12859. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12860. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12861. +m4_define([lt_append],
  12862. +[m4_define([$1],
  12863. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12864. -# old names
  12865. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12866. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12867. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12868. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12869. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12870. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12871. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12872. -# This is just to silence aclocal about the macro not being used
  12873. -ifelse([AC_DISABLE_FAST_INSTALL])
  12874. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12875. +# ----------------------------------------------------------
  12876. +# Produce a SEP delimited list of all paired combinations of elements of
  12877. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12878. +# has the form PREFIXmINFIXSUFFIXn.
  12879. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12880. +m4_define([lt_combine],
  12881. +[m4_if(m4_eval([$# > 3]), [1],
  12882. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12883. +[[m4_foreach([_Lt_prefix], [$2],
  12884. + [m4_foreach([_Lt_suffix],
  12885. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12886. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12887. +
  12888. +
  12889. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12890. +# -----------------------------------------------------------------------
  12891. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12892. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12893. +m4_define([lt_if_append_uniq],
  12894. +[m4_ifdef([$1],
  12895. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12896. + [lt_append([$1], [$2], [$3])$4],
  12897. + [$5])],
  12898. + [lt_append([$1], [$2], [$3])$4])])
  12899. -AC_DEFUN([LT_AC_PROG_GCJ],
  12900. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12901. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12902. - AC_SUBST(GCJFLAGS)
  12903. -])
  12904. -AC_DEFUN([LT_AC_PROG_RC],
  12905. -[AC_CHECK_TOOL(RC, windres, no)
  12906. -])
  12907. +# lt_dict_add(DICT, KEY, VALUE)
  12908. +# -----------------------------
  12909. +m4_define([lt_dict_add],
  12910. +[m4_define([$1($2)], [$3])])
  12911. -# NOTE: This macro has been submitted for inclusion into #
  12912. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12913. -# a released version of Autoconf we should remove this #
  12914. -# macro and use it instead. #
  12915. -# LT_AC_PROG_SED
  12916. -# --------------
  12917. -# Check for a fully-functional sed program, that truncates
  12918. -# as few characters as possible. Prefer GNU sed if found.
  12919. -AC_DEFUN([LT_AC_PROG_SED],
  12920. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12921. -AC_CACHE_VAL(lt_cv_path_SED,
  12922. -[# Loop through the user's path and test for sed and gsed.
  12923. -# Then use that list of sed's as ones to test for truncation.
  12924. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12925. -for as_dir in $PATH
  12926. -do
  12927. - IFS=$as_save_IFS
  12928. - test -z "$as_dir" && as_dir=.
  12929. - for lt_ac_prog in sed gsed; do
  12930. - for ac_exec_ext in '' $ac_executable_extensions; do
  12931. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12932. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12933. - fi
  12934. - done
  12935. - done
  12936. -done
  12937. -lt_ac_max=0
  12938. -lt_ac_count=0
  12939. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12940. -# along with /bin/sed that truncates output.
  12941. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12942. - test ! -f $lt_ac_sed && continue
  12943. - cat /dev/null > conftest.in
  12944. - lt_ac_count=0
  12945. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12946. - # Check for GNU sed and select it if it is found.
  12947. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12948. - lt_cv_path_SED=$lt_ac_sed
  12949. - break
  12950. - fi
  12951. - while true; do
  12952. - cat conftest.in conftest.in >conftest.tmp
  12953. - mv conftest.tmp conftest.in
  12954. - cp conftest.in conftest.nl
  12955. - echo >>conftest.nl
  12956. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12957. - cmp -s conftest.out conftest.nl || break
  12958. - # 10000 chars as input seems more than enough
  12959. - test $lt_ac_count -gt 10 && break
  12960. - lt_ac_count=`expr $lt_ac_count + 1`
  12961. - if test $lt_ac_count -gt $lt_ac_max; then
  12962. - lt_ac_max=$lt_ac_count
  12963. - lt_cv_path_SED=$lt_ac_sed
  12964. - fi
  12965. - done
  12966. -done
  12967. +
  12968. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12969. +# --------------------------------------------
  12970. +m4_define([lt_dict_add_subkey],
  12971. +[m4_define([$1($2:$3)], [$4])])
  12972. +
  12973. +
  12974. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12975. +# ----------------------------------
  12976. +m4_define([lt_dict_fetch],
  12977. +[m4_ifval([$3],
  12978. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12979. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12980. +
  12981. +
  12982. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12983. +# -----------------------------------------------------------------
  12984. +m4_define([lt_if_dict_fetch],
  12985. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12986. + [$5],
  12987. + [$6])])
  12988. +
  12989. +
  12990. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12991. +# --------------------------------------------------------------
  12992. +m4_define([lt_dict_filter],
  12993. +[m4_if([$5], [], [],
  12994. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12995. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12996. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12997. ])
  12998. -SED=$lt_cv_path_SED
  12999. -AC_MSG_RESULT([$SED])
  13000. +
  13001. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  13002. +#
  13003. +# Copyright (C) 2004 Free Software Foundation, Inc.
  13004. +# Written by Scott James Remnant, 2004
  13005. +#
  13006. +# This file is free software; the Free Software Foundation gives
  13007. +# unlimited permission to copy and/or distribute it, with or without
  13008. +# modifications, as long as this notice is preserved.
  13009. +
  13010. +# Generated from ltversion.in.
  13011. +
  13012. +# serial 3017 ltversion.m4
  13013. +# This file is part of GNU Libtool
  13014. +
  13015. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  13016. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  13017. +
  13018. +AC_DEFUN([LTVERSION_VERSION],
  13019. +[macro_version='2.2.6b'
  13020. +macro_revision='1.3017'
  13021. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  13022. +_LT_DECL(, macro_revision, 0)
  13023. ])
  13024. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  13025. +#
  13026. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  13027. +# Written by Scott James Remnant, 2004.
  13028. +#
  13029. +# This file is free software; the Free Software Foundation gives
  13030. +# unlimited permission to copy and/or distribute it, with or without
  13031. +# modifications, as long as this notice is preserved.
  13032. +
  13033. +# serial 4 lt~obsolete.m4
  13034. +
  13035. +# These exist entirely to fool aclocal when bootstrapping libtool.
  13036. +#
  13037. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  13038. +# which have later been changed to m4_define as they aren't part of the
  13039. +# exported API, or moved to Autoconf or Automake where they belong.
  13040. +#
  13041. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  13042. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  13043. +# using a macro with the same name in our local m4/libtool.m4 it'll
  13044. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  13045. +# and doesn't know about Autoconf macros at all.)
  13046. +#
  13047. +# So we provide this file, which has a silly filename so it's always
  13048. +# included after everything else. This provides aclocal with the
  13049. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  13050. +# because those macros already exist, or will be overwritten later.
  13051. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  13052. +#
  13053. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  13054. +# Yes, that means every name once taken will need to remain here until
  13055. +# we give up compatibility with versions before 1.7, at which point
  13056. +# we need to keep only those names which we still refer to.
  13057. +
  13058. +# This is to help aclocal find these macros, as it can't see m4_define.
  13059. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  13060. +
  13061. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  13062. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  13063. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  13064. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  13065. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  13066. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  13067. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  13068. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  13069. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  13070. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  13071. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  13072. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  13073. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  13074. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  13075. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  13076. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  13077. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  13078. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  13079. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  13080. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  13081. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  13082. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  13083. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  13084. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  13085. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  13086. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  13087. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  13088. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  13089. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  13090. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  13091. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  13092. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  13093. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  13094. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  13095. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  13096. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  13097. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  13098. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  13099. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  13100. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  13101. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  13102. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  13103. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  13104. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  13105. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  13106. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  13107. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  13108. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  13109. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  13110. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  13111. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  13112. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  13113. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  13114. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  13115. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  13116. +
  13117. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  13118. #
  13119. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  13120. @@ -6554,7 +8123,8 @@
  13121. _PKG_TEXT
  13122. ])],
  13123. - [$4])
  13124. + [AC_MSG_RESULT([no])
  13125. + $4])
  13126. elif test $pkg_failed = untried; then
  13127. ifelse([$4], , [AC_MSG_FAILURE(dnl
  13128. [The pkg-config script could not be found or is too old. Make sure it
  13129. @@ -6563,7 +8133,7 @@
  13130. _PKG_TEXT
  13131. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  13132. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
  13133. [$4])
  13134. else
  13135. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  13136. @@ -6573,51 +8143,7 @@
  13137. fi[]dnl
  13138. ])# PKG_CHECK_MODULES
  13139. -dnl Copyright 2005 Red Hat, Inc
  13140. -dnl
  13141. -dnl Permission to use, copy, modify, distribute, and sell this software and its
  13142. -dnl documentation for any purpose is hereby granted without fee, provided that
  13143. -dnl the above copyright notice appear in all copies and that both that
  13144. -dnl copyright notice and this permission notice appear in supporting
  13145. -dnl documentation.
  13146. -dnl
  13147. -dnl The above copyright notice and this permission notice shall be included
  13148. -dnl in all copies or substantial portions of the Software.
  13149. -dnl
  13150. -dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  13151. -dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  13152. -dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  13153. -dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  13154. -dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  13155. -dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  13156. -dnl OTHER DEALINGS IN THE SOFTWARE.
  13157. -dnl
  13158. -dnl Except as contained in this notice, the name of the copyright holders shall
  13159. -dnl not be used in advertising or otherwise to promote the sale, use or
  13160. -dnl other dealings in this Software without prior written authorization
  13161. -dnl from the copyright holders.
  13162. -dnl
  13163. -
  13164. -# XORG_RELEASE_VERSION
  13165. -# --------------------
  13166. -# Adds --with/without-release-string and changes the PACKAGE and
  13167. -# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
  13168. -# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
  13169. -
  13170. -AC_DEFUN([XORG_RELEASE_VERSION],[
  13171. - AC_ARG_WITH(release-version,
  13172. - AC_HELP_STRING([--with-release-version=STRING],
  13173. - [Use release version string in package name]),
  13174. - [RELEASE_VERSION="$withval"],
  13175. - [RELEASE_VERSION=""])
  13176. - if test "x$RELEASE_VERSION" != "x"; then
  13177. - PACKAGE="$PACKAGE-$RELEASE_VERSION"
  13178. - PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  13179. - AC_MSG_NOTICE([Building with package name set to $PACKAGE])
  13180. - fi
  13181. -])
  13182. -
  13183. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  13184. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13185. #
  13186. # This file is free software; the Free Software Foundation
  13187. # gives unlimited permission to copy and/or distribute it,
  13188. @@ -6627,14 +8153,31 @@
  13189. # ----------------------------
  13190. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  13191. # generated from the m4 files accompanying Automake X.Y.
  13192. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  13193. +# (This private macro should not be called outside this file.)
  13194. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  13195. +[am__api_version='1.11'
  13196. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  13197. +dnl require some minimum version. Point them to the right macro.
  13198. +m4_if([$1], [1.11.1], [],
  13199. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  13200. +])
  13201. +
  13202. +# _AM_AUTOCONF_VERSION(VERSION)
  13203. +# -----------------------------
  13204. +# aclocal traces this macro to find the Autoconf version.
  13205. +# This is a private macro too. Using m4_define simplifies
  13206. +# the logic in aclocal, which can simply ignore this definition.
  13207. +m4_define([_AM_AUTOCONF_VERSION], [])
  13208. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13209. # -------------------------------
  13210. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  13211. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13212. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13213. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13214. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13215. - [AM_AUTOMAKE_VERSION([1.9.6])])
  13216. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13217. +m4_ifndef([AC_AUTOCONF_VERSION],
  13218. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13219. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13220. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13221. @@ -6691,14 +8234,14 @@
  13222. # AM_CONDITIONAL -*- Autoconf -*-
  13223. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  13224. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13225. # Free Software Foundation, Inc.
  13226. #
  13227. # This file is free software; the Free Software Foundation
  13228. # gives unlimited permission to copy and/or distribute it,
  13229. # with or without modifications, as long as this notice is preserved.
  13230. -# serial 7
  13231. +# serial 9
  13232. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13233. # -------------------------------------
  13234. @@ -6707,8 +8250,11 @@
  13235. [AC_PREREQ(2.52)dnl
  13236. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  13237. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  13238. -AC_SUBST([$1_TRUE])
  13239. -AC_SUBST([$1_FALSE])
  13240. +AC_SUBST([$1_TRUE])dnl
  13241. +AC_SUBST([$1_FALSE])dnl
  13242. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13243. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13244. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13245. if $2; then
  13246. $1_TRUE=
  13247. $1_FALSE='#'
  13248. @@ -6722,15 +8268,14 @@
  13249. Usually this means the macro was only invoked conditionally.]])
  13250. fi])])
  13251. -
  13252. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13253. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13254. # Free Software Foundation, Inc.
  13255. #
  13256. # This file is free software; the Free Software Foundation
  13257. # gives unlimited permission to copy and/or distribute it,
  13258. # with or without modifications, as long as this notice is preserved.
  13259. -# serial 8
  13260. +# serial 10
  13261. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13262. # written in clear, in which case automake, when reading aclocal.m4,
  13263. @@ -6758,6 +8303,7 @@
  13264. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13265. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13266. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13267. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13268. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13269. [depcc="$$1" am_compiler_list=])
  13270. @@ -6786,6 +8332,16 @@
  13271. if test "$am_compiler_list" = ""; then
  13272. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13273. fi
  13274. + am__universal=false
  13275. + m4_case([$1], [CC],
  13276. + [case " $depcc " in #(
  13277. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13278. + esac],
  13279. + [CXX],
  13280. + [case " $depcc " in #(
  13281. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13282. + esac])
  13283. +
  13284. for depmode in $am_compiler_list; do
  13285. # Setup a source with many dependencies, because some compilers
  13286. # like to wrap large dependency lists on column 80 (with \), and
  13287. @@ -6803,7 +8359,17 @@
  13288. done
  13289. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13290. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13291. + # mode. It turns out that the SunPro C++ compiler does not properly
  13292. + # handle `-M -o', and we need to detect this. Also, some Intel
  13293. + # versions had trouble with output in subdirs
  13294. + am__obj=sub/conftest.${OBJEXT-o}
  13295. + am__minus_obj="-o $am__obj"
  13296. case $depmode in
  13297. + gcc)
  13298. + # This depmode causes a compiler race in universal mode.
  13299. + test "$am__universal" = false || continue
  13300. + ;;
  13301. nosideeffect)
  13302. # after this tag, mechanisms are not by side-effect, so they'll
  13303. # only be used when explicitly requested
  13304. @@ -6813,18 +8379,23 @@
  13305. break
  13306. fi
  13307. ;;
  13308. + msvisualcpp | msvcmsys)
  13309. + # This compiler won't grok `-c -o', but also, the minuso test has
  13310. + # not run yet. These depmodes are late enough in the game, and
  13311. + # so weak that their functioning should not be impacted.
  13312. + am__obj=conftest.${OBJEXT-o}
  13313. + am__minus_obj=
  13314. + ;;
  13315. none) break ;;
  13316. esac
  13317. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13318. - # mode. It turns out that the SunPro C++ compiler does not properly
  13319. - # handle `-M -o', and we need to detect this.
  13320. if depmode=$depmode \
  13321. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13322. + source=sub/conftest.c object=$am__obj \
  13323. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13324. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13325. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13326. >/dev/null 2>conftest.err &&
  13327. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13328. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13329. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13330. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13331. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13332. # icc doesn't choke on unknown options, it will just issue warnings
  13333. # or remarks (even with -Werror). So we grep stderr for any message
  13334. @@ -6875,61 +8446,74 @@
  13335. AMDEPBACKSLASH='\'
  13336. fi
  13337. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13338. -AC_SUBST([AMDEPBACKSLASH])
  13339. +AC_SUBST([AMDEPBACKSLASH])dnl
  13340. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13341. ])
  13342. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13343. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13344. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13345. # Free Software Foundation, Inc.
  13346. #
  13347. # This file is free software; the Free Software Foundation
  13348. # gives unlimited permission to copy and/or distribute it,
  13349. # with or without modifications, as long as this notice is preserved.
  13350. -#serial 3
  13351. +#serial 5
  13352. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13353. # ------------------------------
  13354. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13355. -[for mf in $CONFIG_FILES; do
  13356. - # Strip MF so we end up with the name of the file.
  13357. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13358. - # Check whether this is an Automake generated Makefile or not.
  13359. - # We used to match only the files named `Makefile.in', but
  13360. - # some people rename them; so instead we look at the file content.
  13361. - # Grep'ing the first line is not enough: some people post-process
  13362. - # each Makefile.in and add a new line on top of each file to say so.
  13363. - # So let's grep whole file.
  13364. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13365. - dirpart=`AS_DIRNAME("$mf")`
  13366. - else
  13367. - continue
  13368. - fi
  13369. - # Extract the definition of DEPDIR, am__include, and am__quote
  13370. - # from the Makefile without running `make'.
  13371. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13372. - test -z "$DEPDIR" && continue
  13373. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13374. - test -z "am__include" && continue
  13375. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13376. - # When using ansi2knr, U may be empty or an underscore; expand it
  13377. - U=`sed -n 's/^U = //p' < "$mf"`
  13378. - # Find all dependency output files, they are included files with
  13379. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13380. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13381. - # expansion.
  13382. - for file in `sed -n "
  13383. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13384. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13385. - # Make sure the directory exists.
  13386. - test -f "$dirpart/$file" && continue
  13387. - fdir=`AS_DIRNAME(["$file"])`
  13388. - AS_MKDIR_P([$dirpart/$fdir])
  13389. - # echo "creating $dirpart/$file"
  13390. - echo '# dummy' > "$dirpart/$file"
  13391. +[{
  13392. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13393. + # are listed without --file. Let's play safe and only enable the eval
  13394. + # if we detect the quoting.
  13395. + case $CONFIG_FILES in
  13396. + *\'*) eval set x "$CONFIG_FILES" ;;
  13397. + *) set x $CONFIG_FILES ;;
  13398. + esac
  13399. + shift
  13400. + for mf
  13401. + do
  13402. + # Strip MF so we end up with the name of the file.
  13403. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13404. + # Check whether this is an Automake generated Makefile or not.
  13405. + # We used to match only the files named `Makefile.in', but
  13406. + # some people rename them; so instead we look at the file content.
  13407. + # Grep'ing the first line is not enough: some people post-process
  13408. + # each Makefile.in and add a new line on top of each file to say so.
  13409. + # Grep'ing the whole file is not good either: AIX grep has a line
  13410. + # limit of 2048, but all sed's we know have understand at least 4000.
  13411. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13412. + dirpart=`AS_DIRNAME("$mf")`
  13413. + else
  13414. + continue
  13415. + fi
  13416. + # Extract the definition of DEPDIR, am__include, and am__quote
  13417. + # from the Makefile without running `make'.
  13418. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13419. + test -z "$DEPDIR" && continue
  13420. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13421. + test -z "am__include" && continue
  13422. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13423. + # When using ansi2knr, U may be empty or an underscore; expand it
  13424. + U=`sed -n 's/^U = //p' < "$mf"`
  13425. + # Find all dependency output files, they are included files with
  13426. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13427. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13428. + # expansion.
  13429. + for file in `sed -n "
  13430. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13431. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13432. + # Make sure the directory exists.
  13433. + test -f "$dirpart/$file" && continue
  13434. + fdir=`AS_DIRNAME(["$file"])`
  13435. + AS_MKDIR_P([$dirpart/$fdir])
  13436. + # echo "creating $dirpart/$file"
  13437. + echo '# dummy' > "$dirpart/$file"
  13438. + done
  13439. done
  13440. -done
  13441. +}
  13442. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13443. @@ -6960,14 +8544,14 @@
  13444. # Do all the work for Automake. -*- Autoconf -*-
  13445. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13446. -# Free Software Foundation, Inc.
  13447. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13448. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13449. #
  13450. # This file is free software; the Free Software Foundation
  13451. # gives unlimited permission to copy and/or distribute it,
  13452. # with or without modifications, as long as this notice is preserved.
  13453. -# serial 12
  13454. +# serial 16
  13455. # This macro actually does too much. Some checks are only needed if
  13456. # your package does certain things. But this isn't really a big deal.
  13457. @@ -6984,16 +8568,20 @@
  13458. # arguments mandatory, and then we can depend on a new Autoconf
  13459. # release and drop the old call support.
  13460. AC_DEFUN([AM_INIT_AUTOMAKE],
  13461. -[AC_PREREQ([2.58])dnl
  13462. +[AC_PREREQ([2.62])dnl
  13463. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13464. dnl the ones we care about.
  13465. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13466. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13467. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13468. -# test to see if srcdir already configured
  13469. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13470. - test -f $srcdir/config.status; then
  13471. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13472. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13473. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13474. + # is not polluted with repeated "-I."
  13475. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13476. + # test to see if srcdir already configured
  13477. + if test -f $srcdir/config.status; then
  13478. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13479. + fi
  13480. fi
  13481. # test whether we have cygpath
  13482. @@ -7013,6 +8601,9 @@
  13483. AC_SUBST([PACKAGE], [$1])dnl
  13484. AC_SUBST([VERSION], [$2])],
  13485. [_AM_SET_OPTIONS([$1])dnl
  13486. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13487. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13488. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13489. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13490. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13491. @@ -7028,8 +8619,8 @@
  13492. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13493. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13494. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13495. -AM_PROG_INSTALL_SH
  13496. -AM_PROG_INSTALL_STRIP
  13497. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13498. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13499. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13500. # We need awk for the "check" target. The system "awk" is bad on
  13501. # some platforms.
  13502. @@ -7037,20 +8628,37 @@
  13503. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13504. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13505. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13506. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13507. - [_AM_PROG_TAR([v7])])])
  13508. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13509. + [_AM_PROG_TAR([v7])])])
  13510. _AM_IF_OPTION([no-dependencies],,
  13511. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13512. - [_AM_DEPENDENCIES(CC)],
  13513. - [define([AC_PROG_CC],
  13514. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13515. + [_AM_DEPENDENCIES(CC)],
  13516. + [define([AC_PROG_CC],
  13517. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13518. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13519. - [_AM_DEPENDENCIES(CXX)],
  13520. - [define([AC_PROG_CXX],
  13521. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13522. + [_AM_DEPENDENCIES(CXX)],
  13523. + [define([AC_PROG_CXX],
  13524. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13525. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13526. + [_AM_DEPENDENCIES(OBJC)],
  13527. + [define([AC_PROG_OBJC],
  13528. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13529. ])
  13530. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13531. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13532. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13533. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13534. +AC_CONFIG_COMMANDS_PRE(dnl
  13535. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13536. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13537. ])
  13538. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13539. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13540. +dnl mangled by Autoconf and run in a shell conditional statement.
  13541. +m4_define([_AC_COMPILER_EXEEXT],
  13542. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13543. +
  13544. # When config.status generates a header, we must update the stamp-h file.
  13545. # This file resides in the same directory as the config header
  13546. @@ -7061,18 +8669,19 @@
  13547. # our stamp files there.
  13548. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13549. [# Compute $1's index in $config_headers.
  13550. +_am_arg=$1
  13551. _am_stamp_count=1
  13552. for _am_header in $config_headers :; do
  13553. case $_am_header in
  13554. - $1 | $1:* )
  13555. + $_am_arg | $_am_arg:* )
  13556. break ;;
  13557. * )
  13558. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13559. esac
  13560. done
  13561. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13562. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13563. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13564. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13565. #
  13566. # This file is free software; the Free Software Foundation
  13567. # gives unlimited permission to copy and/or distribute it,
  13568. @@ -7083,7 +8692,14 @@
  13569. # Define $install_sh.
  13570. AC_DEFUN([AM_PROG_INSTALL_SH],
  13571. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13572. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13573. +if test x"${install_sh}" != xset; then
  13574. + case $am_aux_dir in
  13575. + *\ * | *\ *)
  13576. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13577. + *)
  13578. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13579. + esac
  13580. +fi
  13581. AC_SUBST(install_sh)])
  13582. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13583. @@ -7110,27 +8726,38 @@
  13584. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  13585. # From Jim Meyering
  13586. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  13587. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13588. # Free Software Foundation, Inc.
  13589. #
  13590. # This file is free software; the Free Software Foundation
  13591. # gives unlimited permission to copy and/or distribute it,
  13592. # with or without modifications, as long as this notice is preserved.
  13593. -# serial 4
  13594. +# serial 5
  13595. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  13596. +# ----------------------------------
  13597. +# Control maintainer-specific portions of Makefiles.
  13598. +# Default is to disable them, unless `enable' is passed literally.
  13599. +# For symmetry, `disable' may be passed as well. Anyway, the user
  13600. +# can override the default with the --enable/--disable switch.
  13601. AC_DEFUN([AM_MAINTAINER_MODE],
  13602. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  13603. - dnl maintainer-mode is disabled by default
  13604. - AC_ARG_ENABLE(maintainer-mode,
  13605. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  13606. +[m4_case(m4_default([$1], [disable]),
  13607. + [enable], [m4_define([am_maintainer_other], [disable])],
  13608. + [disable], [m4_define([am_maintainer_other], [enable])],
  13609. + [m4_define([am_maintainer_other], [enable])
  13610. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  13611. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  13612. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  13613. + AC_ARG_ENABLE([maintainer-mode],
  13614. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  13615. (and sometimes confusing) to the casual installer],
  13616. - USE_MAINTAINER_MODE=$enableval,
  13617. - USE_MAINTAINER_MODE=no)
  13618. + [USE_MAINTAINER_MODE=$enableval],
  13619. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  13620. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  13621. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  13622. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  13623. MAINT=$MAINTAINER_MODE_TRUE
  13624. - AC_SUBST(MAINT)dnl
  13625. + AC_SUBST([MAINT])dnl
  13626. ]
  13627. )
  13628. @@ -7138,13 +8765,13 @@
  13629. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13630. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13631. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13632. #
  13633. # This file is free software; the Free Software Foundation
  13634. # gives unlimited permission to copy and/or distribute it,
  13635. # with or without modifications, as long as this notice is preserved.
  13636. -# serial 3
  13637. +# serial 4
  13638. # AM_MAKE_INCLUDE()
  13639. # -----------------
  13640. @@ -7153,7 +8780,7 @@
  13641. [am_make=${MAKE-make}
  13642. cat > confinc << 'END'
  13643. am__doit:
  13644. - @echo done
  13645. + @echo this is the am__doit target
  13646. .PHONY: am__doit
  13647. END
  13648. # If we don't find an include directive, just comment out the code.
  13649. @@ -7163,24 +8790,24 @@
  13650. _am_result=none
  13651. # First try GNU make style include.
  13652. echo "include confinc" > confmf
  13653. -# We grep out `Entering directory' and `Leaving directory'
  13654. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13655. -# In particular we don't look at `^make:' because GNU make might
  13656. -# be invoked under some other name (usually "gmake"), in which
  13657. -# case it prints its new name instead of `make'.
  13658. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13659. - am__include=include
  13660. - am__quote=
  13661. - _am_result=GNU
  13662. -fi
  13663. +# Ignore all kinds of additional output from `make'.
  13664. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13665. +*the\ am__doit\ target*)
  13666. + am__include=include
  13667. + am__quote=
  13668. + _am_result=GNU
  13669. + ;;
  13670. +esac
  13671. # Now try BSD make style include.
  13672. if test "$am__include" = "#"; then
  13673. echo '.include "confinc"' > confmf
  13674. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13675. - am__include=.include
  13676. - am__quote="\""
  13677. - _am_result=BSD
  13678. - fi
  13679. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13680. + *the\ am__doit\ target*)
  13681. + am__include=.include
  13682. + am__quote="\""
  13683. + _am_result=BSD
  13684. + ;;
  13685. + esac
  13686. fi
  13687. AC_SUBST([am__include])
  13688. AC_SUBST([am__quote])
  13689. @@ -7190,14 +8817,14 @@
  13690. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13691. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13692. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13693. # Free Software Foundation, Inc.
  13694. #
  13695. # This file is free software; the Free Software Foundation
  13696. # gives unlimited permission to copy and/or distribute it,
  13697. # with or without modifications, as long as this notice is preserved.
  13698. -# serial 4
  13699. +# serial 6
  13700. # AM_MISSING_PROG(NAME, PROGRAM)
  13701. # ------------------------------
  13702. @@ -7213,7 +8840,15 @@
  13703. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13704. AC_DEFUN([AM_MISSING_HAS_RUN],
  13705. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13706. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13707. +AC_REQUIRE_AUX_FILE([missing])dnl
  13708. +if test x"${MISSING+set}" != xset; then
  13709. + case $am_aux_dir in
  13710. + *\ * | *\ *)
  13711. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13712. + *)
  13713. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13714. + esac
  13715. +fi
  13716. # Use eval to expand $SHELL
  13717. if eval "$MISSING --run true"; then
  13718. am_missing_run="$MISSING --run "
  13719. @@ -7223,7 +8858,7 @@
  13720. fi
  13721. ])
  13722. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13723. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13724. #
  13725. # This file is free software; the Free Software Foundation
  13726. # gives unlimited permission to copy and/or distribute it,
  13727. @@ -7231,70 +8866,33 @@
  13728. # AM_PROG_MKDIR_P
  13729. # ---------------
  13730. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13731. -#
  13732. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13733. -# created by `make install' are always world readable, even if the
  13734. -# installer happens to have an overly restrictive umask (e.g. 077).
  13735. -# This was a mistake. There are at least two reasons why we must not
  13736. -# use `-m 0755':
  13737. -# - it causes special bits like SGID to be ignored,
  13738. -# - it may be too restrictive (some setups expect 775 directories).
  13739. -#
  13740. -# Do not use -m 0755 and let people choose whatever they expect by
  13741. -# setting umask.
  13742. -#
  13743. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13744. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13745. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13746. -# concurrently, both version can detect that a/ is missing, but only
  13747. -# one can create it and the other will error out. Consequently we
  13748. -# restrict ourselves to GNU make (using the --version option ensures
  13749. -# this.)
  13750. +# Check for `mkdir -p'.
  13751. AC_DEFUN([AM_PROG_MKDIR_P],
  13752. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13753. - # We used to keeping the `.' as first argument, in order to
  13754. - # allow $(mkdir_p) to be used without argument. As in
  13755. - # $(mkdir_p) $(somedir)
  13756. - # where $(somedir) is conditionally defined. However this is wrong
  13757. - # for two reasons:
  13758. - # 1. if the package is installed by a user who cannot write `.'
  13759. - # make install will fail,
  13760. - # 2. the above comment should most certainly read
  13761. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13762. - # so it does not work when $(somedir) is undefined and
  13763. - # $(DESTDIR) is not.
  13764. - # To support the latter case, we have to write
  13765. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13766. - # so the `.' trick is pointless.
  13767. - mkdir_p='mkdir -p --'
  13768. -else
  13769. - # On NextStep and OpenStep, the `mkdir' command does not
  13770. - # recognize any option. It will interpret all options as
  13771. - # directories to create, and then abort because `.' already
  13772. - # exists.
  13773. - for d in ./-p ./--version;
  13774. - do
  13775. - test -d $d && rmdir $d
  13776. - done
  13777. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13778. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13779. - mkdir_p='$(mkinstalldirs)'
  13780. - else
  13781. - mkdir_p='$(install_sh) -d'
  13782. - fi
  13783. -fi
  13784. -AC_SUBST([mkdir_p])])
  13785. +[AC_PREREQ([2.60])dnl
  13786. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13787. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13788. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13789. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13790. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13791. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13792. +dnl adjustment using top_builddir (which is defined more often than
  13793. +dnl MKDIR_P).
  13794. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13795. +case $mkdir_p in
  13796. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13797. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13798. +esac
  13799. +])
  13800. # Helper functions for option handling. -*- Autoconf -*-
  13801. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13802. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13803. #
  13804. # This file is free software; the Free Software Foundation
  13805. # gives unlimited permission to copy and/or distribute it,
  13806. # with or without modifications, as long as this notice is preserved.
  13807. -# serial 3
  13808. +# serial 4
  13809. # _AM_MANGLE_OPTION(NAME)
  13810. # -----------------------
  13811. @@ -7311,7 +8909,7 @@
  13812. # ----------------------------------
  13813. # OPTIONS is a space-separated list of Automake options.
  13814. AC_DEFUN([_AM_SET_OPTIONS],
  13815. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13816. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13817. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13818. # -------------------------------------------
  13819. @@ -7321,14 +8919,14 @@
  13820. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13821. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13822. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13823. # Free Software Foundation, Inc.
  13824. #
  13825. # This file is free software; the Free Software Foundation
  13826. # gives unlimited permission to copy and/or distribute it,
  13827. # with or without modifications, as long as this notice is preserved.
  13828. -# serial 4
  13829. +# serial 5
  13830. # AM_SANITY_CHECK
  13831. # ---------------
  13832. @@ -7337,16 +8935,29 @@
  13833. # Just in case
  13834. sleep 1
  13835. echo timestamp > conftest.file
  13836. +# Reject unsafe characters in $srcdir or the absolute working directory
  13837. +# name. Accept space and tab only in the latter.
  13838. +am_lf='
  13839. +'
  13840. +case `pwd` in
  13841. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13842. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13843. +esac
  13844. +case $srcdir in
  13845. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13846. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13847. +esac
  13848. +
  13849. # Do `set' in a subshell so we don't clobber the current shell's
  13850. # arguments. Must try -L first in case configure is actually a
  13851. # symlink; some systems play weird games with the mod time of symlinks
  13852. # (eg FreeBSD returns the mod time of the symlink's containing
  13853. # directory).
  13854. if (
  13855. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13856. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13857. if test "$[*]" = "X"; then
  13858. # -L didn't work.
  13859. - set X `ls -t $srcdir/configure conftest.file`
  13860. + set X `ls -t "$srcdir/configure" conftest.file`
  13861. fi
  13862. rm -f conftest.file
  13863. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13864. @@ -7396,9 +9007,28 @@
  13865. if test "$cross_compiling" != no; then
  13866. AC_CHECK_TOOL([STRIP], [strip], :)
  13867. fi
  13868. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13869. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13870. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13871. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13872. +#
  13873. +# This file is free software; the Free Software Foundation
  13874. +# gives unlimited permission to copy and/or distribute it,
  13875. +# with or without modifications, as long as this notice is preserved.
  13876. +
  13877. +# serial 2
  13878. +
  13879. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13880. +# ---------------------------
  13881. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13882. +# This macro is traced by Automake.
  13883. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13884. +
  13885. +# AM_SUBST_NOTMAKE(VARIABLE)
  13886. +# ---------------------------
  13887. +# Public sister of _AM_SUBST_NOTMAKE.
  13888. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13889. +
  13890. # Check how to create a tarball. -*- Autoconf -*-
  13891. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13892. diff -Nur libXft-2.1.9.orig/config.guess libXft-2.1.9/config.guess
  13893. --- libXft-2.1.9.orig/config.guess 2005-10-25 08:14:37.000000000 +0200
  13894. +++ libXft-2.1.9/config.guess 2011-02-16 21:01:10.573558756 +0100
  13895. @@ -1,9 +1,10 @@
  13896. #! /bin/sh
  13897. # Attempt to guess a canonical system name.
  13898. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13899. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  13900. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13901. +# Free Software Foundation, Inc.
  13902. -timestamp='2005-08-03'
  13903. +timestamp='2009-06-10'
  13904. # This file is free software; you can redistribute it and/or modify it
  13905. # under the terms of the GNU General Public License as published by
  13906. @@ -55,8 +56,8 @@
  13907. GNU config.guess ($timestamp)
  13908. Originally written by Per Bothner.
  13909. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13910. -Free Software Foundation, Inc.
  13911. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13912. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13913. This is free software; see the source for copying conditions. There is NO
  13914. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13915. @@ -106,7 +107,7 @@
  13916. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13917. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13918. : ${TMPDIR=/tmp} ;
  13919. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13920. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13921. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13922. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13923. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13924. @@ -160,6 +161,7 @@
  13925. arm*) machine=arm-unknown ;;
  13926. sh3el) machine=shl-unknown ;;
  13927. sh3eb) machine=sh-unknown ;;
  13928. + sh5el) machine=sh5le-unknown ;;
  13929. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13930. esac
  13931. # The Operating System including object format, if it has switched
  13932. @@ -168,7 +170,7 @@
  13933. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13934. eval $set_cc_for_build
  13935. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13936. - | grep __ELF__ >/dev/null
  13937. + | grep -q __ELF__
  13938. then
  13939. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13940. # Return netbsd for either. FIX?
  13941. @@ -206,8 +208,11 @@
  13942. *:ekkoBSD:*:*)
  13943. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13944. exit ;;
  13945. + *:SolidBSD:*:*)
  13946. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13947. + exit ;;
  13948. macppc:MirBSD:*:*)
  13949. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  13950. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13951. exit ;;
  13952. *:MirBSD:*:*)
  13953. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13954. @@ -319,14 +324,30 @@
  13955. case `/usr/bin/uname -p` in
  13956. sparc) echo sparc-icl-nx7; exit ;;
  13957. esac ;;
  13958. + s390x:SunOS:*:*)
  13959. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13960. + exit ;;
  13961. sun4H:SunOS:5.*:*)
  13962. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13963. exit ;;
  13964. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13965. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13966. exit ;;
  13967. - i86pc:SunOS:5.*:*)
  13968. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13969. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13970. + eval $set_cc_for_build
  13971. + SUN_ARCH="i386"
  13972. + # If there is a compiler, see if it is configured for 64-bit objects.
  13973. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13974. + # This test works for both compilers.
  13975. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13976. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13977. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13978. + grep IS_64BIT_ARCH >/dev/null
  13979. + then
  13980. + SUN_ARCH="x86_64"
  13981. + fi
  13982. + fi
  13983. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13984. exit ;;
  13985. sun4*:SunOS:6*:*)
  13986. # According to config.sub, this is the proper way to canonicalize
  13987. @@ -527,7 +548,7 @@
  13988. echo rs6000-ibm-aix3.2
  13989. fi
  13990. exit ;;
  13991. - *:AIX:*:[45])
  13992. + *:AIX:*:[456])
  13993. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  13994. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  13995. IBM_ARCH=rs6000
  13996. @@ -635,7 +656,7 @@
  13997. # => hppa64-hp-hpux11.23
  13998. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  13999. - grep __LP64__ >/dev/null
  14000. + grep -q __LP64__
  14001. then
  14002. HP_ARCH="hppa2.0w"
  14003. else
  14004. @@ -764,12 +785,19 @@
  14005. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14006. exit ;;
  14007. *:FreeBSD:*:*)
  14008. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14009. + case ${UNAME_MACHINE} in
  14010. + pc98)
  14011. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14012. + amd64)
  14013. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14014. + *)
  14015. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14016. + esac
  14017. exit ;;
  14018. i*:CYGWIN*:*)
  14019. echo ${UNAME_MACHINE}-pc-cygwin
  14020. exit ;;
  14021. - i*:MINGW*:*)
  14022. + *:MINGW*:*)
  14023. echo ${UNAME_MACHINE}-pc-mingw32
  14024. exit ;;
  14025. i*:windows32*:*)
  14026. @@ -779,12 +807,24 @@
  14027. i*:PW*:*)
  14028. echo ${UNAME_MACHINE}-pc-pw32
  14029. exit ;;
  14030. - x86:Interix*:[34]*)
  14031. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  14032. - exit ;;
  14033. + *:Interix*:[3456]*)
  14034. + case ${UNAME_MACHINE} in
  14035. + x86)
  14036. + echo i586-pc-interix${UNAME_RELEASE}
  14037. + exit ;;
  14038. + EM64T | authenticamd | genuineintel)
  14039. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14040. + exit ;;
  14041. + IA64)
  14042. + echo ia64-unknown-interix${UNAME_RELEASE}
  14043. + exit ;;
  14044. + esac ;;
  14045. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14046. echo i${UNAME_MACHINE}-pc-mks
  14047. exit ;;
  14048. + 8664:Windows_NT:*)
  14049. + echo x86_64-pc-mks
  14050. + exit ;;
  14051. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14052. # How do we know it's Interix rather than the generic POSIX subsystem?
  14053. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14054. @@ -815,6 +855,16 @@
  14055. echo ${UNAME_MACHINE}-pc-minix
  14056. exit ;;
  14057. arm*:Linux:*:*)
  14058. + eval $set_cc_for_build
  14059. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14060. + | grep -q __ARM_EABI__
  14061. + then
  14062. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14063. + else
  14064. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14065. + fi
  14066. + exit ;;
  14067. + avr32*:Linux:*:*)
  14068. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14069. exit ;;
  14070. cris:Linux:*:*)
  14071. @@ -835,42 +885,27 @@
  14072. m68*:Linux:*:*)
  14073. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14074. exit ;;
  14075. - mips:Linux:*:*)
  14076. - eval $set_cc_for_build
  14077. - sed 's/^ //' << EOF >$dummy.c
  14078. - #undef CPU
  14079. - #undef mips
  14080. - #undef mipsel
  14081. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14082. - CPU=mipsel
  14083. - #else
  14084. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14085. - CPU=mips
  14086. - #else
  14087. - CPU=
  14088. - #endif
  14089. - #endif
  14090. -EOF
  14091. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14092. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14093. - ;;
  14094. - mips64:Linux:*:*)
  14095. + mips:Linux:*:* | mips64:Linux:*:*)
  14096. eval $set_cc_for_build
  14097. sed 's/^ //' << EOF >$dummy.c
  14098. #undef CPU
  14099. - #undef mips64
  14100. - #undef mips64el
  14101. + #undef ${UNAME_MACHINE}
  14102. + #undef ${UNAME_MACHINE}el
  14103. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14104. - CPU=mips64el
  14105. + CPU=${UNAME_MACHINE}el
  14106. #else
  14107. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14108. - CPU=mips64
  14109. + CPU=${UNAME_MACHINE}
  14110. #else
  14111. CPU=
  14112. #endif
  14113. #endif
  14114. EOF
  14115. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14116. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14117. + /^CPU/{
  14118. + s: ::g
  14119. + p
  14120. + }'`"
  14121. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14122. ;;
  14123. or32:Linux:*:*)
  14124. @@ -892,10 +927,13 @@
  14125. EV67) UNAME_MACHINE=alphaev67 ;;
  14126. EV68*) UNAME_MACHINE=alphaev68 ;;
  14127. esac
  14128. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14129. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14130. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14131. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14132. exit ;;
  14133. + padre:Linux:*:*)
  14134. + echo sparc-unknown-linux-gnu
  14135. + exit ;;
  14136. parisc:Linux:*:* | hppa:Linux:*:*)
  14137. # Look for CPU level
  14138. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14139. @@ -919,9 +957,15 @@
  14140. sparc:Linux:*:* | sparc64:Linux:*:*)
  14141. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14142. exit ;;
  14143. + vax:Linux:*:*)
  14144. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14145. + exit ;;
  14146. x86_64:Linux:*:*)
  14147. echo x86_64-unknown-linux-gnu
  14148. exit ;;
  14149. + xtensa*:Linux:*:*)
  14150. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14151. + exit ;;
  14152. i*86:Linux:*:*)
  14153. # The BFD linker knows what the default object file format is, so
  14154. # first see if it will tell us. cd to the root directory to prevent
  14155. @@ -937,17 +981,6 @@
  14156. elf32-i386)
  14157. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14158. ;;
  14159. - a.out-i386-linux)
  14160. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14161. - exit ;;
  14162. - coff-i386)
  14163. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14164. - exit ;;
  14165. - "")
  14166. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14167. - # one that does not give us useful --help.
  14168. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14169. - exit ;;
  14170. esac
  14171. # Determine whether the default compiler is a.out or elf
  14172. eval $set_cc_for_build
  14173. @@ -964,7 +997,7 @@
  14174. LIBC=gnulibc1
  14175. # endif
  14176. #else
  14177. - #ifdef __INTEL_COMPILER
  14178. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14179. LIBC=gnu
  14180. #else
  14181. LIBC=gnuaout
  14182. @@ -974,7 +1007,11 @@
  14183. LIBC=dietlibc
  14184. #endif
  14185. EOF
  14186. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14187. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14188. + /^LIBC/{
  14189. + s: ::g
  14190. + p
  14191. + }'`"
  14192. test x"${LIBC}" != x && {
  14193. echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14194. exit
  14195. @@ -1009,7 +1046,7 @@
  14196. i*86:syllable:*:*)
  14197. echo ${UNAME_MACHINE}-pc-syllable
  14198. exit ;;
  14199. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14200. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14201. echo i386-unknown-lynxos${UNAME_RELEASE}
  14202. exit ;;
  14203. i*86:*DOS:*:*)
  14204. @@ -1053,8 +1090,11 @@
  14205. pc:*:*:*)
  14206. # Left here for compatibility:
  14207. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14208. - # the processor, so we play safe by assuming i386.
  14209. - echo i386-pc-msdosdjgpp
  14210. + # the processor, so we play safe by assuming i586.
  14211. + # Note: whatever this is, it MUST be the same as what config.sub
  14212. + # prints for the "djgpp" host, or else GDB configury will decide that
  14213. + # this is a cross-build.
  14214. + echo i586-pc-msdosdjgpp
  14215. exit ;;
  14216. Intel:Mach:3*:*)
  14217. echo i386-pc-mach3
  14218. @@ -1092,6 +1132,16 @@
  14219. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14220. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14221. && { echo i486-ncr-sysv4; exit; } ;;
  14222. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14223. + OS_REL='.3'
  14224. + test -r /etc/.relid \
  14225. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14226. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14227. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14228. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14229. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14230. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14231. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14232. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14233. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14234. exit ;;
  14235. @@ -1104,7 +1154,7 @@
  14236. rs6000:LynxOS:2.*:*)
  14237. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14238. exit ;;
  14239. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14240. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14241. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14242. exit ;;
  14243. SM[BE]S:UNIX_SV:*:*)
  14244. @@ -1167,6 +1217,9 @@
  14245. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14246. echo i586-pc-beos
  14247. exit ;;
  14248. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14249. + echo i586-pc-haiku
  14250. + exit ;;
  14251. SX-4:SUPER-UX:*:*)
  14252. echo sx4-nec-superux${UNAME_RELEASE}
  14253. exit ;;
  14254. @@ -1176,6 +1229,15 @@
  14255. SX-6:SUPER-UX:*:*)
  14256. echo sx6-nec-superux${UNAME_RELEASE}
  14257. exit ;;
  14258. + SX-7:SUPER-UX:*:*)
  14259. + echo sx7-nec-superux${UNAME_RELEASE}
  14260. + exit ;;
  14261. + SX-8:SUPER-UX:*:*)
  14262. + echo sx8-nec-superux${UNAME_RELEASE}
  14263. + exit ;;
  14264. + SX-8R:SUPER-UX:*:*)
  14265. + echo sx8r-nec-superux${UNAME_RELEASE}
  14266. + exit ;;
  14267. Power*:Rhapsody:*:*)
  14268. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14269. exit ;;
  14270. @@ -1185,7 +1247,6 @@
  14271. *:Darwin:*:*)
  14272. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  14273. case $UNAME_PROCESSOR in
  14274. - *86) UNAME_PROCESSOR=i686 ;;
  14275. unknown) UNAME_PROCESSOR=powerpc ;;
  14276. esac
  14277. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  14278. @@ -1264,6 +1325,12 @@
  14279. i*86:skyos:*:*)
  14280. echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  14281. exit ;;
  14282. + i*86:rdos:*:*)
  14283. + echo ${UNAME_MACHINE}-pc-rdos
  14284. + exit ;;
  14285. + i*86:AROS:*:*)
  14286. + echo ${UNAME_MACHINE}-pc-aros
  14287. + exit ;;
  14288. esac
  14289. #echo '(No uname command or uname output not recognized.)' 1>&2
  14290. @@ -1424,9 +1491,9 @@
  14291. the operating system you are using. It is advised that you
  14292. download the most up to date version of the config scripts from
  14293. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  14294. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  14295. and
  14296. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  14297. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  14298. If the version you run ($0) is already up to date, please
  14299. send the following data and any information you think might be
  14300. diff -Nur libXft-2.1.9.orig/config.h.in libXft-2.1.9/config.h.in
  14301. --- libXft-2.1.9.orig/config.h.in 2006-06-03 12:33:27.000000000 +0200
  14302. +++ libXft-2.1.9/config.h.in 2011-02-16 21:01:10.000000000 +0100
  14303. @@ -54,6 +54,10 @@
  14304. /* Define to 1 if you have the `XRenderFindStandardFormat' function. */
  14305. #undef HAVE_XRENDERFINDSTANDARDFORMAT
  14306. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  14307. + */
  14308. +#undef LT_OBJDIR
  14309. +
  14310. /* Name of package */
  14311. #undef PACKAGE
  14312. @@ -69,6 +73,9 @@
  14313. /* Define to the one symbol short name of this package. */
  14314. #undef PACKAGE_TARNAME
  14315. +/* Define to the home page for this package. */
  14316. +#undef PACKAGE_URL
  14317. +
  14318. /* Define to the version of this package. */
  14319. #undef PACKAGE_VERSION
  14320. diff -Nur libXft-2.1.9.orig/config.h.in~ libXft-2.1.9/config.h.in~
  14321. --- libXft-2.1.9.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  14322. +++ libXft-2.1.9/config.h.in~ 2006-06-03 12:33:27.000000000 +0200
  14323. @@ -0,0 +1,79 @@
  14324. +/* config.h.in. Generated from configure.ac by autoheader. */
  14325. +
  14326. +/* Define to 1 if you have the <dlfcn.h> header file. */
  14327. +#undef HAVE_DLFCN_H
  14328. +
  14329. +/* FT_Bitmap_Size structure includes y_ppem field */
  14330. +#undef HAVE_FT_BITMAP_SIZE_Y_PPEM
  14331. +
  14332. +/* Define to 1 if you have the `FT_Get_BDF_Property' function. */
  14333. +#undef HAVE_FT_GET_BDF_PROPERTY
  14334. +
  14335. +/* Define to 1 if you have the `FT_Get_Next_Char' function. */
  14336. +#undef HAVE_FT_GET_NEXT_CHAR
  14337. +
  14338. +/* Define to 1 if you have the `FT_Get_PS_Font_Info' function. */
  14339. +#undef HAVE_FT_GET_PS_FONT_INFO
  14340. +
  14341. +/* Define to 1 if you have the `FT_GlyphSlot_Embolden' function. */
  14342. +#undef HAVE_FT_GLYPHSLOT_EMBOLDEN
  14343. +
  14344. +/* Define to 1 if you have the `FT_Has_PS_Glyph_Names' function. */
  14345. +#undef HAVE_FT_HAS_PS_GLYPH_NAMES
  14346. +
  14347. +/* Define to 1 if you have the <inttypes.h> header file. */
  14348. +#undef HAVE_INTTYPES_H
  14349. +
  14350. +/* Define to 1 if you have the <memory.h> header file. */
  14351. +#undef HAVE_MEMORY_H
  14352. +
  14353. +/* Define to 1 if you have the <stdint.h> header file. */
  14354. +#undef HAVE_STDINT_H
  14355. +
  14356. +/* Define to 1 if you have the <stdlib.h> header file. */
  14357. +#undef HAVE_STDLIB_H
  14358. +
  14359. +/* Define to 1 if you have the <strings.h> header file. */
  14360. +#undef HAVE_STRINGS_H
  14361. +
  14362. +/* Define to 1 if you have the <string.h> header file. */
  14363. +#undef HAVE_STRING_H
  14364. +
  14365. +/* Define to 1 if you have the <sys/stat.h> header file. */
  14366. +#undef HAVE_SYS_STAT_H
  14367. +
  14368. +/* Define to 1 if you have the <sys/types.h> header file. */
  14369. +#undef HAVE_SYS_TYPES_H
  14370. +
  14371. +/* Define to 1 if you have the <unistd.h> header file. */
  14372. +#undef HAVE_UNISTD_H
  14373. +
  14374. +/* Define to 1 if you have the <X11/extensions/Xrender.h> header file. */
  14375. +#undef HAVE_X11_EXTENSIONS_XRENDER_H
  14376. +
  14377. +/* Define to 1 if you have the `XRenderFindStandardFormat' function. */
  14378. +#undef HAVE_XRENDERFINDSTANDARDFORMAT
  14379. +
  14380. +/* Name of package */
  14381. +#undef PACKAGE
  14382. +
  14383. +/* Define to the address where bug reports for this package should be sent. */
  14384. +#undef PACKAGE_BUGREPORT
  14385. +
  14386. +/* Define to the full name of this package. */
  14387. +#undef PACKAGE_NAME
  14388. +
  14389. +/* Define to the full name and version of this package. */
  14390. +#undef PACKAGE_STRING
  14391. +
  14392. +/* Define to the one symbol short name of this package. */
  14393. +#undef PACKAGE_TARNAME
  14394. +
  14395. +/* Define to the version of this package. */
  14396. +#undef PACKAGE_VERSION
  14397. +
  14398. +/* Define to 1 if you have the ANSI C header files. */
  14399. +#undef STDC_HEADERS
  14400. +
  14401. +/* Version number of package */
  14402. +#undef VERSION
  14403. diff -Nur libXft-2.1.9.orig/config.sub libXft-2.1.9/config.sub
  14404. --- libXft-2.1.9.orig/config.sub 2005-10-25 08:14:37.000000000 +0200
  14405. +++ libXft-2.1.9/config.sub 2011-02-16 21:01:10.583559036 +0100
  14406. @@ -1,9 +1,10 @@
  14407. #! /bin/sh
  14408. # Configuration validation subroutine script.
  14409. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14410. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  14411. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14412. +# Free Software Foundation, Inc.
  14413. -timestamp='2005-07-08'
  14414. +timestamp='2009-06-11'
  14415. # This file is (in principle) common to ALL GNU software.
  14416. # The presence of a machine in this file suggests that SOME GNU software
  14417. @@ -71,8 +72,8 @@
  14418. version="\
  14419. GNU config.sub ($timestamp)
  14420. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14421. -Free Software Foundation, Inc.
  14422. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14423. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14424. This is free software; see the source for copying conditions. There is NO
  14425. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14426. @@ -119,8 +120,10 @@
  14427. # Here we must recognize all the valid KERNEL-OS combinations.
  14428. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  14429. case $maybe_os in
  14430. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  14431. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  14432. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  14433. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  14434. + kopensolaris*-gnu* | \
  14435. + storm-chaos* | os2-emx* | rtmk-nova*)
  14436. os=-$maybe_os
  14437. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  14438. ;;
  14439. @@ -150,6 +153,9 @@
  14440. os=
  14441. basic_machine=$1
  14442. ;;
  14443. + -bluegene*)
  14444. + os=-cnk
  14445. + ;;
  14446. -sim | -cisco | -oki | -wec | -winbond)
  14447. os=
  14448. basic_machine=$1
  14449. @@ -171,6 +177,10 @@
  14450. -hiux*)
  14451. os=-hiuxwe2
  14452. ;;
  14453. + -sco6)
  14454. + os=-sco5v6
  14455. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14456. + ;;
  14457. -sco5)
  14458. os=-sco3.2v5
  14459. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14460. @@ -187,6 +197,10 @@
  14461. # Don't forget version if it is 3.2v4 or newer.
  14462. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14463. ;;
  14464. + -sco5v6*)
  14465. + # Don't forget version if it is 3.2v4 or newer.
  14466. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14467. + ;;
  14468. -sco*)
  14469. os=-sco3.2v2
  14470. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14471. @@ -231,20 +245,24 @@
  14472. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  14473. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  14474. | am33_2.0 \
  14475. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  14476. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  14477. | bfin \
  14478. | c4x | clipper \
  14479. | d10v | d30v | dlx | dsp16xx \
  14480. - | fr30 | frv \
  14481. + | fido | fr30 | frv \
  14482. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  14483. | i370 | i860 | i960 | ia64 \
  14484. | ip2k | iq2000 \
  14485. - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
  14486. + | lm32 \
  14487. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  14488. + | maxq | mb | microblaze | mcore | mep | metag \
  14489. | mips | mipsbe | mipseb | mipsel | mipsle \
  14490. | mips16 \
  14491. | mips64 | mips64el \
  14492. - | mips64vr | mips64vrel \
  14493. + | mips64octeon | mips64octeonel \
  14494. | mips64orion | mips64orionel \
  14495. + | mips64r5900 | mips64r5900el \
  14496. + | mips64vr | mips64vrel \
  14497. | mips64vr4100 | mips64vr4100el \
  14498. | mips64vr4300 | mips64vr4300el \
  14499. | mips64vr5000 | mips64vr5000el \
  14500. @@ -257,26 +275,26 @@
  14501. | mipsisa64sr71k | mipsisa64sr71kel \
  14502. | mipstx39 | mipstx39el \
  14503. | mn10200 | mn10300 \
  14504. - | ms1 \
  14505. + | moxie \
  14506. + | mt \
  14507. | msp430 \
  14508. + | nios | nios2 \
  14509. | ns16k | ns32k \
  14510. | or32 \
  14511. | pdp10 | pdp11 | pj | pjl \
  14512. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  14513. | pyramid \
  14514. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  14515. + | score \
  14516. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14517. | sh64 | sh64le \
  14518. - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
  14519. - | sparcv8 | sparcv9 | sparcv9b \
  14520. - | strongarm \
  14521. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  14522. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14523. + | spu | strongarm \
  14524. | tahoe | thumb | tic4x | tic80 | tron \
  14525. | v850 | v850e \
  14526. | we32k \
  14527. - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  14528. - | z8k)
  14529. - basic_machine=$basic_machine-unknown
  14530. - ;;
  14531. - m32c)
  14532. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  14533. + | z8k | z80)
  14534. basic_machine=$basic_machine-unknown
  14535. ;;
  14536. m6811 | m68hc11 | m6812 | m68hc12)
  14537. @@ -286,6 +304,9 @@
  14538. ;;
  14539. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  14540. ;;
  14541. + ms1)
  14542. + basic_machine=mt-unknown
  14543. + ;;
  14544. # We use `pc' rather than `unknown'
  14545. # because (1) that's what they normally are, and
  14546. @@ -305,25 +326,28 @@
  14547. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  14548. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  14549. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  14550. - | avr-* \
  14551. + | avr-* | avr32-* \
  14552. | bfin-* | bs2000-* \
  14553. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  14554. | clipper-* | craynv-* | cydra-* \
  14555. | d10v-* | d30v-* | dlx-* \
  14556. | elxsi-* \
  14557. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  14558. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  14559. | h8300-* | h8500-* \
  14560. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  14561. | i*86-* | i860-* | i960-* | ia64-* \
  14562. | ip2k-* | iq2000-* \
  14563. - | m32r-* | m32rle-* \
  14564. + | lm32-* \
  14565. + | m32c-* | m32r-* | m32rle-* \
  14566. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  14567. - | m88110-* | m88k-* | maxq-* | mcore-* \
  14568. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  14569. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  14570. | mips16-* \
  14571. | mips64-* | mips64el-* \
  14572. - | mips64vr-* | mips64vrel-* \
  14573. + | mips64octeon-* | mips64octeonel-* \
  14574. | mips64orion-* | mips64orionel-* \
  14575. + | mips64r5900-* | mips64r5900el-* \
  14576. + | mips64vr-* | mips64vrel-* \
  14577. | mips64vr4100-* | mips64vr4100el-* \
  14578. | mips64vr4300-* | mips64vr4300el-* \
  14579. | mips64vr5000-* | mips64vr5000el-* \
  14580. @@ -336,30 +360,33 @@
  14581. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  14582. | mipstx39-* | mipstx39el-* \
  14583. | mmix-* \
  14584. - | ms1-* \
  14585. + | mt-* \
  14586. | msp430-* \
  14587. + | nios-* | nios2-* \
  14588. | none-* | np1-* | ns16k-* | ns32k-* \
  14589. | orion-* \
  14590. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  14591. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  14592. | pyramid-* \
  14593. | romp-* | rs6000-* \
  14594. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  14595. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14596. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  14597. - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
  14598. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  14599. | sparclite-* \
  14600. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  14601. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  14602. | tahoe-* | thumb-* \
  14603. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  14604. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  14605. | tron-* \
  14606. | v850-* | v850e-* | vax-* \
  14607. | we32k-* \
  14608. - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  14609. - | xstormy16-* | xtensa-* \
  14610. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  14611. + | xstormy16-* | xtensa*-* \
  14612. | ymp-* \
  14613. - | z8k-*)
  14614. + | z8k-* | z80-*)
  14615. ;;
  14616. - m32c-*)
  14617. + # Recognize the basic CPU types without company name, with glob match.
  14618. + xtensa*)
  14619. + basic_machine=$basic_machine-unknown
  14620. ;;
  14621. # Recognize the various machine names and aliases which stand
  14622. # for a CPU type and a company and sometimes even an OS.
  14623. @@ -423,6 +450,10 @@
  14624. basic_machine=m68k-apollo
  14625. os=-bsd
  14626. ;;
  14627. + aros)
  14628. + basic_machine=i386-pc
  14629. + os=-aros
  14630. + ;;
  14631. aux)
  14632. basic_machine=m68k-apple
  14633. os=-aux
  14634. @@ -431,10 +462,26 @@
  14635. basic_machine=ns32k-sequent
  14636. os=-dynix
  14637. ;;
  14638. + blackfin)
  14639. + basic_machine=bfin-unknown
  14640. + os=-linux
  14641. + ;;
  14642. + blackfin-*)
  14643. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  14644. + os=-linux
  14645. + ;;
  14646. + bluegene*)
  14647. + basic_machine=powerpc-ibm
  14648. + os=-cnk
  14649. + ;;
  14650. c90)
  14651. basic_machine=c90-cray
  14652. os=-unicos
  14653. ;;
  14654. + cegcc)
  14655. + basic_machine=arm-unknown
  14656. + os=-cegcc
  14657. + ;;
  14658. convex-c1)
  14659. basic_machine=c1-convex
  14660. os=-bsd
  14661. @@ -463,8 +510,8 @@
  14662. basic_machine=craynv-cray
  14663. os=-unicosmp
  14664. ;;
  14665. - cr16c)
  14666. - basic_machine=cr16c-unknown
  14667. + cr16)
  14668. + basic_machine=cr16-unknown
  14669. os=-elf
  14670. ;;
  14671. crds | unos)
  14672. @@ -502,6 +549,10 @@
  14673. basic_machine=m88k-motorola
  14674. os=-sysv3
  14675. ;;
  14676. + dicos)
  14677. + basic_machine=i686-pc
  14678. + os=-dicos
  14679. + ;;
  14680. djgpp)
  14681. basic_machine=i586-pc
  14682. os=-msdosdjgpp
  14683. @@ -656,6 +707,14 @@
  14684. basic_machine=m68k-isi
  14685. os=-sysv
  14686. ;;
  14687. + m68knommu)
  14688. + basic_machine=m68k-unknown
  14689. + os=-linux
  14690. + ;;
  14691. + m68knommu-*)
  14692. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  14693. + os=-linux
  14694. + ;;
  14695. m88k-omron*)
  14696. basic_machine=m88k-omron
  14697. ;;
  14698. @@ -671,6 +730,10 @@
  14699. basic_machine=i386-pc
  14700. os=-mingw32
  14701. ;;
  14702. + mingw32ce)
  14703. + basic_machine=arm-unknown
  14704. + os=-mingw32ce
  14705. + ;;
  14706. miniframe)
  14707. basic_machine=m68000-convergent
  14708. ;;
  14709. @@ -696,6 +759,9 @@
  14710. basic_machine=i386-pc
  14711. os=-msdos
  14712. ;;
  14713. + ms1-*)
  14714. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  14715. + ;;
  14716. mvs)
  14717. basic_machine=i370-ibm
  14718. os=-mvs
  14719. @@ -794,6 +860,14 @@
  14720. basic_machine=i860-intel
  14721. os=-osf
  14722. ;;
  14723. + parisc)
  14724. + basic_machine=hppa-unknown
  14725. + os=-linux
  14726. + ;;
  14727. + parisc-*)
  14728. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  14729. + os=-linux
  14730. + ;;
  14731. pbd)
  14732. basic_machine=sparc-tti
  14733. ;;
  14734. @@ -803,6 +877,12 @@
  14735. pc532 | pc532-*)
  14736. basic_machine=ns32k-pc532
  14737. ;;
  14738. + pc98)
  14739. + basic_machine=i386-pc
  14740. + ;;
  14741. + pc98-*)
  14742. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  14743. + ;;
  14744. pentium | p5 | k5 | k6 | nexgen | viac3)
  14745. basic_machine=i586-pc
  14746. ;;
  14747. @@ -859,6 +939,10 @@
  14748. basic_machine=i586-unknown
  14749. os=-pw32
  14750. ;;
  14751. + rdos)
  14752. + basic_machine=i386-pc
  14753. + os=-rdos
  14754. + ;;
  14755. rom68k)
  14756. basic_machine=m68k-rom68k
  14757. os=-coff
  14758. @@ -885,6 +969,10 @@
  14759. sb1el)
  14760. basic_machine=mipsisa64sb1el-unknown
  14761. ;;
  14762. + sde)
  14763. + basic_machine=mipsisa32-sde
  14764. + os=-elf
  14765. + ;;
  14766. sei)
  14767. basic_machine=mips-sei
  14768. os=-seiux
  14769. @@ -896,6 +984,9 @@
  14770. basic_machine=sh-hitachi
  14771. os=-hms
  14772. ;;
  14773. + sh5el)
  14774. + basic_machine=sh5le-unknown
  14775. + ;;
  14776. sh64)
  14777. basic_machine=sh64-unknown
  14778. ;;
  14779. @@ -985,6 +1076,10 @@
  14780. basic_machine=tic6x-unknown
  14781. os=-coff
  14782. ;;
  14783. + tile*)
  14784. + basic_machine=tile-unknown
  14785. + os=-linux-gnu
  14786. + ;;
  14787. tx39)
  14788. basic_machine=mipstx39-unknown
  14789. ;;
  14790. @@ -1060,6 +1155,10 @@
  14791. basic_machine=z8k-unknown
  14792. os=-sim
  14793. ;;
  14794. + z80-*-coff)
  14795. + basic_machine=z80-unknown
  14796. + os=-sim
  14797. + ;;
  14798. none)
  14799. basic_machine=none-none
  14800. os=-none
  14801. @@ -1098,10 +1197,10 @@
  14802. we32k)
  14803. basic_machine=we32k-att
  14804. ;;
  14805. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  14806. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  14807. basic_machine=sh-unknown
  14808. ;;
  14809. - sparc | sparcv8 | sparcv9 | sparcv9b)
  14810. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  14811. basic_machine=sparc-sun
  14812. ;;
  14813. cydra)
  14814. @@ -1168,27 +1267,30 @@
  14815. # Each alternative MUST END IN A *, to match a version number.
  14816. # -sysv* is not here because it comes later, after sysvr4.
  14817. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  14818. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  14819. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  14820. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  14821. + | -kopensolaris* \
  14822. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  14823. - | -aos* \
  14824. + | -aos* | -aros* \
  14825. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  14826. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  14827. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  14828. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  14829. + | -openbsd* | -solidbsd* \
  14830. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  14831. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  14832. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  14833. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  14834. - | -chorusos* | -chorusrdb* \
  14835. + | -chorusos* | -chorusrdb* | -cegcc* \
  14836. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  14837. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  14838. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  14839. + | -uxpv* | -beos* | -mpeix* | -udk* \
  14840. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  14841. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  14842. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  14843. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  14844. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  14845. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  14846. - | -skyos* | -haiku*)
  14847. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  14848. # Remember, each alternative MUST END IN *, to match a version number.
  14849. ;;
  14850. -qnx*)
  14851. @@ -1318,6 +1420,9 @@
  14852. -zvmoe)
  14853. os=-zvmoe
  14854. ;;
  14855. + -dicos*)
  14856. + os=-dicos
  14857. + ;;
  14858. -none)
  14859. ;;
  14860. *)
  14861. @@ -1340,6 +1445,12 @@
  14862. # system, and we'll never get to this point.
  14863. case $basic_machine in
  14864. + score-*)
  14865. + os=-elf
  14866. + ;;
  14867. + spu-*)
  14868. + os=-elf
  14869. + ;;
  14870. *-acorn)
  14871. os=-riscix1.2
  14872. ;;
  14873. @@ -1349,9 +1460,9 @@
  14874. arm*-semi)
  14875. os=-aout
  14876. ;;
  14877. - c4x-* | tic4x-*)
  14878. - os=-coff
  14879. - ;;
  14880. + c4x-* | tic4x-*)
  14881. + os=-coff
  14882. + ;;
  14883. # This must come before the *-dec entry.
  14884. pdp10-*)
  14885. os=-tops20
  14886. @@ -1377,6 +1488,9 @@
  14887. m68*-cisco)
  14888. os=-aout
  14889. ;;
  14890. + mep-*)
  14891. + os=-elf
  14892. + ;;
  14893. mips*-cisco)
  14894. os=-elf
  14895. ;;
  14896. @@ -1506,7 +1620,7 @@
  14897. -sunos*)
  14898. vendor=sun
  14899. ;;
  14900. - -aix*)
  14901. + -cnk*|-aix*)
  14902. vendor=ibm
  14903. ;;
  14904. -beos*)
  14905. diff -Nur libXft-2.1.9.orig/configure libXft-2.1.9/configure
  14906. --- libXft-2.1.9.orig/configure 2006-06-03 12:33:27.000000000 +0200
  14907. +++ libXft-2.1.9/configure 2011-02-16 21:01:09.583811902 +0100
  14908. @@ -1,83 +1,419 @@
  14909. #! /bin/sh
  14910. # Guess values for system-dependent variables and create Makefiles.
  14911. -# Generated by GNU Autoconf 2.59 for libXft 2.1.9.
  14912. +# Generated by GNU Autoconf 2.65 for libXft 2.1.9.
  14913. #
  14914. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  14915. #
  14916. -# Copyright (C) 2003 Free Software Foundation, Inc.
  14917. +#
  14918. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14919. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14920. +# Inc.
  14921. +#
  14922. +#
  14923. # This configure script is free software; the Free Software Foundation
  14924. # gives unlimited permission to copy, distribute and modify it.
  14925. -## --------------------- ##
  14926. -## M4sh Initialization. ##
  14927. -## --------------------- ##
  14928. +## -------------------- ##
  14929. +## M4sh Initialization. ##
  14930. +## -------------------- ##
  14931. -# Be Bourne compatible
  14932. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14933. +# Be more Bourne compatible
  14934. +DUALCASE=1; export DUALCASE # for MKS sh
  14935. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14936. emulate sh
  14937. NULLCMD=:
  14938. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14939. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14940. # is contrary to our usage. Disable this feature.
  14941. alias -g '${1+"$@"}'='"$@"'
  14942. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  14943. - set -o posix
  14944. + setopt NO_GLOB_SUBST
  14945. +else
  14946. + case `(set -o) 2>/dev/null` in #(
  14947. + *posix*) :
  14948. + set -o posix ;; #(
  14949. + *) :
  14950. + ;;
  14951. +esac
  14952. fi
  14953. -DUALCASE=1; export DUALCASE # for MKS sh
  14954. -# Support unset when possible.
  14955. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14956. - as_unset=unset
  14957. -else
  14958. - as_unset=false
  14959. +
  14960. +as_nl='
  14961. +'
  14962. +export as_nl
  14963. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  14964. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14965. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14966. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14967. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14968. +# but without wasting forks for bash or zsh.
  14969. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14970. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14971. + as_echo='print -r --'
  14972. + as_echo_n='print -rn --'
  14973. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14974. + as_echo='printf %s\n'
  14975. + as_echo_n='printf %s'
  14976. +else
  14977. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14978. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14979. + as_echo_n='/usr/ucb/echo -n'
  14980. + else
  14981. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14982. + as_echo_n_body='eval
  14983. + arg=$1;
  14984. + case $arg in #(
  14985. + *"$as_nl"*)
  14986. + expr "X$arg" : "X\\(.*\\)$as_nl";
  14987. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14988. + esac;
  14989. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14990. + '
  14991. + export as_echo_n_body
  14992. + as_echo_n='sh -c $as_echo_n_body as_echo'
  14993. + fi
  14994. + export as_echo_body
  14995. + as_echo='sh -c $as_echo_body as_echo'
  14996. fi
  14997. +# The user is always right.
  14998. +if test "${PATH_SEPARATOR+set}" != set; then
  14999. + PATH_SEPARATOR=:
  15000. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15001. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15002. + PATH_SEPARATOR=';'
  15003. + }
  15004. +fi
  15005. +
  15006. +
  15007. +# IFS
  15008. +# We need space, tab and new line, in precisely that order. Quoting is
  15009. +# there to prevent editors from complaining about space-tab.
  15010. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15011. +# splitting by setting IFS to empty value.)
  15012. +IFS=" "" $as_nl"
  15013. +
  15014. +# Find who we are. Look in the path if we contain no directory separator.
  15015. +case $0 in #((
  15016. + *[\\/]* ) as_myself=$0 ;;
  15017. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15018. +for as_dir in $PATH
  15019. +do
  15020. + IFS=$as_save_IFS
  15021. + test -z "$as_dir" && as_dir=.
  15022. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15023. + done
  15024. +IFS=$as_save_IFS
  15025. -# Work around bugs in pre-3.0 UWIN ksh.
  15026. -$as_unset ENV MAIL MAILPATH
  15027. + ;;
  15028. +esac
  15029. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  15030. +# in which case we are not to be found in the path.
  15031. +if test "x$as_myself" = x; then
  15032. + as_myself=$0
  15033. +fi
  15034. +if test ! -f "$as_myself"; then
  15035. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15036. + exit 1
  15037. +fi
  15038. +
  15039. +# Unset variables that we do not need and which cause bugs (e.g. in
  15040. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15041. +# suppresses any "Segmentation fault" message there. '((' could
  15042. +# trigger a bug in pdksh 5.2.14.
  15043. +for as_var in BASH_ENV ENV MAIL MAILPATH
  15044. +do eval test x\${$as_var+set} = xset \
  15045. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15046. +done
  15047. PS1='$ '
  15048. PS2='> '
  15049. PS4='+ '
  15050. # NLS nuisances.
  15051. -for as_var in \
  15052. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15053. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15054. - LC_TELEPHONE LC_TIME
  15055. +LC_ALL=C
  15056. +export LC_ALL
  15057. +LANGUAGE=C
  15058. +export LANGUAGE
  15059. +
  15060. +# CDPATH.
  15061. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15062. +
  15063. +if test "x$CONFIG_SHELL" = x; then
  15064. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  15065. + emulate sh
  15066. + NULLCMD=:
  15067. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  15068. + # is contrary to our usage. Disable this feature.
  15069. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  15070. + setopt NO_GLOB_SUBST
  15071. +else
  15072. + case \`(set -o) 2>/dev/null\` in #(
  15073. + *posix*) :
  15074. + set -o posix ;; #(
  15075. + *) :
  15076. + ;;
  15077. +esac
  15078. +fi
  15079. +"
  15080. + as_required="as_fn_return () { (exit \$1); }
  15081. +as_fn_success () { as_fn_return 0; }
  15082. +as_fn_failure () { as_fn_return 1; }
  15083. +as_fn_ret_success () { return 0; }
  15084. +as_fn_ret_failure () { return 1; }
  15085. +
  15086. +exitcode=0
  15087. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  15088. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  15089. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  15090. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  15091. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  15092. +
  15093. +else
  15094. + exitcode=1; echo positional parameters were not saved.
  15095. +fi
  15096. +test x\$exitcode = x0 || exit 1"
  15097. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  15098. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  15099. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  15100. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  15101. +test \$(( 1 + 1 )) = 2 || exit 1"
  15102. + if (eval "$as_required") 2>/dev/null; then :
  15103. + as_have_required=yes
  15104. +else
  15105. + as_have_required=no
  15106. +fi
  15107. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  15108. +
  15109. +else
  15110. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15111. +as_found=false
  15112. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  15113. do
  15114. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15115. - eval $as_var=C; export $as_var
  15116. - else
  15117. - $as_unset $as_var
  15118. - fi
  15119. + IFS=$as_save_IFS
  15120. + test -z "$as_dir" && as_dir=.
  15121. + as_found=:
  15122. + case $as_dir in #(
  15123. + /*)
  15124. + for as_base in sh bash ksh sh5; do
  15125. + # Try only shells that exist, to save several forks.
  15126. + as_shell=$as_dir/$as_base
  15127. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  15128. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  15129. + CONFIG_SHELL=$as_shell as_have_required=yes
  15130. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  15131. + break 2
  15132. +fi
  15133. +fi
  15134. + done;;
  15135. + esac
  15136. + as_found=false
  15137. done
  15138. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  15139. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  15140. + CONFIG_SHELL=$SHELL as_have_required=yes
  15141. +fi; }
  15142. +IFS=$as_save_IFS
  15143. +
  15144. +
  15145. + if test "x$CONFIG_SHELL" != x; then :
  15146. + # We cannot yet assume a decent shell, so we have to provide a
  15147. + # neutralization value for shells without unset; and this also
  15148. + # works around shells that cannot unset nonexistent variables.
  15149. + BASH_ENV=/dev/null
  15150. + ENV=/dev/null
  15151. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  15152. + export CONFIG_SHELL
  15153. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  15154. +fi
  15155. +
  15156. + if test x$as_have_required = xno; then :
  15157. + $as_echo "$0: This script requires a shell more modern than all"
  15158. + $as_echo "$0: the shells that I found on your system."
  15159. + if test x${ZSH_VERSION+set} = xset ; then
  15160. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  15161. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  15162. + else
  15163. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  15164. +$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  15165. +$0: about your system, including any error possibly output
  15166. +$0: before this message. Then install a modern shell, or
  15167. +$0: manually run the script under such a shell if you do
  15168. +$0: have one."
  15169. + fi
  15170. + exit 1
  15171. +fi
  15172. +fi
  15173. +fi
  15174. +SHELL=${CONFIG_SHELL-/bin/sh}
  15175. +export SHELL
  15176. +# Unset more variables known to interfere with behavior of common tools.
  15177. +CLICOLOR_FORCE= GREP_OPTIONS=
  15178. +unset CLICOLOR_FORCE GREP_OPTIONS
  15179. +
  15180. +## --------------------- ##
  15181. +## M4sh Shell Functions. ##
  15182. +## --------------------- ##
  15183. +# as_fn_unset VAR
  15184. +# ---------------
  15185. +# Portably unset VAR.
  15186. +as_fn_unset ()
  15187. +{
  15188. + { eval $1=; unset $1;}
  15189. +}
  15190. +as_unset=as_fn_unset
  15191. +
  15192. +# as_fn_set_status STATUS
  15193. +# -----------------------
  15194. +# Set $? to STATUS, without forking.
  15195. +as_fn_set_status ()
  15196. +{
  15197. + return $1
  15198. +} # as_fn_set_status
  15199. +
  15200. +# as_fn_exit STATUS
  15201. +# -----------------
  15202. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15203. +as_fn_exit ()
  15204. +{
  15205. + set +e
  15206. + as_fn_set_status $1
  15207. + exit $1
  15208. +} # as_fn_exit
  15209. +
  15210. +# as_fn_mkdir_p
  15211. +# -------------
  15212. +# Create "$as_dir" as a directory, including parents if necessary.
  15213. +as_fn_mkdir_p ()
  15214. +{
  15215. +
  15216. + case $as_dir in #(
  15217. + -*) as_dir=./$as_dir;;
  15218. + esac
  15219. + test -d "$as_dir" || eval $as_mkdir_p || {
  15220. + as_dirs=
  15221. + while :; do
  15222. + case $as_dir in #(
  15223. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15224. + *) as_qdir=$as_dir;;
  15225. + esac
  15226. + as_dirs="'$as_qdir' $as_dirs"
  15227. + as_dir=`$as_dirname -- "$as_dir" ||
  15228. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15229. + X"$as_dir" : 'X\(//\)[^/]' \| \
  15230. + X"$as_dir" : 'X\(//\)$' \| \
  15231. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15232. +$as_echo X"$as_dir" |
  15233. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15234. + s//\1/
  15235. + q
  15236. + }
  15237. + /^X\(\/\/\)[^/].*/{
  15238. + s//\1/
  15239. + q
  15240. + }
  15241. + /^X\(\/\/\)$/{
  15242. + s//\1/
  15243. + q
  15244. + }
  15245. + /^X\(\/\).*/{
  15246. + s//\1/
  15247. + q
  15248. + }
  15249. + s/.*/./; q'`
  15250. + test -d "$as_dir" && break
  15251. + done
  15252. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  15253. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  15254. +
  15255. +
  15256. +} # as_fn_mkdir_p
  15257. +# as_fn_append VAR VALUE
  15258. +# ----------------------
  15259. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  15260. +# advantage of any shell optimizations that allow amortized linear growth over
  15261. +# repeated appends, instead of the typical quadratic growth present in naive
  15262. +# implementations.
  15263. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15264. + eval 'as_fn_append ()
  15265. + {
  15266. + eval $1+=\$2
  15267. + }'
  15268. +else
  15269. + as_fn_append ()
  15270. + {
  15271. + eval $1=\$$1\$2
  15272. + }
  15273. +fi # as_fn_append
  15274. +
  15275. +# as_fn_arith ARG...
  15276. +# ------------------
  15277. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  15278. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  15279. +# must be portable across $(()) and expr.
  15280. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15281. + eval 'as_fn_arith ()
  15282. + {
  15283. + as_val=$(( $* ))
  15284. + }'
  15285. +else
  15286. + as_fn_arith ()
  15287. + {
  15288. + as_val=`expr "$@" || test $? -eq 1`
  15289. + }
  15290. +fi # as_fn_arith
  15291. +
  15292. +
  15293. +# as_fn_error ERROR [LINENO LOG_FD]
  15294. +# ---------------------------------
  15295. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15296. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15297. +# script with status $?, using 1 if that was 0.
  15298. +as_fn_error ()
  15299. +{
  15300. + as_status=$?; test $as_status -eq 0 && as_status=1
  15301. + if test "$3"; then
  15302. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15303. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15304. + fi
  15305. + $as_echo "$as_me: error: $1" >&2
  15306. + as_fn_exit $as_status
  15307. +} # as_fn_error
  15308. -# Required to use basename.
  15309. -if expr a : '\(a\)' >/dev/null 2>&1; then
  15310. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  15311. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15312. as_expr=expr
  15313. else
  15314. as_expr=false
  15315. fi
  15316. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  15317. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15318. as_basename=basename
  15319. else
  15320. as_basename=false
  15321. fi
  15322. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15323. + as_dirname=dirname
  15324. +else
  15325. + as_dirname=false
  15326. +fi
  15327. -# Name of the executable.
  15328. -as_me=`$as_basename "$0" ||
  15329. +as_me=`$as_basename -- "$0" ||
  15330. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15331. X"$0" : 'X\(//\)$' \| \
  15332. - X"$0" : 'X\(/\)$' \| \
  15333. - . : '\(.\)' 2>/dev/null ||
  15334. -echo X/"$0" |
  15335. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  15336. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  15337. - /^X\/\(\/\).*/{ s//\1/; q; }
  15338. - s/.*/./; q'`
  15339. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15340. +$as_echo X/"$0" |
  15341. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  15342. + s//\1/
  15343. + q
  15344. + }
  15345. + /^X\/\(\/\/\)$/{
  15346. + s//\1/
  15347. + q
  15348. + }
  15349. + /^X\/\(\/\).*/{
  15350. + s//\1/
  15351. + q
  15352. + }
  15353. + s/.*/./; q'`
  15354. -
  15355. -# PATH needs CR, and LINENO needs CR and PATH.
  15356. # Avoid depending upon Character Ranges.
  15357. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15358. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15359. @@ -85,146 +421,107 @@
  15360. as_cr_digits='0123456789'
  15361. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15362. -# The user is always right.
  15363. -if test "${PATH_SEPARATOR+set}" != set; then
  15364. - echo "#! /bin/sh" >conf$$.sh
  15365. - echo "exit 0" >>conf$$.sh
  15366. - chmod +x conf$$.sh
  15367. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15368. - PATH_SEPARATOR=';'
  15369. - else
  15370. - PATH_SEPARATOR=:
  15371. - fi
  15372. - rm -f conf$$.sh
  15373. -fi
  15374. -
  15375. -
  15376. - as_lineno_1=$LINENO
  15377. - as_lineno_2=$LINENO
  15378. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  15379. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15380. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  15381. - # Find who we are. Look in the path if we contain no path at all
  15382. - # relative or not.
  15383. - case $0 in
  15384. - *[\\/]* ) as_myself=$0 ;;
  15385. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15386. -for as_dir in $PATH
  15387. -do
  15388. - IFS=$as_save_IFS
  15389. - test -z "$as_dir" && as_dir=.
  15390. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15391. -done
  15392. -
  15393. - ;;
  15394. - esac
  15395. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  15396. - # in which case we are not to be found in the path.
  15397. - if test "x$as_myself" = x; then
  15398. - as_myself=$0
  15399. - fi
  15400. - if test ! -f "$as_myself"; then
  15401. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  15402. - { (exit 1); exit 1; }; }
  15403. - fi
  15404. - case $CONFIG_SHELL in
  15405. - '')
  15406. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15407. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  15408. -do
  15409. - IFS=$as_save_IFS
  15410. - test -z "$as_dir" && as_dir=.
  15411. - for as_base in sh bash ksh sh5; do
  15412. - case $as_dir in
  15413. - /*)
  15414. - if ("$as_dir/$as_base" -c '
  15415. - as_lineno_1=$LINENO
  15416. - as_lineno_2=$LINENO
  15417. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  15418. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15419. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  15420. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  15421. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  15422. - CONFIG_SHELL=$as_dir/$as_base
  15423. - export CONFIG_SHELL
  15424. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  15425. - fi;;
  15426. - esac
  15427. - done
  15428. -done
  15429. -;;
  15430. - esac
  15431. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15432. - # uniformly replaced by the line number. The first 'sed' inserts a
  15433. - # line-number line before each line; the second 'sed' does the real
  15434. - # work. The second script uses 'N' to pair each line-number line
  15435. - # with the numbered line, and appends trailing '-' during
  15436. - # substitution so that $LINENO is not a special case at line end.
  15437. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15438. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  15439. - sed '=' <$as_myself |
  15440. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  15441. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  15442. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  15443. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  15444. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  15445. + sed -n '
  15446. + p
  15447. + /[$]LINENO/=
  15448. + ' <$as_myself |
  15449. sed '
  15450. + s/[$]LINENO.*/&-/
  15451. + t lineno
  15452. + b
  15453. + :lineno
  15454. N
  15455. - s,$,-,
  15456. - : loop
  15457. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  15458. + :loop
  15459. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15460. t loop
  15461. - s,-$,,
  15462. - s,^['$as_cr_digits']*\n,,
  15463. + s/-\n.*//
  15464. ' >$as_me.lineno &&
  15465. - chmod +x $as_me.lineno ||
  15466. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15467. - { (exit 1); exit 1; }; }
  15468. + chmod +x "$as_me.lineno" ||
  15469. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  15470. # Don't try to exec as it changes $[0], causing all sort of problems
  15471. # (the dirname of $[0] is not the place where we might find the
  15472. - # original and so on. Autoconf is especially sensible to this).
  15473. - . ./$as_me.lineno
  15474. + # original and so on. Autoconf is especially sensitive to this).
  15475. + . "./$as_me.lineno"
  15476. # Exit status is that of the last command.
  15477. exit
  15478. }
  15479. -
  15480. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  15481. - *c*,-n*) ECHO_N= ECHO_C='
  15482. -' ECHO_T=' ' ;;
  15483. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  15484. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  15485. +ECHO_C= ECHO_N= ECHO_T=
  15486. +case `echo -n x` in #(((((
  15487. +-n*)
  15488. + case `echo 'xy\c'` in
  15489. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15490. + xy) ECHO_C='\c';;
  15491. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15492. + ECHO_T=' ';;
  15493. + esac;;
  15494. +*)
  15495. + ECHO_N='-n';;
  15496. esac
  15497. -if expr a : '\(a\)' >/dev/null 2>&1; then
  15498. - as_expr=expr
  15499. +rm -f conf$$ conf$$.exe conf$$.file
  15500. +if test -d conf$$.dir; then
  15501. + rm -f conf$$.dir/conf$$.file
  15502. else
  15503. - as_expr=false
  15504. + rm -f conf$$.dir
  15505. + mkdir conf$$.dir 2>/dev/null
  15506. fi
  15507. -
  15508. -rm -f conf$$ conf$$.exe conf$$.file
  15509. -echo >conf$$.file
  15510. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  15511. - # We could just check for DJGPP; but this test a) works b) is more generic
  15512. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  15513. - if test -f conf$$.exe; then
  15514. - # Don't use ln at all; we don't have any links
  15515. - as_ln_s='cp -p'
  15516. - else
  15517. +if (echo >conf$$.file) 2>/dev/null; then
  15518. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  15519. as_ln_s='ln -s'
  15520. + # ... but there are two gotchas:
  15521. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15522. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15523. + # In both cases, we have to default to `cp -p'.
  15524. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15525. + as_ln_s='cp -p'
  15526. + elif ln conf$$.file conf$$ 2>/dev/null; then
  15527. + as_ln_s=ln
  15528. + else
  15529. + as_ln_s='cp -p'
  15530. fi
  15531. -elif ln conf$$.file conf$$ 2>/dev/null; then
  15532. - as_ln_s=ln
  15533. else
  15534. as_ln_s='cp -p'
  15535. fi
  15536. -rm -f conf$$ conf$$.exe conf$$.file
  15537. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15538. +rmdir conf$$.dir 2>/dev/null
  15539. if mkdir -p . 2>/dev/null; then
  15540. - as_mkdir_p=:
  15541. + as_mkdir_p='mkdir -p "$as_dir"'
  15542. else
  15543. test -d ./-p && rmdir ./-p
  15544. as_mkdir_p=false
  15545. fi
  15546. -as_executable_p="test -f"
  15547. +if test -x / >/dev/null 2>&1; then
  15548. + as_test_x='test -x'
  15549. +else
  15550. + if ls -dL / >/dev/null 2>&1; then
  15551. + as_ls_L_option=L
  15552. + else
  15553. + as_ls_L_option=
  15554. + fi
  15555. + as_test_x='
  15556. + eval sh -c '\''
  15557. + if test -d "$1"; then
  15558. + test -d "$1/.";
  15559. + else
  15560. + case $1 in #(
  15561. + -*)set "./$1";;
  15562. + esac;
  15563. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15564. + ???[sx]*):;;*)false;;esac;fi
  15565. + '\'' sh
  15566. + '
  15567. +fi
  15568. +as_executable_p=$as_test_x
  15569. # Sed expression to map a string onto a valid CPP name.
  15570. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15571. @@ -233,36 +530,26 @@
  15572. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15573. -# IFS
  15574. -# We need space, tab and new line, in precisely that order.
  15575. -as_nl='
  15576. -'
  15577. -IFS=" $as_nl"
  15578. -
  15579. -# CDPATH.
  15580. -$as_unset CDPATH
  15581. -
  15582. -
  15583. # Check that we are running under the correct shell.
  15584. SHELL=${CONFIG_SHELL-/bin/sh}
  15585. -case X$ECHO in
  15586. +case X$lt_ECHO in
  15587. X*--fallback-echo)
  15588. # Remove one level of quotation (which was required for Make).
  15589. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15590. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15591. ;;
  15592. esac
  15593. -echo=${ECHO-echo}
  15594. +ECHO=${lt_ECHO-echo}
  15595. if test "X$1" = X--no-reexec; then
  15596. # Discard the --no-reexec flag, and continue.
  15597. shift
  15598. elif test "X$1" = X--fallback-echo; then
  15599. # Avoid inline document here, it may be left over
  15600. :
  15601. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  15602. - # Yippee, $echo works!
  15603. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  15604. + # Yippee, $ECHO works!
  15605. :
  15606. else
  15607. # Restart under the correct shell.
  15608. @@ -272,9 +559,9 @@
  15609. if test "X$1" = X--fallback-echo; then
  15610. # used as fallback echo
  15611. shift
  15612. - cat <<EOF
  15613. + cat <<_LT_EOF
  15614. $*
  15615. -EOF
  15616. +_LT_EOF
  15617. exit 0
  15618. fi
  15619. @@ -282,143 +569,135 @@
  15620. # if CDPATH is set.
  15621. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15622. -if test -z "$ECHO"; then
  15623. -if test "X${echo_test_string+set}" != Xset; then
  15624. -# find a string as large as possible, as long as the shell can cope with it
  15625. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15626. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15627. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  15628. - echo_test_string=`eval $cmd` &&
  15629. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  15630. - then
  15631. - break
  15632. - fi
  15633. - done
  15634. -fi
  15635. +if test -z "$lt_ECHO"; then
  15636. + if test "X${echo_test_string+set}" != Xset; then
  15637. + # find a string as large as possible, as long as the shell can cope with it
  15638. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15639. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15640. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  15641. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  15642. + then
  15643. + break
  15644. + fi
  15645. + done
  15646. + fi
  15647. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15648. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15649. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15650. - :
  15651. -else
  15652. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  15653. - # backslashes. This makes it impossible to quote backslashes using
  15654. - # echo "$something" | sed 's/\\/\\\\/g'
  15655. - #
  15656. - # So, first we look for a working echo in the user's PATH.
  15657. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15658. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15659. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15660. + :
  15661. + else
  15662. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  15663. + # backslashes. This makes it impossible to quote backslashes using
  15664. + # echo "$something" | sed 's/\\/\\\\/g'
  15665. + #
  15666. + # So, first we look for a working echo in the user's PATH.
  15667. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15668. - for dir in $PATH /usr/ucb; do
  15669. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15670. + for dir in $PATH /usr/ucb; do
  15671. + IFS="$lt_save_ifs"
  15672. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15673. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15674. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15675. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15676. + ECHO="$dir/echo"
  15677. + break
  15678. + fi
  15679. + done
  15680. IFS="$lt_save_ifs"
  15681. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15682. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15683. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15684. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15685. - echo="$dir/echo"
  15686. - break
  15687. - fi
  15688. - done
  15689. - IFS="$lt_save_ifs"
  15690. - if test "X$echo" = Xecho; then
  15691. - # We didn't find a better echo, so look for alternatives.
  15692. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  15693. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  15694. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15695. - # This shell has a builtin print -r that does the trick.
  15696. - echo='print -r'
  15697. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  15698. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  15699. - # If we have ksh, try running configure again with it.
  15700. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15701. - export ORIGINAL_CONFIG_SHELL
  15702. - CONFIG_SHELL=/bin/ksh
  15703. - export CONFIG_SHELL
  15704. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15705. - else
  15706. - # Try using printf.
  15707. - echo='printf %s\n'
  15708. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15709. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15710. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15711. - # Cool, printf works
  15712. - :
  15713. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15714. - test "X$echo_testing_string" = 'X\t' &&
  15715. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15716. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15717. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15718. - export CONFIG_SHELL
  15719. - SHELL="$CONFIG_SHELL"
  15720. - export SHELL
  15721. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15722. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15723. - test "X$echo_testing_string" = 'X\t' &&
  15724. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15725. + if test "X$ECHO" = Xecho; then
  15726. + # We didn't find a better echo, so look for alternatives.
  15727. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  15728. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  15729. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15730. + # This shell has a builtin print -r that does the trick.
  15731. + ECHO='print -r'
  15732. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  15733. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  15734. + # If we have ksh, try running configure again with it.
  15735. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15736. + export ORIGINAL_CONFIG_SHELL
  15737. + CONFIG_SHELL=/bin/ksh
  15738. + export CONFIG_SHELL
  15739. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15740. + else
  15741. + # Try using printf.
  15742. + ECHO='printf %s\n'
  15743. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15744. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15745. test "X$echo_testing_string" = "X$echo_test_string"; then
  15746. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15747. - else
  15748. - # maybe with a smaller string...
  15749. - prev=:
  15750. + # Cool, printf works
  15751. + :
  15752. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15753. + test "X$echo_testing_string" = 'X\t' &&
  15754. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15755. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15756. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15757. + export CONFIG_SHELL
  15758. + SHELL="$CONFIG_SHELL"
  15759. + export SHELL
  15760. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15761. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15762. + test "X$echo_testing_string" = 'X\t' &&
  15763. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15764. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15765. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15766. + else
  15767. + # maybe with a smaller string...
  15768. + prev=:
  15769. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15770. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  15771. - then
  15772. - break
  15773. - fi
  15774. - prev="$cmd"
  15775. - done
  15776. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15777. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  15778. + then
  15779. + break
  15780. + fi
  15781. + prev="$cmd"
  15782. + done
  15783. - if test "$prev" != 'sed 50q "$0"'; then
  15784. - echo_test_string=`eval $prev`
  15785. - export echo_test_string
  15786. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15787. - else
  15788. - # Oops. We lost completely, so just stick with echo.
  15789. - echo=echo
  15790. - fi
  15791. + if test "$prev" != 'sed 50q "$0"'; then
  15792. + echo_test_string=`eval $prev`
  15793. + export echo_test_string
  15794. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15795. + else
  15796. + # Oops. We lost completely, so just stick with echo.
  15797. + ECHO=echo
  15798. + fi
  15799. + fi
  15800. fi
  15801. fi
  15802. fi
  15803. fi
  15804. -fi
  15805. # Copy echo and quote the copy suitably for passing to libtool from
  15806. # the Makefile, instead of quoting the original, which is used later.
  15807. -ECHO=$echo
  15808. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15809. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15810. +lt_ECHO=$ECHO
  15811. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15812. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15813. fi
  15814. -tagnames=${tagnames+${tagnames},}CXX
  15815. -
  15816. -tagnames=${tagnames+${tagnames},}F77
  15817. +test -n "$DJDIR" || exec 7<&0 </dev/null
  15818. +exec 6>&1
  15819. # Name of the host.
  15820. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  15821. # so uname gets run too.
  15822. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  15823. -exec 6>&1
  15824. -
  15825. #
  15826. # Initializations.
  15827. #
  15828. ac_default_prefix=/usr/local
  15829. +ac_clean_files=
  15830. ac_config_libobj_dir=.
  15831. +LIBOBJS=
  15832. cross_compiling=no
  15833. subdirs=
  15834. MFLAGS=
  15835. MAKEFLAGS=
  15836. -SHELL=${CONFIG_SHELL-/bin/sh}
  15837. -
  15838. -# Maximum number of lines to put in a shell here document.
  15839. -# This variable seems obsolete. It should probably be removed, and
  15840. -# only ac_max_sed_lines should be used.
  15841. -: ${ac_max_here_lines=38}
  15842. # Identity of this package.
  15843. PACKAGE_NAME='libXft'
  15844. @@ -426,50 +705,204 @@
  15845. PACKAGE_VERSION='2.1.9'
  15846. PACKAGE_STRING='libXft 2.1.9'
  15847. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  15848. +PACKAGE_URL=''
  15849. # Factoring default headers for most tests.
  15850. ac_includes_default="\
  15851. #include <stdio.h>
  15852. -#if HAVE_SYS_TYPES_H
  15853. +#ifdef HAVE_SYS_TYPES_H
  15854. # include <sys/types.h>
  15855. #endif
  15856. -#if HAVE_SYS_STAT_H
  15857. +#ifdef HAVE_SYS_STAT_H
  15858. # include <sys/stat.h>
  15859. #endif
  15860. -#if STDC_HEADERS
  15861. +#ifdef STDC_HEADERS
  15862. # include <stdlib.h>
  15863. # include <stddef.h>
  15864. #else
  15865. -# if HAVE_STDLIB_H
  15866. +# ifdef HAVE_STDLIB_H
  15867. # include <stdlib.h>
  15868. # endif
  15869. #endif
  15870. -#if HAVE_STRING_H
  15871. -# if !STDC_HEADERS && HAVE_MEMORY_H
  15872. +#ifdef HAVE_STRING_H
  15873. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  15874. # include <memory.h>
  15875. # endif
  15876. # include <string.h>
  15877. #endif
  15878. -#if HAVE_STRINGS_H
  15879. +#ifdef HAVE_STRINGS_H
  15880. # include <strings.h>
  15881. #endif
  15882. -#if HAVE_INTTYPES_H
  15883. +#ifdef HAVE_INTTYPES_H
  15884. # include <inttypes.h>
  15885. -#else
  15886. -# if HAVE_STDINT_H
  15887. -# include <stdint.h>
  15888. -# endif
  15889. #endif
  15890. -#if HAVE_UNISTD_H
  15891. +#ifdef HAVE_STDINT_H
  15892. +# include <stdint.h>
  15893. +#endif
  15894. +#ifdef HAVE_UNISTD_H
  15895. # include <unistd.h>
  15896. #endif"
  15897. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XRENDER_CFLAGS XRENDER_LIBS FREETYPE_CFLAGS FREETYPE_LIBS ft_config FONTCONFIG_CFLAGS FONTCONFIG_LIBS WARN_CFLAGS LIBOBJS LTLIBOBJS'
  15898. +ac_subst_vars='am__EXEEXT_FALSE
  15899. +am__EXEEXT_TRUE
  15900. +LTLIBOBJS
  15901. +LIBOBJS
  15902. +WARN_CFLAGS
  15903. +FONTCONFIG_LIBS
  15904. +FONTCONFIG_CFLAGS
  15905. +ft_config
  15906. +FREETYPE_LIBS
  15907. +FREETYPE_CFLAGS
  15908. +XMKMF
  15909. +XRENDER_LIBS
  15910. +XRENDER_CFLAGS
  15911. +PKG_CONFIG
  15912. +CPP
  15913. +OTOOL64
  15914. +OTOOL
  15915. +LIPO
  15916. +NMEDIT
  15917. +DSYMUTIL
  15918. +lt_ECHO
  15919. +RANLIB
  15920. +AR
  15921. +OBJDUMP
  15922. +LN_S
  15923. +NM
  15924. +ac_ct_DUMPBIN
  15925. +DUMPBIN
  15926. +LD
  15927. +FGREP
  15928. +EGREP
  15929. +GREP
  15930. +SED
  15931. +host_os
  15932. +host_vendor
  15933. +host_cpu
  15934. +host
  15935. +build_os
  15936. +build_vendor
  15937. +build_cpu
  15938. +build
  15939. +LIBTOOL
  15940. +am__fastdepCC_FALSE
  15941. +am__fastdepCC_TRUE
  15942. +CCDEPMODE
  15943. +AMDEPBACKSLASH
  15944. +AMDEP_FALSE
  15945. +AMDEP_TRUE
  15946. +am__quote
  15947. +am__include
  15948. +DEPDIR
  15949. +OBJEXT
  15950. +EXEEXT
  15951. +ac_ct_CC
  15952. +CPPFLAGS
  15953. +LDFLAGS
  15954. +CFLAGS
  15955. +CC
  15956. +MAINT
  15957. +MAINTAINER_MODE_FALSE
  15958. +MAINTAINER_MODE_TRUE
  15959. +am__untar
  15960. +am__tar
  15961. +AMTAR
  15962. +am__leading_dot
  15963. +SET_MAKE
  15964. +AWK
  15965. +mkdir_p
  15966. +MKDIR_P
  15967. +INSTALL_STRIP_PROGRAM
  15968. +STRIP
  15969. +install_sh
  15970. +MAKEINFO
  15971. +AUTOHEADER
  15972. +AUTOMAKE
  15973. +AUTOCONF
  15974. +ACLOCAL
  15975. +VERSION
  15976. +PACKAGE
  15977. +CYGPATH_W
  15978. +am__isrc
  15979. +INSTALL_DATA
  15980. +INSTALL_SCRIPT
  15981. +INSTALL_PROGRAM
  15982. +target_alias
  15983. +host_alias
  15984. +build_alias
  15985. +LIBS
  15986. +ECHO_T
  15987. +ECHO_N
  15988. +ECHO_C
  15989. +DEFS
  15990. +mandir
  15991. +localedir
  15992. +libdir
  15993. +psdir
  15994. +pdfdir
  15995. +dvidir
  15996. +htmldir
  15997. +infodir
  15998. +docdir
  15999. +oldincludedir
  16000. +includedir
  16001. +localstatedir
  16002. +sharedstatedir
  16003. +sysconfdir
  16004. +datadir
  16005. +datarootdir
  16006. +libexecdir
  16007. +sbindir
  16008. +bindir
  16009. +program_transform_name
  16010. +prefix
  16011. +exec_prefix
  16012. +PACKAGE_URL
  16013. +PACKAGE_BUGREPORT
  16014. +PACKAGE_STRING
  16015. +PACKAGE_VERSION
  16016. +PACKAGE_TARNAME
  16017. +PACKAGE_NAME
  16018. +PATH_SEPARATOR
  16019. +SHELL'
  16020. ac_subst_files=''
  16021. +ac_user_opts='
  16022. +enable_option_checking
  16023. +enable_maintainer_mode
  16024. +enable_dependency_tracking
  16025. +enable_shared
  16026. +enable_static
  16027. +with_pic
  16028. +enable_fast_install
  16029. +with_gnu_ld
  16030. +enable_libtool_lock
  16031. +with_x
  16032. +with_freetype_config
  16033. +'
  16034. + ac_precious_vars='build_alias
  16035. +host_alias
  16036. +target_alias
  16037. +CC
  16038. +CFLAGS
  16039. +LDFLAGS
  16040. +LIBS
  16041. +CPPFLAGS
  16042. +CPP
  16043. +PKG_CONFIG
  16044. +XRENDER_CFLAGS
  16045. +XRENDER_LIBS
  16046. +XMKMF
  16047. +FREETYPE_CFLAGS
  16048. +FREETYPE_LIBS
  16049. +FONTCONFIG_CFLAGS
  16050. +FONTCONFIG_LIBS'
  16051. +
  16052. # Initialize some variables set by options.
  16053. ac_init_help=
  16054. ac_init_version=false
  16055. +ac_unrecognized_opts=
  16056. +ac_unrecognized_sep=
  16057. # The variables have the same names as the options, with
  16058. # dashes changed to underlines.
  16059. cache_file=/dev/null
  16060. @@ -492,34 +925,48 @@
  16061. # and all the variables that are supposed to be based on exec_prefix
  16062. # by default will actually change.
  16063. # Use braces instead of parens because sh, perl, etc. also accept them.
  16064. +# (The list follows the same order as the GNU Coding Standards.)
  16065. bindir='${exec_prefix}/bin'
  16066. sbindir='${exec_prefix}/sbin'
  16067. libexecdir='${exec_prefix}/libexec'
  16068. -datadir='${prefix}/share'
  16069. +datarootdir='${prefix}/share'
  16070. +datadir='${datarootdir}'
  16071. sysconfdir='${prefix}/etc'
  16072. sharedstatedir='${prefix}/com'
  16073. localstatedir='${prefix}/var'
  16074. -libdir='${exec_prefix}/lib'
  16075. includedir='${prefix}/include'
  16076. oldincludedir='/usr/include'
  16077. -infodir='${prefix}/info'
  16078. -mandir='${prefix}/man'
  16079. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  16080. +infodir='${datarootdir}/info'
  16081. +htmldir='${docdir}'
  16082. +dvidir='${docdir}'
  16083. +pdfdir='${docdir}'
  16084. +psdir='${docdir}'
  16085. +libdir='${exec_prefix}/lib'
  16086. +localedir='${datarootdir}/locale'
  16087. +mandir='${datarootdir}/man'
  16088. ac_prev=
  16089. +ac_dashdash=
  16090. for ac_option
  16091. do
  16092. # If the previous option needs an argument, assign it.
  16093. if test -n "$ac_prev"; then
  16094. - eval "$ac_prev=\$ac_option"
  16095. + eval $ac_prev=\$ac_option
  16096. ac_prev=
  16097. continue
  16098. fi
  16099. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  16100. + case $ac_option in
  16101. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  16102. + *) ac_optarg=yes ;;
  16103. + esac
  16104. # Accept the important Cygnus configure options, so we can diagnose typos.
  16105. - case $ac_option in
  16106. + case $ac_dashdash$ac_option in
  16107. + --)
  16108. + ac_dashdash=yes ;;
  16109. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  16110. ac_prev=bindir ;;
  16111. @@ -541,33 +988,59 @@
  16112. --config-cache | -C)
  16113. cache_file=config.cache ;;
  16114. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  16115. + -datadir | --datadir | --datadi | --datad)
  16116. ac_prev=datadir ;;
  16117. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  16118. - | --da=*)
  16119. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  16120. datadir=$ac_optarg ;;
  16121. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  16122. + | --dataroo | --dataro | --datar)
  16123. + ac_prev=datarootdir ;;
  16124. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  16125. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  16126. + datarootdir=$ac_optarg ;;
  16127. +
  16128. -disable-* | --disable-*)
  16129. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16130. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16131. # Reject names that are not valid shell variable names.
  16132. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16133. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16134. - { (exit 1); exit 1; }; }
  16135. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16136. - eval "enable_$ac_feature=no" ;;
  16137. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16138. + as_fn_error "invalid feature name: $ac_useropt"
  16139. + ac_useropt_orig=$ac_useropt
  16140. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16141. + case $ac_user_opts in
  16142. + *"
  16143. +"enable_$ac_useropt"
  16144. +"*) ;;
  16145. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  16146. + ac_unrecognized_sep=', ';;
  16147. + esac
  16148. + eval enable_$ac_useropt=no ;;
  16149. +
  16150. + -docdir | --docdir | --docdi | --doc | --do)
  16151. + ac_prev=docdir ;;
  16152. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  16153. + docdir=$ac_optarg ;;
  16154. +
  16155. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  16156. + ac_prev=dvidir ;;
  16157. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  16158. + dvidir=$ac_optarg ;;
  16159. -enable-* | --enable-*)
  16160. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16161. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16162. # Reject names that are not valid shell variable names.
  16163. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16164. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16165. - { (exit 1); exit 1; }; }
  16166. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16167. - case $ac_option in
  16168. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  16169. - *) ac_optarg=yes ;;
  16170. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16171. + as_fn_error "invalid feature name: $ac_useropt"
  16172. + ac_useropt_orig=$ac_useropt
  16173. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16174. + case $ac_user_opts in
  16175. + *"
  16176. +"enable_$ac_useropt"
  16177. +"*) ;;
  16178. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  16179. + ac_unrecognized_sep=', ';;
  16180. esac
  16181. - eval "enable_$ac_feature='$ac_optarg'" ;;
  16182. + eval enable_$ac_useropt=\$ac_optarg ;;
  16183. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  16184. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  16185. @@ -594,6 +1067,12 @@
  16186. -host=* | --host=* | --hos=* | --ho=*)
  16187. host_alias=$ac_optarg ;;
  16188. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  16189. + ac_prev=htmldir ;;
  16190. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  16191. + | --ht=*)
  16192. + htmldir=$ac_optarg ;;
  16193. +
  16194. -includedir | --includedir | --includedi | --included | --include \
  16195. | --includ | --inclu | --incl | --inc)
  16196. ac_prev=includedir ;;
  16197. @@ -618,13 +1097,16 @@
  16198. | --libexe=* | --libex=* | --libe=*)
  16199. libexecdir=$ac_optarg ;;
  16200. + -localedir | --localedir | --localedi | --localed | --locale)
  16201. + ac_prev=localedir ;;
  16202. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  16203. + localedir=$ac_optarg ;;
  16204. +
  16205. -localstatedir | --localstatedir | --localstatedi | --localstated \
  16206. - | --localstate | --localstat | --localsta | --localst \
  16207. - | --locals | --local | --loca | --loc | --lo)
  16208. + | --localstate | --localstat | --localsta | --localst | --locals)
  16209. ac_prev=localstatedir ;;
  16210. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  16211. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  16212. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  16213. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  16214. localstatedir=$ac_optarg ;;
  16215. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  16216. @@ -689,6 +1171,16 @@
  16217. | --progr-tra=* | --program-tr=* | --program-t=*)
  16218. program_transform_name=$ac_optarg ;;
  16219. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  16220. + ac_prev=pdfdir ;;
  16221. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  16222. + pdfdir=$ac_optarg ;;
  16223. +
  16224. + -psdir | --psdir | --psdi | --psd | --ps)
  16225. + ac_prev=psdir ;;
  16226. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  16227. + psdir=$ac_optarg ;;
  16228. +
  16229. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16230. | -silent | --silent | --silen | --sile | --sil)
  16231. silent=yes ;;
  16232. @@ -739,26 +1231,36 @@
  16233. ac_init_version=: ;;
  16234. -with-* | --with-*)
  16235. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16236. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16237. # Reject names that are not valid shell variable names.
  16238. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16239. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16240. - { (exit 1); exit 1; }; }
  16241. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  16242. - case $ac_option in
  16243. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  16244. - *) ac_optarg=yes ;;
  16245. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16246. + as_fn_error "invalid package name: $ac_useropt"
  16247. + ac_useropt_orig=$ac_useropt
  16248. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16249. + case $ac_user_opts in
  16250. + *"
  16251. +"with_$ac_useropt"
  16252. +"*) ;;
  16253. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  16254. + ac_unrecognized_sep=', ';;
  16255. esac
  16256. - eval "with_$ac_package='$ac_optarg'" ;;
  16257. + eval with_$ac_useropt=\$ac_optarg ;;
  16258. -without-* | --without-*)
  16259. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16260. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16261. # Reject names that are not valid shell variable names.
  16262. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16263. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16264. - { (exit 1); exit 1; }; }
  16265. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  16266. - eval "with_$ac_package=no" ;;
  16267. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16268. + as_fn_error "invalid package name: $ac_useropt"
  16269. + ac_useropt_orig=$ac_useropt
  16270. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16271. + case $ac_user_opts in
  16272. + *"
  16273. +"with_$ac_useropt"
  16274. +"*) ;;
  16275. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  16276. + ac_unrecognized_sep=', ';;
  16277. + esac
  16278. + eval with_$ac_useropt=no ;;
  16279. --x)
  16280. # Obsolete; use --with-x.
  16281. @@ -778,26 +1280,25 @@
  16282. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  16283. x_libraries=$ac_optarg ;;
  16284. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  16285. -Try \`$0 --help' for more information." >&2
  16286. - { (exit 1); exit 1; }; }
  16287. + -*) as_fn_error "unrecognized option: \`$ac_option'
  16288. +Try \`$0 --help' for more information."
  16289. ;;
  16290. *=*)
  16291. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  16292. # Reject names that are not valid shell variable names.
  16293. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  16294. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  16295. - { (exit 1); exit 1; }; }
  16296. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  16297. - eval "$ac_envvar='$ac_optarg'"
  16298. + case $ac_envvar in #(
  16299. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  16300. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  16301. + esac
  16302. + eval $ac_envvar=\$ac_optarg
  16303. export $ac_envvar ;;
  16304. *)
  16305. # FIXME: should be removed in autoconf 3.0.
  16306. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16307. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16308. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16309. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16310. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16311. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  16312. ;;
  16313. @@ -806,31 +1307,36 @@
  16314. if test -n "$ac_prev"; then
  16315. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  16316. - { echo "$as_me: error: missing argument to $ac_option" >&2
  16317. - { (exit 1); exit 1; }; }
  16318. + as_fn_error "missing argument to $ac_option"
  16319. fi
  16320. -# Be sure to have absolute paths.
  16321. -for ac_var in exec_prefix prefix
  16322. -do
  16323. - eval ac_val=$`echo $ac_var`
  16324. - case $ac_val in
  16325. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  16326. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16327. - { (exit 1); exit 1; }; };;
  16328. +if test -n "$ac_unrecognized_opts"; then
  16329. + case $enable_option_checking in
  16330. + no) ;;
  16331. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  16332. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  16333. esac
  16334. -done
  16335. +fi
  16336. -# Be sure to have absolute paths.
  16337. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  16338. - localstatedir libdir includedir oldincludedir infodir mandir
  16339. +# Check all directory arguments for consistency.
  16340. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  16341. + datadir sysconfdir sharedstatedir localstatedir includedir \
  16342. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  16343. + libdir localedir mandir
  16344. do
  16345. - eval ac_val=$`echo $ac_var`
  16346. + eval ac_val=\$$ac_var
  16347. + # Remove trailing slashes.
  16348. + case $ac_val in
  16349. + */ )
  16350. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  16351. + eval $ac_var=\$ac_val;;
  16352. + esac
  16353. + # Be sure to have absolute directory names.
  16354. case $ac_val in
  16355. - [\\/$]* | ?:[\\/]* ) ;;
  16356. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16357. - { (exit 1); exit 1; }; };;
  16358. + [\\/$]* | ?:[\\/]* ) continue;;
  16359. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  16360. esac
  16361. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  16362. done
  16363. # There might be people who depend on the old broken behavior: `$host'
  16364. @@ -844,7 +1350,7 @@
  16365. if test "x$host_alias" != x; then
  16366. if test "x$build_alias" = x; then
  16367. cross_compiling=maybe
  16368. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16369. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16370. If a cross compiler is detected then cross compile mode will be used." >&2
  16371. elif test "x$build_alias" != "x$host_alias"; then
  16372. cross_compiling=yes
  16373. @@ -857,122 +1363,72 @@
  16374. test "$silent" = yes && exec 6>/dev/null
  16375. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  16376. +ac_ls_di=`ls -di .` &&
  16377. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  16378. + as_fn_error "working directory cannot be determined"
  16379. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  16380. + as_fn_error "pwd does not report name of working directory"
  16381. +
  16382. +
  16383. # Find the source files, if location was not specified.
  16384. if test -z "$srcdir"; then
  16385. ac_srcdir_defaulted=yes
  16386. - # Try the directory containing this script, then its parent.
  16387. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  16388. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16389. - X"$0" : 'X\(//\)[^/]' \| \
  16390. - X"$0" : 'X\(//\)$' \| \
  16391. - X"$0" : 'X\(/\)' \| \
  16392. - . : '\(.\)' 2>/dev/null ||
  16393. -echo X"$0" |
  16394. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  16395. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  16396. - /^X\(\/\/\)$/{ s//\1/; q; }
  16397. - /^X\(\/\).*/{ s//\1/; q; }
  16398. - s/.*/./; q'`
  16399. + # Try the directory containing this script, then the parent directory.
  16400. + ac_confdir=`$as_dirname -- "$as_myself" ||
  16401. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16402. + X"$as_myself" : 'X\(//\)[^/]' \| \
  16403. + X"$as_myself" : 'X\(//\)$' \| \
  16404. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  16405. +$as_echo X"$as_myself" |
  16406. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16407. + s//\1/
  16408. + q
  16409. + }
  16410. + /^X\(\/\/\)[^/].*/{
  16411. + s//\1/
  16412. + q
  16413. + }
  16414. + /^X\(\/\/\)$/{
  16415. + s//\1/
  16416. + q
  16417. + }
  16418. + /^X\(\/\).*/{
  16419. + s//\1/
  16420. + q
  16421. + }
  16422. + s/.*/./; q'`
  16423. srcdir=$ac_confdir
  16424. - if test ! -r $srcdir/$ac_unique_file; then
  16425. + if test ! -r "$srcdir/$ac_unique_file"; then
  16426. srcdir=..
  16427. fi
  16428. else
  16429. ac_srcdir_defaulted=no
  16430. fi
  16431. -if test ! -r $srcdir/$ac_unique_file; then
  16432. - if test "$ac_srcdir_defaulted" = yes; then
  16433. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  16434. - { (exit 1); exit 1; }; }
  16435. - else
  16436. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  16437. - { (exit 1); exit 1; }; }
  16438. - fi
  16439. -fi
  16440. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  16441. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  16442. - { (exit 1); exit 1; }; }
  16443. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  16444. -ac_env_build_alias_set=${build_alias+set}
  16445. -ac_env_build_alias_value=$build_alias
  16446. -ac_cv_env_build_alias_set=${build_alias+set}
  16447. -ac_cv_env_build_alias_value=$build_alias
  16448. -ac_env_host_alias_set=${host_alias+set}
  16449. -ac_env_host_alias_value=$host_alias
  16450. -ac_cv_env_host_alias_set=${host_alias+set}
  16451. -ac_cv_env_host_alias_value=$host_alias
  16452. -ac_env_target_alias_set=${target_alias+set}
  16453. -ac_env_target_alias_value=$target_alias
  16454. -ac_cv_env_target_alias_set=${target_alias+set}
  16455. -ac_cv_env_target_alias_value=$target_alias
  16456. -ac_env_CC_set=${CC+set}
  16457. -ac_env_CC_value=$CC
  16458. -ac_cv_env_CC_set=${CC+set}
  16459. -ac_cv_env_CC_value=$CC
  16460. -ac_env_CFLAGS_set=${CFLAGS+set}
  16461. -ac_env_CFLAGS_value=$CFLAGS
  16462. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  16463. -ac_cv_env_CFLAGS_value=$CFLAGS
  16464. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  16465. -ac_env_LDFLAGS_value=$LDFLAGS
  16466. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  16467. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  16468. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  16469. -ac_env_CPPFLAGS_value=$CPPFLAGS
  16470. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  16471. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  16472. -ac_env_CPP_set=${CPP+set}
  16473. -ac_env_CPP_value=$CPP
  16474. -ac_cv_env_CPP_set=${CPP+set}
  16475. -ac_cv_env_CPP_value=$CPP
  16476. -ac_env_CXX_set=${CXX+set}
  16477. -ac_env_CXX_value=$CXX
  16478. -ac_cv_env_CXX_set=${CXX+set}
  16479. -ac_cv_env_CXX_value=$CXX
  16480. -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  16481. -ac_env_CXXFLAGS_value=$CXXFLAGS
  16482. -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  16483. -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  16484. -ac_env_CXXCPP_set=${CXXCPP+set}
  16485. -ac_env_CXXCPP_value=$CXXCPP
  16486. -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  16487. -ac_cv_env_CXXCPP_value=$CXXCPP
  16488. -ac_env_F77_set=${F77+set}
  16489. -ac_env_F77_value=$F77
  16490. -ac_cv_env_F77_set=${F77+set}
  16491. -ac_cv_env_F77_value=$F77
  16492. -ac_env_FFLAGS_set=${FFLAGS+set}
  16493. -ac_env_FFLAGS_value=$FFLAGS
  16494. -ac_cv_env_FFLAGS_set=${FFLAGS+set}
  16495. -ac_cv_env_FFLAGS_value=$FFLAGS
  16496. -ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  16497. -ac_env_PKG_CONFIG_value=$PKG_CONFIG
  16498. -ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  16499. -ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  16500. -ac_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
  16501. -ac_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
  16502. -ac_cv_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
  16503. -ac_cv_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
  16504. -ac_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
  16505. -ac_env_XRENDER_LIBS_value=$XRENDER_LIBS
  16506. -ac_cv_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
  16507. -ac_cv_env_XRENDER_LIBS_value=$XRENDER_LIBS
  16508. -ac_env_FREETYPE_CFLAGS_set=${FREETYPE_CFLAGS+set}
  16509. -ac_env_FREETYPE_CFLAGS_value=$FREETYPE_CFLAGS
  16510. -ac_cv_env_FREETYPE_CFLAGS_set=${FREETYPE_CFLAGS+set}
  16511. -ac_cv_env_FREETYPE_CFLAGS_value=$FREETYPE_CFLAGS
  16512. -ac_env_FREETYPE_LIBS_set=${FREETYPE_LIBS+set}
  16513. -ac_env_FREETYPE_LIBS_value=$FREETYPE_LIBS
  16514. -ac_cv_env_FREETYPE_LIBS_set=${FREETYPE_LIBS+set}
  16515. -ac_cv_env_FREETYPE_LIBS_value=$FREETYPE_LIBS
  16516. -ac_env_FONTCONFIG_CFLAGS_set=${FONTCONFIG_CFLAGS+set}
  16517. -ac_env_FONTCONFIG_CFLAGS_value=$FONTCONFIG_CFLAGS
  16518. -ac_cv_env_FONTCONFIG_CFLAGS_set=${FONTCONFIG_CFLAGS+set}
  16519. -ac_cv_env_FONTCONFIG_CFLAGS_value=$FONTCONFIG_CFLAGS
  16520. -ac_env_FONTCONFIG_LIBS_set=${FONTCONFIG_LIBS+set}
  16521. -ac_env_FONTCONFIG_LIBS_value=$FONTCONFIG_LIBS
  16522. -ac_cv_env_FONTCONFIG_LIBS_set=${FONTCONFIG_LIBS+set}
  16523. -ac_cv_env_FONTCONFIG_LIBS_value=$FONTCONFIG_LIBS
  16524. +if test ! -r "$srcdir/$ac_unique_file"; then
  16525. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  16526. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  16527. +fi
  16528. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  16529. +ac_abs_confdir=`(
  16530. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  16531. + pwd)`
  16532. +# When building in place, set srcdir=.
  16533. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  16534. + srcdir=.
  16535. +fi
  16536. +# Remove unnecessary trailing slashes from srcdir.
  16537. +# Double slashes in file names in object file debugging info
  16538. +# mess up M-x gdb in Emacs.
  16539. +case $srcdir in
  16540. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  16541. +esac
  16542. +for ac_var in $ac_precious_vars; do
  16543. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  16544. + eval ac_env_${ac_var}_value=\$${ac_var}
  16545. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  16546. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  16547. +done
  16548. #
  16549. # Report the --help message.
  16550. @@ -1001,14 +1457,11 @@
  16551. -n, --no-create do not create output files
  16552. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  16553. -_ACEOF
  16554. -
  16555. - cat <<_ACEOF
  16556. Installation directories:
  16557. --prefix=PREFIX install architecture-independent files in PREFIX
  16558. - [$ac_default_prefix]
  16559. + [$ac_default_prefix]
  16560. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  16561. - [PREFIX]
  16562. + [PREFIX]
  16563. By default, \`make install' will install all the files in
  16564. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  16565. @@ -1018,18 +1471,25 @@
  16566. For better control, use the options below.
  16567. Fine tuning of the installation directories:
  16568. - --bindir=DIR user executables [EPREFIX/bin]
  16569. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  16570. - --libexecdir=DIR program executables [EPREFIX/libexec]
  16571. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  16572. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16573. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16574. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16575. - --libdir=DIR object code libraries [EPREFIX/lib]
  16576. - --includedir=DIR C header files [PREFIX/include]
  16577. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16578. - --infodir=DIR info documentation [PREFIX/info]
  16579. - --mandir=DIR man documentation [PREFIX/man]
  16580. + --bindir=DIR user executables [EPREFIX/bin]
  16581. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  16582. + --libexecdir=DIR program executables [EPREFIX/libexec]
  16583. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16584. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16585. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16586. + --libdir=DIR object code libraries [EPREFIX/lib]
  16587. + --includedir=DIR C header files [PREFIX/include]
  16588. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16589. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16590. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16591. + --infodir=DIR info documentation [DATAROOTDIR/info]
  16592. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16593. + --mandir=DIR man documentation [DATAROOTDIR/man]
  16594. + --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
  16595. + --htmldir=DIR html documentation [DOCDIR]
  16596. + --dvidir=DIR dvi documentation [DOCDIR]
  16597. + --pdfdir=DIR pdf documentation [DOCDIR]
  16598. + --psdir=DIR ps documentation [DOCDIR]
  16599. _ACEOF
  16600. cat <<\_ACEOF
  16601. @@ -1056,16 +1516,15 @@
  16602. cat <<\_ACEOF
  16603. Optional Features:
  16604. + --disable-option-checking ignore unrecognized --enable/--with options
  16605. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  16606. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  16607. --enable-maintainer-mode enable make rules and dependencies not useful
  16608. (and sometimes confusing) to the casual installer
  16609. --disable-dependency-tracking speeds up one-time build
  16610. --enable-dependency-tracking do not reject slow dependency extractors
  16611. - --enable-shared[=PKGS]
  16612. - build shared libraries [default=yes]
  16613. - --enable-static[=PKGS]
  16614. - build static libraries [default=yes]
  16615. + --enable-shared[=PKGS] build shared libraries [default=yes]
  16616. + --enable-static[=PKGS] build static libraries [default=yes]
  16617. --enable-fast-install[=PKGS]
  16618. optimize for fast installation [default=yes]
  16619. --disable-libtool-lock avoid locking (might break parallel builds)
  16620. @@ -1073,34 +1532,27 @@
  16621. Optional Packages:
  16622. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  16623. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  16624. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16625. --with-pic try to use only PIC/non-PIC objects [default=use
  16626. both]
  16627. - --with-tags[=TAGS]
  16628. - include additional configurations [automatic]
  16629. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16630. --with-x use the X Window System
  16631. --with-freetype-config=PROG Use FreeType configuration program PROG
  16632. - --with-release-version=STRING
  16633. - Use release version string in package name
  16634. Some influential environment variables:
  16635. CC C compiler command
  16636. CFLAGS C compiler flags
  16637. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  16638. nonstandard directory <lib dir>
  16639. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  16640. - headers in a nonstandard directory <include dir>
  16641. + LIBS libraries to pass to the linker, e.g. -l<library>
  16642. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  16643. + you have headers in a nonstandard directory <include dir>
  16644. CPP C preprocessor
  16645. - CXX C++ compiler command
  16646. - CXXFLAGS C++ compiler flags
  16647. - CXXCPP C++ preprocessor
  16648. - F77 Fortran 77 compiler command
  16649. - FFLAGS Fortran 77 compiler flags
  16650. PKG_CONFIG path to pkg-config utility
  16651. XRENDER_CFLAGS
  16652. C compiler flags for XRENDER, overriding pkg-config
  16653. XRENDER_LIBS
  16654. linker flags for XRENDER, overriding pkg-config
  16655. + XMKMF Path to xmkmf, Makefile generator for X Window System
  16656. FREETYPE_CFLAGS
  16657. C compiler flags for FREETYPE, overriding pkg-config
  16658. FREETYPE_LIBS
  16659. @@ -1115,120 +1567,502 @@
  16660. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  16661. _ACEOF
  16662. +ac_status=$?
  16663. fi
  16664. if test "$ac_init_help" = "recursive"; then
  16665. # If there are subdirs, report their specific --help.
  16666. - ac_popdir=`pwd`
  16667. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  16668. - test -d $ac_dir || continue
  16669. + test -d "$ac_dir" ||
  16670. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  16671. + continue
  16672. ac_builddir=.
  16673. -if test "$ac_dir" != .; then
  16674. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  16675. - # A "../" for each directory in $ac_dir_suffix.
  16676. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  16677. -else
  16678. - ac_dir_suffix= ac_top_builddir=
  16679. -fi
  16680. +case "$ac_dir" in
  16681. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16682. +*)
  16683. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16684. + # A ".." for each directory in $ac_dir_suffix.
  16685. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16686. + case $ac_top_builddir_sub in
  16687. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16688. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16689. + esac ;;
  16690. +esac
  16691. +ac_abs_top_builddir=$ac_pwd
  16692. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16693. +# for backward compatibility:
  16694. +ac_top_builddir=$ac_top_build_prefix
  16695. case $srcdir in
  16696. - .) # No --srcdir option. We are building in place.
  16697. + .) # We are building in place.
  16698. ac_srcdir=.
  16699. - if test -z "$ac_top_builddir"; then
  16700. - ac_top_srcdir=.
  16701. - else
  16702. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  16703. - fi ;;
  16704. - [\\/]* | ?:[\\/]* ) # Absolute path.
  16705. + ac_top_srcdir=$ac_top_builddir_sub
  16706. + ac_abs_top_srcdir=$ac_pwd ;;
  16707. + [\\/]* | ?:[\\/]* ) # Absolute name.
  16708. ac_srcdir=$srcdir$ac_dir_suffix;
  16709. - ac_top_srcdir=$srcdir ;;
  16710. - *) # Relative path.
  16711. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  16712. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  16713. -esac
  16714. -
  16715. -# Do not use `cd foo && pwd` to compute absolute paths, because
  16716. -# the directories may not exist.
  16717. -case `pwd` in
  16718. -.) ac_abs_builddir="$ac_dir";;
  16719. -*)
  16720. - case "$ac_dir" in
  16721. - .) ac_abs_builddir=`pwd`;;
  16722. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  16723. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  16724. - esac;;
  16725. -esac
  16726. -case $ac_abs_builddir in
  16727. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  16728. -*)
  16729. - case ${ac_top_builddir}. in
  16730. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  16731. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  16732. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  16733. - esac;;
  16734. -esac
  16735. -case $ac_abs_builddir in
  16736. -.) ac_abs_srcdir=$ac_srcdir;;
  16737. -*)
  16738. - case $ac_srcdir in
  16739. - .) ac_abs_srcdir=$ac_abs_builddir;;
  16740. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  16741. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  16742. - esac;;
  16743. -esac
  16744. -case $ac_abs_builddir in
  16745. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  16746. -*)
  16747. - case $ac_top_srcdir in
  16748. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  16749. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  16750. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  16751. - esac;;
  16752. -esac
  16753. -
  16754. - cd $ac_dir
  16755. - # Check for guested configure; otherwise get Cygnus style configure.
  16756. - if test -f $ac_srcdir/configure.gnu; then
  16757. - echo
  16758. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  16759. - elif test -f $ac_srcdir/configure; then
  16760. - echo
  16761. - $SHELL $ac_srcdir/configure --help=recursive
  16762. - elif test -f $ac_srcdir/configure.ac ||
  16763. - test -f $ac_srcdir/configure.in; then
  16764. - echo
  16765. - $ac_configure --help
  16766. + ac_top_srcdir=$srcdir
  16767. + ac_abs_top_srcdir=$srcdir ;;
  16768. + *) # Relative name.
  16769. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16770. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  16771. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16772. +esac
  16773. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16774. +
  16775. + cd "$ac_dir" || { ac_status=$?; continue; }
  16776. + # Check for guested configure.
  16777. + if test -f "$ac_srcdir/configure.gnu"; then
  16778. + echo &&
  16779. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  16780. + elif test -f "$ac_srcdir/configure"; then
  16781. + echo &&
  16782. + $SHELL "$ac_srcdir/configure" --help=recursive
  16783. else
  16784. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16785. - fi
  16786. - cd "$ac_popdir"
  16787. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16788. + fi || ac_status=$?
  16789. + cd "$ac_pwd" || { ac_status=$?; break; }
  16790. done
  16791. fi
  16792. -test -n "$ac_init_help" && exit 0
  16793. +test -n "$ac_init_help" && exit $ac_status
  16794. if $ac_init_version; then
  16795. cat <<\_ACEOF
  16796. libXft configure 2.1.9
  16797. -generated by GNU Autoconf 2.59
  16798. +generated by GNU Autoconf 2.65
  16799. -Copyright (C) 2003 Free Software Foundation, Inc.
  16800. +Copyright (C) 2009 Free Software Foundation, Inc.
  16801. This configure script is free software; the Free Software Foundation
  16802. gives unlimited permission to copy, distribute and modify it.
  16803. _ACEOF
  16804. - exit 0
  16805. + exit
  16806. fi
  16807. -exec 5>config.log
  16808. -cat >&5 <<_ACEOF
  16809. -This file contains any messages produced by compilers while
  16810. -running configure, to aid debugging if configure makes a mistake.
  16811. -
  16812. -It was created by libXft $as_me 2.1.9, which was
  16813. -generated by GNU Autoconf 2.59. Invocation command line was
  16814. -
  16815. - $ $0 $@
  16816. +
  16817. +## ------------------------ ##
  16818. +## Autoconf initialization. ##
  16819. +## ------------------------ ##
  16820. +
  16821. +# ac_fn_c_try_compile LINENO
  16822. +# --------------------------
  16823. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  16824. +ac_fn_c_try_compile ()
  16825. +{
  16826. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16827. + rm -f conftest.$ac_objext
  16828. + if { { ac_try="$ac_compile"
  16829. +case "(($ac_try" in
  16830. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16831. + *) ac_try_echo=$ac_try;;
  16832. +esac
  16833. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16834. +$as_echo "$ac_try_echo"; } >&5
  16835. + (eval "$ac_compile") 2>conftest.err
  16836. + ac_status=$?
  16837. + if test -s conftest.err; then
  16838. + grep -v '^ *+' conftest.err >conftest.er1
  16839. + cat conftest.er1 >&5
  16840. + mv -f conftest.er1 conftest.err
  16841. + fi
  16842. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16843. + test $ac_status = 0; } && {
  16844. + test -z "$ac_c_werror_flag" ||
  16845. + test ! -s conftest.err
  16846. + } && test -s conftest.$ac_objext; then :
  16847. + ac_retval=0
  16848. +else
  16849. + $as_echo "$as_me: failed program was:" >&5
  16850. +sed 's/^/| /' conftest.$ac_ext >&5
  16851. +
  16852. + ac_retval=1
  16853. +fi
  16854. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16855. + as_fn_set_status $ac_retval
  16856. +
  16857. +} # ac_fn_c_try_compile
  16858. +
  16859. +# ac_fn_c_try_link LINENO
  16860. +# -----------------------
  16861. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  16862. +ac_fn_c_try_link ()
  16863. +{
  16864. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16865. + rm -f conftest.$ac_objext conftest$ac_exeext
  16866. + if { { ac_try="$ac_link"
  16867. +case "(($ac_try" in
  16868. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16869. + *) ac_try_echo=$ac_try;;
  16870. +esac
  16871. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16872. +$as_echo "$ac_try_echo"; } >&5
  16873. + (eval "$ac_link") 2>conftest.err
  16874. + ac_status=$?
  16875. + if test -s conftest.err; then
  16876. + grep -v '^ *+' conftest.err >conftest.er1
  16877. + cat conftest.er1 >&5
  16878. + mv -f conftest.er1 conftest.err
  16879. + fi
  16880. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16881. + test $ac_status = 0; } && {
  16882. + test -z "$ac_c_werror_flag" ||
  16883. + test ! -s conftest.err
  16884. + } && test -s conftest$ac_exeext && {
  16885. + test "$cross_compiling" = yes ||
  16886. + $as_test_x conftest$ac_exeext
  16887. + }; then :
  16888. + ac_retval=0
  16889. +else
  16890. + $as_echo "$as_me: failed program was:" >&5
  16891. +sed 's/^/| /' conftest.$ac_ext >&5
  16892. +
  16893. + ac_retval=1
  16894. +fi
  16895. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  16896. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  16897. + # interfere with the next link command; also delete a directory that is
  16898. + # left behind by Apple's compiler. We do this before executing the actions.
  16899. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16900. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16901. + as_fn_set_status $ac_retval
  16902. +
  16903. +} # ac_fn_c_try_link
  16904. +
  16905. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  16906. +# -------------------------------------------------------
  16907. +# Tests whether HEADER exists and can be compiled using the include files in
  16908. +# INCLUDES, setting the cache variable VAR accordingly.
  16909. +ac_fn_c_check_header_compile ()
  16910. +{
  16911. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16912. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16913. +$as_echo_n "checking for $2... " >&6; }
  16914. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16915. + $as_echo_n "(cached) " >&6
  16916. +else
  16917. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. +/* end confdefs.h. */
  16919. +$4
  16920. +#include <$2>
  16921. +_ACEOF
  16922. +if ac_fn_c_try_compile "$LINENO"; then :
  16923. + eval "$3=yes"
  16924. +else
  16925. + eval "$3=no"
  16926. +fi
  16927. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16928. +fi
  16929. +eval ac_res=\$$3
  16930. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16931. +$as_echo "$ac_res" >&6; }
  16932. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16933. +
  16934. +} # ac_fn_c_check_header_compile
  16935. +
  16936. +# ac_fn_c_try_cpp LINENO
  16937. +# ----------------------
  16938. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  16939. +ac_fn_c_try_cpp ()
  16940. +{
  16941. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16942. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  16943. +case "(($ac_try" in
  16944. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16945. + *) ac_try_echo=$ac_try;;
  16946. +esac
  16947. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16948. +$as_echo "$ac_try_echo"; } >&5
  16949. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  16950. + ac_status=$?
  16951. + if test -s conftest.err; then
  16952. + grep -v '^ *+' conftest.err >conftest.er1
  16953. + cat conftest.er1 >&5
  16954. + mv -f conftest.er1 conftest.err
  16955. + fi
  16956. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16957. + test $ac_status = 0; } >/dev/null && {
  16958. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16959. + test ! -s conftest.err
  16960. + }; then :
  16961. + ac_retval=0
  16962. +else
  16963. + $as_echo "$as_me: failed program was:" >&5
  16964. +sed 's/^/| /' conftest.$ac_ext >&5
  16965. +
  16966. + ac_retval=1
  16967. +fi
  16968. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16969. + as_fn_set_status $ac_retval
  16970. +
  16971. +} # ac_fn_c_try_cpp
  16972. +
  16973. +# ac_fn_c_try_run LINENO
  16974. +# ----------------------
  16975. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  16976. +# that executables *can* be run.
  16977. +ac_fn_c_try_run ()
  16978. +{
  16979. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16980. + if { { ac_try="$ac_link"
  16981. +case "(($ac_try" in
  16982. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16983. + *) ac_try_echo=$ac_try;;
  16984. +esac
  16985. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16986. +$as_echo "$ac_try_echo"; } >&5
  16987. + (eval "$ac_link") 2>&5
  16988. + ac_status=$?
  16989. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16990. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  16991. + { { case "(($ac_try" in
  16992. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16993. + *) ac_try_echo=$ac_try;;
  16994. +esac
  16995. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16996. +$as_echo "$ac_try_echo"; } >&5
  16997. + (eval "$ac_try") 2>&5
  16998. + ac_status=$?
  16999. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17000. + test $ac_status = 0; }; }; then :
  17001. + ac_retval=0
  17002. +else
  17003. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17004. + $as_echo "$as_me: failed program was:" >&5
  17005. +sed 's/^/| /' conftest.$ac_ext >&5
  17006. +
  17007. + ac_retval=$ac_status
  17008. +fi
  17009. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17010. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17011. + as_fn_set_status $ac_retval
  17012. +
  17013. +} # ac_fn_c_try_run
  17014. +
  17015. +# ac_fn_c_check_func LINENO FUNC VAR
  17016. +# ----------------------------------
  17017. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  17018. +ac_fn_c_check_func ()
  17019. +{
  17020. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17021. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17022. +$as_echo_n "checking for $2... " >&6; }
  17023. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17024. + $as_echo_n "(cached) " >&6
  17025. +else
  17026. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17027. +/* end confdefs.h. */
  17028. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  17029. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17030. +#define $2 innocuous_$2
  17031. +
  17032. +/* System header to define __stub macros and hopefully few prototypes,
  17033. + which can conflict with char $2 (); below.
  17034. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17035. + <limits.h> exists even on freestanding compilers. */
  17036. +
  17037. +#ifdef __STDC__
  17038. +# include <limits.h>
  17039. +#else
  17040. +# include <assert.h>
  17041. +#endif
  17042. +
  17043. +#undef $2
  17044. +
  17045. +/* Override any GCC internal prototype to avoid an error.
  17046. + Use char because int might match the return type of a GCC
  17047. + builtin and then its argument prototype would still apply. */
  17048. +#ifdef __cplusplus
  17049. +extern "C"
  17050. +#endif
  17051. +char $2 ();
  17052. +/* The GNU C library defines this for functions which it implements
  17053. + to always fail with ENOSYS. Some functions are actually named
  17054. + something starting with __ and the normal name is an alias. */
  17055. +#if defined __stub_$2 || defined __stub___$2
  17056. +choke me
  17057. +#endif
  17058. +
  17059. +int
  17060. +main ()
  17061. +{
  17062. +return $2 ();
  17063. + ;
  17064. + return 0;
  17065. +}
  17066. +_ACEOF
  17067. +if ac_fn_c_try_link "$LINENO"; then :
  17068. + eval "$3=yes"
  17069. +else
  17070. + eval "$3=no"
  17071. +fi
  17072. +rm -f core conftest.err conftest.$ac_objext \
  17073. + conftest$ac_exeext conftest.$ac_ext
  17074. +fi
  17075. +eval ac_res=\$$3
  17076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17077. +$as_echo "$ac_res" >&6; }
  17078. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17079. +
  17080. +} # ac_fn_c_check_func
  17081. +
  17082. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  17083. +# -------------------------------------------------------
  17084. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  17085. +# the include files in INCLUDES and setting the cache variable VAR
  17086. +# accordingly.
  17087. +ac_fn_c_check_header_mongrel ()
  17088. +{
  17089. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17090. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17091. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17092. +$as_echo_n "checking for $2... " >&6; }
  17093. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17094. + $as_echo_n "(cached) " >&6
  17095. +fi
  17096. +eval ac_res=\$$3
  17097. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17098. +$as_echo "$ac_res" >&6; }
  17099. +else
  17100. + # Is the header compilable?
  17101. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  17102. +$as_echo_n "checking $2 usability... " >&6; }
  17103. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17104. +/* end confdefs.h. */
  17105. +$4
  17106. +#include <$2>
  17107. +_ACEOF
  17108. +if ac_fn_c_try_compile "$LINENO"; then :
  17109. + ac_header_compiler=yes
  17110. +else
  17111. + ac_header_compiler=no
  17112. +fi
  17113. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  17115. +$as_echo "$ac_header_compiler" >&6; }
  17116. +
  17117. +# Is the header present?
  17118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  17119. +$as_echo_n "checking $2 presence... " >&6; }
  17120. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17121. +/* end confdefs.h. */
  17122. +#include <$2>
  17123. +_ACEOF
  17124. +if ac_fn_c_try_cpp "$LINENO"; then :
  17125. + ac_header_preproc=yes
  17126. +else
  17127. + ac_header_preproc=no
  17128. +fi
  17129. +rm -f conftest.err conftest.$ac_ext
  17130. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  17131. +$as_echo "$ac_header_preproc" >&6; }
  17132. +
  17133. +# So? What about this header?
  17134. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  17135. + yes:no: )
  17136. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  17137. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17138. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  17139. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  17140. + ;;
  17141. + no:yes:* )
  17142. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  17143. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  17144. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  17145. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  17146. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  17147. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  17148. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  17149. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  17150. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  17151. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  17152. +( cat <<\_ASBOX
  17153. +## ---------------------------------------------------------------------- ##
  17154. +## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  17155. +## ---------------------------------------------------------------------- ##
  17156. +_ASBOX
  17157. + ) | sed "s/^/$as_me: WARNING: /" >&2
  17158. + ;;
  17159. +esac
  17160. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17161. +$as_echo_n "checking for $2... " >&6; }
  17162. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17163. + $as_echo_n "(cached) " >&6
  17164. +else
  17165. + eval "$3=\$ac_header_compiler"
  17166. +fi
  17167. +eval ac_res=\$$3
  17168. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17169. +$as_echo "$ac_res" >&6; }
  17170. +fi
  17171. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17172. +
  17173. +} # ac_fn_c_check_header_mongrel
  17174. +
  17175. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  17176. +# ----------------------------------------------------
  17177. +# Tries to find if the field MEMBER exists in type AGGR, after including
  17178. +# INCLUDES, setting cache variable VAR accordingly.
  17179. +ac_fn_c_check_member ()
  17180. +{
  17181. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17182. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  17183. +$as_echo_n "checking for $2.$3... " >&6; }
  17184. +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  17185. + $as_echo_n "(cached) " >&6
  17186. +else
  17187. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17188. +/* end confdefs.h. */
  17189. +$5
  17190. +int
  17191. +main ()
  17192. +{
  17193. +static $2 ac_aggr;
  17194. +if (ac_aggr.$3)
  17195. +return 0;
  17196. + ;
  17197. + return 0;
  17198. +}
  17199. +_ACEOF
  17200. +if ac_fn_c_try_compile "$LINENO"; then :
  17201. + eval "$4=yes"
  17202. +else
  17203. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17204. +/* end confdefs.h. */
  17205. +$5
  17206. +int
  17207. +main ()
  17208. +{
  17209. +static $2 ac_aggr;
  17210. +if (sizeof ac_aggr.$3)
  17211. +return 0;
  17212. + ;
  17213. + return 0;
  17214. +}
  17215. +_ACEOF
  17216. +if ac_fn_c_try_compile "$LINENO"; then :
  17217. + eval "$4=yes"
  17218. +else
  17219. + eval "$4=no"
  17220. +fi
  17221. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17222. +fi
  17223. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17224. +fi
  17225. +eval ac_res=\$$4
  17226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17227. +$as_echo "$ac_res" >&6; }
  17228. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17229. +
  17230. +} # ac_fn_c_check_member
  17231. +cat >config.log <<_ACEOF
  17232. +This file contains any messages produced by compilers while
  17233. +running configure, to aid debugging if configure makes a mistake.
  17234. +
  17235. +It was created by libXft $as_me 2.1.9, which was
  17236. +generated by GNU Autoconf 2.65. Invocation command line was
  17237. +
  17238. + $ $0 $@
  17239. _ACEOF
  17240. +exec 5>>config.log
  17241. {
  17242. cat <<_ASUNAME
  17243. ## --------- ##
  17244. @@ -1247,7 +2081,7 @@
  17245. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  17246. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  17247. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  17248. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  17249. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  17250. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  17251. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  17252. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  17253. @@ -1259,8 +2093,9 @@
  17254. do
  17255. IFS=$as_save_IFS
  17256. test -z "$as_dir" && as_dir=.
  17257. - echo "PATH: $as_dir"
  17258. -done
  17259. + $as_echo "PATH: $as_dir"
  17260. + done
  17261. +IFS=$as_save_IFS
  17262. } >&5
  17263. @@ -1282,7 +2117,6 @@
  17264. ac_configure_args=
  17265. ac_configure_args0=
  17266. ac_configure_args1=
  17267. -ac_sep=
  17268. ac_must_keep_next=false
  17269. for ac_pass in 1 2
  17270. do
  17271. @@ -1293,13 +2127,13 @@
  17272. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17273. | -silent | --silent | --silen | --sile | --sil)
  17274. continue ;;
  17275. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  17276. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17277. + *\'*)
  17278. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17279. esac
  17280. case $ac_pass in
  17281. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  17282. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  17283. 2)
  17284. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  17285. + as_fn_append ac_configure_args1 " '$ac_arg'"
  17286. if test $ac_must_keep_next = true; then
  17287. ac_must_keep_next=false # Got value, back to normal.
  17288. else
  17289. @@ -1315,21 +2149,19 @@
  17290. -* ) ac_must_keep_next=true ;;
  17291. esac
  17292. fi
  17293. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  17294. - # Get rid of the leading space.
  17295. - ac_sep=" "
  17296. + as_fn_append ac_configure_args " '$ac_arg'"
  17297. ;;
  17298. esac
  17299. done
  17300. done
  17301. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  17302. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  17303. +{ ac_configure_args0=; unset ac_configure_args0;}
  17304. +{ ac_configure_args1=; unset ac_configure_args1;}
  17305. # When interrupted or exit'd, cleanup temporary files, and complete
  17306. # config.log. We remove comments because anyway the quotes in there
  17307. # would cause problems or look ugly.
  17308. -# WARNING: Be sure not to use single quotes in there, as some shells,
  17309. -# such as our DU 5.0 friend, will then `close' the trap.
  17310. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  17311. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  17312. trap 'exit_status=$?
  17313. # Save into config.log some information that might help in debugging.
  17314. {
  17315. @@ -1342,20 +2174,35 @@
  17316. _ASBOX
  17317. echo
  17318. # The following way of writing the cache mishandles newlines in values,
  17319. -{
  17320. +(
  17321. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  17322. + eval ac_val=\$$ac_var
  17323. + case $ac_val in #(
  17324. + *${as_nl}*)
  17325. + case $ac_var in #(
  17326. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17327. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17328. + esac
  17329. + case $ac_var in #(
  17330. + _ | IFS | as_nl) ;; #(
  17331. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17332. + *) { eval $ac_var=; unset $ac_var;} ;;
  17333. + esac ;;
  17334. + esac
  17335. + done
  17336. (set) 2>&1 |
  17337. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  17338. - *ac_space=\ *)
  17339. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  17340. + *${as_nl}ac_space=\ *)
  17341. sed -n \
  17342. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  17343. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  17344. - ;;
  17345. + "s/'\''/'\''\\\\'\'''\''/g;
  17346. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  17347. + ;; #(
  17348. *)
  17349. - sed -n \
  17350. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  17351. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17352. ;;
  17353. - esac;
  17354. -}
  17355. + esac |
  17356. + sort
  17357. +)
  17358. echo
  17359. cat <<\_ASBOX
  17360. @@ -1366,22 +2213,28 @@
  17361. echo
  17362. for ac_var in $ac_subst_vars
  17363. do
  17364. - eval ac_val=$`echo $ac_var`
  17365. - echo "$ac_var='"'"'$ac_val'"'"'"
  17366. + eval ac_val=\$$ac_var
  17367. + case $ac_val in
  17368. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17369. + esac
  17370. + $as_echo "$ac_var='\''$ac_val'\''"
  17371. done | sort
  17372. echo
  17373. if test -n "$ac_subst_files"; then
  17374. cat <<\_ASBOX
  17375. -## ------------- ##
  17376. -## Output files. ##
  17377. -## ------------- ##
  17378. +## ------------------- ##
  17379. +## File substitutions. ##
  17380. +## ------------------- ##
  17381. _ASBOX
  17382. echo
  17383. for ac_var in $ac_subst_files
  17384. do
  17385. - eval ac_val=$`echo $ac_var`
  17386. - echo "$ac_var='"'"'$ac_val'"'"'"
  17387. + eval ac_val=\$$ac_var
  17388. + case $ac_val in
  17389. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17390. + esac
  17391. + $as_echo "$ac_var='\''$ac_val'\''"
  17392. done | sort
  17393. echo
  17394. fi
  17395. @@ -1393,26 +2246,26 @@
  17396. ## ----------- ##
  17397. _ASBOX
  17398. echo
  17399. - sed "/^$/d" confdefs.h | sort
  17400. + cat confdefs.h
  17401. echo
  17402. fi
  17403. test "$ac_signal" != 0 &&
  17404. - echo "$as_me: caught signal $ac_signal"
  17405. - echo "$as_me: exit $exit_status"
  17406. + $as_echo "$as_me: caught signal $ac_signal"
  17407. + $as_echo "$as_me: exit $exit_status"
  17408. } >&5
  17409. - rm -f core *.core &&
  17410. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  17411. + rm -f core *.core core.conftest.* &&
  17412. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  17413. exit $exit_status
  17414. - ' 0
  17415. +' 0
  17416. for ac_signal in 1 2 13 15; do
  17417. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  17418. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  17419. done
  17420. ac_signal=0
  17421. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  17422. -rm -rf conftest* confdefs.h
  17423. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  17424. -echo >confdefs.h
  17425. +rm -f -r conftest* confdefs.h
  17426. +
  17427. +$as_echo "/* confdefs.h */" > confdefs.h
  17428. # Predefined preprocessor variables.
  17429. @@ -1420,112 +2273,128 @@
  17430. #define PACKAGE_NAME "$PACKAGE_NAME"
  17431. _ACEOF
  17432. -
  17433. cat >>confdefs.h <<_ACEOF
  17434. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  17435. _ACEOF
  17436. -
  17437. cat >>confdefs.h <<_ACEOF
  17438. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  17439. _ACEOF
  17440. -
  17441. cat >>confdefs.h <<_ACEOF
  17442. #define PACKAGE_STRING "$PACKAGE_STRING"
  17443. _ACEOF
  17444. -
  17445. cat >>confdefs.h <<_ACEOF
  17446. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  17447. _ACEOF
  17448. +cat >>confdefs.h <<_ACEOF
  17449. +#define PACKAGE_URL "$PACKAGE_URL"
  17450. +_ACEOF
  17451. +
  17452. # Let the site file select an alternate cache file if it wants to.
  17453. -# Prefer explicitly selected file to automatically selected ones.
  17454. -if test -z "$CONFIG_SITE"; then
  17455. - if test "x$prefix" != xNONE; then
  17456. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  17457. - else
  17458. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  17459. - fi
  17460. -fi
  17461. -for ac_site_file in $CONFIG_SITE; do
  17462. - if test -r "$ac_site_file"; then
  17463. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  17464. -echo "$as_me: loading site script $ac_site_file" >&6;}
  17465. +# Prefer an explicitly selected file to automatically selected ones.
  17466. +ac_site_file1=NONE
  17467. +ac_site_file2=NONE
  17468. +if test -n "$CONFIG_SITE"; then
  17469. + ac_site_file1=$CONFIG_SITE
  17470. +elif test "x$prefix" != xNONE; then
  17471. + ac_site_file1=$prefix/share/config.site
  17472. + ac_site_file2=$prefix/etc/config.site
  17473. +else
  17474. + ac_site_file1=$ac_default_prefix/share/config.site
  17475. + ac_site_file2=$ac_default_prefix/etc/config.site
  17476. +fi
  17477. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  17478. +do
  17479. + test "x$ac_site_file" = xNONE && continue
  17480. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  17481. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  17482. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  17483. sed 's/^/| /' "$ac_site_file" >&5
  17484. . "$ac_site_file"
  17485. fi
  17486. done
  17487. if test -r "$cache_file"; then
  17488. - # Some versions of bash will fail to source /dev/null (special
  17489. - # files actually), so we avoid doing that.
  17490. - if test -f "$cache_file"; then
  17491. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  17492. -echo "$as_me: loading cache $cache_file" >&6;}
  17493. + # Some versions of bash will fail to source /dev/null (special files
  17494. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  17495. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  17496. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  17497. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  17498. case $cache_file in
  17499. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  17500. - *) . ./$cache_file;;
  17501. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  17502. + *) . "./$cache_file";;
  17503. esac
  17504. fi
  17505. else
  17506. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  17507. -echo "$as_me: creating cache $cache_file" >&6;}
  17508. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  17509. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  17510. >$cache_file
  17511. fi
  17512. # Check that the precious variables saved in the cache have kept the same
  17513. # value.
  17514. ac_cache_corrupted=false
  17515. -for ac_var in `(set) 2>&1 |
  17516. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  17517. +for ac_var in $ac_precious_vars; do
  17518. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  17519. eval ac_new_set=\$ac_env_${ac_var}_set
  17520. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  17521. - eval ac_new_val="\$ac_env_${ac_var}_value"
  17522. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  17523. + eval ac_new_val=\$ac_env_${ac_var}_value
  17524. case $ac_old_set,$ac_new_set in
  17525. set,)
  17526. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17527. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17528. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17529. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17530. ac_cache_corrupted=: ;;
  17531. ,set)
  17532. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  17533. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17534. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  17535. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17536. ac_cache_corrupted=: ;;
  17537. ,);;
  17538. *)
  17539. if test "x$ac_old_val" != "x$ac_new_val"; then
  17540. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  17541. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17542. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  17543. -echo "$as_me: former value: $ac_old_val" >&2;}
  17544. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  17545. -echo "$as_me: current value: $ac_new_val" >&2;}
  17546. - ac_cache_corrupted=:
  17547. + # differences in whitespace do not lead to failure.
  17548. + ac_old_val_w=`echo x $ac_old_val`
  17549. + ac_new_val_w=`echo x $ac_new_val`
  17550. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  17551. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  17552. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17553. + ac_cache_corrupted=:
  17554. + else
  17555. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  17556. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  17557. + eval $ac_var=\$ac_old_val
  17558. + fi
  17559. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  17560. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  17561. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  17562. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  17563. fi;;
  17564. esac
  17565. # Pass precious variables to config.status.
  17566. if test "$ac_new_set" = set; then
  17567. case $ac_new_val in
  17568. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  17569. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17570. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17571. *) ac_arg=$ac_var=$ac_new_val ;;
  17572. esac
  17573. case " $ac_configure_args " in
  17574. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  17575. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  17576. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  17577. esac
  17578. fi
  17579. done
  17580. if $ac_cache_corrupted; then
  17581. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  17582. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17583. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  17584. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  17585. - { (exit 1); exit 1; }; }
  17586. -fi
  17587. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17588. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17589. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  17590. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17591. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  17592. +fi
  17593. +## -------------------- ##
  17594. +## Main body of script. ##
  17595. +## -------------------- ##
  17596. ac_ext=c
  17597. ac_cpp='$CPP $CPPFLAGS'
  17598. @@ -1534,58 +2403,32 @@
  17599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17600. -
  17601. -
  17602. -
  17603. -
  17604. -
  17605. -
  17606. -
  17607. -
  17608. -
  17609. -
  17610. -
  17611. -
  17612. -
  17613. -
  17614. -
  17615. -
  17616. -
  17617. -
  17618. -
  17619. -
  17620. -
  17621. -
  17622. -
  17623. -
  17624. -
  17625. ac_aux_dir=
  17626. -for ac_dir in . $srcdir/.; do
  17627. - if test -f $ac_dir/install-sh; then
  17628. - ac_aux_dir=$ac_dir
  17629. - ac_install_sh="$ac_aux_dir/install-sh -c"
  17630. - break
  17631. - elif test -f $ac_dir/install.sh; then
  17632. - ac_aux_dir=$ac_dir
  17633. - ac_install_sh="$ac_aux_dir/install.sh -c"
  17634. - break
  17635. - elif test -f $ac_dir/shtool; then
  17636. - ac_aux_dir=$ac_dir
  17637. - ac_install_sh="$ac_aux_dir/shtool install -c"
  17638. - break
  17639. - fi
  17640. +for ac_dir in . "$srcdir"/.; do
  17641. + for ac_t in install-sh install.sh shtool; do
  17642. + if test -f "$ac_dir/$ac_t"; then
  17643. + ac_aux_dir=$ac_dir
  17644. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  17645. + break 2
  17646. + fi
  17647. + done
  17648. done
  17649. if test -z "$ac_aux_dir"; then
  17650. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
  17651. -echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
  17652. - { (exit 1); exit 1; }; }
  17653. + as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  17654. fi
  17655. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  17656. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  17657. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  17658. +# These three variables are undocumented and unsupported,
  17659. +# and are intended to be withdrawn in a future Autoconf release.
  17660. +# They can cause serious problems if a builder's source tree is in a directory
  17661. +# whose full name contains unusual characters.
  17662. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  17663. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  17664. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  17665. +
  17666. +
  17667. +
  17668. +am__api_version='1.11'
  17669. -am__api_version="1.9"
  17670. # Find a good install program. We prefer a C program (faster),
  17671. # so one script is as good as another. But avoid the broken or
  17672. # incompatible versions:
  17673. @@ -1599,22 +2442,23 @@
  17674. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17675. # OS/2's system install, which has a completely different semantic
  17676. # ./install, which can be erroneously created by make from ./install.sh.
  17677. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17678. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  17679. +# Reject install programs that cannot install multiple files.
  17680. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  17681. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  17682. if test -z "$INSTALL"; then
  17683. -if test "${ac_cv_path_install+set}" = set; then
  17684. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17685. +if test "${ac_cv_path_install+set}" = set; then :
  17686. + $as_echo_n "(cached) " >&6
  17687. else
  17688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17689. for as_dir in $PATH
  17690. do
  17691. IFS=$as_save_IFS
  17692. test -z "$as_dir" && as_dir=.
  17693. - # Account for people who put trailing slashes in PATH elements.
  17694. -case $as_dir/ in
  17695. - ./ | .// | /cC/* | \
  17696. + # Account for people who put trailing slashes in PATH elements.
  17697. +case $as_dir/ in #((
  17698. + ./ | .// | /[cC]/* | \
  17699. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17700. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17701. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  17702. /usr/ucb/* ) ;;
  17703. *)
  17704. # OSF1 and SCO ODT 3.0 have their own names for install.
  17705. @@ -1622,7 +2466,7 @@
  17706. # by default.
  17707. for ac_prog in ginstall scoinst install; do
  17708. for ac_exec_ext in '' $ac_executable_extensions; do
  17709. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  17710. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17711. if test $ac_prog = install &&
  17712. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17713. # AIX install. It has an incompatible calling convention.
  17714. @@ -1632,30 +2476,43 @@
  17715. # program-specific install script used by HP pwplus--don't use.
  17716. :
  17717. else
  17718. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17719. - break 3
  17720. + rm -rf conftest.one conftest.two conftest.dir
  17721. + echo one > conftest.one
  17722. + echo two > conftest.two
  17723. + mkdir conftest.dir
  17724. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  17725. + test -s conftest.one && test -s conftest.two &&
  17726. + test -s conftest.dir/conftest.one &&
  17727. + test -s conftest.dir/conftest.two
  17728. + then
  17729. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17730. + break 3
  17731. + fi
  17732. fi
  17733. fi
  17734. done
  17735. done
  17736. ;;
  17737. esac
  17738. -done
  17739. + done
  17740. +IFS=$as_save_IFS
  17741. +
  17742. +rm -rf conftest.one conftest.two conftest.dir
  17743. fi
  17744. if test "${ac_cv_path_install+set}" = set; then
  17745. INSTALL=$ac_cv_path_install
  17746. else
  17747. - # As a last resort, use the slow shell script. We don't cache a
  17748. - # path for INSTALL within a source directory, because that will
  17749. + # As a last resort, use the slow shell script. Don't cache a
  17750. + # value for INSTALL within a source directory, because that will
  17751. # break other packages using the cache if that directory is
  17752. - # removed, or if the path is relative.
  17753. + # removed, or if the value is a relative name.
  17754. INSTALL=$ac_install_sh
  17755. fi
  17756. fi
  17757. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  17758. -echo "${ECHO_T}$INSTALL" >&6
  17759. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  17760. +$as_echo "$INSTALL" >&6; }
  17761. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17762. # It thinks the first close brace ends the variable substitution.
  17763. @@ -1665,21 +2522,34 @@
  17764. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17765. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17766. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  17767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  17768. +$as_echo_n "checking whether build environment is sane... " >&6; }
  17769. # Just in case
  17770. sleep 1
  17771. echo timestamp > conftest.file
  17772. +# Reject unsafe characters in $srcdir or the absolute working directory
  17773. +# name. Accept space and tab only in the latter.
  17774. +am_lf='
  17775. +'
  17776. +case `pwd` in
  17777. + *[\\\"\#\$\&\'\`$am_lf]*)
  17778. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  17779. +esac
  17780. +case $srcdir in
  17781. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  17782. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  17783. +esac
  17784. +
  17785. # Do `set' in a subshell so we don't clobber the current shell's
  17786. # arguments. Must try -L first in case configure is actually a
  17787. # symlink; some systems play weird games with the mod time of symlinks
  17788. # (eg FreeBSD returns the mod time of the symlink's containing
  17789. # directory).
  17790. if (
  17791. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17792. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  17793. if test "$*" = "X"; then
  17794. # -L didn't work.
  17795. - set X `ls -t $srcdir/configure conftest.file`
  17796. + set X `ls -t "$srcdir/configure" conftest.file`
  17797. fi
  17798. rm -f conftest.file
  17799. if test "$*" != "X $srcdir/configure conftest.file" \
  17800. @@ -1689,11 +2559,8 @@
  17801. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17802. # broken ls alias from the environment. This has actually
  17803. # happened. Such a system could not be considered "sane".
  17804. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17805. -alias in your environment" >&5
  17806. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17807. -alias in your environment" >&2;}
  17808. - { (exit 1); exit 1; }; }
  17809. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  17810. +alias in your environment" "$LINENO" 5
  17811. fi
  17812. test "$2" = conftest.file
  17813. @@ -1702,157 +2569,288 @@
  17814. # Ok.
  17815. :
  17816. else
  17817. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17818. -Check your system clock" >&5
  17819. -echo "$as_me: error: newly created file is older than distributed files!
  17820. -Check your system clock" >&2;}
  17821. - { (exit 1); exit 1; }; }
  17822. + as_fn_error "newly created file is older than distributed files!
  17823. +Check your system clock" "$LINENO" 5
  17824. fi
  17825. -echo "$as_me:$LINENO: result: yes" >&5
  17826. -echo "${ECHO_T}yes" >&6
  17827. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17828. +$as_echo "yes" >&6; }
  17829. test "$program_prefix" != NONE &&
  17830. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  17831. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  17832. # Use a double $ so make ignores it.
  17833. test "$program_suffix" != NONE &&
  17834. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  17835. -# Double any \ or $. echo might interpret backslashes.
  17836. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  17837. +# Double any \ or $.
  17838. # By default was `s,x,x', remove it if useless.
  17839. -cat <<\_ACEOF >conftest.sed
  17840. -s/[\\$]/&&/g;s/;s,x,x,$//
  17841. -_ACEOF
  17842. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17843. -rm conftest.sed
  17844. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  17845. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  17846. # expand $ac_aux_dir to an absolute path
  17847. am_aux_dir=`cd $ac_aux_dir && pwd`
  17848. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17849. +if test x"${MISSING+set}" != xset; then
  17850. + case $am_aux_dir in
  17851. + *\ * | *\ *)
  17852. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  17853. + *)
  17854. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  17855. + esac
  17856. +fi
  17857. # Use eval to expand $SHELL
  17858. if eval "$MISSING --run true"; then
  17859. am_missing_run="$MISSING --run "
  17860. else
  17861. am_missing_run=
  17862. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17863. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17864. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  17865. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17866. fi
  17867. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  17868. - # We used to keeping the `.' as first argument, in order to
  17869. - # allow $(mkdir_p) to be used without argument. As in
  17870. - # $(mkdir_p) $(somedir)
  17871. - # where $(somedir) is conditionally defined. However this is wrong
  17872. - # for two reasons:
  17873. - # 1. if the package is installed by a user who cannot write `.'
  17874. - # make install will fail,
  17875. - # 2. the above comment should most certainly read
  17876. - # $(mkdir_p) $(DESTDIR)$(somedir)
  17877. - # so it does not work when $(somedir) is undefined and
  17878. - # $(DESTDIR) is not.
  17879. - # To support the latter case, we have to write
  17880. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  17881. - # so the `.' trick is pointless.
  17882. - mkdir_p='mkdir -p --'
  17883. -else
  17884. - # On NextStep and OpenStep, the `mkdir' command does not
  17885. - # recognize any option. It will interpret all options as
  17886. - # directories to create, and then abort because `.' already
  17887. - # exists.
  17888. - for d in ./-p ./--version;
  17889. - do
  17890. - test -d $d && rmdir $d
  17891. - done
  17892. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  17893. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  17894. - mkdir_p='$(mkinstalldirs)'
  17895. - else
  17896. - mkdir_p='$(install_sh) -d'
  17897. - fi
  17898. +if test x"${install_sh}" != xset; then
  17899. + case $am_aux_dir in
  17900. + *\ * | *\ *)
  17901. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  17902. + *)
  17903. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  17904. + esac
  17905. fi
  17906. -for ac_prog in gawk mawk nawk awk
  17907. -do
  17908. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  17909. -set dummy $ac_prog; ac_word=$2
  17910. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17911. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17912. -if test "${ac_cv_prog_AWK+set}" = set; then
  17913. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17914. +# Installed binaries are usually stripped using `strip' when the user
  17915. +# run `make install-strip'. However `strip' might not be the right
  17916. +# tool to use in cross-compilation environments, therefore Automake
  17917. +# will honor the `STRIP' environment variable to overrule this program.
  17918. +if test "$cross_compiling" != no; then
  17919. + if test -n "$ac_tool_prefix"; then
  17920. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17921. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  17922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17923. +$as_echo_n "checking for $ac_word... " >&6; }
  17924. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  17925. + $as_echo_n "(cached) " >&6
  17926. else
  17927. - if test -n "$AWK"; then
  17928. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17929. + if test -n "$STRIP"; then
  17930. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17931. else
  17932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17933. for as_dir in $PATH
  17934. do
  17935. IFS=$as_save_IFS
  17936. test -z "$as_dir" && as_dir=.
  17937. - for ac_exec_ext in '' $ac_executable_extensions; do
  17938. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17939. - ac_cv_prog_AWK="$ac_prog"
  17940. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17941. + for ac_exec_ext in '' $ac_executable_extensions; do
  17942. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17943. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17944. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17945. break 2
  17946. fi
  17947. done
  17948. -done
  17949. + done
  17950. +IFS=$as_save_IFS
  17951. fi
  17952. fi
  17953. -AWK=$ac_cv_prog_AWK
  17954. -if test -n "$AWK"; then
  17955. - echo "$as_me:$LINENO: result: $AWK" >&5
  17956. -echo "${ECHO_T}$AWK" >&6
  17957. +STRIP=$ac_cv_prog_STRIP
  17958. +if test -n "$STRIP"; then
  17959. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  17960. +$as_echo "$STRIP" >&6; }
  17961. else
  17962. - echo "$as_me:$LINENO: result: no" >&5
  17963. -echo "${ECHO_T}no" >&6
  17964. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17965. +$as_echo "no" >&6; }
  17966. fi
  17967. - test -n "$AWK" && break
  17968. -done
  17969. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17970. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  17971. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  17972. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  17973. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17974. -else
  17975. - cat >conftest.make <<\_ACEOF
  17976. -all:
  17977. - @echo 'ac_maketemp="$(MAKE)"'
  17978. -_ACEOF
  17979. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17980. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  17981. -if test -n "$ac_maketemp"; then
  17982. - eval ac_cv_prog_make_${ac_make}_set=yes
  17983. -else
  17984. - eval ac_cv_prog_make_${ac_make}_set=no
  17985. fi
  17986. -rm -f conftest.make
  17987. -fi
  17988. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  17989. - echo "$as_me:$LINENO: result: yes" >&5
  17990. -echo "${ECHO_T}yes" >&6
  17991. - SET_MAKE=
  17992. +if test -z "$ac_cv_prog_STRIP"; then
  17993. + ac_ct_STRIP=$STRIP
  17994. + # Extract the first word of "strip", so it can be a program name with args.
  17995. +set dummy strip; ac_word=$2
  17996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17997. +$as_echo_n "checking for $ac_word... " >&6; }
  17998. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17999. + $as_echo_n "(cached) " >&6
  18000. else
  18001. - echo "$as_me:$LINENO: result: no" >&5
  18002. -echo "${ECHO_T}no" >&6
  18003. - SET_MAKE="MAKE=${MAKE-make}"
  18004. -fi
  18005. -
  18006. -rm -rf .tst 2>/dev/null
  18007. -mkdir .tst 2>/dev/null
  18008. -if test -d .tst; then
  18009. - am__leading_dot=.
  18010. + if test -n "$ac_ct_STRIP"; then
  18011. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18012. +else
  18013. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18014. +for as_dir in $PATH
  18015. +do
  18016. + IFS=$as_save_IFS
  18017. + test -z "$as_dir" && as_dir=.
  18018. + for ac_exec_ext in '' $ac_executable_extensions; do
  18019. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18020. + ac_cv_prog_ac_ct_STRIP="strip"
  18021. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18022. + break 2
  18023. + fi
  18024. +done
  18025. + done
  18026. +IFS=$as_save_IFS
  18027. +
  18028. +fi
  18029. +fi
  18030. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18031. +if test -n "$ac_ct_STRIP"; then
  18032. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18033. +$as_echo "$ac_ct_STRIP" >&6; }
  18034. +else
  18035. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18036. +$as_echo "no" >&6; }
  18037. +fi
  18038. +
  18039. + if test "x$ac_ct_STRIP" = x; then
  18040. + STRIP=":"
  18041. + else
  18042. + case $cross_compiling:$ac_tool_warned in
  18043. +yes:)
  18044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18045. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18046. +ac_tool_warned=yes ;;
  18047. +esac
  18048. + STRIP=$ac_ct_STRIP
  18049. + fi
  18050. +else
  18051. + STRIP="$ac_cv_prog_STRIP"
  18052. +fi
  18053. +
  18054. +fi
  18055. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  18056. +
  18057. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  18058. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  18059. +if test -z "$MKDIR_P"; then
  18060. + if test "${ac_cv_path_mkdir+set}" = set; then :
  18061. + $as_echo_n "(cached) " >&6
  18062. +else
  18063. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18064. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  18065. +do
  18066. + IFS=$as_save_IFS
  18067. + test -z "$as_dir" && as_dir=.
  18068. + for ac_prog in mkdir gmkdir; do
  18069. + for ac_exec_ext in '' $ac_executable_extensions; do
  18070. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  18071. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  18072. + 'mkdir (GNU coreutils) '* | \
  18073. + 'mkdir (coreutils) '* | \
  18074. + 'mkdir (fileutils) '4.1*)
  18075. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  18076. + break 3;;
  18077. + esac
  18078. + done
  18079. + done
  18080. + done
  18081. +IFS=$as_save_IFS
  18082. +
  18083. +fi
  18084. +
  18085. + test -d ./--version && rmdir ./--version
  18086. + if test "${ac_cv_path_mkdir+set}" = set; then
  18087. + MKDIR_P="$ac_cv_path_mkdir -p"
  18088. + else
  18089. + # As a last resort, use the slow shell script. Don't cache a
  18090. + # value for MKDIR_P within a source directory, because that will
  18091. + # break other packages using the cache if that directory is
  18092. + # removed, or if the value is a relative name.
  18093. + MKDIR_P="$ac_install_sh -d"
  18094. + fi
  18095. +fi
  18096. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  18097. +$as_echo "$MKDIR_P" >&6; }
  18098. +
  18099. +mkdir_p="$MKDIR_P"
  18100. +case $mkdir_p in
  18101. + [\\/$]* | ?:[\\/]*) ;;
  18102. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  18103. +esac
  18104. +
  18105. +for ac_prog in gawk mawk nawk awk
  18106. +do
  18107. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18108. +set dummy $ac_prog; ac_word=$2
  18109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18110. +$as_echo_n "checking for $ac_word... " >&6; }
  18111. +if test "${ac_cv_prog_AWK+set}" = set; then :
  18112. + $as_echo_n "(cached) " >&6
  18113. +else
  18114. + if test -n "$AWK"; then
  18115. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18116. +else
  18117. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18118. +for as_dir in $PATH
  18119. +do
  18120. + IFS=$as_save_IFS
  18121. + test -z "$as_dir" && as_dir=.
  18122. + for ac_exec_ext in '' $ac_executable_extensions; do
  18123. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18124. + ac_cv_prog_AWK="$ac_prog"
  18125. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18126. + break 2
  18127. + fi
  18128. +done
  18129. + done
  18130. +IFS=$as_save_IFS
  18131. +
  18132. +fi
  18133. +fi
  18134. +AWK=$ac_cv_prog_AWK
  18135. +if test -n "$AWK"; then
  18136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  18137. +$as_echo "$AWK" >&6; }
  18138. +else
  18139. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18140. +$as_echo "no" >&6; }
  18141. +fi
  18142. +
  18143. +
  18144. + test -n "$AWK" && break
  18145. +done
  18146. +
  18147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18148. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  18149. +set x ${MAKE-make}
  18150. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  18151. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  18152. + $as_echo_n "(cached) " >&6
  18153. +else
  18154. + cat >conftest.make <<\_ACEOF
  18155. +SHELL = /bin/sh
  18156. +all:
  18157. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  18158. +_ACEOF
  18159. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18160. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  18161. + *@@@%%%=?*=@@@%%%*)
  18162. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  18163. + *)
  18164. + eval ac_cv_prog_make_${ac_make}_set=no;;
  18165. +esac
  18166. +rm -f conftest.make
  18167. +fi
  18168. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  18169. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18170. +$as_echo "yes" >&6; }
  18171. + SET_MAKE=
  18172. +else
  18173. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18174. +$as_echo "no" >&6; }
  18175. + SET_MAKE="MAKE=${MAKE-make}"
  18176. +fi
  18177. +
  18178. +rm -rf .tst 2>/dev/null
  18179. +mkdir .tst 2>/dev/null
  18180. +if test -d .tst; then
  18181. + am__leading_dot=.
  18182. else
  18183. am__leading_dot=_
  18184. fi
  18185. rmdir .tst 2>/dev/null
  18186. -# test to see if srcdir already configured
  18187. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  18188. - test -f $srcdir/config.status; then
  18189. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  18190. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  18191. - { (exit 1); exit 1; }; }
  18192. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  18193. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  18194. + # is not polluted with repeated "-I."
  18195. + am__isrc=' -I$(srcdir)'
  18196. + # test to see if srcdir already configured
  18197. + if test -f $srcdir/config.status; then
  18198. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  18199. + fi
  18200. fi
  18201. # test whether we have cygpath
  18202. @@ -1895,96 +2893,6 @@
  18203. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  18204. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  18205. -
  18206. -# Installed binaries are usually stripped using `strip' when the user
  18207. -# run `make install-strip'. However `strip' might not be the right
  18208. -# tool to use in cross-compilation environments, therefore Automake
  18209. -# will honor the `STRIP' environment variable to overrule this program.
  18210. -if test "$cross_compiling" != no; then
  18211. - if test -n "$ac_tool_prefix"; then
  18212. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18213. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  18214. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18215. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18216. -if test "${ac_cv_prog_STRIP+set}" = set; then
  18217. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18218. -else
  18219. - if test -n "$STRIP"; then
  18220. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18221. -else
  18222. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18223. -for as_dir in $PATH
  18224. -do
  18225. - IFS=$as_save_IFS
  18226. - test -z "$as_dir" && as_dir=.
  18227. - for ac_exec_ext in '' $ac_executable_extensions; do
  18228. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18229. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18230. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18231. - break 2
  18232. - fi
  18233. -done
  18234. -done
  18235. -
  18236. -fi
  18237. -fi
  18238. -STRIP=$ac_cv_prog_STRIP
  18239. -if test -n "$STRIP"; then
  18240. - echo "$as_me:$LINENO: result: $STRIP" >&5
  18241. -echo "${ECHO_T}$STRIP" >&6
  18242. -else
  18243. - echo "$as_me:$LINENO: result: no" >&5
  18244. -echo "${ECHO_T}no" >&6
  18245. -fi
  18246. -
  18247. -fi
  18248. -if test -z "$ac_cv_prog_STRIP"; then
  18249. - ac_ct_STRIP=$STRIP
  18250. - # Extract the first word of "strip", so it can be a program name with args.
  18251. -set dummy strip; ac_word=$2
  18252. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18253. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18254. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  18255. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18256. -else
  18257. - if test -n "$ac_ct_STRIP"; then
  18258. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18259. -else
  18260. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18261. -for as_dir in $PATH
  18262. -do
  18263. - IFS=$as_save_IFS
  18264. - test -z "$as_dir" && as_dir=.
  18265. - for ac_exec_ext in '' $ac_executable_extensions; do
  18266. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18267. - ac_cv_prog_ac_ct_STRIP="strip"
  18268. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18269. - break 2
  18270. - fi
  18271. -done
  18272. -done
  18273. -
  18274. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  18275. -fi
  18276. -fi
  18277. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18278. -if test -n "$ac_ct_STRIP"; then
  18279. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  18280. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  18281. -else
  18282. - echo "$as_me:$LINENO: result: no" >&5
  18283. -echo "${ECHO_T}no" >&6
  18284. -fi
  18285. -
  18286. - STRIP=$ac_ct_STRIP
  18287. -else
  18288. - STRIP="$ac_cv_prog_STRIP"
  18289. -fi
  18290. -
  18291. -fi
  18292. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  18293. -
  18294. # We need awk for the "check" target. The system "awk" is bad on
  18295. # some platforms.
  18296. # Always define AMTAR for backward compatibility.
  18297. @@ -1997,20 +2905,19 @@
  18298. -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  18299. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  18300. - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  18301. -if test "${enable_maintainer_mode+set}" = set; then
  18302. - enableval="$enable_maintainer_mode"
  18303. - USE_MAINTAINER_MODE=$enableval
  18304. +
  18305. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  18306. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  18307. + # Check whether --enable-maintainer-mode was given.
  18308. +if test "${enable_maintainer_mode+set}" = set; then :
  18309. + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  18310. else
  18311. USE_MAINTAINER_MODE=no
  18312. -fi;
  18313. - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  18314. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  18315. -
  18316. +fi
  18317. -if test $USE_MAINTAINER_MODE = yes; then
  18318. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  18319. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  18320. + if test $USE_MAINTAINER_MODE = yes; then
  18321. MAINTAINER_MODE_TRUE=
  18322. MAINTAINER_MODE_FALSE='#'
  18323. else
  18324. @@ -2022,7 +2929,7 @@
  18325. - ac_config_headers="$ac_config_headers config.h"
  18326. +ac_config_headers="$ac_config_headers config.h"
  18327. # checks for progs
  18328. @@ -2034,10 +2941,10 @@
  18329. if test -n "$ac_tool_prefix"; then
  18330. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  18331. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  18332. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18333. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18334. -if test "${ac_cv_prog_CC+set}" = set; then
  18335. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18336. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18337. +$as_echo_n "checking for $ac_word... " >&6; }
  18338. +if test "${ac_cv_prog_CC+set}" = set; then :
  18339. + $as_echo_n "(cached) " >&6
  18340. else
  18341. if test -n "$CC"; then
  18342. ac_cv_prog_CC="$CC" # Let the user override the test.
  18343. @@ -2047,35 +2954,37 @@
  18344. do
  18345. IFS=$as_save_IFS
  18346. test -z "$as_dir" && as_dir=.
  18347. - for ac_exec_ext in '' $ac_executable_extensions; do
  18348. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18349. + for ac_exec_ext in '' $ac_executable_extensions; do
  18350. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18351. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  18352. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18353. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18354. break 2
  18355. fi
  18356. done
  18357. -done
  18358. + done
  18359. +IFS=$as_save_IFS
  18360. fi
  18361. fi
  18362. CC=$ac_cv_prog_CC
  18363. if test -n "$CC"; then
  18364. - echo "$as_me:$LINENO: result: $CC" >&5
  18365. -echo "${ECHO_T}$CC" >&6
  18366. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18367. +$as_echo "$CC" >&6; }
  18368. else
  18369. - echo "$as_me:$LINENO: result: no" >&5
  18370. -echo "${ECHO_T}no" >&6
  18371. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18372. +$as_echo "no" >&6; }
  18373. fi
  18374. +
  18375. fi
  18376. if test -z "$ac_cv_prog_CC"; then
  18377. ac_ct_CC=$CC
  18378. # Extract the first word of "gcc", so it can be a program name with args.
  18379. set dummy gcc; ac_word=$2
  18380. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18381. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18382. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  18383. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18384. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18385. +$as_echo_n "checking for $ac_word... " >&6; }
  18386. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  18387. + $as_echo_n "(cached) " >&6
  18388. else
  18389. if test -n "$ac_ct_CC"; then
  18390. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18391. @@ -2085,39 +2994,50 @@
  18392. do
  18393. IFS=$as_save_IFS
  18394. test -z "$as_dir" && as_dir=.
  18395. - for ac_exec_ext in '' $ac_executable_extensions; do
  18396. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18397. + for ac_exec_ext in '' $ac_executable_extensions; do
  18398. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18399. ac_cv_prog_ac_ct_CC="gcc"
  18400. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18401. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18402. break 2
  18403. fi
  18404. done
  18405. -done
  18406. + done
  18407. +IFS=$as_save_IFS
  18408. fi
  18409. fi
  18410. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18411. if test -n "$ac_ct_CC"; then
  18412. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18413. -echo "${ECHO_T}$ac_ct_CC" >&6
  18414. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18415. +$as_echo "$ac_ct_CC" >&6; }
  18416. else
  18417. - echo "$as_me:$LINENO: result: no" >&5
  18418. -echo "${ECHO_T}no" >&6
  18419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18420. +$as_echo "no" >&6; }
  18421. fi
  18422. - CC=$ac_ct_CC
  18423. + if test "x$ac_ct_CC" = x; then
  18424. + CC=""
  18425. + else
  18426. + case $cross_compiling:$ac_tool_warned in
  18427. +yes:)
  18428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18429. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18430. +ac_tool_warned=yes ;;
  18431. +esac
  18432. + CC=$ac_ct_CC
  18433. + fi
  18434. else
  18435. CC="$ac_cv_prog_CC"
  18436. fi
  18437. if test -z "$CC"; then
  18438. - if test -n "$ac_tool_prefix"; then
  18439. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  18440. + if test -n "$ac_tool_prefix"; then
  18441. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  18442. set dummy ${ac_tool_prefix}cc; ac_word=$2
  18443. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18444. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18445. -if test "${ac_cv_prog_CC+set}" = set; then
  18446. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18447. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18448. +$as_echo_n "checking for $ac_word... " >&6; }
  18449. +if test "${ac_cv_prog_CC+set}" = set; then :
  18450. + $as_echo_n "(cached) " >&6
  18451. else
  18452. if test -n "$CC"; then
  18453. ac_cv_prog_CC="$CC" # Let the user override the test.
  18454. @@ -2127,77 +3047,37 @@
  18455. do
  18456. IFS=$as_save_IFS
  18457. test -z "$as_dir" && as_dir=.
  18458. - for ac_exec_ext in '' $ac_executable_extensions; do
  18459. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18460. + for ac_exec_ext in '' $ac_executable_extensions; do
  18461. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18462. ac_cv_prog_CC="${ac_tool_prefix}cc"
  18463. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18464. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18465. break 2
  18466. fi
  18467. done
  18468. -done
  18469. + done
  18470. +IFS=$as_save_IFS
  18471. fi
  18472. fi
  18473. CC=$ac_cv_prog_CC
  18474. if test -n "$CC"; then
  18475. - echo "$as_me:$LINENO: result: $CC" >&5
  18476. -echo "${ECHO_T}$CC" >&6
  18477. -else
  18478. - echo "$as_me:$LINENO: result: no" >&5
  18479. -echo "${ECHO_T}no" >&6
  18480. -fi
  18481. -
  18482. -fi
  18483. -if test -z "$ac_cv_prog_CC"; then
  18484. - ac_ct_CC=$CC
  18485. - # Extract the first word of "cc", so it can be a program name with args.
  18486. -set dummy cc; ac_word=$2
  18487. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18488. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18489. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  18490. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18491. -else
  18492. - if test -n "$ac_ct_CC"; then
  18493. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18494. -else
  18495. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18496. -for as_dir in $PATH
  18497. -do
  18498. - IFS=$as_save_IFS
  18499. - test -z "$as_dir" && as_dir=.
  18500. - for ac_exec_ext in '' $ac_executable_extensions; do
  18501. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18502. - ac_cv_prog_ac_ct_CC="cc"
  18503. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18504. - break 2
  18505. - fi
  18506. -done
  18507. -done
  18508. -
  18509. -fi
  18510. -fi
  18511. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18512. -if test -n "$ac_ct_CC"; then
  18513. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18514. -echo "${ECHO_T}$ac_ct_CC" >&6
  18515. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18516. +$as_echo "$CC" >&6; }
  18517. else
  18518. - echo "$as_me:$LINENO: result: no" >&5
  18519. -echo "${ECHO_T}no" >&6
  18520. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18521. +$as_echo "no" >&6; }
  18522. fi
  18523. - CC=$ac_ct_CC
  18524. -else
  18525. - CC="$ac_cv_prog_CC"
  18526. -fi
  18527. + fi
  18528. fi
  18529. if test -z "$CC"; then
  18530. # Extract the first word of "cc", so it can be a program name with args.
  18531. set dummy cc; ac_word=$2
  18532. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18533. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18534. -if test "${ac_cv_prog_CC+set}" = set; then
  18535. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18537. +$as_echo_n "checking for $ac_word... " >&6; }
  18538. +if test "${ac_cv_prog_CC+set}" = set; then :
  18539. + $as_echo_n "(cached) " >&6
  18540. else
  18541. if test -n "$CC"; then
  18542. ac_cv_prog_CC="$CC" # Let the user override the test.
  18543. @@ -2208,18 +3088,19 @@
  18544. do
  18545. IFS=$as_save_IFS
  18546. test -z "$as_dir" && as_dir=.
  18547. - for ac_exec_ext in '' $ac_executable_extensions; do
  18548. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18549. + for ac_exec_ext in '' $ac_executable_extensions; do
  18550. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18551. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  18552. ac_prog_rejected=yes
  18553. continue
  18554. fi
  18555. ac_cv_prog_CC="cc"
  18556. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18557. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18558. break 2
  18559. fi
  18560. done
  18561. -done
  18562. + done
  18563. +IFS=$as_save_IFS
  18564. if test $ac_prog_rejected = yes; then
  18565. # We found a bogon in the path, so make sure we never use it.
  18566. @@ -2237,24 +3118,25 @@
  18567. fi
  18568. CC=$ac_cv_prog_CC
  18569. if test -n "$CC"; then
  18570. - echo "$as_me:$LINENO: result: $CC" >&5
  18571. -echo "${ECHO_T}$CC" >&6
  18572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18573. +$as_echo "$CC" >&6; }
  18574. else
  18575. - echo "$as_me:$LINENO: result: no" >&5
  18576. -echo "${ECHO_T}no" >&6
  18577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18578. +$as_echo "no" >&6; }
  18579. fi
  18580. +
  18581. fi
  18582. if test -z "$CC"; then
  18583. if test -n "$ac_tool_prefix"; then
  18584. - for ac_prog in cl
  18585. + for ac_prog in cl.exe
  18586. do
  18587. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18588. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18589. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18590. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18591. -if test "${ac_cv_prog_CC+set}" = set; then
  18592. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18594. +$as_echo_n "checking for $ac_word... " >&6; }
  18595. +if test "${ac_cv_prog_CC+set}" = set; then :
  18596. + $as_echo_n "(cached) " >&6
  18597. else
  18598. if test -n "$CC"; then
  18599. ac_cv_prog_CC="$CC" # Let the user override the test.
  18600. @@ -2264,39 +3146,41 @@
  18601. do
  18602. IFS=$as_save_IFS
  18603. test -z "$as_dir" && as_dir=.
  18604. - for ac_exec_ext in '' $ac_executable_extensions; do
  18605. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18606. + for ac_exec_ext in '' $ac_executable_extensions; do
  18607. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18608. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  18609. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18610. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18611. break 2
  18612. fi
  18613. done
  18614. -done
  18615. + done
  18616. +IFS=$as_save_IFS
  18617. fi
  18618. fi
  18619. CC=$ac_cv_prog_CC
  18620. if test -n "$CC"; then
  18621. - echo "$as_me:$LINENO: result: $CC" >&5
  18622. -echo "${ECHO_T}$CC" >&6
  18623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18624. +$as_echo "$CC" >&6; }
  18625. else
  18626. - echo "$as_me:$LINENO: result: no" >&5
  18627. -echo "${ECHO_T}no" >&6
  18628. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18629. +$as_echo "no" >&6; }
  18630. fi
  18631. +
  18632. test -n "$CC" && break
  18633. done
  18634. fi
  18635. if test -z "$CC"; then
  18636. ac_ct_CC=$CC
  18637. - for ac_prog in cl
  18638. + for ac_prog in cl.exe
  18639. do
  18640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18641. set dummy $ac_prog; ac_word=$2
  18642. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18643. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18644. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  18645. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18647. +$as_echo_n "checking for $ac_word... " >&6; }
  18648. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  18649. + $as_echo_n "(cached) " >&6
  18650. else
  18651. if test -n "$ac_ct_CC"; then
  18652. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18653. @@ -2306,66 +3190,78 @@
  18654. do
  18655. IFS=$as_save_IFS
  18656. test -z "$as_dir" && as_dir=.
  18657. - for ac_exec_ext in '' $ac_executable_extensions; do
  18658. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18659. + for ac_exec_ext in '' $ac_executable_extensions; do
  18660. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18661. ac_cv_prog_ac_ct_CC="$ac_prog"
  18662. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18663. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18664. break 2
  18665. fi
  18666. done
  18667. -done
  18668. + done
  18669. +IFS=$as_save_IFS
  18670. fi
  18671. fi
  18672. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18673. if test -n "$ac_ct_CC"; then
  18674. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18675. -echo "${ECHO_T}$ac_ct_CC" >&6
  18676. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18677. +$as_echo "$ac_ct_CC" >&6; }
  18678. else
  18679. - echo "$as_me:$LINENO: result: no" >&5
  18680. -echo "${ECHO_T}no" >&6
  18681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18682. +$as_echo "no" >&6; }
  18683. fi
  18684. +
  18685. test -n "$ac_ct_CC" && break
  18686. done
  18687. - CC=$ac_ct_CC
  18688. + if test "x$ac_ct_CC" = x; then
  18689. + CC=""
  18690. + else
  18691. + case $cross_compiling:$ac_tool_warned in
  18692. +yes:)
  18693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18694. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18695. +ac_tool_warned=yes ;;
  18696. +esac
  18697. + CC=$ac_ct_CC
  18698. + fi
  18699. fi
  18700. fi
  18701. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  18702. -See \`config.log' for more details." >&5
  18703. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  18704. -See \`config.log' for more details." >&2;}
  18705. - { (exit 1); exit 1; }; }
  18706. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18707. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18708. +as_fn_error "no acceptable C compiler found in \$PATH
  18709. +See \`config.log' for more details." "$LINENO" 5; }
  18710. # Provide some information about the compiler.
  18711. -echo "$as_me:$LINENO:" \
  18712. - "checking for C compiler version" >&5
  18713. -ac_compiler=`set X $ac_compile; echo $2`
  18714. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  18715. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  18716. - ac_status=$?
  18717. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. - (exit $ac_status); }
  18719. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  18720. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  18721. - ac_status=$?
  18722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18723. - (exit $ac_status); }
  18724. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  18725. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  18726. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  18727. +set X $ac_compile
  18728. +ac_compiler=$2
  18729. +for ac_option in --version -v -V -qversion; do
  18730. + { { ac_try="$ac_compiler $ac_option >&5"
  18731. +case "(($ac_try" in
  18732. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18733. + *) ac_try_echo=$ac_try;;
  18734. +esac
  18735. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18736. +$as_echo "$ac_try_echo"; } >&5
  18737. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  18738. ac_status=$?
  18739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18740. - (exit $ac_status); }
  18741. + if test -s conftest.err; then
  18742. + sed '10a\
  18743. +... rest of stderr output deleted ...
  18744. + 10q' conftest.err >conftest.er1
  18745. + cat conftest.er1 >&5
  18746. + fi
  18747. + rm -f conftest.er1 conftest.err
  18748. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18749. + test $ac_status = 0; }
  18750. +done
  18751. -cat >conftest.$ac_ext <<_ACEOF
  18752. -/* confdefs.h. */
  18753. -_ACEOF
  18754. -cat confdefs.h >>conftest.$ac_ext
  18755. -cat >>conftest.$ac_ext <<_ACEOF
  18756. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18757. /* end confdefs.h. */
  18758. int
  18759. @@ -2377,112 +3273,109 @@
  18760. }
  18761. _ACEOF
  18762. ac_clean_files_save=$ac_clean_files
  18763. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  18764. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  18765. # Try to create an executable without -o first, disregard a.out.
  18766. # It will help us diagnose broken compilers, and finding out an intuition
  18767. # of exeext.
  18768. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  18769. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  18770. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18771. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  18772. - (eval $ac_link_default) 2>&5
  18773. - ac_status=$?
  18774. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18775. - (exit $ac_status); }; then
  18776. - # Find the output, starting from the most likely. This scheme is
  18777. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  18778. -# resort.
  18779. -
  18780. -# Be careful to initialize this variable, since it used to be cached.
  18781. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  18782. -ac_cv_exeext=
  18783. -# b.out is created by i960 compilers.
  18784. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  18785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  18786. +$as_echo_n "checking whether the C compiler works... " >&6; }
  18787. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18788. +
  18789. +# The possible output files:
  18790. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  18791. +
  18792. +ac_rmfiles=
  18793. +for ac_file in $ac_files
  18794. +do
  18795. + case $ac_file in
  18796. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18797. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  18798. + esac
  18799. +done
  18800. +rm -f $ac_rmfiles
  18801. +
  18802. +if { { ac_try="$ac_link_default"
  18803. +case "(($ac_try" in
  18804. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18805. + *) ac_try_echo=$ac_try;;
  18806. +esac
  18807. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18808. +$as_echo "$ac_try_echo"; } >&5
  18809. + (eval "$ac_link_default") 2>&5
  18810. + ac_status=$?
  18811. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18812. + test $ac_status = 0; }; then :
  18813. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  18814. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  18815. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  18816. +# so that the user can short-circuit this test for compilers unknown to
  18817. +# Autoconf.
  18818. +for ac_file in $ac_files ''
  18819. do
  18820. test -f "$ac_file" || continue
  18821. case $ac_file in
  18822. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  18823. - ;;
  18824. - conftest.$ac_ext )
  18825. - # This is the source file.
  18826. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  18827. ;;
  18828. [ab].out )
  18829. # We found the default executable, but exeext='' is most
  18830. # certainly right.
  18831. break;;
  18832. *.* )
  18833. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18834. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  18835. - # but it would be cool to find out if it's true. Does anybody
  18836. - # maintain Libtool? --akim.
  18837. - export ac_cv_exeext
  18838. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18839. + then :; else
  18840. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18841. + fi
  18842. + # We set ac_cv_exeext here because the later test for it is not
  18843. + # safe: cross compilers may not add the suffix if given an `-o'
  18844. + # argument, so we may need to know it at that point already.
  18845. + # Even if this section looks crufty: it has the advantage of
  18846. + # actually working.
  18847. break;;
  18848. * )
  18849. break;;
  18850. esac
  18851. done
  18852. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  18853. +
  18854. else
  18855. - echo "$as_me: failed program was:" >&5
  18856. + ac_file=''
  18857. +fi
  18858. +if test -z "$ac_file"; then :
  18859. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18860. +$as_echo "no" >&6; }
  18861. +$as_echo "$as_me: failed program was:" >&5
  18862. sed 's/^/| /' conftest.$ac_ext >&5
  18863. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  18864. -See \`config.log' for more details." >&5
  18865. -echo "$as_me: error: C compiler cannot create executables
  18866. -See \`config.log' for more details." >&2;}
  18867. - { (exit 77); exit 77; }; }
  18868. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18869. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18870. +{ as_fn_set_status 77
  18871. +as_fn_error "C compiler cannot create executables
  18872. +See \`config.log' for more details." "$LINENO" 5; }; }
  18873. +else
  18874. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18875. +$as_echo "yes" >&6; }
  18876. fi
  18877. -
  18878. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  18879. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  18880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  18881. +$as_echo "$ac_file" >&6; }
  18882. ac_exeext=$ac_cv_exeext
  18883. -echo "$as_me:$LINENO: result: $ac_file" >&5
  18884. -echo "${ECHO_T}$ac_file" >&6
  18885. -
  18886. -# Check the compiler produces executables we can run. If not, either
  18887. -# the compiler is broken, or we cross compile.
  18888. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  18889. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  18890. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  18891. -# If not cross compiling, check that we can run a simple program.
  18892. -if test "$cross_compiling" != yes; then
  18893. - if { ac_try='./$ac_file'
  18894. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18895. - (eval $ac_try) 2>&5
  18896. - ac_status=$?
  18897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18898. - (exit $ac_status); }; }; then
  18899. - cross_compiling=no
  18900. - else
  18901. - if test "$cross_compiling" = maybe; then
  18902. - cross_compiling=yes
  18903. - else
  18904. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  18905. -If you meant to cross compile, use \`--host'.
  18906. -See \`config.log' for more details." >&5
  18907. -echo "$as_me: error: cannot run C compiled programs.
  18908. -If you meant to cross compile, use \`--host'.
  18909. -See \`config.log' for more details." >&2;}
  18910. - { (exit 1); exit 1; }; }
  18911. - fi
  18912. - fi
  18913. -fi
  18914. -echo "$as_me:$LINENO: result: yes" >&5
  18915. -echo "${ECHO_T}yes" >&6
  18916. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  18917. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  18918. ac_clean_files=$ac_clean_files_save
  18919. -# Check the compiler produces executables we can run. If not, either
  18920. -# the compiler is broken, or we cross compile.
  18921. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  18922. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  18923. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  18924. -echo "${ECHO_T}$cross_compiling" >&6
  18925. -
  18926. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  18927. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  18928. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18929. - (eval $ac_link) 2>&5
  18930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  18931. +$as_echo_n "checking for suffix of executables... " >&6; }
  18932. +if { { ac_try="$ac_link"
  18933. +case "(($ac_try" in
  18934. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18935. + *) ac_try_echo=$ac_try;;
  18936. +esac
  18937. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18938. +$as_echo "$ac_try_echo"; } >&5
  18939. + (eval "$ac_link") 2>&5
  18940. ac_status=$?
  18941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18942. - (exit $ac_status); }; then
  18943. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18944. + test $ac_status = 0; }; then :
  18945. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  18946. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  18947. # work properly (i.e., refer to `conftest.exe'), while it won't with
  18948. @@ -2490,38 +3383,90 @@
  18949. for ac_file in conftest.exe conftest conftest.*; do
  18950. test -f "$ac_file" || continue
  18951. case $ac_file in
  18952. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  18953. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18954. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18955. - export ac_cv_exeext
  18956. break;;
  18957. * ) break;;
  18958. esac
  18959. done
  18960. else
  18961. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  18962. -See \`config.log' for more details." >&5
  18963. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  18964. -See \`config.log' for more details." >&2;}
  18965. - { (exit 1); exit 1; }; }
  18966. -fi
  18967. -
  18968. -rm -f conftest$ac_cv_exeext
  18969. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  18970. -echo "${ECHO_T}$ac_cv_exeext" >&6
  18971. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18972. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18973. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  18974. +See \`config.log' for more details." "$LINENO" 5; }
  18975. +fi
  18976. +rm -f conftest conftest$ac_cv_exeext
  18977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  18978. +$as_echo "$ac_cv_exeext" >&6; }
  18979. rm -f conftest.$ac_ext
  18980. EXEEXT=$ac_cv_exeext
  18981. ac_exeext=$EXEEXT
  18982. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  18983. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  18984. -if test "${ac_cv_objext+set}" = set; then
  18985. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18986. -else
  18987. - cat >conftest.$ac_ext <<_ACEOF
  18988. -/* confdefs.h. */
  18989. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18990. +/* end confdefs.h. */
  18991. +#include <stdio.h>
  18992. +int
  18993. +main ()
  18994. +{
  18995. +FILE *f = fopen ("conftest.out", "w");
  18996. + return ferror (f) || fclose (f) != 0;
  18997. +
  18998. + ;
  18999. + return 0;
  19000. +}
  19001. _ACEOF
  19002. -cat confdefs.h >>conftest.$ac_ext
  19003. -cat >>conftest.$ac_ext <<_ACEOF
  19004. +ac_clean_files="$ac_clean_files conftest.out"
  19005. +# Check that the compiler produces executables we can run. If not, either
  19006. +# the compiler is broken, or we cross compile.
  19007. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  19008. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  19009. +if test "$cross_compiling" != yes; then
  19010. + { { ac_try="$ac_link"
  19011. +case "(($ac_try" in
  19012. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19013. + *) ac_try_echo=$ac_try;;
  19014. +esac
  19015. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19016. +$as_echo "$ac_try_echo"; } >&5
  19017. + (eval "$ac_link") 2>&5
  19018. + ac_status=$?
  19019. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19020. + test $ac_status = 0; }
  19021. + if { ac_try='./conftest$ac_cv_exeext'
  19022. + { { case "(($ac_try" in
  19023. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19024. + *) ac_try_echo=$ac_try;;
  19025. +esac
  19026. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19027. +$as_echo "$ac_try_echo"; } >&5
  19028. + (eval "$ac_try") 2>&5
  19029. + ac_status=$?
  19030. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19031. + test $ac_status = 0; }; }; then
  19032. + cross_compiling=no
  19033. + else
  19034. + if test "$cross_compiling" = maybe; then
  19035. + cross_compiling=yes
  19036. + else
  19037. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19038. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19039. +as_fn_error "cannot run C compiled programs.
  19040. +If you meant to cross compile, use \`--host'.
  19041. +See \`config.log' for more details." "$LINENO" 5; }
  19042. + fi
  19043. + fi
  19044. +fi
  19045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  19046. +$as_echo "$cross_compiling" >&6; }
  19047. +
  19048. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  19049. +ac_clean_files=$ac_clean_files_save
  19050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  19051. +$as_echo_n "checking for suffix of object files... " >&6; }
  19052. +if test "${ac_cv_objext+set}" = set; then :
  19053. + $as_echo_n "(cached) " >&6
  19054. +else
  19055. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19056. /* end confdefs.h. */
  19057. int
  19058. @@ -2533,45 +3478,46 @@
  19059. }
  19060. _ACEOF
  19061. rm -f conftest.o conftest.obj
  19062. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19063. - (eval $ac_compile) 2>&5
  19064. - ac_status=$?
  19065. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19066. - (exit $ac_status); }; then
  19067. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  19068. +if { { ac_try="$ac_compile"
  19069. +case "(($ac_try" in
  19070. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19071. + *) ac_try_echo=$ac_try;;
  19072. +esac
  19073. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19074. +$as_echo "$ac_try_echo"; } >&5
  19075. + (eval "$ac_compile") 2>&5
  19076. + ac_status=$?
  19077. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19078. + test $ac_status = 0; }; then :
  19079. + for ac_file in conftest.o conftest.obj conftest.*; do
  19080. + test -f "$ac_file" || continue;
  19081. case $ac_file in
  19082. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  19083. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  19084. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  19085. break;;
  19086. esac
  19087. done
  19088. else
  19089. - echo "$as_me: failed program was:" >&5
  19090. + $as_echo "$as_me: failed program was:" >&5
  19091. sed 's/^/| /' conftest.$ac_ext >&5
  19092. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  19093. -See \`config.log' for more details." >&5
  19094. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  19095. -See \`config.log' for more details." >&2;}
  19096. - { (exit 1); exit 1; }; }
  19097. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19098. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19099. +as_fn_error "cannot compute suffix of object files: cannot compile
  19100. +See \`config.log' for more details." "$LINENO" 5; }
  19101. fi
  19102. -
  19103. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  19104. fi
  19105. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  19106. -echo "${ECHO_T}$ac_cv_objext" >&6
  19107. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  19108. +$as_echo "$ac_cv_objext" >&6; }
  19109. OBJEXT=$ac_cv_objext
  19110. ac_objext=$OBJEXT
  19111. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  19112. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  19113. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  19114. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  19116. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  19117. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  19118. + $as_echo_n "(cached) " >&6
  19119. else
  19120. - cat >conftest.$ac_ext <<_ACEOF
  19121. -/* confdefs.h. */
  19122. -_ACEOF
  19123. -cat confdefs.h >>conftest.$ac_ext
  19124. -cat >>conftest.$ac_ext <<_ACEOF
  19125. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19126. /* end confdefs.h. */
  19127. int
  19128. @@ -2585,54 +3531,34 @@
  19129. return 0;
  19130. }
  19131. _ACEOF
  19132. -rm -f conftest.$ac_objext
  19133. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19134. - (eval $ac_compile) 2>conftest.er1
  19135. - ac_status=$?
  19136. - grep -v '^ *+' conftest.er1 >conftest.err
  19137. - rm -f conftest.er1
  19138. - cat conftest.err >&5
  19139. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19140. - (exit $ac_status); } &&
  19141. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19142. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19143. - (eval $ac_try) 2>&5
  19144. - ac_status=$?
  19145. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19146. - (exit $ac_status); }; } &&
  19147. - { ac_try='test -s conftest.$ac_objext'
  19148. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19149. - (eval $ac_try) 2>&5
  19150. - ac_status=$?
  19151. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19152. - (exit $ac_status); }; }; then
  19153. +if ac_fn_c_try_compile "$LINENO"; then :
  19154. ac_compiler_gnu=yes
  19155. else
  19156. - echo "$as_me: failed program was:" >&5
  19157. -sed 's/^/| /' conftest.$ac_ext >&5
  19158. -
  19159. -ac_compiler_gnu=no
  19160. + ac_compiler_gnu=no
  19161. fi
  19162. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19163. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19164. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  19165. fi
  19166. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  19167. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  19168. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  19169. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  19170. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  19171. +if test $ac_compiler_gnu = yes; then
  19172. + GCC=yes
  19173. +else
  19174. + GCC=
  19175. +fi
  19176. ac_test_CFLAGS=${CFLAGS+set}
  19177. ac_save_CFLAGS=$CFLAGS
  19178. -CFLAGS="-g"
  19179. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  19180. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  19181. -if test "${ac_cv_prog_cc_g+set}" = set; then
  19182. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19183. -else
  19184. - cat >conftest.$ac_ext <<_ACEOF
  19185. -/* confdefs.h. */
  19186. -_ACEOF
  19187. -cat confdefs.h >>conftest.$ac_ext
  19188. -cat >>conftest.$ac_ext <<_ACEOF
  19189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  19190. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  19191. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  19192. + $as_echo_n "(cached) " >&6
  19193. +else
  19194. + ac_save_c_werror_flag=$ac_c_werror_flag
  19195. + ac_c_werror_flag=yes
  19196. + ac_cv_prog_cc_g=no
  19197. + CFLAGS="-g"
  19198. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19199. /* end confdefs.h. */
  19200. int
  19201. @@ -2643,38 +3569,49 @@
  19202. return 0;
  19203. }
  19204. _ACEOF
  19205. -rm -f conftest.$ac_objext
  19206. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19207. - (eval $ac_compile) 2>conftest.er1
  19208. - ac_status=$?
  19209. - grep -v '^ *+' conftest.er1 >conftest.err
  19210. - rm -f conftest.er1
  19211. - cat conftest.err >&5
  19212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19213. - (exit $ac_status); } &&
  19214. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19215. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19216. - (eval $ac_try) 2>&5
  19217. - ac_status=$?
  19218. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19219. - (exit $ac_status); }; } &&
  19220. - { ac_try='test -s conftest.$ac_objext'
  19221. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19222. - (eval $ac_try) 2>&5
  19223. - ac_status=$?
  19224. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19225. - (exit $ac_status); }; }; then
  19226. +if ac_fn_c_try_compile "$LINENO"; then :
  19227. ac_cv_prog_cc_g=yes
  19228. else
  19229. - echo "$as_me: failed program was:" >&5
  19230. -sed 's/^/| /' conftest.$ac_ext >&5
  19231. + CFLAGS=""
  19232. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19233. +/* end confdefs.h. */
  19234. +
  19235. +int
  19236. +main ()
  19237. +{
  19238. +
  19239. + ;
  19240. + return 0;
  19241. +}
  19242. +_ACEOF
  19243. +if ac_fn_c_try_compile "$LINENO"; then :
  19244. +
  19245. +else
  19246. + ac_c_werror_flag=$ac_save_c_werror_flag
  19247. + CFLAGS="-g"
  19248. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19249. +/* end confdefs.h. */
  19250. +
  19251. +int
  19252. +main ()
  19253. +{
  19254. -ac_cv_prog_cc_g=no
  19255. + ;
  19256. + return 0;
  19257. +}
  19258. +_ACEOF
  19259. +if ac_fn_c_try_compile "$LINENO"; then :
  19260. + ac_cv_prog_cc_g=yes
  19261. +fi
  19262. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19263. +fi
  19264. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19265. fi
  19266. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19267. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19268. + ac_c_werror_flag=$ac_save_c_werror_flag
  19269. fi
  19270. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  19271. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  19272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  19273. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  19274. if test "$ac_test_CFLAGS" = set; then
  19275. CFLAGS=$ac_save_CFLAGS
  19276. elif test $ac_cv_prog_cc_g = yes; then
  19277. @@ -2690,18 +3627,14 @@
  19278. CFLAGS=
  19279. fi
  19280. fi
  19281. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  19282. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  19283. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  19284. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  19286. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  19287. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  19288. + $as_echo_n "(cached) " >&6
  19289. else
  19290. - ac_cv_prog_cc_stdc=no
  19291. + ac_cv_prog_cc_c89=no
  19292. ac_save_CC=$CC
  19293. -cat >conftest.$ac_ext <<_ACEOF
  19294. -/* confdefs.h. */
  19295. -_ACEOF
  19296. -cat confdefs.h >>conftest.$ac_ext
  19297. -cat >>conftest.$ac_ext <<_ACEOF
  19298. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19299. /* end confdefs.h. */
  19300. #include <stdarg.h>
  19301. #include <stdio.h>
  19302. @@ -2729,12 +3662,17 @@
  19303. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  19304. function prototypes and stuff, but not '\xHH' hex character constants.
  19305. These don't provoke an error unfortunately, instead are silently treated
  19306. - as 'x'. The following induces an error, until -std1 is added to get
  19307. + as 'x'. The following induces an error, until -std is added to get
  19308. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  19309. array size at least. It's necessary to write '\x00'==0 to get something
  19310. - that's true only with -std1. */
  19311. + that's true only with -std. */
  19312. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  19313. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  19314. + inside strings and character constants. */
  19315. +#define FOO(x) 'x'
  19316. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  19317. +
  19318. int test (int i, double x);
  19319. struct s1 {int (*f) (int a);};
  19320. struct s2 {int (*f) (double a);};
  19321. @@ -2749,201 +3687,37 @@
  19322. return 0;
  19323. }
  19324. _ACEOF
  19325. -# Don't try gcc -ansi; that turns off useful extensions and
  19326. -# breaks some systems' header files.
  19327. -# AIX -qlanglvl=ansi
  19328. -# Ultrix and OSF/1 -std1
  19329. -# HP-UX 10.20 and later -Ae
  19330. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  19331. -# SVR4 -Xc -D__EXTENSIONS__
  19332. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19333. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  19334. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19335. do
  19336. CC="$ac_save_CC $ac_arg"
  19337. - rm -f conftest.$ac_objext
  19338. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19339. - (eval $ac_compile) 2>conftest.er1
  19340. - ac_status=$?
  19341. - grep -v '^ *+' conftest.er1 >conftest.err
  19342. - rm -f conftest.er1
  19343. - cat conftest.err >&5
  19344. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19345. - (exit $ac_status); } &&
  19346. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19347. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19348. - (eval $ac_try) 2>&5
  19349. - ac_status=$?
  19350. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19351. - (exit $ac_status); }; } &&
  19352. - { ac_try='test -s conftest.$ac_objext'
  19353. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19354. - (eval $ac_try) 2>&5
  19355. - ac_status=$?
  19356. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19357. - (exit $ac_status); }; }; then
  19358. - ac_cv_prog_cc_stdc=$ac_arg
  19359. -break
  19360. -else
  19361. - echo "$as_me: failed program was:" >&5
  19362. -sed 's/^/| /' conftest.$ac_ext >&5
  19363. -
  19364. + if ac_fn_c_try_compile "$LINENO"; then :
  19365. + ac_cv_prog_cc_c89=$ac_arg
  19366. fi
  19367. -rm -f conftest.err conftest.$ac_objext
  19368. +rm -f core conftest.err conftest.$ac_objext
  19369. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  19370. done
  19371. -rm -f conftest.$ac_ext conftest.$ac_objext
  19372. +rm -f conftest.$ac_ext
  19373. CC=$ac_save_CC
  19374. fi
  19375. -
  19376. -case "x$ac_cv_prog_cc_stdc" in
  19377. - x|xno)
  19378. - echo "$as_me:$LINENO: result: none needed" >&5
  19379. -echo "${ECHO_T}none needed" >&6 ;;
  19380. +# AC_CACHE_VAL
  19381. +case "x$ac_cv_prog_cc_c89" in
  19382. + x)
  19383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  19384. +$as_echo "none needed" >&6; } ;;
  19385. + xno)
  19386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  19387. +$as_echo "unsupported" >&6; } ;;
  19388. *)
  19389. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  19390. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  19391. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  19392. + CC="$CC $ac_cv_prog_cc_c89"
  19393. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  19394. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  19395. esac
  19396. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  19397. -# Some people use a C++ compiler to compile C. Since we use `exit',
  19398. -# in C++ we need to declare it. In case someone uses the same compiler
  19399. -# for both compiling C and C++ we need to have the C++ compiler decide
  19400. -# the declaration of exit, since it's the most demanding environment.
  19401. -cat >conftest.$ac_ext <<_ACEOF
  19402. -#ifndef __cplusplus
  19403. - choke me
  19404. -#endif
  19405. -_ACEOF
  19406. -rm -f conftest.$ac_objext
  19407. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19408. - (eval $ac_compile) 2>conftest.er1
  19409. - ac_status=$?
  19410. - grep -v '^ *+' conftest.er1 >conftest.err
  19411. - rm -f conftest.er1
  19412. - cat conftest.err >&5
  19413. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19414. - (exit $ac_status); } &&
  19415. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19416. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19417. - (eval $ac_try) 2>&5
  19418. - ac_status=$?
  19419. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19420. - (exit $ac_status); }; } &&
  19421. - { ac_try='test -s conftest.$ac_objext'
  19422. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19423. - (eval $ac_try) 2>&5
  19424. - ac_status=$?
  19425. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19426. - (exit $ac_status); }; }; then
  19427. - for ac_declaration in \
  19428. - '' \
  19429. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  19430. - 'extern "C" void std::exit (int); using std::exit;' \
  19431. - 'extern "C" void exit (int) throw ();' \
  19432. - 'extern "C" void exit (int);' \
  19433. - 'void exit (int);'
  19434. -do
  19435. - cat >conftest.$ac_ext <<_ACEOF
  19436. -/* confdefs.h. */
  19437. -_ACEOF
  19438. -cat confdefs.h >>conftest.$ac_ext
  19439. -cat >>conftest.$ac_ext <<_ACEOF
  19440. -/* end confdefs.h. */
  19441. -$ac_declaration
  19442. -#include <stdlib.h>
  19443. -int
  19444. -main ()
  19445. -{
  19446. -exit (42);
  19447. - ;
  19448. - return 0;
  19449. -}
  19450. -_ACEOF
  19451. -rm -f conftest.$ac_objext
  19452. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19453. - (eval $ac_compile) 2>conftest.er1
  19454. - ac_status=$?
  19455. - grep -v '^ *+' conftest.er1 >conftest.err
  19456. - rm -f conftest.er1
  19457. - cat conftest.err >&5
  19458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19459. - (exit $ac_status); } &&
  19460. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19461. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19462. - (eval $ac_try) 2>&5
  19463. - ac_status=$?
  19464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19465. - (exit $ac_status); }; } &&
  19466. - { ac_try='test -s conftest.$ac_objext'
  19467. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19468. - (eval $ac_try) 2>&5
  19469. - ac_status=$?
  19470. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19471. - (exit $ac_status); }; }; then
  19472. - :
  19473. -else
  19474. - echo "$as_me: failed program was:" >&5
  19475. -sed 's/^/| /' conftest.$ac_ext >&5
  19476. -
  19477. -continue
  19478. -fi
  19479. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19480. - cat >conftest.$ac_ext <<_ACEOF
  19481. -/* confdefs.h. */
  19482. -_ACEOF
  19483. -cat confdefs.h >>conftest.$ac_ext
  19484. -cat >>conftest.$ac_ext <<_ACEOF
  19485. -/* end confdefs.h. */
  19486. -$ac_declaration
  19487. -int
  19488. -main ()
  19489. -{
  19490. -exit (42);
  19491. - ;
  19492. - return 0;
  19493. -}
  19494. -_ACEOF
  19495. -rm -f conftest.$ac_objext
  19496. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19497. - (eval $ac_compile) 2>conftest.er1
  19498. - ac_status=$?
  19499. - grep -v '^ *+' conftest.er1 >conftest.err
  19500. - rm -f conftest.er1
  19501. - cat conftest.err >&5
  19502. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19503. - (exit $ac_status); } &&
  19504. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19505. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19506. - (eval $ac_try) 2>&5
  19507. - ac_status=$?
  19508. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19509. - (exit $ac_status); }; } &&
  19510. - { ac_try='test -s conftest.$ac_objext'
  19511. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19512. - (eval $ac_try) 2>&5
  19513. - ac_status=$?
  19514. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19515. - (exit $ac_status); }; }; then
  19516. - break
  19517. -else
  19518. - echo "$as_me: failed program was:" >&5
  19519. -sed 's/^/| /' conftest.$ac_ext >&5
  19520. -
  19521. -fi
  19522. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19523. -done
  19524. -rm -f conftest*
  19525. -if test -n "$ac_declaration"; then
  19526. - echo '#ifdef __cplusplus' >>confdefs.h
  19527. - echo $ac_declaration >>confdefs.h
  19528. - echo '#endif' >>confdefs.h
  19529. fi
  19530. -else
  19531. - echo "$as_me: failed program was:" >&5
  19532. -sed 's/^/| /' conftest.$ac_ext >&5
  19533. -
  19534. -fi
  19535. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19536. ac_ext=c
  19537. ac_cpp='$CPP $CPPFLAGS'
  19538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19539. @@ -2951,60 +3725,58 @@
  19540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19541. DEPDIR="${am__leading_dot}deps"
  19542. - ac_config_commands="$ac_config_commands depfiles"
  19543. +ac_config_commands="$ac_config_commands depfiles"
  19544. am_make=${MAKE-make}
  19545. cat > confinc << 'END'
  19546. am__doit:
  19547. - @echo done
  19548. + @echo this is the am__doit target
  19549. .PHONY: am__doit
  19550. END
  19551. # If we don't find an include directive, just comment out the code.
  19552. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  19553. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  19554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  19555. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  19556. am__include="#"
  19557. am__quote=
  19558. _am_result=none
  19559. # First try GNU make style include.
  19560. echo "include confinc" > confmf
  19561. -# We grep out `Entering directory' and `Leaving directory'
  19562. -# messages which can occur if `w' ends up in MAKEFLAGS.
  19563. -# In particular we don't look at `^make:' because GNU make might
  19564. -# be invoked under some other name (usually "gmake"), in which
  19565. -# case it prints its new name instead of `make'.
  19566. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  19567. - am__include=include
  19568. - am__quote=
  19569. - _am_result=GNU
  19570. -fi
  19571. +# Ignore all kinds of additional output from `make'.
  19572. +case `$am_make -s -f confmf 2> /dev/null` in #(
  19573. +*the\ am__doit\ target*)
  19574. + am__include=include
  19575. + am__quote=
  19576. + _am_result=GNU
  19577. + ;;
  19578. +esac
  19579. # Now try BSD make style include.
  19580. if test "$am__include" = "#"; then
  19581. echo '.include "confinc"' > confmf
  19582. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  19583. - am__include=.include
  19584. - am__quote="\""
  19585. - _am_result=BSD
  19586. - fi
  19587. + case `$am_make -s -f confmf 2> /dev/null` in #(
  19588. + *the\ am__doit\ target*)
  19589. + am__include=.include
  19590. + am__quote="\""
  19591. + _am_result=BSD
  19592. + ;;
  19593. + esac
  19594. fi
  19595. -echo "$as_me:$LINENO: result: $_am_result" >&5
  19596. -echo "${ECHO_T}$_am_result" >&6
  19597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  19598. +$as_echo "$_am_result" >&6; }
  19599. rm -f confinc confmf
  19600. -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  19601. -if test "${enable_dependency_tracking+set}" = set; then
  19602. - enableval="$enable_dependency_tracking"
  19603. +# Check whether --enable-dependency-tracking was given.
  19604. +if test "${enable_dependency_tracking+set}" = set; then :
  19605. + enableval=$enable_dependency_tracking;
  19606. +fi
  19607. -fi;
  19608. if test "x$enable_dependency_tracking" != xno; then
  19609. am_depcomp="$ac_aux_dir/depcomp"
  19610. AMDEPBACKSLASH='\'
  19611. fi
  19612. -
  19613. -
  19614. -if test "x$enable_dependency_tracking" != xno; then
  19615. + if test "x$enable_dependency_tracking" != xno; then
  19616. AMDEP_TRUE=
  19617. AMDEP_FALSE='#'
  19618. else
  19619. @@ -3014,13 +3786,12 @@
  19620. -
  19621. depcc="$CC" am_compiler_list=
  19622. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  19623. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  19624. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  19625. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  19627. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  19628. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  19629. + $as_echo_n "(cached) " >&6
  19630. else
  19631. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  19632. # We make a subdir and do the tests there. Otherwise we can end up
  19633. @@ -3045,6 +3816,11 @@
  19634. if test "$am_compiler_list" = ""; then
  19635. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19636. fi
  19637. + am__universal=false
  19638. + case " $depcc " in #(
  19639. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  19640. + esac
  19641. +
  19642. for depmode in $am_compiler_list; do
  19643. # Setup a source with many dependencies, because some compilers
  19644. # like to wrap large dependency lists on column 80 (with \), and
  19645. @@ -3062,7 +3838,17 @@
  19646. done
  19647. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  19648. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19649. + # mode. It turns out that the SunPro C++ compiler does not properly
  19650. + # handle `-M -o', and we need to detect this. Also, some Intel
  19651. + # versions had trouble with output in subdirs
  19652. + am__obj=sub/conftest.${OBJEXT-o}
  19653. + am__minus_obj="-o $am__obj"
  19654. case $depmode in
  19655. + gcc)
  19656. + # This depmode causes a compiler race in universal mode.
  19657. + test "$am__universal" = false || continue
  19658. + ;;
  19659. nosideeffect)
  19660. # after this tag, mechanisms are not by side-effect, so they'll
  19661. # only be used when explicitly requested
  19662. @@ -3072,18 +3858,23 @@
  19663. break
  19664. fi
  19665. ;;
  19666. + msvisualcpp | msvcmsys)
  19667. + # This compiler won't grok `-c -o', but also, the minuso test has
  19668. + # not run yet. These depmodes are late enough in the game, and
  19669. + # so weak that their functioning should not be impacted.
  19670. + am__obj=conftest.${OBJEXT-o}
  19671. + am__minus_obj=
  19672. + ;;
  19673. none) break ;;
  19674. esac
  19675. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19676. - # mode. It turns out that the SunPro C++ compiler does not properly
  19677. - # handle `-M -o', and we need to detect this.
  19678. if depmode=$depmode \
  19679. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  19680. + source=sub/conftest.c object=$am__obj \
  19681. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19682. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  19683. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  19684. >/dev/null 2>conftest.err &&
  19685. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19686. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19687. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  19688. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19689. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19690. # icc doesn't choke on unknown options, it will just issue warnings
  19691. # or remarks (even with -Werror). So we grep stderr for any message
  19692. @@ -3107,13 +3898,11 @@
  19693. fi
  19694. fi
  19695. -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  19696. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  19697. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  19698. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  19699. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  19700. -
  19701. -
  19702. -if
  19703. + if
  19704. test "x$enable_dependency_tracking" != xno \
  19705. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  19706. am__fastdepCC_TRUE=
  19707. @@ -3124,217 +3913,413 @@
  19708. fi
  19709. -# Check whether --enable-shared or --disable-shared was given.
  19710. -if test "${enable_shared+set}" = set; then
  19711. - enableval="$enable_shared"
  19712. - p=${PACKAGE-default}
  19713. - case $enableval in
  19714. - yes) enable_shared=yes ;;
  19715. - no) enable_shared=no ;;
  19716. - *)
  19717. - enable_shared=no
  19718. - # Look at the argument we got. We use all the common list separators.
  19719. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19720. - for pkg in $enableval; do
  19721. - IFS="$lt_save_ifs"
  19722. - if test "X$pkg" = "X$p"; then
  19723. - enable_shared=yes
  19724. - fi
  19725. - done
  19726. - IFS="$lt_save_ifs"
  19727. - ;;
  19728. - esac
  19729. -else
  19730. - enable_shared=yes
  19731. -fi;
  19732. +case `pwd` in
  19733. + *\ * | *\ *)
  19734. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19735. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19736. +esac
  19737. +
  19738. +
  19739. +
  19740. +macro_version='2.2.6b'
  19741. +macro_revision='1.3017'
  19742. +
  19743. +
  19744. +
  19745. +
  19746. +
  19747. +
  19748. +
  19749. +
  19750. -# Check whether --enable-static or --disable-static was given.
  19751. -if test "${enable_static+set}" = set; then
  19752. - enableval="$enable_static"
  19753. - p=${PACKAGE-default}
  19754. - case $enableval in
  19755. - yes) enable_static=yes ;;
  19756. - no) enable_static=no ;;
  19757. - *)
  19758. - enable_static=no
  19759. - # Look at the argument we got. We use all the common list separators.
  19760. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19761. - for pkg in $enableval; do
  19762. - IFS="$lt_save_ifs"
  19763. - if test "X$pkg" = "X$p"; then
  19764. - enable_static=yes
  19765. - fi
  19766. - done
  19767. - IFS="$lt_save_ifs"
  19768. - ;;
  19769. - esac
  19770. -else
  19771. - enable_static=yes
  19772. -fi;
  19773. -# Check whether --enable-fast-install or --disable-fast-install was given.
  19774. -if test "${enable_fast_install+set}" = set; then
  19775. - enableval="$enable_fast_install"
  19776. - p=${PACKAGE-default}
  19777. - case $enableval in
  19778. - yes) enable_fast_install=yes ;;
  19779. - no) enable_fast_install=no ;;
  19780. - *)
  19781. - enable_fast_install=no
  19782. - # Look at the argument we got. We use all the common list separators.
  19783. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19784. - for pkg in $enableval; do
  19785. - IFS="$lt_save_ifs"
  19786. - if test "X$pkg" = "X$p"; then
  19787. - enable_fast_install=yes
  19788. - fi
  19789. - done
  19790. - IFS="$lt_save_ifs"
  19791. - ;;
  19792. - esac
  19793. -else
  19794. - enable_fast_install=yes
  19795. -fi;
  19796. +
  19797. +
  19798. +
  19799. +ltmain="$ac_aux_dir/ltmain.sh"
  19800. # Make sure we can run config.sub.
  19801. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  19802. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  19803. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  19804. - { (exit 1); exit 1; }; }
  19805. -
  19806. -echo "$as_me:$LINENO: checking build system type" >&5
  19807. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  19808. -if test "${ac_cv_build+set}" = set; then
  19809. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19810. -else
  19811. - ac_cv_build_alias=$build_alias
  19812. -test -z "$ac_cv_build_alias" &&
  19813. - ac_cv_build_alias=`$ac_config_guess`
  19814. -test -z "$ac_cv_build_alias" &&
  19815. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  19816. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  19817. - { (exit 1); exit 1; }; }
  19818. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  19819. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  19820. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  19821. - { (exit 1); exit 1; }; }
  19822. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  19823. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  19824. -fi
  19825. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  19826. -echo "${ECHO_T}$ac_cv_build" >&6
  19827. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  19828. +$as_echo_n "checking build system type... " >&6; }
  19829. +if test "${ac_cv_build+set}" = set; then :
  19830. + $as_echo_n "(cached) " >&6
  19831. +else
  19832. + ac_build_alias=$build_alias
  19833. +test "x$ac_build_alias" = x &&
  19834. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  19835. +test "x$ac_build_alias" = x &&
  19836. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  19837. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  19838. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  19839. +
  19840. +fi
  19841. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  19842. +$as_echo "$ac_cv_build" >&6; }
  19843. +case $ac_cv_build in
  19844. +*-*-*) ;;
  19845. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  19846. +esac
  19847. build=$ac_cv_build
  19848. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  19849. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  19850. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  19851. -
  19852. -
  19853. -echo "$as_me:$LINENO: checking host system type" >&5
  19854. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  19855. -if test "${ac_cv_host+set}" = set; then
  19856. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19857. -else
  19858. - ac_cv_host_alias=$host_alias
  19859. -test -z "$ac_cv_host_alias" &&
  19860. - ac_cv_host_alias=$ac_cv_build_alias
  19861. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  19862. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  19863. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  19864. - { (exit 1); exit 1; }; }
  19865. +ac_save_IFS=$IFS; IFS='-'
  19866. +set x $ac_cv_build
  19867. +shift
  19868. +build_cpu=$1
  19869. +build_vendor=$2
  19870. +shift; shift
  19871. +# Remember, the first character of IFS is used to create $*,
  19872. +# except with old shells:
  19873. +build_os=$*
  19874. +IFS=$ac_save_IFS
  19875. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  19876. +
  19877. +
  19878. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  19879. +$as_echo_n "checking host system type... " >&6; }
  19880. +if test "${ac_cv_host+set}" = set; then :
  19881. + $as_echo_n "(cached) " >&6
  19882. +else
  19883. + if test "x$host_alias" = x; then
  19884. + ac_cv_host=$ac_cv_build
  19885. +else
  19886. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  19887. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  19888. +fi
  19889. fi
  19890. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  19891. -echo "${ECHO_T}$ac_cv_host" >&6
  19892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  19893. +$as_echo "$ac_cv_host" >&6; }
  19894. +case $ac_cv_host in
  19895. +*-*-*) ;;
  19896. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  19897. +esac
  19898. host=$ac_cv_host
  19899. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  19900. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  19901. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  19902. -
  19903. -
  19904. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19905. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  19906. -if test "${lt_cv_path_SED+set}" = set; then
  19907. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19908. -else
  19909. - # Loop through the user's path and test for sed and gsed.
  19910. -# Then use that list of sed's as ones to test for truncation.
  19911. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19912. +ac_save_IFS=$IFS; IFS='-'
  19913. +set x $ac_cv_host
  19914. +shift
  19915. +host_cpu=$1
  19916. +host_vendor=$2
  19917. +shift; shift
  19918. +# Remember, the first character of IFS is used to create $*,
  19919. +# except with old shells:
  19920. +host_os=$*
  19921. +IFS=$ac_save_IFS
  19922. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  19923. +
  19924. +
  19925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  19926. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19927. +if test "${ac_cv_path_SED+set}" = set; then :
  19928. + $as_echo_n "(cached) " >&6
  19929. +else
  19930. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19931. + for ac_i in 1 2 3 4 5 6 7; do
  19932. + ac_script="$ac_script$as_nl$ac_script"
  19933. + done
  19934. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19935. + { ac_script=; unset ac_script;}
  19936. + if test -z "$SED"; then
  19937. + ac_path_SED_found=false
  19938. + # Loop through the user's path and test for each of PROGNAME-LIST
  19939. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19940. for as_dir in $PATH
  19941. do
  19942. IFS=$as_save_IFS
  19943. test -z "$as_dir" && as_dir=.
  19944. - for lt_ac_prog in sed gsed; do
  19945. + for ac_prog in sed gsed; do
  19946. for ac_exec_ext in '' $ac_executable_extensions; do
  19947. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  19948. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  19949. - fi
  19950. - done
  19951. - done
  19952. -done
  19953. -lt_ac_max=0
  19954. -lt_ac_count=0
  19955. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  19956. -# along with /bin/sed that truncates output.
  19957. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  19958. - test ! -f $lt_ac_sed && continue
  19959. - cat /dev/null > conftest.in
  19960. - lt_ac_count=0
  19961. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  19962. - # Check for GNU sed and select it if it is found.
  19963. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  19964. - lt_cv_path_SED=$lt_ac_sed
  19965. - break
  19966. - fi
  19967. - while true; do
  19968. - cat conftest.in conftest.in >conftest.tmp
  19969. - mv conftest.tmp conftest.in
  19970. - cp conftest.in conftest.nl
  19971. - echo >>conftest.nl
  19972. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  19973. - cmp -s conftest.out conftest.nl || break
  19974. - # 10000 chars as input seems more than enough
  19975. - test $lt_ac_count -gt 10 && break
  19976. - lt_ac_count=`expr $lt_ac_count + 1`
  19977. - if test $lt_ac_count -gt $lt_ac_max; then
  19978. - lt_ac_max=$lt_ac_count
  19979. - lt_cv_path_SED=$lt_ac_sed
  19980. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19981. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19982. +# Check for GNU ac_path_SED and select it if it is found.
  19983. + # Check for GNU $ac_path_SED
  19984. +case `"$ac_path_SED" --version 2>&1` in
  19985. +*GNU*)
  19986. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19987. +*)
  19988. + ac_count=0
  19989. + $as_echo_n 0123456789 >"conftest.in"
  19990. + while :
  19991. + do
  19992. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19993. + mv "conftest.tmp" "conftest.in"
  19994. + cp "conftest.in" "conftest.nl"
  19995. + $as_echo '' >> "conftest.nl"
  19996. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19997. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19998. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19999. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20000. + # Best one so far, save it but keep looking for a better one
  20001. + ac_cv_path_SED="$ac_path_SED"
  20002. + ac_path_SED_max=$ac_count
  20003. fi
  20004. + # 10*(2^10) chars as input seems more than enough
  20005. + test $ac_count -gt 10 && break
  20006. done
  20007. -done
  20008. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20009. +esac
  20010. + $ac_path_SED_found && break 3
  20011. + done
  20012. + done
  20013. + done
  20014. +IFS=$as_save_IFS
  20015. + if test -z "$ac_cv_path_SED"; then
  20016. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20017. + fi
  20018. +else
  20019. + ac_cv_path_SED=$SED
  20020. fi
  20021. -SED=$lt_cv_path_SED
  20022. -echo "$as_me:$LINENO: result: $SED" >&5
  20023. -echo "${ECHO_T}$SED" >&6
  20024. -
  20025. -echo "$as_me:$LINENO: checking for egrep" >&5
  20026. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  20027. -if test "${ac_cv_prog_egrep+set}" = set; then
  20028. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20029. -else
  20030. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  20031. - then ac_cv_prog_egrep='grep -E'
  20032. - else ac_cv_prog_egrep='egrep'
  20033. - fi
  20034. fi
  20035. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  20036. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  20037. - EGREP=$ac_cv_prog_egrep
  20038. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20039. +$as_echo "$ac_cv_path_SED" >&6; }
  20040. + SED="$ac_cv_path_SED"
  20041. + rm -f conftest.sed
  20042. +test -z "$SED" && SED=sed
  20043. +Xsed="$SED -e 1s/^X//"
  20044. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  20045. -if test "${with_gnu_ld+set}" = set; then
  20046. - withval="$with_gnu_ld"
  20047. - test "$withval" = no || with_gnu_ld=yes
  20048. -else
  20049. +
  20050. +
  20051. +
  20052. +
  20053. +
  20054. +
  20055. +
  20056. +
  20057. +
  20058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  20059. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  20060. +if test "${ac_cv_path_GREP+set}" = set; then :
  20061. + $as_echo_n "(cached) " >&6
  20062. +else
  20063. + if test -z "$GREP"; then
  20064. + ac_path_GREP_found=false
  20065. + # Loop through the user's path and test for each of PROGNAME-LIST
  20066. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20067. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20068. +do
  20069. + IFS=$as_save_IFS
  20070. + test -z "$as_dir" && as_dir=.
  20071. + for ac_prog in grep ggrep; do
  20072. + for ac_exec_ext in '' $ac_executable_extensions; do
  20073. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20074. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20075. +# Check for GNU ac_path_GREP and select it if it is found.
  20076. + # Check for GNU $ac_path_GREP
  20077. +case `"$ac_path_GREP" --version 2>&1` in
  20078. +*GNU*)
  20079. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  20080. +*)
  20081. + ac_count=0
  20082. + $as_echo_n 0123456789 >"conftest.in"
  20083. + while :
  20084. + do
  20085. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20086. + mv "conftest.tmp" "conftest.in"
  20087. + cp "conftest.in" "conftest.nl"
  20088. + $as_echo 'GREP' >> "conftest.nl"
  20089. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20090. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20091. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20092. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20093. + # Best one so far, save it but keep looking for a better one
  20094. + ac_cv_path_GREP="$ac_path_GREP"
  20095. + ac_path_GREP_max=$ac_count
  20096. + fi
  20097. + # 10*(2^10) chars as input seems more than enough
  20098. + test $ac_count -gt 10 && break
  20099. + done
  20100. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20101. +esac
  20102. +
  20103. + $ac_path_GREP_found && break 3
  20104. + done
  20105. + done
  20106. + done
  20107. +IFS=$as_save_IFS
  20108. + if test -z "$ac_cv_path_GREP"; then
  20109. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20110. + fi
  20111. +else
  20112. + ac_cv_path_GREP=$GREP
  20113. +fi
  20114. +
  20115. +fi
  20116. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  20117. +$as_echo "$ac_cv_path_GREP" >&6; }
  20118. + GREP="$ac_cv_path_GREP"
  20119. +
  20120. +
  20121. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20122. +$as_echo_n "checking for egrep... " >&6; }
  20123. +if test "${ac_cv_path_EGREP+set}" = set; then :
  20124. + $as_echo_n "(cached) " >&6
  20125. +else
  20126. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20127. + then ac_cv_path_EGREP="$GREP -E"
  20128. + else
  20129. + if test -z "$EGREP"; then
  20130. + ac_path_EGREP_found=false
  20131. + # Loop through the user's path and test for each of PROGNAME-LIST
  20132. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20133. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20134. +do
  20135. + IFS=$as_save_IFS
  20136. + test -z "$as_dir" && as_dir=.
  20137. + for ac_prog in egrep; do
  20138. + for ac_exec_ext in '' $ac_executable_extensions; do
  20139. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20140. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20141. +# Check for GNU ac_path_EGREP and select it if it is found.
  20142. + # Check for GNU $ac_path_EGREP
  20143. +case `"$ac_path_EGREP" --version 2>&1` in
  20144. +*GNU*)
  20145. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  20146. +*)
  20147. + ac_count=0
  20148. + $as_echo_n 0123456789 >"conftest.in"
  20149. + while :
  20150. + do
  20151. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20152. + mv "conftest.tmp" "conftest.in"
  20153. + cp "conftest.in" "conftest.nl"
  20154. + $as_echo 'EGREP' >> "conftest.nl"
  20155. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20156. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20157. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20158. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  20159. + # Best one so far, save it but keep looking for a better one
  20160. + ac_cv_path_EGREP="$ac_path_EGREP"
  20161. + ac_path_EGREP_max=$ac_count
  20162. + fi
  20163. + # 10*(2^10) chars as input seems more than enough
  20164. + test $ac_count -gt 10 && break
  20165. + done
  20166. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20167. +esac
  20168. +
  20169. + $ac_path_EGREP_found && break 3
  20170. + done
  20171. + done
  20172. + done
  20173. +IFS=$as_save_IFS
  20174. + if test -z "$ac_cv_path_EGREP"; then
  20175. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20176. + fi
  20177. +else
  20178. + ac_cv_path_EGREP=$EGREP
  20179. +fi
  20180. +
  20181. + fi
  20182. +fi
  20183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  20184. +$as_echo "$ac_cv_path_EGREP" >&6; }
  20185. + EGREP="$ac_cv_path_EGREP"
  20186. +
  20187. +
  20188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  20189. +$as_echo_n "checking for fgrep... " >&6; }
  20190. +if test "${ac_cv_path_FGREP+set}" = set; then :
  20191. + $as_echo_n "(cached) " >&6
  20192. +else
  20193. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  20194. + then ac_cv_path_FGREP="$GREP -F"
  20195. + else
  20196. + if test -z "$FGREP"; then
  20197. + ac_path_FGREP_found=false
  20198. + # Loop through the user's path and test for each of PROGNAME-LIST
  20199. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20200. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20201. +do
  20202. + IFS=$as_save_IFS
  20203. + test -z "$as_dir" && as_dir=.
  20204. + for ac_prog in fgrep; do
  20205. + for ac_exec_ext in '' $ac_executable_extensions; do
  20206. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  20207. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  20208. +# Check for GNU ac_path_FGREP and select it if it is found.
  20209. + # Check for GNU $ac_path_FGREP
  20210. +case `"$ac_path_FGREP" --version 2>&1` in
  20211. +*GNU*)
  20212. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  20213. +*)
  20214. + ac_count=0
  20215. + $as_echo_n 0123456789 >"conftest.in"
  20216. + while :
  20217. + do
  20218. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20219. + mv "conftest.tmp" "conftest.in"
  20220. + cp "conftest.in" "conftest.nl"
  20221. + $as_echo 'FGREP' >> "conftest.nl"
  20222. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20223. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20224. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20225. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  20226. + # Best one so far, save it but keep looking for a better one
  20227. + ac_cv_path_FGREP="$ac_path_FGREP"
  20228. + ac_path_FGREP_max=$ac_count
  20229. + fi
  20230. + # 10*(2^10) chars as input seems more than enough
  20231. + test $ac_count -gt 10 && break
  20232. + done
  20233. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20234. +esac
  20235. +
  20236. + $ac_path_FGREP_found && break 3
  20237. + done
  20238. + done
  20239. + done
  20240. +IFS=$as_save_IFS
  20241. + if test -z "$ac_cv_path_FGREP"; then
  20242. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20243. + fi
  20244. +else
  20245. + ac_cv_path_FGREP=$FGREP
  20246. +fi
  20247. +
  20248. + fi
  20249. +fi
  20250. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  20251. +$as_echo "$ac_cv_path_FGREP" >&6; }
  20252. + FGREP="$ac_cv_path_FGREP"
  20253. +
  20254. +
  20255. +test -z "$GREP" && GREP=grep
  20256. +
  20257. +
  20258. +
  20259. +
  20260. +
  20261. +
  20262. +
  20263. +
  20264. +
  20265. +
  20266. +
  20267. +
  20268. +
  20269. +
  20270. +
  20271. +
  20272. +
  20273. +
  20274. +
  20275. +# Check whether --with-gnu-ld was given.
  20276. +if test "${with_gnu_ld+set}" = set; then :
  20277. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  20278. +else
  20279. with_gnu_ld=no
  20280. -fi;
  20281. +fi
  20282. +
  20283. ac_prog=ld
  20284. if test "$GCC" = yes; then
  20285. # Check if gcc -print-prog-name=ld gives a path.
  20286. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  20287. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  20288. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  20289. +$as_echo_n "checking for ld used by $CC... " >&6; }
  20290. case $host in
  20291. *-*-mingw*)
  20292. # gcc leaves a trailing carriage return which upsets mingw
  20293. @@ -3347,9 +4332,9 @@
  20294. [\\/]* | ?:[\\/]*)
  20295. re_direlt='/[^/][^/]*/\.\./'
  20296. # Canonicalize the pathname of ld
  20297. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  20298. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20299. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  20300. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  20301. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  20302. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  20303. done
  20304. test -z "$LD" && LD="$ac_prog"
  20305. ;;
  20306. @@ -3363,14 +4348,14 @@
  20307. ;;
  20308. esac
  20309. elif test "$with_gnu_ld" = yes; then
  20310. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  20311. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  20312. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20313. +$as_echo_n "checking for GNU ld... " >&6; }
  20314. else
  20315. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  20316. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  20317. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20318. +$as_echo_n "checking for non-GNU ld... " >&6; }
  20319. fi
  20320. -if test "${lt_cv_path_LD+set}" = set; then
  20321. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20322. +if test "${lt_cv_path_LD+set}" = set; then :
  20323. + $as_echo_n "(cached) " >&6
  20324. else
  20325. if test -z "$LD"; then
  20326. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20327. @@ -3400,19 +4385,17 @@
  20328. LD="$lt_cv_path_LD"
  20329. if test -n "$LD"; then
  20330. - echo "$as_me:$LINENO: result: $LD" >&5
  20331. -echo "${ECHO_T}$LD" >&6
  20332. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20333. +$as_echo "$LD" >&6; }
  20334. else
  20335. - echo "$as_me:$LINENO: result: no" >&5
  20336. -echo "${ECHO_T}no" >&6
  20337. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20338. +$as_echo "no" >&6; }
  20339. fi
  20340. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  20341. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  20342. - { (exit 1); exit 1; }; }
  20343. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  20344. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  20345. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  20346. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20347. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20349. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20350. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  20351. + $as_echo_n "(cached) " >&6
  20352. else
  20353. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  20354. case `$LD -v 2>&1 </dev/null` in
  20355. @@ -3424,40 +4407,22 @@
  20356. ;;
  20357. esac
  20358. fi
  20359. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  20360. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  20361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  20362. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  20363. with_gnu_ld=$lt_cv_prog_gnu_ld
  20364. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  20365. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  20366. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  20367. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20368. -else
  20369. - lt_cv_ld_reload_flag='-r'
  20370. -fi
  20371. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  20372. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  20373. -reload_flag=$lt_cv_ld_reload_flag
  20374. -case $reload_flag in
  20375. -"" | " "*) ;;
  20376. -*) reload_flag=" $reload_flag" ;;
  20377. -esac
  20378. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20379. -case $host_os in
  20380. - darwin*)
  20381. - if test "$GCC" = yes; then
  20382. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20383. - else
  20384. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20385. - fi
  20386. - ;;
  20387. -esac
  20388. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  20389. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  20390. -if test "${lt_cv_path_NM+set}" = set; then
  20391. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20392. +
  20393. +
  20394. +
  20395. +
  20396. +
  20397. +
  20398. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  20399. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  20400. +if test "${lt_cv_path_NM+set}" = set; then :
  20401. + $as_echo_n "(cached) " >&6
  20402. else
  20403. if test -n "$NM"; then
  20404. # Let the user override the test.
  20405. @@ -3500,2112 +4465,1070 @@
  20406. done
  20407. IFS="$lt_save_ifs"
  20408. done
  20409. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  20410. + : ${lt_cv_path_NM=no}
  20411. fi
  20412. fi
  20413. -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  20414. -echo "${ECHO_T}$lt_cv_path_NM" >&6
  20415. -NM="$lt_cv_path_NM"
  20416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  20417. +$as_echo "$lt_cv_path_NM" >&6; }
  20418. +if test "$lt_cv_path_NM" != "no"; then
  20419. + NM="$lt_cv_path_NM"
  20420. +else
  20421. + # Didn't find any BSD compatible name lister, look for dumpbin.
  20422. + if test -n "$ac_tool_prefix"; then
  20423. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20424. + do
  20425. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20426. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20428. +$as_echo_n "checking for $ac_word... " >&6; }
  20429. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  20430. + $as_echo_n "(cached) " >&6
  20431. +else
  20432. + if test -n "$DUMPBIN"; then
  20433. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  20434. +else
  20435. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20436. +for as_dir in $PATH
  20437. +do
  20438. + IFS=$as_save_IFS
  20439. + test -z "$as_dir" && as_dir=.
  20440. + for ac_exec_ext in '' $ac_executable_extensions; do
  20441. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20442. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  20443. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20444. + break 2
  20445. + fi
  20446. +done
  20447. + done
  20448. +IFS=$as_save_IFS
  20449. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  20450. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  20451. -LN_S=$as_ln_s
  20452. -if test "$LN_S" = "ln -s"; then
  20453. - echo "$as_me:$LINENO: result: yes" >&5
  20454. -echo "${ECHO_T}yes" >&6
  20455. +fi
  20456. +fi
  20457. +DUMPBIN=$ac_cv_prog_DUMPBIN
  20458. +if test -n "$DUMPBIN"; then
  20459. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  20460. +$as_echo "$DUMPBIN" >&6; }
  20461. else
  20462. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  20463. -echo "${ECHO_T}no, using $LN_S" >&6
  20464. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20465. +$as_echo "no" >&6; }
  20466. fi
  20467. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  20468. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  20469. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  20470. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20471. -else
  20472. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  20473. -lt_cv_file_magic_test_file=
  20474. -lt_cv_deplibs_check_method='unknown'
  20475. -# Need to set the preceding variable on all platforms that support
  20476. -# interlibrary dependencies.
  20477. -# 'none' -- dependencies not supported.
  20478. -# `unknown' -- same as none, but documents that we really don't know.
  20479. -# 'pass_all' -- all dependencies passed with no checks.
  20480. -# 'test_compile' -- check by making test program.
  20481. -# 'file_magic [[regex]]' -- check by looking for files in library path
  20482. -# which responds to the $file_magic_cmd with a given extended regex.
  20483. -# If you have `file' or equivalent on your system and you're not sure
  20484. -# whether `pass_all' will *always* work, you probably want this one.
  20485. -case $host_os in
  20486. -aix4* | aix5*)
  20487. - lt_cv_deplibs_check_method=pass_all
  20488. - ;;
  20489. + test -n "$DUMPBIN" && break
  20490. + done
  20491. +fi
  20492. +if test -z "$DUMPBIN"; then
  20493. + ac_ct_DUMPBIN=$DUMPBIN
  20494. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20495. +do
  20496. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20497. +set dummy $ac_prog; ac_word=$2
  20498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20499. +$as_echo_n "checking for $ac_word... " >&6; }
  20500. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  20501. + $as_echo_n "(cached) " >&6
  20502. +else
  20503. + if test -n "$ac_ct_DUMPBIN"; then
  20504. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  20505. +else
  20506. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20507. +for as_dir in $PATH
  20508. +do
  20509. + IFS=$as_save_IFS
  20510. + test -z "$as_dir" && as_dir=.
  20511. + for ac_exec_ext in '' $ac_executable_extensions; do
  20512. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20513. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  20514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20515. + break 2
  20516. + fi
  20517. +done
  20518. + done
  20519. +IFS=$as_save_IFS
  20520. -beos*)
  20521. - lt_cv_deplibs_check_method=pass_all
  20522. - ;;
  20523. +fi
  20524. +fi
  20525. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  20526. +if test -n "$ac_ct_DUMPBIN"; then
  20527. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  20528. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  20529. +else
  20530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20531. +$as_echo "no" >&6; }
  20532. +fi
  20533. -bsdi[45]*)
  20534. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20535. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  20536. - lt_cv_file_magic_test_file=/shlib/libc.so
  20537. - ;;
  20538. -cygwin*)
  20539. - # func_win32_libid is a shell function defined in ltmain.sh
  20540. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20541. - lt_cv_file_magic_cmd='func_win32_libid'
  20542. - ;;
  20543. + test -n "$ac_ct_DUMPBIN" && break
  20544. +done
  20545. -mingw* | pw32*)
  20546. - # Base MSYS/MinGW do not provide the 'file' command needed by
  20547. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  20548. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20549. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  20550. - ;;
  20551. + if test "x$ac_ct_DUMPBIN" = x; then
  20552. + DUMPBIN=":"
  20553. + else
  20554. + case $cross_compiling:$ac_tool_warned in
  20555. +yes:)
  20556. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20557. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20558. +ac_tool_warned=yes ;;
  20559. +esac
  20560. + DUMPBIN=$ac_ct_DUMPBIN
  20561. + fi
  20562. +fi
  20563. -darwin* | rhapsody*)
  20564. - lt_cv_deplibs_check_method=pass_all
  20565. - ;;
  20566. -freebsd* | kfreebsd*-gnu | dragonfly*)
  20567. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20568. - case $host_cpu in
  20569. - i*86 )
  20570. - # Not sure whether the presence of OpenBSD here was a mistake.
  20571. - # Let's accept both of them until this is cleared up.
  20572. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20573. - lt_cv_file_magic_cmd=/usr/bin/file
  20574. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20575. - ;;
  20576. - esac
  20577. - else
  20578. - lt_cv_deplibs_check_method=pass_all
  20579. + if test "$DUMPBIN" != ":"; then
  20580. + NM="$DUMPBIN"
  20581. fi
  20582. - ;;
  20583. +fi
  20584. +test -z "$NM" && NM=nm
  20585. -gnu*)
  20586. - lt_cv_deplibs_check_method=pass_all
  20587. - ;;
  20588. -hpux10.20* | hpux11*)
  20589. - lt_cv_file_magic_cmd=/usr/bin/file
  20590. - case $host_cpu in
  20591. - ia64*)
  20592. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20593. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20594. - ;;
  20595. - hppa*64*)
  20596. - 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]'
  20597. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20598. - ;;
  20599. - *)
  20600. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20601. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20602. - ;;
  20603. - esac
  20604. - ;;
  20605. -interix3*)
  20606. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20607. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20608. - ;;
  20609. -irix5* | irix6* | nonstopux*)
  20610. - case $LD in
  20611. - *-32|*"-32 ") libmagic=32-bit;;
  20612. - *-n32|*"-n32 ") libmagic=N32;;
  20613. - *-64|*"-64 ") libmagic=64-bit;;
  20614. - *) libmagic=never-match;;
  20615. - esac
  20616. - lt_cv_deplibs_check_method=pass_all
  20617. - ;;
  20618. -# This must be Linux ELF.
  20619. -linux*)
  20620. - lt_cv_deplibs_check_method=pass_all
  20621. - ;;
  20622. -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  20623. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20624. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20625. - else
  20626. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  20628. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  20629. +if test "${lt_cv_nm_interface+set}" = set; then :
  20630. + $as_echo_n "(cached) " >&6
  20631. +else
  20632. + lt_cv_nm_interface="BSD nm"
  20633. + echo "int some_variable = 0;" > conftest.$ac_ext
  20634. + (eval echo "\"\$as_me:4596: $ac_compile\"" >&5)
  20635. + (eval "$ac_compile" 2>conftest.err)
  20636. + cat conftest.err >&5
  20637. + (eval echo "\"\$as_me:4599: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  20638. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  20639. + cat conftest.err >&5
  20640. + (eval echo "\"\$as_me:4602: output\"" >&5)
  20641. + cat conftest.out >&5
  20642. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  20643. + lt_cv_nm_interface="MS dumpbin"
  20644. fi
  20645. - ;;
  20646. + rm -f conftest*
  20647. +fi
  20648. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  20649. +$as_echo "$lt_cv_nm_interface" >&6; }
  20650. -newos6*)
  20651. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20652. - lt_cv_file_magic_cmd=/usr/bin/file
  20653. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20654. - ;;
  20655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  20656. +$as_echo_n "checking whether ln -s works... " >&6; }
  20657. +LN_S=$as_ln_s
  20658. +if test "$LN_S" = "ln -s"; then
  20659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20660. +$as_echo "yes" >&6; }
  20661. +else
  20662. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  20663. +$as_echo "no, using $LN_S" >&6; }
  20664. +fi
  20665. -nto-qnx*)
  20666. - lt_cv_deplibs_check_method=unknown
  20667. - ;;
  20668. +# find the maximum length of command line arguments
  20669. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  20670. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  20671. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  20672. + $as_echo_n "(cached) " >&6
  20673. +else
  20674. + i=0
  20675. + teststring="ABCD"
  20676. -openbsd*)
  20677. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20678. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20679. - else
  20680. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20681. - fi
  20682. - ;;
  20683. + case $build_os in
  20684. + msdosdjgpp*)
  20685. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  20686. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  20687. + # during glob expansion). Even if it were fixed, the result of this
  20688. + # check would be larger than it should be.
  20689. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  20690. + ;;
  20691. -osf3* | osf4* | osf5*)
  20692. - lt_cv_deplibs_check_method=pass_all
  20693. - ;;
  20694. + gnu*)
  20695. + # Under GNU Hurd, this test is not required because there is
  20696. + # no limit to the length of command line arguments.
  20697. + # Libtool will interpret -1 as no limit whatsoever
  20698. + lt_cv_sys_max_cmd_len=-1;
  20699. + ;;
  20700. -solaris*)
  20701. - lt_cv_deplibs_check_method=pass_all
  20702. - ;;
  20703. + cygwin* | mingw* | cegcc*)
  20704. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  20705. + # about 5 minutes as the teststring grows exponentially.
  20706. + # Worse, since 9x/ME are not pre-emptively multitasking,
  20707. + # you end up with a "frozen" computer, even though with patience
  20708. + # the test eventually succeeds (with a max line length of 256k).
  20709. + # Instead, let's just punt: use the minimum linelength reported by
  20710. + # all of the supported platforms: 8192 (on NT/2K/XP).
  20711. + lt_cv_sys_max_cmd_len=8192;
  20712. + ;;
  20713. -sysv4 | sysv4.3*)
  20714. - case $host_vendor in
  20715. - motorola)
  20716. - 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]'
  20717. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20718. + amigaos*)
  20719. + # On AmigaOS with pdksh, this test takes hours, literally.
  20720. + # So we just punt and use a minimum line length of 8192.
  20721. + lt_cv_sys_max_cmd_len=8192;
  20722. ;;
  20723. - ncr)
  20724. - lt_cv_deplibs_check_method=pass_all
  20725. +
  20726. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  20727. + # This has been around since 386BSD, at least. Likely further.
  20728. + if test -x /sbin/sysctl; then
  20729. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  20730. + elif test -x /usr/sbin/sysctl; then
  20731. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  20732. + else
  20733. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  20734. + fi
  20735. + # And add a safety zone
  20736. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20737. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20738. ;;
  20739. - sequent)
  20740. - lt_cv_file_magic_cmd='/bin/file'
  20741. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20742. +
  20743. + interix*)
  20744. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  20745. + lt_cv_sys_max_cmd_len=196608
  20746. ;;
  20747. - sni)
  20748. - lt_cv_file_magic_cmd='/bin/file'
  20749. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20750. - lt_cv_file_magic_test_file=/lib/libc.so
  20751. +
  20752. + osf*)
  20753. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  20754. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  20755. + # nice to cause kernel panics so lets avoid the loop below.
  20756. + # First set a reasonable default.
  20757. + lt_cv_sys_max_cmd_len=16384
  20758. + #
  20759. + if test -x /sbin/sysconfig; then
  20760. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  20761. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  20762. + esac
  20763. + fi
  20764. ;;
  20765. - siemens)
  20766. - lt_cv_deplibs_check_method=pass_all
  20767. + sco3.2v5*)
  20768. + lt_cv_sys_max_cmd_len=102400
  20769. ;;
  20770. - pc)
  20771. - lt_cv_deplibs_check_method=pass_all
  20772. + sysv5* | sco5v6* | sysv4.2uw2*)
  20773. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  20774. + if test -n "$kargmax"; then
  20775. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  20776. + else
  20777. + lt_cv_sys_max_cmd_len=32768
  20778. + fi
  20779. + ;;
  20780. + *)
  20781. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  20782. + if test -n "$lt_cv_sys_max_cmd_len"; then
  20783. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20784. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20785. + else
  20786. + # Make teststring a little bigger before we do anything with it.
  20787. + # a 1K string should be a reasonable start.
  20788. + for i in 1 2 3 4 5 6 7 8 ; do
  20789. + teststring=$teststring$teststring
  20790. + done
  20791. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  20792. + # If test is not a shell built-in, we'll probably end up computing a
  20793. + # maximum length that is only half of the actual maximum length, but
  20794. + # we can't tell.
  20795. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  20796. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  20797. + test $i != 17 # 1/2 MB should be enough
  20798. + do
  20799. + i=`expr $i + 1`
  20800. + teststring=$teststring$teststring
  20801. + done
  20802. + # Only check the string length outside the loop.
  20803. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  20804. + teststring=
  20805. + # Add a significant safety factor because C++ compilers can tack on
  20806. + # massive amounts of additional arguments before passing them to the
  20807. + # linker. It appears as though 1/2 is a usable value.
  20808. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  20809. + fi
  20810. ;;
  20811. esac
  20812. - ;;
  20813. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20814. - lt_cv_deplibs_check_method=pass_all
  20815. - ;;
  20816. -esac
  20817. +fi
  20818. +if test -n $lt_cv_sys_max_cmd_len ; then
  20819. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  20820. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  20821. +else
  20822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  20823. +$as_echo "none" >&6; }
  20824. fi
  20825. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  20826. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  20827. -file_magic_cmd=$lt_cv_file_magic_cmd
  20828. -deplibs_check_method=$lt_cv_deplibs_check_method
  20829. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20830. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20831. -# If no C compiler was specified, use CC.
  20832. -LTCC=${LTCC-"$CC"}
  20833. -# If no C compiler flags were specified, use CFLAGS.
  20834. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20835. -# Allow CC to be a program name with arguments.
  20836. -compiler=$CC
  20837. +: ${CP="cp -f"}
  20838. +: ${MV="mv -f"}
  20839. +: ${RM="rm -f"}
  20840. +
  20841. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  20842. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  20843. +# Try some XSI features
  20844. +xsi_shell=no
  20845. +( _lt_dummy="a/b/c"
  20846. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  20847. + = c,a/b,, \
  20848. + && eval 'test $(( 1 + 1 )) -eq 2 \
  20849. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  20850. + && xsi_shell=yes
  20851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  20852. +$as_echo "$xsi_shell" >&6; }
  20853. +
  20854. +
  20855. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  20856. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  20857. +lt_shell_append=no
  20858. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  20859. + >/dev/null 2>&1 \
  20860. + && lt_shell_append=yes
  20861. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  20862. +$as_echo "$lt_shell_append" >&6; }
  20863. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  20864. -if test "${enable_libtool_lock+set}" = set; then
  20865. - enableval="$enable_libtool_lock"
  20866. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20867. + lt_unset=unset
  20868. +else
  20869. + lt_unset=false
  20870. +fi
  20871. -fi;
  20872. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20873. -# Some flags need to be propagated to the compiler or linker for good
  20874. -# libtool support.
  20875. -case $host in
  20876. -ia64-*-hpux*)
  20877. - # Find out which ABI we are using.
  20878. - echo 'int i;' > conftest.$ac_ext
  20879. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20880. - (eval $ac_compile) 2>&5
  20881. - ac_status=$?
  20882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20883. - (exit $ac_status); }; then
  20884. - case `/usr/bin/file conftest.$ac_objext` in
  20885. - *ELF-32*)
  20886. - HPUX_IA64_MODE="32"
  20887. - ;;
  20888. - *ELF-64*)
  20889. - HPUX_IA64_MODE="64"
  20890. - ;;
  20891. - esac
  20892. - fi
  20893. - rm -rf conftest*
  20894. - ;;
  20895. -*-*-irix6*)
  20896. - # Find out which ABI we are using.
  20897. - echo '#line 3747 "configure"' > conftest.$ac_ext
  20898. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20899. - (eval $ac_compile) 2>&5
  20900. - ac_status=$?
  20901. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20902. - (exit $ac_status); }; then
  20903. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20904. - case `/usr/bin/file conftest.$ac_objext` in
  20905. - *32-bit*)
  20906. - LD="${LD-ld} -melf32bsmip"
  20907. - ;;
  20908. - *N32*)
  20909. - LD="${LD-ld} -melf32bmipn32"
  20910. - ;;
  20911. - *64-bit*)
  20912. - LD="${LD-ld} -melf64bmip"
  20913. - ;;
  20914. - esac
  20915. - else
  20916. - case `/usr/bin/file conftest.$ac_objext` in
  20917. - *32-bit*)
  20918. - LD="${LD-ld} -32"
  20919. - ;;
  20920. - *N32*)
  20921. - LD="${LD-ld} -n32"
  20922. - ;;
  20923. - *64-bit*)
  20924. - LD="${LD-ld} -64"
  20925. - ;;
  20926. - esac
  20927. - fi
  20928. - fi
  20929. - rm -rf conftest*
  20930. - ;;
  20931. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  20932. - # Find out which ABI we are using.
  20933. - echo 'int i;' > conftest.$ac_ext
  20934. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20935. - (eval $ac_compile) 2>&5
  20936. - ac_status=$?
  20937. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20938. - (exit $ac_status); }; then
  20939. - case `/usr/bin/file conftest.o` in
  20940. - *32-bit*)
  20941. - case $host in
  20942. - x86_64-*linux*)
  20943. - LD="${LD-ld} -m elf_i386"
  20944. - ;;
  20945. - ppc64-*linux*|powerpc64-*linux*)
  20946. - LD="${LD-ld} -m elf32ppclinux"
  20947. - ;;
  20948. - s390x-*linux*)
  20949. - LD="${LD-ld} -m elf_s390"
  20950. - ;;
  20951. - sparc64-*linux*)
  20952. - LD="${LD-ld} -m elf32_sparc"
  20953. - ;;
  20954. - esac
  20955. - ;;
  20956. - *64-bit*)
  20957. - case $host in
  20958. - x86_64-*linux*)
  20959. - LD="${LD-ld} -m elf_x86_64"
  20960. - ;;
  20961. - ppc*-*linux*|powerpc*-*linux*)
  20962. - LD="${LD-ld} -m elf64ppc"
  20963. - ;;
  20964. - s390*-*linux*)
  20965. - LD="${LD-ld} -m elf64_s390"
  20966. - ;;
  20967. - sparc*-*linux*)
  20968. - LD="${LD-ld} -m elf64_sparc"
  20969. - ;;
  20970. - esac
  20971. - ;;
  20972. - esac
  20973. - fi
  20974. - rm -rf conftest*
  20975. - ;;
  20976. -*-*-sco3.2v5*)
  20977. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20978. - SAVE_CFLAGS="$CFLAGS"
  20979. - CFLAGS="$CFLAGS -belf"
  20980. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  20981. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  20982. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  20983. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20984. -else
  20985. - ac_ext=c
  20986. -ac_cpp='$CPP $CPPFLAGS'
  20987. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20988. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20989. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20990. - cat >conftest.$ac_ext <<_ACEOF
  20991. -/* confdefs.h. */
  20992. -_ACEOF
  20993. -cat confdefs.h >>conftest.$ac_ext
  20994. -cat >>conftest.$ac_ext <<_ACEOF
  20995. -/* end confdefs.h. */
  20996. +# test EBCDIC or ASCII
  20997. +case `echo X|tr X '\101'` in
  20998. + A) # ASCII based system
  20999. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  21000. + lt_SP2NL='tr \040 \012'
  21001. + lt_NL2SP='tr \015\012 \040\040'
  21002. + ;;
  21003. + *) # EBCDIC based system
  21004. + lt_SP2NL='tr \100 \n'
  21005. + lt_NL2SP='tr \r\n \100\100'
  21006. + ;;
  21007. +esac
  21008. -int
  21009. -main ()
  21010. -{
  21011. - ;
  21012. - return 0;
  21013. -}
  21014. -_ACEOF
  21015. -rm -f conftest.$ac_objext conftest$ac_exeext
  21016. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21017. - (eval $ac_link) 2>conftest.er1
  21018. - ac_status=$?
  21019. - grep -v '^ *+' conftest.er1 >conftest.err
  21020. - rm -f conftest.er1
  21021. - cat conftest.err >&5
  21022. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21023. - (exit $ac_status); } &&
  21024. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21025. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21026. - (eval $ac_try) 2>&5
  21027. - ac_status=$?
  21028. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21029. - (exit $ac_status); }; } &&
  21030. - { ac_try='test -s conftest$ac_exeext'
  21031. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21032. - (eval $ac_try) 2>&5
  21033. - ac_status=$?
  21034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21035. - (exit $ac_status); }; }; then
  21036. - lt_cv_cc_needs_belf=yes
  21037. -else
  21038. - echo "$as_me: failed program was:" >&5
  21039. -sed 's/^/| /' conftest.$ac_ext >&5
  21040. -lt_cv_cc_needs_belf=no
  21041. -fi
  21042. -rm -f conftest.err conftest.$ac_objext \
  21043. - conftest$ac_exeext conftest.$ac_ext
  21044. - ac_ext=c
  21045. -ac_cpp='$CPP $CPPFLAGS'
  21046. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21047. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21048. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21049. -fi
  21050. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21051. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  21052. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21053. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21054. - CFLAGS="$SAVE_CFLAGS"
  21055. - fi
  21056. - ;;
  21057. -sparc*-*solaris*)
  21058. - # Find out which ABI we are using.
  21059. - echo 'int i;' > conftest.$ac_ext
  21060. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21061. - (eval $ac_compile) 2>&5
  21062. - ac_status=$?
  21063. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21064. - (exit $ac_status); }; then
  21065. - case `/usr/bin/file conftest.o` in
  21066. - *64-bit*)
  21067. - case $lt_cv_prog_gnu_ld in
  21068. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  21069. - *) LD="${LD-ld} -64" ;;
  21070. - esac
  21071. - ;;
  21072. - esac
  21073. - fi
  21074. - rm -rf conftest*
  21075. - ;;
  21076. -esac
  21077. -need_locks="$enable_libtool_lock"
  21078. -ac_ext=c
  21079. -ac_cpp='$CPP $CPPFLAGS'
  21080. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21081. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21082. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21083. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  21084. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  21085. -# On Suns, sometimes $CPP names a directory.
  21086. -if test -n "$CPP" && test -d "$CPP"; then
  21087. - CPP=
  21088. -fi
  21089. -if test -z "$CPP"; then
  21090. - if test "${ac_cv_prog_CPP+set}" = set; then
  21091. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21092. -else
  21093. - # Double quotes because CPP needs to be expanded
  21094. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21095. - do
  21096. - ac_preproc_ok=false
  21097. -for ac_c_preproc_warn_flag in '' yes
  21098. -do
  21099. - # Use a header file that comes with gcc, so configuring glibc
  21100. - # with a fresh cross-compiler works.
  21101. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21102. - # <limits.h> exists even on freestanding compilers.
  21103. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21104. - # not just through cpp. "Syntax error" is here to catch this case.
  21105. - cat >conftest.$ac_ext <<_ACEOF
  21106. -/* confdefs.h. */
  21107. -_ACEOF
  21108. -cat confdefs.h >>conftest.$ac_ext
  21109. -cat >>conftest.$ac_ext <<_ACEOF
  21110. -/* end confdefs.h. */
  21111. -#ifdef __STDC__
  21112. -# include <limits.h>
  21113. -#else
  21114. -# include <assert.h>
  21115. -#endif
  21116. - Syntax error
  21117. -_ACEOF
  21118. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21119. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21120. - ac_status=$?
  21121. - grep -v '^ *+' conftest.er1 >conftest.err
  21122. - rm -f conftest.er1
  21123. - cat conftest.err >&5
  21124. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21125. - (exit $ac_status); } >/dev/null; then
  21126. - if test -s conftest.err; then
  21127. - ac_cpp_err=$ac_c_preproc_warn_flag
  21128. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21129. - else
  21130. - ac_cpp_err=
  21131. - fi
  21132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  21133. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  21134. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  21135. + $as_echo_n "(cached) " >&6
  21136. else
  21137. - ac_cpp_err=yes
  21138. + lt_cv_ld_reload_flag='-r'
  21139. fi
  21140. -if test -z "$ac_cpp_err"; then
  21141. - :
  21142. -else
  21143. - echo "$as_me: failed program was:" >&5
  21144. -sed 's/^/| /' conftest.$ac_ext >&5
  21145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  21146. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  21147. +reload_flag=$lt_cv_ld_reload_flag
  21148. +case $reload_flag in
  21149. +"" | " "*) ;;
  21150. +*) reload_flag=" $reload_flag" ;;
  21151. +esac
  21152. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21153. +case $host_os in
  21154. + darwin*)
  21155. + if test "$GCC" = yes; then
  21156. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21157. + else
  21158. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21159. + fi
  21160. + ;;
  21161. +esac
  21162. - # Broken: fails on valid input.
  21163. -continue
  21164. -fi
  21165. -rm -f conftest.err conftest.$ac_ext
  21166. - # OK, works on sane cases. Now check whether non-existent headers
  21167. - # can be detected and how.
  21168. - cat >conftest.$ac_ext <<_ACEOF
  21169. -/* confdefs.h. */
  21170. -_ACEOF
  21171. -cat confdefs.h >>conftest.$ac_ext
  21172. -cat >>conftest.$ac_ext <<_ACEOF
  21173. -/* end confdefs.h. */
  21174. -#include <ac_nonexistent.h>
  21175. -_ACEOF
  21176. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21177. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21178. - ac_status=$?
  21179. - grep -v '^ *+' conftest.er1 >conftest.err
  21180. - rm -f conftest.er1
  21181. - cat conftest.err >&5
  21182. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21183. - (exit $ac_status); } >/dev/null; then
  21184. - if test -s conftest.err; then
  21185. - ac_cpp_err=$ac_c_preproc_warn_flag
  21186. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21187. - else
  21188. - ac_cpp_err=
  21189. - fi
  21190. +
  21191. +
  21192. +
  21193. +
  21194. +
  21195. +
  21196. +
  21197. +if test -n "$ac_tool_prefix"; then
  21198. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  21199. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  21200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21201. +$as_echo_n "checking for $ac_word... " >&6; }
  21202. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  21203. + $as_echo_n "(cached) " >&6
  21204. else
  21205. - ac_cpp_err=yes
  21206. -fi
  21207. -if test -z "$ac_cpp_err"; then
  21208. - # Broken: success on invalid input.
  21209. -continue
  21210. + if test -n "$OBJDUMP"; then
  21211. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21212. else
  21213. - echo "$as_me: failed program was:" >&5
  21214. -sed 's/^/| /' conftest.$ac_ext >&5
  21215. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21216. +for as_dir in $PATH
  21217. +do
  21218. + IFS=$as_save_IFS
  21219. + test -z "$as_dir" && as_dir=.
  21220. + for ac_exec_ext in '' $ac_executable_extensions; do
  21221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21222. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21223. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21224. + break 2
  21225. + fi
  21226. +done
  21227. + done
  21228. +IFS=$as_save_IFS
  21229. - # Passes both tests.
  21230. -ac_preproc_ok=:
  21231. -break
  21232. fi
  21233. -rm -f conftest.err conftest.$ac_ext
  21234. -
  21235. -done
  21236. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21237. -rm -f conftest.err conftest.$ac_ext
  21238. -if $ac_preproc_ok; then
  21239. - break
  21240. +fi
  21241. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21242. +if test -n "$OBJDUMP"; then
  21243. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21244. +$as_echo "$OBJDUMP" >&6; }
  21245. +else
  21246. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21247. +$as_echo "no" >&6; }
  21248. fi
  21249. - done
  21250. - ac_cv_prog_CPP=$CPP
  21251. fi
  21252. - CPP=$ac_cv_prog_CPP
  21253. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21254. + ac_ct_OBJDUMP=$OBJDUMP
  21255. + # Extract the first word of "objdump", so it can be a program name with args.
  21256. +set dummy objdump; ac_word=$2
  21257. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21258. +$as_echo_n "checking for $ac_word... " >&6; }
  21259. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21260. + $as_echo_n "(cached) " >&6
  21261. else
  21262. - ac_cv_prog_CPP=$CPP
  21263. -fi
  21264. -echo "$as_me:$LINENO: result: $CPP" >&5
  21265. -echo "${ECHO_T}$CPP" >&6
  21266. -ac_preproc_ok=false
  21267. -for ac_c_preproc_warn_flag in '' yes
  21268. + if test -n "$ac_ct_OBJDUMP"; then
  21269. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21270. +else
  21271. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21272. +for as_dir in $PATH
  21273. do
  21274. - # Use a header file that comes with gcc, so configuring glibc
  21275. - # with a fresh cross-compiler works.
  21276. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21277. - # <limits.h> exists even on freestanding compilers.
  21278. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21279. - # not just through cpp. "Syntax error" is here to catch this case.
  21280. - cat >conftest.$ac_ext <<_ACEOF
  21281. -/* confdefs.h. */
  21282. -_ACEOF
  21283. -cat confdefs.h >>conftest.$ac_ext
  21284. -cat >>conftest.$ac_ext <<_ACEOF
  21285. -/* end confdefs.h. */
  21286. -#ifdef __STDC__
  21287. -# include <limits.h>
  21288. -#else
  21289. -# include <assert.h>
  21290. -#endif
  21291. - Syntax error
  21292. -_ACEOF
  21293. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21294. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21295. - ac_status=$?
  21296. - grep -v '^ *+' conftest.er1 >conftest.err
  21297. - rm -f conftest.er1
  21298. - cat conftest.err >&5
  21299. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21300. - (exit $ac_status); } >/dev/null; then
  21301. - if test -s conftest.err; then
  21302. - ac_cpp_err=$ac_c_preproc_warn_flag
  21303. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21304. - else
  21305. - ac_cpp_err=
  21306. + IFS=$as_save_IFS
  21307. + test -z "$as_dir" && as_dir=.
  21308. + for ac_exec_ext in '' $ac_executable_extensions; do
  21309. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21310. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21311. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21312. + break 2
  21313. fi
  21314. -else
  21315. - ac_cpp_err=yes
  21316. +done
  21317. + done
  21318. +IFS=$as_save_IFS
  21319. +
  21320. fi
  21321. -if test -z "$ac_cpp_err"; then
  21322. - :
  21323. +fi
  21324. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21325. +if test -n "$ac_ct_OBJDUMP"; then
  21326. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21327. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21328. else
  21329. - echo "$as_me: failed program was:" >&5
  21330. -sed 's/^/| /' conftest.$ac_ext >&5
  21331. -
  21332. - # Broken: fails on valid input.
  21333. -continue
  21334. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21335. +$as_echo "no" >&6; }
  21336. fi
  21337. -rm -f conftest.err conftest.$ac_ext
  21338. - # OK, works on sane cases. Now check whether non-existent headers
  21339. - # can be detected and how.
  21340. - cat >conftest.$ac_ext <<_ACEOF
  21341. -/* confdefs.h. */
  21342. -_ACEOF
  21343. -cat confdefs.h >>conftest.$ac_ext
  21344. -cat >>conftest.$ac_ext <<_ACEOF
  21345. -/* end confdefs.h. */
  21346. -#include <ac_nonexistent.h>
  21347. -_ACEOF
  21348. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21349. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21350. - ac_status=$?
  21351. - grep -v '^ *+' conftest.er1 >conftest.err
  21352. - rm -f conftest.er1
  21353. - cat conftest.err >&5
  21354. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21355. - (exit $ac_status); } >/dev/null; then
  21356. - if test -s conftest.err; then
  21357. - ac_cpp_err=$ac_c_preproc_warn_flag
  21358. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21359. + if test "x$ac_ct_OBJDUMP" = x; then
  21360. + OBJDUMP="false"
  21361. else
  21362. - ac_cpp_err=
  21363. + case $cross_compiling:$ac_tool_warned in
  21364. +yes:)
  21365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21366. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21367. +ac_tool_warned=yes ;;
  21368. +esac
  21369. + OBJDUMP=$ac_ct_OBJDUMP
  21370. fi
  21371. else
  21372. - ac_cpp_err=yes
  21373. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21374. fi
  21375. -if test -z "$ac_cpp_err"; then
  21376. - # Broken: success on invalid input.
  21377. -continue
  21378. -else
  21379. - echo "$as_me: failed program was:" >&5
  21380. -sed 's/^/| /' conftest.$ac_ext >&5
  21381. - # Passes both tests.
  21382. -ac_preproc_ok=:
  21383. -break
  21384. -fi
  21385. -rm -f conftest.err conftest.$ac_ext
  21386. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21387. -done
  21388. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21389. -rm -f conftest.err conftest.$ac_ext
  21390. -if $ac_preproc_ok; then
  21391. - :
  21392. -else
  21393. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  21394. -See \`config.log' for more details." >&5
  21395. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  21396. -See \`config.log' for more details." >&2;}
  21397. - { (exit 1); exit 1; }; }
  21398. -fi
  21399. -ac_ext=c
  21400. -ac_cpp='$CPP $CPPFLAGS'
  21401. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21402. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21403. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21404. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  21405. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  21406. -if test "${ac_cv_header_stdc+set}" = set; then
  21407. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21408. -else
  21409. - cat >conftest.$ac_ext <<_ACEOF
  21410. -/* confdefs.h. */
  21411. -_ACEOF
  21412. -cat confdefs.h >>conftest.$ac_ext
  21413. -cat >>conftest.$ac_ext <<_ACEOF
  21414. -/* end confdefs.h. */
  21415. -#include <stdlib.h>
  21416. -#include <stdarg.h>
  21417. -#include <string.h>
  21418. -#include <float.h>
  21419. -int
  21420. -main ()
  21421. -{
  21422. - ;
  21423. - return 0;
  21424. -}
  21425. -_ACEOF
  21426. -rm -f conftest.$ac_objext
  21427. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21428. - (eval $ac_compile) 2>conftest.er1
  21429. - ac_status=$?
  21430. - grep -v '^ *+' conftest.er1 >conftest.err
  21431. - rm -f conftest.er1
  21432. - cat conftest.err >&5
  21433. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21434. - (exit $ac_status); } &&
  21435. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21436. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21437. - (eval $ac_try) 2>&5
  21438. - ac_status=$?
  21439. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21440. - (exit $ac_status); }; } &&
  21441. - { ac_try='test -s conftest.$ac_objext'
  21442. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21443. - (eval $ac_try) 2>&5
  21444. - ac_status=$?
  21445. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21446. - (exit $ac_status); }; }; then
  21447. - ac_cv_header_stdc=yes
  21448. -else
  21449. - echo "$as_me: failed program was:" >&5
  21450. -sed 's/^/| /' conftest.$ac_ext >&5
  21451. -ac_cv_header_stdc=no
  21452. -fi
  21453. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21454. -if test $ac_cv_header_stdc = yes; then
  21455. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21456. - cat >conftest.$ac_ext <<_ACEOF
  21457. -/* confdefs.h. */
  21458. -_ACEOF
  21459. -cat confdefs.h >>conftest.$ac_ext
  21460. -cat >>conftest.$ac_ext <<_ACEOF
  21461. -/* end confdefs.h. */
  21462. -#include <string.h>
  21463. -_ACEOF
  21464. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21465. - $EGREP "memchr" >/dev/null 2>&1; then
  21466. - :
  21467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  21468. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  21469. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  21470. + $as_echo_n "(cached) " >&6
  21471. else
  21472. - ac_cv_header_stdc=no
  21473. -fi
  21474. -rm -f conftest*
  21475. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  21476. +lt_cv_file_magic_test_file=
  21477. +lt_cv_deplibs_check_method='unknown'
  21478. +# Need to set the preceding variable on all platforms that support
  21479. +# interlibrary dependencies.
  21480. +# 'none' -- dependencies not supported.
  21481. +# `unknown' -- same as none, but documents that we really don't know.
  21482. +# 'pass_all' -- all dependencies passed with no checks.
  21483. +# 'test_compile' -- check by making test program.
  21484. +# 'file_magic [[regex]]' -- check by looking for files in library path
  21485. +# which responds to the $file_magic_cmd with a given extended regex.
  21486. +# If you have `file' or equivalent on your system and you're not sure
  21487. +# whether `pass_all' will *always* work, you probably want this one.
  21488. -fi
  21489. +case $host_os in
  21490. +aix[4-9]*)
  21491. + lt_cv_deplibs_check_method=pass_all
  21492. + ;;
  21493. -if test $ac_cv_header_stdc = yes; then
  21494. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21495. - cat >conftest.$ac_ext <<_ACEOF
  21496. -/* confdefs.h. */
  21497. -_ACEOF
  21498. -cat confdefs.h >>conftest.$ac_ext
  21499. -cat >>conftest.$ac_ext <<_ACEOF
  21500. -/* end confdefs.h. */
  21501. -#include <stdlib.h>
  21502. +beos*)
  21503. + lt_cv_deplibs_check_method=pass_all
  21504. + ;;
  21505. -_ACEOF
  21506. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21507. - $EGREP "free" >/dev/null 2>&1; then
  21508. - :
  21509. -else
  21510. - ac_cv_header_stdc=no
  21511. -fi
  21512. -rm -f conftest*
  21513. +bsdi[45]*)
  21514. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21515. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  21516. + lt_cv_file_magic_test_file=/shlib/libc.so
  21517. + ;;
  21518. -fi
  21519. +cygwin*)
  21520. + # func_win32_libid is a shell function defined in ltmain.sh
  21521. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21522. + lt_cv_file_magic_cmd='func_win32_libid'
  21523. + ;;
  21524. -if test $ac_cv_header_stdc = yes; then
  21525. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21526. - if test "$cross_compiling" = yes; then
  21527. - :
  21528. -else
  21529. - cat >conftest.$ac_ext <<_ACEOF
  21530. -/* confdefs.h. */
  21531. -_ACEOF
  21532. -cat confdefs.h >>conftest.$ac_ext
  21533. -cat >>conftest.$ac_ext <<_ACEOF
  21534. -/* end confdefs.h. */
  21535. -#include <ctype.h>
  21536. -#if ((' ' & 0x0FF) == 0x020)
  21537. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21538. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21539. -#else
  21540. -# define ISLOWER(c) \
  21541. - (('a' <= (c) && (c) <= 'i') \
  21542. - || ('j' <= (c) && (c) <= 'r') \
  21543. - || ('s' <= (c) && (c) <= 'z'))
  21544. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21545. -#endif
  21546. +mingw* | pw32*)
  21547. + # Base MSYS/MinGW do not provide the 'file' command needed by
  21548. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  21549. + # unless we find 'file', for example because we are cross-compiling.
  21550. + if ( file / ) >/dev/null 2>&1; then
  21551. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21552. + lt_cv_file_magic_cmd='func_win32_libid'
  21553. + else
  21554. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21555. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21556. + fi
  21557. + ;;
  21558. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21559. -int
  21560. -main ()
  21561. -{
  21562. - int i;
  21563. - for (i = 0; i < 256; i++)
  21564. - if (XOR (islower (i), ISLOWER (i))
  21565. - || toupper (i) != TOUPPER (i))
  21566. - exit(2);
  21567. - exit (0);
  21568. -}
  21569. -_ACEOF
  21570. -rm -f conftest$ac_exeext
  21571. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21572. - (eval $ac_link) 2>&5
  21573. - ac_status=$?
  21574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21575. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21576. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21577. - (eval $ac_try) 2>&5
  21578. - ac_status=$?
  21579. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21580. - (exit $ac_status); }; }; then
  21581. - :
  21582. -else
  21583. - echo "$as_me: program exited with status $ac_status" >&5
  21584. -echo "$as_me: failed program was:" >&5
  21585. -sed 's/^/| /' conftest.$ac_ext >&5
  21586. +cegcc)
  21587. + # use the weaker test based on 'objdump'. See mingw*.
  21588. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  21589. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21590. + ;;
  21591. -( exit $ac_status )
  21592. -ac_cv_header_stdc=no
  21593. -fi
  21594. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21595. -fi
  21596. -fi
  21597. -fi
  21598. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  21599. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  21600. -if test $ac_cv_header_stdc = yes; then
  21601. +darwin* | rhapsody*)
  21602. + lt_cv_deplibs_check_method=pass_all
  21603. + ;;
  21604. -cat >>confdefs.h <<\_ACEOF
  21605. -#define STDC_HEADERS 1
  21606. -_ACEOF
  21607. +freebsd* | dragonfly*)
  21608. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21609. + case $host_cpu in
  21610. + i*86 )
  21611. + # Not sure whether the presence of OpenBSD here was a mistake.
  21612. + # Let's accept both of them until this is cleared up.
  21613. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21614. + lt_cv_file_magic_cmd=/usr/bin/file
  21615. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21616. + ;;
  21617. + esac
  21618. + else
  21619. + lt_cv_deplibs_check_method=pass_all
  21620. + fi
  21621. + ;;
  21622. -fi
  21623. +gnu*)
  21624. + lt_cv_deplibs_check_method=pass_all
  21625. + ;;
  21626. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21627. +hpux10.20* | hpux11*)
  21628. + lt_cv_file_magic_cmd=/usr/bin/file
  21629. + case $host_cpu in
  21630. + ia64*)
  21631. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21632. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21633. + ;;
  21634. + hppa*64*)
  21635. + 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]'
  21636. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21637. + ;;
  21638. + *)
  21639. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21640. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21641. + ;;
  21642. + esac
  21643. + ;;
  21644. +interix[3-9]*)
  21645. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21646. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21647. + ;;
  21648. +irix5* | irix6* | nonstopux*)
  21649. + case $LD in
  21650. + *-32|*"-32 ") libmagic=32-bit;;
  21651. + *-n32|*"-n32 ") libmagic=N32;;
  21652. + *-64|*"-64 ") libmagic=64-bit;;
  21653. + *) libmagic=never-match;;
  21654. + esac
  21655. + lt_cv_deplibs_check_method=pass_all
  21656. + ;;
  21657. +# This must be Linux ELF.
  21658. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21659. + lt_cv_deplibs_check_method=pass_all
  21660. + ;;
  21661. +netbsd* | netbsdelf*-gnu)
  21662. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21663. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21664. + else
  21665. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21666. + fi
  21667. + ;;
  21668. +newos6*)
  21669. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21670. + lt_cv_file_magic_cmd=/usr/bin/file
  21671. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21672. + ;;
  21673. +*nto* | *qnx*)
  21674. + lt_cv_deplibs_check_method=pass_all
  21675. + ;;
  21676. +openbsd*)
  21677. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21678. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21679. + else
  21680. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21681. + fi
  21682. + ;;
  21683. +osf3* | osf4* | osf5*)
  21684. + lt_cv_deplibs_check_method=pass_all
  21685. + ;;
  21686. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21687. - inttypes.h stdint.h unistd.h
  21688. -do
  21689. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21690. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  21691. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21692. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21693. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21694. -else
  21695. - cat >conftest.$ac_ext <<_ACEOF
  21696. -/* confdefs.h. */
  21697. -_ACEOF
  21698. -cat confdefs.h >>conftest.$ac_ext
  21699. -cat >>conftest.$ac_ext <<_ACEOF
  21700. -/* end confdefs.h. */
  21701. -$ac_includes_default
  21702. +rdos*)
  21703. + lt_cv_deplibs_check_method=pass_all
  21704. + ;;
  21705. -#include <$ac_header>
  21706. -_ACEOF
  21707. -rm -f conftest.$ac_objext
  21708. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21709. - (eval $ac_compile) 2>conftest.er1
  21710. - ac_status=$?
  21711. - grep -v '^ *+' conftest.er1 >conftest.err
  21712. - rm -f conftest.er1
  21713. - cat conftest.err >&5
  21714. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21715. - (exit $ac_status); } &&
  21716. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21717. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21718. - (eval $ac_try) 2>&5
  21719. - ac_status=$?
  21720. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21721. - (exit $ac_status); }; } &&
  21722. - { ac_try='test -s conftest.$ac_objext'
  21723. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21724. - (eval $ac_try) 2>&5
  21725. - ac_status=$?
  21726. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21727. - (exit $ac_status); }; }; then
  21728. - eval "$as_ac_Header=yes"
  21729. -else
  21730. - echo "$as_me: failed program was:" >&5
  21731. -sed 's/^/| /' conftest.$ac_ext >&5
  21732. +solaris*)
  21733. + lt_cv_deplibs_check_method=pass_all
  21734. + ;;
  21735. -eval "$as_ac_Header=no"
  21736. -fi
  21737. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21738. -fi
  21739. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21740. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21741. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21742. - cat >>confdefs.h <<_ACEOF
  21743. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21744. -_ACEOF
  21745. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21746. + lt_cv_deplibs_check_method=pass_all
  21747. + ;;
  21748. +
  21749. +sysv4 | sysv4.3*)
  21750. + case $host_vendor in
  21751. + motorola)
  21752. + 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]'
  21753. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21754. + ;;
  21755. + ncr)
  21756. + lt_cv_deplibs_check_method=pass_all
  21757. + ;;
  21758. + sequent)
  21759. + lt_cv_file_magic_cmd='/bin/file'
  21760. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21761. + ;;
  21762. + sni)
  21763. + lt_cv_file_magic_cmd='/bin/file'
  21764. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21765. + lt_cv_file_magic_test_file=/lib/libc.so
  21766. + ;;
  21767. + siemens)
  21768. + lt_cv_deplibs_check_method=pass_all
  21769. + ;;
  21770. + pc)
  21771. + lt_cv_deplibs_check_method=pass_all
  21772. + ;;
  21773. + esac
  21774. + ;;
  21775. +
  21776. +tpf*)
  21777. + lt_cv_deplibs_check_method=pass_all
  21778. + ;;
  21779. +esac
  21780. fi
  21781. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  21782. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  21783. +file_magic_cmd=$lt_cv_file_magic_cmd
  21784. +deplibs_check_method=$lt_cv_deplibs_check_method
  21785. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21786. -done
  21787. -for ac_header in dlfcn.h
  21788. -do
  21789. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21790. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21791. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  21792. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21793. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21794. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21795. -fi
  21796. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21797. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21798. -else
  21799. - # Is the header compilable?
  21800. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21801. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  21802. -cat >conftest.$ac_ext <<_ACEOF
  21803. -/* confdefs.h. */
  21804. -_ACEOF
  21805. -cat confdefs.h >>conftest.$ac_ext
  21806. -cat >>conftest.$ac_ext <<_ACEOF
  21807. -/* end confdefs.h. */
  21808. -$ac_includes_default
  21809. -#include <$ac_header>
  21810. -_ACEOF
  21811. -rm -f conftest.$ac_objext
  21812. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21813. - (eval $ac_compile) 2>conftest.er1
  21814. - ac_status=$?
  21815. - grep -v '^ *+' conftest.er1 >conftest.err
  21816. - rm -f conftest.er1
  21817. - cat conftest.err >&5
  21818. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21819. - (exit $ac_status); } &&
  21820. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21821. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21822. - (eval $ac_try) 2>&5
  21823. - ac_status=$?
  21824. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21825. - (exit $ac_status); }; } &&
  21826. - { ac_try='test -s conftest.$ac_objext'
  21827. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21828. - (eval $ac_try) 2>&5
  21829. - ac_status=$?
  21830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21831. - (exit $ac_status); }; }; then
  21832. - ac_header_compiler=yes
  21833. -else
  21834. - echo "$as_me: failed program was:" >&5
  21835. -sed 's/^/| /' conftest.$ac_ext >&5
  21836. -ac_header_compiler=no
  21837. -fi
  21838. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21839. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21840. -echo "${ECHO_T}$ac_header_compiler" >&6
  21841. -# Is the header present?
  21842. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21843. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21844. -cat >conftest.$ac_ext <<_ACEOF
  21845. -/* confdefs.h. */
  21846. -_ACEOF
  21847. -cat confdefs.h >>conftest.$ac_ext
  21848. -cat >>conftest.$ac_ext <<_ACEOF
  21849. -/* end confdefs.h. */
  21850. -#include <$ac_header>
  21851. -_ACEOF
  21852. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21853. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21854. - ac_status=$?
  21855. - grep -v '^ *+' conftest.er1 >conftest.err
  21856. - rm -f conftest.er1
  21857. - cat conftest.err >&5
  21858. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21859. - (exit $ac_status); } >/dev/null; then
  21860. - if test -s conftest.err; then
  21861. - ac_cpp_err=$ac_c_preproc_warn_flag
  21862. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21863. - else
  21864. - ac_cpp_err=
  21865. - fi
  21866. -else
  21867. - ac_cpp_err=yes
  21868. -fi
  21869. -if test -z "$ac_cpp_err"; then
  21870. - ac_header_preproc=yes
  21871. -else
  21872. - echo "$as_me: failed program was:" >&5
  21873. -sed 's/^/| /' conftest.$ac_ext >&5
  21874. - ac_header_preproc=no
  21875. -fi
  21876. -rm -f conftest.err conftest.$ac_ext
  21877. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21878. -echo "${ECHO_T}$ac_header_preproc" >&6
  21879. -# So? What about this header?
  21880. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21881. - yes:no: )
  21882. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21883. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21884. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21885. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21886. - ac_header_preproc=yes
  21887. - ;;
  21888. - no:yes:* )
  21889. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21890. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21891. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21892. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21893. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21894. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21895. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21896. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21897. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21898. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21899. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21900. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21901. - (
  21902. - cat <<\_ASBOX
  21903. -## ---------------------------------------------------------------------- ##
  21904. -## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  21905. -## ---------------------------------------------------------------------- ##
  21906. -_ASBOX
  21907. - ) |
  21908. - sed "s/^/$as_me: WARNING: /" >&2
  21909. - ;;
  21910. -esac
  21911. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  21912. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21913. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21914. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21915. -else
  21916. - eval "$as_ac_Header=\$ac_header_preproc"
  21917. -fi
  21918. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21919. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21920. -fi
  21921. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21922. - cat >>confdefs.h <<_ACEOF
  21923. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21924. -_ACEOF
  21925. -fi
  21926. -done
  21927. -ac_ext=cc
  21928. -ac_cpp='$CXXCPP $CPPFLAGS'
  21929. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21930. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21931. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21932. if test -n "$ac_tool_prefix"; then
  21933. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  21934. - do
  21935. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21936. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21937. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  21938. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21939. -if test "${ac_cv_prog_CXX+set}" = set; then
  21940. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21941. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  21942. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  21943. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21944. +$as_echo_n "checking for $ac_word... " >&6; }
  21945. +if test "${ac_cv_prog_AR+set}" = set; then :
  21946. + $as_echo_n "(cached) " >&6
  21947. else
  21948. - if test -n "$CXX"; then
  21949. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  21950. + if test -n "$AR"; then
  21951. + ac_cv_prog_AR="$AR" # Let the user override the test.
  21952. else
  21953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21954. for as_dir in $PATH
  21955. do
  21956. IFS=$as_save_IFS
  21957. test -z "$as_dir" && as_dir=.
  21958. - for ac_exec_ext in '' $ac_executable_extensions; do
  21959. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21960. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  21961. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21962. + for ac_exec_ext in '' $ac_executable_extensions; do
  21963. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21964. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  21965. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21966. break 2
  21967. fi
  21968. done
  21969. -done
  21970. + done
  21971. +IFS=$as_save_IFS
  21972. fi
  21973. fi
  21974. -CXX=$ac_cv_prog_CXX
  21975. -if test -n "$CXX"; then
  21976. - echo "$as_me:$LINENO: result: $CXX" >&5
  21977. -echo "${ECHO_T}$CXX" >&6
  21978. +AR=$ac_cv_prog_AR
  21979. +if test -n "$AR"; then
  21980. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  21981. +$as_echo "$AR" >&6; }
  21982. else
  21983. - echo "$as_me:$LINENO: result: no" >&5
  21984. -echo "${ECHO_T}no" >&6
  21985. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21986. +$as_echo "no" >&6; }
  21987. fi
  21988. - test -n "$CXX" && break
  21989. - done
  21990. +
  21991. fi
  21992. -if test -z "$CXX"; then
  21993. - ac_ct_CXX=$CXX
  21994. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  21995. -do
  21996. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21997. -set dummy $ac_prog; ac_word=$2
  21998. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  21999. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22000. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  22001. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22002. +if test -z "$ac_cv_prog_AR"; then
  22003. + ac_ct_AR=$AR
  22004. + # Extract the first word of "ar", so it can be a program name with args.
  22005. +set dummy ar; ac_word=$2
  22006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22007. +$as_echo_n "checking for $ac_word... " >&6; }
  22008. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22009. + $as_echo_n "(cached) " >&6
  22010. else
  22011. - if test -n "$ac_ct_CXX"; then
  22012. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  22013. + if test -n "$ac_ct_AR"; then
  22014. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22015. else
  22016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22017. for as_dir in $PATH
  22018. do
  22019. IFS=$as_save_IFS
  22020. test -z "$as_dir" && as_dir=.
  22021. - for ac_exec_ext in '' $ac_executable_extensions; do
  22022. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22023. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  22024. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22025. + for ac_exec_ext in '' $ac_executable_extensions; do
  22026. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22027. + ac_cv_prog_ac_ct_AR="ar"
  22028. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22029. break 2
  22030. fi
  22031. done
  22032. -done
  22033. + done
  22034. +IFS=$as_save_IFS
  22035. fi
  22036. fi
  22037. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  22038. -if test -n "$ac_ct_CXX"; then
  22039. - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  22040. -echo "${ECHO_T}$ac_ct_CXX" >&6
  22041. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22042. +if test -n "$ac_ct_AR"; then
  22043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22044. +$as_echo "$ac_ct_AR" >&6; }
  22045. else
  22046. - echo "$as_me:$LINENO: result: no" >&5
  22047. -echo "${ECHO_T}no" >&6
  22048. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22049. +$as_echo "no" >&6; }
  22050. fi
  22051. - test -n "$ac_ct_CXX" && break
  22052. -done
  22053. -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  22054. -
  22055. - CXX=$ac_ct_CXX
  22056. + if test "x$ac_ct_AR" = x; then
  22057. + AR="false"
  22058. + else
  22059. + case $cross_compiling:$ac_tool_warned in
  22060. +yes:)
  22061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22062. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22063. +ac_tool_warned=yes ;;
  22064. +esac
  22065. + AR=$ac_ct_AR
  22066. + fi
  22067. +else
  22068. + AR="$ac_cv_prog_AR"
  22069. fi
  22070. +test -z "$AR" && AR=ar
  22071. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22072. -# Provide some information about the compiler.
  22073. -echo "$as_me:$LINENO:" \
  22074. - "checking for C++ compiler version" >&5
  22075. -ac_compiler=`set X $ac_compile; echo $2`
  22076. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  22077. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  22078. - ac_status=$?
  22079. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22080. - (exit $ac_status); }
  22081. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  22082. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  22083. - ac_status=$?
  22084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22085. - (exit $ac_status); }
  22086. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  22087. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  22088. - ac_status=$?
  22089. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22090. - (exit $ac_status); }
  22091. -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  22092. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  22093. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  22094. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22095. -else
  22096. - cat >conftest.$ac_ext <<_ACEOF
  22097. -/* confdefs.h. */
  22098. -_ACEOF
  22099. -cat confdefs.h >>conftest.$ac_ext
  22100. -cat >>conftest.$ac_ext <<_ACEOF
  22101. -/* end confdefs.h. */
  22102. -int
  22103. -main ()
  22104. -{
  22105. -#ifndef __GNUC__
  22106. - choke me
  22107. -#endif
  22108. - ;
  22109. - return 0;
  22110. -}
  22111. -_ACEOF
  22112. -rm -f conftest.$ac_objext
  22113. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22114. - (eval $ac_compile) 2>conftest.er1
  22115. - ac_status=$?
  22116. - grep -v '^ *+' conftest.er1 >conftest.err
  22117. - rm -f conftest.er1
  22118. - cat conftest.err >&5
  22119. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22120. - (exit $ac_status); } &&
  22121. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  22122. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22123. - (eval $ac_try) 2>&5
  22124. - ac_status=$?
  22125. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22126. - (exit $ac_status); }; } &&
  22127. - { ac_try='test -s conftest.$ac_objext'
  22128. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22129. - (eval $ac_try) 2>&5
  22130. - ac_status=$?
  22131. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22132. - (exit $ac_status); }; }; then
  22133. - ac_compiler_gnu=yes
  22134. -else
  22135. - echo "$as_me: failed program was:" >&5
  22136. -sed 's/^/| /' conftest.$ac_ext >&5
  22137. -ac_compiler_gnu=no
  22138. -fi
  22139. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22140. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  22141. -fi
  22142. -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  22143. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  22144. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  22145. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  22146. -ac_save_CXXFLAGS=$CXXFLAGS
  22147. -CXXFLAGS="-g"
  22148. -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  22149. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  22150. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  22151. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22152. -else
  22153. - cat >conftest.$ac_ext <<_ACEOF
  22154. -/* confdefs.h. */
  22155. -_ACEOF
  22156. -cat confdefs.h >>conftest.$ac_ext
  22157. -cat >>conftest.$ac_ext <<_ACEOF
  22158. -/* end confdefs.h. */
  22159. -int
  22160. -main ()
  22161. -{
  22162. - ;
  22163. - return 0;
  22164. -}
  22165. -_ACEOF
  22166. -rm -f conftest.$ac_objext
  22167. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22168. - (eval $ac_compile) 2>conftest.er1
  22169. - ac_status=$?
  22170. - grep -v '^ *+' conftest.er1 >conftest.err
  22171. - rm -f conftest.er1
  22172. - cat conftest.err >&5
  22173. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22174. - (exit $ac_status); } &&
  22175. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  22176. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22177. - (eval $ac_try) 2>&5
  22178. - ac_status=$?
  22179. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22180. - (exit $ac_status); }; } &&
  22181. - { ac_try='test -s conftest.$ac_objext'
  22182. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22183. - (eval $ac_try) 2>&5
  22184. - ac_status=$?
  22185. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22186. - (exit $ac_status); }; }; then
  22187. - ac_cv_prog_cxx_g=yes
  22188. +
  22189. +
  22190. +
  22191. +if test -n "$ac_tool_prefix"; then
  22192. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22193. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22194. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22195. +$as_echo_n "checking for $ac_word... " >&6; }
  22196. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22197. + $as_echo_n "(cached) " >&6
  22198. else
  22199. - echo "$as_me: failed program was:" >&5
  22200. -sed 's/^/| /' conftest.$ac_ext >&5
  22201. + if test -n "$STRIP"; then
  22202. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22203. +else
  22204. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22205. +for as_dir in $PATH
  22206. +do
  22207. + IFS=$as_save_IFS
  22208. + test -z "$as_dir" && as_dir=.
  22209. + for ac_exec_ext in '' $ac_executable_extensions; do
  22210. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22211. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22212. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22213. + break 2
  22214. + fi
  22215. +done
  22216. + done
  22217. +IFS=$as_save_IFS
  22218. -ac_cv_prog_cxx_g=no
  22219. fi
  22220. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22221. fi
  22222. -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  22223. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  22224. -if test "$ac_test_CXXFLAGS" = set; then
  22225. - CXXFLAGS=$ac_save_CXXFLAGS
  22226. -elif test $ac_cv_prog_cxx_g = yes; then
  22227. - if test "$GXX" = yes; then
  22228. - CXXFLAGS="-g -O2"
  22229. - else
  22230. - CXXFLAGS="-g"
  22231. - fi
  22232. +STRIP=$ac_cv_prog_STRIP
  22233. +if test -n "$STRIP"; then
  22234. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22235. +$as_echo "$STRIP" >&6; }
  22236. else
  22237. - if test "$GXX" = yes; then
  22238. - CXXFLAGS="-O2"
  22239. - else
  22240. - CXXFLAGS=
  22241. - fi
  22242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22243. +$as_echo "no" >&6; }
  22244. fi
  22245. -for ac_declaration in \
  22246. - '' \
  22247. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  22248. - 'extern "C" void std::exit (int); using std::exit;' \
  22249. - 'extern "C" void exit (int) throw ();' \
  22250. - 'extern "C" void exit (int);' \
  22251. - 'void exit (int);'
  22252. -do
  22253. - cat >conftest.$ac_ext <<_ACEOF
  22254. -/* confdefs.h. */
  22255. -_ACEOF
  22256. -cat confdefs.h >>conftest.$ac_ext
  22257. -cat >>conftest.$ac_ext <<_ACEOF
  22258. -/* end confdefs.h. */
  22259. -$ac_declaration
  22260. -#include <stdlib.h>
  22261. -int
  22262. -main ()
  22263. -{
  22264. -exit (42);
  22265. - ;
  22266. - return 0;
  22267. -}
  22268. -_ACEOF
  22269. -rm -f conftest.$ac_objext
  22270. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22271. - (eval $ac_compile) 2>conftest.er1
  22272. - ac_status=$?
  22273. - grep -v '^ *+' conftest.er1 >conftest.err
  22274. - rm -f conftest.er1
  22275. - cat conftest.err >&5
  22276. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22277. - (exit $ac_status); } &&
  22278. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  22279. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22280. - (eval $ac_try) 2>&5
  22281. - ac_status=$?
  22282. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22283. - (exit $ac_status); }; } &&
  22284. - { ac_try='test -s conftest.$ac_objext'
  22285. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22286. - (eval $ac_try) 2>&5
  22287. - ac_status=$?
  22288. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22289. - (exit $ac_status); }; }; then
  22290. - :
  22291. -else
  22292. - echo "$as_me: failed program was:" >&5
  22293. -sed 's/^/| /' conftest.$ac_ext >&5
  22294. -continue
  22295. -fi
  22296. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22297. - cat >conftest.$ac_ext <<_ACEOF
  22298. -/* confdefs.h. */
  22299. -_ACEOF
  22300. -cat confdefs.h >>conftest.$ac_ext
  22301. -cat >>conftest.$ac_ext <<_ACEOF
  22302. -/* end confdefs.h. */
  22303. -$ac_declaration
  22304. -int
  22305. -main ()
  22306. -{
  22307. -exit (42);
  22308. - ;
  22309. - return 0;
  22310. -}
  22311. -_ACEOF
  22312. -rm -f conftest.$ac_objext
  22313. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22314. - (eval $ac_compile) 2>conftest.er1
  22315. - ac_status=$?
  22316. - grep -v '^ *+' conftest.er1 >conftest.err
  22317. - rm -f conftest.er1
  22318. - cat conftest.err >&5
  22319. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22320. - (exit $ac_status); } &&
  22321. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  22322. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22323. - (eval $ac_try) 2>&5
  22324. - ac_status=$?
  22325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22326. - (exit $ac_status); }; } &&
  22327. - { ac_try='test -s conftest.$ac_objext'
  22328. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22329. - (eval $ac_try) 2>&5
  22330. - ac_status=$?
  22331. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22332. - (exit $ac_status); }; }; then
  22333. - break
  22334. -else
  22335. - echo "$as_me: failed program was:" >&5
  22336. -sed 's/^/| /' conftest.$ac_ext >&5
  22337. fi
  22338. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22339. -done
  22340. -rm -f conftest*
  22341. -if test -n "$ac_declaration"; then
  22342. - echo '#ifdef __cplusplus' >>confdefs.h
  22343. - echo $ac_declaration >>confdefs.h
  22344. - echo '#endif' >>confdefs.h
  22345. -fi
  22346. -
  22347. -ac_ext=cc
  22348. -ac_cpp='$CXXCPP $CPPFLAGS'
  22349. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22350. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22351. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22352. -
  22353. -depcc="$CXX" am_compiler_list=
  22354. -
  22355. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  22356. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  22357. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  22358. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22359. +if test -z "$ac_cv_prog_STRIP"; then
  22360. + ac_ct_STRIP=$STRIP
  22361. + # Extract the first word of "strip", so it can be a program name with args.
  22362. +set dummy strip; ac_word=$2
  22363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22364. +$as_echo_n "checking for $ac_word... " >&6; }
  22365. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22366. + $as_echo_n "(cached) " >&6
  22367. else
  22368. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  22369. - # We make a subdir and do the tests there. Otherwise we can end up
  22370. - # making bogus files that we don't know about and never remove. For
  22371. - # instance it was reported that on HP-UX the gcc test will end up
  22372. - # making a dummy file named `D' -- because `-MD' means `put the output
  22373. - # in D'.
  22374. - mkdir conftest.dir
  22375. - # Copy depcomp to subdir because otherwise we won't find it if we're
  22376. - # using a relative directory.
  22377. - cp "$am_depcomp" conftest.dir
  22378. - cd conftest.dir
  22379. - # We will build objects and dependencies in a subdirectory because
  22380. - # it helps to detect inapplicable dependency modes. For instance
  22381. - # both Tru64's cc and ICC support -MD to output dependencies as a
  22382. - # side effect of compilation, but ICC will put the dependencies in
  22383. - # the current directory while Tru64 will put them in the object
  22384. - # directory.
  22385. - mkdir sub
  22386. -
  22387. - am_cv_CXX_dependencies_compiler_type=none
  22388. - if test "$am_compiler_list" = ""; then
  22389. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  22390. + if test -n "$ac_ct_STRIP"; then
  22391. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22392. +else
  22393. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22394. +for as_dir in $PATH
  22395. +do
  22396. + IFS=$as_save_IFS
  22397. + test -z "$as_dir" && as_dir=.
  22398. + for ac_exec_ext in '' $ac_executable_extensions; do
  22399. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22400. + ac_cv_prog_ac_ct_STRIP="strip"
  22401. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22402. + break 2
  22403. fi
  22404. - for depmode in $am_compiler_list; do
  22405. - # Setup a source with many dependencies, because some compilers
  22406. - # like to wrap large dependency lists on column 80 (with \), and
  22407. - # we should not choose a depcomp mode which is confused by this.
  22408. - #
  22409. - # We need to recreate these files for each test, as the compiler may
  22410. - # overwrite some of them when testing with obscure command lines.
  22411. - # This happens at least with the AIX C compiler.
  22412. - : > sub/conftest.c
  22413. - for i in 1 2 3 4 5 6; do
  22414. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  22415. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  22416. - # Solaris 8's {/usr,}/bin/sh.
  22417. - touch sub/conftst$i.h
  22418. - done
  22419. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  22420. -
  22421. - case $depmode in
  22422. - nosideeffect)
  22423. - # after this tag, mechanisms are not by side-effect, so they'll
  22424. - # only be used when explicitly requested
  22425. - if test "x$enable_dependency_tracking" = xyes; then
  22426. - continue
  22427. - else
  22428. - break
  22429. - fi
  22430. - ;;
  22431. - none) break ;;
  22432. - esac
  22433. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  22434. - # mode. It turns out that the SunPro C++ compiler does not properly
  22435. - # handle `-M -o', and we need to detect this.
  22436. - if depmode=$depmode \
  22437. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  22438. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  22439. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  22440. - >/dev/null 2>conftest.err &&
  22441. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  22442. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  22443. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  22444. - # icc doesn't choke on unknown options, it will just issue warnings
  22445. - # or remarks (even with -Werror). So we grep stderr for any message
  22446. - # that says an option was ignored or not supported.
  22447. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  22448. - # icc: Command line warning: ignoring option '-M'; no argument required
  22449. - # The diagnosis changed in icc 8.0:
  22450. - # icc: Command line remark: option '-MP' not supported
  22451. - if (grep 'ignoring option' conftest.err ||
  22452. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  22453. - am_cv_CXX_dependencies_compiler_type=$depmode
  22454. - break
  22455. - fi
  22456. - fi
  22457. +done
  22458. done
  22459. +IFS=$as_save_IFS
  22460. - cd ..
  22461. - rm -rf conftest.dir
  22462. +fi
  22463. +fi
  22464. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22465. +if test -n "$ac_ct_STRIP"; then
  22466. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  22467. +$as_echo "$ac_ct_STRIP" >&6; }
  22468. else
  22469. - am_cv_CXX_dependencies_compiler_type=none
  22470. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22471. +$as_echo "no" >&6; }
  22472. fi
  22473. + if test "x$ac_ct_STRIP" = x; then
  22474. + STRIP=":"
  22475. + else
  22476. + case $cross_compiling:$ac_tool_warned in
  22477. +yes:)
  22478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22479. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22480. +ac_tool_warned=yes ;;
  22481. +esac
  22482. + STRIP=$ac_ct_STRIP
  22483. + fi
  22484. +else
  22485. + STRIP="$ac_cv_prog_STRIP"
  22486. fi
  22487. -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  22488. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  22489. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  22490. +test -z "$STRIP" && STRIP=:
  22491. -if
  22492. - test "x$enable_dependency_tracking" != xno \
  22493. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  22494. - am__fastdepCXX_TRUE=
  22495. - am__fastdepCXX_FALSE='#'
  22496. -else
  22497. - am__fastdepCXX_TRUE='#'
  22498. - am__fastdepCXX_FALSE=
  22499. -fi
  22500. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  22501. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  22502. - (test "X$CXX" != "Xg++"))) ; then
  22503. - ac_ext=cc
  22504. -ac_cpp='$CXXCPP $CPPFLAGS'
  22505. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22506. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22507. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22508. -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  22509. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  22510. -if test -z "$CXXCPP"; then
  22511. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  22512. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22513. +if test -n "$ac_tool_prefix"; then
  22514. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22515. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22517. +$as_echo_n "checking for $ac_word... " >&6; }
  22518. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  22519. + $as_echo_n "(cached) " >&6
  22520. else
  22521. - # Double quotes because CXXCPP needs to be expanded
  22522. - for CXXCPP in "$CXX -E" "/lib/cpp"
  22523. - do
  22524. - ac_preproc_ok=false
  22525. -for ac_cxx_preproc_warn_flag in '' yes
  22526. + if test -n "$RANLIB"; then
  22527. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22528. +else
  22529. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22530. +for as_dir in $PATH
  22531. do
  22532. - # Use a header file that comes with gcc, so configuring glibc
  22533. - # with a fresh cross-compiler works.
  22534. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22535. - # <limits.h> exists even on freestanding compilers.
  22536. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22537. - # not just through cpp. "Syntax error" is here to catch this case.
  22538. - cat >conftest.$ac_ext <<_ACEOF
  22539. -/* confdefs.h. */
  22540. -_ACEOF
  22541. -cat confdefs.h >>conftest.$ac_ext
  22542. -cat >>conftest.$ac_ext <<_ACEOF
  22543. -/* end confdefs.h. */
  22544. -#ifdef __STDC__
  22545. -# include <limits.h>
  22546. -#else
  22547. -# include <assert.h>
  22548. -#endif
  22549. - Syntax error
  22550. -_ACEOF
  22551. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22552. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22553. - ac_status=$?
  22554. - grep -v '^ *+' conftest.er1 >conftest.err
  22555. - rm -f conftest.er1
  22556. - cat conftest.err >&5
  22557. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22558. - (exit $ac_status); } >/dev/null; then
  22559. - if test -s conftest.err; then
  22560. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22561. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22562. - else
  22563. - ac_cpp_err=
  22564. + IFS=$as_save_IFS
  22565. + test -z "$as_dir" && as_dir=.
  22566. + for ac_exec_ext in '' $ac_executable_extensions; do
  22567. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22568. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22569. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22570. + break 2
  22571. fi
  22572. -else
  22573. - ac_cpp_err=yes
  22574. +done
  22575. + done
  22576. +IFS=$as_save_IFS
  22577. +
  22578. fi
  22579. -if test -z "$ac_cpp_err"; then
  22580. - :
  22581. -else
  22582. - echo "$as_me: failed program was:" >&5
  22583. -sed 's/^/| /' conftest.$ac_ext >&5
  22584. -
  22585. - # Broken: fails on valid input.
  22586. -continue
  22587. -fi
  22588. -rm -f conftest.err conftest.$ac_ext
  22589. -
  22590. - # OK, works on sane cases. Now check whether non-existent headers
  22591. - # can be detected and how.
  22592. - cat >conftest.$ac_ext <<_ACEOF
  22593. -/* confdefs.h. */
  22594. -_ACEOF
  22595. -cat confdefs.h >>conftest.$ac_ext
  22596. -cat >>conftest.$ac_ext <<_ACEOF
  22597. -/* end confdefs.h. */
  22598. -#include <ac_nonexistent.h>
  22599. -_ACEOF
  22600. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22601. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22602. - ac_status=$?
  22603. - grep -v '^ *+' conftest.er1 >conftest.err
  22604. - rm -f conftest.er1
  22605. - cat conftest.err >&5
  22606. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22607. - (exit $ac_status); } >/dev/null; then
  22608. - if test -s conftest.err; then
  22609. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22610. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22611. - else
  22612. - ac_cpp_err=
  22613. - fi
  22614. -else
  22615. - ac_cpp_err=yes
  22616. fi
  22617. -if test -z "$ac_cpp_err"; then
  22618. - # Broken: success on invalid input.
  22619. -continue
  22620. +RANLIB=$ac_cv_prog_RANLIB
  22621. +if test -n "$RANLIB"; then
  22622. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  22623. +$as_echo "$RANLIB" >&6; }
  22624. else
  22625. - echo "$as_me: failed program was:" >&5
  22626. -sed 's/^/| /' conftest.$ac_ext >&5
  22627. -
  22628. - # Passes both tests.
  22629. -ac_preproc_ok=:
  22630. -break
  22631. -fi
  22632. -rm -f conftest.err conftest.$ac_ext
  22633. -
  22634. -done
  22635. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22636. -rm -f conftest.err conftest.$ac_ext
  22637. -if $ac_preproc_ok; then
  22638. - break
  22639. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22640. +$as_echo "no" >&6; }
  22641. fi
  22642. - done
  22643. - ac_cv_prog_CXXCPP=$CXXCPP
  22644. fi
  22645. - CXXCPP=$ac_cv_prog_CXXCPP
  22646. +if test -z "$ac_cv_prog_RANLIB"; then
  22647. + ac_ct_RANLIB=$RANLIB
  22648. + # Extract the first word of "ranlib", so it can be a program name with args.
  22649. +set dummy ranlib; ac_word=$2
  22650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22651. +$as_echo_n "checking for $ac_word... " >&6; }
  22652. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  22653. + $as_echo_n "(cached) " >&6
  22654. else
  22655. - ac_cv_prog_CXXCPP=$CXXCPP
  22656. -fi
  22657. -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  22658. -echo "${ECHO_T}$CXXCPP" >&6
  22659. -ac_preproc_ok=false
  22660. -for ac_cxx_preproc_warn_flag in '' yes
  22661. + if test -n "$ac_ct_RANLIB"; then
  22662. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22663. +else
  22664. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22665. +for as_dir in $PATH
  22666. do
  22667. - # Use a header file that comes with gcc, so configuring glibc
  22668. - # with a fresh cross-compiler works.
  22669. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22670. - # <limits.h> exists even on freestanding compilers.
  22671. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22672. - # not just through cpp. "Syntax error" is here to catch this case.
  22673. - cat >conftest.$ac_ext <<_ACEOF
  22674. -/* confdefs.h. */
  22675. -_ACEOF
  22676. -cat confdefs.h >>conftest.$ac_ext
  22677. -cat >>conftest.$ac_ext <<_ACEOF
  22678. -/* end confdefs.h. */
  22679. -#ifdef __STDC__
  22680. -# include <limits.h>
  22681. -#else
  22682. -# include <assert.h>
  22683. -#endif
  22684. - Syntax error
  22685. -_ACEOF
  22686. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22687. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22688. - ac_status=$?
  22689. - grep -v '^ *+' conftest.er1 >conftest.err
  22690. - rm -f conftest.er1
  22691. - cat conftest.err >&5
  22692. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22693. - (exit $ac_status); } >/dev/null; then
  22694. - if test -s conftest.err; then
  22695. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22696. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22697. - else
  22698. - ac_cpp_err=
  22699. + IFS=$as_save_IFS
  22700. + test -z "$as_dir" && as_dir=.
  22701. + for ac_exec_ext in '' $ac_executable_extensions; do
  22702. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22703. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  22704. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22705. + break 2
  22706. fi
  22707. -else
  22708. - ac_cpp_err=yes
  22709. +done
  22710. + done
  22711. +IFS=$as_save_IFS
  22712. +
  22713. fi
  22714. -if test -z "$ac_cpp_err"; then
  22715. - :
  22716. +fi
  22717. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22718. +if test -n "$ac_ct_RANLIB"; then
  22719. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  22720. +$as_echo "$ac_ct_RANLIB" >&6; }
  22721. else
  22722. - echo "$as_me: failed program was:" >&5
  22723. -sed 's/^/| /' conftest.$ac_ext >&5
  22724. -
  22725. - # Broken: fails on valid input.
  22726. -continue
  22727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22728. +$as_echo "no" >&6; }
  22729. fi
  22730. -rm -f conftest.err conftest.$ac_ext
  22731. - # OK, works on sane cases. Now check whether non-existent headers
  22732. - # can be detected and how.
  22733. - cat >conftest.$ac_ext <<_ACEOF
  22734. -/* confdefs.h. */
  22735. -_ACEOF
  22736. -cat confdefs.h >>conftest.$ac_ext
  22737. -cat >>conftest.$ac_ext <<_ACEOF
  22738. -/* end confdefs.h. */
  22739. -#include <ac_nonexistent.h>
  22740. -_ACEOF
  22741. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22742. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22743. - ac_status=$?
  22744. - grep -v '^ *+' conftest.er1 >conftest.err
  22745. - rm -f conftest.er1
  22746. - cat conftest.err >&5
  22747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22748. - (exit $ac_status); } >/dev/null; then
  22749. - if test -s conftest.err; then
  22750. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22751. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22752. + if test "x$ac_ct_RANLIB" = x; then
  22753. + RANLIB=":"
  22754. else
  22755. - ac_cpp_err=
  22756. + case $cross_compiling:$ac_tool_warned in
  22757. +yes:)
  22758. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22759. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22760. +ac_tool_warned=yes ;;
  22761. +esac
  22762. + RANLIB=$ac_ct_RANLIB
  22763. fi
  22764. else
  22765. - ac_cpp_err=yes
  22766. + RANLIB="$ac_cv_prog_RANLIB"
  22767. fi
  22768. -if test -z "$ac_cpp_err"; then
  22769. - # Broken: success on invalid input.
  22770. -continue
  22771. -else
  22772. - echo "$as_me: failed program was:" >&5
  22773. -sed 's/^/| /' conftest.$ac_ext >&5
  22774. - # Passes both tests.
  22775. -ac_preproc_ok=:
  22776. -break
  22777. -fi
  22778. -rm -f conftest.err conftest.$ac_ext
  22779. +test -z "$RANLIB" && RANLIB=:
  22780. -done
  22781. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22782. -rm -f conftest.err conftest.$ac_ext
  22783. -if $ac_preproc_ok; then
  22784. - :
  22785. -else
  22786. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22787. -See \`config.log' for more details." >&5
  22788. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22789. -See \`config.log' for more details." >&2;}
  22790. - { (exit 1); exit 1; }; }
  22791. -fi
  22792. -ac_ext=cc
  22793. -ac_cpp='$CXXCPP $CPPFLAGS'
  22794. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22795. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22796. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22797. -fi
  22798. -ac_ext=f
  22799. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  22800. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22801. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  22802. -if test -n "$ac_tool_prefix"; then
  22803. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  22804. - do
  22805. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22806. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22807. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22808. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22809. -if test "${ac_cv_prog_F77+set}" = set; then
  22810. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22811. -else
  22812. - if test -n "$F77"; then
  22813. - ac_cv_prog_F77="$F77" # Let the user override the test.
  22814. -else
  22815. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22816. -for as_dir in $PATH
  22817. -do
  22818. - IFS=$as_save_IFS
  22819. - test -z "$as_dir" && as_dir=.
  22820. - for ac_exec_ext in '' $ac_executable_extensions; do
  22821. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22822. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  22823. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22824. - break 2
  22825. - fi
  22826. -done
  22827. -done
  22828. -fi
  22829. -fi
  22830. -F77=$ac_cv_prog_F77
  22831. -if test -n "$F77"; then
  22832. - echo "$as_me:$LINENO: result: $F77" >&5
  22833. -echo "${ECHO_T}$F77" >&6
  22834. -else
  22835. - echo "$as_me:$LINENO: result: no" >&5
  22836. -echo "${ECHO_T}no" >&6
  22837. -fi
  22838. +# Determine commands to create old-style static archives.
  22839. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22840. +old_postinstall_cmds='chmod 644 $oldlib'
  22841. +old_postuninstall_cmds=
  22842. - test -n "$F77" && break
  22843. - done
  22844. +if test -n "$RANLIB"; then
  22845. + case $host_os in
  22846. + openbsd*)
  22847. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22848. + ;;
  22849. + *)
  22850. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22851. + ;;
  22852. + esac
  22853. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22854. fi
  22855. -if test -z "$F77"; then
  22856. - ac_ct_F77=$F77
  22857. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  22858. -do
  22859. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22860. -set dummy $ac_prog; ac_word=$2
  22861. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22862. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22863. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  22864. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22865. -else
  22866. - if test -n "$ac_ct_F77"; then
  22867. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  22868. -else
  22869. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22870. -for as_dir in $PATH
  22871. -do
  22872. - IFS=$as_save_IFS
  22873. - test -z "$as_dir" && as_dir=.
  22874. - for ac_exec_ext in '' $ac_executable_extensions; do
  22875. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22876. - ac_cv_prog_ac_ct_F77="$ac_prog"
  22877. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22878. - break 2
  22879. - fi
  22880. -done
  22881. -done
  22882. -fi
  22883. -fi
  22884. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  22885. -if test -n "$ac_ct_F77"; then
  22886. - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  22887. -echo "${ECHO_T}$ac_ct_F77" >&6
  22888. -else
  22889. - echo "$as_me:$LINENO: result: no" >&5
  22890. -echo "${ECHO_T}no" >&6
  22891. -fi
  22892. - test -n "$ac_ct_F77" && break
  22893. -done
  22894. - F77=$ac_ct_F77
  22895. -fi
  22896. -# Provide some information about the compiler.
  22897. -echo "$as_me:5338:" \
  22898. - "checking for Fortran 77 compiler version" >&5
  22899. -ac_compiler=`set X $ac_compile; echo $2`
  22900. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  22901. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  22902. - ac_status=$?
  22903. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22904. - (exit $ac_status); }
  22905. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  22906. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  22907. - ac_status=$?
  22908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22909. - (exit $ac_status); }
  22910. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  22911. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  22912. - ac_status=$?
  22913. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22914. - (exit $ac_status); }
  22915. -rm -f a.out
  22916. -
  22917. -# If we don't use `.F' as extension, the preprocessor is not run on the
  22918. -# input file. (Note that this only needs to work for GNU compilers.)
  22919. -ac_save_ext=$ac_ext
  22920. -ac_ext=F
  22921. -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  22922. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  22923. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  22924. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22925. -else
  22926. - cat >conftest.$ac_ext <<_ACEOF
  22927. - program main
  22928. -#ifndef __GNUC__
  22929. - choke me
  22930. -#endif
  22931. - end
  22932. -_ACEOF
  22933. -rm -f conftest.$ac_objext
  22934. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22935. - (eval $ac_compile) 2>conftest.er1
  22936. - ac_status=$?
  22937. - grep -v '^ *+' conftest.er1 >conftest.err
  22938. - rm -f conftest.er1
  22939. - cat conftest.err >&5
  22940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22941. - (exit $ac_status); } &&
  22942. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22943. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22944. - (eval $ac_try) 2>&5
  22945. - ac_status=$?
  22946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22947. - (exit $ac_status); }; } &&
  22948. - { ac_try='test -s conftest.$ac_objext'
  22949. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22950. - (eval $ac_try) 2>&5
  22951. - ac_status=$?
  22952. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22953. - (exit $ac_status); }; }; then
  22954. - ac_compiler_gnu=yes
  22955. -else
  22956. - echo "$as_me: failed program was:" >&5
  22957. -sed 's/^/| /' conftest.$ac_ext >&5
  22958. -ac_compiler_gnu=no
  22959. -fi
  22960. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22961. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  22962. -fi
  22963. -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  22964. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  22965. -ac_ext=$ac_save_ext
  22966. -ac_test_FFLAGS=${FFLAGS+set}
  22967. -ac_save_FFLAGS=$FFLAGS
  22968. -FFLAGS=
  22969. -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  22970. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  22971. -if test "${ac_cv_prog_f77_g+set}" = set; then
  22972. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22973. -else
  22974. - FFLAGS=-g
  22975. -cat >conftest.$ac_ext <<_ACEOF
  22976. - program main
  22977. - end
  22978. -_ACEOF
  22979. -rm -f conftest.$ac_objext
  22980. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22981. - (eval $ac_compile) 2>conftest.er1
  22982. - ac_status=$?
  22983. - grep -v '^ *+' conftest.er1 >conftest.err
  22984. - rm -f conftest.er1
  22985. - cat conftest.err >&5
  22986. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22987. - (exit $ac_status); } &&
  22988. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22989. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22990. - (eval $ac_try) 2>&5
  22991. - ac_status=$?
  22992. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22993. - (exit $ac_status); }; } &&
  22994. - { ac_try='test -s conftest.$ac_objext'
  22995. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22996. - (eval $ac_try) 2>&5
  22997. - ac_status=$?
  22998. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22999. - (exit $ac_status); }; }; then
  23000. - ac_cv_prog_f77_g=yes
  23001. -else
  23002. - echo "$as_me: failed program was:" >&5
  23003. -sed 's/^/| /' conftest.$ac_ext >&5
  23004. -ac_cv_prog_f77_g=no
  23005. -fi
  23006. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23007. -fi
  23008. -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  23009. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  23010. -if test "$ac_test_FFLAGS" = set; then
  23011. - FFLAGS=$ac_save_FFLAGS
  23012. -elif test $ac_cv_prog_f77_g = yes; then
  23013. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23014. - FFLAGS="-g -O2"
  23015. - else
  23016. - FFLAGS="-g"
  23017. - fi
  23018. -else
  23019. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23020. - FFLAGS="-O2"
  23021. - else
  23022. - FFLAGS=
  23023. - fi
  23024. -fi
  23025. -G77=`test $ac_compiler_gnu = yes && echo yes`
  23026. -ac_ext=c
  23027. -ac_cpp='$CPP $CPPFLAGS'
  23028. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23029. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23030. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23031. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  23032. -# find the maximum length of command line arguments
  23033. -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  23034. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  23035. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  23036. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23037. -else
  23038. - i=0
  23039. - teststring="ABCD"
  23040. - case $build_os in
  23041. - msdosdjgpp*)
  23042. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  23043. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  23044. - # during glob expansion). Even if it were fixed, the result of this
  23045. - # check would be larger than it should be.
  23046. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23047. - ;;
  23048. - gnu*)
  23049. - # Under GNU Hurd, this test is not required because there is
  23050. - # no limit to the length of command line arguments.
  23051. - # Libtool will interpret -1 as no limit whatsoever
  23052. - lt_cv_sys_max_cmd_len=-1;
  23053. - ;;
  23054. - cygwin* | mingw*)
  23055. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  23056. - # about 5 minutes as the teststring grows exponentially.
  23057. - # Worse, since 9x/ME are not pre-emptively multitasking,
  23058. - # you end up with a "frozen" computer, even though with patience
  23059. - # the test eventually succeeds (with a max line length of 256k).
  23060. - # Instead, let's just punt: use the minimum linelength reported by
  23061. - # all of the supported platforms: 8192 (on NT/2K/XP).
  23062. - lt_cv_sys_max_cmd_len=8192;
  23063. - ;;
  23064. - amigaos*)
  23065. - # On AmigaOS with pdksh, this test takes hours, literally.
  23066. - # So we just punt and use a minimum line length of 8192.
  23067. - lt_cv_sys_max_cmd_len=8192;
  23068. - ;;
  23069. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23070. - # This has been around since 386BSD, at least. Likely further.
  23071. - if test -x /sbin/sysctl; then
  23072. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23073. - elif test -x /usr/sbin/sysctl; then
  23074. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23075. - else
  23076. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  23077. - fi
  23078. - # And add a safety zone
  23079. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23080. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23081. - ;;
  23082. - interix*)
  23083. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  23084. - lt_cv_sys_max_cmd_len=196608
  23085. - ;;
  23086. - osf*)
  23087. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23088. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23089. - # nice to cause kernel panics so lets avoid the loop below.
  23090. - # First set a reasonable default.
  23091. - lt_cv_sys_max_cmd_len=16384
  23092. - #
  23093. - if test -x /sbin/sysconfig; then
  23094. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23095. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23096. - esac
  23097. - fi
  23098. - ;;
  23099. - sco3.2v5*)
  23100. - lt_cv_sys_max_cmd_len=102400
  23101. - ;;
  23102. - sysv5* | sco5v6* | sysv4.2uw2*)
  23103. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  23104. - if test -n "$kargmax"; then
  23105. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  23106. - else
  23107. - lt_cv_sys_max_cmd_len=32768
  23108. - fi
  23109. - ;;
  23110. - *)
  23111. - # If test is not a shell built-in, we'll probably end up computing a
  23112. - # maximum length that is only half of the actual maximum length, but
  23113. - # we can't tell.
  23114. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  23115. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  23116. - = "XX$teststring") >/dev/null 2>&1 &&
  23117. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  23118. - lt_cv_sys_max_cmd_len=$new_result &&
  23119. - test $i != 17 # 1/2 MB should be enough
  23120. - do
  23121. - i=`expr $i + 1`
  23122. - teststring=$teststring$teststring
  23123. - done
  23124. - teststring=
  23125. - # Add a significant safety factor because C++ compilers can tack on massive
  23126. - # amounts of additional arguments before passing them to the linker.
  23127. - # It appears as though 1/2 is a usable value.
  23128. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23129. - ;;
  23130. - esac
  23131. -fi
  23132. -if test -n $lt_cv_sys_max_cmd_len ; then
  23133. - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  23134. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  23135. -else
  23136. - echo "$as_me:$LINENO: result: none" >&5
  23137. -echo "${ECHO_T}none" >&6
  23138. -fi
  23139. +
  23140. +
  23141. +
  23142. +
  23143. +
  23144. +# If no C compiler was specified, use CC.
  23145. +LTCC=${LTCC-"$CC"}
  23146. +
  23147. +# If no C compiler flags were specified, use CFLAGS.
  23148. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23149. +
  23150. +# Allow CC to be a program name with arguments.
  23151. +compiler=$CC
  23152. +
  23153. +
  23154. # Check for command to grab the raw symbol name followed by C symbol from nm.
  23155. -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  23156. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  23157. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  23158. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23160. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23161. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23162. + $as_echo_n "(cached) " >&6
  23163. else
  23164. # These are sane defaults that work on at least a few old systems.
  23165. @@ -5617,33 +5540,18 @@
  23166. # Regexp to match symbols that can be accessed directly from C.
  23167. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23168. -# Transform an extracted symbol line into a proper C declaration
  23169. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  23170. -
  23171. -# Transform an extracted symbol line into symbol name and symbol address
  23172. -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'"
  23173. -
  23174. # Define system-specific variables.
  23175. case $host_os in
  23176. aix*)
  23177. symcode='[BCDT]'
  23178. ;;
  23179. -cygwin* | mingw* | pw32*)
  23180. +cygwin* | mingw* | pw32* | cegcc*)
  23181. symcode='[ABCDGISTW]'
  23182. ;;
  23183. -hpux*) # Its linker distinguishes data from code symbols
  23184. +hpux*)
  23185. if test "$host_cpu" = ia64; then
  23186. symcode='[ABCDEGRST]'
  23187. fi
  23188. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23189. - 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'"
  23190. - ;;
  23191. -linux*)
  23192. - if test "$host_cpu" = ia64; then
  23193. - symcode='[ABCDGIRSTW]'
  23194. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23195. - 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'"
  23196. - fi
  23197. ;;
  23198. irix* | nonstopux*)
  23199. symcode='[BCDEGRST]'
  23200. @@ -5668,57 +5576,85 @@
  23201. ;;
  23202. esac
  23203. +# If we're using GNU nm, then use its standard symbol codes.
  23204. +case `$NM -V 2>&1` in
  23205. +*GNU* | *'with BFD'*)
  23206. + symcode='[ABCDGIRSTW]' ;;
  23207. +esac
  23208. +
  23209. +# Transform an extracted symbol line into a proper C declaration.
  23210. +# Some systems (esp. on ia64) link data and code symbols differently,
  23211. +# so use this general approach.
  23212. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23213. +
  23214. +# Transform an extracted symbol line into symbol name and symbol address
  23215. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23216. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  23217. +
  23218. # Handle CRLF in mingw tool chain
  23219. opt_cr=
  23220. case $build_os in
  23221. mingw*)
  23222. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23223. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23224. ;;
  23225. esac
  23226. -# If we're using GNU nm, then use its standard symbol codes.
  23227. -case `$NM -V 2>&1` in
  23228. -*GNU* | *'with BFD'*)
  23229. - symcode='[ABCDGIRSTW]' ;;
  23230. -esac
  23231. -
  23232. -# Try without a prefix undercore, then with it.
  23233. +# Try without a prefix underscore, then with it.
  23234. for ac_symprfx in "" "_"; do
  23235. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23236. symxfrm="\\1 $ac_symprfx\\2 \\2"
  23237. # Write the raw and C identifiers.
  23238. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23239. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23240. + # Fake it for dumpbin and say T for any non-static function
  23241. + # and D for any global variable.
  23242. + # Also find C++ and __fastcall symbols from MSVC++,
  23243. + # which start with @ or ?.
  23244. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23245. +" {last_section=section; section=\$ 3};"\
  23246. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23247. +" \$ 0!~/External *\|/{next};"\
  23248. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23249. +" {if(hide[section]) next};"\
  23250. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23251. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23252. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23253. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23254. +" ' prfx=^$ac_symprfx"
  23255. + else
  23256. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23257. + fi
  23258. # Check to see that the pipe works correctly.
  23259. pipe_works=no
  23260. rm -f conftest*
  23261. - cat > conftest.$ac_ext <<EOF
  23262. + cat > conftest.$ac_ext <<_LT_EOF
  23263. #ifdef __cplusplus
  23264. extern "C" {
  23265. #endif
  23266. char nm_test_var;
  23267. -void nm_test_func(){}
  23268. +void nm_test_func(void);
  23269. +void nm_test_func(void){}
  23270. #ifdef __cplusplus
  23271. }
  23272. #endif
  23273. int main(){nm_test_var='a';nm_test_func();return(0);}
  23274. -EOF
  23275. +_LT_EOF
  23276. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23277. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23278. (eval $ac_compile) 2>&5
  23279. ac_status=$?
  23280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23281. - (exit $ac_status); }; then
  23282. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23283. + test $ac_status = 0; }; then
  23284. # Now try to grab the symbols.
  23285. nlist=conftest.nm
  23286. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  23287. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23288. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23289. ac_status=$?
  23290. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23291. - (exit $ac_status); } && test -s "$nlist"; then
  23292. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23293. + test $ac_status = 0; } && test -s "$nlist"; then
  23294. # Try sorting and uniquifying the output.
  23295. if sort "$nlist" | uniq > "$nlist"T; then
  23296. mv -f "$nlist"T "$nlist"
  23297. @@ -5727,53 +5663,55 @@
  23298. fi
  23299. # Make sure that we snagged all the symbols we need.
  23300. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  23301. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  23302. - cat <<EOF > conftest.$ac_ext
  23303. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23304. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23305. + cat <<_LT_EOF > conftest.$ac_ext
  23306. #ifdef __cplusplus
  23307. extern "C" {
  23308. #endif
  23309. -EOF
  23310. +_LT_EOF
  23311. # Now generate the symbol file.
  23312. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  23313. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23314. - cat <<EOF >> conftest.$ac_ext
  23315. -#if defined (__STDC__) && __STDC__
  23316. -# define lt_ptr_t void *
  23317. -#else
  23318. -# define lt_ptr_t char *
  23319. -# define const
  23320. -#endif
  23321. + cat <<_LT_EOF >> conftest.$ac_ext
  23322. -/* The mapping between symbol names and symbols. */
  23323. +/* The mapping between symbol names and symbols. */
  23324. const struct {
  23325. const char *name;
  23326. - lt_ptr_t address;
  23327. + void *address;
  23328. }
  23329. -lt_preloaded_symbols[] =
  23330. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23331. {
  23332. -EOF
  23333. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  23334. - cat <<\EOF >> conftest.$ac_ext
  23335. - {0, (lt_ptr_t) 0}
  23336. + { "@PROGRAM@", (void *) 0 },
  23337. +_LT_EOF
  23338. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23339. + cat <<\_LT_EOF >> conftest.$ac_ext
  23340. + {0, (void *) 0}
  23341. };
  23342. +/* This works around a problem in FreeBSD linker */
  23343. +#ifdef FREEBSD_WORKAROUND
  23344. +static const void *lt_preloaded_setup() {
  23345. + return lt__PROGRAM__LTX_preloaded_symbols;
  23346. +}
  23347. +#endif
  23348. +
  23349. #ifdef __cplusplus
  23350. }
  23351. #endif
  23352. -EOF
  23353. +_LT_EOF
  23354. # Now try linking the two files.
  23355. mv conftest.$ac_objext conftstm.$ac_objext
  23356. lt_save_LIBS="$LIBS"
  23357. lt_save_CFLAGS="$CFLAGS"
  23358. LIBS="conftstm.$ac_objext"
  23359. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23360. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23361. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23362. (eval $ac_link) 2>&5
  23363. ac_status=$?
  23364. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23365. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  23366. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23367. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23368. pipe_works=yes
  23369. fi
  23370. LIBS="$lt_save_LIBS"
  23371. @@ -5791,7 +5729,7 @@
  23372. echo "$progname: failed program was:" >&5
  23373. cat conftest.$ac_ext >&5
  23374. fi
  23375. - rm -f conftest* conftst*
  23376. + rm -rf conftest* conftst*
  23377. # Do not use the global_symbol_pipe unless it works.
  23378. if test "$pipe_works" = yes; then
  23379. @@ -5807,7652 +5745,1360 @@
  23380. lt_cv_sys_global_symbol_to_cdecl=
  23381. fi
  23382. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23383. - echo "$as_me:$LINENO: result: failed" >&5
  23384. -echo "${ECHO_T}failed" >&6
  23385. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23386. +$as_echo "failed" >&6; }
  23387. else
  23388. - echo "$as_me:$LINENO: result: ok" >&5
  23389. -echo "${ECHO_T}ok" >&6
  23390. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  23391. +$as_echo "ok" >&6; }
  23392. fi
  23393. -echo "$as_me:$LINENO: checking for objdir" >&5
  23394. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  23395. -if test "${lt_cv_objdir+set}" = set; then
  23396. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23397. -else
  23398. - rm -f .libs 2>/dev/null
  23399. -mkdir .libs 2>/dev/null
  23400. -if test -d .libs; then
  23401. - lt_cv_objdir=.libs
  23402. -else
  23403. - # MS-DOS does not allow filenames that begin with a dot.
  23404. - lt_cv_objdir=_libs
  23405. -fi
  23406. -rmdir .libs 2>/dev/null
  23407. -fi
  23408. -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  23409. -echo "${ECHO_T}$lt_cv_objdir" >&6
  23410. -objdir=$lt_cv_objdir
  23411. -case $host_os in
  23412. -aix3*)
  23413. - # AIX sometimes has problems with the GCC collect2 program. For some
  23414. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  23415. - # vanish in a puff of smoke.
  23416. - if test "X${COLLECT_NAMES+set}" != Xset; then
  23417. - COLLECT_NAMES=
  23418. - export COLLECT_NAMES
  23419. +
  23420. +
  23421. +
  23422. +
  23423. +
  23424. +
  23425. +
  23426. +
  23427. +
  23428. +
  23429. +
  23430. +
  23431. +
  23432. +
  23433. +
  23434. +
  23435. +
  23436. +# Check whether --enable-libtool-lock was given.
  23437. +if test "${enable_libtool_lock+set}" = set; then :
  23438. + enableval=$enable_libtool_lock;
  23439. +fi
  23440. +
  23441. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23442. +
  23443. +# Some flags need to be propagated to the compiler or linker for good
  23444. +# libtool support.
  23445. +case $host in
  23446. +ia64-*-hpux*)
  23447. + # Find out which ABI we are using.
  23448. + echo 'int i;' > conftest.$ac_ext
  23449. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23450. + (eval $ac_compile) 2>&5
  23451. + ac_status=$?
  23452. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23453. + test $ac_status = 0; }; then
  23454. + case `/usr/bin/file conftest.$ac_objext` in
  23455. + *ELF-32*)
  23456. + HPUX_IA64_MODE="32"
  23457. + ;;
  23458. + *ELF-64*)
  23459. + HPUX_IA64_MODE="64"
  23460. + ;;
  23461. + esac
  23462. fi
  23463. + rm -rf conftest*
  23464. + ;;
  23465. +*-*-irix6*)
  23466. + # Find out which ABI we are using.
  23467. + echo '#line 5808 "configure"' > conftest.$ac_ext
  23468. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23469. + (eval $ac_compile) 2>&5
  23470. + ac_status=$?
  23471. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23472. + test $ac_status = 0; }; then
  23473. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23474. + case `/usr/bin/file conftest.$ac_objext` in
  23475. + *32-bit*)
  23476. + LD="${LD-ld} -melf32bsmip"
  23477. + ;;
  23478. + *N32*)
  23479. + LD="${LD-ld} -melf32bmipn32"
  23480. + ;;
  23481. + *64-bit*)
  23482. + LD="${LD-ld} -melf64bmip"
  23483. + ;;
  23484. + esac
  23485. + else
  23486. + case `/usr/bin/file conftest.$ac_objext` in
  23487. + *32-bit*)
  23488. + LD="${LD-ld} -32"
  23489. + ;;
  23490. + *N32*)
  23491. + LD="${LD-ld} -n32"
  23492. + ;;
  23493. + *64-bit*)
  23494. + LD="${LD-ld} -64"
  23495. + ;;
  23496. + esac
  23497. + fi
  23498. + fi
  23499. + rm -rf conftest*
  23500. ;;
  23501. -esac
  23502. -# Sed substitution that helps us do robust quoting. It backslashifies
  23503. -# metacharacters that are still active within double-quoted strings.
  23504. -Xsed='sed -e 1s/^X//'
  23505. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  23506. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  23507. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  23508. + # Find out which ABI we are using.
  23509. + echo 'int i;' > conftest.$ac_ext
  23510. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23511. + (eval $ac_compile) 2>&5
  23512. + ac_status=$?
  23513. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23514. + test $ac_status = 0; }; then
  23515. + case `/usr/bin/file conftest.o` in
  23516. + *32-bit*)
  23517. + case $host in
  23518. + x86_64-*kfreebsd*-gnu)
  23519. + LD="${LD-ld} -m elf_i386_fbsd"
  23520. + ;;
  23521. + x86_64-*linux*)
  23522. + LD="${LD-ld} -m elf_i386"
  23523. + ;;
  23524. + ppc64-*linux*|powerpc64-*linux*)
  23525. + LD="${LD-ld} -m elf32ppclinux"
  23526. + ;;
  23527. + s390x-*linux*)
  23528. + LD="${LD-ld} -m elf_s390"
  23529. + ;;
  23530. + sparc64-*linux*)
  23531. + LD="${LD-ld} -m elf32_sparc"
  23532. + ;;
  23533. + esac
  23534. + ;;
  23535. + *64-bit*)
  23536. + case $host in
  23537. + x86_64-*kfreebsd*-gnu)
  23538. + LD="${LD-ld} -m elf_x86_64_fbsd"
  23539. + ;;
  23540. + x86_64-*linux*)
  23541. + LD="${LD-ld} -m elf_x86_64"
  23542. + ;;
  23543. + ppc*-*linux*|powerpc*-*linux*)
  23544. + LD="${LD-ld} -m elf64ppc"
  23545. + ;;
  23546. + s390*-*linux*|s390*-*tpf*)
  23547. + LD="${LD-ld} -m elf64_s390"
  23548. + ;;
  23549. + sparc*-*linux*)
  23550. + LD="${LD-ld} -m elf64_sparc"
  23551. + ;;
  23552. + esac
  23553. + ;;
  23554. + esac
  23555. + fi
  23556. + rm -rf conftest*
  23557. + ;;
  23558. -# Same as above, but do not quote variable references.
  23559. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  23560. +*-*-sco3.2v5*)
  23561. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  23562. + SAVE_CFLAGS="$CFLAGS"
  23563. + CFLAGS="$CFLAGS -belf"
  23564. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  23565. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  23566. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  23567. + $as_echo_n "(cached) " >&6
  23568. +else
  23569. + ac_ext=c
  23570. +ac_cpp='$CPP $CPPFLAGS'
  23571. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23572. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23573. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23574. -# Sed substitution to delay expansion of an escaped shell variable in a
  23575. -# double_quote_subst'ed string.
  23576. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23577. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23578. +/* end confdefs.h. */
  23579. -# Sed substitution to avoid accidental globbing in evaled expressions
  23580. -no_glob_subst='s/\*/\\\*/g'
  23581. +int
  23582. +main ()
  23583. +{
  23584. +
  23585. + ;
  23586. + return 0;
  23587. +}
  23588. +_ACEOF
  23589. +if ac_fn_c_try_link "$LINENO"; then :
  23590. + lt_cv_cc_needs_belf=yes
  23591. +else
  23592. + lt_cv_cc_needs_belf=no
  23593. +fi
  23594. +rm -f core conftest.err conftest.$ac_objext \
  23595. + conftest$ac_exeext conftest.$ac_ext
  23596. + ac_ext=c
  23597. +ac_cpp='$CPP $CPPFLAGS'
  23598. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23599. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23600. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23601. -# Constants:
  23602. -rm="rm -f"
  23603. +fi
  23604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  23605. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  23606. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  23607. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  23608. + CFLAGS="$SAVE_CFLAGS"
  23609. + fi
  23610. + ;;
  23611. +sparc*-*solaris*)
  23612. + # Find out which ABI we are using.
  23613. + echo 'int i;' > conftest.$ac_ext
  23614. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23615. + (eval $ac_compile) 2>&5
  23616. + ac_status=$?
  23617. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23618. + test $ac_status = 0; }; then
  23619. + case `/usr/bin/file conftest.o` in
  23620. + *64-bit*)
  23621. + case $lt_cv_prog_gnu_ld in
  23622. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  23623. + *)
  23624. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  23625. + LD="${LD-ld} -64"
  23626. + fi
  23627. + ;;
  23628. + esac
  23629. + ;;
  23630. + esac
  23631. + fi
  23632. + rm -rf conftest*
  23633. + ;;
  23634. +esac
  23635. -# Global variables:
  23636. -default_ofile=libtool
  23637. -can_build_shared=yes
  23638. +need_locks="$enable_libtool_lock"
  23639. -# All known linkers require a `.a' archive for static linking (except MSVC,
  23640. -# which needs '.lib').
  23641. -libext=a
  23642. -ltmain="$ac_aux_dir/ltmain.sh"
  23643. -ofile="$default_ofile"
  23644. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  23645. -if test -n "$ac_tool_prefix"; then
  23646. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  23647. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  23648. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23649. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23650. -if test "${ac_cv_prog_AR+set}" = set; then
  23651. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23652. + case $host_os in
  23653. + rhapsody* | darwin*)
  23654. + if test -n "$ac_tool_prefix"; then
  23655. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  23656. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  23657. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23658. +$as_echo_n "checking for $ac_word... " >&6; }
  23659. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  23660. + $as_echo_n "(cached) " >&6
  23661. else
  23662. - if test -n "$AR"; then
  23663. - ac_cv_prog_AR="$AR" # Let the user override the test.
  23664. + if test -n "$DSYMUTIL"; then
  23665. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  23666. else
  23667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23668. for as_dir in $PATH
  23669. do
  23670. IFS=$as_save_IFS
  23671. test -z "$as_dir" && as_dir=.
  23672. - for ac_exec_ext in '' $ac_executable_extensions; do
  23673. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23674. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  23675. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23676. + for ac_exec_ext in '' $ac_executable_extensions; do
  23677. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23678. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  23679. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23680. break 2
  23681. fi
  23682. done
  23683. -done
  23684. + done
  23685. +IFS=$as_save_IFS
  23686. fi
  23687. fi
  23688. -AR=$ac_cv_prog_AR
  23689. -if test -n "$AR"; then
  23690. - echo "$as_me:$LINENO: result: $AR" >&5
  23691. -echo "${ECHO_T}$AR" >&6
  23692. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  23693. +if test -n "$DSYMUTIL"; then
  23694. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  23695. +$as_echo "$DSYMUTIL" >&6; }
  23696. else
  23697. - echo "$as_me:$LINENO: result: no" >&5
  23698. -echo "${ECHO_T}no" >&6
  23699. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23700. +$as_echo "no" >&6; }
  23701. fi
  23702. +
  23703. fi
  23704. -if test -z "$ac_cv_prog_AR"; then
  23705. - ac_ct_AR=$AR
  23706. - # Extract the first word of "ar", so it can be a program name with args.
  23707. -set dummy ar; ac_word=$2
  23708. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23709. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23710. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  23711. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23712. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  23713. + ac_ct_DSYMUTIL=$DSYMUTIL
  23714. + # Extract the first word of "dsymutil", so it can be a program name with args.
  23715. +set dummy dsymutil; ac_word=$2
  23716. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23717. +$as_echo_n "checking for $ac_word... " >&6; }
  23718. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  23719. + $as_echo_n "(cached) " >&6
  23720. else
  23721. - if test -n "$ac_ct_AR"; then
  23722. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  23723. + if test -n "$ac_ct_DSYMUTIL"; then
  23724. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  23725. else
  23726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23727. for as_dir in $PATH
  23728. do
  23729. IFS=$as_save_IFS
  23730. test -z "$as_dir" && as_dir=.
  23731. - for ac_exec_ext in '' $ac_executable_extensions; do
  23732. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23733. - ac_cv_prog_ac_ct_AR="ar"
  23734. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23735. + for ac_exec_ext in '' $ac_executable_extensions; do
  23736. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23737. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  23738. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23739. break 2
  23740. fi
  23741. done
  23742. -done
  23743. + done
  23744. +IFS=$as_save_IFS
  23745. - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  23746. fi
  23747. fi
  23748. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  23749. -if test -n "$ac_ct_AR"; then
  23750. - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  23751. -echo "${ECHO_T}$ac_ct_AR" >&6
  23752. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  23753. +if test -n "$ac_ct_DSYMUTIL"; then
  23754. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  23755. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  23756. else
  23757. - echo "$as_me:$LINENO: result: no" >&5
  23758. -echo "${ECHO_T}no" >&6
  23759. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23760. +$as_echo "no" >&6; }
  23761. fi
  23762. - AR=$ac_ct_AR
  23763. + if test "x$ac_ct_DSYMUTIL" = x; then
  23764. + DSYMUTIL=":"
  23765. + else
  23766. + case $cross_compiling:$ac_tool_warned in
  23767. +yes:)
  23768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23769. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23770. +ac_tool_warned=yes ;;
  23771. +esac
  23772. + DSYMUTIL=$ac_ct_DSYMUTIL
  23773. + fi
  23774. else
  23775. - AR="$ac_cv_prog_AR"
  23776. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  23777. fi
  23778. -if test -n "$ac_tool_prefix"; then
  23779. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23780. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23781. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23782. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23783. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  23784. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23785. + if test -n "$ac_tool_prefix"; then
  23786. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  23787. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  23788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23789. +$as_echo_n "checking for $ac_word... " >&6; }
  23790. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  23791. + $as_echo_n "(cached) " >&6
  23792. else
  23793. - if test -n "$RANLIB"; then
  23794. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23795. + if test -n "$NMEDIT"; then
  23796. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  23797. else
  23798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23799. for as_dir in $PATH
  23800. do
  23801. IFS=$as_save_IFS
  23802. test -z "$as_dir" && as_dir=.
  23803. - for ac_exec_ext in '' $ac_executable_extensions; do
  23804. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23805. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23806. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23807. + for ac_exec_ext in '' $ac_executable_extensions; do
  23808. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23809. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  23810. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23811. break 2
  23812. fi
  23813. done
  23814. -done
  23815. + done
  23816. +IFS=$as_save_IFS
  23817. fi
  23818. fi
  23819. -RANLIB=$ac_cv_prog_RANLIB
  23820. -if test -n "$RANLIB"; then
  23821. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  23822. -echo "${ECHO_T}$RANLIB" >&6
  23823. +NMEDIT=$ac_cv_prog_NMEDIT
  23824. +if test -n "$NMEDIT"; then
  23825. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  23826. +$as_echo "$NMEDIT" >&6; }
  23827. else
  23828. - echo "$as_me:$LINENO: result: no" >&5
  23829. -echo "${ECHO_T}no" >&6
  23830. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23831. +$as_echo "no" >&6; }
  23832. fi
  23833. +
  23834. fi
  23835. -if test -z "$ac_cv_prog_RANLIB"; then
  23836. - ac_ct_RANLIB=$RANLIB
  23837. - # Extract the first word of "ranlib", so it can be a program name with args.
  23838. -set dummy ranlib; ac_word=$2
  23839. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23840. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23841. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  23842. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23843. +if test -z "$ac_cv_prog_NMEDIT"; then
  23844. + ac_ct_NMEDIT=$NMEDIT
  23845. + # Extract the first word of "nmedit", so it can be a program name with args.
  23846. +set dummy nmedit; ac_word=$2
  23847. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23848. +$as_echo_n "checking for $ac_word... " >&6; }
  23849. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  23850. + $as_echo_n "(cached) " >&6
  23851. else
  23852. - if test -n "$ac_ct_RANLIB"; then
  23853. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23854. + if test -n "$ac_ct_NMEDIT"; then
  23855. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  23856. else
  23857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23858. for as_dir in $PATH
  23859. do
  23860. IFS=$as_save_IFS
  23861. test -z "$as_dir" && as_dir=.
  23862. - for ac_exec_ext in '' $ac_executable_extensions; do
  23863. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23864. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  23865. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23866. + for ac_exec_ext in '' $ac_executable_extensions; do
  23867. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23868. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  23869. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23870. break 2
  23871. fi
  23872. done
  23873. -done
  23874. + done
  23875. +IFS=$as_save_IFS
  23876. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  23877. fi
  23878. fi
  23879. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23880. -if test -n "$ac_ct_RANLIB"; then
  23881. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  23882. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  23883. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  23884. +if test -n "$ac_ct_NMEDIT"; then
  23885. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  23886. +$as_echo "$ac_ct_NMEDIT" >&6; }
  23887. else
  23888. - echo "$as_me:$LINENO: result: no" >&5
  23889. -echo "${ECHO_T}no" >&6
  23890. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23891. +$as_echo "no" >&6; }
  23892. fi
  23893. - RANLIB=$ac_ct_RANLIB
  23894. + if test "x$ac_ct_NMEDIT" = x; then
  23895. + NMEDIT=":"
  23896. + else
  23897. + case $cross_compiling:$ac_tool_warned in
  23898. +yes:)
  23899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23900. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23901. +ac_tool_warned=yes ;;
  23902. +esac
  23903. + NMEDIT=$ac_ct_NMEDIT
  23904. + fi
  23905. else
  23906. - RANLIB="$ac_cv_prog_RANLIB"
  23907. + NMEDIT="$ac_cv_prog_NMEDIT"
  23908. fi
  23909. -if test -n "$ac_tool_prefix"; then
  23910. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23911. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  23912. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23913. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23914. -if test "${ac_cv_prog_STRIP+set}" = set; then
  23915. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23916. + if test -n "$ac_tool_prefix"; then
  23917. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  23918. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  23919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23920. +$as_echo_n "checking for $ac_word... " >&6; }
  23921. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  23922. + $as_echo_n "(cached) " >&6
  23923. else
  23924. - if test -n "$STRIP"; then
  23925. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23926. + if test -n "$LIPO"; then
  23927. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  23928. else
  23929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23930. for as_dir in $PATH
  23931. do
  23932. IFS=$as_save_IFS
  23933. test -z "$as_dir" && as_dir=.
  23934. - for ac_exec_ext in '' $ac_executable_extensions; do
  23935. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23936. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23937. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23938. + for ac_exec_ext in '' $ac_executable_extensions; do
  23939. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23940. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  23941. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23942. break 2
  23943. fi
  23944. done
  23945. -done
  23946. + done
  23947. +IFS=$as_save_IFS
  23948. fi
  23949. fi
  23950. -STRIP=$ac_cv_prog_STRIP
  23951. -if test -n "$STRIP"; then
  23952. - echo "$as_me:$LINENO: result: $STRIP" >&5
  23953. -echo "${ECHO_T}$STRIP" >&6
  23954. +LIPO=$ac_cv_prog_LIPO
  23955. +if test -n "$LIPO"; then
  23956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  23957. +$as_echo "$LIPO" >&6; }
  23958. else
  23959. - echo "$as_me:$LINENO: result: no" >&5
  23960. -echo "${ECHO_T}no" >&6
  23961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23962. +$as_echo "no" >&6; }
  23963. fi
  23964. +
  23965. fi
  23966. -if test -z "$ac_cv_prog_STRIP"; then
  23967. - ac_ct_STRIP=$STRIP
  23968. - # Extract the first word of "strip", so it can be a program name with args.
  23969. -set dummy strip; ac_word=$2
  23970. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23971. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23972. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  23973. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23974. +if test -z "$ac_cv_prog_LIPO"; then
  23975. + ac_ct_LIPO=$LIPO
  23976. + # Extract the first word of "lipo", so it can be a program name with args.
  23977. +set dummy lipo; ac_word=$2
  23978. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23979. +$as_echo_n "checking for $ac_word... " >&6; }
  23980. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  23981. + $as_echo_n "(cached) " >&6
  23982. else
  23983. - if test -n "$ac_ct_STRIP"; then
  23984. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23985. + if test -n "$ac_ct_LIPO"; then
  23986. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  23987. else
  23988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23989. for as_dir in $PATH
  23990. do
  23991. IFS=$as_save_IFS
  23992. test -z "$as_dir" && as_dir=.
  23993. - for ac_exec_ext in '' $ac_executable_extensions; do
  23994. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23995. - ac_cv_prog_ac_ct_STRIP="strip"
  23996. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23997. + for ac_exec_ext in '' $ac_executable_extensions; do
  23998. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23999. + ac_cv_prog_ac_ct_LIPO="lipo"
  24000. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24001. break 2
  24002. fi
  24003. done
  24004. -done
  24005. + done
  24006. +IFS=$as_save_IFS
  24007. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  24008. fi
  24009. fi
  24010. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24011. -if test -n "$ac_ct_STRIP"; then
  24012. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  24013. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  24014. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24015. +if test -n "$ac_ct_LIPO"; then
  24016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24017. +$as_echo "$ac_ct_LIPO" >&6; }
  24018. else
  24019. - echo "$as_me:$LINENO: result: no" >&5
  24020. -echo "${ECHO_T}no" >&6
  24021. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24022. +$as_echo "no" >&6; }
  24023. fi
  24024. - STRIP=$ac_ct_STRIP
  24025. + if test "x$ac_ct_LIPO" = x; then
  24026. + LIPO=":"
  24027. + else
  24028. + case $cross_compiling:$ac_tool_warned in
  24029. +yes:)
  24030. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24031. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24032. +ac_tool_warned=yes ;;
  24033. +esac
  24034. + LIPO=$ac_ct_LIPO
  24035. + fi
  24036. else
  24037. - STRIP="$ac_cv_prog_STRIP"
  24038. -fi
  24039. -
  24040. -
  24041. -old_CC="$CC"
  24042. -old_CFLAGS="$CFLAGS"
  24043. -
  24044. -# Set sane defaults for various variables
  24045. -test -z "$AR" && AR=ar
  24046. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  24047. -test -z "$AS" && AS=as
  24048. -test -z "$CC" && CC=cc
  24049. -test -z "$LTCC" && LTCC=$CC
  24050. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  24051. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  24052. -test -z "$LD" && LD=ld
  24053. -test -z "$LN_S" && LN_S="ln -s"
  24054. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  24055. -test -z "$NM" && NM=nm
  24056. -test -z "$SED" && SED=sed
  24057. -test -z "$OBJDUMP" && OBJDUMP=objdump
  24058. -test -z "$RANLIB" && RANLIB=:
  24059. -test -z "$STRIP" && STRIP=:
  24060. -test -z "$ac_objext" && ac_objext=o
  24061. -
  24062. -# Determine commands to create old-style static archives.
  24063. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  24064. -old_postinstall_cmds='chmod 644 $oldlib'
  24065. -old_postuninstall_cmds=
  24066. -
  24067. -if test -n "$RANLIB"; then
  24068. - case $host_os in
  24069. - openbsd*)
  24070. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  24071. - ;;
  24072. - *)
  24073. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  24074. - ;;
  24075. - esac
  24076. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  24077. + LIPO="$ac_cv_prog_LIPO"
  24078. fi
  24079. -for cc_temp in $compiler""; do
  24080. - case $cc_temp in
  24081. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24082. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24083. - \-*) ;;
  24084. - *) break;;
  24085. - esac
  24086. + if test -n "$ac_tool_prefix"; then
  24087. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24088. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24090. +$as_echo_n "checking for $ac_word... " >&6; }
  24091. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24092. + $as_echo_n "(cached) " >&6
  24093. +else
  24094. + if test -n "$OTOOL"; then
  24095. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24096. +else
  24097. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24098. +for as_dir in $PATH
  24099. +do
  24100. + IFS=$as_save_IFS
  24101. + test -z "$as_dir" && as_dir=.
  24102. + for ac_exec_ext in '' $ac_executable_extensions; do
  24103. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24104. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24105. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24106. + break 2
  24107. + fi
  24108. done
  24109. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24110. -
  24111. + done
  24112. +IFS=$as_save_IFS
  24113. -# Only perform the check for file, if the check method requires it
  24114. -case $deplibs_check_method in
  24115. -file_magic*)
  24116. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  24117. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  24118. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  24119. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24120. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24121. +fi
  24122. +fi
  24123. +OTOOL=$ac_cv_prog_OTOOL
  24124. +if test -n "$OTOOL"; then
  24125. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24126. +$as_echo "$OTOOL" >&6; }
  24127. else
  24128. - case $MAGIC_CMD in
  24129. -[\\/*] | ?:[\\/]*)
  24130. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24131. - ;;
  24132. -*)
  24133. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24134. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24135. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24136. - for ac_dir in $ac_dummy; do
  24137. - IFS="$lt_save_ifs"
  24138. - test -z "$ac_dir" && ac_dir=.
  24139. - if test -f $ac_dir/${ac_tool_prefix}file; then
  24140. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  24141. - if test -n "$file_magic_test_file"; then
  24142. - case $deplibs_check_method in
  24143. - "file_magic "*)
  24144. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24145. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24146. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24147. - $EGREP "$file_magic_regex" > /dev/null; then
  24148. - :
  24149. - else
  24150. - cat <<EOF 1>&2
  24151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24152. +$as_echo "no" >&6; }
  24153. +fi
  24154. -*** Warning: the command libtool uses to detect shared libraries,
  24155. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24156. -*** The result is that libtool may fail to recognize shared libraries
  24157. -*** as such. This will affect the creation of libtool libraries that
  24158. -*** depend on shared libraries, but programs linked with such libtool
  24159. -*** libraries will work regardless of this problem. Nevertheless, you
  24160. -*** may want to report the problem to your system manager and/or to
  24161. -*** bug-libtool@gnu.org
  24162. -EOF
  24163. - fi ;;
  24164. - esac
  24165. - fi
  24166. - break
  24167. - fi
  24168. - done
  24169. - IFS="$lt_save_ifs"
  24170. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24171. - ;;
  24172. -esac
  24173. fi
  24174. -
  24175. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24176. -if test -n "$MAGIC_CMD"; then
  24177. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24178. -echo "${ECHO_T}$MAGIC_CMD" >&6
  24179. +if test -z "$ac_cv_prog_OTOOL"; then
  24180. + ac_ct_OTOOL=$OTOOL
  24181. + # Extract the first word of "otool", so it can be a program name with args.
  24182. +set dummy otool; ac_word=$2
  24183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24184. +$as_echo_n "checking for $ac_word... " >&6; }
  24185. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24186. + $as_echo_n "(cached) " >&6
  24187. else
  24188. - echo "$as_me:$LINENO: result: no" >&5
  24189. -echo "${ECHO_T}no" >&6
  24190. -fi
  24191. -
  24192. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  24193. - if test -n "$ac_tool_prefix"; then
  24194. - echo "$as_me:$LINENO: checking for file" >&5
  24195. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  24196. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24197. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24198. + if test -n "$ac_ct_OTOOL"; then
  24199. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24200. else
  24201. - case $MAGIC_CMD in
  24202. -[\\/*] | ?:[\\/]*)
  24203. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24204. - ;;
  24205. -*)
  24206. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24207. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24208. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24209. - for ac_dir in $ac_dummy; do
  24210. - IFS="$lt_save_ifs"
  24211. - test -z "$ac_dir" && ac_dir=.
  24212. - if test -f $ac_dir/file; then
  24213. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  24214. - if test -n "$file_magic_test_file"; then
  24215. - case $deplibs_check_method in
  24216. - "file_magic "*)
  24217. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24218. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24219. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24220. - $EGREP "$file_magic_regex" > /dev/null; then
  24221. - :
  24222. - else
  24223. - cat <<EOF 1>&2
  24224. -
  24225. -*** Warning: the command libtool uses to detect shared libraries,
  24226. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24227. -*** The result is that libtool may fail to recognize shared libraries
  24228. -*** as such. This will affect the creation of libtool libraries that
  24229. -*** depend on shared libraries, but programs linked with such libtool
  24230. -*** libraries will work regardless of this problem. Nevertheless, you
  24231. -*** may want to report the problem to your system manager and/or to
  24232. -*** bug-libtool@gnu.org
  24233. -
  24234. -EOF
  24235. - fi ;;
  24236. - esac
  24237. - fi
  24238. - break
  24239. - fi
  24240. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24241. +for as_dir in $PATH
  24242. +do
  24243. + IFS=$as_save_IFS
  24244. + test -z "$as_dir" && as_dir=.
  24245. + for ac_exec_ext in '' $ac_executable_extensions; do
  24246. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24247. + ac_cv_prog_ac_ct_OTOOL="otool"
  24248. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24249. + break 2
  24250. + fi
  24251. +done
  24252. done
  24253. - IFS="$lt_save_ifs"
  24254. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24255. - ;;
  24256. -esac
  24257. -fi
  24258. +IFS=$as_save_IFS
  24259. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24260. -if test -n "$MAGIC_CMD"; then
  24261. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24262. -echo "${ECHO_T}$MAGIC_CMD" >&6
  24263. +fi
  24264. +fi
  24265. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24266. +if test -n "$ac_ct_OTOOL"; then
  24267. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24268. +$as_echo "$ac_ct_OTOOL" >&6; }
  24269. else
  24270. - echo "$as_me:$LINENO: result: no" >&5
  24271. -echo "${ECHO_T}no" >&6
  24272. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24273. +$as_echo "no" >&6; }
  24274. fi
  24275. + if test "x$ac_ct_OTOOL" = x; then
  24276. + OTOOL=":"
  24277. else
  24278. - MAGIC_CMD=:
  24279. + case $cross_compiling:$ac_tool_warned in
  24280. +yes:)
  24281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24282. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24283. +ac_tool_warned=yes ;;
  24284. +esac
  24285. + OTOOL=$ac_ct_OTOOL
  24286. fi
  24287. +else
  24288. + OTOOL="$ac_cv_prog_OTOOL"
  24289. fi
  24290. + if test -n "$ac_tool_prefix"; then
  24291. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  24292. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  24293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24294. +$as_echo_n "checking for $ac_word... " >&6; }
  24295. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  24296. + $as_echo_n "(cached) " >&6
  24297. +else
  24298. + if test -n "$OTOOL64"; then
  24299. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  24300. +else
  24301. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24302. +for as_dir in $PATH
  24303. +do
  24304. + IFS=$as_save_IFS
  24305. + test -z "$as_dir" && as_dir=.
  24306. + for ac_exec_ext in '' $ac_executable_extensions; do
  24307. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24308. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  24309. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24310. + break 2
  24311. fi
  24312. - ;;
  24313. -esac
  24314. -
  24315. -enable_dlopen=no
  24316. -enable_win32_dll=no
  24317. -
  24318. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  24319. -if test "${enable_libtool_lock+set}" = set; then
  24320. - enableval="$enable_libtool_lock"
  24321. +done
  24322. + done
  24323. +IFS=$as_save_IFS
  24324. -fi;
  24325. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24326. +fi
  24327. +fi
  24328. +OTOOL64=$ac_cv_prog_OTOOL64
  24329. +if test -n "$OTOOL64"; then
  24330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  24331. +$as_echo "$OTOOL64" >&6; }
  24332. +else
  24333. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24334. +$as_echo "no" >&6; }
  24335. +fi
  24336. -# Check whether --with-pic or --without-pic was given.
  24337. -if test "${with_pic+set}" = set; then
  24338. - withval="$with_pic"
  24339. - pic_mode="$withval"
  24340. +fi
  24341. +if test -z "$ac_cv_prog_OTOOL64"; then
  24342. + ac_ct_OTOOL64=$OTOOL64
  24343. + # Extract the first word of "otool64", so it can be a program name with args.
  24344. +set dummy otool64; ac_word=$2
  24345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24346. +$as_echo_n "checking for $ac_word... " >&6; }
  24347. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24348. + $as_echo_n "(cached) " >&6
  24349. else
  24350. - pic_mode=default
  24351. -fi;
  24352. -test -z "$pic_mode" && pic_mode=default
  24353. -
  24354. -# Use C for the default configuration in the libtool script
  24355. -tagname=
  24356. -lt_save_CC="$CC"
  24357. -ac_ext=c
  24358. -ac_cpp='$CPP $CPPFLAGS'
  24359. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24360. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24361. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24362. -
  24363. + if test -n "$ac_ct_OTOOL64"; then
  24364. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24365. +else
  24366. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24367. +for as_dir in $PATH
  24368. +do
  24369. + IFS=$as_save_IFS
  24370. + test -z "$as_dir" && as_dir=.
  24371. + for ac_exec_ext in '' $ac_executable_extensions; do
  24372. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24373. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24374. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24375. + break 2
  24376. + fi
  24377. +done
  24378. + done
  24379. +IFS=$as_save_IFS
  24380. -# Source file extension for C test sources.
  24381. -ac_ext=c
  24382. +fi
  24383. +fi
  24384. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24385. +if test -n "$ac_ct_OTOOL64"; then
  24386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24387. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24388. +else
  24389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24390. +$as_echo "no" >&6; }
  24391. +fi
  24392. -# Object file extension for compiled C test sources.
  24393. -objext=o
  24394. -objext=$objext
  24395. + if test "x$ac_ct_OTOOL64" = x; then
  24396. + OTOOL64=":"
  24397. + else
  24398. + case $cross_compiling:$ac_tool_warned in
  24399. +yes:)
  24400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24401. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24402. +ac_tool_warned=yes ;;
  24403. +esac
  24404. + OTOOL64=$ac_ct_OTOOL64
  24405. + fi
  24406. +else
  24407. + OTOOL64="$ac_cv_prog_OTOOL64"
  24408. +fi
  24409. -# Code to be used in simple compile tests
  24410. -lt_simple_compile_test_code="int some_variable = 0;\n"
  24411. -# Code to be used in simple link tests
  24412. -lt_simple_link_test_code='int main(){return(0);}\n'
  24413. -# If no C compiler was specified, use CC.
  24414. -LTCC=${LTCC-"$CC"}
  24415. -# If no C compiler flags were specified, use CFLAGS.
  24416. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24417. -# Allow CC to be a program name with arguments.
  24418. -compiler=$CC
  24419. -# save warnings/boilerplate of simple test code
  24420. -ac_outfile=conftest.$ac_objext
  24421. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  24422. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24423. -_lt_compiler_boilerplate=`cat conftest.err`
  24424. -$rm conftest*
  24425. -ac_outfile=conftest.$ac_objext
  24426. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  24427. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24428. -_lt_linker_boilerplate=`cat conftest.err`
  24429. -$rm conftest*
  24430. -lt_prog_compiler_no_builtin_flag=
  24431. -if test "$GCC" = yes; then
  24432. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  24433. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  24434. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  24435. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  24436. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24437. -else
  24438. - lt_cv_prog_compiler_rtti_exceptions=no
  24439. - ac_outfile=conftest.$ac_objext
  24440. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24441. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  24442. - # Insert the option either (1) after the last *FLAGS variable, or
  24443. - # (2) before a word containing "conftest.", or (3) at the end.
  24444. - # Note that $ac_compile itself does not contain backslashes and begins
  24445. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24446. - # The option is referenced via a variable to avoid confusing sed.
  24447. - lt_compile=`echo "$ac_compile" | $SED \
  24448. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24449. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24450. - -e 's:$: $lt_compiler_flag:'`
  24451. - (eval echo "\"\$as_me:6399: $lt_compile\"" >&5)
  24452. - (eval "$lt_compile" 2>conftest.err)
  24453. - ac_status=$?
  24454. - cat conftest.err >&5
  24455. - echo "$as_me:6403: \$? = $ac_status" >&5
  24456. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24457. - # The compiler can only warn and ignore the option if not recognized
  24458. - # So say no if there are warnings other than the usual output.
  24459. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24460. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24461. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24462. - lt_cv_prog_compiler_rtti_exceptions=yes
  24463. - fi
  24464. - fi
  24465. - $rm conftest*
  24466. -fi
  24467. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  24468. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  24469. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  24470. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  24471. -else
  24472. - :
  24473. -fi
  24474. -fi
  24475. -lt_prog_compiler_wl=
  24476. -lt_prog_compiler_pic=
  24477. -lt_prog_compiler_static=
  24478. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  24479. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  24480. - if test "$GCC" = yes; then
  24481. - lt_prog_compiler_wl='-Wl,'
  24482. - lt_prog_compiler_static='-static'
  24483. - case $host_os in
  24484. - aix*)
  24485. - # All AIX code is PIC.
  24486. - if test "$host_cpu" = ia64; then
  24487. - # AIX 5 now supports IA64 processor
  24488. - lt_prog_compiler_static='-Bstatic'
  24489. - fi
  24490. - ;;
  24491. - amigaos*)
  24492. - # FIXME: we need at least 68020 code to build shared libraries, but
  24493. - # adding the `-m68020' flag to GCC prevents building anything better,
  24494. - # like `-m68040'.
  24495. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  24496. - ;;
  24497. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24498. - # PIC is the default for these OSes.
  24499. - ;;
  24500. - mingw* | pw32* | os2*)
  24501. - # This hack is so that the source file can tell whether it is being
  24502. - # built for inclusion in a dll (and should export symbols for example).
  24503. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24504. - ;;
  24505. - darwin* | rhapsody*)
  24506. - # PIC is the default on this platform
  24507. - # Common symbols not allowed in MH_DYLIB files
  24508. - lt_prog_compiler_pic='-fno-common'
  24509. - ;;
  24510. - interix3*)
  24511. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24512. - # Instead, we relocate shared libraries at runtime.
  24513. - ;;
  24514. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  24515. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  24516. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  24517. + $as_echo_n "(cached) " >&6
  24518. +else
  24519. + lt_cv_apple_cc_single_mod=no
  24520. + if test -z "${LT_MULTI_MODULE}"; then
  24521. + # By default we will add the -single_module flag. You can override
  24522. + # by either setting the environment variable LT_MULTI_MODULE
  24523. + # non-empty at configure time, or by adding -multi_module to the
  24524. + # link flags.
  24525. + rm -rf libconftest.dylib*
  24526. + echo "int foo(void){return 1;}" > conftest.c
  24527. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24528. +-dynamiclib -Wl,-single_module conftest.c" >&5
  24529. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24530. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  24531. + _lt_result=$?
  24532. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  24533. + lt_cv_apple_cc_single_mod=yes
  24534. + else
  24535. + cat conftest.err >&5
  24536. + fi
  24537. + rm -rf libconftest.dylib*
  24538. + rm -f conftest.*
  24539. + fi
  24540. +fi
  24541. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  24542. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  24543. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  24544. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  24545. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  24546. + $as_echo_n "(cached) " >&6
  24547. +else
  24548. + lt_cv_ld_exported_symbols_list=no
  24549. + save_LDFLAGS=$LDFLAGS
  24550. + echo "_main" > conftest.sym
  24551. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  24552. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24553. +/* end confdefs.h. */
  24554. - msdosdjgpp*)
  24555. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  24556. - # on systems that don't support them.
  24557. - lt_prog_compiler_can_build_shared=no
  24558. - enable_shared=no
  24559. - ;;
  24560. +int
  24561. +main ()
  24562. +{
  24563. - sysv4*MP*)
  24564. - if test -d /usr/nec; then
  24565. - lt_prog_compiler_pic=-Kconform_pic
  24566. - fi
  24567. - ;;
  24568. + ;
  24569. + return 0;
  24570. +}
  24571. +_ACEOF
  24572. +if ac_fn_c_try_link "$LINENO"; then :
  24573. + lt_cv_ld_exported_symbols_list=yes
  24574. +else
  24575. + lt_cv_ld_exported_symbols_list=no
  24576. +fi
  24577. +rm -f core conftest.err conftest.$ac_objext \
  24578. + conftest$ac_exeext conftest.$ac_ext
  24579. + LDFLAGS="$save_LDFLAGS"
  24580. - hpux*)
  24581. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24582. - # not for PA HP-UX.
  24583. - case $host_cpu in
  24584. - hppa*64*|ia64*)
  24585. - # +Z the default
  24586. - ;;
  24587. - *)
  24588. - lt_prog_compiler_pic='-fPIC'
  24589. - ;;
  24590. +fi
  24591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  24592. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  24593. + case $host_os in
  24594. + rhapsody* | darwin1.[012])
  24595. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  24596. + darwin1.*)
  24597. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24598. + darwin*) # darwin 5.x on
  24599. + # if running on 10.5 or later, the deployment target defaults
  24600. + # to the OS version, if on x86, and 10.4, the deployment
  24601. + # target defaults to 10.4. Don't you love it?
  24602. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  24603. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24604. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24605. + 10.[012]*)
  24606. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24607. + 10.*)
  24608. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24609. esac
  24610. - ;;
  24611. + ;;
  24612. + esac
  24613. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  24614. + _lt_dar_single_mod='$single_module'
  24615. + fi
  24616. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  24617. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  24618. + else
  24619. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24620. + fi
  24621. + if test "$DSYMUTIL" != ":"; then
  24622. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  24623. + else
  24624. + _lt_dsymutil=
  24625. + fi
  24626. + ;;
  24627. + esac
  24628. - *)
  24629. - lt_prog_compiler_pic='-fPIC'
  24630. - ;;
  24631. - esac
  24632. - else
  24633. - # PORTME Check for flag to pass linker flags through the system compiler.
  24634. - case $host_os in
  24635. - aix*)
  24636. - lt_prog_compiler_wl='-Wl,'
  24637. - if test "$host_cpu" = ia64; then
  24638. - # AIX 5 now supports IA64 processor
  24639. - lt_prog_compiler_static='-Bstatic'
  24640. - else
  24641. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  24642. - fi
  24643. - ;;
  24644. - darwin*)
  24645. - # PIC is the default on this platform
  24646. - # Common symbols not allowed in MH_DYLIB files
  24647. - case $cc_basename in
  24648. - xlc*)
  24649. - lt_prog_compiler_pic='-qnocommon'
  24650. - lt_prog_compiler_wl='-Wl,'
  24651. - ;;
  24652. - esac
  24653. - ;;
  24654. +ac_ext=c
  24655. +ac_cpp='$CPP $CPPFLAGS'
  24656. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24657. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24658. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24659. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  24660. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  24661. +# On Suns, sometimes $CPP names a directory.
  24662. +if test -n "$CPP" && test -d "$CPP"; then
  24663. + CPP=
  24664. +fi
  24665. +if test -z "$CPP"; then
  24666. + if test "${ac_cv_prog_CPP+set}" = set; then :
  24667. + $as_echo_n "(cached) " >&6
  24668. +else
  24669. + # Double quotes because CPP needs to be expanded
  24670. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  24671. + do
  24672. + ac_preproc_ok=false
  24673. +for ac_c_preproc_warn_flag in '' yes
  24674. +do
  24675. + # Use a header file that comes with gcc, so configuring glibc
  24676. + # with a fresh cross-compiler works.
  24677. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24678. + # <limits.h> exists even on freestanding compilers.
  24679. + # On the NeXT, cc -E runs the code through the compiler's parser,
  24680. + # not just through cpp. "Syntax error" is here to catch this case.
  24681. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24682. +/* end confdefs.h. */
  24683. +#ifdef __STDC__
  24684. +# include <limits.h>
  24685. +#else
  24686. +# include <assert.h>
  24687. +#endif
  24688. + Syntax error
  24689. +_ACEOF
  24690. +if ac_fn_c_try_cpp "$LINENO"; then :
  24691. - mingw* | pw32* | os2*)
  24692. - # This hack is so that the source file can tell whether it is being
  24693. - # built for inclusion in a dll (and should export symbols for example).
  24694. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24695. - ;;
  24696. +else
  24697. + # Broken: fails on valid input.
  24698. +continue
  24699. +fi
  24700. +rm -f conftest.err conftest.$ac_ext
  24701. - hpux9* | hpux10* | hpux11*)
  24702. - lt_prog_compiler_wl='-Wl,'
  24703. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24704. - # not for PA HP-UX.
  24705. - case $host_cpu in
  24706. - hppa*64*|ia64*)
  24707. - # +Z the default
  24708. - ;;
  24709. - *)
  24710. - lt_prog_compiler_pic='+Z'
  24711. - ;;
  24712. - esac
  24713. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24714. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  24715. - ;;
  24716. + # OK, works on sane cases. Now check whether nonexistent headers
  24717. + # can be detected and how.
  24718. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24719. +/* end confdefs.h. */
  24720. +#include <ac_nonexistent.h>
  24721. +_ACEOF
  24722. +if ac_fn_c_try_cpp "$LINENO"; then :
  24723. + # Broken: success on invalid input.
  24724. +continue
  24725. +else
  24726. + # Passes both tests.
  24727. +ac_preproc_ok=:
  24728. +break
  24729. +fi
  24730. +rm -f conftest.err conftest.$ac_ext
  24731. - irix5* | irix6* | nonstopux*)
  24732. - lt_prog_compiler_wl='-Wl,'
  24733. - # PIC (with -KPIC) is the default.
  24734. - lt_prog_compiler_static='-non_shared'
  24735. - ;;
  24736. +done
  24737. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24738. +rm -f conftest.err conftest.$ac_ext
  24739. +if $ac_preproc_ok; then :
  24740. + break
  24741. +fi
  24742. - newsos6)
  24743. - lt_prog_compiler_pic='-KPIC'
  24744. - lt_prog_compiler_static='-Bstatic'
  24745. - ;;
  24746. + done
  24747. + ac_cv_prog_CPP=$CPP
  24748. - linux*)
  24749. - case $cc_basename in
  24750. - icc* | ecc*)
  24751. - lt_prog_compiler_wl='-Wl,'
  24752. - lt_prog_compiler_pic='-KPIC'
  24753. - lt_prog_compiler_static='-static'
  24754. - ;;
  24755. - pgcc* | pgf77* | pgf90* | pgf95*)
  24756. - # Portland Group compilers (*not* the Pentium gcc compiler,
  24757. - # which looks to be a dead project)
  24758. - lt_prog_compiler_wl='-Wl,'
  24759. - lt_prog_compiler_pic='-fpic'
  24760. - lt_prog_compiler_static='-Bstatic'
  24761. - ;;
  24762. - ccc*)
  24763. - lt_prog_compiler_wl='-Wl,'
  24764. - # All Alpha code is PIC.
  24765. - lt_prog_compiler_static='-non_shared'
  24766. - ;;
  24767. - esac
  24768. - ;;
  24769. +fi
  24770. + CPP=$ac_cv_prog_CPP
  24771. +else
  24772. + ac_cv_prog_CPP=$CPP
  24773. +fi
  24774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  24775. +$as_echo "$CPP" >&6; }
  24776. +ac_preproc_ok=false
  24777. +for ac_c_preproc_warn_flag in '' yes
  24778. +do
  24779. + # Use a header file that comes with gcc, so configuring glibc
  24780. + # with a fresh cross-compiler works.
  24781. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24782. + # <limits.h> exists even on freestanding compilers.
  24783. + # On the NeXT, cc -E runs the code through the compiler's parser,
  24784. + # not just through cpp. "Syntax error" is here to catch this case.
  24785. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24786. +/* end confdefs.h. */
  24787. +#ifdef __STDC__
  24788. +# include <limits.h>
  24789. +#else
  24790. +# include <assert.h>
  24791. +#endif
  24792. + Syntax error
  24793. +_ACEOF
  24794. +if ac_fn_c_try_cpp "$LINENO"; then :
  24795. - osf3* | osf4* | osf5*)
  24796. - lt_prog_compiler_wl='-Wl,'
  24797. - # All OSF/1 code is PIC.
  24798. - lt_prog_compiler_static='-non_shared'
  24799. - ;;
  24800. +else
  24801. + # Broken: fails on valid input.
  24802. +continue
  24803. +fi
  24804. +rm -f conftest.err conftest.$ac_ext
  24805. - solaris*)
  24806. - lt_prog_compiler_pic='-KPIC'
  24807. - lt_prog_compiler_static='-Bstatic'
  24808. - case $cc_basename in
  24809. - f77* | f90* | f95*)
  24810. - lt_prog_compiler_wl='-Qoption ld ';;
  24811. - *)
  24812. - lt_prog_compiler_wl='-Wl,';;
  24813. - esac
  24814. - ;;
  24815. + # OK, works on sane cases. Now check whether nonexistent headers
  24816. + # can be detected and how.
  24817. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24818. +/* end confdefs.h. */
  24819. +#include <ac_nonexistent.h>
  24820. +_ACEOF
  24821. +if ac_fn_c_try_cpp "$LINENO"; then :
  24822. + # Broken: success on invalid input.
  24823. +continue
  24824. +else
  24825. + # Passes both tests.
  24826. +ac_preproc_ok=:
  24827. +break
  24828. +fi
  24829. +rm -f conftest.err conftest.$ac_ext
  24830. - sunos4*)
  24831. - lt_prog_compiler_wl='-Qoption ld '
  24832. - lt_prog_compiler_pic='-PIC'
  24833. - lt_prog_compiler_static='-Bstatic'
  24834. - ;;
  24835. +done
  24836. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24837. +rm -f conftest.err conftest.$ac_ext
  24838. +if $ac_preproc_ok; then :
  24839. - sysv4 | sysv4.2uw2* | sysv4.3*)
  24840. - lt_prog_compiler_wl='-Wl,'
  24841. - lt_prog_compiler_pic='-KPIC'
  24842. - lt_prog_compiler_static='-Bstatic'
  24843. - ;;
  24844. +else
  24845. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24846. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24847. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  24848. +See \`config.log' for more details." "$LINENO" 5; }
  24849. +fi
  24850. - sysv4*MP*)
  24851. - if test -d /usr/nec ;then
  24852. - lt_prog_compiler_pic='-Kconform_pic'
  24853. - lt_prog_compiler_static='-Bstatic'
  24854. - fi
  24855. - ;;
  24856. +ac_ext=c
  24857. +ac_cpp='$CPP $CPPFLAGS'
  24858. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24859. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24860. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24861. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24862. - lt_prog_compiler_wl='-Wl,'
  24863. - lt_prog_compiler_pic='-KPIC'
  24864. - lt_prog_compiler_static='-Bstatic'
  24865. - ;;
  24866. - unicos*)
  24867. - lt_prog_compiler_wl='-Wl,'
  24868. - lt_prog_compiler_can_build_shared=no
  24869. - ;;
  24870. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  24871. +$as_echo_n "checking for ANSI C header files... " >&6; }
  24872. +if test "${ac_cv_header_stdc+set}" = set; then :
  24873. + $as_echo_n "(cached) " >&6
  24874. +else
  24875. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24876. +/* end confdefs.h. */
  24877. +#include <stdlib.h>
  24878. +#include <stdarg.h>
  24879. +#include <string.h>
  24880. +#include <float.h>
  24881. - uts4*)
  24882. - lt_prog_compiler_pic='-pic'
  24883. - lt_prog_compiler_static='-Bstatic'
  24884. - ;;
  24885. +int
  24886. +main ()
  24887. +{
  24888. - *)
  24889. - lt_prog_compiler_can_build_shared=no
  24890. - ;;
  24891. - esac
  24892. - fi
  24893. + ;
  24894. + return 0;
  24895. +}
  24896. +_ACEOF
  24897. +if ac_fn_c_try_compile "$LINENO"; then :
  24898. + ac_cv_header_stdc=yes
  24899. +else
  24900. + ac_cv_header_stdc=no
  24901. +fi
  24902. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24903. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  24904. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  24905. +if test $ac_cv_header_stdc = yes; then
  24906. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24907. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24908. +/* end confdefs.h. */
  24909. +#include <string.h>
  24910. -#
  24911. -# Check to make sure the PIC flag actually works.
  24912. -#
  24913. -if test -n "$lt_prog_compiler_pic"; then
  24914. +_ACEOF
  24915. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24916. + $EGREP "memchr" >/dev/null 2>&1; then :
  24917. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24918. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  24919. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  24920. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24921. -else
  24922. - lt_prog_compiler_pic_works=no
  24923. - ac_outfile=conftest.$ac_objext
  24924. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24925. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24926. - # Insert the option either (1) after the last *FLAGS variable, or
  24927. - # (2) before a word containing "conftest.", or (3) at the end.
  24928. - # Note that $ac_compile itself does not contain backslashes and begins
  24929. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24930. - # The option is referenced via a variable to avoid confusing sed.
  24931. - lt_compile=`echo "$ac_compile" | $SED \
  24932. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24933. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24934. - -e 's:$: $lt_compiler_flag:'`
  24935. - (eval echo "\"\$as_me:6667: $lt_compile\"" >&5)
  24936. - (eval "$lt_compile" 2>conftest.err)
  24937. - ac_status=$?
  24938. - cat conftest.err >&5
  24939. - echo "$as_me:6671: \$? = $ac_status" >&5
  24940. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24941. - # The compiler can only warn and ignore the option if not recognized
  24942. - # So say no if there are warnings other than the usual output.
  24943. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24944. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24945. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24946. - lt_prog_compiler_pic_works=yes
  24947. - fi
  24948. - fi
  24949. - $rm conftest*
  24950. +else
  24951. + ac_cv_header_stdc=no
  24952. +fi
  24953. +rm -f conftest*
  24954. fi
  24955. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  24956. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  24957. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  24958. - case $lt_prog_compiler_pic in
  24959. - "" | " "*) ;;
  24960. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24961. - esac
  24962. +if test $ac_cv_header_stdc = yes; then
  24963. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24964. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24965. +/* end confdefs.h. */
  24966. +#include <stdlib.h>
  24967. +
  24968. +_ACEOF
  24969. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24970. + $EGREP "free" >/dev/null 2>&1; then :
  24971. +
  24972. else
  24973. - lt_prog_compiler_pic=
  24974. - lt_prog_compiler_can_build_shared=no
  24975. + ac_cv_header_stdc=no
  24976. fi
  24977. +rm -f conftest*
  24978. fi
  24979. -case $host_os in
  24980. - # For platforms which do not support PIC, -DPIC is meaningless:
  24981. - *djgpp*)
  24982. - lt_prog_compiler_pic=
  24983. - ;;
  24984. - *)
  24985. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24986. - ;;
  24987. -esac
  24988. -#
  24989. -# Check to make sure the static flag actually works.
  24990. -#
  24991. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24992. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24993. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  24994. -if test "${lt_prog_compiler_static_works+set}" = set; then
  24995. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24996. +if test $ac_cv_header_stdc = yes; then
  24997. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24998. + if test "$cross_compiling" = yes; then :
  24999. + :
  25000. else
  25001. - lt_prog_compiler_static_works=no
  25002. - save_LDFLAGS="$LDFLAGS"
  25003. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25004. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  25005. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25006. - # The linker can only warn and ignore the option if not recognized
  25007. - # So say no if there are warnings
  25008. - if test -s conftest.err; then
  25009. - # Append any errors to the config.log.
  25010. - cat conftest.err 1>&5
  25011. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25012. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25013. - if diff conftest.exp conftest.er2 >/dev/null; then
  25014. - lt_prog_compiler_static_works=yes
  25015. - fi
  25016. - else
  25017. - lt_prog_compiler_static_works=yes
  25018. - fi
  25019. - fi
  25020. - $rm conftest*
  25021. - LDFLAGS="$save_LDFLAGS"
  25022. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25023. +/* end confdefs.h. */
  25024. +#include <ctype.h>
  25025. +#include <stdlib.h>
  25026. +#if ((' ' & 0x0FF) == 0x020)
  25027. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25028. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25029. +#else
  25030. +# define ISLOWER(c) \
  25031. + (('a' <= (c) && (c) <= 'i') \
  25032. + || ('j' <= (c) && (c) <= 'r') \
  25033. + || ('s' <= (c) && (c) <= 'z'))
  25034. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25035. +#endif
  25036. -fi
  25037. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  25038. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  25039. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25040. +int
  25041. +main ()
  25042. +{
  25043. + int i;
  25044. + for (i = 0; i < 256; i++)
  25045. + if (XOR (islower (i), ISLOWER (i))
  25046. + || toupper (i) != TOUPPER (i))
  25047. + return 2;
  25048. + return 0;
  25049. +}
  25050. +_ACEOF
  25051. +if ac_fn_c_try_run "$LINENO"; then :
  25052. -if test x"$lt_prog_compiler_static_works" = xyes; then
  25053. - :
  25054. else
  25055. - lt_prog_compiler_static=
  25056. + ac_cv_header_stdc=no
  25057. +fi
  25058. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25059. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25060. fi
  25061. +fi
  25062. +fi
  25063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25064. +$as_echo "$ac_cv_header_stdc" >&6; }
  25065. +if test $ac_cv_header_stdc = yes; then
  25066. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  25067. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  25068. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  25069. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25070. -else
  25071. - lt_cv_prog_compiler_c_o=no
  25072. - $rm -r conftest 2>/dev/null
  25073. - mkdir conftest
  25074. - cd conftest
  25075. - mkdir out
  25076. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25077. -
  25078. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  25079. - # Insert the option either (1) after the last *FLAGS variable, or
  25080. - # (2) before a word containing "conftest.", or (3) at the end.
  25081. - # Note that $ac_compile itself does not contain backslashes and begins
  25082. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25083. - lt_compile=`echo "$ac_compile" | $SED \
  25084. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25085. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25086. - -e 's:$: $lt_compiler_flag:'`
  25087. - (eval echo "\"\$as_me:6771: $lt_compile\"" >&5)
  25088. - (eval "$lt_compile" 2>out/conftest.err)
  25089. - ac_status=$?
  25090. - cat out/conftest.err >&5
  25091. - echo "$as_me:6775: \$? = $ac_status" >&5
  25092. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25093. - then
  25094. - # The compiler can only warn and ignore the option if not recognized
  25095. - # So say no if there are warnings
  25096. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25097. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25098. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25099. - lt_cv_prog_compiler_c_o=yes
  25100. - fi
  25101. - fi
  25102. - chmod u+w . 2>&5
  25103. - $rm conftest*
  25104. - # SGI C++ compiler will create directory out/ii_files/ for
  25105. - # template instantiation
  25106. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  25107. - $rm out/* && rmdir out
  25108. - cd ..
  25109. - rmdir conftest
  25110. - $rm conftest*
  25111. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25112. fi
  25113. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  25114. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  25115. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25116. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25117. + inttypes.h stdint.h unistd.h
  25118. +do :
  25119. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25120. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25121. +"
  25122. +eval as_val=\$$as_ac_Header
  25123. + if test "x$as_val" = x""yes; then :
  25124. + cat >>confdefs.h <<_ACEOF
  25125. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25126. +_ACEOF
  25127. -hard_links="nottested"
  25128. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25129. - # do not overwrite the value of need_locks provided by the user
  25130. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  25131. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  25132. - hard_links=yes
  25133. - $rm conftest*
  25134. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25135. - touch conftest.a
  25136. - ln conftest.a conftest.b 2>&5 || hard_links=no
  25137. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25138. - echo "$as_me:$LINENO: result: $hard_links" >&5
  25139. -echo "${ECHO_T}$hard_links" >&6
  25140. - if test "$hard_links" = no; then
  25141. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25142. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25143. - need_locks=warn
  25144. - fi
  25145. -else
  25146. - need_locks=no
  25147. fi
  25148. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25149. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  25150. -
  25151. - runpath_var=
  25152. - allow_undefined_flag=
  25153. - enable_shared_with_static_runtimes=no
  25154. - archive_cmds=
  25155. - archive_expsym_cmds=
  25156. - old_archive_From_new_cmds=
  25157. - old_archive_from_expsyms_cmds=
  25158. - export_dynamic_flag_spec=
  25159. - whole_archive_flag_spec=
  25160. - thread_safe_flag_spec=
  25161. - hardcode_libdir_flag_spec=
  25162. - hardcode_libdir_flag_spec_ld=
  25163. - hardcode_libdir_separator=
  25164. - hardcode_direct=no
  25165. - hardcode_minus_L=no
  25166. - hardcode_shlibpath_var=unsupported
  25167. - link_all_deplibs=unknown
  25168. - hardcode_automatic=no
  25169. - module_cmds=
  25170. - module_expsym_cmds=
  25171. - always_export_symbols=no
  25172. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25173. - # include_expsyms should be a list of space-separated symbols to be *always*
  25174. - # included in the symbol list
  25175. - include_expsyms=
  25176. - # exclude_expsyms can be an extended regexp of symbols to exclude
  25177. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25178. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25179. - # as well as any symbol that contains `d'.
  25180. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  25181. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25182. - # platforms (ab)use it in PIC code, but their linkers get confused if
  25183. - # the symbol is explicitly referenced. Since portable code cannot
  25184. - # rely on this symbol name, it's probably fine to never include it in
  25185. - # preloaded symbol tables.
  25186. - extract_expsyms_cmds=
  25187. - # Just being paranoid about ensuring that cc_basename is set.
  25188. - for cc_temp in $compiler""; do
  25189. - case $cc_temp in
  25190. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25191. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25192. - \-*) ;;
  25193. - *) break;;
  25194. - esac
  25195. done
  25196. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25197. - case $host_os in
  25198. - cygwin* | mingw* | pw32*)
  25199. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25200. - # When not using gcc, we currently assume that we are using
  25201. - # Microsoft Visual C++.
  25202. - if test "$GCC" != yes; then
  25203. - with_gnu_ld=no
  25204. - fi
  25205. - ;;
  25206. - interix*)
  25207. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  25208. - with_gnu_ld=yes
  25209. - ;;
  25210. - openbsd*)
  25211. - with_gnu_ld=no
  25212. - ;;
  25213. - esac
  25214. - ld_shlibs=yes
  25215. - if test "$with_gnu_ld" = yes; then
  25216. - # If archive_cmds runs LD, not CC, wlarc should be empty
  25217. - wlarc='${wl}'
  25218. +for ac_header in dlfcn.h
  25219. +do :
  25220. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  25221. +"
  25222. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  25223. + cat >>confdefs.h <<_ACEOF
  25224. +#define HAVE_DLFCN_H 1
  25225. +_ACEOF
  25226. - # Set some defaults for GNU ld with shared library support. These
  25227. - # are reset later if shared libraries are not supported. Putting them
  25228. - # here allows them to be overridden if necessary.
  25229. - runpath_var=LD_RUN_PATH
  25230. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  25231. - export_dynamic_flag_spec='${wl}--export-dynamic'
  25232. - # ancient GNU ld didn't support --whole-archive et. al.
  25233. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  25234. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25235. - else
  25236. - whole_archive_flag_spec=
  25237. - fi
  25238. - supports_anon_versioning=no
  25239. - case `$LD -v 2>/dev/null` in
  25240. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25241. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25242. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25243. - *\ 2.11.*) ;; # other 2.11 versions
  25244. - *) supports_anon_versioning=yes ;;
  25245. - esac
  25246. +fi
  25247. - # See if GNU ld supports shared libraries.
  25248. - case $host_os in
  25249. - aix3* | aix4* | aix5*)
  25250. - # On AIX/PPC, the GNU linker is very broken
  25251. - if test "$host_cpu" != ia64; then
  25252. - ld_shlibs=no
  25253. - cat <<EOF 1>&2
  25254. +done
  25255. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25256. -*** to be unable to reliably create shared libraries on AIX.
  25257. -*** Therefore, libtool is disabling shared libraries support. If you
  25258. -*** really care for shared libraries, you may want to modify your PATH
  25259. -*** so that a non-GNU linker is found, and then restart.
  25260. -EOF
  25261. - fi
  25262. - ;;
  25263. - amigaos*)
  25264. - archive_cmds='$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)'
  25265. - hardcode_libdir_flag_spec='-L$libdir'
  25266. - hardcode_minus_L=yes
  25267. +# Set options
  25268. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  25269. - # that the semantics of dynamic libraries on AmigaOS, at least up
  25270. - # to version 4, is to share data among multiple programs linked
  25271. - # with the same dynamic library. Since this doesn't match the
  25272. - # behavior of shared libraries on other platforms, we can't use
  25273. - # them.
  25274. - ld_shlibs=no
  25275. - ;;
  25276. - beos*)
  25277. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25278. - allow_undefined_flag=unsupported
  25279. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25280. - # support --undefined. This deserves some investigation. FIXME
  25281. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25282. - else
  25283. - ld_shlibs=no
  25284. - fi
  25285. - ;;
  25286. - cygwin* | mingw* | pw32*)
  25287. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25288. - # as there is no search path for DLLs.
  25289. - hardcode_libdir_flag_spec='-L$libdir'
  25290. - allow_undefined_flag=unsupported
  25291. - always_export_symbols=no
  25292. - enable_shared_with_static_runtimes=yes
  25293. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  25294. + enable_dlopen=no
  25295. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25296. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25297. - # If the export-symbols file already is a .def file (1st line
  25298. - # is EXPORTS), use it as is; otherwise, prepend...
  25299. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25300. - cp $export_symbols $output_objdir/$soname.def;
  25301. - else
  25302. - echo EXPORTS > $output_objdir/$soname.def;
  25303. - cat $export_symbols >> $output_objdir/$soname.def;
  25304. - fi~
  25305. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25306. - else
  25307. - ld_shlibs=no
  25308. - fi
  25309. - ;;
  25310. - interix3*)
  25311. - hardcode_direct=no
  25312. - hardcode_shlibpath_var=no
  25313. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25314. - export_dynamic_flag_spec='${wl}-E'
  25315. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25316. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  25317. - # default) and relocated if they conflict, which is a slow very memory
  25318. - # consuming and fragmenting process. To avoid this, we pick a random,
  25319. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25320. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25321. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25322. - archive_expsym_cmds='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'
  25323. - ;;
  25324. + enable_win32_dll=no
  25325. - linux*)
  25326. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25327. - tmp_addflag=
  25328. - case $cc_basename,$host_cpu in
  25329. - pgcc*) # Portland Group C compiler
  25330. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  25331. - tmp_addflag=' $pic_flag'
  25332. - ;;
  25333. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25334. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  25335. - tmp_addflag=' $pic_flag -Mnomain' ;;
  25336. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25337. - tmp_addflag=' -i_dynamic' ;;
  25338. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25339. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  25340. - ifc* | ifort*) # Intel Fortran compiler
  25341. - tmp_addflag=' -nofor_main' ;;
  25342. - esac
  25343. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25344. - if test $supports_anon_versioning = yes; then
  25345. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  25346. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25347. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  25348. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25349. + # Check whether --enable-shared was given.
  25350. +if test "${enable_shared+set}" = set; then :
  25351. + enableval=$enable_shared; p=${PACKAGE-default}
  25352. + case $enableval in
  25353. + yes) enable_shared=yes ;;
  25354. + no) enable_shared=no ;;
  25355. + *)
  25356. + enable_shared=no
  25357. + # Look at the argument we got. We use all the common list separators.
  25358. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25359. + for pkg in $enableval; do
  25360. + IFS="$lt_save_ifs"
  25361. + if test "X$pkg" = "X$p"; then
  25362. + enable_shared=yes
  25363. fi
  25364. - link_all_deplibs=no
  25365. - else
  25366. - ld_shlibs=no
  25367. - fi
  25368. + done
  25369. + IFS="$lt_save_ifs"
  25370. ;;
  25371. + esac
  25372. +else
  25373. + enable_shared=yes
  25374. +fi
  25375. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  25376. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25377. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25378. - wlarc=
  25379. - else
  25380. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25381. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25382. - fi
  25383. - ;;
  25384. - solaris*)
  25385. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  25386. - ld_shlibs=no
  25387. - cat <<EOF 1>&2
  25388. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25389. -*** create shared libraries on Solaris systems. Therefore, libtool
  25390. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25391. -*** binutils to release 2.9.1 or newer. Another option is to modify
  25392. -*** your PATH or compiler configuration so that the native linker is
  25393. -*** used, and then restart.
  25394. -EOF
  25395. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25396. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25397. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25398. - else
  25399. - ld_shlibs=no
  25400. - fi
  25401. - ;;
  25402. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25403. - case `$LD -v 2>&1` in
  25404. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25405. - ld_shlibs=no
  25406. - cat <<_LT_EOF 1>&2
  25407. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25408. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  25409. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25410. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25411. -*** your PATH or compiler configuration so that the native linker is
  25412. -*** used, and then restart.
  25413. -_LT_EOF
  25414. - ;;
  25415. - *)
  25416. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25417. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  25418. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  25419. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  25420. - else
  25421. - ld_shlibs=no
  25422. - fi
  25423. - ;;
  25424. - esac
  25425. - ;;
  25426. - sunos4*)
  25427. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25428. - wlarc=
  25429. - hardcode_direct=yes
  25430. - hardcode_shlibpath_var=no
  25431. - ;;
  25432. + # Check whether --enable-static was given.
  25433. +if test "${enable_static+set}" = set; then :
  25434. + enableval=$enable_static; p=${PACKAGE-default}
  25435. + case $enableval in
  25436. + yes) enable_static=yes ;;
  25437. + no) enable_static=no ;;
  25438. *)
  25439. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25440. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25441. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25442. - else
  25443. - ld_shlibs=no
  25444. - fi
  25445. + enable_static=no
  25446. + # Look at the argument we got. We use all the common list separators.
  25447. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25448. + for pkg in $enableval; do
  25449. + IFS="$lt_save_ifs"
  25450. + if test "X$pkg" = "X$p"; then
  25451. + enable_static=yes
  25452. + fi
  25453. + done
  25454. + IFS="$lt_save_ifs"
  25455. ;;
  25456. esac
  25457. +else
  25458. + enable_static=yes
  25459. +fi
  25460. - if test "$ld_shlibs" = no; then
  25461. - runpath_var=
  25462. - hardcode_libdir_flag_spec=
  25463. - export_dynamic_flag_spec=
  25464. - whole_archive_flag_spec=
  25465. - fi
  25466. - else
  25467. - # PORTME fill in a description of your system's linker (not GNU ld)
  25468. - case $host_os in
  25469. - aix3*)
  25470. - allow_undefined_flag=unsupported
  25471. - always_export_symbols=yes
  25472. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  25473. - # Note: this linker hardcodes the directories in LIBPATH if there
  25474. - # are no directories specified by -L.
  25475. - hardcode_minus_L=yes
  25476. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  25477. - # Neither direct hardcoding nor static linking is supported with a
  25478. - # broken collect2.
  25479. - hardcode_direct=unsupported
  25480. - fi
  25481. - ;;
  25482. -
  25483. - aix4* | aix5*)
  25484. - if test "$host_cpu" = ia64; then
  25485. - # On IA64, the linker does run time linking by default, so we don't
  25486. - # have to do anything special.
  25487. - aix_use_runtimelinking=no
  25488. - exp_sym_flag='-Bexport'
  25489. - no_entry_flag=""
  25490. - else
  25491. - # If we're using GNU nm, then we don't want the "-C" option.
  25492. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25493. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  25494. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25495. - else
  25496. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25497. - fi
  25498. - aix_use_runtimelinking=no
  25499. - # Test if we are trying to use run time linking or normal
  25500. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25501. - # need to do runtime linking.
  25502. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  25503. - for ld_flag in $LDFLAGS; do
  25504. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25505. - aix_use_runtimelinking=yes
  25506. - break
  25507. - fi
  25508. - done
  25509. - ;;
  25510. - esac
  25511. - exp_sym_flag='-bexport'
  25512. - no_entry_flag='-bnoentry'
  25513. - fi
  25514. - # When large executables or shared objects are built, AIX ld can
  25515. - # have problems creating the table of contents. If linking a library
  25516. - # or program results in "error TOC overflow" add -mminimal-toc to
  25517. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25518. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25519. - archive_cmds=''
  25520. - hardcode_direct=yes
  25521. - hardcode_libdir_separator=':'
  25522. - link_all_deplibs=yes
  25523. - if test "$GCC" = yes; then
  25524. - case $host_os in aix4.[012]|aix4.[012].*)
  25525. - # We only want to do this on AIX 4.2 and lower, the check
  25526. - # below for broken collect2 doesn't work under 4.3+
  25527. - collect2name=`${CC} -print-prog-name=collect2`
  25528. - if test -f "$collect2name" && \
  25529. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  25530. - then
  25531. - # We have reworked collect2
  25532. - hardcode_direct=yes
  25533. - else
  25534. - # We have old collect2
  25535. - hardcode_direct=unsupported
  25536. - # It fails to find uninstalled libraries when the uninstalled
  25537. - # path is not listed in the libpath. Setting hardcode_minus_L
  25538. - # to unsupported forces relinking
  25539. - hardcode_minus_L=yes
  25540. - hardcode_libdir_flag_spec='-L$libdir'
  25541. - hardcode_libdir_separator=
  25542. - fi
  25543. - ;;
  25544. - esac
  25545. - shared_flag='-shared'
  25546. - if test "$aix_use_runtimelinking" = yes; then
  25547. - shared_flag="$shared_flag "'${wl}-G'
  25548. - fi
  25549. - else
  25550. - # not using gcc
  25551. - if test "$host_cpu" = ia64; then
  25552. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25553. - # chokes on -Wl,-G. The following line is correct:
  25554. - shared_flag='-G'
  25555. - else
  25556. - if test "$aix_use_runtimelinking" = yes; then
  25557. - shared_flag='${wl}-G'
  25558. - else
  25559. - shared_flag='${wl}-bM:SRE'
  25560. - fi
  25561. - fi
  25562. - fi
  25563. - # It seems that -bexpall does not export symbols beginning with
  25564. - # underscore (_), so it is better to generate a list of symbols to export.
  25565. - always_export_symbols=yes
  25566. - if test "$aix_use_runtimelinking" = yes; then
  25567. - # Warning - without using the other runtime loading flags (-brtl),
  25568. - # -berok will link without error, but may produce a broken library.
  25569. - allow_undefined_flag='-berok'
  25570. - # Determine the default libpath from the value encoded in an empty executable.
  25571. - cat >conftest.$ac_ext <<_ACEOF
  25572. -/* confdefs.h. */
  25573. -_ACEOF
  25574. -cat confdefs.h >>conftest.$ac_ext
  25575. -cat >>conftest.$ac_ext <<_ACEOF
  25576. -/* end confdefs.h. */
  25577. -int
  25578. -main ()
  25579. -{
  25580. - ;
  25581. - return 0;
  25582. -}
  25583. -_ACEOF
  25584. -rm -f conftest.$ac_objext conftest$ac_exeext
  25585. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25586. - (eval $ac_link) 2>conftest.er1
  25587. - ac_status=$?
  25588. - grep -v '^ *+' conftest.er1 >conftest.err
  25589. - rm -f conftest.er1
  25590. - cat conftest.err >&5
  25591. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25592. - (exit $ac_status); } &&
  25593. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25594. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25595. - (eval $ac_try) 2>&5
  25596. - ac_status=$?
  25597. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25598. - (exit $ac_status); }; } &&
  25599. - { ac_try='test -s conftest$ac_exeext'
  25600. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25601. - (eval $ac_try) 2>&5
  25602. - ac_status=$?
  25603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25604. - (exit $ac_status); }; }; then
  25605. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25606. -}'`
  25607. -# Check for a 64-bit object if we didn't find anything.
  25608. -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; }
  25609. -}'`; fi
  25610. +# Check whether --with-pic was given.
  25611. +if test "${with_pic+set}" = set; then :
  25612. + withval=$with_pic; pic_mode="$withval"
  25613. else
  25614. - echo "$as_me: failed program was:" >&5
  25615. -sed 's/^/| /' conftest.$ac_ext >&5
  25616. -
  25617. + pic_mode=default
  25618. fi
  25619. -rm -f conftest.err conftest.$ac_objext \
  25620. - conftest$ac_exeext conftest.$ac_ext
  25621. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25622. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25623. - archive_expsym_cmds="\$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"
  25624. - else
  25625. - if test "$host_cpu" = ia64; then
  25626. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  25627. - allow_undefined_flag="-z nodefs"
  25628. - archive_expsym_cmds="\$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"
  25629. - else
  25630. - # Determine the default libpath from the value encoded in an empty executable.
  25631. - cat >conftest.$ac_ext <<_ACEOF
  25632. -/* confdefs.h. */
  25633. -_ACEOF
  25634. -cat confdefs.h >>conftest.$ac_ext
  25635. -cat >>conftest.$ac_ext <<_ACEOF
  25636. -/* end confdefs.h. */
  25637. -int
  25638. -main ()
  25639. -{
  25640. +test -z "$pic_mode" && pic_mode=default
  25641. - ;
  25642. - return 0;
  25643. -}
  25644. -_ACEOF
  25645. -rm -f conftest.$ac_objext conftest$ac_exeext
  25646. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25647. - (eval $ac_link) 2>conftest.er1
  25648. - ac_status=$?
  25649. - grep -v '^ *+' conftest.er1 >conftest.err
  25650. - rm -f conftest.er1
  25651. - cat conftest.err >&5
  25652. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25653. - (exit $ac_status); } &&
  25654. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25655. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25656. - (eval $ac_try) 2>&5
  25657. - ac_status=$?
  25658. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25659. - (exit $ac_status); }; } &&
  25660. - { ac_try='test -s conftest$ac_exeext'
  25661. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25662. - (eval $ac_try) 2>&5
  25663. - ac_status=$?
  25664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25665. - (exit $ac_status); }; }; then
  25666. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25667. -}'`
  25668. -# Check for a 64-bit object if we didn't find anything.
  25669. -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; }
  25670. -}'`; fi
  25671. -else
  25672. - echo "$as_me: failed program was:" >&5
  25673. -sed 's/^/| /' conftest.$ac_ext >&5
  25674. -fi
  25675. -rm -f conftest.err conftest.$ac_objext \
  25676. - conftest$ac_exeext conftest.$ac_ext
  25677. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25678. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25679. - # Warning - without using the other run time loading flags,
  25680. - # -berok will link without error, but may produce a broken library.
  25681. - no_undefined_flag=' ${wl}-bernotok'
  25682. - allow_undefined_flag=' ${wl}-berok'
  25683. - # Exported symbols can be pulled into shared objects from archives
  25684. - whole_archive_flag_spec='$convenience'
  25685. - archive_cmds_need_lc=yes
  25686. - # This is similar to how AIX traditionally builds its shared libraries.
  25687. - archive_expsym_cmds="\$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'
  25688. +
  25689. +
  25690. +
  25691. + # Check whether --enable-fast-install was given.
  25692. +if test "${enable_fast_install+set}" = set; then :
  25693. + enableval=$enable_fast_install; p=${PACKAGE-default}
  25694. + case $enableval in
  25695. + yes) enable_fast_install=yes ;;
  25696. + no) enable_fast_install=no ;;
  25697. + *)
  25698. + enable_fast_install=no
  25699. + # Look at the argument we got. We use all the common list separators.
  25700. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25701. + for pkg in $enableval; do
  25702. + IFS="$lt_save_ifs"
  25703. + if test "X$pkg" = "X$p"; then
  25704. + enable_fast_install=yes
  25705. fi
  25706. - fi
  25707. + done
  25708. + IFS="$lt_save_ifs"
  25709. ;;
  25710. + esac
  25711. +else
  25712. + enable_fast_install=yes
  25713. +fi
  25714. - amigaos*)
  25715. - archive_cmds='$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)'
  25716. - hardcode_libdir_flag_spec='-L$libdir'
  25717. - hardcode_minus_L=yes
  25718. - # see comment about different semantics on the GNU ld section
  25719. - ld_shlibs=no
  25720. - ;;
  25721. - bsdi[45]*)
  25722. - export_dynamic_flag_spec=-rdynamic
  25723. - ;;
  25724. - cygwin* | mingw* | pw32*)
  25725. - # When not using gcc, we currently assume that we are using
  25726. - # Microsoft Visual C++.
  25727. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  25728. - # no search path for DLLs.
  25729. - hardcode_libdir_flag_spec=' '
  25730. - allow_undefined_flag=unsupported
  25731. - # Tell ltmain to make .lib files, not .a files.
  25732. - libext=lib
  25733. - # Tell ltmain to make .dll files, not .so files.
  25734. - shrext_cmds=".dll"
  25735. - # FIXME: Setting linknames here is a bad hack.
  25736. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  25737. - # The linker will automatically build a .lib file if we build a DLL.
  25738. - old_archive_From_new_cmds='true'
  25739. - # FIXME: Should let the user specify the lib program.
  25740. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  25741. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  25742. - enable_shared_with_static_runtimes=yes
  25743. - ;;
  25744. - darwin* | rhapsody*)
  25745. - case $host_os in
  25746. - rhapsody* | darwin1.[012])
  25747. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  25748. - ;;
  25749. - *) # Darwin 1.3 on
  25750. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  25751. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25752. - else
  25753. - case ${MACOSX_DEPLOYMENT_TARGET} in
  25754. - 10.[012])
  25755. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25756. - ;;
  25757. - 10.*)
  25758. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  25759. - ;;
  25760. - esac
  25761. - fi
  25762. - ;;
  25763. - esac
  25764. - archive_cmds_need_lc=no
  25765. - hardcode_direct=no
  25766. - hardcode_automatic=yes
  25767. - hardcode_shlibpath_var=unsupported
  25768. - whole_archive_flag_spec=''
  25769. - link_all_deplibs=yes
  25770. - if test "$GCC" = yes ; then
  25771. - output_verbose_link_cmd='echo'
  25772. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  25773. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25774. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25775. - archive_expsym_cmds='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}'
  25776. - module_expsym_cmds='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}'
  25777. - else
  25778. - case $cc_basename in
  25779. - xlc*)
  25780. - output_verbose_link_cmd='echo'
  25781. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  25782. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25783. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25784. - archive_expsym_cmds='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}'
  25785. - module_expsym_cmds='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}'
  25786. - ;;
  25787. - *)
  25788. - ld_shlibs=no
  25789. - ;;
  25790. - esac
  25791. - fi
  25792. - ;;
  25793. - dgux*)
  25794. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25795. - hardcode_libdir_flag_spec='-L$libdir'
  25796. - hardcode_shlibpath_var=no
  25797. - ;;
  25798. - freebsd1*)
  25799. - ld_shlibs=no
  25800. - ;;
  25801. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  25802. - # support. Future versions do this automatically, but an explicit c++rt0.o
  25803. - # does not break anything, and helps significantly (at the cost of a little
  25804. - # extra space).
  25805. - freebsd2.2*)
  25806. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  25807. - hardcode_libdir_flag_spec='-R$libdir'
  25808. - hardcode_direct=yes
  25809. - hardcode_shlibpath_var=no
  25810. - ;;
  25811. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  25812. - freebsd2*)
  25813. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25814. - hardcode_direct=yes
  25815. - hardcode_minus_L=yes
  25816. - hardcode_shlibpath_var=no
  25817. - ;;
  25818. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  25819. - freebsd* | dragonfly*)
  25820. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25821. - hardcode_libdir_flag_spec='-R$libdir'
  25822. - hardcode_direct=yes
  25823. - hardcode_shlibpath_var=no
  25824. - ;;
  25825. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  25826. - kfreebsd*-gnu)
  25827. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25828. - hardcode_libdir_flag_spec='-R$libdir'
  25829. - hardcode_direct=yes
  25830. - hardcode_shlibpath_var=no
  25831. - link_all_deplibs=no
  25832. - ;;
  25833. - hpux9*)
  25834. - if test "$GCC" = yes; then
  25835. - archive_cmds='$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'
  25836. - else
  25837. - archive_cmds='$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'
  25838. - fi
  25839. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25840. - hardcode_libdir_separator=:
  25841. - hardcode_direct=yes
  25842. +# This can be used to rebuild libtool when needed
  25843. +LIBTOOL_DEPS="$ltmain"
  25844. - # hardcode_minus_L: Not really in the search PATH,
  25845. - # but as the default location of the library.
  25846. - hardcode_minus_L=yes
  25847. - export_dynamic_flag_spec='${wl}-E'
  25848. - ;;
  25849. +# Always use our own libtool.
  25850. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  25851. - hpux10*)
  25852. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25853. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25854. - else
  25855. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  25856. - fi
  25857. - if test "$with_gnu_ld" = no; then
  25858. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25859. - hardcode_libdir_separator=:
  25860. - hardcode_direct=yes
  25861. - export_dynamic_flag_spec='${wl}-E'
  25862. - # hardcode_minus_L: Not really in the search PATH,
  25863. - # but as the default location of the library.
  25864. - hardcode_minus_L=yes
  25865. - fi
  25866. - ;;
  25867. - hpux11*)
  25868. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25869. - case $host_cpu in
  25870. - hppa*64*)
  25871. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25872. - ;;
  25873. - ia64*)
  25874. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25875. - ;;
  25876. - *)
  25877. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25878. - ;;
  25879. - esac
  25880. - else
  25881. - case $host_cpu in
  25882. - hppa*64*)
  25883. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25884. - ;;
  25885. - ia64*)
  25886. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25887. - ;;
  25888. - *)
  25889. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25890. - ;;
  25891. - esac
  25892. - fi
  25893. - if test "$with_gnu_ld" = no; then
  25894. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25895. - hardcode_libdir_separator=:
  25896. - case $host_cpu in
  25897. - hppa*64*|ia64*)
  25898. - hardcode_libdir_flag_spec_ld='+b $libdir'
  25899. - hardcode_direct=no
  25900. - hardcode_shlibpath_var=no
  25901. - ;;
  25902. - *)
  25903. - hardcode_direct=yes
  25904. - export_dynamic_flag_spec='${wl}-E'
  25905. - # hardcode_minus_L: Not really in the search PATH,
  25906. - # but as the default location of the library.
  25907. - hardcode_minus_L=yes
  25908. - ;;
  25909. - esac
  25910. - fi
  25911. - ;;
  25912. - irix5* | irix6* | nonstopux*)
  25913. - if test "$GCC" = yes; then
  25914. - archive_cmds='$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'
  25915. - else
  25916. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  25917. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25918. - fi
  25919. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25920. - hardcode_libdir_separator=:
  25921. - link_all_deplibs=yes
  25922. - ;;
  25923. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  25924. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25925. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25926. - else
  25927. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25928. - fi
  25929. - hardcode_libdir_flag_spec='-R$libdir'
  25930. - hardcode_direct=yes
  25931. - hardcode_shlibpath_var=no
  25932. - ;;
  25933. - newsos6)
  25934. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25935. - hardcode_direct=yes
  25936. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25937. - hardcode_libdir_separator=:
  25938. - hardcode_shlibpath_var=no
  25939. - ;;
  25940. - openbsd*)
  25941. - hardcode_direct=yes
  25942. - hardcode_shlibpath_var=no
  25943. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25944. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25945. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25946. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25947. - export_dynamic_flag_spec='${wl}-E'
  25948. - else
  25949. - case $host_os in
  25950. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25951. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25952. - hardcode_libdir_flag_spec='-R$libdir'
  25953. - ;;
  25954. - *)
  25955. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25956. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25957. - ;;
  25958. - esac
  25959. - fi
  25960. - ;;
  25961. - os2*)
  25962. - hardcode_libdir_flag_spec='-L$libdir'
  25963. - hardcode_minus_L=yes
  25964. - allow_undefined_flag=unsupported
  25965. - archive_cmds='$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'
  25966. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25967. - ;;
  25968. - osf3*)
  25969. - if test "$GCC" = yes; then
  25970. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25971. - archive_cmds='$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'
  25972. - else
  25973. - allow_undefined_flag=' -expect_unresolved \*'
  25974. - archive_cmds='$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'
  25975. - fi
  25976. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25977. - hardcode_libdir_separator=:
  25978. - ;;
  25979. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  25980. - if test "$GCC" = yes; then
  25981. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25982. - archive_cmds='$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'
  25983. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25984. - else
  25985. - allow_undefined_flag=' -expect_unresolved \*'
  25986. - archive_cmds='$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'
  25987. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  25988. - $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'
  25989. - # Both c and cxx compiler support -rpath directly
  25990. - hardcode_libdir_flag_spec='-rpath $libdir'
  25991. - fi
  25992. - hardcode_libdir_separator=:
  25993. - ;;
  25994. - solaris*)
  25995. - no_undefined_flag=' -z text'
  25996. - if test "$GCC" = yes; then
  25997. - wlarc='${wl}'
  25998. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25999. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26000. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  26001. - else
  26002. - wlarc=''
  26003. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26004. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26005. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  26006. - fi
  26007. - hardcode_libdir_flag_spec='-R$libdir'
  26008. - hardcode_shlibpath_var=no
  26009. - case $host_os in
  26010. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26011. - *)
  26012. - # The compiler driver will combine linker options so we
  26013. - # cannot just pass the convience library names through
  26014. - # without $wl, iff we do not link with $LD.
  26015. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  26016. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  26017. - case $wlarc in
  26018. - '')
  26019. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  26020. - *)
  26021. - whole_archive_flag_spec='${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' ;;
  26022. - esac ;;
  26023. - esac
  26024. - link_all_deplibs=yes
  26025. - ;;
  26026. - sunos4*)
  26027. - if test "x$host_vendor" = xsequent; then
  26028. - # Use $CC to link under sequent, because it throws in some extra .o
  26029. - # files that make .init and .fini sections work.
  26030. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26031. - else
  26032. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26033. - fi
  26034. - hardcode_libdir_flag_spec='-L$libdir'
  26035. - hardcode_direct=yes
  26036. - hardcode_minus_L=yes
  26037. - hardcode_shlibpath_var=no
  26038. - ;;
  26039. - sysv4)
  26040. - case $host_vendor in
  26041. - sni)
  26042. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26043. - hardcode_direct=yes # is this really true???
  26044. - ;;
  26045. - siemens)
  26046. - ## LD is ld it makes a PLAMLIB
  26047. - ## CC just makes a GrossModule.
  26048. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26049. - reload_cmds='$CC -r -o $output$reload_objs'
  26050. - hardcode_direct=no
  26051. - ;;
  26052. - motorola)
  26053. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26054. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26055. - ;;
  26056. - esac
  26057. - runpath_var='LD_RUN_PATH'
  26058. - hardcode_shlibpath_var=no
  26059. - ;;
  26060. - sysv4.3*)
  26061. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26062. - hardcode_shlibpath_var=no
  26063. - export_dynamic_flag_spec='-Bexport'
  26064. - ;;
  26065. - sysv4*MP*)
  26066. - if test -d /usr/nec; then
  26067. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26068. - hardcode_shlibpath_var=no
  26069. - runpath_var=LD_RUN_PATH
  26070. - hardcode_runpath_var=yes
  26071. - ld_shlibs=yes
  26072. - fi
  26073. - ;;
  26074. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  26075. - no_undefined_flag='${wl}-z,text'
  26076. - archive_cmds_need_lc=no
  26077. - hardcode_shlibpath_var=no
  26078. - runpath_var='LD_RUN_PATH'
  26079. - if test "$GCC" = yes; then
  26080. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26081. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26082. - else
  26083. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26084. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26085. - fi
  26086. - ;;
  26087. - sysv5* | sco3.2v5* | sco5v6*)
  26088. - # Note: We can NOT use -z defs as we might desire, because we do not
  26089. - # link with -lc, and that would cause any symbols used from libc to
  26090. - # always be unresolved, which means just about no library would
  26091. - # ever link correctly. If we're not using GNU ld we use -z text
  26092. - # though, which does catch some bad symbols but isn't as heavy-handed
  26093. - # as -z defs.
  26094. - no_undefined_flag='${wl}-z,text'
  26095. - allow_undefined_flag='${wl}-z,nodefs'
  26096. - archive_cmds_need_lc=no
  26097. - hardcode_shlibpath_var=no
  26098. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  26099. - hardcode_libdir_separator=':'
  26100. - link_all_deplibs=yes
  26101. - export_dynamic_flag_spec='${wl}-Bexport'
  26102. - runpath_var='LD_RUN_PATH'
  26103. - if test "$GCC" = yes; then
  26104. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26105. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26106. - else
  26107. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26108. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26109. - fi
  26110. - ;;
  26111. - uts4*)
  26112. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26113. - hardcode_libdir_flag_spec='-L$libdir'
  26114. - hardcode_shlibpath_var=no
  26115. - ;;
  26116. - *)
  26117. - ld_shlibs=no
  26118. - ;;
  26119. - esac
  26120. - fi
  26121. +test -z "$LN_S" && LN_S="ln -s"
  26122. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  26123. -echo "${ECHO_T}$ld_shlibs" >&6
  26124. -test "$ld_shlibs" = no && can_build_shared=no
  26125. -#
  26126. -# Do we need to explicitly link libc?
  26127. -#
  26128. -case "x$archive_cmds_need_lc" in
  26129. -x|xyes)
  26130. - # Assume -lc should be added
  26131. - archive_cmds_need_lc=yes
  26132. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  26133. - case $archive_cmds in
  26134. - *'~'*)
  26135. - # FIXME: we may have to deal with multi-command sequences.
  26136. - ;;
  26137. - '$CC '*)
  26138. - # Test whether the compiler implicitly links with -lc since on some
  26139. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26140. - # to ld, don't add -lc before -lgcc.
  26141. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  26142. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  26143. - $rm conftest*
  26144. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26145. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26146. - (eval $ac_compile) 2>&5
  26147. - ac_status=$?
  26148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26149. - (exit $ac_status); } 2>conftest.err; then
  26150. - soname=conftest
  26151. - lib=conftest
  26152. - libobjs=conftest.$ac_objext
  26153. - deplibs=
  26154. - wl=$lt_prog_compiler_wl
  26155. - pic_flag=$lt_prog_compiler_pic
  26156. - compiler_flags=-v
  26157. - linker_flags=-v
  26158. - verstring=
  26159. - output_objdir=.
  26160. - libname=conftest
  26161. - lt_save_allow_undefined_flag=$allow_undefined_flag
  26162. - allow_undefined_flag=
  26163. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  26164. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26165. - ac_status=$?
  26166. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26167. - (exit $ac_status); }
  26168. - then
  26169. - archive_cmds_need_lc=no
  26170. - else
  26171. - archive_cmds_need_lc=yes
  26172. - fi
  26173. - allow_undefined_flag=$lt_save_allow_undefined_flag
  26174. - else
  26175. - cat conftest.err 1>&5
  26176. - fi
  26177. - $rm conftest*
  26178. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  26179. -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  26180. - ;;
  26181. - esac
  26182. - fi
  26183. - ;;
  26184. -esac
  26185. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  26186. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  26187. -library_names_spec=
  26188. -libname_spec='lib$name'
  26189. -soname_spec=
  26190. -shrext_cmds=".so"
  26191. -postinstall_cmds=
  26192. -postuninstall_cmds=
  26193. -finish_cmds=
  26194. -finish_eval=
  26195. -shlibpath_var=
  26196. -shlibpath_overrides_runpath=unknown
  26197. -version_type=none
  26198. -dynamic_linker="$host_os ld.so"
  26199. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  26200. -if test "$GCC" = yes; then
  26201. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26202. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  26203. - # if the path contains ";" then we assume it to be the separator
  26204. - # otherwise default to the standard path separator (i.e. ":") - it is
  26205. - # assumed that no part of a normal pathname contains ";" but that should
  26206. - # okay in the real world where ";" in dirpaths is itself problematic.
  26207. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26208. - else
  26209. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26210. - fi
  26211. +
  26212. +
  26213. +
  26214. +
  26215. +
  26216. +
  26217. +
  26218. +
  26219. +
  26220. +if test -n "${ZSH_VERSION+set}" ; then
  26221. + setopt NO_GLOB_SUBST
  26222. +fi
  26223. +
  26224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  26225. +$as_echo_n "checking for objdir... " >&6; }
  26226. +if test "${lt_cv_objdir+set}" = set; then :
  26227. + $as_echo_n "(cached) " >&6
  26228. else
  26229. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  26230. + rm -f .libs 2>/dev/null
  26231. +mkdir .libs 2>/dev/null
  26232. +if test -d .libs; then
  26233. + lt_cv_objdir=.libs
  26234. +else
  26235. + # MS-DOS does not allow filenames that begin with a dot.
  26236. + lt_cv_objdir=_libs
  26237. fi
  26238. -need_lib_prefix=unknown
  26239. -hardcode_into_libs=no
  26240. +rmdir .libs 2>/dev/null
  26241. +fi
  26242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  26243. +$as_echo "$lt_cv_objdir" >&6; }
  26244. +objdir=$lt_cv_objdir
  26245. -# when you set need_version to no, make sure it does not cause -set_version
  26246. -# flags to be left without arguments
  26247. -need_version=unknown
  26248. -case $host_os in
  26249. -aix3*)
  26250. - version_type=linux
  26251. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  26252. - shlibpath_var=LIBPATH
  26253. - # AIX 3 has no versioning support, so we append a major version to the name.
  26254. - soname_spec='${libname}${release}${shared_ext}$major'
  26255. - ;;
  26256. -aix4* | aix5*)
  26257. - version_type=linux
  26258. - need_lib_prefix=no
  26259. - need_version=no
  26260. - hardcode_into_libs=yes
  26261. - if test "$host_cpu" = ia64; then
  26262. - # AIX 5 supports IA64
  26263. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  26264. - shlibpath_var=LD_LIBRARY_PATH
  26265. - else
  26266. - # With GCC up to 2.95.x, collect2 would create an import file
  26267. - # for dependence libraries. The import file would start with
  26268. - # the line `#! .'. This would cause the generated library to
  26269. - # depend on `.', always an invalid library. This was fixed in
  26270. - # development snapshots of GCC prior to 3.0.
  26271. - case $host_os in
  26272. - aix4 | aix4.[01] | aix4.[01].*)
  26273. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  26274. - echo ' yes '
  26275. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  26276. - :
  26277. - else
  26278. - can_build_shared=no
  26279. - fi
  26280. - ;;
  26281. - esac
  26282. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26283. - # soname into executable. Probably we can add versioning support to
  26284. - # collect2, so additional links can be useful in future.
  26285. - if test "$aix_use_runtimelinking" = yes; then
  26286. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26287. - # instead of lib<name>.a to let people know that these are not
  26288. - # typical AIX shared libraries.
  26289. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26290. - else
  26291. - # We preserve .a as extension for shared libraries through AIX4.2
  26292. - # and later when we are not doing run time linking.
  26293. - library_names_spec='${libname}${release}.a $libname.a'
  26294. - soname_spec='${libname}${release}${shared_ext}$major'
  26295. - fi
  26296. - shlibpath_var=LIBPATH
  26297. - fi
  26298. - ;;
  26299. -amigaos*)
  26300. - library_names_spec='$libname.ixlibrary $libname.a'
  26301. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26302. - 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'
  26303. - ;;
  26304. +cat >>confdefs.h <<_ACEOF
  26305. +#define LT_OBJDIR "$lt_cv_objdir/"
  26306. +_ACEOF
  26307. -beos*)
  26308. - library_names_spec='${libname}${shared_ext}'
  26309. - dynamic_linker="$host_os ld.so"
  26310. - shlibpath_var=LIBRARY_PATH
  26311. - ;;
  26312. -bsdi[45]*)
  26313. - version_type=linux
  26314. - need_version=no
  26315. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26316. - soname_spec='${libname}${release}${shared_ext}$major'
  26317. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26318. - shlibpath_var=LD_LIBRARY_PATH
  26319. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26320. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26321. - # the default ld.so.conf also contains /usr/contrib/lib and
  26322. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26323. - # libtool to hard-code these into programs
  26324. - ;;
  26325. -cygwin* | mingw* | pw32*)
  26326. - version_type=windows
  26327. - shrext_cmds=".dll"
  26328. - need_version=no
  26329. - need_lib_prefix=no
  26330. - case $GCC,$host_os in
  26331. - yes,cygwin* | yes,mingw* | yes,pw32*)
  26332. - library_names_spec='$libname.dll.a'
  26333. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26334. - postinstall_cmds='base_file=`basename \${file}`~
  26335. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26336. - dldir=$destdir/`dirname \$dlpath`~
  26337. - test -d \$dldir || mkdir -p \$dldir~
  26338. - $install_prog $dir/$dlname \$dldir/$dlname~
  26339. - chmod a+x \$dldir/$dlname'
  26340. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26341. - dlpath=$dir/\$dldll~
  26342. - $rm \$dlpath'
  26343. - shlibpath_overrides_runpath=yes
  26344. - case $host_os in
  26345. - cygwin*)
  26346. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26347. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26348. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26349. - ;;
  26350. - mingw*)
  26351. - # MinGW DLLs use traditional 'lib' prefix
  26352. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26353. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26354. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26355. - # It is most probably a Windows format PATH printed by
  26356. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26357. - # path with ; separators, and with drive letters. We can handle the
  26358. - # drive letters (cygwin fileutils understands them), so leave them,
  26359. - # especially as we might pass files found there to a mingw objdump,
  26360. - # which wouldn't understand a cygwinified path. Ahh.
  26361. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26362. - else
  26363. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26364. - fi
  26365. - ;;
  26366. - pw32*)
  26367. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  26368. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26369. - ;;
  26370. - esac
  26371. - ;;
  26372. - *)
  26373. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  26374. - ;;
  26375. - esac
  26376. - dynamic_linker='Win32 ld.exe'
  26377. - # FIXME: first we should search . and the directory the executable is in
  26378. - shlibpath_var=PATH
  26379. - ;;
  26380. -darwin* | rhapsody*)
  26381. - dynamic_linker="$host_os dyld"
  26382. - version_type=darwin
  26383. - need_lib_prefix=no
  26384. - need_version=no
  26385. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  26386. - soname_spec='${libname}${release}${major}$shared_ext'
  26387. - shlibpath_overrides_runpath=yes
  26388. - shlibpath_var=DYLD_LIBRARY_PATH
  26389. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  26390. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  26391. - if test "$GCC" = yes; then
  26392. - 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"`
  26393. - else
  26394. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  26395. +
  26396. +
  26397. +
  26398. +
  26399. +
  26400. +
  26401. +
  26402. +
  26403. +
  26404. +
  26405. +case $host_os in
  26406. +aix3*)
  26407. + # AIX sometimes has problems with the GCC collect2 program. For some
  26408. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  26409. + # vanish in a puff of smoke.
  26410. + if test "X${COLLECT_NAMES+set}" != Xset; then
  26411. + COLLECT_NAMES=
  26412. + export COLLECT_NAMES
  26413. fi
  26414. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  26415. ;;
  26416. +esac
  26417. -dgux*)
  26418. - version_type=linux
  26419. - need_lib_prefix=no
  26420. - need_version=no
  26421. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  26422. - soname_spec='${libname}${release}${shared_ext}$major'
  26423. - shlibpath_var=LD_LIBRARY_PATH
  26424. - ;;
  26425. +# Sed substitution that helps us do robust quoting. It backslashifies
  26426. +# metacharacters that are still active within double-quoted strings.
  26427. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  26428. -freebsd1*)
  26429. - dynamic_linker=no
  26430. - ;;
  26431. +# Same as above, but do not quote variable references.
  26432. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  26433. -kfreebsd*-gnu)
  26434. - version_type=linux
  26435. - need_lib_prefix=no
  26436. - need_version=no
  26437. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26438. - soname_spec='${libname}${release}${shared_ext}$major'
  26439. - shlibpath_var=LD_LIBRARY_PATH
  26440. - shlibpath_overrides_runpath=no
  26441. - hardcode_into_libs=yes
  26442. - dynamic_linker='GNU ld.so'
  26443. - ;;
  26444. +# Sed substitution to delay expansion of an escaped shell variable in a
  26445. +# double_quote_subst'ed string.
  26446. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  26447. -freebsd* | dragonfly*)
  26448. - # DragonFly does not have aout. When/if they implement a new
  26449. - # versioning mechanism, adjust this.
  26450. - if test -x /usr/bin/objformat; then
  26451. - objformat=`/usr/bin/objformat`
  26452. - else
  26453. - case $host_os in
  26454. - freebsd[123]*) objformat=aout ;;
  26455. - *) objformat=elf ;;
  26456. - esac
  26457. - fi
  26458. - version_type=freebsd-$objformat
  26459. - case $version_type in
  26460. - freebsd-elf*)
  26461. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26462. - need_version=no
  26463. - need_lib_prefix=no
  26464. - ;;
  26465. - freebsd-*)
  26466. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  26467. - need_version=yes
  26468. - ;;
  26469. - esac
  26470. - shlibpath_var=LD_LIBRARY_PATH
  26471. - case $host_os in
  26472. - freebsd2*)
  26473. - shlibpath_overrides_runpath=yes
  26474. - ;;
  26475. - freebsd3.[01]* | freebsdelf3.[01]*)
  26476. - shlibpath_overrides_runpath=yes
  26477. - hardcode_into_libs=yes
  26478. - ;;
  26479. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  26480. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  26481. - shlibpath_overrides_runpath=no
  26482. - hardcode_into_libs=yes
  26483. - ;;
  26484. - freebsd*) # from 4.6 on
  26485. - shlibpath_overrides_runpath=yes
  26486. - hardcode_into_libs=yes
  26487. - ;;
  26488. - esac
  26489. - ;;
  26490. -
  26491. -gnu*)
  26492. - version_type=linux
  26493. - need_lib_prefix=no
  26494. - need_version=no
  26495. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26496. - soname_spec='${libname}${release}${shared_ext}$major'
  26497. - shlibpath_var=LD_LIBRARY_PATH
  26498. - hardcode_into_libs=yes
  26499. - ;;
  26500. -
  26501. -hpux9* | hpux10* | hpux11*)
  26502. - # Give a soname corresponding to the major version so that dld.sl refuses to
  26503. - # link against other versions.
  26504. - version_type=sunos
  26505. - need_lib_prefix=no
  26506. - need_version=no
  26507. - case $host_cpu in
  26508. - ia64*)
  26509. - shrext_cmds='.so'
  26510. - hardcode_into_libs=yes
  26511. - dynamic_linker="$host_os dld.so"
  26512. - shlibpath_var=LD_LIBRARY_PATH
  26513. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26514. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26515. - soname_spec='${libname}${release}${shared_ext}$major'
  26516. - if test "X$HPUX_IA64_MODE" = X32; then
  26517. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26518. - else
  26519. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26520. - fi
  26521. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26522. - ;;
  26523. - hppa*64*)
  26524. - shrext_cmds='.sl'
  26525. - hardcode_into_libs=yes
  26526. - dynamic_linker="$host_os dld.sl"
  26527. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26528. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26529. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26530. - soname_spec='${libname}${release}${shared_ext}$major'
  26531. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26532. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26533. - ;;
  26534. - *)
  26535. - shrext_cmds='.sl'
  26536. - dynamic_linker="$host_os dld.sl"
  26537. - shlibpath_var=SHLIB_PATH
  26538. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26539. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26540. - soname_spec='${libname}${release}${shared_ext}$major'
  26541. - ;;
  26542. - esac
  26543. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26544. - postinstall_cmds='chmod 555 $lib'
  26545. - ;;
  26546. -
  26547. -interix3*)
  26548. - version_type=linux
  26549. - need_lib_prefix=no
  26550. - need_version=no
  26551. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26552. - soname_spec='${libname}${release}${shared_ext}$major'
  26553. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26554. - shlibpath_var=LD_LIBRARY_PATH
  26555. - shlibpath_overrides_runpath=no
  26556. - hardcode_into_libs=yes
  26557. - ;;
  26558. -
  26559. -irix5* | irix6* | nonstopux*)
  26560. - case $host_os in
  26561. - nonstopux*) version_type=nonstopux ;;
  26562. - *)
  26563. - if test "$lt_cv_prog_gnu_ld" = yes; then
  26564. - version_type=linux
  26565. - else
  26566. - version_type=irix
  26567. - fi ;;
  26568. - esac
  26569. - need_lib_prefix=no
  26570. - need_version=no
  26571. - soname_spec='${libname}${release}${shared_ext}$major'
  26572. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  26573. - case $host_os in
  26574. - irix5* | nonstopux*)
  26575. - libsuff= shlibsuff=
  26576. - ;;
  26577. - *)
  26578. - case $LD in # libtool.m4 will add one of these switches to LD
  26579. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  26580. - libsuff= shlibsuff= libmagic=32-bit;;
  26581. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  26582. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  26583. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  26584. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  26585. - *) libsuff= shlibsuff= libmagic=never-match;;
  26586. - esac
  26587. - ;;
  26588. - esac
  26589. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  26590. - shlibpath_overrides_runpath=no
  26591. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  26592. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  26593. - hardcode_into_libs=yes
  26594. - ;;
  26595. -
  26596. -# No shared lib support for Linux oldld, aout, or coff.
  26597. -linux*oldld* | linux*aout* | linux*coff*)
  26598. - dynamic_linker=no
  26599. - ;;
  26600. -
  26601. -# This must be Linux ELF.
  26602. -linux*)
  26603. - version_type=linux
  26604. - need_lib_prefix=no
  26605. - need_version=no
  26606. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26607. - soname_spec='${libname}${release}${shared_ext}$major'
  26608. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  26609. - shlibpath_var=LD_LIBRARY_PATH
  26610. - shlibpath_overrides_runpath=no
  26611. - # This implies no fast_install, which is unacceptable.
  26612. - # Some rework will be needed to allow for fast_install
  26613. - # before this can be enabled.
  26614. - hardcode_into_libs=yes
  26615. -
  26616. - # Append ld.so.conf contents to the search path
  26617. - if test -f /etc/ld.so.conf; then
  26618. - 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' ' '`
  26619. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26620. - fi
  26621. -
  26622. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  26623. - # powerpc, because MkLinux only supported shared libraries with the
  26624. - # GNU dynamic linker. Since this was broken with cross compilers,
  26625. - # most powerpc-linux boxes support dynamic linking these days and
  26626. - # people can always --disable-shared, the test was removed, and we
  26627. - # assume the GNU/Linux dynamic linker is in use.
  26628. - dynamic_linker='GNU/Linux ld.so'
  26629. - ;;
  26630. -
  26631. -netbsdelf*-gnu)
  26632. - version_type=linux
  26633. - need_lib_prefix=no
  26634. - need_version=no
  26635. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26636. - soname_spec='${libname}${release}${shared_ext}$major'
  26637. - shlibpath_var=LD_LIBRARY_PATH
  26638. - shlibpath_overrides_runpath=no
  26639. - hardcode_into_libs=yes
  26640. - dynamic_linker='NetBSD ld.elf_so'
  26641. - ;;
  26642. -
  26643. -knetbsd*-gnu)
  26644. - version_type=linux
  26645. - need_lib_prefix=no
  26646. - need_version=no
  26647. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26648. - soname_spec='${libname}${release}${shared_ext}$major'
  26649. - shlibpath_var=LD_LIBRARY_PATH
  26650. - shlibpath_overrides_runpath=no
  26651. - hardcode_into_libs=yes
  26652. - dynamic_linker='GNU ld.so'
  26653. - ;;
  26654. -
  26655. -netbsd*)
  26656. - version_type=sunos
  26657. - need_lib_prefix=no
  26658. - need_version=no
  26659. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26660. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26661. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26662. - dynamic_linker='NetBSD (a.out) ld.so'
  26663. - else
  26664. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26665. - soname_spec='${libname}${release}${shared_ext}$major'
  26666. - dynamic_linker='NetBSD ld.elf_so'
  26667. - fi
  26668. - shlibpath_var=LD_LIBRARY_PATH
  26669. - shlibpath_overrides_runpath=yes
  26670. - hardcode_into_libs=yes
  26671. - ;;
  26672. -
  26673. -newsos6)
  26674. - version_type=linux
  26675. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26676. - shlibpath_var=LD_LIBRARY_PATH
  26677. - shlibpath_overrides_runpath=yes
  26678. - ;;
  26679. -
  26680. -nto-qnx*)
  26681. - version_type=linux
  26682. - need_lib_prefix=no
  26683. - need_version=no
  26684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26685. - soname_spec='${libname}${release}${shared_ext}$major'
  26686. - shlibpath_var=LD_LIBRARY_PATH
  26687. - shlibpath_overrides_runpath=yes
  26688. - ;;
  26689. -
  26690. -openbsd*)
  26691. - version_type=sunos
  26692. - sys_lib_dlsearch_path_spec="/usr/lib"
  26693. - need_lib_prefix=no
  26694. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  26695. - case $host_os in
  26696. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26697. - *) need_version=no ;;
  26698. - esac
  26699. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26700. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26701. - shlibpath_var=LD_LIBRARY_PATH
  26702. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26703. - case $host_os in
  26704. - openbsd2.[89] | openbsd2.[89].*)
  26705. - shlibpath_overrides_runpath=no
  26706. - ;;
  26707. - *)
  26708. - shlibpath_overrides_runpath=yes
  26709. - ;;
  26710. - esac
  26711. - else
  26712. - shlibpath_overrides_runpath=yes
  26713. - fi
  26714. - ;;
  26715. -
  26716. -os2*)
  26717. - libname_spec='$name'
  26718. - shrext_cmds=".dll"
  26719. - need_lib_prefix=no
  26720. - library_names_spec='$libname${shared_ext} $libname.a'
  26721. - dynamic_linker='OS/2 ld.exe'
  26722. - shlibpath_var=LIBPATH
  26723. - ;;
  26724. -
  26725. -osf3* | osf4* | osf5*)
  26726. - version_type=osf
  26727. - need_lib_prefix=no
  26728. - need_version=no
  26729. - soname_spec='${libname}${release}${shared_ext}$major'
  26730. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26731. - shlibpath_var=LD_LIBRARY_PATH
  26732. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  26733. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  26734. - ;;
  26735. -
  26736. -solaris*)
  26737. - version_type=linux
  26738. - need_lib_prefix=no
  26739. - need_version=no
  26740. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26741. - soname_spec='${libname}${release}${shared_ext}$major'
  26742. - shlibpath_var=LD_LIBRARY_PATH
  26743. - shlibpath_overrides_runpath=yes
  26744. - hardcode_into_libs=yes
  26745. - # ldd complains unless libraries are executable
  26746. - postinstall_cmds='chmod +x $lib'
  26747. - ;;
  26748. -
  26749. -sunos4*)
  26750. - version_type=sunos
  26751. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26752. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  26753. - shlibpath_var=LD_LIBRARY_PATH
  26754. - shlibpath_overrides_runpath=yes
  26755. - if test "$with_gnu_ld" = yes; then
  26756. - need_lib_prefix=no
  26757. - fi
  26758. - need_version=yes
  26759. - ;;
  26760. -
  26761. -sysv4 | sysv4.3*)
  26762. - version_type=linux
  26763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26764. - soname_spec='${libname}${release}${shared_ext}$major'
  26765. - shlibpath_var=LD_LIBRARY_PATH
  26766. - case $host_vendor in
  26767. - sni)
  26768. - shlibpath_overrides_runpath=no
  26769. - need_lib_prefix=no
  26770. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  26771. - runpath_var=LD_RUN_PATH
  26772. - ;;
  26773. - siemens)
  26774. - need_lib_prefix=no
  26775. - ;;
  26776. - motorola)
  26777. - need_lib_prefix=no
  26778. - need_version=no
  26779. - shlibpath_overrides_runpath=no
  26780. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  26781. - ;;
  26782. - esac
  26783. - ;;
  26784. -
  26785. -sysv4*MP*)
  26786. - if test -d /usr/nec ;then
  26787. - version_type=linux
  26788. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  26789. - soname_spec='$libname${shared_ext}.$major'
  26790. - shlibpath_var=LD_LIBRARY_PATH
  26791. - fi
  26792. - ;;
  26793. -
  26794. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  26795. - version_type=freebsd-elf
  26796. - need_lib_prefix=no
  26797. - need_version=no
  26798. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26799. - soname_spec='${libname}${release}${shared_ext}$major'
  26800. - shlibpath_var=LD_LIBRARY_PATH
  26801. - hardcode_into_libs=yes
  26802. - if test "$with_gnu_ld" = yes; then
  26803. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  26804. - shlibpath_overrides_runpath=no
  26805. - else
  26806. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  26807. - shlibpath_overrides_runpath=yes
  26808. - case $host_os in
  26809. - sco3.2v5*)
  26810. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  26811. - ;;
  26812. - esac
  26813. - fi
  26814. - sys_lib_dlsearch_path_spec='/usr/lib'
  26815. - ;;
  26816. -
  26817. -uts4*)
  26818. - version_type=linux
  26819. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26820. - soname_spec='${libname}${release}${shared_ext}$major'
  26821. - shlibpath_var=LD_LIBRARY_PATH
  26822. - ;;
  26823. -
  26824. -*)
  26825. - dynamic_linker=no
  26826. - ;;
  26827. -esac
  26828. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  26829. -echo "${ECHO_T}$dynamic_linker" >&6
  26830. -test "$dynamic_linker" = no && can_build_shared=no
  26831. -
  26832. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  26833. -if test "$GCC" = yes; then
  26834. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  26835. -fi
  26836. -
  26837. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  26838. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  26839. -hardcode_action=
  26840. -if test -n "$hardcode_libdir_flag_spec" || \
  26841. - test -n "$runpath_var" || \
  26842. - test "X$hardcode_automatic" = "Xyes" ; then
  26843. -
  26844. - # We can hardcode non-existant directories.
  26845. - if test "$hardcode_direct" != no &&
  26846. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  26847. - # have to relink, otherwise we might link with an installed library
  26848. - # when we should be linking with a yet-to-be-installed one
  26849. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  26850. - test "$hardcode_minus_L" != no; then
  26851. - # Linking always hardcodes the temporary library directory.
  26852. - hardcode_action=relink
  26853. - else
  26854. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  26855. - hardcode_action=immediate
  26856. - fi
  26857. -else
  26858. - # We cannot hardcode anything, or else we can only hardcode existing
  26859. - # directories.
  26860. - hardcode_action=unsupported
  26861. -fi
  26862. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  26863. -echo "${ECHO_T}$hardcode_action" >&6
  26864. -
  26865. -if test "$hardcode_action" = relink; then
  26866. - # Fast installation is not supported
  26867. - enable_fast_install=no
  26868. -elif test "$shlibpath_overrides_runpath" = yes ||
  26869. - test "$enable_shared" = no; then
  26870. - # Fast installation is not necessary
  26871. - enable_fast_install=needless
  26872. -fi
  26873. -
  26874. -striplib=
  26875. -old_striplib=
  26876. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  26877. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  26878. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  26879. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  26880. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  26881. - echo "$as_me:$LINENO: result: yes" >&5
  26882. -echo "${ECHO_T}yes" >&6
  26883. -else
  26884. -# FIXME - insert some real tests, host_os isn't really good enough
  26885. - case $host_os in
  26886. - darwin*)
  26887. - if test -n "$STRIP" ; then
  26888. - striplib="$STRIP -x"
  26889. - echo "$as_me:$LINENO: result: yes" >&5
  26890. -echo "${ECHO_T}yes" >&6
  26891. - else
  26892. - echo "$as_me:$LINENO: result: no" >&5
  26893. -echo "${ECHO_T}no" >&6
  26894. -fi
  26895. - ;;
  26896. - *)
  26897. - echo "$as_me:$LINENO: result: no" >&5
  26898. -echo "${ECHO_T}no" >&6
  26899. - ;;
  26900. - esac
  26901. -fi
  26902. -
  26903. -if test "x$enable_dlopen" != xyes; then
  26904. - enable_dlopen=unknown
  26905. - enable_dlopen_self=unknown
  26906. - enable_dlopen_self_static=unknown
  26907. -else
  26908. - lt_cv_dlopen=no
  26909. - lt_cv_dlopen_libs=
  26910. -
  26911. - case $host_os in
  26912. - beos*)
  26913. - lt_cv_dlopen="load_add_on"
  26914. - lt_cv_dlopen_libs=
  26915. - lt_cv_dlopen_self=yes
  26916. - ;;
  26917. -
  26918. - mingw* | pw32*)
  26919. - lt_cv_dlopen="LoadLibrary"
  26920. - lt_cv_dlopen_libs=
  26921. - ;;
  26922. -
  26923. - cygwin*)
  26924. - lt_cv_dlopen="dlopen"
  26925. - lt_cv_dlopen_libs=
  26926. - ;;
  26927. -
  26928. - darwin*)
  26929. - # if libdl is installed we need to link against it
  26930. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26931. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  26932. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26933. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26934. -else
  26935. - ac_check_lib_save_LIBS=$LIBS
  26936. -LIBS="-ldl $LIBS"
  26937. -cat >conftest.$ac_ext <<_ACEOF
  26938. -/* confdefs.h. */
  26939. -_ACEOF
  26940. -cat confdefs.h >>conftest.$ac_ext
  26941. -cat >>conftest.$ac_ext <<_ACEOF
  26942. -/* end confdefs.h. */
  26943. -
  26944. -/* Override any gcc2 internal prototype to avoid an error. */
  26945. -#ifdef __cplusplus
  26946. -extern "C"
  26947. -#endif
  26948. -/* We use char because int might match the return type of a gcc2
  26949. - builtin and then its argument prototype would still apply. */
  26950. -char dlopen ();
  26951. -int
  26952. -main ()
  26953. -{
  26954. -dlopen ();
  26955. - ;
  26956. - return 0;
  26957. -}
  26958. -_ACEOF
  26959. -rm -f conftest.$ac_objext conftest$ac_exeext
  26960. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26961. - (eval $ac_link) 2>conftest.er1
  26962. - ac_status=$?
  26963. - grep -v '^ *+' conftest.er1 >conftest.err
  26964. - rm -f conftest.er1
  26965. - cat conftest.err >&5
  26966. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26967. - (exit $ac_status); } &&
  26968. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26969. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26970. - (eval $ac_try) 2>&5
  26971. - ac_status=$?
  26972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26973. - (exit $ac_status); }; } &&
  26974. - { ac_try='test -s conftest$ac_exeext'
  26975. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26976. - (eval $ac_try) 2>&5
  26977. - ac_status=$?
  26978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26979. - (exit $ac_status); }; }; then
  26980. - ac_cv_lib_dl_dlopen=yes
  26981. -else
  26982. - echo "$as_me: failed program was:" >&5
  26983. -sed 's/^/| /' conftest.$ac_ext >&5
  26984. -
  26985. -ac_cv_lib_dl_dlopen=no
  26986. -fi
  26987. -rm -f conftest.err conftest.$ac_objext \
  26988. - conftest$ac_exeext conftest.$ac_ext
  26989. -LIBS=$ac_check_lib_save_LIBS
  26990. -fi
  26991. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26992. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  26993. -if test $ac_cv_lib_dl_dlopen = yes; then
  26994. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26995. -else
  26996. -
  26997. - lt_cv_dlopen="dyld"
  26998. - lt_cv_dlopen_libs=
  26999. - lt_cv_dlopen_self=yes
  27000. -
  27001. -fi
  27002. -
  27003. - ;;
  27004. -
  27005. - *)
  27006. - echo "$as_me:$LINENO: checking for shl_load" >&5
  27007. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  27008. -if test "${ac_cv_func_shl_load+set}" = set; then
  27009. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27010. -else
  27011. - cat >conftest.$ac_ext <<_ACEOF
  27012. -/* confdefs.h. */
  27013. -_ACEOF
  27014. -cat confdefs.h >>conftest.$ac_ext
  27015. -cat >>conftest.$ac_ext <<_ACEOF
  27016. -/* end confdefs.h. */
  27017. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  27018. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27019. -#define shl_load innocuous_shl_load
  27020. -
  27021. -/* System header to define __stub macros and hopefully few prototypes,
  27022. - which can conflict with char shl_load (); below.
  27023. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27024. - <limits.h> exists even on freestanding compilers. */
  27025. -
  27026. -#ifdef __STDC__
  27027. -# include <limits.h>
  27028. -#else
  27029. -# include <assert.h>
  27030. -#endif
  27031. -
  27032. -#undef shl_load
  27033. -
  27034. -/* Override any gcc2 internal prototype to avoid an error. */
  27035. -#ifdef __cplusplus
  27036. -extern "C"
  27037. -{
  27038. -#endif
  27039. -/* We use char because int might match the return type of a gcc2
  27040. - builtin and then its argument prototype would still apply. */
  27041. -char shl_load ();
  27042. -/* The GNU C library defines this for functions which it implements
  27043. - to always fail with ENOSYS. Some functions are actually named
  27044. - something starting with __ and the normal name is an alias. */
  27045. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  27046. -choke me
  27047. -#else
  27048. -char (*f) () = shl_load;
  27049. -#endif
  27050. -#ifdef __cplusplus
  27051. -}
  27052. -#endif
  27053. -
  27054. -int
  27055. -main ()
  27056. -{
  27057. -return f != shl_load;
  27058. - ;
  27059. - return 0;
  27060. -}
  27061. -_ACEOF
  27062. -rm -f conftest.$ac_objext conftest$ac_exeext
  27063. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27064. - (eval $ac_link) 2>conftest.er1
  27065. - ac_status=$?
  27066. - grep -v '^ *+' conftest.er1 >conftest.err
  27067. - rm -f conftest.er1
  27068. - cat conftest.err >&5
  27069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27070. - (exit $ac_status); } &&
  27071. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27072. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27073. - (eval $ac_try) 2>&5
  27074. - ac_status=$?
  27075. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27076. - (exit $ac_status); }; } &&
  27077. - { ac_try='test -s conftest$ac_exeext'
  27078. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27079. - (eval $ac_try) 2>&5
  27080. - ac_status=$?
  27081. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27082. - (exit $ac_status); }; }; then
  27083. - ac_cv_func_shl_load=yes
  27084. -else
  27085. - echo "$as_me: failed program was:" >&5
  27086. -sed 's/^/| /' conftest.$ac_ext >&5
  27087. -
  27088. -ac_cv_func_shl_load=no
  27089. -fi
  27090. -rm -f conftest.err conftest.$ac_objext \
  27091. - conftest$ac_exeext conftest.$ac_ext
  27092. -fi
  27093. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  27094. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  27095. -if test $ac_cv_func_shl_load = yes; then
  27096. - lt_cv_dlopen="shl_load"
  27097. -else
  27098. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  27099. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  27100. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  27101. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27102. -else
  27103. - ac_check_lib_save_LIBS=$LIBS
  27104. -LIBS="-ldld $LIBS"
  27105. -cat >conftest.$ac_ext <<_ACEOF
  27106. -/* confdefs.h. */
  27107. -_ACEOF
  27108. -cat confdefs.h >>conftest.$ac_ext
  27109. -cat >>conftest.$ac_ext <<_ACEOF
  27110. -/* end confdefs.h. */
  27111. -
  27112. -/* Override any gcc2 internal prototype to avoid an error. */
  27113. -#ifdef __cplusplus
  27114. -extern "C"
  27115. -#endif
  27116. -/* We use char because int might match the return type of a gcc2
  27117. - builtin and then its argument prototype would still apply. */
  27118. -char shl_load ();
  27119. -int
  27120. -main ()
  27121. -{
  27122. -shl_load ();
  27123. - ;
  27124. - return 0;
  27125. -}
  27126. -_ACEOF
  27127. -rm -f conftest.$ac_objext conftest$ac_exeext
  27128. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27129. - (eval $ac_link) 2>conftest.er1
  27130. - ac_status=$?
  27131. - grep -v '^ *+' conftest.er1 >conftest.err
  27132. - rm -f conftest.er1
  27133. - cat conftest.err >&5
  27134. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27135. - (exit $ac_status); } &&
  27136. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27137. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27138. - (eval $ac_try) 2>&5
  27139. - ac_status=$?
  27140. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27141. - (exit $ac_status); }; } &&
  27142. - { ac_try='test -s conftest$ac_exeext'
  27143. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27144. - (eval $ac_try) 2>&5
  27145. - ac_status=$?
  27146. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27147. - (exit $ac_status); }; }; then
  27148. - ac_cv_lib_dld_shl_load=yes
  27149. -else
  27150. - echo "$as_me: failed program was:" >&5
  27151. -sed 's/^/| /' conftest.$ac_ext >&5
  27152. -
  27153. -ac_cv_lib_dld_shl_load=no
  27154. -fi
  27155. -rm -f conftest.err conftest.$ac_objext \
  27156. - conftest$ac_exeext conftest.$ac_ext
  27157. -LIBS=$ac_check_lib_save_LIBS
  27158. -fi
  27159. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  27160. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  27161. -if test $ac_cv_lib_dld_shl_load = yes; then
  27162. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  27163. -else
  27164. - echo "$as_me:$LINENO: checking for dlopen" >&5
  27165. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  27166. -if test "${ac_cv_func_dlopen+set}" = set; then
  27167. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27168. -else
  27169. - cat >conftest.$ac_ext <<_ACEOF
  27170. -/* confdefs.h. */
  27171. -_ACEOF
  27172. -cat confdefs.h >>conftest.$ac_ext
  27173. -cat >>conftest.$ac_ext <<_ACEOF
  27174. -/* end confdefs.h. */
  27175. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  27176. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27177. -#define dlopen innocuous_dlopen
  27178. -
  27179. -/* System header to define __stub macros and hopefully few prototypes,
  27180. - which can conflict with char dlopen (); below.
  27181. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27182. - <limits.h> exists even on freestanding compilers. */
  27183. -
  27184. -#ifdef __STDC__
  27185. -# include <limits.h>
  27186. -#else
  27187. -# include <assert.h>
  27188. -#endif
  27189. -
  27190. -#undef dlopen
  27191. -
  27192. -/* Override any gcc2 internal prototype to avoid an error. */
  27193. -#ifdef __cplusplus
  27194. -extern "C"
  27195. -{
  27196. -#endif
  27197. -/* We use char because int might match the return type of a gcc2
  27198. - builtin and then its argument prototype would still apply. */
  27199. -char dlopen ();
  27200. -/* The GNU C library defines this for functions which it implements
  27201. - to always fail with ENOSYS. Some functions are actually named
  27202. - something starting with __ and the normal name is an alias. */
  27203. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  27204. -choke me
  27205. -#else
  27206. -char (*f) () = dlopen;
  27207. -#endif
  27208. -#ifdef __cplusplus
  27209. -}
  27210. -#endif
  27211. -
  27212. -int
  27213. -main ()
  27214. -{
  27215. -return f != dlopen;
  27216. - ;
  27217. - return 0;
  27218. -}
  27219. -_ACEOF
  27220. -rm -f conftest.$ac_objext conftest$ac_exeext
  27221. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27222. - (eval $ac_link) 2>conftest.er1
  27223. - ac_status=$?
  27224. - grep -v '^ *+' conftest.er1 >conftest.err
  27225. - rm -f conftest.er1
  27226. - cat conftest.err >&5
  27227. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27228. - (exit $ac_status); } &&
  27229. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27230. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27231. - (eval $ac_try) 2>&5
  27232. - ac_status=$?
  27233. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27234. - (exit $ac_status); }; } &&
  27235. - { ac_try='test -s conftest$ac_exeext'
  27236. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27237. - (eval $ac_try) 2>&5
  27238. - ac_status=$?
  27239. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27240. - (exit $ac_status); }; }; then
  27241. - ac_cv_func_dlopen=yes
  27242. -else
  27243. - echo "$as_me: failed program was:" >&5
  27244. -sed 's/^/| /' conftest.$ac_ext >&5
  27245. -
  27246. -ac_cv_func_dlopen=no
  27247. -fi
  27248. -rm -f conftest.err conftest.$ac_objext \
  27249. - conftest$ac_exeext conftest.$ac_ext
  27250. -fi
  27251. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  27252. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  27253. -if test $ac_cv_func_dlopen = yes; then
  27254. - lt_cv_dlopen="dlopen"
  27255. -else
  27256. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27257. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  27258. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27259. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27260. -else
  27261. - ac_check_lib_save_LIBS=$LIBS
  27262. -LIBS="-ldl $LIBS"
  27263. -cat >conftest.$ac_ext <<_ACEOF
  27264. -/* confdefs.h. */
  27265. -_ACEOF
  27266. -cat confdefs.h >>conftest.$ac_ext
  27267. -cat >>conftest.$ac_ext <<_ACEOF
  27268. -/* end confdefs.h. */
  27269. -
  27270. -/* Override any gcc2 internal prototype to avoid an error. */
  27271. -#ifdef __cplusplus
  27272. -extern "C"
  27273. -#endif
  27274. -/* We use char because int might match the return type of a gcc2
  27275. - builtin and then its argument prototype would still apply. */
  27276. -char dlopen ();
  27277. -int
  27278. -main ()
  27279. -{
  27280. -dlopen ();
  27281. - ;
  27282. - return 0;
  27283. -}
  27284. -_ACEOF
  27285. -rm -f conftest.$ac_objext conftest$ac_exeext
  27286. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27287. - (eval $ac_link) 2>conftest.er1
  27288. - ac_status=$?
  27289. - grep -v '^ *+' conftest.er1 >conftest.err
  27290. - rm -f conftest.er1
  27291. - cat conftest.err >&5
  27292. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27293. - (exit $ac_status); } &&
  27294. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27295. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27296. - (eval $ac_try) 2>&5
  27297. - ac_status=$?
  27298. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27299. - (exit $ac_status); }; } &&
  27300. - { ac_try='test -s conftest$ac_exeext'
  27301. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27302. - (eval $ac_try) 2>&5
  27303. - ac_status=$?
  27304. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27305. - (exit $ac_status); }; }; then
  27306. - ac_cv_lib_dl_dlopen=yes
  27307. -else
  27308. - echo "$as_me: failed program was:" >&5
  27309. -sed 's/^/| /' conftest.$ac_ext >&5
  27310. -
  27311. -ac_cv_lib_dl_dlopen=no
  27312. -fi
  27313. -rm -f conftest.err conftest.$ac_objext \
  27314. - conftest$ac_exeext conftest.$ac_ext
  27315. -LIBS=$ac_check_lib_save_LIBS
  27316. -fi
  27317. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  27318. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  27319. -if test $ac_cv_lib_dl_dlopen = yes; then
  27320. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  27321. -else
  27322. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  27323. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  27324. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  27325. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27326. -else
  27327. - ac_check_lib_save_LIBS=$LIBS
  27328. -LIBS="-lsvld $LIBS"
  27329. -cat >conftest.$ac_ext <<_ACEOF
  27330. -/* confdefs.h. */
  27331. -_ACEOF
  27332. -cat confdefs.h >>conftest.$ac_ext
  27333. -cat >>conftest.$ac_ext <<_ACEOF
  27334. -/* end confdefs.h. */
  27335. -
  27336. -/* Override any gcc2 internal prototype to avoid an error. */
  27337. -#ifdef __cplusplus
  27338. -extern "C"
  27339. -#endif
  27340. -/* We use char because int might match the return type of a gcc2
  27341. - builtin and then its argument prototype would still apply. */
  27342. -char dlopen ();
  27343. -int
  27344. -main ()
  27345. -{
  27346. -dlopen ();
  27347. - ;
  27348. - return 0;
  27349. -}
  27350. -_ACEOF
  27351. -rm -f conftest.$ac_objext conftest$ac_exeext
  27352. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27353. - (eval $ac_link) 2>conftest.er1
  27354. - ac_status=$?
  27355. - grep -v '^ *+' conftest.er1 >conftest.err
  27356. - rm -f conftest.er1
  27357. - cat conftest.err >&5
  27358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27359. - (exit $ac_status); } &&
  27360. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27361. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27362. - (eval $ac_try) 2>&5
  27363. - ac_status=$?
  27364. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27365. - (exit $ac_status); }; } &&
  27366. - { ac_try='test -s conftest$ac_exeext'
  27367. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27368. - (eval $ac_try) 2>&5
  27369. - ac_status=$?
  27370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27371. - (exit $ac_status); }; }; then
  27372. - ac_cv_lib_svld_dlopen=yes
  27373. -else
  27374. - echo "$as_me: failed program was:" >&5
  27375. -sed 's/^/| /' conftest.$ac_ext >&5
  27376. -
  27377. -ac_cv_lib_svld_dlopen=no
  27378. -fi
  27379. -rm -f conftest.err conftest.$ac_objext \
  27380. - conftest$ac_exeext conftest.$ac_ext
  27381. -LIBS=$ac_check_lib_save_LIBS
  27382. -fi
  27383. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  27384. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  27385. -if test $ac_cv_lib_svld_dlopen = yes; then
  27386. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  27387. -else
  27388. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  27389. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  27390. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  27391. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27392. -else
  27393. - ac_check_lib_save_LIBS=$LIBS
  27394. -LIBS="-ldld $LIBS"
  27395. -cat >conftest.$ac_ext <<_ACEOF
  27396. -/* confdefs.h. */
  27397. -_ACEOF
  27398. -cat confdefs.h >>conftest.$ac_ext
  27399. -cat >>conftest.$ac_ext <<_ACEOF
  27400. -/* end confdefs.h. */
  27401. -
  27402. -/* Override any gcc2 internal prototype to avoid an error. */
  27403. -#ifdef __cplusplus
  27404. -extern "C"
  27405. -#endif
  27406. -/* We use char because int might match the return type of a gcc2
  27407. - builtin and then its argument prototype would still apply. */
  27408. -char dld_link ();
  27409. -int
  27410. -main ()
  27411. -{
  27412. -dld_link ();
  27413. - ;
  27414. - return 0;
  27415. -}
  27416. -_ACEOF
  27417. -rm -f conftest.$ac_objext conftest$ac_exeext
  27418. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27419. - (eval $ac_link) 2>conftest.er1
  27420. - ac_status=$?
  27421. - grep -v '^ *+' conftest.er1 >conftest.err
  27422. - rm -f conftest.er1
  27423. - cat conftest.err >&5
  27424. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27425. - (exit $ac_status); } &&
  27426. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27427. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27428. - (eval $ac_try) 2>&5
  27429. - ac_status=$?
  27430. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27431. - (exit $ac_status); }; } &&
  27432. - { ac_try='test -s conftest$ac_exeext'
  27433. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27434. - (eval $ac_try) 2>&5
  27435. - ac_status=$?
  27436. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27437. - (exit $ac_status); }; }; then
  27438. - ac_cv_lib_dld_dld_link=yes
  27439. -else
  27440. - echo "$as_me: failed program was:" >&5
  27441. -sed 's/^/| /' conftest.$ac_ext >&5
  27442. -
  27443. -ac_cv_lib_dld_dld_link=no
  27444. -fi
  27445. -rm -f conftest.err conftest.$ac_objext \
  27446. - conftest$ac_exeext conftest.$ac_ext
  27447. -LIBS=$ac_check_lib_save_LIBS
  27448. -fi
  27449. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  27450. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  27451. -if test $ac_cv_lib_dld_dld_link = yes; then
  27452. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  27453. -fi
  27454. -
  27455. -
  27456. -fi
  27457. -
  27458. -
  27459. -fi
  27460. -
  27461. -
  27462. -fi
  27463. -
  27464. -
  27465. -fi
  27466. -
  27467. -
  27468. -fi
  27469. -
  27470. - ;;
  27471. - esac
  27472. -
  27473. - if test "x$lt_cv_dlopen" != xno; then
  27474. - enable_dlopen=yes
  27475. - else
  27476. - enable_dlopen=no
  27477. - fi
  27478. -
  27479. - case $lt_cv_dlopen in
  27480. - dlopen)
  27481. - save_CPPFLAGS="$CPPFLAGS"
  27482. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  27483. -
  27484. - save_LDFLAGS="$LDFLAGS"
  27485. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  27486. -
  27487. - save_LIBS="$LIBS"
  27488. - LIBS="$lt_cv_dlopen_libs $LIBS"
  27489. -
  27490. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  27491. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  27492. -if test "${lt_cv_dlopen_self+set}" = set; then
  27493. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27494. -else
  27495. - if test "$cross_compiling" = yes; then :
  27496. - lt_cv_dlopen_self=cross
  27497. -else
  27498. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27499. - lt_status=$lt_dlunknown
  27500. - cat > conftest.$ac_ext <<EOF
  27501. -#line 9129 "configure"
  27502. -#include "confdefs.h"
  27503. -
  27504. -#if HAVE_DLFCN_H
  27505. -#include <dlfcn.h>
  27506. -#endif
  27507. -
  27508. -#include <stdio.h>
  27509. -
  27510. -#ifdef RTLD_GLOBAL
  27511. -# define LT_DLGLOBAL RTLD_GLOBAL
  27512. -#else
  27513. -# ifdef DL_GLOBAL
  27514. -# define LT_DLGLOBAL DL_GLOBAL
  27515. -# else
  27516. -# define LT_DLGLOBAL 0
  27517. -# endif
  27518. -#endif
  27519. -
  27520. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27521. - find out it does not work in some platform. */
  27522. -#ifndef LT_DLLAZY_OR_NOW
  27523. -# ifdef RTLD_LAZY
  27524. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27525. -# else
  27526. -# ifdef DL_LAZY
  27527. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27528. -# else
  27529. -# ifdef RTLD_NOW
  27530. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27531. -# else
  27532. -# ifdef DL_NOW
  27533. -# define LT_DLLAZY_OR_NOW DL_NOW
  27534. -# else
  27535. -# define LT_DLLAZY_OR_NOW 0
  27536. -# endif
  27537. -# endif
  27538. -# endif
  27539. -# endif
  27540. -#endif
  27541. -
  27542. -#ifdef __cplusplus
  27543. -extern "C" void exit (int);
  27544. -#endif
  27545. -
  27546. -void fnord() { int i=42;}
  27547. -int main ()
  27548. -{
  27549. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27550. - int status = $lt_dlunknown;
  27551. -
  27552. - if (self)
  27553. - {
  27554. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27555. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27556. - /* dlclose (self); */
  27557. - }
  27558. - else
  27559. - puts (dlerror ());
  27560. -
  27561. - exit (status);
  27562. -}
  27563. -EOF
  27564. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27565. - (eval $ac_link) 2>&5
  27566. - ac_status=$?
  27567. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27568. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27569. - (./conftest; exit; ) >&5 2>/dev/null
  27570. - lt_status=$?
  27571. - case x$lt_status in
  27572. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  27573. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  27574. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  27575. - esac
  27576. - else :
  27577. - # compilation failed
  27578. - lt_cv_dlopen_self=no
  27579. - fi
  27580. -fi
  27581. -rm -fr conftest*
  27582. -
  27583. -
  27584. -fi
  27585. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  27586. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  27587. -
  27588. - if test "x$lt_cv_dlopen_self" = xyes; then
  27589. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  27590. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  27591. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  27592. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  27593. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27594. -else
  27595. - if test "$cross_compiling" = yes; then :
  27596. - lt_cv_dlopen_self_static=cross
  27597. -else
  27598. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27599. - lt_status=$lt_dlunknown
  27600. - cat > conftest.$ac_ext <<EOF
  27601. -#line 9229 "configure"
  27602. -#include "confdefs.h"
  27603. -
  27604. -#if HAVE_DLFCN_H
  27605. -#include <dlfcn.h>
  27606. -#endif
  27607. -
  27608. -#include <stdio.h>
  27609. -
  27610. -#ifdef RTLD_GLOBAL
  27611. -# define LT_DLGLOBAL RTLD_GLOBAL
  27612. -#else
  27613. -# ifdef DL_GLOBAL
  27614. -# define LT_DLGLOBAL DL_GLOBAL
  27615. -# else
  27616. -# define LT_DLGLOBAL 0
  27617. -# endif
  27618. -#endif
  27619. -
  27620. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27621. - find out it does not work in some platform. */
  27622. -#ifndef LT_DLLAZY_OR_NOW
  27623. -# ifdef RTLD_LAZY
  27624. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27625. -# else
  27626. -# ifdef DL_LAZY
  27627. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27628. -# else
  27629. -# ifdef RTLD_NOW
  27630. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27631. -# else
  27632. -# ifdef DL_NOW
  27633. -# define LT_DLLAZY_OR_NOW DL_NOW
  27634. -# else
  27635. -# define LT_DLLAZY_OR_NOW 0
  27636. -# endif
  27637. -# endif
  27638. -# endif
  27639. -# endif
  27640. -#endif
  27641. -
  27642. -#ifdef __cplusplus
  27643. -extern "C" void exit (int);
  27644. -#endif
  27645. -
  27646. -void fnord() { int i=42;}
  27647. -int main ()
  27648. -{
  27649. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27650. - int status = $lt_dlunknown;
  27651. -
  27652. - if (self)
  27653. - {
  27654. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27655. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27656. - /* dlclose (self); */
  27657. - }
  27658. - else
  27659. - puts (dlerror ());
  27660. -
  27661. - exit (status);
  27662. -}
  27663. -EOF
  27664. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27665. - (eval $ac_link) 2>&5
  27666. - ac_status=$?
  27667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27668. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27669. - (./conftest; exit; ) >&5 2>/dev/null
  27670. - lt_status=$?
  27671. - case x$lt_status in
  27672. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  27673. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  27674. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  27675. - esac
  27676. - else :
  27677. - # compilation failed
  27678. - lt_cv_dlopen_self_static=no
  27679. - fi
  27680. -fi
  27681. -rm -fr conftest*
  27682. -
  27683. -
  27684. -fi
  27685. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  27686. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  27687. - fi
  27688. -
  27689. - CPPFLAGS="$save_CPPFLAGS"
  27690. - LDFLAGS="$save_LDFLAGS"
  27691. - LIBS="$save_LIBS"
  27692. - ;;
  27693. - esac
  27694. -
  27695. - case $lt_cv_dlopen_self in
  27696. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  27697. - *) enable_dlopen_self=unknown ;;
  27698. - esac
  27699. -
  27700. - case $lt_cv_dlopen_self_static in
  27701. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  27702. - *) enable_dlopen_self_static=unknown ;;
  27703. - esac
  27704. -fi
  27705. -
  27706. -
  27707. -# Report which library types will actually be built
  27708. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  27709. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  27710. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  27711. -echo "${ECHO_T}$can_build_shared" >&6
  27712. -
  27713. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  27714. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  27715. -test "$can_build_shared" = "no" && enable_shared=no
  27716. -
  27717. -# On AIX, shared libraries and static libraries use the same namespace, and
  27718. -# are all built from PIC.
  27719. -case $host_os in
  27720. -aix3*)
  27721. - test "$enable_shared" = yes && enable_static=no
  27722. - if test -n "$RANLIB"; then
  27723. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  27724. - postinstall_cmds='$RANLIB $lib'
  27725. - fi
  27726. - ;;
  27727. -
  27728. -aix4* | aix5*)
  27729. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  27730. - test "$enable_shared" = yes && enable_static=no
  27731. - fi
  27732. - ;;
  27733. -esac
  27734. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  27735. -echo "${ECHO_T}$enable_shared" >&6
  27736. -
  27737. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  27738. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  27739. -# Make sure either enable_shared or enable_static is yes.
  27740. -test "$enable_shared" = yes || enable_static=yes
  27741. -echo "$as_me:$LINENO: result: $enable_static" >&5
  27742. -echo "${ECHO_T}$enable_static" >&6
  27743. -
  27744. -# The else clause should only fire when bootstrapping the
  27745. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  27746. -# with your package, and you will get complaints that there are
  27747. -# no rules to generate ltmain.sh.
  27748. -if test -f "$ltmain"; then
  27749. - # See if we are running on zsh, and set the options which allow our commands through
  27750. - # without removal of \ escapes.
  27751. - if test -n "${ZSH_VERSION+set}" ; then
  27752. - setopt NO_GLOB_SUBST
  27753. - fi
  27754. - # Now quote all the things that may contain metacharacters while being
  27755. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  27756. - # variables and quote the copies for generation of the libtool script.
  27757. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27758. - SED SHELL STRIP \
  27759. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27760. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27761. - deplibs_check_method reload_flag reload_cmds need_locks \
  27762. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27763. - lt_cv_sys_global_symbol_to_c_name_address \
  27764. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27765. - old_postinstall_cmds old_postuninstall_cmds \
  27766. - compiler \
  27767. - CC \
  27768. - LD \
  27769. - lt_prog_compiler_wl \
  27770. - lt_prog_compiler_pic \
  27771. - lt_prog_compiler_static \
  27772. - lt_prog_compiler_no_builtin_flag \
  27773. - export_dynamic_flag_spec \
  27774. - thread_safe_flag_spec \
  27775. - whole_archive_flag_spec \
  27776. - enable_shared_with_static_runtimes \
  27777. - old_archive_cmds \
  27778. - old_archive_from_new_cmds \
  27779. - predep_objects \
  27780. - postdep_objects \
  27781. - predeps \
  27782. - postdeps \
  27783. - compiler_lib_search_path \
  27784. - archive_cmds \
  27785. - archive_expsym_cmds \
  27786. - postinstall_cmds \
  27787. - postuninstall_cmds \
  27788. - old_archive_from_expsyms_cmds \
  27789. - allow_undefined_flag \
  27790. - no_undefined_flag \
  27791. - export_symbols_cmds \
  27792. - hardcode_libdir_flag_spec \
  27793. - hardcode_libdir_flag_spec_ld \
  27794. - hardcode_libdir_separator \
  27795. - hardcode_automatic \
  27796. - module_cmds \
  27797. - module_expsym_cmds \
  27798. - lt_cv_prog_compiler_c_o \
  27799. - exclude_expsyms \
  27800. - include_expsyms; do
  27801. -
  27802. - case $var in
  27803. - old_archive_cmds | \
  27804. - old_archive_from_new_cmds | \
  27805. - archive_cmds | \
  27806. - archive_expsym_cmds | \
  27807. - module_cmds | \
  27808. - module_expsym_cmds | \
  27809. - old_archive_from_expsyms_cmds | \
  27810. - export_symbols_cmds | \
  27811. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27812. - postinstall_cmds | postuninstall_cmds | \
  27813. - old_postinstall_cmds | old_postuninstall_cmds | \
  27814. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27815. - # Double-quote double-evaled strings.
  27816. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27817. - ;;
  27818. - *)
  27819. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27820. - ;;
  27821. - esac
  27822. - done
  27823. -
  27824. - case $lt_echo in
  27825. - *'\$0 --fallback-echo"')
  27826. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27827. - ;;
  27828. - esac
  27829. -
  27830. -cfgfile="${ofile}T"
  27831. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  27832. - $rm -f "$cfgfile"
  27833. - { echo "$as_me:$LINENO: creating $ofile" >&5
  27834. -echo "$as_me: creating $ofile" >&6;}
  27835. -
  27836. - cat <<__EOF__ >> "$cfgfile"
  27837. -#! $SHELL
  27838. -
  27839. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27840. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  27841. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27842. -#
  27843. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  27844. -# Free Software Foundation, Inc.
  27845. -#
  27846. -# This file is part of GNU Libtool:
  27847. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  27848. -#
  27849. -# This program is free software; you can redistribute it and/or modify
  27850. -# it under the terms of the GNU General Public License as published by
  27851. -# the Free Software Foundation; either version 2 of the License, or
  27852. -# (at your option) any later version.
  27853. -#
  27854. -# This program is distributed in the hope that it will be useful, but
  27855. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  27856. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27857. -# General Public License for more details.
  27858. -#
  27859. -# You should have received a copy of the GNU General Public License
  27860. -# along with this program; if not, write to the Free Software
  27861. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27862. -#
  27863. -# As a special exception to the GNU General Public License, if you
  27864. -# distribute this file as part of a program that contains a
  27865. -# configuration script generated by Autoconf, you may include it under
  27866. -# the same distribution terms that you use for the rest of that program.
  27867. -
  27868. -# A sed program that does not truncate output.
  27869. -SED=$lt_SED
  27870. -
  27871. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27872. -Xsed="$SED -e 1s/^X//"
  27873. -
  27874. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  27875. -# if CDPATH is set.
  27876. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27877. -
  27878. -# The names of the tagged configurations supported by this script.
  27879. -available_tags=
  27880. -
  27881. -# ### BEGIN LIBTOOL CONFIG
  27882. -
  27883. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27884. -
  27885. -# Shell to use when invoking shell scripts.
  27886. -SHELL=$lt_SHELL
  27887. -
  27888. -# Whether or not to build shared libraries.
  27889. -build_libtool_libs=$enable_shared
  27890. -
  27891. -# Whether or not to build static libraries.
  27892. -build_old_libs=$enable_static
  27893. -
  27894. -# Whether or not to add -lc for building shared libraries.
  27895. -build_libtool_need_lc=$archive_cmds_need_lc
  27896. -
  27897. -# Whether or not to disallow shared libs when runtime libs are static
  27898. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27899. -
  27900. -# Whether or not to optimize for fast installation.
  27901. -fast_install=$enable_fast_install
  27902. -
  27903. -# The host system.
  27904. -host_alias=$host_alias
  27905. -host=$host
  27906. -host_os=$host_os
  27907. -
  27908. -# The build system.
  27909. -build_alias=$build_alias
  27910. -build=$build
  27911. -build_os=$build_os
  27912. -
  27913. -# An echo program that does not interpret backslashes.
  27914. -echo=$lt_echo
  27915. -
  27916. -# The archiver.
  27917. -AR=$lt_AR
  27918. -AR_FLAGS=$lt_AR_FLAGS
  27919. -
  27920. -# A C compiler.
  27921. -LTCC=$lt_LTCC
  27922. -
  27923. -# LTCC compiler flags.
  27924. -LTCFLAGS=$lt_LTCFLAGS
  27925. -
  27926. -# A language-specific compiler.
  27927. -CC=$lt_compiler
  27928. -
  27929. -# Is the compiler the GNU C compiler?
  27930. -with_gcc=$GCC
  27931. -
  27932. -# An ERE matcher.
  27933. -EGREP=$lt_EGREP
  27934. -
  27935. -# The linker used to build libraries.
  27936. -LD=$lt_LD
  27937. -
  27938. -# Whether we need hard or soft links.
  27939. -LN_S=$lt_LN_S
  27940. -
  27941. -# A BSD-compatible nm program.
  27942. -NM=$lt_NM
  27943. -
  27944. -# A symbol stripping program
  27945. -STRIP=$lt_STRIP
  27946. -
  27947. -# Used to examine libraries when file_magic_cmd begins "file"
  27948. -MAGIC_CMD=$MAGIC_CMD
  27949. -
  27950. -# Used on cygwin: DLL creation program.
  27951. -DLLTOOL="$DLLTOOL"
  27952. -
  27953. -# Used on cygwin: object dumper.
  27954. -OBJDUMP="$OBJDUMP"
  27955. -
  27956. -# Used on cygwin: assembler.
  27957. -AS="$AS"
  27958. -
  27959. -# The name of the directory that contains temporary libtool files.
  27960. -objdir=$objdir
  27961. -
  27962. -# How to create reloadable object files.
  27963. -reload_flag=$lt_reload_flag
  27964. -reload_cmds=$lt_reload_cmds
  27965. -
  27966. -# How to pass a linker flag through the compiler.
  27967. -wl=$lt_lt_prog_compiler_wl
  27968. -
  27969. -# Object file suffix (normally "o").
  27970. -objext="$ac_objext"
  27971. -
  27972. -# Old archive suffix (normally "a").
  27973. -libext="$libext"
  27974. -
  27975. -# Shared library suffix (normally ".so").
  27976. -shrext_cmds='$shrext_cmds'
  27977. -
  27978. -# Executable file suffix (normally "").
  27979. -exeext="$exeext"
  27980. -
  27981. -# Additional compiler flags for building library objects.
  27982. -pic_flag=$lt_lt_prog_compiler_pic
  27983. -pic_mode=$pic_mode
  27984. -
  27985. -# What is the maximum length of a command?
  27986. -max_cmd_len=$lt_cv_sys_max_cmd_len
  27987. -
  27988. -# Does compiler simultaneously support -c and -o options?
  27989. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27990. -
  27991. -# Must we lock files when doing compilation?
  27992. -need_locks=$lt_need_locks
  27993. -
  27994. -# Do we need the lib prefix for modules?
  27995. -need_lib_prefix=$need_lib_prefix
  27996. -
  27997. -# Do we need a version for libraries?
  27998. -need_version=$need_version
  27999. -
  28000. -# Whether dlopen is supported.
  28001. -dlopen_support=$enable_dlopen
  28002. -
  28003. -# Whether dlopen of programs is supported.
  28004. -dlopen_self=$enable_dlopen_self
  28005. -
  28006. -# Whether dlopen of statically linked programs is supported.
  28007. -dlopen_self_static=$enable_dlopen_self_static
  28008. -
  28009. -# Compiler flag to prevent dynamic linking.
  28010. -link_static_flag=$lt_lt_prog_compiler_static
  28011. -
  28012. -# Compiler flag to turn off builtin functions.
  28013. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  28014. -
  28015. -# Compiler flag to allow reflexive dlopens.
  28016. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  28017. -
  28018. -# Compiler flag to generate shared objects directly from archives.
  28019. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  28020. -
  28021. -# Compiler flag to generate thread-safe objects.
  28022. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  28023. -
  28024. -# Library versioning type.
  28025. -version_type=$version_type
  28026. -
  28027. -# Format of library name prefix.
  28028. -libname_spec=$lt_libname_spec
  28029. -
  28030. -# List of archive names. First name is the real one, the rest are links.
  28031. -# The last name is the one that the linker finds with -lNAME.
  28032. -library_names_spec=$lt_library_names_spec
  28033. -
  28034. -# The coded name of the library, if different from the real name.
  28035. -soname_spec=$lt_soname_spec
  28036. -
  28037. -# Commands used to build and install an old-style archive.
  28038. -RANLIB=$lt_RANLIB
  28039. -old_archive_cmds=$lt_old_archive_cmds
  28040. -old_postinstall_cmds=$lt_old_postinstall_cmds
  28041. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28042. -
  28043. -# Create an old-style archive from a shared archive.
  28044. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  28045. -
  28046. -# Create a temporary old-style archive to link instead of a shared archive.
  28047. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  28048. -
  28049. -# Commands used to build and install a shared archive.
  28050. -archive_cmds=$lt_archive_cmds
  28051. -archive_expsym_cmds=$lt_archive_expsym_cmds
  28052. -postinstall_cmds=$lt_postinstall_cmds
  28053. -postuninstall_cmds=$lt_postuninstall_cmds
  28054. -
  28055. -# Commands used to build a loadable module (assumed same as above if empty)
  28056. -module_cmds=$lt_module_cmds
  28057. -module_expsym_cmds=$lt_module_expsym_cmds
  28058. -
  28059. -# Commands to strip libraries.
  28060. -old_striplib=$lt_old_striplib
  28061. -striplib=$lt_striplib
  28062. -
  28063. -# Dependencies to place before the objects being linked to create a
  28064. -# shared library.
  28065. -predep_objects=$lt_predep_objects
  28066. -
  28067. -# Dependencies to place after the objects being linked to create a
  28068. -# shared library.
  28069. -postdep_objects=$lt_postdep_objects
  28070. -
  28071. -# Dependencies to place before the objects being linked to create a
  28072. -# shared library.
  28073. -predeps=$lt_predeps
  28074. -
  28075. -# Dependencies to place after the objects being linked to create a
  28076. -# shared library.
  28077. -postdeps=$lt_postdeps
  28078. -
  28079. -# The library search path used internally by the compiler when linking
  28080. -# a shared library.
  28081. -compiler_lib_search_path=$lt_compiler_lib_search_path
  28082. -
  28083. -# Method to check whether dependent libraries are shared objects.
  28084. -deplibs_check_method=$lt_deplibs_check_method
  28085. -
  28086. -# Command to use when deplibs_check_method == file_magic.
  28087. -file_magic_cmd=$lt_file_magic_cmd
  28088. -
  28089. -# Flag that allows shared libraries with undefined symbols to be built.
  28090. -allow_undefined_flag=$lt_allow_undefined_flag
  28091. -
  28092. -# Flag that forces no undefined symbols.
  28093. -no_undefined_flag=$lt_no_undefined_flag
  28094. -
  28095. -# Commands used to finish a libtool library installation in a directory.
  28096. -finish_cmds=$lt_finish_cmds
  28097. -
  28098. -# Same as above, but a single script fragment to be evaled but not shown.
  28099. -finish_eval=$lt_finish_eval
  28100. -
  28101. -# Take the output of nm and produce a listing of raw symbols and C names.
  28102. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28103. -
  28104. -# Transform the output of nm in a proper C declaration
  28105. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28106. -
  28107. -# Transform the output of nm in a C name address pair
  28108. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28109. -
  28110. -# This is the shared library runtime path variable.
  28111. -runpath_var=$runpath_var
  28112. -
  28113. -# This is the shared library path variable.
  28114. -shlibpath_var=$shlibpath_var
  28115. -
  28116. -# Is shlibpath searched before the hard-coded library search path?
  28117. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28118. -
  28119. -# How to hardcode a shared library path into an executable.
  28120. -hardcode_action=$hardcode_action
  28121. -
  28122. -# Whether we should hardcode library paths into libraries.
  28123. -hardcode_into_libs=$hardcode_into_libs
  28124. -
  28125. -# Flag to hardcode \$libdir into a binary during linking.
  28126. -# This must work even if \$libdir does not exist.
  28127. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  28128. -
  28129. -# If ld is used when linking, flag to hardcode \$libdir into
  28130. -# a binary during linking. This must work even if \$libdir does
  28131. -# not exist.
  28132. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  28133. -
  28134. -# Whether we need a single -rpath flag with a separated argument.
  28135. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  28136. -
  28137. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  28138. -# resulting binary.
  28139. -hardcode_direct=$hardcode_direct
  28140. -
  28141. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  28142. -# resulting binary.
  28143. -hardcode_minus_L=$hardcode_minus_L
  28144. -
  28145. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  28146. -# the resulting binary.
  28147. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  28148. -
  28149. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  28150. -# and all subsequent libraries and executables linked against it.
  28151. -hardcode_automatic=$hardcode_automatic
  28152. -
  28153. -# Variables whose values should be saved in libtool wrapper scripts and
  28154. -# restored at relink time.
  28155. -variables_saved_for_relink="$variables_saved_for_relink"
  28156. -
  28157. -# Whether libtool must link a program against all its dependency libraries.
  28158. -link_all_deplibs=$link_all_deplibs
  28159. -
  28160. -# Compile-time system search path for libraries
  28161. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28162. -
  28163. -# Run-time system search path for libraries
  28164. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28165. -
  28166. -# Fix the shell variable \$srcfile for the compiler.
  28167. -fix_srcfile_path="$fix_srcfile_path"
  28168. -
  28169. -# Set to yes if exported symbols are required.
  28170. -always_export_symbols=$always_export_symbols
  28171. -
  28172. -# The commands to list exported symbols.
  28173. -export_symbols_cmds=$lt_export_symbols_cmds
  28174. -
  28175. -# The commands to extract the exported symbol list from a shared archive.
  28176. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28177. -
  28178. -# Symbols that should not be listed in the preloaded symbols.
  28179. -exclude_expsyms=$lt_exclude_expsyms
  28180. -
  28181. -# Symbols that must always be exported.
  28182. -include_expsyms=$lt_include_expsyms
  28183. -
  28184. -# ### END LIBTOOL CONFIG
  28185. -
  28186. -__EOF__
  28187. -
  28188. -
  28189. - case $host_os in
  28190. - aix3*)
  28191. - cat <<\EOF >> "$cfgfile"
  28192. -
  28193. -# AIX sometimes has problems with the GCC collect2 program. For some
  28194. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  28195. -# vanish in a puff of smoke.
  28196. -if test "X${COLLECT_NAMES+set}" != Xset; then
  28197. - COLLECT_NAMES=
  28198. - export COLLECT_NAMES
  28199. -fi
  28200. -EOF
  28201. - ;;
  28202. - esac
  28203. -
  28204. - # We use sed instead of cat because bash on DJGPP gets confused if
  28205. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28206. - # text mode, it properly converts lines to CR/LF. This bash problem
  28207. - # is reportedly fixed, but why not run on old versions too?
  28208. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  28209. -
  28210. - mv -f "$cfgfile" "$ofile" || \
  28211. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28212. - chmod +x "$ofile"
  28213. -
  28214. -else
  28215. - # If there is no Makefile yet, we rely on a make rule to execute
  28216. - # `config.status --recheck' to rerun these tests and create the
  28217. - # libtool script then.
  28218. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28219. - if test -f "$ltmain_in"; then
  28220. - test -f Makefile && make "$ltmain"
  28221. - fi
  28222. -fi
  28223. -
  28224. -
  28225. -ac_ext=c
  28226. -ac_cpp='$CPP $CPPFLAGS'
  28227. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28228. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28229. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28230. -
  28231. -CC="$lt_save_CC"
  28232. -
  28233. -
  28234. -# Check whether --with-tags or --without-tags was given.
  28235. -if test "${with_tags+set}" = set; then
  28236. - withval="$with_tags"
  28237. - tagnames="$withval"
  28238. -fi;
  28239. -
  28240. -if test -f "$ltmain" && test -n "$tagnames"; then
  28241. - if test ! -f "${ofile}"; then
  28242. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  28243. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  28244. - fi
  28245. -
  28246. - if test -z "$LTCC"; then
  28247. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  28248. - if test -z "$LTCC"; then
  28249. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  28250. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  28251. - else
  28252. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  28253. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  28254. - fi
  28255. - fi
  28256. - if test -z "$LTCFLAGS"; then
  28257. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  28258. - fi
  28259. -
  28260. - # Extract list of available tagged configurations in $ofile.
  28261. - # Note that this assumes the entire list is on one line.
  28262. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  28263. -
  28264. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  28265. - for tagname in $tagnames; do
  28266. - IFS="$lt_save_ifs"
  28267. - # Check whether tagname contains only valid characters
  28268. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  28269. - "") ;;
  28270. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  28271. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  28272. - { (exit 1); exit 1; }; }
  28273. - ;;
  28274. - esac
  28275. -
  28276. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  28277. - then
  28278. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  28279. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  28280. - { (exit 1); exit 1; }; }
  28281. - fi
  28282. -
  28283. - # Update the list of available tags.
  28284. - if test -n "$tagname"; then
  28285. - echo appending configuration tag \"$tagname\" to $ofile
  28286. -
  28287. - case $tagname in
  28288. - CXX)
  28289. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28290. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28291. - (test "X$CXX" != "Xg++"))) ; then
  28292. - ac_ext=cc
  28293. -ac_cpp='$CXXCPP $CPPFLAGS'
  28294. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28295. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28296. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28297. -
  28298. -
  28299. -
  28300. -
  28301. -archive_cmds_need_lc_CXX=no
  28302. -allow_undefined_flag_CXX=
  28303. -always_export_symbols_CXX=no
  28304. -archive_expsym_cmds_CXX=
  28305. -export_dynamic_flag_spec_CXX=
  28306. -hardcode_direct_CXX=no
  28307. -hardcode_libdir_flag_spec_CXX=
  28308. -hardcode_libdir_flag_spec_ld_CXX=
  28309. -hardcode_libdir_separator_CXX=
  28310. -hardcode_minus_L_CXX=no
  28311. -hardcode_shlibpath_var_CXX=unsupported
  28312. -hardcode_automatic_CXX=no
  28313. -module_cmds_CXX=
  28314. -module_expsym_cmds_CXX=
  28315. -link_all_deplibs_CXX=unknown
  28316. -old_archive_cmds_CXX=$old_archive_cmds
  28317. -no_undefined_flag_CXX=
  28318. -whole_archive_flag_spec_CXX=
  28319. -enable_shared_with_static_runtimes_CXX=no
  28320. -
  28321. -# Dependencies to place before and after the object being linked:
  28322. -predep_objects_CXX=
  28323. -postdep_objects_CXX=
  28324. -predeps_CXX=
  28325. -postdeps_CXX=
  28326. -compiler_lib_search_path_CXX=
  28327. -
  28328. -# Source file extension for C++ test sources.
  28329. -ac_ext=cpp
  28330. -
  28331. -# Object file extension for compiled C++ test sources.
  28332. -objext=o
  28333. -objext_CXX=$objext
  28334. -
  28335. -# Code to be used in simple compile tests
  28336. -lt_simple_compile_test_code="int some_variable = 0;\n"
  28337. -
  28338. -# Code to be used in simple link tests
  28339. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  28340. -
  28341. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28342. -
  28343. -# If no C compiler was specified, use CC.
  28344. -LTCC=${LTCC-"$CC"}
  28345. -
  28346. -# If no C compiler flags were specified, use CFLAGS.
  28347. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28348. -
  28349. -# Allow CC to be a program name with arguments.
  28350. -compiler=$CC
  28351. -
  28352. -
  28353. -# save warnings/boilerplate of simple test code
  28354. -ac_outfile=conftest.$ac_objext
  28355. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  28356. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28357. -_lt_compiler_boilerplate=`cat conftest.err`
  28358. -$rm conftest*
  28359. -
  28360. -ac_outfile=conftest.$ac_objext
  28361. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  28362. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28363. -_lt_linker_boilerplate=`cat conftest.err`
  28364. -$rm conftest*
  28365. -
  28366. -
  28367. -# Allow CC to be a program name with arguments.
  28368. -lt_save_CC=$CC
  28369. -lt_save_LD=$LD
  28370. -lt_save_GCC=$GCC
  28371. -GCC=$GXX
  28372. -lt_save_with_gnu_ld=$with_gnu_ld
  28373. -lt_save_path_LD=$lt_cv_path_LD
  28374. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  28375. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  28376. -else
  28377. - $as_unset lt_cv_prog_gnu_ld
  28378. -fi
  28379. -if test -n "${lt_cv_path_LDCXX+set}"; then
  28380. - lt_cv_path_LD=$lt_cv_path_LDCXX
  28381. -else
  28382. - $as_unset lt_cv_path_LD
  28383. -fi
  28384. -test -z "${LDCXX+set}" || LD=$LDCXX
  28385. -CC=${CXX-"c++"}
  28386. -compiler=$CC
  28387. -compiler_CXX=$CC
  28388. -for cc_temp in $compiler""; do
  28389. - case $cc_temp in
  28390. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28391. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28392. - \-*) ;;
  28393. - *) break;;
  28394. - esac
  28395. -done
  28396. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28397. -
  28398. -
  28399. -# We don't want -fno-exception wen compiling C++ code, so set the
  28400. -# no_builtin_flag separately
  28401. -if test "$GXX" = yes; then
  28402. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  28403. -else
  28404. - lt_prog_compiler_no_builtin_flag_CXX=
  28405. -fi
  28406. -
  28407. -if test "$GXX" = yes; then
  28408. - # Set up default GNU C++ configuration
  28409. -
  28410. -
  28411. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  28412. -if test "${with_gnu_ld+set}" = set; then
  28413. - withval="$with_gnu_ld"
  28414. - test "$withval" = no || with_gnu_ld=yes
  28415. -else
  28416. - with_gnu_ld=no
  28417. -fi;
  28418. -ac_prog=ld
  28419. -if test "$GCC" = yes; then
  28420. - # Check if gcc -print-prog-name=ld gives a path.
  28421. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  28422. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  28423. - case $host in
  28424. - *-*-mingw*)
  28425. - # gcc leaves a trailing carriage return which upsets mingw
  28426. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  28427. - *)
  28428. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  28429. - esac
  28430. - case $ac_prog in
  28431. - # Accept absolute paths.
  28432. - [\\/]* | ?:[\\/]*)
  28433. - re_direlt='/[^/][^/]*/\.\./'
  28434. - # Canonicalize the pathname of ld
  28435. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  28436. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  28437. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  28438. - done
  28439. - test -z "$LD" && LD="$ac_prog"
  28440. - ;;
  28441. - "")
  28442. - # If it fails, then pretend we aren't using GCC.
  28443. - ac_prog=ld
  28444. - ;;
  28445. - *)
  28446. - # If it is relative, then search for the first ld in PATH.
  28447. - with_gnu_ld=unknown
  28448. - ;;
  28449. - esac
  28450. -elif test "$with_gnu_ld" = yes; then
  28451. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  28452. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  28453. -else
  28454. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  28455. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  28456. -fi
  28457. -if test "${lt_cv_path_LD+set}" = set; then
  28458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28459. -else
  28460. - if test -z "$LD"; then
  28461. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  28462. - for ac_dir in $PATH; do
  28463. - IFS="$lt_save_ifs"
  28464. - test -z "$ac_dir" && ac_dir=.
  28465. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  28466. - lt_cv_path_LD="$ac_dir/$ac_prog"
  28467. - # Check to see if the program is GNU ld. I'd rather use --version,
  28468. - # but apparently some variants of GNU ld only accept -v.
  28469. - # Break only if it was the GNU/non-GNU ld that we prefer.
  28470. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  28471. - *GNU* | *'with BFD'*)
  28472. - test "$with_gnu_ld" != no && break
  28473. - ;;
  28474. - *)
  28475. - test "$with_gnu_ld" != yes && break
  28476. - ;;
  28477. - esac
  28478. - fi
  28479. - done
  28480. - IFS="$lt_save_ifs"
  28481. -else
  28482. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  28483. -fi
  28484. -fi
  28485. -
  28486. -LD="$lt_cv_path_LD"
  28487. -if test -n "$LD"; then
  28488. - echo "$as_me:$LINENO: result: $LD" >&5
  28489. -echo "${ECHO_T}$LD" >&6
  28490. -else
  28491. - echo "$as_me:$LINENO: result: no" >&5
  28492. -echo "${ECHO_T}no" >&6
  28493. -fi
  28494. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  28495. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  28496. - { (exit 1); exit 1; }; }
  28497. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  28498. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  28499. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  28500. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28501. -else
  28502. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  28503. -case `$LD -v 2>&1 </dev/null` in
  28504. -*GNU* | *'with BFD'*)
  28505. - lt_cv_prog_gnu_ld=yes
  28506. - ;;
  28507. -*)
  28508. - lt_cv_prog_gnu_ld=no
  28509. - ;;
  28510. -esac
  28511. -fi
  28512. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  28513. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  28514. -with_gnu_ld=$lt_cv_prog_gnu_ld
  28515. -
  28516. -
  28517. -
  28518. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  28519. - # archiving commands below assume that GNU ld is being used.
  28520. - if test "$with_gnu_ld" = yes; then
  28521. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28522. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28523. -
  28524. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28525. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28526. -
  28527. - # If archive_cmds runs LD, not CC, wlarc should be empty
  28528. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  28529. - # investigate it a little bit more. (MM)
  28530. - wlarc='${wl}'
  28531. -
  28532. - # ancient GNU ld didn't support --whole-archive et. al.
  28533. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  28534. - grep 'no-whole-archive' > /dev/null; then
  28535. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28536. - else
  28537. - whole_archive_flag_spec_CXX=
  28538. - fi
  28539. - else
  28540. - with_gnu_ld=no
  28541. - wlarc=
  28542. -
  28543. - # A generic and very simple default shared library creation
  28544. - # command for GNU C++ for the case where it uses the native
  28545. - # linker, instead of GNU ld. If possible, this setting should
  28546. - # overridden to take advantage of the native linker features on
  28547. - # the platform it is being used on.
  28548. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  28549. - fi
  28550. -
  28551. - # Commands to make compiler produce verbose output that lists
  28552. - # what "hidden" libraries, object files and flags are used when
  28553. - # linking a shared library.
  28554. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28555. -
  28556. -else
  28557. - GXX=no
  28558. - with_gnu_ld=no
  28559. - wlarc=
  28560. -fi
  28561. -
  28562. -# PORTME: fill in a description of your system's C++ link characteristics
  28563. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28564. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  28565. -ld_shlibs_CXX=yes
  28566. -case $host_os in
  28567. - aix3*)
  28568. - # FIXME: insert proper C++ library support
  28569. - ld_shlibs_CXX=no
  28570. - ;;
  28571. - aix4* | aix5*)
  28572. - if test "$host_cpu" = ia64; then
  28573. - # On IA64, the linker does run time linking by default, so we don't
  28574. - # have to do anything special.
  28575. - aix_use_runtimelinking=no
  28576. - exp_sym_flag='-Bexport'
  28577. - no_entry_flag=""
  28578. - else
  28579. - aix_use_runtimelinking=no
  28580. -
  28581. - # Test if we are trying to use run time linking or normal
  28582. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  28583. - # need to do runtime linking.
  28584. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  28585. - for ld_flag in $LDFLAGS; do
  28586. - case $ld_flag in
  28587. - *-brtl*)
  28588. - aix_use_runtimelinking=yes
  28589. - break
  28590. - ;;
  28591. - esac
  28592. - done
  28593. - ;;
  28594. - esac
  28595. -
  28596. - exp_sym_flag='-bexport'
  28597. - no_entry_flag='-bnoentry'
  28598. - fi
  28599. -
  28600. - # When large executables or shared objects are built, AIX ld can
  28601. - # have problems creating the table of contents. If linking a library
  28602. - # or program results in "error TOC overflow" add -mminimal-toc to
  28603. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  28604. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  28605. -
  28606. - archive_cmds_CXX=''
  28607. - hardcode_direct_CXX=yes
  28608. - hardcode_libdir_separator_CXX=':'
  28609. - link_all_deplibs_CXX=yes
  28610. -
  28611. - if test "$GXX" = yes; then
  28612. - case $host_os in aix4.[012]|aix4.[012].*)
  28613. - # We only want to do this on AIX 4.2 and lower, the check
  28614. - # below for broken collect2 doesn't work under 4.3+
  28615. - collect2name=`${CC} -print-prog-name=collect2`
  28616. - if test -f "$collect2name" && \
  28617. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  28618. - then
  28619. - # We have reworked collect2
  28620. - hardcode_direct_CXX=yes
  28621. - else
  28622. - # We have old collect2
  28623. - hardcode_direct_CXX=unsupported
  28624. - # It fails to find uninstalled libraries when the uninstalled
  28625. - # path is not listed in the libpath. Setting hardcode_minus_L
  28626. - # to unsupported forces relinking
  28627. - hardcode_minus_L_CXX=yes
  28628. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28629. - hardcode_libdir_separator_CXX=
  28630. - fi
  28631. - ;;
  28632. - esac
  28633. - shared_flag='-shared'
  28634. - if test "$aix_use_runtimelinking" = yes; then
  28635. - shared_flag="$shared_flag "'${wl}-G'
  28636. - fi
  28637. - else
  28638. - # not using gcc
  28639. - if test "$host_cpu" = ia64; then
  28640. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28641. - # chokes on -Wl,-G. The following line is correct:
  28642. - shared_flag='-G'
  28643. - else
  28644. - if test "$aix_use_runtimelinking" = yes; then
  28645. - shared_flag='${wl}-G'
  28646. - else
  28647. - shared_flag='${wl}-bM:SRE'
  28648. - fi
  28649. - fi
  28650. - fi
  28651. -
  28652. - # It seems that -bexpall does not export symbols beginning with
  28653. - # underscore (_), so it is better to generate a list of symbols to export.
  28654. - always_export_symbols_CXX=yes
  28655. - if test "$aix_use_runtimelinking" = yes; then
  28656. - # Warning - without using the other runtime loading flags (-brtl),
  28657. - # -berok will link without error, but may produce a broken library.
  28658. - allow_undefined_flag_CXX='-berok'
  28659. - # Determine the default libpath from the value encoded in an empty executable.
  28660. - cat >conftest.$ac_ext <<_ACEOF
  28661. -/* confdefs.h. */
  28662. -_ACEOF
  28663. -cat confdefs.h >>conftest.$ac_ext
  28664. -cat >>conftest.$ac_ext <<_ACEOF
  28665. -/* end confdefs.h. */
  28666. -
  28667. -int
  28668. -main ()
  28669. -{
  28670. -
  28671. - ;
  28672. - return 0;
  28673. -}
  28674. -_ACEOF
  28675. -rm -f conftest.$ac_objext conftest$ac_exeext
  28676. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28677. - (eval $ac_link) 2>conftest.er1
  28678. - ac_status=$?
  28679. - grep -v '^ *+' conftest.er1 >conftest.err
  28680. - rm -f conftest.er1
  28681. - cat conftest.err >&5
  28682. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28683. - (exit $ac_status); } &&
  28684. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28685. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28686. - (eval $ac_try) 2>&5
  28687. - ac_status=$?
  28688. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28689. - (exit $ac_status); }; } &&
  28690. - { ac_try='test -s conftest$ac_exeext'
  28691. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28692. - (eval $ac_try) 2>&5
  28693. - ac_status=$?
  28694. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28695. - (exit $ac_status); }; }; then
  28696. -
  28697. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28698. -}'`
  28699. -# Check for a 64-bit object if we didn't find anything.
  28700. -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; }
  28701. -}'`; fi
  28702. -else
  28703. - echo "$as_me: failed program was:" >&5
  28704. -sed 's/^/| /' conftest.$ac_ext >&5
  28705. -
  28706. -fi
  28707. -rm -f conftest.err conftest.$ac_objext \
  28708. - conftest$ac_exeext conftest.$ac_ext
  28709. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28710. -
  28711. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28712. -
  28713. - archive_expsym_cmds_CXX="\$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"
  28714. - else
  28715. - if test "$host_cpu" = ia64; then
  28716. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  28717. - allow_undefined_flag_CXX="-z nodefs"
  28718. - archive_expsym_cmds_CXX="\$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"
  28719. - else
  28720. - # Determine the default libpath from the value encoded in an empty executable.
  28721. - cat >conftest.$ac_ext <<_ACEOF
  28722. -/* confdefs.h. */
  28723. -_ACEOF
  28724. -cat confdefs.h >>conftest.$ac_ext
  28725. -cat >>conftest.$ac_ext <<_ACEOF
  28726. -/* end confdefs.h. */
  28727. -
  28728. -int
  28729. -main ()
  28730. -{
  28731. -
  28732. - ;
  28733. - return 0;
  28734. -}
  28735. -_ACEOF
  28736. -rm -f conftest.$ac_objext conftest$ac_exeext
  28737. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28738. - (eval $ac_link) 2>conftest.er1
  28739. - ac_status=$?
  28740. - grep -v '^ *+' conftest.er1 >conftest.err
  28741. - rm -f conftest.er1
  28742. - cat conftest.err >&5
  28743. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28744. - (exit $ac_status); } &&
  28745. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28746. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28747. - (eval $ac_try) 2>&5
  28748. - ac_status=$?
  28749. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28750. - (exit $ac_status); }; } &&
  28751. - { ac_try='test -s conftest$ac_exeext'
  28752. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28753. - (eval $ac_try) 2>&5
  28754. - ac_status=$?
  28755. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28756. - (exit $ac_status); }; }; then
  28757. -
  28758. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28759. -}'`
  28760. -# Check for a 64-bit object if we didn't find anything.
  28761. -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; }
  28762. -}'`; fi
  28763. -else
  28764. - echo "$as_me: failed program was:" >&5
  28765. -sed 's/^/| /' conftest.$ac_ext >&5
  28766. -
  28767. -fi
  28768. -rm -f conftest.err conftest.$ac_objext \
  28769. - conftest$ac_exeext conftest.$ac_ext
  28770. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28771. -
  28772. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28773. - # Warning - without using the other run time loading flags,
  28774. - # -berok will link without error, but may produce a broken library.
  28775. - no_undefined_flag_CXX=' ${wl}-bernotok'
  28776. - allow_undefined_flag_CXX=' ${wl}-berok'
  28777. - # Exported symbols can be pulled into shared objects from archives
  28778. - whole_archive_flag_spec_CXX='$convenience'
  28779. - archive_cmds_need_lc_CXX=yes
  28780. - # This is similar to how AIX traditionally builds its shared libraries.
  28781. - archive_expsym_cmds_CXX="\$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'
  28782. - fi
  28783. - fi
  28784. - ;;
  28785. -
  28786. - beos*)
  28787. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28788. - allow_undefined_flag_CXX=unsupported
  28789. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  28790. - # support --undefined. This deserves some investigation. FIXME
  28791. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28792. - else
  28793. - ld_shlibs_CXX=no
  28794. - fi
  28795. - ;;
  28796. -
  28797. - chorus*)
  28798. - case $cc_basename in
  28799. - *)
  28800. - # FIXME: insert proper C++ library support
  28801. - ld_shlibs_CXX=no
  28802. - ;;
  28803. - esac
  28804. - ;;
  28805. -
  28806. - cygwin* | mingw* | pw32*)
  28807. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  28808. - # as there is no search path for DLLs.
  28809. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28810. - allow_undefined_flag_CXX=unsupported
  28811. - always_export_symbols_CXX=no
  28812. - enable_shared_with_static_runtimes_CXX=yes
  28813. -
  28814. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  28815. - archive_cmds_CXX='$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'
  28816. - # If the export-symbols file already is a .def file (1st line
  28817. - # is EXPORTS), use it as is; otherwise, prepend...
  28818. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  28819. - cp $export_symbols $output_objdir/$soname.def;
  28820. - else
  28821. - echo EXPORTS > $output_objdir/$soname.def;
  28822. - cat $export_symbols >> $output_objdir/$soname.def;
  28823. - fi~
  28824. - $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'
  28825. - else
  28826. - ld_shlibs_CXX=no
  28827. - fi
  28828. - ;;
  28829. - darwin* | rhapsody*)
  28830. - case $host_os in
  28831. - rhapsody* | darwin1.[012])
  28832. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  28833. - ;;
  28834. - *) # Darwin 1.3 on
  28835. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28836. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28837. - else
  28838. - case ${MACOSX_DEPLOYMENT_TARGET} in
  28839. - 10.[012])
  28840. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28841. - ;;
  28842. - 10.*)
  28843. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  28844. - ;;
  28845. - esac
  28846. - fi
  28847. - ;;
  28848. - esac
  28849. - archive_cmds_need_lc_CXX=no
  28850. - hardcode_direct_CXX=no
  28851. - hardcode_automatic_CXX=yes
  28852. - hardcode_shlibpath_var_CXX=unsupported
  28853. - whole_archive_flag_spec_CXX=''
  28854. - link_all_deplibs_CXX=yes
  28855. -
  28856. - if test "$GXX" = yes ; then
  28857. - lt_int_apple_cc_single_mod=no
  28858. - output_verbose_link_cmd='echo'
  28859. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  28860. - lt_int_apple_cc_single_mod=yes
  28861. - fi
  28862. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28863. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  28864. - else
  28865. - archive_cmds_CXX='$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'
  28866. - fi
  28867. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28868. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28869. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28870. - archive_expsym_cmds_CXX='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}'
  28871. - else
  28872. - archive_expsym_cmds_CXX='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}'
  28873. - fi
  28874. - module_expsym_cmds_CXX='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}'
  28875. - else
  28876. - case $cc_basename in
  28877. - xlc*)
  28878. - output_verbose_link_cmd='echo'
  28879. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  28880. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28881. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28882. - archive_expsym_cmds_CXX='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}'
  28883. - module_expsym_cmds_CXX='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}'
  28884. - ;;
  28885. - *)
  28886. - ld_shlibs_CXX=no
  28887. - ;;
  28888. - esac
  28889. - fi
  28890. - ;;
  28891. -
  28892. - dgux*)
  28893. - case $cc_basename in
  28894. - ec++*)
  28895. - # FIXME: insert proper C++ library support
  28896. - ld_shlibs_CXX=no
  28897. - ;;
  28898. - ghcx*)
  28899. - # Green Hills C++ Compiler
  28900. - # FIXME: insert proper C++ library support
  28901. - ld_shlibs_CXX=no
  28902. - ;;
  28903. - *)
  28904. - # FIXME: insert proper C++ library support
  28905. - ld_shlibs_CXX=no
  28906. - ;;
  28907. - esac
  28908. - ;;
  28909. - freebsd[12]*)
  28910. - # C++ shared libraries reported to be fairly broken before switch to ELF
  28911. - ld_shlibs_CXX=no
  28912. - ;;
  28913. - freebsd-elf*)
  28914. - archive_cmds_need_lc_CXX=no
  28915. - ;;
  28916. - freebsd* | kfreebsd*-gnu | dragonfly*)
  28917. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  28918. - # conventions
  28919. - ld_shlibs_CXX=yes
  28920. - ;;
  28921. - gnu*)
  28922. - ;;
  28923. - hpux9*)
  28924. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28925. - hardcode_libdir_separator_CXX=:
  28926. - export_dynamic_flag_spec_CXX='${wl}-E'
  28927. - hardcode_direct_CXX=yes
  28928. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28929. - # but as the default
  28930. - # location of the library.
  28931. -
  28932. - case $cc_basename in
  28933. - CC*)
  28934. - # FIXME: insert proper C++ library support
  28935. - ld_shlibs_CXX=no
  28936. - ;;
  28937. - aCC*)
  28938. - archive_cmds_CXX='$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'
  28939. - # Commands to make compiler produce verbose output that lists
  28940. - # what "hidden" libraries, object files and flags are used when
  28941. - # linking a shared library.
  28942. - #
  28943. - # There doesn't appear to be a way to prevent this compiler from
  28944. - # explicitly linking system object files so we need to strip them
  28945. - # from the output so that they don't get included in the library
  28946. - # dependencies.
  28947. - 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'
  28948. - ;;
  28949. - *)
  28950. - if test "$GXX" = yes; then
  28951. - archive_cmds_CXX='$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'
  28952. - else
  28953. - # FIXME: insert proper C++ library support
  28954. - ld_shlibs_CXX=no
  28955. - fi
  28956. - ;;
  28957. - esac
  28958. - ;;
  28959. - hpux10*|hpux11*)
  28960. - if test $with_gnu_ld = no; then
  28961. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28962. - hardcode_libdir_separator_CXX=:
  28963. -
  28964. - case $host_cpu in
  28965. - hppa*64*|ia64*)
  28966. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  28967. - ;;
  28968. - *)
  28969. - export_dynamic_flag_spec_CXX='${wl}-E'
  28970. - ;;
  28971. - esac
  28972. - fi
  28973. - case $host_cpu in
  28974. - hppa*64*|ia64*)
  28975. - hardcode_direct_CXX=no
  28976. - hardcode_shlibpath_var_CXX=no
  28977. - ;;
  28978. - *)
  28979. - hardcode_direct_CXX=yes
  28980. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28981. - # but as the default
  28982. - # location of the library.
  28983. - ;;
  28984. - esac
  28985. -
  28986. - case $cc_basename in
  28987. - CC*)
  28988. - # FIXME: insert proper C++ library support
  28989. - ld_shlibs_CXX=no
  28990. - ;;
  28991. - aCC*)
  28992. - case $host_cpu in
  28993. - hppa*64*)
  28994. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28995. - ;;
  28996. - ia64*)
  28997. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28998. - ;;
  28999. - *)
  29000. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29001. - ;;
  29002. - esac
  29003. - # Commands to make compiler produce verbose output that lists
  29004. - # what "hidden" libraries, object files and flags are used when
  29005. - # linking a shared library.
  29006. - #
  29007. - # There doesn't appear to be a way to prevent this compiler from
  29008. - # explicitly linking system object files so we need to strip them
  29009. - # from the output so that they don't get included in the library
  29010. - # dependencies.
  29011. - 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'
  29012. - ;;
  29013. - *)
  29014. - if test "$GXX" = yes; then
  29015. - if test $with_gnu_ld = no; then
  29016. - case $host_cpu in
  29017. - hppa*64*)
  29018. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29019. - ;;
  29020. - ia64*)
  29021. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29022. - ;;
  29023. - *)
  29024. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29025. - ;;
  29026. - esac
  29027. - fi
  29028. - else
  29029. - # FIXME: insert proper C++ library support
  29030. - ld_shlibs_CXX=no
  29031. - fi
  29032. - ;;
  29033. - esac
  29034. - ;;
  29035. - interix3*)
  29036. - hardcode_direct_CXX=no
  29037. - hardcode_shlibpath_var_CXX=no
  29038. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29039. - export_dynamic_flag_spec_CXX='${wl}-E'
  29040. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29041. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  29042. - # default) and relocated if they conflict, which is a slow very memory
  29043. - # consuming and fragmenting process. To avoid this, we pick a random,
  29044. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29045. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29046. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29047. - archive_expsym_cmds_CXX='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'
  29048. - ;;
  29049. - irix5* | irix6*)
  29050. - case $cc_basename in
  29051. - CC*)
  29052. - # SGI C++
  29053. - archive_cmds_CXX='$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'
  29054. -
  29055. - # Archives containing C++ object files must be created using
  29056. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  29057. - # necessary to make sure instantiated templates are included
  29058. - # in the archive.
  29059. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  29060. - ;;
  29061. - *)
  29062. - if test "$GXX" = yes; then
  29063. - if test "$with_gnu_ld" = no; then
  29064. - archive_cmds_CXX='$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'
  29065. - else
  29066. - archive_cmds_CXX='$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'
  29067. - fi
  29068. - fi
  29069. - link_all_deplibs_CXX=yes
  29070. - ;;
  29071. - esac
  29072. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29073. - hardcode_libdir_separator_CXX=:
  29074. - ;;
  29075. - linux*)
  29076. - case $cc_basename in
  29077. - KCC*)
  29078. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29079. -
  29080. - # KCC will only create a shared library if the output file
  29081. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29082. - # to its proper name (with version) after linking.
  29083. - archive_cmds_CXX='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'
  29084. - archive_expsym_cmds_CXX='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'
  29085. - # Commands to make compiler produce verbose output that lists
  29086. - # what "hidden" libraries, object files and flags are used when
  29087. - # linking a shared library.
  29088. - #
  29089. - # There doesn't appear to be a way to prevent this compiler from
  29090. - # explicitly linking system object files so we need to strip them
  29091. - # from the output so that they don't get included in the library
  29092. - # dependencies.
  29093. - 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'
  29094. -
  29095. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  29096. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29097. -
  29098. - # Archives containing C++ object files must be created using
  29099. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29100. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29101. - ;;
  29102. - icpc*)
  29103. - # Intel C++
  29104. - with_gnu_ld=yes
  29105. - # version 8.0 and above of icpc choke on multiply defined symbols
  29106. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  29107. - # earlier do not add the objects themselves.
  29108. - case `$CC -V 2>&1` in
  29109. - *"Version 7."*)
  29110. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29111. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29112. - ;;
  29113. - *) # Version 8.0 or newer
  29114. - tmp_idyn=
  29115. - case $host_cpu in
  29116. - ia64*) tmp_idyn=' -i_dynamic';;
  29117. - esac
  29118. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29119. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29120. - ;;
  29121. - esac
  29122. - archive_cmds_need_lc_CXX=no
  29123. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29124. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29125. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  29126. - ;;
  29127. - pgCC*)
  29128. - # Portland Group C++ compiler
  29129. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  29130. - archive_expsym_cmds_CXX='$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'
  29131. -
  29132. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  29133. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29134. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  29135. - ;;
  29136. - cxx*)
  29137. - # Compaq C++
  29138. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29139. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  29140. -
  29141. - runpath_var=LD_RUN_PATH
  29142. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29143. - hardcode_libdir_separator_CXX=:
  29144. -
  29145. - # Commands to make compiler produce verbose output that lists
  29146. - # what "hidden" libraries, object files and flags are used when
  29147. - # linking a shared library.
  29148. - #
  29149. - # There doesn't appear to be a way to prevent this compiler from
  29150. - # explicitly linking system object files so we need to strip them
  29151. - # from the output so that they don't get included in the library
  29152. - # dependencies.
  29153. - 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'
  29154. - ;;
  29155. - esac
  29156. - ;;
  29157. - lynxos*)
  29158. - # FIXME: insert proper C++ library support
  29159. - ld_shlibs_CXX=no
  29160. - ;;
  29161. - m88k*)
  29162. - # FIXME: insert proper C++ library support
  29163. - ld_shlibs_CXX=no
  29164. - ;;
  29165. - mvs*)
  29166. - case $cc_basename in
  29167. - cxx*)
  29168. - # FIXME: insert proper C++ library support
  29169. - ld_shlibs_CXX=no
  29170. - ;;
  29171. - *)
  29172. - # FIXME: insert proper C++ library support
  29173. - ld_shlibs_CXX=no
  29174. - ;;
  29175. - esac
  29176. - ;;
  29177. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  29178. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29179. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  29180. - wlarc=
  29181. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29182. - hardcode_direct_CXX=yes
  29183. - hardcode_shlibpath_var_CXX=no
  29184. - fi
  29185. - # Workaround some broken pre-1.5 toolchains
  29186. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  29187. - ;;
  29188. - openbsd2*)
  29189. - # C++ shared libraries are fairly broken
  29190. - ld_shlibs_CXX=no
  29191. - ;;
  29192. - openbsd*)
  29193. - hardcode_direct_CXX=yes
  29194. - hardcode_shlibpath_var_CXX=no
  29195. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29196. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29197. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29198. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  29199. - export_dynamic_flag_spec_CXX='${wl}-E'
  29200. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29201. - fi
  29202. - output_verbose_link_cmd='echo'
  29203. - ;;
  29204. - osf3*)
  29205. - case $cc_basename in
  29206. - KCC*)
  29207. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29208. -
  29209. - # KCC will only create a shared library if the output file
  29210. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29211. - # to its proper name (with version) after linking.
  29212. - archive_cmds_CXX='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'
  29213. -
  29214. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29215. - hardcode_libdir_separator_CXX=:
  29216. -
  29217. - # Archives containing C++ object files must be created using
  29218. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29219. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29220. -
  29221. - ;;
  29222. - RCC*)
  29223. - # Rational C++ 2.4.1
  29224. - # FIXME: insert proper C++ library support
  29225. - ld_shlibs_CXX=no
  29226. - ;;
  29227. - cxx*)
  29228. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29229. - archive_cmds_CXX='$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'
  29230. -
  29231. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29232. - hardcode_libdir_separator_CXX=:
  29233. -
  29234. - # Commands to make compiler produce verbose output that lists
  29235. - # what "hidden" libraries, object files and flags are used when
  29236. - # linking a shared library.
  29237. - #
  29238. - # There doesn't appear to be a way to prevent this compiler from
  29239. - # explicitly linking system object files so we need to strip them
  29240. - # from the output so that they don't get included in the library
  29241. - # dependencies.
  29242. - 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'
  29243. - ;;
  29244. - *)
  29245. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29246. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29247. - archive_cmds_CXX='$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'
  29248. -
  29249. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29250. - hardcode_libdir_separator_CXX=:
  29251. -
  29252. - # Commands to make compiler produce verbose output that lists
  29253. - # what "hidden" libraries, object files and flags are used when
  29254. - # linking a shared library.
  29255. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29256. -
  29257. - else
  29258. - # FIXME: insert proper C++ library support
  29259. - ld_shlibs_CXX=no
  29260. - fi
  29261. - ;;
  29262. - esac
  29263. - ;;
  29264. - osf4* | osf5*)
  29265. - case $cc_basename in
  29266. - KCC*)
  29267. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29268. -
  29269. - # KCC will only create a shared library if the output file
  29270. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29271. - # to its proper name (with version) after linking.
  29272. - archive_cmds_CXX='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'
  29273. -
  29274. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29275. - hardcode_libdir_separator_CXX=:
  29276. -
  29277. - # Archives containing C++ object files must be created using
  29278. - # the KAI C++ compiler.
  29279. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  29280. - ;;
  29281. - RCC*)
  29282. - # Rational C++ 2.4.1
  29283. - # FIXME: insert proper C++ library support
  29284. - ld_shlibs_CXX=no
  29285. - ;;
  29286. - cxx*)
  29287. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  29288. - archive_cmds_CXX='$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'
  29289. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  29290. - echo "-hidden">> $lib.exp~
  29291. - $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~
  29292. - $rm $lib.exp'
  29293. -
  29294. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29295. - hardcode_libdir_separator_CXX=:
  29296. -
  29297. - # Commands to make compiler produce verbose output that lists
  29298. - # what "hidden" libraries, object files and flags are used when
  29299. - # linking a shared library.
  29300. - #
  29301. - # There doesn't appear to be a way to prevent this compiler from
  29302. - # explicitly linking system object files so we need to strip them
  29303. - # from the output so that they don't get included in the library
  29304. - # dependencies.
  29305. - 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'
  29306. - ;;
  29307. - *)
  29308. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29309. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29310. - archive_cmds_CXX='$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'
  29311. -
  29312. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29313. - hardcode_libdir_separator_CXX=:
  29314. -
  29315. - # Commands to make compiler produce verbose output that lists
  29316. - # what "hidden" libraries, object files and flags are used when
  29317. - # linking a shared library.
  29318. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29319. -
  29320. - else
  29321. - # FIXME: insert proper C++ library support
  29322. - ld_shlibs_CXX=no
  29323. - fi
  29324. - ;;
  29325. - esac
  29326. - ;;
  29327. - psos*)
  29328. - # FIXME: insert proper C++ library support
  29329. - ld_shlibs_CXX=no
  29330. - ;;
  29331. - sunos4*)
  29332. - case $cc_basename in
  29333. - CC*)
  29334. - # Sun C++ 4.x
  29335. - # FIXME: insert proper C++ library support
  29336. - ld_shlibs_CXX=no
  29337. - ;;
  29338. - lcc*)
  29339. - # Lucid
  29340. - # FIXME: insert proper C++ library support
  29341. - ld_shlibs_CXX=no
  29342. - ;;
  29343. - *)
  29344. - # FIXME: insert proper C++ library support
  29345. - ld_shlibs_CXX=no
  29346. - ;;
  29347. - esac
  29348. - ;;
  29349. - solaris*)
  29350. - case $cc_basename in
  29351. - CC*)
  29352. - # Sun C++ 4.2, 5.x and Centerline C++
  29353. - archive_cmds_need_lc_CXX=yes
  29354. - no_undefined_flag_CXX=' -zdefs'
  29355. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29356. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29357. - $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'
  29358. -
  29359. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29360. - hardcode_shlibpath_var_CXX=no
  29361. - case $host_os in
  29362. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29363. - *)
  29364. - # The C++ compiler is used as linker so we must use $wl
  29365. - # flag to pass the commands to the underlying system
  29366. - # linker. We must also pass each convience library through
  29367. - # to the system linker between allextract/defaultextract.
  29368. - # The C++ compiler will combine linker options so we
  29369. - # cannot just pass the convience library names through
  29370. - # without $wl.
  29371. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  29372. - whole_archive_flag_spec_CXX='${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'
  29373. - ;;
  29374. - esac
  29375. - link_all_deplibs_CXX=yes
  29376. -
  29377. - output_verbose_link_cmd='echo'
  29378. -
  29379. - # Archives containing C++ object files must be created using
  29380. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  29381. - # necessary to make sure instantiated templates are included
  29382. - # in the archive.
  29383. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  29384. - ;;
  29385. - gcx*)
  29386. - # Green Hills C++ Compiler
  29387. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29388. -
  29389. - # The C++ compiler must be used to create the archive.
  29390. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  29391. - ;;
  29392. - *)
  29393. - # GNU C++ compiler with Solaris linker
  29394. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29395. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  29396. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  29397. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29398. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29399. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29400. -
  29401. - # Commands to make compiler produce verbose output that lists
  29402. - # what "hidden" libraries, object files and flags are used when
  29403. - # linking a shared library.
  29404. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29405. - else
  29406. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  29407. - # platform.
  29408. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29409. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29410. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29411. -
  29412. - # Commands to make compiler produce verbose output that lists
  29413. - # what "hidden" libraries, object files and flags are used when
  29414. - # linking a shared library.
  29415. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29416. - fi
  29417. -
  29418. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  29419. - fi
  29420. - ;;
  29421. - esac
  29422. - ;;
  29423. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29424. - no_undefined_flag_CXX='${wl}-z,text'
  29425. - archive_cmds_need_lc_CXX=no
  29426. - hardcode_shlibpath_var_CXX=no
  29427. - runpath_var='LD_RUN_PATH'
  29428. -
  29429. - case $cc_basename in
  29430. - CC*)
  29431. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29432. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29433. - ;;
  29434. - *)
  29435. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29436. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29437. - ;;
  29438. - esac
  29439. - ;;
  29440. - sysv5* | sco3.2v5* | sco5v6*)
  29441. - # Note: We can NOT use -z defs as we might desire, because we do not
  29442. - # link with -lc, and that would cause any symbols used from libc to
  29443. - # always be unresolved, which means just about no library would
  29444. - # ever link correctly. If we're not using GNU ld we use -z text
  29445. - # though, which does catch some bad symbols but isn't as heavy-handed
  29446. - # as -z defs.
  29447. - # For security reasons, it is highly recommended that you always
  29448. - # use absolute paths for naming shared libraries, and exclude the
  29449. - # DT_RUNPATH tag from executables and libraries. But doing so
  29450. - # requires that you compile everything twice, which is a pain.
  29451. - # So that behaviour is only enabled if SCOABSPATH is set to a
  29452. - # non-empty value in the environment. Most likely only useful for
  29453. - # creating official distributions of packages.
  29454. - # This is a hack until libtool officially supports absolute path
  29455. - # names for shared libraries.
  29456. - no_undefined_flag_CXX='${wl}-z,text'
  29457. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  29458. - archive_cmds_need_lc_CXX=no
  29459. - hardcode_shlibpath_var_CXX=no
  29460. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  29461. - hardcode_libdir_separator_CXX=':'
  29462. - link_all_deplibs_CXX=yes
  29463. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  29464. - runpath_var='LD_RUN_PATH'
  29465. -
  29466. - case $cc_basename in
  29467. - CC*)
  29468. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29469. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29470. - ;;
  29471. - *)
  29472. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29473. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29474. - ;;
  29475. - esac
  29476. - ;;
  29477. - tandem*)
  29478. - case $cc_basename in
  29479. - NCC*)
  29480. - # NonStop-UX NCC 3.20
  29481. - # FIXME: insert proper C++ library support
  29482. - ld_shlibs_CXX=no
  29483. - ;;
  29484. - *)
  29485. - # FIXME: insert proper C++ library support
  29486. - ld_shlibs_CXX=no
  29487. - ;;
  29488. - esac
  29489. - ;;
  29490. - vxworks*)
  29491. - # FIXME: insert proper C++ library support
  29492. - ld_shlibs_CXX=no
  29493. - ;;
  29494. - *)
  29495. - # FIXME: insert proper C++ library support
  29496. - ld_shlibs_CXX=no
  29497. - ;;
  29498. -esac
  29499. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29500. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  29501. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29502. -
  29503. -GCC_CXX="$GXX"
  29504. -LD_CXX="$LD"
  29505. -
  29506. -
  29507. -cat > conftest.$ac_ext <<EOF
  29508. -class Foo
  29509. -{
  29510. -public:
  29511. - Foo (void) { a = 0; }
  29512. -private:
  29513. - int a;
  29514. -};
  29515. -EOF
  29516. -
  29517. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29518. - (eval $ac_compile) 2>&5
  29519. - ac_status=$?
  29520. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29521. - (exit $ac_status); }; then
  29522. - # Parse the compiler output and extract the necessary
  29523. - # objects, libraries and library flags.
  29524. -
  29525. - # Sentinel used to keep track of whether or not we are before
  29526. - # the conftest object file.
  29527. - pre_test_object_deps_done=no
  29528. -
  29529. - # The `*' in the case matches for architectures that use `case' in
  29530. - # $output_verbose_cmd can trigger glob expansion during the loop
  29531. - # eval without this substitution.
  29532. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  29533. -
  29534. - for p in `eval $output_verbose_link_cmd`; do
  29535. - case $p in
  29536. -
  29537. - -L* | -R* | -l*)
  29538. - # Some compilers place space between "-{L,R}" and the path.
  29539. - # Remove the space.
  29540. - if test $p = "-L" \
  29541. - || test $p = "-R"; then
  29542. - prev=$p
  29543. - continue
  29544. - else
  29545. - prev=
  29546. - fi
  29547. -
  29548. - if test "$pre_test_object_deps_done" = no; then
  29549. - case $p in
  29550. - -L* | -R*)
  29551. - # Internal compiler library paths should come after those
  29552. - # provided the user. The postdeps already come after the
  29553. - # user supplied libs so there is no need to process them.
  29554. - if test -z "$compiler_lib_search_path_CXX"; then
  29555. - compiler_lib_search_path_CXX="${prev}${p}"
  29556. - else
  29557. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  29558. - fi
  29559. - ;;
  29560. - # The "-l" case would never come before the object being
  29561. - # linked, so don't bother handling this case.
  29562. - esac
  29563. - else
  29564. - if test -z "$postdeps_CXX"; then
  29565. - postdeps_CXX="${prev}${p}"
  29566. - else
  29567. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  29568. - fi
  29569. - fi
  29570. - ;;
  29571. -
  29572. - *.$objext)
  29573. - # This assumes that the test object file only shows up
  29574. - # once in the compiler output.
  29575. - if test "$p" = "conftest.$objext"; then
  29576. - pre_test_object_deps_done=yes
  29577. - continue
  29578. - fi
  29579. -
  29580. - if test "$pre_test_object_deps_done" = no; then
  29581. - if test -z "$predep_objects_CXX"; then
  29582. - predep_objects_CXX="$p"
  29583. - else
  29584. - predep_objects_CXX="$predep_objects_CXX $p"
  29585. - fi
  29586. - else
  29587. - if test -z "$postdep_objects_CXX"; then
  29588. - postdep_objects_CXX="$p"
  29589. - else
  29590. - postdep_objects_CXX="$postdep_objects_CXX $p"
  29591. - fi
  29592. - fi
  29593. - ;;
  29594. -
  29595. - *) ;; # Ignore the rest.
  29596. -
  29597. - esac
  29598. - done
  29599. -
  29600. - # Clean up.
  29601. - rm -f a.out a.exe
  29602. -else
  29603. - echo "libtool.m4: error: problem compiling CXX test program"
  29604. -fi
  29605. -
  29606. -$rm -f confest.$objext
  29607. -
  29608. -# PORTME: override above test on systems where it is broken
  29609. -case $host_os in
  29610. -interix3*)
  29611. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  29612. - # hack all around it, let's just trust "g++" to DTRT.
  29613. - predep_objects_CXX=
  29614. - postdep_objects_CXX=
  29615. - postdeps_CXX=
  29616. - ;;
  29617. -
  29618. -solaris*)
  29619. - case $cc_basename in
  29620. - CC*)
  29621. - # Adding this requires a known-good setup of shared libraries for
  29622. - # Sun compiler versions before 5.6, else PIC objects from an old
  29623. - # archive will be linked into the output, leading to subtle bugs.
  29624. - postdeps_CXX='-lCstd -lCrun'
  29625. - ;;
  29626. - esac
  29627. - ;;
  29628. -esac
  29629. -
  29630. -
  29631. -case " $postdeps_CXX " in
  29632. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  29633. -esac
  29634. -
  29635. -lt_prog_compiler_wl_CXX=
  29636. -lt_prog_compiler_pic_CXX=
  29637. -lt_prog_compiler_static_CXX=
  29638. -
  29639. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29640. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  29641. -
  29642. - # C++ specific cases for pic, static, wl, etc.
  29643. - if test "$GXX" = yes; then
  29644. - lt_prog_compiler_wl_CXX='-Wl,'
  29645. - lt_prog_compiler_static_CXX='-static'
  29646. -
  29647. - case $host_os in
  29648. - aix*)
  29649. - # All AIX code is PIC.
  29650. - if test "$host_cpu" = ia64; then
  29651. - # AIX 5 now supports IA64 processor
  29652. - lt_prog_compiler_static_CXX='-Bstatic'
  29653. - fi
  29654. - ;;
  29655. - amigaos*)
  29656. - # FIXME: we need at least 68020 code to build shared libraries, but
  29657. - # adding the `-m68020' flag to GCC prevents building anything better,
  29658. - # like `-m68040'.
  29659. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  29660. - ;;
  29661. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29662. - # PIC is the default for these OSes.
  29663. - ;;
  29664. - mingw* | os2* | pw32*)
  29665. - # This hack is so that the source file can tell whether it is being
  29666. - # built for inclusion in a dll (and should export symbols for example).
  29667. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  29668. - ;;
  29669. - darwin* | rhapsody*)
  29670. - # PIC is the default on this platform
  29671. - # Common symbols not allowed in MH_DYLIB files
  29672. - lt_prog_compiler_pic_CXX='-fno-common'
  29673. - ;;
  29674. - *djgpp*)
  29675. - # DJGPP does not support shared libraries at all
  29676. - lt_prog_compiler_pic_CXX=
  29677. - ;;
  29678. - interix3*)
  29679. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29680. - # Instead, we relocate shared libraries at runtime.
  29681. - ;;
  29682. - sysv4*MP*)
  29683. - if test -d /usr/nec; then
  29684. - lt_prog_compiler_pic_CXX=-Kconform_pic
  29685. - fi
  29686. - ;;
  29687. - hpux*)
  29688. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29689. - # not for PA HP-UX.
  29690. - case $host_cpu in
  29691. - hppa*64*|ia64*)
  29692. - ;;
  29693. - *)
  29694. - lt_prog_compiler_pic_CXX='-fPIC'
  29695. - ;;
  29696. - esac
  29697. - ;;
  29698. - *)
  29699. - lt_prog_compiler_pic_CXX='-fPIC'
  29700. - ;;
  29701. - esac
  29702. - else
  29703. - case $host_os in
  29704. - aix4* | aix5*)
  29705. - # All AIX code is PIC.
  29706. - if test "$host_cpu" = ia64; then
  29707. - # AIX 5 now supports IA64 processor
  29708. - lt_prog_compiler_static_CXX='-Bstatic'
  29709. - else
  29710. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  29711. - fi
  29712. - ;;
  29713. - chorus*)
  29714. - case $cc_basename in
  29715. - cxch68*)
  29716. - # Green Hills C++ Compiler
  29717. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
  29718. - ;;
  29719. - esac
  29720. - ;;
  29721. - darwin*)
  29722. - # PIC is the default on this platform
  29723. - # Common symbols not allowed in MH_DYLIB files
  29724. - case $cc_basename in
  29725. - xlc*)
  29726. - lt_prog_compiler_pic_CXX='-qnocommon'
  29727. - lt_prog_compiler_wl_CXX='-Wl,'
  29728. - ;;
  29729. - esac
  29730. - ;;
  29731. - dgux*)
  29732. - case $cc_basename in
  29733. - ec++*)
  29734. - lt_prog_compiler_pic_CXX='-KPIC'
  29735. - ;;
  29736. - ghcx*)
  29737. - # Green Hills C++ Compiler
  29738. - lt_prog_compiler_pic_CXX='-pic'
  29739. - ;;
  29740. - *)
  29741. - ;;
  29742. - esac
  29743. - ;;
  29744. - freebsd* | kfreebsd*-gnu | dragonfly*)
  29745. - # FreeBSD uses GNU C++
  29746. - ;;
  29747. - hpux9* | hpux10* | hpux11*)
  29748. - case $cc_basename in
  29749. - CC*)
  29750. - lt_prog_compiler_wl_CXX='-Wl,'
  29751. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29752. - if test "$host_cpu" != ia64; then
  29753. - lt_prog_compiler_pic_CXX='+Z'
  29754. - fi
  29755. - ;;
  29756. - aCC*)
  29757. - lt_prog_compiler_wl_CXX='-Wl,'
  29758. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29759. - case $host_cpu in
  29760. - hppa*64*|ia64*)
  29761. - # +Z the default
  29762. - ;;
  29763. - *)
  29764. - lt_prog_compiler_pic_CXX='+Z'
  29765. - ;;
  29766. - esac
  29767. - ;;
  29768. - *)
  29769. - ;;
  29770. - esac
  29771. - ;;
  29772. - interix*)
  29773. - # This is c89, which is MS Visual C++ (no shared libs)
  29774. - # Anyone wants to do a port?
  29775. - ;;
  29776. - irix5* | irix6* | nonstopux*)
  29777. - case $cc_basename in
  29778. - CC*)
  29779. - lt_prog_compiler_wl_CXX='-Wl,'
  29780. - lt_prog_compiler_static_CXX='-non_shared'
  29781. - # CC pic flag -KPIC is the default.
  29782. - ;;
  29783. - *)
  29784. - ;;
  29785. - esac
  29786. - ;;
  29787. - linux*)
  29788. - case $cc_basename in
  29789. - KCC*)
  29790. - # KAI C++ Compiler
  29791. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29792. - lt_prog_compiler_pic_CXX='-fPIC'
  29793. - ;;
  29794. - icpc* | ecpc*)
  29795. - # Intel C++
  29796. - lt_prog_compiler_wl_CXX='-Wl,'
  29797. - lt_prog_compiler_pic_CXX='-KPIC'
  29798. - lt_prog_compiler_static_CXX='-static'
  29799. - ;;
  29800. - pgCC*)
  29801. - # Portland Group C++ compiler.
  29802. - lt_prog_compiler_wl_CXX='-Wl,'
  29803. - lt_prog_compiler_pic_CXX='-fpic'
  29804. - lt_prog_compiler_static_CXX='-Bstatic'
  29805. - ;;
  29806. - cxx*)
  29807. - # Compaq C++
  29808. - # Make sure the PIC flag is empty. It appears that all Alpha
  29809. - # Linux and Compaq Tru64 Unix objects are PIC.
  29810. - lt_prog_compiler_pic_CXX=
  29811. - lt_prog_compiler_static_CXX='-non_shared'
  29812. - ;;
  29813. - *)
  29814. - ;;
  29815. - esac
  29816. - ;;
  29817. - lynxos*)
  29818. - ;;
  29819. - m88k*)
  29820. - ;;
  29821. - mvs*)
  29822. - case $cc_basename in
  29823. - cxx*)
  29824. - lt_prog_compiler_pic_CXX='-W c,exportall'
  29825. - ;;
  29826. - *)
  29827. - ;;
  29828. - esac
  29829. - ;;
  29830. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  29831. - ;;
  29832. - osf3* | osf4* | osf5*)
  29833. - case $cc_basename in
  29834. - KCC*)
  29835. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29836. - ;;
  29837. - RCC*)
  29838. - # Rational C++ 2.4.1
  29839. - lt_prog_compiler_pic_CXX='-pic'
  29840. - ;;
  29841. - cxx*)
  29842. - # Digital/Compaq C++
  29843. - lt_prog_compiler_wl_CXX='-Wl,'
  29844. - # Make sure the PIC flag is empty. It appears that all Alpha
  29845. - # Linux and Compaq Tru64 Unix objects are PIC.
  29846. - lt_prog_compiler_pic_CXX=
  29847. - lt_prog_compiler_static_CXX='-non_shared'
  29848. - ;;
  29849. - *)
  29850. - ;;
  29851. - esac
  29852. - ;;
  29853. - psos*)
  29854. - ;;
  29855. - solaris*)
  29856. - case $cc_basename in
  29857. - CC*)
  29858. - # Sun C++ 4.2, 5.x and Centerline C++
  29859. - lt_prog_compiler_pic_CXX='-KPIC'
  29860. - lt_prog_compiler_static_CXX='-Bstatic'
  29861. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29862. - ;;
  29863. - gcx*)
  29864. - # Green Hills C++ Compiler
  29865. - lt_prog_compiler_pic_CXX='-PIC'
  29866. - ;;
  29867. - *)
  29868. - ;;
  29869. - esac
  29870. - ;;
  29871. - sunos4*)
  29872. - case $cc_basename in
  29873. - CC*)
  29874. - # Sun C++ 4.x
  29875. - lt_prog_compiler_pic_CXX='-pic'
  29876. - lt_prog_compiler_static_CXX='-Bstatic'
  29877. - ;;
  29878. - lcc*)
  29879. - # Lucid
  29880. - lt_prog_compiler_pic_CXX='-pic'
  29881. - ;;
  29882. - *)
  29883. - ;;
  29884. - esac
  29885. - ;;
  29886. - tandem*)
  29887. - case $cc_basename in
  29888. - NCC*)
  29889. - # NonStop-UX NCC 3.20
  29890. - lt_prog_compiler_pic_CXX='-KPIC'
  29891. - ;;
  29892. - *)
  29893. - ;;
  29894. - esac
  29895. - ;;
  29896. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29897. - case $cc_basename in
  29898. - CC*)
  29899. - lt_prog_compiler_wl_CXX='-Wl,'
  29900. - lt_prog_compiler_pic_CXX='-KPIC'
  29901. - lt_prog_compiler_static_CXX='-Bstatic'
  29902. - ;;
  29903. - esac
  29904. - ;;
  29905. - vxworks*)
  29906. - ;;
  29907. - *)
  29908. - lt_prog_compiler_can_build_shared_CXX=no
  29909. - ;;
  29910. - esac
  29911. - fi
  29912. -
  29913. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  29914. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  29915. -
  29916. -#
  29917. -# Check to make sure the PIC flag actually works.
  29918. -#
  29919. -if test -n "$lt_prog_compiler_pic_CXX"; then
  29920. -
  29921. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  29922. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  29923. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  29924. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29925. -else
  29926. - lt_prog_compiler_pic_works_CXX=no
  29927. - ac_outfile=conftest.$ac_objext
  29928. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29929. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  29930. - # Insert the option either (1) after the last *FLAGS variable, or
  29931. - # (2) before a word containing "conftest.", or (3) at the end.
  29932. - # Note that $ac_compile itself does not contain backslashes and begins
  29933. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29934. - # The option is referenced via a variable to avoid confusing sed.
  29935. - lt_compile=`echo "$ac_compile" | $SED \
  29936. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29937. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29938. - -e 's:$: $lt_compiler_flag:'`
  29939. - (eval echo "\"\$as_me:11567: $lt_compile\"" >&5)
  29940. - (eval "$lt_compile" 2>conftest.err)
  29941. - ac_status=$?
  29942. - cat conftest.err >&5
  29943. - echo "$as_me:11571: \$? = $ac_status" >&5
  29944. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29945. - # The compiler can only warn and ignore the option if not recognized
  29946. - # So say no if there are warnings other than the usual output.
  29947. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29948. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29949. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29950. - lt_prog_compiler_pic_works_CXX=yes
  29951. - fi
  29952. - fi
  29953. - $rm conftest*
  29954. -
  29955. -fi
  29956. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  29957. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  29958. -
  29959. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  29960. - case $lt_prog_compiler_pic_CXX in
  29961. - "" | " "*) ;;
  29962. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  29963. - esac
  29964. -else
  29965. - lt_prog_compiler_pic_CXX=
  29966. - lt_prog_compiler_can_build_shared_CXX=no
  29967. -fi
  29968. -
  29969. -fi
  29970. -case $host_os in
  29971. - # For platforms which do not support PIC, -DPIC is meaningless:
  29972. - *djgpp*)
  29973. - lt_prog_compiler_pic_CXX=
  29974. - ;;
  29975. - *)
  29976. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  29977. - ;;
  29978. -esac
  29979. -
  29980. -#
  29981. -# Check to make sure the static flag actually works.
  29982. -#
  29983. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  29984. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29985. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  29986. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  29987. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29988. -else
  29989. - lt_prog_compiler_static_works_CXX=no
  29990. - save_LDFLAGS="$LDFLAGS"
  29991. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29992. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  29993. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29994. - # The linker can only warn and ignore the option if not recognized
  29995. - # So say no if there are warnings
  29996. - if test -s conftest.err; then
  29997. - # Append any errors to the config.log.
  29998. - cat conftest.err 1>&5
  29999. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30000. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30001. - if diff conftest.exp conftest.er2 >/dev/null; then
  30002. - lt_prog_compiler_static_works_CXX=yes
  30003. - fi
  30004. - else
  30005. - lt_prog_compiler_static_works_CXX=yes
  30006. - fi
  30007. - fi
  30008. - $rm conftest*
  30009. - LDFLAGS="$save_LDFLAGS"
  30010. -
  30011. -fi
  30012. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  30013. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  30014. -
  30015. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  30016. - :
  30017. -else
  30018. - lt_prog_compiler_static_CXX=
  30019. -fi
  30020. -
  30021. -
  30022. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30023. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  30024. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  30025. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30026. -else
  30027. - lt_cv_prog_compiler_c_o_CXX=no
  30028. - $rm -r conftest 2>/dev/null
  30029. - mkdir conftest
  30030. - cd conftest
  30031. - mkdir out
  30032. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30033. -
  30034. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30035. - # Insert the option either (1) after the last *FLAGS variable, or
  30036. - # (2) before a word containing "conftest.", or (3) at the end.
  30037. - # Note that $ac_compile itself does not contain backslashes and begins
  30038. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30039. - lt_compile=`echo "$ac_compile" | $SED \
  30040. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30041. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30042. - -e 's:$: $lt_compiler_flag:'`
  30043. - (eval echo "\"\$as_me:11671: $lt_compile\"" >&5)
  30044. - (eval "$lt_compile" 2>out/conftest.err)
  30045. - ac_status=$?
  30046. - cat out/conftest.err >&5
  30047. - echo "$as_me:11675: \$? = $ac_status" >&5
  30048. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30049. - then
  30050. - # The compiler can only warn and ignore the option if not recognized
  30051. - # So say no if there are warnings
  30052. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30053. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30054. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30055. - lt_cv_prog_compiler_c_o_CXX=yes
  30056. - fi
  30057. - fi
  30058. - chmod u+w . 2>&5
  30059. - $rm conftest*
  30060. - # SGI C++ compiler will create directory out/ii_files/ for
  30061. - # template instantiation
  30062. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30063. - $rm out/* && rmdir out
  30064. - cd ..
  30065. - rmdir conftest
  30066. - $rm conftest*
  30067. -
  30068. -fi
  30069. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  30070. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  30071. -
  30072. -
  30073. -hard_links="nottested"
  30074. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  30075. - # do not overwrite the value of need_locks provided by the user
  30076. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30077. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  30078. - hard_links=yes
  30079. - $rm conftest*
  30080. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30081. - touch conftest.a
  30082. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30083. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30084. - echo "$as_me:$LINENO: result: $hard_links" >&5
  30085. -echo "${ECHO_T}$hard_links" >&6
  30086. - if test "$hard_links" = no; then
  30087. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30088. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30089. - need_locks=warn
  30090. - fi
  30091. -else
  30092. - need_locks=no
  30093. -fi
  30094. -
  30095. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30096. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  30097. -
  30098. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30099. - case $host_os in
  30100. - aix4* | aix5*)
  30101. - # If we're using GNU nm, then we don't want the "-C" option.
  30102. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30103. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30104. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30105. - else
  30106. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30107. - fi
  30108. - ;;
  30109. - pw32*)
  30110. - export_symbols_cmds_CXX="$ltdll_cmds"
  30111. - ;;
  30112. - cygwin* | mingw*)
  30113. - export_symbols_cmds_CXX='$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'
  30114. - ;;
  30115. - kfreebsd*-gnu)
  30116. - link_all_deplibs_CXX=no
  30117. - ;;
  30118. - linux*)
  30119. - link_all_deplibs_CXX=no
  30120. - ;;
  30121. - *)
  30122. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30123. - ;;
  30124. - esac
  30125. -
  30126. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  30127. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  30128. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  30129. -
  30130. -#
  30131. -# Do we need to explicitly link libc?
  30132. -#
  30133. -case "x$archive_cmds_need_lc_CXX" in
  30134. -x|xyes)
  30135. - # Assume -lc should be added
  30136. - archive_cmds_need_lc_CXX=yes
  30137. -
  30138. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30139. - case $archive_cmds_CXX in
  30140. - *'~'*)
  30141. - # FIXME: we may have to deal with multi-command sequences.
  30142. - ;;
  30143. - '$CC '*)
  30144. - # Test whether the compiler implicitly links with -lc since on some
  30145. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30146. - # to ld, don't add -lc before -lgcc.
  30147. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30148. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  30149. - $rm conftest*
  30150. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30151. -
  30152. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30153. - (eval $ac_compile) 2>&5
  30154. - ac_status=$?
  30155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30156. - (exit $ac_status); } 2>conftest.err; then
  30157. - soname=conftest
  30158. - lib=conftest
  30159. - libobjs=conftest.$ac_objext
  30160. - deplibs=
  30161. - wl=$lt_prog_compiler_wl_CXX
  30162. - pic_flag=$lt_prog_compiler_pic_CXX
  30163. - compiler_flags=-v
  30164. - linker_flags=-v
  30165. - verstring=
  30166. - output_objdir=.
  30167. - libname=conftest
  30168. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  30169. - allow_undefined_flag_CXX=
  30170. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30171. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30172. - ac_status=$?
  30173. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30174. - (exit $ac_status); }
  30175. - then
  30176. - archive_cmds_need_lc_CXX=no
  30177. - else
  30178. - archive_cmds_need_lc_CXX=yes
  30179. - fi
  30180. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  30181. - else
  30182. - cat conftest.err 1>&5
  30183. - fi
  30184. - $rm conftest*
  30185. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  30186. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  30187. - ;;
  30188. - esac
  30189. - fi
  30190. - ;;
  30191. -esac
  30192. -
  30193. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  30194. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  30195. -library_names_spec=
  30196. -libname_spec='lib$name'
  30197. -soname_spec=
  30198. -shrext_cmds=".so"
  30199. -postinstall_cmds=
  30200. -postuninstall_cmds=
  30201. -finish_cmds=
  30202. -finish_eval=
  30203. -shlibpath_var=
  30204. -shlibpath_overrides_runpath=unknown
  30205. -version_type=none
  30206. -dynamic_linker="$host_os ld.so"
  30207. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  30208. -if test "$GCC" = yes; then
  30209. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30210. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  30211. - # if the path contains ";" then we assume it to be the separator
  30212. - # otherwise default to the standard path separator (i.e. ":") - it is
  30213. - # assumed that no part of a normal pathname contains ";" but that should
  30214. - # okay in the real world where ";" in dirpaths is itself problematic.
  30215. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30216. - else
  30217. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30218. - fi
  30219. -else
  30220. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  30221. -fi
  30222. -need_lib_prefix=unknown
  30223. -hardcode_into_libs=no
  30224. -
  30225. -# when you set need_version to no, make sure it does not cause -set_version
  30226. -# flags to be left without arguments
  30227. -need_version=unknown
  30228. -
  30229. -case $host_os in
  30230. -aix3*)
  30231. - version_type=linux
  30232. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  30233. - shlibpath_var=LIBPATH
  30234. -
  30235. - # AIX 3 has no versioning support, so we append a major version to the name.
  30236. - soname_spec='${libname}${release}${shared_ext}$major'
  30237. - ;;
  30238. -
  30239. -aix4* | aix5*)
  30240. - version_type=linux
  30241. - need_lib_prefix=no
  30242. - need_version=no
  30243. - hardcode_into_libs=yes
  30244. - if test "$host_cpu" = ia64; then
  30245. - # AIX 5 supports IA64
  30246. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  30247. - shlibpath_var=LD_LIBRARY_PATH
  30248. - else
  30249. - # With GCC up to 2.95.x, collect2 would create an import file
  30250. - # for dependence libraries. The import file would start with
  30251. - # the line `#! .'. This would cause the generated library to
  30252. - # depend on `.', always an invalid library. This was fixed in
  30253. - # development snapshots of GCC prior to 3.0.
  30254. - case $host_os in
  30255. - aix4 | aix4.[01] | aix4.[01].*)
  30256. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  30257. - echo ' yes '
  30258. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  30259. - :
  30260. - else
  30261. - can_build_shared=no
  30262. - fi
  30263. - ;;
  30264. - esac
  30265. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  30266. - # soname into executable. Probably we can add versioning support to
  30267. - # collect2, so additional links can be useful in future.
  30268. - if test "$aix_use_runtimelinking" = yes; then
  30269. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  30270. - # instead of lib<name>.a to let people know that these are not
  30271. - # typical AIX shared libraries.
  30272. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30273. - else
  30274. - # We preserve .a as extension for shared libraries through AIX4.2
  30275. - # and later when we are not doing run time linking.
  30276. - library_names_spec='${libname}${release}.a $libname.a'
  30277. - soname_spec='${libname}${release}${shared_ext}$major'
  30278. - fi
  30279. - shlibpath_var=LIBPATH
  30280. - fi
  30281. - ;;
  30282. -
  30283. -amigaos*)
  30284. - library_names_spec='$libname.ixlibrary $libname.a'
  30285. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  30286. - 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'
  30287. - ;;
  30288. -
  30289. -beos*)
  30290. - library_names_spec='${libname}${shared_ext}'
  30291. - dynamic_linker="$host_os ld.so"
  30292. - shlibpath_var=LIBRARY_PATH
  30293. - ;;
  30294. -
  30295. -bsdi[45]*)
  30296. - version_type=linux
  30297. - need_version=no
  30298. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30299. - soname_spec='${libname}${release}${shared_ext}$major'
  30300. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  30301. - shlibpath_var=LD_LIBRARY_PATH
  30302. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  30303. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  30304. - # the default ld.so.conf also contains /usr/contrib/lib and
  30305. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  30306. - # libtool to hard-code these into programs
  30307. - ;;
  30308. -
  30309. -cygwin* | mingw* | pw32*)
  30310. - version_type=windows
  30311. - shrext_cmds=".dll"
  30312. - need_version=no
  30313. - need_lib_prefix=no
  30314. -
  30315. - case $GCC,$host_os in
  30316. - yes,cygwin* | yes,mingw* | yes,pw32*)
  30317. - library_names_spec='$libname.dll.a'
  30318. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  30319. - postinstall_cmds='base_file=`basename \${file}`~
  30320. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  30321. - dldir=$destdir/`dirname \$dlpath`~
  30322. - test -d \$dldir || mkdir -p \$dldir~
  30323. - $install_prog $dir/$dlname \$dldir/$dlname~
  30324. - chmod a+x \$dldir/$dlname'
  30325. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  30326. - dlpath=$dir/\$dldll~
  30327. - $rm \$dlpath'
  30328. - shlibpath_overrides_runpath=yes
  30329. -
  30330. - case $host_os in
  30331. - cygwin*)
  30332. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  30333. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30334. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  30335. - ;;
  30336. - mingw*)
  30337. - # MinGW DLLs use traditional 'lib' prefix
  30338. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30339. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30340. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  30341. - # It is most probably a Windows format PATH printed by
  30342. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  30343. - # path with ; separators, and with drive letters. We can handle the
  30344. - # drive letters (cygwin fileutils understands them), so leave them,
  30345. - # especially as we might pass files found there to a mingw objdump,
  30346. - # which wouldn't understand a cygwinified path. Ahh.
  30347. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30348. - else
  30349. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30350. - fi
  30351. - ;;
  30352. - pw32*)
  30353. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  30354. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30355. - ;;
  30356. - esac
  30357. - ;;
  30358. -
  30359. - *)
  30360. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  30361. - ;;
  30362. - esac
  30363. - dynamic_linker='Win32 ld.exe'
  30364. - # FIXME: first we should search . and the directory the executable is in
  30365. - shlibpath_var=PATH
  30366. - ;;
  30367. -
  30368. -darwin* | rhapsody*)
  30369. - dynamic_linker="$host_os dyld"
  30370. - version_type=darwin
  30371. - need_lib_prefix=no
  30372. - need_version=no
  30373. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  30374. - soname_spec='${libname}${release}${major}$shared_ext'
  30375. - shlibpath_overrides_runpath=yes
  30376. - shlibpath_var=DYLD_LIBRARY_PATH
  30377. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  30378. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  30379. - if test "$GCC" = yes; then
  30380. - 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"`
  30381. - else
  30382. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  30383. - fi
  30384. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  30385. - ;;
  30386. -
  30387. -dgux*)
  30388. - version_type=linux
  30389. - need_lib_prefix=no
  30390. - need_version=no
  30391. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  30392. - soname_spec='${libname}${release}${shared_ext}$major'
  30393. - shlibpath_var=LD_LIBRARY_PATH
  30394. - ;;
  30395. -
  30396. -freebsd1*)
  30397. - dynamic_linker=no
  30398. - ;;
  30399. -
  30400. -kfreebsd*-gnu)
  30401. - version_type=linux
  30402. - need_lib_prefix=no
  30403. - need_version=no
  30404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30405. - soname_spec='${libname}${release}${shared_ext}$major'
  30406. - shlibpath_var=LD_LIBRARY_PATH
  30407. - shlibpath_overrides_runpath=no
  30408. - hardcode_into_libs=yes
  30409. - dynamic_linker='GNU ld.so'
  30410. - ;;
  30411. -
  30412. -freebsd* | dragonfly*)
  30413. - # DragonFly does not have aout. When/if they implement a new
  30414. - # versioning mechanism, adjust this.
  30415. - if test -x /usr/bin/objformat; then
  30416. - objformat=`/usr/bin/objformat`
  30417. - else
  30418. - case $host_os in
  30419. - freebsd[123]*) objformat=aout ;;
  30420. - *) objformat=elf ;;
  30421. - esac
  30422. - fi
  30423. - version_type=freebsd-$objformat
  30424. - case $version_type in
  30425. - freebsd-elf*)
  30426. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30427. - need_version=no
  30428. - need_lib_prefix=no
  30429. - ;;
  30430. - freebsd-*)
  30431. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  30432. - need_version=yes
  30433. - ;;
  30434. - esac
  30435. - shlibpath_var=LD_LIBRARY_PATH
  30436. - case $host_os in
  30437. - freebsd2*)
  30438. - shlibpath_overrides_runpath=yes
  30439. - ;;
  30440. - freebsd3.[01]* | freebsdelf3.[01]*)
  30441. - shlibpath_overrides_runpath=yes
  30442. - hardcode_into_libs=yes
  30443. - ;;
  30444. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  30445. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  30446. - shlibpath_overrides_runpath=no
  30447. - hardcode_into_libs=yes
  30448. - ;;
  30449. - freebsd*) # from 4.6 on
  30450. - shlibpath_overrides_runpath=yes
  30451. - hardcode_into_libs=yes
  30452. - ;;
  30453. - esac
  30454. - ;;
  30455. -
  30456. -gnu*)
  30457. - version_type=linux
  30458. - need_lib_prefix=no
  30459. - need_version=no
  30460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  30461. - soname_spec='${libname}${release}${shared_ext}$major'
  30462. - shlibpath_var=LD_LIBRARY_PATH
  30463. - hardcode_into_libs=yes
  30464. - ;;
  30465. -
  30466. -hpux9* | hpux10* | hpux11*)
  30467. - # Give a soname corresponding to the major version so that dld.sl refuses to
  30468. - # link against other versions.
  30469. - version_type=sunos
  30470. - need_lib_prefix=no
  30471. - need_version=no
  30472. - case $host_cpu in
  30473. - ia64*)
  30474. - shrext_cmds='.so'
  30475. - hardcode_into_libs=yes
  30476. - dynamic_linker="$host_os dld.so"
  30477. - shlibpath_var=LD_LIBRARY_PATH
  30478. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30479. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30480. - soname_spec='${libname}${release}${shared_ext}$major'
  30481. - if test "X$HPUX_IA64_MODE" = X32; then
  30482. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  30483. - else
  30484. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  30485. - fi
  30486. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30487. - ;;
  30488. - hppa*64*)
  30489. - shrext_cmds='.sl'
  30490. - hardcode_into_libs=yes
  30491. - dynamic_linker="$host_os dld.sl"
  30492. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  30493. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30494. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30495. - soname_spec='${libname}${release}${shared_ext}$major'
  30496. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  30497. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30498. - ;;
  30499. - *)
  30500. - shrext_cmds='.sl'
  30501. - dynamic_linker="$host_os dld.sl"
  30502. - shlibpath_var=SHLIB_PATH
  30503. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  30504. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30505. - soname_spec='${libname}${release}${shared_ext}$major'
  30506. - ;;
  30507. - esac
  30508. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  30509. - postinstall_cmds='chmod 555 $lib'
  30510. - ;;
  30511. -
  30512. -interix3*)
  30513. - version_type=linux
  30514. - need_lib_prefix=no
  30515. - need_version=no
  30516. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30517. - soname_spec='${libname}${release}${shared_ext}$major'
  30518. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  30519. - shlibpath_var=LD_LIBRARY_PATH
  30520. - shlibpath_overrides_runpath=no
  30521. - hardcode_into_libs=yes
  30522. - ;;
  30523. -
  30524. -irix5* | irix6* | nonstopux*)
  30525. - case $host_os in
  30526. - nonstopux*) version_type=nonstopux ;;
  30527. - *)
  30528. - if test "$lt_cv_prog_gnu_ld" = yes; then
  30529. - version_type=linux
  30530. - else
  30531. - version_type=irix
  30532. - fi ;;
  30533. - esac
  30534. - need_lib_prefix=no
  30535. - need_version=no
  30536. - soname_spec='${libname}${release}${shared_ext}$major'
  30537. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  30538. - case $host_os in
  30539. - irix5* | nonstopux*)
  30540. - libsuff= shlibsuff=
  30541. - ;;
  30542. - *)
  30543. - case $LD in # libtool.m4 will add one of these switches to LD
  30544. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  30545. - libsuff= shlibsuff= libmagic=32-bit;;
  30546. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  30547. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  30548. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  30549. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  30550. - *) libsuff= shlibsuff= libmagic=never-match;;
  30551. - esac
  30552. - ;;
  30553. - esac
  30554. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  30555. - shlibpath_overrides_runpath=no
  30556. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30557. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30558. - hardcode_into_libs=yes
  30559. - ;;
  30560. -
  30561. -# No shared lib support for Linux oldld, aout, or coff.
  30562. -linux*oldld* | linux*aout* | linux*coff*)
  30563. - dynamic_linker=no
  30564. - ;;
  30565. -
  30566. -# This must be Linux ELF.
  30567. -linux*)
  30568. - version_type=linux
  30569. - need_lib_prefix=no
  30570. - need_version=no
  30571. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30572. - soname_spec='${libname}${release}${shared_ext}$major'
  30573. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  30574. - shlibpath_var=LD_LIBRARY_PATH
  30575. - shlibpath_overrides_runpath=no
  30576. - # This implies no fast_install, which is unacceptable.
  30577. - # Some rework will be needed to allow for fast_install
  30578. - # before this can be enabled.
  30579. - hardcode_into_libs=yes
  30580. -
  30581. - # Append ld.so.conf contents to the search path
  30582. - if test -f /etc/ld.so.conf; then
  30583. - 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' ' '`
  30584. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  30585. - fi
  30586. -
  30587. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  30588. - # powerpc, because MkLinux only supported shared libraries with the
  30589. - # GNU dynamic linker. Since this was broken with cross compilers,
  30590. - # most powerpc-linux boxes support dynamic linking these days and
  30591. - # people can always --disable-shared, the test was removed, and we
  30592. - # assume the GNU/Linux dynamic linker is in use.
  30593. - dynamic_linker='GNU/Linux ld.so'
  30594. - ;;
  30595. -
  30596. -netbsdelf*-gnu)
  30597. - version_type=linux
  30598. - need_lib_prefix=no
  30599. - need_version=no
  30600. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30601. - soname_spec='${libname}${release}${shared_ext}$major'
  30602. - shlibpath_var=LD_LIBRARY_PATH
  30603. - shlibpath_overrides_runpath=no
  30604. - hardcode_into_libs=yes
  30605. - dynamic_linker='NetBSD ld.elf_so'
  30606. - ;;
  30607. -
  30608. -knetbsd*-gnu)
  30609. - version_type=linux
  30610. - need_lib_prefix=no
  30611. - need_version=no
  30612. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30613. - soname_spec='${libname}${release}${shared_ext}$major'
  30614. - shlibpath_var=LD_LIBRARY_PATH
  30615. - shlibpath_overrides_runpath=no
  30616. - hardcode_into_libs=yes
  30617. - dynamic_linker='GNU ld.so'
  30618. - ;;
  30619. -
  30620. -netbsd*)
  30621. - version_type=sunos
  30622. - need_lib_prefix=no
  30623. - need_version=no
  30624. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30625. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30626. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30627. - dynamic_linker='NetBSD (a.out) ld.so'
  30628. - else
  30629. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30630. - soname_spec='${libname}${release}${shared_ext}$major'
  30631. - dynamic_linker='NetBSD ld.elf_so'
  30632. - fi
  30633. - shlibpath_var=LD_LIBRARY_PATH
  30634. - shlibpath_overrides_runpath=yes
  30635. - hardcode_into_libs=yes
  30636. - ;;
  30637. -
  30638. -newsos6)
  30639. - version_type=linux
  30640. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30641. - shlibpath_var=LD_LIBRARY_PATH
  30642. - shlibpath_overrides_runpath=yes
  30643. - ;;
  30644. -
  30645. -nto-qnx*)
  30646. - version_type=linux
  30647. - need_lib_prefix=no
  30648. - need_version=no
  30649. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30650. - soname_spec='${libname}${release}${shared_ext}$major'
  30651. - shlibpath_var=LD_LIBRARY_PATH
  30652. - shlibpath_overrides_runpath=yes
  30653. - ;;
  30654. -
  30655. -openbsd*)
  30656. - version_type=sunos
  30657. - sys_lib_dlsearch_path_spec="/usr/lib"
  30658. - need_lib_prefix=no
  30659. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  30660. - case $host_os in
  30661. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  30662. - *) need_version=no ;;
  30663. - esac
  30664. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30665. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30666. - shlibpath_var=LD_LIBRARY_PATH
  30667. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30668. - case $host_os in
  30669. - openbsd2.[89] | openbsd2.[89].*)
  30670. - shlibpath_overrides_runpath=no
  30671. - ;;
  30672. - *)
  30673. - shlibpath_overrides_runpath=yes
  30674. - ;;
  30675. - esac
  30676. - else
  30677. - shlibpath_overrides_runpath=yes
  30678. - fi
  30679. - ;;
  30680. -
  30681. -os2*)
  30682. - libname_spec='$name'
  30683. - shrext_cmds=".dll"
  30684. - need_lib_prefix=no
  30685. - library_names_spec='$libname${shared_ext} $libname.a'
  30686. - dynamic_linker='OS/2 ld.exe'
  30687. - shlibpath_var=LIBPATH
  30688. - ;;
  30689. -
  30690. -osf3* | osf4* | osf5*)
  30691. - version_type=osf
  30692. - need_lib_prefix=no
  30693. - need_version=no
  30694. - soname_spec='${libname}${release}${shared_ext}$major'
  30695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30696. - shlibpath_var=LD_LIBRARY_PATH
  30697. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30698. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30699. - ;;
  30700. -
  30701. -solaris*)
  30702. - version_type=linux
  30703. - need_lib_prefix=no
  30704. - need_version=no
  30705. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30706. - soname_spec='${libname}${release}${shared_ext}$major'
  30707. - shlibpath_var=LD_LIBRARY_PATH
  30708. - shlibpath_overrides_runpath=yes
  30709. - hardcode_into_libs=yes
  30710. - # ldd complains unless libraries are executable
  30711. - postinstall_cmds='chmod +x $lib'
  30712. - ;;
  30713. -
  30714. -sunos4*)
  30715. - version_type=sunos
  30716. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30717. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30718. - shlibpath_var=LD_LIBRARY_PATH
  30719. - shlibpath_overrides_runpath=yes
  30720. - if test "$with_gnu_ld" = yes; then
  30721. - need_lib_prefix=no
  30722. - fi
  30723. - need_version=yes
  30724. - ;;
  30725. -
  30726. -sysv4 | sysv4.3*)
  30727. - version_type=linux
  30728. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30729. - soname_spec='${libname}${release}${shared_ext}$major'
  30730. - shlibpath_var=LD_LIBRARY_PATH
  30731. - case $host_vendor in
  30732. - sni)
  30733. - shlibpath_overrides_runpath=no
  30734. - need_lib_prefix=no
  30735. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30736. - runpath_var=LD_RUN_PATH
  30737. - ;;
  30738. - siemens)
  30739. - need_lib_prefix=no
  30740. - ;;
  30741. - motorola)
  30742. - need_lib_prefix=no
  30743. - need_version=no
  30744. - shlibpath_overrides_runpath=no
  30745. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30746. - ;;
  30747. - esac
  30748. - ;;
  30749. -
  30750. -sysv4*MP*)
  30751. - if test -d /usr/nec ;then
  30752. - version_type=linux
  30753. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30754. - soname_spec='$libname${shared_ext}.$major'
  30755. - shlibpath_var=LD_LIBRARY_PATH
  30756. - fi
  30757. - ;;
  30758. -
  30759. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30760. - version_type=freebsd-elf
  30761. - need_lib_prefix=no
  30762. - need_version=no
  30763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30764. - soname_spec='${libname}${release}${shared_ext}$major'
  30765. - shlibpath_var=LD_LIBRARY_PATH
  30766. - hardcode_into_libs=yes
  30767. - if test "$with_gnu_ld" = yes; then
  30768. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30769. - shlibpath_overrides_runpath=no
  30770. - else
  30771. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30772. - shlibpath_overrides_runpath=yes
  30773. - case $host_os in
  30774. - sco3.2v5*)
  30775. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30776. - ;;
  30777. - esac
  30778. - fi
  30779. - sys_lib_dlsearch_path_spec='/usr/lib'
  30780. - ;;
  30781. -
  30782. -uts4*)
  30783. - version_type=linux
  30784. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30785. - soname_spec='${libname}${release}${shared_ext}$major'
  30786. - shlibpath_var=LD_LIBRARY_PATH
  30787. - ;;
  30788. -
  30789. -*)
  30790. - dynamic_linker=no
  30791. - ;;
  30792. -esac
  30793. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30794. -echo "${ECHO_T}$dynamic_linker" >&6
  30795. -test "$dynamic_linker" = no && can_build_shared=no
  30796. -
  30797. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30798. -if test "$GCC" = yes; then
  30799. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30800. -fi
  30801. -
  30802. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30803. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  30804. -hardcode_action_CXX=
  30805. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  30806. - test -n "$runpath_var_CXX" || \
  30807. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  30808. -
  30809. - # We can hardcode non-existant directories.
  30810. - if test "$hardcode_direct_CXX" != no &&
  30811. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30812. - # have to relink, otherwise we might link with an installed library
  30813. - # when we should be linking with a yet-to-be-installed one
  30814. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  30815. - test "$hardcode_minus_L_CXX" != no; then
  30816. - # Linking always hardcodes the temporary library directory.
  30817. - hardcode_action_CXX=relink
  30818. - else
  30819. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30820. - hardcode_action_CXX=immediate
  30821. - fi
  30822. -else
  30823. - # We cannot hardcode anything, or else we can only hardcode existing
  30824. - # directories.
  30825. - hardcode_action_CXX=unsupported
  30826. -fi
  30827. -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  30828. -echo "${ECHO_T}$hardcode_action_CXX" >&6
  30829. -
  30830. -if test "$hardcode_action_CXX" = relink; then
  30831. - # Fast installation is not supported
  30832. - enable_fast_install=no
  30833. -elif test "$shlibpath_overrides_runpath" = yes ||
  30834. - test "$enable_shared" = no; then
  30835. - # Fast installation is not necessary
  30836. - enable_fast_install=needless
  30837. -fi
  30838. -
  30839. -
  30840. -# The else clause should only fire when bootstrapping the
  30841. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30842. -# with your package, and you will get complaints that there are
  30843. -# no rules to generate ltmain.sh.
  30844. -if test -f "$ltmain"; then
  30845. - # See if we are running on zsh, and set the options which allow our commands through
  30846. - # without removal of \ escapes.
  30847. - if test -n "${ZSH_VERSION+set}" ; then
  30848. - setopt NO_GLOB_SUBST
  30849. - fi
  30850. - # Now quote all the things that may contain metacharacters while being
  30851. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30852. - # variables and quote the copies for generation of the libtool script.
  30853. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30854. - SED SHELL STRIP \
  30855. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30856. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30857. - deplibs_check_method reload_flag reload_cmds need_locks \
  30858. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30859. - lt_cv_sys_global_symbol_to_c_name_address \
  30860. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30861. - old_postinstall_cmds old_postuninstall_cmds \
  30862. - compiler_CXX \
  30863. - CC_CXX \
  30864. - LD_CXX \
  30865. - lt_prog_compiler_wl_CXX \
  30866. - lt_prog_compiler_pic_CXX \
  30867. - lt_prog_compiler_static_CXX \
  30868. - lt_prog_compiler_no_builtin_flag_CXX \
  30869. - export_dynamic_flag_spec_CXX \
  30870. - thread_safe_flag_spec_CXX \
  30871. - whole_archive_flag_spec_CXX \
  30872. - enable_shared_with_static_runtimes_CXX \
  30873. - old_archive_cmds_CXX \
  30874. - old_archive_from_new_cmds_CXX \
  30875. - predep_objects_CXX \
  30876. - postdep_objects_CXX \
  30877. - predeps_CXX \
  30878. - postdeps_CXX \
  30879. - compiler_lib_search_path_CXX \
  30880. - archive_cmds_CXX \
  30881. - archive_expsym_cmds_CXX \
  30882. - postinstall_cmds_CXX \
  30883. - postuninstall_cmds_CXX \
  30884. - old_archive_from_expsyms_cmds_CXX \
  30885. - allow_undefined_flag_CXX \
  30886. - no_undefined_flag_CXX \
  30887. - export_symbols_cmds_CXX \
  30888. - hardcode_libdir_flag_spec_CXX \
  30889. - hardcode_libdir_flag_spec_ld_CXX \
  30890. - hardcode_libdir_separator_CXX \
  30891. - hardcode_automatic_CXX \
  30892. - module_cmds_CXX \
  30893. - module_expsym_cmds_CXX \
  30894. - lt_cv_prog_compiler_c_o_CXX \
  30895. - exclude_expsyms_CXX \
  30896. - include_expsyms_CXX; do
  30897. -
  30898. - case $var in
  30899. - old_archive_cmds_CXX | \
  30900. - old_archive_from_new_cmds_CXX | \
  30901. - archive_cmds_CXX | \
  30902. - archive_expsym_cmds_CXX | \
  30903. - module_cmds_CXX | \
  30904. - module_expsym_cmds_CXX | \
  30905. - old_archive_from_expsyms_cmds_CXX | \
  30906. - export_symbols_cmds_CXX | \
  30907. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30908. - postinstall_cmds | postuninstall_cmds | \
  30909. - old_postinstall_cmds | old_postuninstall_cmds | \
  30910. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30911. - # Double-quote double-evaled strings.
  30912. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30913. - ;;
  30914. - *)
  30915. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30916. - ;;
  30917. - esac
  30918. - done
  30919. -
  30920. - case $lt_echo in
  30921. - *'\$0 --fallback-echo"')
  30922. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30923. - ;;
  30924. - esac
  30925. -
  30926. -cfgfile="$ofile"
  30927. -
  30928. - cat <<__EOF__ >> "$cfgfile"
  30929. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30930. -
  30931. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30932. -
  30933. -# Shell to use when invoking shell scripts.
  30934. -SHELL=$lt_SHELL
  30935. -
  30936. -# Whether or not to build shared libraries.
  30937. -build_libtool_libs=$enable_shared
  30938. -
  30939. -# Whether or not to build static libraries.
  30940. -build_old_libs=$enable_static
  30941. -
  30942. -# Whether or not to add -lc for building shared libraries.
  30943. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30944. -
  30945. -# Whether or not to disallow shared libs when runtime libs are static
  30946. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30947. -
  30948. -# Whether or not to optimize for fast installation.
  30949. -fast_install=$enable_fast_install
  30950. -
  30951. -# The host system.
  30952. -host_alias=$host_alias
  30953. -host=$host
  30954. -host_os=$host_os
  30955. -
  30956. -# The build system.
  30957. -build_alias=$build_alias
  30958. -build=$build
  30959. -build_os=$build_os
  30960. -
  30961. -# An echo program that does not interpret backslashes.
  30962. -echo=$lt_echo
  30963. -
  30964. -# The archiver.
  30965. -AR=$lt_AR
  30966. -AR_FLAGS=$lt_AR_FLAGS
  30967. -
  30968. -# A C compiler.
  30969. -LTCC=$lt_LTCC
  30970. -
  30971. -# LTCC compiler flags.
  30972. -LTCFLAGS=$lt_LTCFLAGS
  30973. -
  30974. -# A language-specific compiler.
  30975. -CC=$lt_compiler_CXX
  30976. -
  30977. -# Is the compiler the GNU C compiler?
  30978. -with_gcc=$GCC_CXX
  30979. -
  30980. -# An ERE matcher.
  30981. -EGREP=$lt_EGREP
  30982. -
  30983. -# The linker used to build libraries.
  30984. -LD=$lt_LD_CXX
  30985. -
  30986. -# Whether we need hard or soft links.
  30987. -LN_S=$lt_LN_S
  30988. -
  30989. -# A BSD-compatible nm program.
  30990. -NM=$lt_NM
  30991. -
  30992. -# A symbol stripping program
  30993. -STRIP=$lt_STRIP
  30994. -
  30995. -# Used to examine libraries when file_magic_cmd begins "file"
  30996. -MAGIC_CMD=$MAGIC_CMD
  30997. -
  30998. -# Used on cygwin: DLL creation program.
  30999. -DLLTOOL="$DLLTOOL"
  31000. -
  31001. -# Used on cygwin: object dumper.
  31002. -OBJDUMP="$OBJDUMP"
  31003. -
  31004. -# Used on cygwin: assembler.
  31005. -AS="$AS"
  31006. -
  31007. -# The name of the directory that contains temporary libtool files.
  31008. -objdir=$objdir
  31009. -
  31010. -# How to create reloadable object files.
  31011. -reload_flag=$lt_reload_flag
  31012. -reload_cmds=$lt_reload_cmds
  31013. -
  31014. -# How to pass a linker flag through the compiler.
  31015. -wl=$lt_lt_prog_compiler_wl_CXX
  31016. -
  31017. -# Object file suffix (normally "o").
  31018. -objext="$ac_objext"
  31019. -
  31020. -# Old archive suffix (normally "a").
  31021. -libext="$libext"
  31022. -
  31023. -# Shared library suffix (normally ".so").
  31024. -shrext_cmds='$shrext_cmds'
  31025. -
  31026. -# Executable file suffix (normally "").
  31027. -exeext="$exeext"
  31028. -
  31029. -# Additional compiler flags for building library objects.
  31030. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  31031. -pic_mode=$pic_mode
  31032. -
  31033. -# What is the maximum length of a command?
  31034. -max_cmd_len=$lt_cv_sys_max_cmd_len
  31035. -
  31036. -# Does compiler simultaneously support -c and -o options?
  31037. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  31038. -
  31039. -# Must we lock files when doing compilation?
  31040. -need_locks=$lt_need_locks
  31041. -
  31042. -# Do we need the lib prefix for modules?
  31043. -need_lib_prefix=$need_lib_prefix
  31044. -
  31045. -# Do we need a version for libraries?
  31046. -need_version=$need_version
  31047. -
  31048. -# Whether dlopen is supported.
  31049. -dlopen_support=$enable_dlopen
  31050. -
  31051. -# Whether dlopen of programs is supported.
  31052. -dlopen_self=$enable_dlopen_self
  31053. -
  31054. -# Whether dlopen of statically linked programs is supported.
  31055. -dlopen_self_static=$enable_dlopen_self_static
  31056. -
  31057. -# Compiler flag to prevent dynamic linking.
  31058. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  31059. -
  31060. -# Compiler flag to turn off builtin functions.
  31061. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  31062. -
  31063. -# Compiler flag to allow reflexive dlopens.
  31064. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  31065. -
  31066. -# Compiler flag to generate shared objects directly from archives.
  31067. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  31068. -
  31069. -# Compiler flag to generate thread-safe objects.
  31070. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  31071. -
  31072. -# Library versioning type.
  31073. -version_type=$version_type
  31074. -
  31075. -# Format of library name prefix.
  31076. -libname_spec=$lt_libname_spec
  31077. -
  31078. -# List of archive names. First name is the real one, the rest are links.
  31079. -# The last name is the one that the linker finds with -lNAME.
  31080. -library_names_spec=$lt_library_names_spec
  31081. -
  31082. -# The coded name of the library, if different from the real name.
  31083. -soname_spec=$lt_soname_spec
  31084. -
  31085. -# Commands used to build and install an old-style archive.
  31086. -RANLIB=$lt_RANLIB
  31087. -old_archive_cmds=$lt_old_archive_cmds_CXX
  31088. -old_postinstall_cmds=$lt_old_postinstall_cmds
  31089. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  31090. -
  31091. -# Create an old-style archive from a shared archive.
  31092. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  31093. -
  31094. -# Create a temporary old-style archive to link instead of a shared archive.
  31095. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  31096. -
  31097. -# Commands used to build and install a shared archive.
  31098. -archive_cmds=$lt_archive_cmds_CXX
  31099. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  31100. -postinstall_cmds=$lt_postinstall_cmds
  31101. -postuninstall_cmds=$lt_postuninstall_cmds
  31102. -
  31103. -# Commands used to build a loadable module (assumed same as above if empty)
  31104. -module_cmds=$lt_module_cmds_CXX
  31105. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  31106. -
  31107. -# Commands to strip libraries.
  31108. -old_striplib=$lt_old_striplib
  31109. -striplib=$lt_striplib
  31110. -
  31111. -# Dependencies to place before the objects being linked to create a
  31112. -# shared library.
  31113. -predep_objects=$lt_predep_objects_CXX
  31114. -
  31115. -# Dependencies to place after the objects being linked to create a
  31116. -# shared library.
  31117. -postdep_objects=$lt_postdep_objects_CXX
  31118. -
  31119. -# Dependencies to place before the objects being linked to create a
  31120. -# shared library.
  31121. -predeps=$lt_predeps_CXX
  31122. -
  31123. -# Dependencies to place after the objects being linked to create a
  31124. -# shared library.
  31125. -postdeps=$lt_postdeps_CXX
  31126. -
  31127. -# The library search path used internally by the compiler when linking
  31128. -# a shared library.
  31129. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  31130. -
  31131. -# Method to check whether dependent libraries are shared objects.
  31132. -deplibs_check_method=$lt_deplibs_check_method
  31133. -
  31134. -# Command to use when deplibs_check_method == file_magic.
  31135. -file_magic_cmd=$lt_file_magic_cmd
  31136. -
  31137. -# Flag that allows shared libraries with undefined symbols to be built.
  31138. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  31139. -
  31140. -# Flag that forces no undefined symbols.
  31141. -no_undefined_flag=$lt_no_undefined_flag_CXX
  31142. -
  31143. -# Commands used to finish a libtool library installation in a directory.
  31144. -finish_cmds=$lt_finish_cmds
  31145. -
  31146. -# Same as above, but a single script fragment to be evaled but not shown.
  31147. -finish_eval=$lt_finish_eval
  31148. -
  31149. -# Take the output of nm and produce a listing of raw symbols and C names.
  31150. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31151. -
  31152. -# Transform the output of nm in a proper C declaration
  31153. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31154. -
  31155. -# Transform the output of nm in a C name address pair
  31156. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31157. -
  31158. -# This is the shared library runtime path variable.
  31159. -runpath_var=$runpath_var
  31160. -
  31161. -# This is the shared library path variable.
  31162. -shlibpath_var=$shlibpath_var
  31163. -
  31164. -# Is shlibpath searched before the hard-coded library search path?
  31165. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31166. -
  31167. -# How to hardcode a shared library path into an executable.
  31168. -hardcode_action=$hardcode_action_CXX
  31169. -
  31170. -# Whether we should hardcode library paths into libraries.
  31171. -hardcode_into_libs=$hardcode_into_libs
  31172. -
  31173. -# Flag to hardcode \$libdir into a binary during linking.
  31174. -# This must work even if \$libdir does not exist.
  31175. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  31176. -
  31177. -# If ld is used when linking, flag to hardcode \$libdir into
  31178. -# a binary during linking. This must work even if \$libdir does
  31179. -# not exist.
  31180. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  31181. -
  31182. -# Whether we need a single -rpath flag with a separated argument.
  31183. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  31184. -
  31185. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31186. -# resulting binary.
  31187. -hardcode_direct=$hardcode_direct_CXX
  31188. -
  31189. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31190. -# resulting binary.
  31191. -hardcode_minus_L=$hardcode_minus_L_CXX
  31192. -
  31193. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31194. -# the resulting binary.
  31195. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  31196. -
  31197. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31198. -# and all subsequent libraries and executables linked against it.
  31199. -hardcode_automatic=$hardcode_automatic_CXX
  31200. -
  31201. -# Variables whose values should be saved in libtool wrapper scripts and
  31202. -# restored at relink time.
  31203. -variables_saved_for_relink="$variables_saved_for_relink"
  31204. -
  31205. -# Whether libtool must link a program against all its dependency libraries.
  31206. -link_all_deplibs=$link_all_deplibs_CXX
  31207. -
  31208. -# Compile-time system search path for libraries
  31209. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31210. -
  31211. -# Run-time system search path for libraries
  31212. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31213. -
  31214. -# Fix the shell variable \$srcfile for the compiler.
  31215. -fix_srcfile_path="$fix_srcfile_path_CXX"
  31216. -
  31217. -# Set to yes if exported symbols are required.
  31218. -always_export_symbols=$always_export_symbols_CXX
  31219. -
  31220. -# The commands to list exported symbols.
  31221. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  31222. -
  31223. -# The commands to extract the exported symbol list from a shared archive.
  31224. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31225. -
  31226. -# Symbols that should not be listed in the preloaded symbols.
  31227. -exclude_expsyms=$lt_exclude_expsyms_CXX
  31228. -
  31229. -# Symbols that must always be exported.
  31230. -include_expsyms=$lt_include_expsyms_CXX
  31231. -
  31232. -# ### END LIBTOOL TAG CONFIG: $tagname
  31233. -
  31234. -__EOF__
  31235. -
  31236. -
  31237. -else
  31238. - # If there is no Makefile yet, we rely on a make rule to execute
  31239. - # `config.status --recheck' to rerun these tests and create the
  31240. - # libtool script then.
  31241. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31242. - if test -f "$ltmain_in"; then
  31243. - test -f Makefile && make "$ltmain"
  31244. - fi
  31245. -fi
  31246. -
  31247. -
  31248. -ac_ext=c
  31249. -ac_cpp='$CPP $CPPFLAGS'
  31250. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31251. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31252. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31253. -
  31254. -CC=$lt_save_CC
  31255. -LDCXX=$LD
  31256. -LD=$lt_save_LD
  31257. -GCC=$lt_save_GCC
  31258. -with_gnu_ldcxx=$with_gnu_ld
  31259. -with_gnu_ld=$lt_save_with_gnu_ld
  31260. -lt_cv_path_LDCXX=$lt_cv_path_LD
  31261. -lt_cv_path_LD=$lt_save_path_LD
  31262. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  31263. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  31264. -
  31265. - else
  31266. - tagname=""
  31267. - fi
  31268. - ;;
  31269. -
  31270. - F77)
  31271. - if test -n "$F77" && test "X$F77" != "Xno"; then
  31272. -
  31273. -ac_ext=f
  31274. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  31275. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31276. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  31277. -
  31278. -
  31279. -archive_cmds_need_lc_F77=no
  31280. -allow_undefined_flag_F77=
  31281. -always_export_symbols_F77=no
  31282. -archive_expsym_cmds_F77=
  31283. -export_dynamic_flag_spec_F77=
  31284. -hardcode_direct_F77=no
  31285. -hardcode_libdir_flag_spec_F77=
  31286. -hardcode_libdir_flag_spec_ld_F77=
  31287. -hardcode_libdir_separator_F77=
  31288. -hardcode_minus_L_F77=no
  31289. -hardcode_automatic_F77=no
  31290. -module_cmds_F77=
  31291. -module_expsym_cmds_F77=
  31292. -link_all_deplibs_F77=unknown
  31293. -old_archive_cmds_F77=$old_archive_cmds
  31294. -no_undefined_flag_F77=
  31295. -whole_archive_flag_spec_F77=
  31296. -enable_shared_with_static_runtimes_F77=no
  31297. -
  31298. -# Source file extension for f77 test sources.
  31299. -ac_ext=f
  31300. -
  31301. -# Object file extension for compiled f77 test sources.
  31302. -objext=o
  31303. -objext_F77=$objext
  31304. -
  31305. -# Code to be used in simple compile tests
  31306. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  31307. -
  31308. -# Code to be used in simple link tests
  31309. -lt_simple_link_test_code=" program t\n end\n"
  31310. -
  31311. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31312. -
  31313. -# If no C compiler was specified, use CC.
  31314. -LTCC=${LTCC-"$CC"}
  31315. -
  31316. -# If no C compiler flags were specified, use CFLAGS.
  31317. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31318. -
  31319. -# Allow CC to be a program name with arguments.
  31320. -compiler=$CC
  31321. -
  31322. -
  31323. -# save warnings/boilerplate of simple test code
  31324. -ac_outfile=conftest.$ac_objext
  31325. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  31326. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31327. -_lt_compiler_boilerplate=`cat conftest.err`
  31328. -$rm conftest*
  31329. -
  31330. -ac_outfile=conftest.$ac_objext
  31331. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  31332. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31333. -_lt_linker_boilerplate=`cat conftest.err`
  31334. -$rm conftest*
  31335. -
  31336. -
  31337. -# Allow CC to be a program name with arguments.
  31338. -lt_save_CC="$CC"
  31339. -CC=${F77-"f77"}
  31340. -compiler=$CC
  31341. -compiler_F77=$CC
  31342. -for cc_temp in $compiler""; do
  31343. - case $cc_temp in
  31344. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31345. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31346. - \-*) ;;
  31347. - *) break;;
  31348. - esac
  31349. -done
  31350. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31351. -
  31352. -
  31353. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  31354. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  31355. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  31356. -echo "${ECHO_T}$can_build_shared" >&6
  31357. -
  31358. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  31359. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  31360. -test "$can_build_shared" = "no" && enable_shared=no
  31361. -
  31362. -# On AIX, shared libraries and static libraries use the same namespace, and
  31363. -# are all built from PIC.
  31364. -case $host_os in
  31365. -aix3*)
  31366. - test "$enable_shared" = yes && enable_static=no
  31367. - if test -n "$RANLIB"; then
  31368. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  31369. - postinstall_cmds='$RANLIB $lib'
  31370. - fi
  31371. - ;;
  31372. -aix4* | aix5*)
  31373. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  31374. - test "$enable_shared" = yes && enable_static=no
  31375. - fi
  31376. - ;;
  31377. -esac
  31378. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  31379. -echo "${ECHO_T}$enable_shared" >&6
  31380. -
  31381. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  31382. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  31383. -# Make sure either enable_shared or enable_static is yes.
  31384. -test "$enable_shared" = yes || enable_static=yes
  31385. -echo "$as_me:$LINENO: result: $enable_static" >&5
  31386. -echo "${ECHO_T}$enable_static" >&6
  31387. -
  31388. -GCC_F77="$G77"
  31389. -LD_F77="$LD"
  31390. -
  31391. -lt_prog_compiler_wl_F77=
  31392. -lt_prog_compiler_pic_F77=
  31393. -lt_prog_compiler_static_F77=
  31394. -
  31395. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31396. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  31397. -
  31398. - if test "$GCC" = yes; then
  31399. - lt_prog_compiler_wl_F77='-Wl,'
  31400. - lt_prog_compiler_static_F77='-static'
  31401. -
  31402. - case $host_os in
  31403. - aix*)
  31404. - # All AIX code is PIC.
  31405. - if test "$host_cpu" = ia64; then
  31406. - # AIX 5 now supports IA64 processor
  31407. - lt_prog_compiler_static_F77='-Bstatic'
  31408. - fi
  31409. - ;;
  31410. -
  31411. - amigaos*)
  31412. - # FIXME: we need at least 68020 code to build shared libraries, but
  31413. - # adding the `-m68020' flag to GCC prevents building anything better,
  31414. - # like `-m68040'.
  31415. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  31416. - ;;
  31417. -
  31418. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31419. - # PIC is the default for these OSes.
  31420. - ;;
  31421. -
  31422. - mingw* | pw32* | os2*)
  31423. - # This hack is so that the source file can tell whether it is being
  31424. - # built for inclusion in a dll (and should export symbols for example).
  31425. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31426. - ;;
  31427. -
  31428. - darwin* | rhapsody*)
  31429. - # PIC is the default on this platform
  31430. - # Common symbols not allowed in MH_DYLIB files
  31431. - lt_prog_compiler_pic_F77='-fno-common'
  31432. - ;;
  31433. -
  31434. - interix3*)
  31435. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  31436. - # Instead, we relocate shared libraries at runtime.
  31437. - ;;
  31438. -
  31439. - msdosdjgpp*)
  31440. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  31441. - # on systems that don't support them.
  31442. - lt_prog_compiler_can_build_shared_F77=no
  31443. - enable_shared=no
  31444. - ;;
  31445. -
  31446. - sysv4*MP*)
  31447. - if test -d /usr/nec; then
  31448. - lt_prog_compiler_pic_F77=-Kconform_pic
  31449. - fi
  31450. - ;;
  31451. -
  31452. - hpux*)
  31453. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31454. - # not for PA HP-UX.
  31455. - case $host_cpu in
  31456. - hppa*64*|ia64*)
  31457. - # +Z the default
  31458. - ;;
  31459. - *)
  31460. - lt_prog_compiler_pic_F77='-fPIC'
  31461. - ;;
  31462. - esac
  31463. - ;;
  31464. -
  31465. - *)
  31466. - lt_prog_compiler_pic_F77='-fPIC'
  31467. - ;;
  31468. - esac
  31469. - else
  31470. - # PORTME Check for flag to pass linker flags through the system compiler.
  31471. - case $host_os in
  31472. - aix*)
  31473. - lt_prog_compiler_wl_F77='-Wl,'
  31474. - if test "$host_cpu" = ia64; then
  31475. - # AIX 5 now supports IA64 processor
  31476. - lt_prog_compiler_static_F77='-Bstatic'
  31477. - else
  31478. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  31479. - fi
  31480. - ;;
  31481. - darwin*)
  31482. - # PIC is the default on this platform
  31483. - # Common symbols not allowed in MH_DYLIB files
  31484. - case $cc_basename in
  31485. - xlc*)
  31486. - lt_prog_compiler_pic_F77='-qnocommon'
  31487. - lt_prog_compiler_wl_F77='-Wl,'
  31488. - ;;
  31489. - esac
  31490. - ;;
  31491. -
  31492. - mingw* | pw32* | os2*)
  31493. - # This hack is so that the source file can tell whether it is being
  31494. - # built for inclusion in a dll (and should export symbols for example).
  31495. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31496. - ;;
  31497. -
  31498. - hpux9* | hpux10* | hpux11*)
  31499. - lt_prog_compiler_wl_F77='-Wl,'
  31500. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31501. - # not for PA HP-UX.
  31502. - case $host_cpu in
  31503. - hppa*64*|ia64*)
  31504. - # +Z the default
  31505. - ;;
  31506. - *)
  31507. - lt_prog_compiler_pic_F77='+Z'
  31508. - ;;
  31509. - esac
  31510. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  31511. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  31512. - ;;
  31513. -
  31514. - irix5* | irix6* | nonstopux*)
  31515. - lt_prog_compiler_wl_F77='-Wl,'
  31516. - # PIC (with -KPIC) is the default.
  31517. - lt_prog_compiler_static_F77='-non_shared'
  31518. - ;;
  31519. -
  31520. - newsos6)
  31521. - lt_prog_compiler_pic_F77='-KPIC'
  31522. - lt_prog_compiler_static_F77='-Bstatic'
  31523. - ;;
  31524. -
  31525. - linux*)
  31526. - case $cc_basename in
  31527. - icc* | ecc*)
  31528. - lt_prog_compiler_wl_F77='-Wl,'
  31529. - lt_prog_compiler_pic_F77='-KPIC'
  31530. - lt_prog_compiler_static_F77='-static'
  31531. - ;;
  31532. - pgcc* | pgf77* | pgf90* | pgf95*)
  31533. - # Portland Group compilers (*not* the Pentium gcc compiler,
  31534. - # which looks to be a dead project)
  31535. - lt_prog_compiler_wl_F77='-Wl,'
  31536. - lt_prog_compiler_pic_F77='-fpic'
  31537. - lt_prog_compiler_static_F77='-Bstatic'
  31538. - ;;
  31539. - ccc*)
  31540. - lt_prog_compiler_wl_F77='-Wl,'
  31541. - # All Alpha code is PIC.
  31542. - lt_prog_compiler_static_F77='-non_shared'
  31543. - ;;
  31544. - esac
  31545. - ;;
  31546. -
  31547. - osf3* | osf4* | osf5*)
  31548. - lt_prog_compiler_wl_F77='-Wl,'
  31549. - # All OSF/1 code is PIC.
  31550. - lt_prog_compiler_static_F77='-non_shared'
  31551. - ;;
  31552. -
  31553. - solaris*)
  31554. - lt_prog_compiler_pic_F77='-KPIC'
  31555. - lt_prog_compiler_static_F77='-Bstatic'
  31556. - case $cc_basename in
  31557. - f77* | f90* | f95*)
  31558. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  31559. - *)
  31560. - lt_prog_compiler_wl_F77='-Wl,';;
  31561. - esac
  31562. - ;;
  31563. -
  31564. - sunos4*)
  31565. - lt_prog_compiler_wl_F77='-Qoption ld '
  31566. - lt_prog_compiler_pic_F77='-PIC'
  31567. - lt_prog_compiler_static_F77='-Bstatic'
  31568. - ;;
  31569. -
  31570. - sysv4 | sysv4.2uw2* | sysv4.3*)
  31571. - lt_prog_compiler_wl_F77='-Wl,'
  31572. - lt_prog_compiler_pic_F77='-KPIC'
  31573. - lt_prog_compiler_static_F77='-Bstatic'
  31574. - ;;
  31575. -
  31576. - sysv4*MP*)
  31577. - if test -d /usr/nec ;then
  31578. - lt_prog_compiler_pic_F77='-Kconform_pic'
  31579. - lt_prog_compiler_static_F77='-Bstatic'
  31580. - fi
  31581. - ;;
  31582. -
  31583. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31584. - lt_prog_compiler_wl_F77='-Wl,'
  31585. - lt_prog_compiler_pic_F77='-KPIC'
  31586. - lt_prog_compiler_static_F77='-Bstatic'
  31587. - ;;
  31588. -
  31589. - unicos*)
  31590. - lt_prog_compiler_wl_F77='-Wl,'
  31591. - lt_prog_compiler_can_build_shared_F77=no
  31592. - ;;
  31593. -
  31594. - uts4*)
  31595. - lt_prog_compiler_pic_F77='-pic'
  31596. - lt_prog_compiler_static_F77='-Bstatic'
  31597. - ;;
  31598. -
  31599. - *)
  31600. - lt_prog_compiler_can_build_shared_F77=no
  31601. - ;;
  31602. - esac
  31603. - fi
  31604. -
  31605. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  31606. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  31607. -
  31608. -#
  31609. -# Check to make sure the PIC flag actually works.
  31610. -#
  31611. -if test -n "$lt_prog_compiler_pic_F77"; then
  31612. -
  31613. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  31614. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  31615. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  31616. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31617. -else
  31618. - lt_prog_compiler_pic_works_F77=no
  31619. - ac_outfile=conftest.$ac_objext
  31620. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31621. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  31622. - # Insert the option either (1) after the last *FLAGS variable, or
  31623. - # (2) before a word containing "conftest.", or (3) at the end.
  31624. - # Note that $ac_compile itself does not contain backslashes and begins
  31625. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31626. - # The option is referenced via a variable to avoid confusing sed.
  31627. - lt_compile=`echo "$ac_compile" | $SED \
  31628. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31629. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31630. - -e 's:$: $lt_compiler_flag:'`
  31631. - (eval echo "\"\$as_me:13259: $lt_compile\"" >&5)
  31632. - (eval "$lt_compile" 2>conftest.err)
  31633. - ac_status=$?
  31634. - cat conftest.err >&5
  31635. - echo "$as_me:13263: \$? = $ac_status" >&5
  31636. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31637. - # The compiler can only warn and ignore the option if not recognized
  31638. - # So say no if there are warnings other than the usual output.
  31639. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31640. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31641. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31642. - lt_prog_compiler_pic_works_F77=yes
  31643. - fi
  31644. - fi
  31645. - $rm conftest*
  31646. -
  31647. -fi
  31648. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  31649. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  31650. -
  31651. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  31652. - case $lt_prog_compiler_pic_F77 in
  31653. - "" | " "*) ;;
  31654. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  31655. - esac
  31656. -else
  31657. - lt_prog_compiler_pic_F77=
  31658. - lt_prog_compiler_can_build_shared_F77=no
  31659. -fi
  31660. -
  31661. -fi
  31662. -case $host_os in
  31663. - # For platforms which do not support PIC, -DPIC is meaningless:
  31664. - *djgpp*)
  31665. - lt_prog_compiler_pic_F77=
  31666. - ;;
  31667. - *)
  31668. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  31669. - ;;
  31670. -esac
  31671. -
  31672. -#
  31673. -# Check to make sure the static flag actually works.
  31674. -#
  31675. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  31676. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31677. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  31678. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  31679. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31680. -else
  31681. - lt_prog_compiler_static_works_F77=no
  31682. - save_LDFLAGS="$LDFLAGS"
  31683. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31684. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  31685. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31686. - # The linker can only warn and ignore the option if not recognized
  31687. - # So say no if there are warnings
  31688. - if test -s conftest.err; then
  31689. - # Append any errors to the config.log.
  31690. - cat conftest.err 1>&5
  31691. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31692. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31693. - if diff conftest.exp conftest.er2 >/dev/null; then
  31694. - lt_prog_compiler_static_works_F77=yes
  31695. - fi
  31696. - else
  31697. - lt_prog_compiler_static_works_F77=yes
  31698. - fi
  31699. - fi
  31700. - $rm conftest*
  31701. - LDFLAGS="$save_LDFLAGS"
  31702. -
  31703. -fi
  31704. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  31705. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  31706. -
  31707. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  31708. - :
  31709. -else
  31710. - lt_prog_compiler_static_F77=
  31711. -fi
  31712. +# Sed substitution to delay expansion of an escaped single quote.
  31713. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  31714. +# Sed substitution to avoid accidental globbing in evaled expressions
  31715. +no_glob_subst='s/\*/\\\*/g'
  31716. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31717. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  31718. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  31719. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31720. -else
  31721. - lt_cv_prog_compiler_c_o_F77=no
  31722. - $rm -r conftest 2>/dev/null
  31723. - mkdir conftest
  31724. - cd conftest
  31725. - mkdir out
  31726. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31727. -
  31728. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31729. - # Insert the option either (1) after the last *FLAGS variable, or
  31730. - # (2) before a word containing "conftest.", or (3) at the end.
  31731. - # Note that $ac_compile itself does not contain backslashes and begins
  31732. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31733. - lt_compile=`echo "$ac_compile" | $SED \
  31734. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31735. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31736. - -e 's:$: $lt_compiler_flag:'`
  31737. - (eval echo "\"\$as_me:13363: $lt_compile\"" >&5)
  31738. - (eval "$lt_compile" 2>out/conftest.err)
  31739. - ac_status=$?
  31740. - cat out/conftest.err >&5
  31741. - echo "$as_me:13367: \$? = $ac_status" >&5
  31742. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31743. - then
  31744. - # The compiler can only warn and ignore the option if not recognized
  31745. - # So say no if there are warnings
  31746. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31747. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31748. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31749. - lt_cv_prog_compiler_c_o_F77=yes
  31750. - fi
  31751. - fi
  31752. - chmod u+w . 2>&5
  31753. - $rm conftest*
  31754. - # SGI C++ compiler will create directory out/ii_files/ for
  31755. - # template instantiation
  31756. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31757. - $rm out/* && rmdir out
  31758. - cd ..
  31759. - rmdir conftest
  31760. - $rm conftest*
  31761. +# Global variables:
  31762. +ofile=libtool
  31763. +can_build_shared=yes
  31764. -fi
  31765. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  31766. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  31767. +# All known linkers require a `.a' archive for static linking (except MSVC,
  31768. +# which needs '.lib').
  31769. +libext=a
  31770. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  31771. -hard_links="nottested"
  31772. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  31773. - # do not overwrite the value of need_locks provided by the user
  31774. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31775. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  31776. - hard_links=yes
  31777. - $rm conftest*
  31778. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31779. - touch conftest.a
  31780. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31781. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31782. - echo "$as_me:$LINENO: result: $hard_links" >&5
  31783. -echo "${ECHO_T}$hard_links" >&6
  31784. - if test "$hard_links" = no; then
  31785. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31786. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31787. - need_locks=warn
  31788. - fi
  31789. -else
  31790. - need_locks=no
  31791. -fi
  31792. +old_CC="$CC"
  31793. +old_CFLAGS="$CFLAGS"
  31794. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31795. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  31796. +# Set sane defaults for various variables
  31797. +test -z "$CC" && CC=cc
  31798. +test -z "$LTCC" && LTCC=$CC
  31799. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  31800. +test -z "$LD" && LD=ld
  31801. +test -z "$ac_objext" && ac_objext=o
  31802. - runpath_var=
  31803. - allow_undefined_flag_F77=
  31804. - enable_shared_with_static_runtimes_F77=no
  31805. - archive_cmds_F77=
  31806. - archive_expsym_cmds_F77=
  31807. - old_archive_From_new_cmds_F77=
  31808. - old_archive_from_expsyms_cmds_F77=
  31809. - export_dynamic_flag_spec_F77=
  31810. - whole_archive_flag_spec_F77=
  31811. - thread_safe_flag_spec_F77=
  31812. - hardcode_libdir_flag_spec_F77=
  31813. - hardcode_libdir_flag_spec_ld_F77=
  31814. - hardcode_libdir_separator_F77=
  31815. - hardcode_direct_F77=no
  31816. - hardcode_minus_L_F77=no
  31817. - hardcode_shlibpath_var_F77=unsupported
  31818. - link_all_deplibs_F77=unknown
  31819. - hardcode_automatic_F77=no
  31820. - module_cmds_F77=
  31821. - module_expsym_cmds_F77=
  31822. - always_export_symbols_F77=no
  31823. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31824. - # include_expsyms should be a list of space-separated symbols to be *always*
  31825. - # included in the symbol list
  31826. - include_expsyms_F77=
  31827. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31828. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31829. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31830. - # as well as any symbol that contains `d'.
  31831. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  31832. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31833. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31834. - # the symbol is explicitly referenced. Since portable code cannot
  31835. - # rely on this symbol name, it's probably fine to never include it in
  31836. - # preloaded symbol tables.
  31837. - extract_expsyms_cmds=
  31838. - # Just being paranoid about ensuring that cc_basename is set.
  31839. - for cc_temp in $compiler""; do
  31840. +for cc_temp in $compiler""; do
  31841. case $cc_temp in
  31842. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31843. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31844. @@ -13460,3588 +7106,2073 @@
  31845. *) break;;
  31846. esac
  31847. done
  31848. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31849. -
  31850. - case $host_os in
  31851. - cygwin* | mingw* | pw32*)
  31852. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31853. - # When not using gcc, we currently assume that we are using
  31854. - # Microsoft Visual C++.
  31855. - if test "$GCC" != yes; then
  31856. - with_gnu_ld=no
  31857. - fi
  31858. - ;;
  31859. - interix*)
  31860. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31861. - with_gnu_ld=yes
  31862. - ;;
  31863. - openbsd*)
  31864. - with_gnu_ld=no
  31865. - ;;
  31866. - esac
  31867. -
  31868. - ld_shlibs_F77=yes
  31869. - if test "$with_gnu_ld" = yes; then
  31870. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31871. - wlarc='${wl}'
  31872. -
  31873. - # Set some defaults for GNU ld with shared library support. These
  31874. - # are reset later if shared libraries are not supported. Putting them
  31875. - # here allows them to be overridden if necessary.
  31876. - runpath_var=LD_RUN_PATH
  31877. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  31878. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  31879. - # ancient GNU ld didn't support --whole-archive et. al.
  31880. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31881. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31882. - else
  31883. - whole_archive_flag_spec_F77=
  31884. - fi
  31885. - supports_anon_versioning=no
  31886. - case `$LD -v 2>/dev/null` in
  31887. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31888. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31889. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31890. - *\ 2.11.*) ;; # other 2.11 versions
  31891. - *) supports_anon_versioning=yes ;;
  31892. - esac
  31893. -
  31894. - # See if GNU ld supports shared libraries.
  31895. - case $host_os in
  31896. - aix3* | aix4* | aix5*)
  31897. - # On AIX/PPC, the GNU linker is very broken
  31898. - if test "$host_cpu" != ia64; then
  31899. - ld_shlibs_F77=no
  31900. - cat <<EOF 1>&2
  31901. -
  31902. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31903. -*** to be unable to reliably create shared libraries on AIX.
  31904. -*** Therefore, libtool is disabling shared libraries support. If you
  31905. -*** really care for shared libraries, you may want to modify your PATH
  31906. -*** so that a non-GNU linker is found, and then restart.
  31907. -
  31908. -EOF
  31909. - fi
  31910. - ;;
  31911. -
  31912. - amigaos*)
  31913. - archive_cmds_F77='$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)'
  31914. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31915. - hardcode_minus_L_F77=yes
  31916. -
  31917. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31918. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31919. - # to version 4, is to share data among multiple programs linked
  31920. - # with the same dynamic library. Since this doesn't match the
  31921. - # behavior of shared libraries on other platforms, we can't use
  31922. - # them.
  31923. - ld_shlibs_F77=no
  31924. - ;;
  31925. -
  31926. - beos*)
  31927. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31928. - allow_undefined_flag_F77=unsupported
  31929. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31930. - # support --undefined. This deserves some investigation. FIXME
  31931. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31932. - else
  31933. - ld_shlibs_F77=no
  31934. - fi
  31935. - ;;
  31936. -
  31937. - cygwin* | mingw* | pw32*)
  31938. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  31939. - # as there is no search path for DLLs.
  31940. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31941. - allow_undefined_flag_F77=unsupported
  31942. - always_export_symbols_F77=no
  31943. - enable_shared_with_static_runtimes_F77=yes
  31944. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  31945. -
  31946. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31947. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31948. - # If the export-symbols file already is a .def file (1st line
  31949. - # is EXPORTS), use it as is; otherwise, prepend...
  31950. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31951. - cp $export_symbols $output_objdir/$soname.def;
  31952. - else
  31953. - echo EXPORTS > $output_objdir/$soname.def;
  31954. - cat $export_symbols >> $output_objdir/$soname.def;
  31955. - fi~
  31956. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31957. - else
  31958. - ld_shlibs_F77=no
  31959. - fi
  31960. - ;;
  31961. -
  31962. - interix3*)
  31963. - hardcode_direct_F77=no
  31964. - hardcode_shlibpath_var_F77=no
  31965. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31966. - export_dynamic_flag_spec_F77='${wl}-E'
  31967. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31968. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31969. - # default) and relocated if they conflict, which is a slow very memory
  31970. - # consuming and fragmenting process. To avoid this, we pick a random,
  31971. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31972. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31973. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31974. - archive_expsym_cmds_F77='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'
  31975. - ;;
  31976. -
  31977. - linux*)
  31978. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31979. - tmp_addflag=
  31980. - case $cc_basename,$host_cpu in
  31981. - pgcc*) # Portland Group C compiler
  31982. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31983. - tmp_addflag=' $pic_flag'
  31984. - ;;
  31985. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31986. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31987. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31988. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31989. - tmp_addflag=' -i_dynamic' ;;
  31990. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31991. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31992. - ifc* | ifort*) # Intel Fortran compiler
  31993. - tmp_addflag=' -nofor_main' ;;
  31994. - esac
  31995. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31996. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31997. - if test $supports_anon_versioning = yes; then
  31998. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  31999. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32000. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  32001. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32002. - fi
  32003. - link_all_deplibs_F77=no
  32004. - else
  32005. - ld_shlibs_F77=no
  32006. - fi
  32007. - ;;
  32008. -
  32009. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  32010. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32011. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  32012. - wlarc=
  32013. - else
  32014. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32015. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32016. - fi
  32017. - ;;
  32018. -
  32019. - solaris*)
  32020. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  32021. - ld_shlibs_F77=no
  32022. - cat <<EOF 1>&2
  32023. -
  32024. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  32025. -*** create shared libraries on Solaris systems. Therefore, libtool
  32026. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32027. -*** binutils to release 2.9.1 or newer. Another option is to modify
  32028. -*** your PATH or compiler configuration so that the native linker is
  32029. -*** used, and then restart.
  32030. -
  32031. -EOF
  32032. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32033. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32034. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32035. - else
  32036. - ld_shlibs_F77=no
  32037. - fi
  32038. - ;;
  32039. -
  32040. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  32041. - case `$LD -v 2>&1` in
  32042. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  32043. - ld_shlibs_F77=no
  32044. - cat <<_LT_EOF 1>&2
  32045. -
  32046. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  32047. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  32048. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32049. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  32050. -*** your PATH or compiler configuration so that the native linker is
  32051. -*** used, and then restart.
  32052. -_LT_EOF
  32053. - ;;
  32054. - *)
  32055. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32056. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  32057. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  32058. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  32059. +# Only perform the check for file, if the check method requires it
  32060. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  32061. +case $deplibs_check_method in
  32062. +file_magic*)
  32063. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  32064. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  32065. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  32066. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  32067. + $as_echo_n "(cached) " >&6
  32068. +else
  32069. + case $MAGIC_CMD in
  32070. +[\\/*] | ?:[\\/]*)
  32071. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  32072. + ;;
  32073. +*)
  32074. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  32075. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  32076. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  32077. + for ac_dir in $ac_dummy; do
  32078. + IFS="$lt_save_ifs"
  32079. + test -z "$ac_dir" && ac_dir=.
  32080. + if test -f $ac_dir/${ac_tool_prefix}file; then
  32081. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  32082. + if test -n "$file_magic_test_file"; then
  32083. + case $deplibs_check_method in
  32084. + "file_magic "*)
  32085. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  32086. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32087. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  32088. + $EGREP "$file_magic_regex" > /dev/null; then
  32089. + :
  32090. else
  32091. - ld_shlibs_F77=no
  32092. - fi
  32093. - ;;
  32094. - esac
  32095. - ;;
  32096. + cat <<_LT_EOF 1>&2
  32097. - sunos4*)
  32098. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32099. - wlarc=
  32100. - hardcode_direct_F77=yes
  32101. - hardcode_shlibpath_var_F77=no
  32102. - ;;
  32103. +*** Warning: the command libtool uses to detect shared libraries,
  32104. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  32105. +*** The result is that libtool may fail to recognize shared libraries
  32106. +*** as such. This will affect the creation of libtool libraries that
  32107. +*** depend on shared libraries, but programs linked with such libtool
  32108. +*** libraries will work regardless of this problem. Nevertheless, you
  32109. +*** may want to report the problem to your system manager and/or to
  32110. +*** bug-libtool@gnu.org
  32111. - *)
  32112. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32113. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32114. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32115. - else
  32116. - ld_shlibs_F77=no
  32117. +_LT_EOF
  32118. + fi ;;
  32119. + esac
  32120. fi
  32121. - ;;
  32122. - esac
  32123. -
  32124. - if test "$ld_shlibs_F77" = no; then
  32125. - runpath_var=
  32126. - hardcode_libdir_flag_spec_F77=
  32127. - export_dynamic_flag_spec_F77=
  32128. - whole_archive_flag_spec_F77=
  32129. + break
  32130. fi
  32131. - else
  32132. - # PORTME fill in a description of your system's linker (not GNU ld)
  32133. - case $host_os in
  32134. - aix3*)
  32135. - allow_undefined_flag_F77=unsupported
  32136. - always_export_symbols_F77=yes
  32137. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  32138. - # Note: this linker hardcodes the directories in LIBPATH if there
  32139. - # are no directories specified by -L.
  32140. - hardcode_minus_L_F77=yes
  32141. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  32142. - # Neither direct hardcoding nor static linking is supported with a
  32143. - # broken collect2.
  32144. - hardcode_direct_F77=unsupported
  32145. - fi
  32146. - ;;
  32147. + done
  32148. + IFS="$lt_save_ifs"
  32149. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  32150. + ;;
  32151. +esac
  32152. +fi
  32153. - aix4* | aix5*)
  32154. - if test "$host_cpu" = ia64; then
  32155. - # On IA64, the linker does run time linking by default, so we don't
  32156. - # have to do anything special.
  32157. - aix_use_runtimelinking=no
  32158. - exp_sym_flag='-Bexport'
  32159. - no_entry_flag=""
  32160. - else
  32161. - # If we're using GNU nm, then we don't want the "-C" option.
  32162. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32163. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32164. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  32165. - else
  32166. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  32167. - fi
  32168. - aix_use_runtimelinking=no
  32169. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32170. +if test -n "$MAGIC_CMD"; then
  32171. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  32172. +$as_echo "$MAGIC_CMD" >&6; }
  32173. +else
  32174. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32175. +$as_echo "no" >&6; }
  32176. +fi
  32177. - # Test if we are trying to use run time linking or normal
  32178. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  32179. - # need to do runtime linking.
  32180. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  32181. - for ld_flag in $LDFLAGS; do
  32182. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  32183. - aix_use_runtimelinking=yes
  32184. - break
  32185. - fi
  32186. - done
  32187. - ;;
  32188. - esac
  32189. - exp_sym_flag='-bexport'
  32190. - no_entry_flag='-bnoentry'
  32191. - fi
  32192. - # When large executables or shared objects are built, AIX ld can
  32193. - # have problems creating the table of contents. If linking a library
  32194. - # or program results in "error TOC overflow" add -mminimal-toc to
  32195. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  32196. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  32197. - archive_cmds_F77=''
  32198. - hardcode_direct_F77=yes
  32199. - hardcode_libdir_separator_F77=':'
  32200. - link_all_deplibs_F77=yes
  32201. - if test "$GCC" = yes; then
  32202. - case $host_os in aix4.[012]|aix4.[012].*)
  32203. - # We only want to do this on AIX 4.2 and lower, the check
  32204. - # below for broken collect2 doesn't work under 4.3+
  32205. - collect2name=`${CC} -print-prog-name=collect2`
  32206. - if test -f "$collect2name" && \
  32207. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32208. - then
  32209. - # We have reworked collect2
  32210. - hardcode_direct_F77=yes
  32211. - else
  32212. - # We have old collect2
  32213. - hardcode_direct_F77=unsupported
  32214. - # It fails to find uninstalled libraries when the uninstalled
  32215. - # path is not listed in the libpath. Setting hardcode_minus_L
  32216. - # to unsupported forces relinking
  32217. - hardcode_minus_L_F77=yes
  32218. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32219. - hardcode_libdir_separator_F77=
  32220. - fi
  32221. - ;;
  32222. - esac
  32223. - shared_flag='-shared'
  32224. - if test "$aix_use_runtimelinking" = yes; then
  32225. - shared_flag="$shared_flag "'${wl}-G'
  32226. - fi
  32227. - else
  32228. - # not using gcc
  32229. - if test "$host_cpu" = ia64; then
  32230. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32231. - # chokes on -Wl,-G. The following line is correct:
  32232. - shared_flag='-G'
  32233. - else
  32234. - if test "$aix_use_runtimelinking" = yes; then
  32235. - shared_flag='${wl}-G'
  32236. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  32237. + if test -n "$ac_tool_prefix"; then
  32238. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  32239. +$as_echo_n "checking for file... " >&6; }
  32240. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  32241. + $as_echo_n "(cached) " >&6
  32242. +else
  32243. + case $MAGIC_CMD in
  32244. +[\\/*] | ?:[\\/]*)
  32245. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  32246. + ;;
  32247. +*)
  32248. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  32249. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  32250. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  32251. + for ac_dir in $ac_dummy; do
  32252. + IFS="$lt_save_ifs"
  32253. + test -z "$ac_dir" && ac_dir=.
  32254. + if test -f $ac_dir/file; then
  32255. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  32256. + if test -n "$file_magic_test_file"; then
  32257. + case $deplibs_check_method in
  32258. + "file_magic "*)
  32259. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  32260. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32261. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  32262. + $EGREP "$file_magic_regex" > /dev/null; then
  32263. + :
  32264. else
  32265. - shared_flag='${wl}-bM:SRE'
  32266. - fi
  32267. - fi
  32268. - fi
  32269. + cat <<_LT_EOF 1>&2
  32270. - # It seems that -bexpall does not export symbols beginning with
  32271. - # underscore (_), so it is better to generate a list of symbols to export.
  32272. - always_export_symbols_F77=yes
  32273. - if test "$aix_use_runtimelinking" = yes; then
  32274. - # Warning - without using the other runtime loading flags (-brtl),
  32275. - # -berok will link without error, but may produce a broken library.
  32276. - allow_undefined_flag_F77='-berok'
  32277. - # Determine the default libpath from the value encoded in an empty executable.
  32278. - cat >conftest.$ac_ext <<_ACEOF
  32279. - program main
  32280. +*** Warning: the command libtool uses to detect shared libraries,
  32281. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  32282. +*** The result is that libtool may fail to recognize shared libraries
  32283. +*** as such. This will affect the creation of libtool libraries that
  32284. +*** depend on shared libraries, but programs linked with such libtool
  32285. +*** libraries will work regardless of this problem. Nevertheless, you
  32286. +*** may want to report the problem to your system manager and/or to
  32287. +*** bug-libtool@gnu.org
  32288. - end
  32289. -_ACEOF
  32290. -rm -f conftest.$ac_objext conftest$ac_exeext
  32291. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32292. - (eval $ac_link) 2>conftest.er1
  32293. - ac_status=$?
  32294. - grep -v '^ *+' conftest.er1 >conftest.err
  32295. - rm -f conftest.er1
  32296. - cat conftest.err >&5
  32297. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32298. - (exit $ac_status); } &&
  32299. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  32300. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32301. - (eval $ac_try) 2>&5
  32302. - ac_status=$?
  32303. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32304. - (exit $ac_status); }; } &&
  32305. - { ac_try='test -s conftest$ac_exeext'
  32306. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32307. - (eval $ac_try) 2>&5
  32308. - ac_status=$?
  32309. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32310. - (exit $ac_status); }; }; then
  32311. +_LT_EOF
  32312. + fi ;;
  32313. + esac
  32314. + fi
  32315. + break
  32316. + fi
  32317. + done
  32318. + IFS="$lt_save_ifs"
  32319. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  32320. + ;;
  32321. +esac
  32322. +fi
  32323. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32324. -}'`
  32325. -# Check for a 64-bit object if we didn't find anything.
  32326. -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; }
  32327. -}'`; fi
  32328. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32329. +if test -n "$MAGIC_CMD"; then
  32330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  32331. +$as_echo "$MAGIC_CMD" >&6; }
  32332. else
  32333. - echo "$as_me: failed program was:" >&5
  32334. -sed 's/^/| /' conftest.$ac_ext >&5
  32335. -
  32336. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32337. +$as_echo "no" >&6; }
  32338. fi
  32339. -rm -f conftest.err conftest.$ac_objext \
  32340. - conftest$ac_exeext conftest.$ac_ext
  32341. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32342. -
  32343. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32344. - archive_expsym_cmds_F77="\$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"
  32345. - else
  32346. - if test "$host_cpu" = ia64; then
  32347. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  32348. - allow_undefined_flag_F77="-z nodefs"
  32349. - archive_expsym_cmds_F77="\$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"
  32350. - else
  32351. - # Determine the default libpath from the value encoded in an empty executable.
  32352. - cat >conftest.$ac_ext <<_ACEOF
  32353. - program main
  32354. -
  32355. - end
  32356. -_ACEOF
  32357. -rm -f conftest.$ac_objext conftest$ac_exeext
  32358. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32359. - (eval $ac_link) 2>conftest.er1
  32360. - ac_status=$?
  32361. - grep -v '^ *+' conftest.er1 >conftest.err
  32362. - rm -f conftest.er1
  32363. - cat conftest.err >&5
  32364. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32365. - (exit $ac_status); } &&
  32366. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  32367. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32368. - (eval $ac_try) 2>&5
  32369. - ac_status=$?
  32370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32371. - (exit $ac_status); }; } &&
  32372. - { ac_try='test -s conftest$ac_exeext'
  32373. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32374. - (eval $ac_try) 2>&5
  32375. - ac_status=$?
  32376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32377. - (exit $ac_status); }; }; then
  32378. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32379. -}'`
  32380. -# Check for a 64-bit object if we didn't find anything.
  32381. -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; }
  32382. -}'`; fi
  32383. -else
  32384. - echo "$as_me: failed program was:" >&5
  32385. -sed 's/^/| /' conftest.$ac_ext >&5
  32386. + else
  32387. + MAGIC_CMD=:
  32388. + fi
  32389. fi
  32390. -rm -f conftest.err conftest.$ac_objext \
  32391. - conftest$ac_exeext conftest.$ac_ext
  32392. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32393. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32394. - # Warning - without using the other run time loading flags,
  32395. - # -berok will link without error, but may produce a broken library.
  32396. - no_undefined_flag_F77=' ${wl}-bernotok'
  32397. - allow_undefined_flag_F77=' ${wl}-berok'
  32398. - # Exported symbols can be pulled into shared objects from archives
  32399. - whole_archive_flag_spec_F77='$convenience'
  32400. - archive_cmds_need_lc_F77=yes
  32401. - # This is similar to how AIX traditionally builds its shared libraries.
  32402. - archive_expsym_cmds_F77="\$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'
  32403. - fi
  32404. - fi
  32405. - ;;
  32406. + fi
  32407. + ;;
  32408. +esac
  32409. - amigaos*)
  32410. - archive_cmds_F77='$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)'
  32411. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32412. - hardcode_minus_L_F77=yes
  32413. - # see comment about different semantics on the GNU ld section
  32414. - ld_shlibs_F77=no
  32415. - ;;
  32416. +# Use C for the default configuration in the libtool script
  32417. - bsdi[45]*)
  32418. - export_dynamic_flag_spec_F77=-rdynamic
  32419. - ;;
  32420. +lt_save_CC="$CC"
  32421. +ac_ext=c
  32422. +ac_cpp='$CPP $CPPFLAGS'
  32423. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32424. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32425. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32426. - cygwin* | mingw* | pw32*)
  32427. - # When not using gcc, we currently assume that we are using
  32428. - # Microsoft Visual C++.
  32429. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  32430. - # no search path for DLLs.
  32431. - hardcode_libdir_flag_spec_F77=' '
  32432. - allow_undefined_flag_F77=unsupported
  32433. - # Tell ltmain to make .lib files, not .a files.
  32434. - libext=lib
  32435. - # Tell ltmain to make .dll files, not .so files.
  32436. - shrext_cmds=".dll"
  32437. - # FIXME: Setting linknames here is a bad hack.
  32438. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32439. - # The linker will automatically build a .lib file if we build a DLL.
  32440. - old_archive_From_new_cmds_F77='true'
  32441. - # FIXME: Should let the user specify the lib program.
  32442. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  32443. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  32444. - enable_shared_with_static_runtimes_F77=yes
  32445. - ;;
  32446. - darwin* | rhapsody*)
  32447. - case $host_os in
  32448. - rhapsody* | darwin1.[012])
  32449. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  32450. - ;;
  32451. - *) # Darwin 1.3 on
  32452. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32453. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32454. - else
  32455. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32456. - 10.[012])
  32457. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32458. - ;;
  32459. - 10.*)
  32460. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  32461. - ;;
  32462. - esac
  32463. - fi
  32464. - ;;
  32465. - esac
  32466. - archive_cmds_need_lc_F77=no
  32467. - hardcode_direct_F77=no
  32468. - hardcode_automatic_F77=yes
  32469. - hardcode_shlibpath_var_F77=unsupported
  32470. - whole_archive_flag_spec_F77=''
  32471. - link_all_deplibs_F77=yes
  32472. - if test "$GCC" = yes ; then
  32473. - output_verbose_link_cmd='echo'
  32474. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32475. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32476. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32477. - archive_expsym_cmds_F77='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}'
  32478. - module_expsym_cmds_F77='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}'
  32479. - else
  32480. - case $cc_basename in
  32481. - xlc*)
  32482. - output_verbose_link_cmd='echo'
  32483. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  32484. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32485. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32486. - archive_expsym_cmds_F77='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}'
  32487. - module_expsym_cmds_F77='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}'
  32488. - ;;
  32489. - *)
  32490. - ld_shlibs_F77=no
  32491. - ;;
  32492. - esac
  32493. - fi
  32494. - ;;
  32495. +# Source file extension for C test sources.
  32496. +ac_ext=c
  32497. - dgux*)
  32498. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32499. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32500. - hardcode_shlibpath_var_F77=no
  32501. - ;;
  32502. +# Object file extension for compiled C test sources.
  32503. +objext=o
  32504. +objext=$objext
  32505. - freebsd1*)
  32506. - ld_shlibs_F77=no
  32507. - ;;
  32508. +# Code to be used in simple compile tests
  32509. +lt_simple_compile_test_code="int some_variable = 0;"
  32510. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32511. - # support. Future versions do this automatically, but an explicit c++rt0.o
  32512. - # does not break anything, and helps significantly (at the cost of a little
  32513. - # extra space).
  32514. - freebsd2.2*)
  32515. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32516. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32517. - hardcode_direct_F77=yes
  32518. - hardcode_shlibpath_var_F77=no
  32519. - ;;
  32520. +# Code to be used in simple link tests
  32521. +lt_simple_link_test_code='int main(){return(0);}'
  32522. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32523. - freebsd2*)
  32524. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32525. - hardcode_direct_F77=yes
  32526. - hardcode_minus_L_F77=yes
  32527. - hardcode_shlibpath_var_F77=no
  32528. - ;;
  32529. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32530. - freebsd* | dragonfly*)
  32531. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32532. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32533. - hardcode_direct_F77=yes
  32534. - hardcode_shlibpath_var_F77=no
  32535. - ;;
  32536. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  32537. - kfreebsd*-gnu)
  32538. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32539. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32540. - hardcode_direct_F77=yes
  32541. - hardcode_shlibpath_var_F77=no
  32542. - link_all_deplibs_F77=no
  32543. - ;;
  32544. - hpux9*)
  32545. - if test "$GCC" = yes; then
  32546. - archive_cmds_F77='$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'
  32547. - else
  32548. - archive_cmds_F77='$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'
  32549. - fi
  32550. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32551. - hardcode_libdir_separator_F77=:
  32552. - hardcode_direct_F77=yes
  32553. - # hardcode_minus_L: Not really in the search PATH,
  32554. - # but as the default location of the library.
  32555. - hardcode_minus_L_F77=yes
  32556. - export_dynamic_flag_spec_F77='${wl}-E'
  32557. - ;;
  32558. - hpux10*)
  32559. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32560. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32561. - else
  32562. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32563. - fi
  32564. - if test "$with_gnu_ld" = no; then
  32565. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32566. - hardcode_libdir_separator_F77=:
  32567. - hardcode_direct_F77=yes
  32568. - export_dynamic_flag_spec_F77='${wl}-E'
  32569. +# If no C compiler was specified, use CC.
  32570. +LTCC=${LTCC-"$CC"}
  32571. +
  32572. +# If no C compiler flags were specified, use CFLAGS.
  32573. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  32574. - # hardcode_minus_L: Not really in the search PATH,
  32575. - # but as the default location of the library.
  32576. - hardcode_minus_L_F77=yes
  32577. - fi
  32578. - ;;
  32579. +# Allow CC to be a program name with arguments.
  32580. +compiler=$CC
  32581. - hpux11*)
  32582. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32583. - case $host_cpu in
  32584. - hppa*64*)
  32585. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32586. - ;;
  32587. - ia64*)
  32588. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32589. - ;;
  32590. - *)
  32591. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32592. - ;;
  32593. - esac
  32594. - else
  32595. - case $host_cpu in
  32596. - hppa*64*)
  32597. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32598. - ;;
  32599. - ia64*)
  32600. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32601. - ;;
  32602. - *)
  32603. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32604. - ;;
  32605. - esac
  32606. - fi
  32607. - if test "$with_gnu_ld" = no; then
  32608. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32609. - hardcode_libdir_separator_F77=:
  32610. +# Save the default compiler, since it gets overwritten when the other
  32611. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  32612. +compiler_DEFAULT=$CC
  32613. - case $host_cpu in
  32614. - hppa*64*|ia64*)
  32615. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  32616. - hardcode_direct_F77=no
  32617. - hardcode_shlibpath_var_F77=no
  32618. - ;;
  32619. - *)
  32620. - hardcode_direct_F77=yes
  32621. - export_dynamic_flag_spec_F77='${wl}-E'
  32622. +# save warnings/boilerplate of simple test code
  32623. +ac_outfile=conftest.$ac_objext
  32624. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  32625. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32626. +_lt_compiler_boilerplate=`cat conftest.err`
  32627. +$RM conftest*
  32628. - # hardcode_minus_L: Not really in the search PATH,
  32629. - # but as the default location of the library.
  32630. - hardcode_minus_L_F77=yes
  32631. - ;;
  32632. - esac
  32633. - fi
  32634. - ;;
  32635. +ac_outfile=conftest.$ac_objext
  32636. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  32637. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32638. +_lt_linker_boilerplate=`cat conftest.err`
  32639. +$RM -r conftest*
  32640. - irix5* | irix6* | nonstopux*)
  32641. - if test "$GCC" = yes; then
  32642. - archive_cmds_F77='$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'
  32643. - else
  32644. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  32645. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  32646. - fi
  32647. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32648. - hardcode_libdir_separator_F77=:
  32649. - link_all_deplibs_F77=yes
  32650. - ;;
  32651. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  32652. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32653. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32654. - else
  32655. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32656. - fi
  32657. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32658. - hardcode_direct_F77=yes
  32659. - hardcode_shlibpath_var_F77=no
  32660. - ;;
  32661. +if test -n "$compiler"; then
  32662. - newsos6)
  32663. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32664. - hardcode_direct_F77=yes
  32665. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32666. - hardcode_libdir_separator_F77=:
  32667. - hardcode_shlibpath_var_F77=no
  32668. - ;;
  32669. +lt_prog_compiler_no_builtin_flag=
  32670. - openbsd*)
  32671. - hardcode_direct_F77=yes
  32672. - hardcode_shlibpath_var_F77=no
  32673. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32674. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32675. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32676. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32677. - export_dynamic_flag_spec_F77='${wl}-E'
  32678. - else
  32679. - case $host_os in
  32680. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32681. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32682. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32683. - ;;
  32684. - *)
  32685. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32686. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32687. - ;;
  32688. - esac
  32689. - fi
  32690. - ;;
  32691. +if test "$GCC" = yes; then
  32692. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  32693. - os2*)
  32694. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32695. - hardcode_minus_L_F77=yes
  32696. - allow_undefined_flag_F77=unsupported
  32697. - archive_cmds_F77='$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'
  32698. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32699. - ;;
  32700. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  32701. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  32702. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  32703. + $as_echo_n "(cached) " >&6
  32704. +else
  32705. + lt_cv_prog_compiler_rtti_exceptions=no
  32706. + ac_outfile=conftest.$ac_objext
  32707. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32708. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  32709. + # Insert the option either (1) after the last *FLAGS variable, or
  32710. + # (2) before a word containing "conftest.", or (3) at the end.
  32711. + # Note that $ac_compile itself does not contain backslashes and begins
  32712. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  32713. + # The option is referenced via a variable to avoid confusing sed.
  32714. + lt_compile=`echo "$ac_compile" | $SED \
  32715. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32716. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32717. + -e 's:$: $lt_compiler_flag:'`
  32718. + (eval echo "\"\$as_me:7334: $lt_compile\"" >&5)
  32719. + (eval "$lt_compile" 2>conftest.err)
  32720. + ac_status=$?
  32721. + cat conftest.err >&5
  32722. + echo "$as_me:7338: \$? = $ac_status" >&5
  32723. + if (exit $ac_status) && test -s "$ac_outfile"; then
  32724. + # The compiler can only warn and ignore the option if not recognized
  32725. + # So say no if there are warnings other than the usual output.
  32726. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32727. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32728. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32729. + lt_cv_prog_compiler_rtti_exceptions=yes
  32730. + fi
  32731. + fi
  32732. + $RM conftest*
  32733. - osf3*)
  32734. - if test "$GCC" = yes; then
  32735. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32736. - archive_cmds_F77='$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'
  32737. - else
  32738. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32739. - archive_cmds_F77='$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'
  32740. - fi
  32741. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32742. - hardcode_libdir_separator_F77=:
  32743. - ;;
  32744. +fi
  32745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  32746. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  32747. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32748. - if test "$GCC" = yes; then
  32749. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32750. - archive_cmds_F77='$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'
  32751. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32752. - else
  32753. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32754. - archive_cmds_F77='$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'
  32755. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  32756. - $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'
  32757. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  32758. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  32759. +else
  32760. + :
  32761. +fi
  32762. - # Both c and cxx compiler support -rpath directly
  32763. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  32764. - fi
  32765. - hardcode_libdir_separator_F77=:
  32766. - ;;
  32767. +fi
  32768. - solaris*)
  32769. - no_undefined_flag_F77=' -z text'
  32770. - if test "$GCC" = yes; then
  32771. - wlarc='${wl}'
  32772. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32773. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32774. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32775. - else
  32776. - wlarc=''
  32777. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32778. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32779. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32780. - fi
  32781. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32782. - hardcode_shlibpath_var_F77=no
  32783. - case $host_os in
  32784. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32785. - *)
  32786. - # The compiler driver will combine linker options so we
  32787. - # cannot just pass the convience library names through
  32788. - # without $wl, iff we do not link with $LD.
  32789. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  32790. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32791. - case $wlarc in
  32792. - '')
  32793. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  32794. - *)
  32795. - whole_archive_flag_spec_F77='${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' ;;
  32796. - esac ;;
  32797. - esac
  32798. - link_all_deplibs_F77=yes
  32799. - ;;
  32800. - sunos4*)
  32801. - if test "x$host_vendor" = xsequent; then
  32802. - # Use $CC to link under sequent, because it throws in some extra .o
  32803. - # files that make .init and .fini sections work.
  32804. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32805. - else
  32806. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32807. - fi
  32808. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32809. - hardcode_direct_F77=yes
  32810. - hardcode_minus_L_F77=yes
  32811. - hardcode_shlibpath_var_F77=no
  32812. - ;;
  32813. - sysv4)
  32814. - case $host_vendor in
  32815. - sni)
  32816. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32817. - hardcode_direct_F77=yes # is this really true???
  32818. - ;;
  32819. - siemens)
  32820. - ## LD is ld it makes a PLAMLIB
  32821. - ## CC just makes a GrossModule.
  32822. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32823. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  32824. - hardcode_direct_F77=no
  32825. - ;;
  32826. - motorola)
  32827. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32828. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  32829. - ;;
  32830. - esac
  32831. - runpath_var='LD_RUN_PATH'
  32832. - hardcode_shlibpath_var_F77=no
  32833. - ;;
  32834. - sysv4.3*)
  32835. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32836. - hardcode_shlibpath_var_F77=no
  32837. - export_dynamic_flag_spec_F77='-Bexport'
  32838. - ;;
  32839. - sysv4*MP*)
  32840. - if test -d /usr/nec; then
  32841. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32842. - hardcode_shlibpath_var_F77=no
  32843. - runpath_var=LD_RUN_PATH
  32844. - hardcode_runpath_var=yes
  32845. - ld_shlibs_F77=yes
  32846. - fi
  32847. - ;;
  32848. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  32849. - no_undefined_flag_F77='${wl}-z,text'
  32850. - archive_cmds_need_lc_F77=no
  32851. - hardcode_shlibpath_var_F77=no
  32852. - runpath_var='LD_RUN_PATH'
  32853. + lt_prog_compiler_wl=
  32854. +lt_prog_compiler_pic=
  32855. +lt_prog_compiler_static=
  32856. - if test "$GCC" = yes; then
  32857. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32858. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32859. - else
  32860. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32861. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32862. - fi
  32863. - ;;
  32864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  32865. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  32866. - sysv5* | sco3.2v5* | sco5v6*)
  32867. - # Note: We can NOT use -z defs as we might desire, because we do not
  32868. - # link with -lc, and that would cause any symbols used from libc to
  32869. - # always be unresolved, which means just about no library would
  32870. - # ever link correctly. If we're not using GNU ld we use -z text
  32871. - # though, which does catch some bad symbols but isn't as heavy-handed
  32872. - # as -z defs.
  32873. - no_undefined_flag_F77='${wl}-z,text'
  32874. - allow_undefined_flag_F77='${wl}-z,nodefs'
  32875. - archive_cmds_need_lc_F77=no
  32876. - hardcode_shlibpath_var_F77=no
  32877. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32878. - hardcode_libdir_separator_F77=':'
  32879. - link_all_deplibs_F77=yes
  32880. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  32881. - runpath_var='LD_RUN_PATH'
  32882. + if test "$GCC" = yes; then
  32883. + lt_prog_compiler_wl='-Wl,'
  32884. + lt_prog_compiler_static='-static'
  32885. - if test "$GCC" = yes; then
  32886. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32887. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32888. - else
  32889. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32890. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32891. + case $host_os in
  32892. + aix*)
  32893. + # All AIX code is PIC.
  32894. + if test "$host_cpu" = ia64; then
  32895. + # AIX 5 now supports IA64 processor
  32896. + lt_prog_compiler_static='-Bstatic'
  32897. fi
  32898. ;;
  32899. - uts4*)
  32900. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32901. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32902. - hardcode_shlibpath_var_F77=no
  32903. + amigaos*)
  32904. + case $host_cpu in
  32905. + powerpc)
  32906. + # see comment about AmigaOS4 .so support
  32907. + lt_prog_compiler_pic='-fPIC'
  32908. + ;;
  32909. + m68k)
  32910. + # FIXME: we need at least 68020 code to build shared libraries, but
  32911. + # adding the `-m68020' flag to GCC prevents building anything better,
  32912. + # like `-m68040'.
  32913. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  32914. + ;;
  32915. + esac
  32916. ;;
  32917. - *)
  32918. - ld_shlibs_F77=no
  32919. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32920. + # PIC is the default for these OSes.
  32921. ;;
  32922. - esac
  32923. - fi
  32924. -
  32925. -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  32926. -echo "${ECHO_T}$ld_shlibs_F77" >&6
  32927. -test "$ld_shlibs_F77" = no && can_build_shared=no
  32928. -
  32929. -#
  32930. -# Do we need to explicitly link libc?
  32931. -#
  32932. -case "x$archive_cmds_need_lc_F77" in
  32933. -x|xyes)
  32934. - # Assume -lc should be added
  32935. - archive_cmds_need_lc_F77=yes
  32936. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32937. - case $archive_cmds_F77 in
  32938. - *'~'*)
  32939. - # FIXME: we may have to deal with multi-command sequences.
  32940. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  32941. + # This hack is so that the source file can tell whether it is being
  32942. + # built for inclusion in a dll (and should export symbols for example).
  32943. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  32944. + # (--disable-auto-import) libraries
  32945. + lt_prog_compiler_pic='-DDLL_EXPORT'
  32946. ;;
  32947. - '$CC '*)
  32948. - # Test whether the compiler implicitly links with -lc since on some
  32949. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32950. - # to ld, don't add -lc before -lgcc.
  32951. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32952. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  32953. - $rm conftest*
  32954. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32955. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32956. - (eval $ac_compile) 2>&5
  32957. - ac_status=$?
  32958. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32959. - (exit $ac_status); } 2>conftest.err; then
  32960. - soname=conftest
  32961. - lib=conftest
  32962. - libobjs=conftest.$ac_objext
  32963. - deplibs=
  32964. - wl=$lt_prog_compiler_wl_F77
  32965. - pic_flag=$lt_prog_compiler_pic_F77
  32966. - compiler_flags=-v
  32967. - linker_flags=-v
  32968. - verstring=
  32969. - output_objdir=.
  32970. - libname=conftest
  32971. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  32972. - allow_undefined_flag_F77=
  32973. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32974. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32975. - ac_status=$?
  32976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32977. - (exit $ac_status); }
  32978. - then
  32979. - archive_cmds_need_lc_F77=no
  32980. - else
  32981. - archive_cmds_need_lc_F77=yes
  32982. - fi
  32983. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  32984. - else
  32985. - cat conftest.err 1>&5
  32986. - fi
  32987. - $rm conftest*
  32988. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  32989. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  32990. + darwin* | rhapsody*)
  32991. + # PIC is the default on this platform
  32992. + # Common symbols not allowed in MH_DYLIB files
  32993. + lt_prog_compiler_pic='-fno-common'
  32994. ;;
  32995. - esac
  32996. - fi
  32997. - ;;
  32998. -esac
  32999. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33000. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  33001. -library_names_spec=
  33002. -libname_spec='lib$name'
  33003. -soname_spec=
  33004. -shrext_cmds=".so"
  33005. -postinstall_cmds=
  33006. -postuninstall_cmds=
  33007. -finish_cmds=
  33008. -finish_eval=
  33009. -shlibpath_var=
  33010. -shlibpath_overrides_runpath=unknown
  33011. -version_type=none
  33012. -dynamic_linker="$host_os ld.so"
  33013. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33014. -if test "$GCC" = yes; then
  33015. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33016. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  33017. - # if the path contains ";" then we assume it to be the separator
  33018. - # otherwise default to the standard path separator (i.e. ":") - it is
  33019. - # assumed that no part of a normal pathname contains ";" but that should
  33020. - # okay in the real world where ";" in dirpaths is itself problematic.
  33021. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33022. - else
  33023. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33024. - fi
  33025. -else
  33026. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33027. -fi
  33028. -need_lib_prefix=unknown
  33029. -hardcode_into_libs=no
  33030. + hpux*)
  33031. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33032. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33033. + # sets the default TLS model and affects inlining.
  33034. + case $host_cpu in
  33035. + hppa*64*)
  33036. + # +Z the default
  33037. + ;;
  33038. + *)
  33039. + lt_prog_compiler_pic='-fPIC'
  33040. + ;;
  33041. + esac
  33042. + ;;
  33043. -# when you set need_version to no, make sure it does not cause -set_version
  33044. -# flags to be left without arguments
  33045. -need_version=unknown
  33046. + interix[3-9]*)
  33047. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33048. + # Instead, we relocate shared libraries at runtime.
  33049. + ;;
  33050. -case $host_os in
  33051. -aix3*)
  33052. - version_type=linux
  33053. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33054. - shlibpath_var=LIBPATH
  33055. + msdosdjgpp*)
  33056. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  33057. + # on systems that don't support them.
  33058. + lt_prog_compiler_can_build_shared=no
  33059. + enable_shared=no
  33060. + ;;
  33061. - # AIX 3 has no versioning support, so we append a major version to the name.
  33062. - soname_spec='${libname}${release}${shared_ext}$major'
  33063. - ;;
  33064. + *nto* | *qnx*)
  33065. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33066. + # it will coredump.
  33067. + lt_prog_compiler_pic='-fPIC -shared'
  33068. + ;;
  33069. -aix4* | aix5*)
  33070. - version_type=linux
  33071. - need_lib_prefix=no
  33072. - need_version=no
  33073. - hardcode_into_libs=yes
  33074. - if test "$host_cpu" = ia64; then
  33075. - # AIX 5 supports IA64
  33076. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33077. - shlibpath_var=LD_LIBRARY_PATH
  33078. + sysv4*MP*)
  33079. + if test -d /usr/nec; then
  33080. + lt_prog_compiler_pic=-Kconform_pic
  33081. + fi
  33082. + ;;
  33083. +
  33084. + *)
  33085. + lt_prog_compiler_pic='-fPIC'
  33086. + ;;
  33087. + esac
  33088. else
  33089. - # With GCC up to 2.95.x, collect2 would create an import file
  33090. - # for dependence libraries. The import file would start with
  33091. - # the line `#! .'. This would cause the generated library to
  33092. - # depend on `.', always an invalid library. This was fixed in
  33093. - # development snapshots of GCC prior to 3.0.
  33094. + # PORTME Check for flag to pass linker flags through the system compiler.
  33095. case $host_os in
  33096. - aix4 | aix4.[01] | aix4.[01].*)
  33097. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33098. - echo ' yes '
  33099. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33100. - :
  33101. + aix*)
  33102. + lt_prog_compiler_wl='-Wl,'
  33103. + if test "$host_cpu" = ia64; then
  33104. + # AIX 5 now supports IA64 processor
  33105. + lt_prog_compiler_static='-Bstatic'
  33106. else
  33107. - can_build_shared=no
  33108. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  33109. fi
  33110. ;;
  33111. - esac
  33112. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33113. - # soname into executable. Probably we can add versioning support to
  33114. - # collect2, so additional links can be useful in future.
  33115. - if test "$aix_use_runtimelinking" = yes; then
  33116. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33117. - # instead of lib<name>.a to let people know that these are not
  33118. - # typical AIX shared libraries.
  33119. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33120. - else
  33121. - # We preserve .a as extension for shared libraries through AIX4.2
  33122. - # and later when we are not doing run time linking.
  33123. - library_names_spec='${libname}${release}.a $libname.a'
  33124. - soname_spec='${libname}${release}${shared_ext}$major'
  33125. - fi
  33126. - shlibpath_var=LIBPATH
  33127. - fi
  33128. - ;;
  33129. -amigaos*)
  33130. - library_names_spec='$libname.ixlibrary $libname.a'
  33131. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33132. - 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'
  33133. - ;;
  33134. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33135. + # This hack is so that the source file can tell whether it is being
  33136. + # built for inclusion in a dll (and should export symbols for example).
  33137. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33138. + ;;
  33139. -beos*)
  33140. - library_names_spec='${libname}${shared_ext}'
  33141. - dynamic_linker="$host_os ld.so"
  33142. - shlibpath_var=LIBRARY_PATH
  33143. - ;;
  33144. + hpux9* | hpux10* | hpux11*)
  33145. + lt_prog_compiler_wl='-Wl,'
  33146. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33147. + # not for PA HP-UX.
  33148. + case $host_cpu in
  33149. + hppa*64*|ia64*)
  33150. + # +Z the default
  33151. + ;;
  33152. + *)
  33153. + lt_prog_compiler_pic='+Z'
  33154. + ;;
  33155. + esac
  33156. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33157. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  33158. + ;;
  33159. -bsdi[45]*)
  33160. - version_type=linux
  33161. - need_version=no
  33162. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33163. - soname_spec='${libname}${release}${shared_ext}$major'
  33164. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  33165. - shlibpath_var=LD_LIBRARY_PATH
  33166. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  33167. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  33168. - # the default ld.so.conf also contains /usr/contrib/lib and
  33169. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  33170. - # libtool to hard-code these into programs
  33171. - ;;
  33172. + irix5* | irix6* | nonstopux*)
  33173. + lt_prog_compiler_wl='-Wl,'
  33174. + # PIC (with -KPIC) is the default.
  33175. + lt_prog_compiler_static='-non_shared'
  33176. + ;;
  33177. -cygwin* | mingw* | pw32*)
  33178. - version_type=windows
  33179. - shrext_cmds=".dll"
  33180. - need_version=no
  33181. - need_lib_prefix=no
  33182. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33183. + case $cc_basename in
  33184. + # old Intel for x86_64 which still supported -KPIC.
  33185. + ecc*)
  33186. + lt_prog_compiler_wl='-Wl,'
  33187. + lt_prog_compiler_pic='-KPIC'
  33188. + lt_prog_compiler_static='-static'
  33189. + ;;
  33190. + # icc used to be incompatible with GCC.
  33191. + # ICC 10 doesn't accept -KPIC any more.
  33192. + icc* | ifort*)
  33193. + lt_prog_compiler_wl='-Wl,'
  33194. + lt_prog_compiler_pic='-fPIC'
  33195. + lt_prog_compiler_static='-static'
  33196. + ;;
  33197. + # Lahey Fortran 8.1.
  33198. + lf95*)
  33199. + lt_prog_compiler_wl='-Wl,'
  33200. + lt_prog_compiler_pic='--shared'
  33201. + lt_prog_compiler_static='--static'
  33202. + ;;
  33203. + pgcc* | pgf77* | pgf90* | pgf95*)
  33204. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33205. + # which looks to be a dead project)
  33206. + lt_prog_compiler_wl='-Wl,'
  33207. + lt_prog_compiler_pic='-fpic'
  33208. + lt_prog_compiler_static='-Bstatic'
  33209. + ;;
  33210. + ccc*)
  33211. + lt_prog_compiler_wl='-Wl,'
  33212. + # All Alpha code is PIC.
  33213. + lt_prog_compiler_static='-non_shared'
  33214. + ;;
  33215. + xl*)
  33216. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33217. + lt_prog_compiler_wl='-Wl,'
  33218. + lt_prog_compiler_pic='-qpic'
  33219. + lt_prog_compiler_static='-qstaticlink'
  33220. + ;;
  33221. + *)
  33222. + case `$CC -V 2>&1 | sed 5q` in
  33223. + *Sun\ C*)
  33224. + # Sun C 5.9
  33225. + lt_prog_compiler_pic='-KPIC'
  33226. + lt_prog_compiler_static='-Bstatic'
  33227. + lt_prog_compiler_wl='-Wl,'
  33228. + ;;
  33229. + *Sun\ F*)
  33230. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33231. + lt_prog_compiler_pic='-KPIC'
  33232. + lt_prog_compiler_static='-Bstatic'
  33233. + lt_prog_compiler_wl=''
  33234. + ;;
  33235. + esac
  33236. + ;;
  33237. + esac
  33238. + ;;
  33239. - case $GCC,$host_os in
  33240. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33241. - library_names_spec='$libname.dll.a'
  33242. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33243. - postinstall_cmds='base_file=`basename \${file}`~
  33244. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33245. - dldir=$destdir/`dirname \$dlpath`~
  33246. - test -d \$dldir || mkdir -p \$dldir~
  33247. - $install_prog $dir/$dlname \$dldir/$dlname~
  33248. - chmod a+x \$dldir/$dlname'
  33249. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33250. - dlpath=$dir/\$dldll~
  33251. - $rm \$dlpath'
  33252. - shlibpath_overrides_runpath=yes
  33253. + newsos6)
  33254. + lt_prog_compiler_pic='-KPIC'
  33255. + lt_prog_compiler_static='-Bstatic'
  33256. + ;;
  33257. - case $host_os in
  33258. - cygwin*)
  33259. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  33260. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33261. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33262. + *nto* | *qnx*)
  33263. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33264. + # it will coredump.
  33265. + lt_prog_compiler_pic='-fPIC -shared'
  33266. ;;
  33267. - mingw*)
  33268. - # MinGW DLLs use traditional 'lib' prefix
  33269. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33270. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33271. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33272. - # It is most probably a Windows format PATH printed by
  33273. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33274. - # path with ; separators, and with drive letters. We can handle the
  33275. - # drive letters (cygwin fileutils understands them), so leave them,
  33276. - # especially as we might pass files found there to a mingw objdump,
  33277. - # which wouldn't understand a cygwinified path. Ahh.
  33278. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33279. - else
  33280. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33281. - fi
  33282. +
  33283. + osf3* | osf4* | osf5*)
  33284. + lt_prog_compiler_wl='-Wl,'
  33285. + # All OSF/1 code is PIC.
  33286. + lt_prog_compiler_static='-non_shared'
  33287. ;;
  33288. - pw32*)
  33289. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  33290. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33291. +
  33292. + rdos*)
  33293. + lt_prog_compiler_static='-non_shared'
  33294. ;;
  33295. - esac
  33296. - ;;
  33297. - *)
  33298. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  33299. - ;;
  33300. - esac
  33301. - dynamic_linker='Win32 ld.exe'
  33302. - # FIXME: first we should search . and the directory the executable is in
  33303. - shlibpath_var=PATH
  33304. - ;;
  33305. + solaris*)
  33306. + lt_prog_compiler_pic='-KPIC'
  33307. + lt_prog_compiler_static='-Bstatic'
  33308. + case $cc_basename in
  33309. + f77* | f90* | f95*)
  33310. + lt_prog_compiler_wl='-Qoption ld ';;
  33311. + *)
  33312. + lt_prog_compiler_wl='-Wl,';;
  33313. + esac
  33314. + ;;
  33315. -darwin* | rhapsody*)
  33316. - dynamic_linker="$host_os dyld"
  33317. - version_type=darwin
  33318. - need_lib_prefix=no
  33319. - need_version=no
  33320. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33321. - soname_spec='${libname}${release}${major}$shared_ext'
  33322. - shlibpath_overrides_runpath=yes
  33323. - shlibpath_var=DYLD_LIBRARY_PATH
  33324. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33325. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  33326. - if test "$GCC" = yes; then
  33327. - 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"`
  33328. - else
  33329. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  33330. - fi
  33331. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33332. - ;;
  33333. + sunos4*)
  33334. + lt_prog_compiler_wl='-Qoption ld '
  33335. + lt_prog_compiler_pic='-PIC'
  33336. + lt_prog_compiler_static='-Bstatic'
  33337. + ;;
  33338. -dgux*)
  33339. - version_type=linux
  33340. - need_lib_prefix=no
  33341. - need_version=no
  33342. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  33343. - soname_spec='${libname}${release}${shared_ext}$major'
  33344. - shlibpath_var=LD_LIBRARY_PATH
  33345. - ;;
  33346. + sysv4 | sysv4.2uw2* | sysv4.3*)
  33347. + lt_prog_compiler_wl='-Wl,'
  33348. + lt_prog_compiler_pic='-KPIC'
  33349. + lt_prog_compiler_static='-Bstatic'
  33350. + ;;
  33351. +
  33352. + sysv4*MP*)
  33353. + if test -d /usr/nec ;then
  33354. + lt_prog_compiler_pic='-Kconform_pic'
  33355. + lt_prog_compiler_static='-Bstatic'
  33356. + fi
  33357. + ;;
  33358. +
  33359. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33360. + lt_prog_compiler_wl='-Wl,'
  33361. + lt_prog_compiler_pic='-KPIC'
  33362. + lt_prog_compiler_static='-Bstatic'
  33363. + ;;
  33364. -freebsd1*)
  33365. - dynamic_linker=no
  33366. - ;;
  33367. + unicos*)
  33368. + lt_prog_compiler_wl='-Wl,'
  33369. + lt_prog_compiler_can_build_shared=no
  33370. + ;;
  33371. -kfreebsd*-gnu)
  33372. - version_type=linux
  33373. - need_lib_prefix=no
  33374. - need_version=no
  33375. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33376. - soname_spec='${libname}${release}${shared_ext}$major'
  33377. - shlibpath_var=LD_LIBRARY_PATH
  33378. - shlibpath_overrides_runpath=no
  33379. - hardcode_into_libs=yes
  33380. - dynamic_linker='GNU ld.so'
  33381. - ;;
  33382. + uts4*)
  33383. + lt_prog_compiler_pic='-pic'
  33384. + lt_prog_compiler_static='-Bstatic'
  33385. + ;;
  33386. -freebsd* | dragonfly*)
  33387. - # DragonFly does not have aout. When/if they implement a new
  33388. - # versioning mechanism, adjust this.
  33389. - if test -x /usr/bin/objformat; then
  33390. - objformat=`/usr/bin/objformat`
  33391. - else
  33392. - case $host_os in
  33393. - freebsd[123]*) objformat=aout ;;
  33394. - *) objformat=elf ;;
  33395. + *)
  33396. + lt_prog_compiler_can_build_shared=no
  33397. + ;;
  33398. esac
  33399. fi
  33400. - version_type=freebsd-$objformat
  33401. - case $version_type in
  33402. - freebsd-elf*)
  33403. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33404. - need_version=no
  33405. - need_lib_prefix=no
  33406. - ;;
  33407. - freebsd-*)
  33408. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  33409. - need_version=yes
  33410. - ;;
  33411. - esac
  33412. - shlibpath_var=LD_LIBRARY_PATH
  33413. - case $host_os in
  33414. - freebsd2*)
  33415. - shlibpath_overrides_runpath=yes
  33416. - ;;
  33417. - freebsd3.[01]* | freebsdelf3.[01]*)
  33418. - shlibpath_overrides_runpath=yes
  33419. - hardcode_into_libs=yes
  33420. - ;;
  33421. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  33422. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  33423. - shlibpath_overrides_runpath=no
  33424. - hardcode_into_libs=yes
  33425. +
  33426. +case $host_os in
  33427. + # For platforms which do not support PIC, -DPIC is meaningless:
  33428. + *djgpp*)
  33429. + lt_prog_compiler_pic=
  33430. ;;
  33431. - freebsd*) # from 4.6 on
  33432. - shlibpath_overrides_runpath=yes
  33433. - hardcode_into_libs=yes
  33434. + *)
  33435. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  33436. ;;
  33437. - esac
  33438. - ;;
  33439. +esac
  33440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  33441. +$as_echo "$lt_prog_compiler_pic" >&6; }
  33442. -gnu*)
  33443. - version_type=linux
  33444. - need_lib_prefix=no
  33445. - need_version=no
  33446. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  33447. - soname_spec='${libname}${release}${shared_ext}$major'
  33448. - shlibpath_var=LD_LIBRARY_PATH
  33449. - hardcode_into_libs=yes
  33450. - ;;
  33451. -hpux9* | hpux10* | hpux11*)
  33452. - # Give a soname corresponding to the major version so that dld.sl refuses to
  33453. - # link against other versions.
  33454. - version_type=sunos
  33455. - need_lib_prefix=no
  33456. - need_version=no
  33457. - case $host_cpu in
  33458. - ia64*)
  33459. - shrext_cmds='.so'
  33460. - hardcode_into_libs=yes
  33461. - dynamic_linker="$host_os dld.so"
  33462. - shlibpath_var=LD_LIBRARY_PATH
  33463. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33464. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33465. - soname_spec='${libname}${release}${shared_ext}$major'
  33466. - if test "X$HPUX_IA64_MODE" = X32; then
  33467. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  33468. - else
  33469. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  33470. - fi
  33471. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33472. - ;;
  33473. - hppa*64*)
  33474. - shrext_cmds='.sl'
  33475. - hardcode_into_libs=yes
  33476. - dynamic_linker="$host_os dld.sl"
  33477. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33478. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33479. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33480. - soname_spec='${libname}${release}${shared_ext}$major'
  33481. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33482. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33483. - ;;
  33484. - *)
  33485. - shrext_cmds='.sl'
  33486. - dynamic_linker="$host_os dld.sl"
  33487. - shlibpath_var=SHLIB_PATH
  33488. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  33489. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33490. - soname_spec='${libname}${release}${shared_ext}$major'
  33491. - ;;
  33492. - esac
  33493. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  33494. - postinstall_cmds='chmod 555 $lib'
  33495. - ;;
  33496. -interix3*)
  33497. - version_type=linux
  33498. - need_lib_prefix=no
  33499. - need_version=no
  33500. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33501. - soname_spec='${libname}${release}${shared_ext}$major'
  33502. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  33503. - shlibpath_var=LD_LIBRARY_PATH
  33504. - shlibpath_overrides_runpath=no
  33505. - hardcode_into_libs=yes
  33506. - ;;
  33507. -irix5* | irix6* | nonstopux*)
  33508. - case $host_os in
  33509. - nonstopux*) version_type=nonstopux ;;
  33510. - *)
  33511. - if test "$lt_cv_prog_gnu_ld" = yes; then
  33512. - version_type=linux
  33513. - else
  33514. - version_type=irix
  33515. - fi ;;
  33516. - esac
  33517. - need_lib_prefix=no
  33518. - need_version=no
  33519. - soname_spec='${libname}${release}${shared_ext}$major'
  33520. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  33521. - case $host_os in
  33522. - irix5* | nonstopux*)
  33523. - libsuff= shlibsuff=
  33524. - ;;
  33525. - *)
  33526. - case $LD in # libtool.m4 will add one of these switches to LD
  33527. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  33528. - libsuff= shlibsuff= libmagic=32-bit;;
  33529. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  33530. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  33531. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  33532. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  33533. - *) libsuff= shlibsuff= libmagic=never-match;;
  33534. - esac
  33535. - ;;
  33536. - esac
  33537. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  33538. - shlibpath_overrides_runpath=no
  33539. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33540. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33541. - hardcode_into_libs=yes
  33542. - ;;
  33543. -# No shared lib support for Linux oldld, aout, or coff.
  33544. -linux*oldld* | linux*aout* | linux*coff*)
  33545. - dynamic_linker=no
  33546. - ;;
  33547. -# This must be Linux ELF.
  33548. -linux*)
  33549. - version_type=linux
  33550. - need_lib_prefix=no
  33551. - need_version=no
  33552. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33553. - soname_spec='${libname}${release}${shared_ext}$major'
  33554. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33555. - shlibpath_var=LD_LIBRARY_PATH
  33556. - shlibpath_overrides_runpath=no
  33557. - # This implies no fast_install, which is unacceptable.
  33558. - # Some rework will be needed to allow for fast_install
  33559. - # before this can be enabled.
  33560. - hardcode_into_libs=yes
  33561. +#
  33562. +# Check to make sure the PIC flag actually works.
  33563. +#
  33564. +if test -n "$lt_prog_compiler_pic"; then
  33565. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  33566. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  33567. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  33568. + $as_echo_n "(cached) " >&6
  33569. +else
  33570. + lt_cv_prog_compiler_pic_works=no
  33571. + ac_outfile=conftest.$ac_objext
  33572. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33573. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  33574. + # Insert the option either (1) after the last *FLAGS variable, or
  33575. + # (2) before a word containing "conftest.", or (3) at the end.
  33576. + # Note that $ac_compile itself does not contain backslashes and begins
  33577. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33578. + # The option is referenced via a variable to avoid confusing sed.
  33579. + lt_compile=`echo "$ac_compile" | $SED \
  33580. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33581. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33582. + -e 's:$: $lt_compiler_flag:'`
  33583. + (eval echo "\"\$as_me:7673: $lt_compile\"" >&5)
  33584. + (eval "$lt_compile" 2>conftest.err)
  33585. + ac_status=$?
  33586. + cat conftest.err >&5
  33587. + echo "$as_me:7677: \$? = $ac_status" >&5
  33588. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33589. + # The compiler can only warn and ignore the option if not recognized
  33590. + # So say no if there are warnings other than the usual output.
  33591. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33592. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33593. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33594. + lt_cv_prog_compiler_pic_works=yes
  33595. + fi
  33596. + fi
  33597. + $RM conftest*
  33598. +
  33599. +fi
  33600. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  33601. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  33602. +
  33603. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  33604. + case $lt_prog_compiler_pic in
  33605. + "" | " "*) ;;
  33606. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  33607. + esac
  33608. +else
  33609. + lt_prog_compiler_pic=
  33610. + lt_prog_compiler_can_build_shared=no
  33611. +fi
  33612. +
  33613. +fi
  33614. +
  33615. +
  33616. +
  33617. +
  33618. +
  33619. +
  33620. +#
  33621. +# Check to make sure the static flag actually works.
  33622. +#
  33623. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  33624. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33625. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  33626. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  33627. + $as_echo_n "(cached) " >&6
  33628. +else
  33629. + lt_cv_prog_compiler_static_works=no
  33630. + save_LDFLAGS="$LDFLAGS"
  33631. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33632. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  33633. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33634. + # The linker can only warn and ignore the option if not recognized
  33635. + # So say no if there are warnings
  33636. + if test -s conftest.err; then
  33637. + # Append any errors to the config.log.
  33638. + cat conftest.err 1>&5
  33639. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33640. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33641. + if diff conftest.exp conftest.er2 >/dev/null; then
  33642. + lt_cv_prog_compiler_static_works=yes
  33643. + fi
  33644. + else
  33645. + lt_cv_prog_compiler_static_works=yes
  33646. + fi
  33647. + fi
  33648. + $RM -r conftest*
  33649. + LDFLAGS="$save_LDFLAGS"
  33650. +
  33651. +fi
  33652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  33653. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  33654. +
  33655. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  33656. + :
  33657. +else
  33658. + lt_prog_compiler_static=
  33659. +fi
  33660. +
  33661. +
  33662. +
  33663. +
  33664. - # Append ld.so.conf contents to the search path
  33665. - if test -f /etc/ld.so.conf; then
  33666. - 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' ' '`
  33667. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33668. - fi
  33669. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33670. - # powerpc, because MkLinux only supported shared libraries with the
  33671. - # GNU dynamic linker. Since this was broken with cross compilers,
  33672. - # most powerpc-linux boxes support dynamic linking these days and
  33673. - # people can always --disable-shared, the test was removed, and we
  33674. - # assume the GNU/Linux dynamic linker is in use.
  33675. - dynamic_linker='GNU/Linux ld.so'
  33676. - ;;
  33677. -netbsdelf*-gnu)
  33678. - version_type=linux
  33679. - need_lib_prefix=no
  33680. - need_version=no
  33681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33682. - soname_spec='${libname}${release}${shared_ext}$major'
  33683. - shlibpath_var=LD_LIBRARY_PATH
  33684. - shlibpath_overrides_runpath=no
  33685. - hardcode_into_libs=yes
  33686. - dynamic_linker='NetBSD ld.elf_so'
  33687. - ;;
  33688. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33689. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33690. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33691. + $as_echo_n "(cached) " >&6
  33692. +else
  33693. + lt_cv_prog_compiler_c_o=no
  33694. + $RM -r conftest 2>/dev/null
  33695. + mkdir conftest
  33696. + cd conftest
  33697. + mkdir out
  33698. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33699. -knetbsd*-gnu)
  33700. - version_type=linux
  33701. - need_lib_prefix=no
  33702. - need_version=no
  33703. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33704. - soname_spec='${libname}${release}${shared_ext}$major'
  33705. - shlibpath_var=LD_LIBRARY_PATH
  33706. - shlibpath_overrides_runpath=no
  33707. - hardcode_into_libs=yes
  33708. - dynamic_linker='GNU ld.so'
  33709. - ;;
  33710. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33711. + # Insert the option either (1) after the last *FLAGS variable, or
  33712. + # (2) before a word containing "conftest.", or (3) at the end.
  33713. + # Note that $ac_compile itself does not contain backslashes and begins
  33714. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33715. + lt_compile=`echo "$ac_compile" | $SED \
  33716. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33717. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33718. + -e 's:$: $lt_compiler_flag:'`
  33719. + (eval echo "\"\$as_me:7778: $lt_compile\"" >&5)
  33720. + (eval "$lt_compile" 2>out/conftest.err)
  33721. + ac_status=$?
  33722. + cat out/conftest.err >&5
  33723. + echo "$as_me:7782: \$? = $ac_status" >&5
  33724. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33725. + then
  33726. + # The compiler can only warn and ignore the option if not recognized
  33727. + # So say no if there are warnings
  33728. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33729. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33730. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33731. + lt_cv_prog_compiler_c_o=yes
  33732. + fi
  33733. + fi
  33734. + chmod u+w . 2>&5
  33735. + $RM conftest*
  33736. + # SGI C++ compiler will create directory out/ii_files/ for
  33737. + # template instantiation
  33738. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33739. + $RM out/* && rmdir out
  33740. + cd ..
  33741. + $RM -r conftest
  33742. + $RM conftest*
  33743. -netbsd*)
  33744. - version_type=sunos
  33745. - need_lib_prefix=no
  33746. - need_version=no
  33747. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33748. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33749. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33750. - dynamic_linker='NetBSD (a.out) ld.so'
  33751. - else
  33752. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33753. - soname_spec='${libname}${release}${shared_ext}$major'
  33754. - dynamic_linker='NetBSD ld.elf_so'
  33755. - fi
  33756. - shlibpath_var=LD_LIBRARY_PATH
  33757. - shlibpath_overrides_runpath=yes
  33758. - hardcode_into_libs=yes
  33759. - ;;
  33760. +fi
  33761. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33762. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33763. -newsos6)
  33764. - version_type=linux
  33765. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33766. - shlibpath_var=LD_LIBRARY_PATH
  33767. - shlibpath_overrides_runpath=yes
  33768. - ;;
  33769. -nto-qnx*)
  33770. - version_type=linux
  33771. - need_lib_prefix=no
  33772. - need_version=no
  33773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33774. - soname_spec='${libname}${release}${shared_ext}$major'
  33775. - shlibpath_var=LD_LIBRARY_PATH
  33776. - shlibpath_overrides_runpath=yes
  33777. - ;;
  33778. -openbsd*)
  33779. - version_type=sunos
  33780. - sys_lib_dlsearch_path_spec="/usr/lib"
  33781. - need_lib_prefix=no
  33782. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33783. - case $host_os in
  33784. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33785. - *) need_version=no ;;
  33786. - esac
  33787. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33788. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33789. - shlibpath_var=LD_LIBRARY_PATH
  33790. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33791. - case $host_os in
  33792. - openbsd2.[89] | openbsd2.[89].*)
  33793. - shlibpath_overrides_runpath=no
  33794. - ;;
  33795. - *)
  33796. - shlibpath_overrides_runpath=yes
  33797. - ;;
  33798. - esac
  33799. - else
  33800. - shlibpath_overrides_runpath=yes
  33801. - fi
  33802. - ;;
  33803. -os2*)
  33804. - libname_spec='$name'
  33805. - shrext_cmds=".dll"
  33806. - need_lib_prefix=no
  33807. - library_names_spec='$libname${shared_ext} $libname.a'
  33808. - dynamic_linker='OS/2 ld.exe'
  33809. - shlibpath_var=LIBPATH
  33810. - ;;
  33811. -osf3* | osf4* | osf5*)
  33812. - version_type=osf
  33813. - need_lib_prefix=no
  33814. - need_version=no
  33815. - soname_spec='${libname}${release}${shared_ext}$major'
  33816. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33817. - shlibpath_var=LD_LIBRARY_PATH
  33818. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33819. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33820. - ;;
  33821. -solaris*)
  33822. - version_type=linux
  33823. - need_lib_prefix=no
  33824. - need_version=no
  33825. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33826. - soname_spec='${libname}${release}${shared_ext}$major'
  33827. - shlibpath_var=LD_LIBRARY_PATH
  33828. - shlibpath_overrides_runpath=yes
  33829. - hardcode_into_libs=yes
  33830. - # ldd complains unless libraries are executable
  33831. - postinstall_cmds='chmod +x $lib'
  33832. - ;;
  33833. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33834. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33835. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33836. + $as_echo_n "(cached) " >&6
  33837. +else
  33838. + lt_cv_prog_compiler_c_o=no
  33839. + $RM -r conftest 2>/dev/null
  33840. + mkdir conftest
  33841. + cd conftest
  33842. + mkdir out
  33843. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33844. -sunos4*)
  33845. - version_type=sunos
  33846. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33847. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33848. - shlibpath_var=LD_LIBRARY_PATH
  33849. - shlibpath_overrides_runpath=yes
  33850. - if test "$with_gnu_ld" = yes; then
  33851. - need_lib_prefix=no
  33852. - fi
  33853. - need_version=yes
  33854. - ;;
  33855. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33856. + # Insert the option either (1) after the last *FLAGS variable, or
  33857. + # (2) before a word containing "conftest.", or (3) at the end.
  33858. + # Note that $ac_compile itself does not contain backslashes and begins
  33859. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33860. + lt_compile=`echo "$ac_compile" | $SED \
  33861. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33862. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33863. + -e 's:$: $lt_compiler_flag:'`
  33864. + (eval echo "\"\$as_me:7833: $lt_compile\"" >&5)
  33865. + (eval "$lt_compile" 2>out/conftest.err)
  33866. + ac_status=$?
  33867. + cat out/conftest.err >&5
  33868. + echo "$as_me:7837: \$? = $ac_status" >&5
  33869. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33870. + then
  33871. + # The compiler can only warn and ignore the option if not recognized
  33872. + # So say no if there are warnings
  33873. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33874. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33875. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33876. + lt_cv_prog_compiler_c_o=yes
  33877. + fi
  33878. + fi
  33879. + chmod u+w . 2>&5
  33880. + $RM conftest*
  33881. + # SGI C++ compiler will create directory out/ii_files/ for
  33882. + # template instantiation
  33883. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33884. + $RM out/* && rmdir out
  33885. + cd ..
  33886. + $RM -r conftest
  33887. + $RM conftest*
  33888. -sysv4 | sysv4.3*)
  33889. - version_type=linux
  33890. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33891. - soname_spec='${libname}${release}${shared_ext}$major'
  33892. - shlibpath_var=LD_LIBRARY_PATH
  33893. - case $host_vendor in
  33894. - sni)
  33895. - shlibpath_overrides_runpath=no
  33896. - need_lib_prefix=no
  33897. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33898. - runpath_var=LD_RUN_PATH
  33899. - ;;
  33900. - siemens)
  33901. - need_lib_prefix=no
  33902. - ;;
  33903. - motorola)
  33904. - need_lib_prefix=no
  33905. - need_version=no
  33906. - shlibpath_overrides_runpath=no
  33907. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33908. - ;;
  33909. - esac
  33910. - ;;
  33911. +fi
  33912. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33913. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33914. -sysv4*MP*)
  33915. - if test -d /usr/nec ;then
  33916. - version_type=linux
  33917. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33918. - soname_spec='$libname${shared_ext}.$major'
  33919. - shlibpath_var=LD_LIBRARY_PATH
  33920. - fi
  33921. - ;;
  33922. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33923. - version_type=freebsd-elf
  33924. - need_lib_prefix=no
  33925. - need_version=no
  33926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33927. - soname_spec='${libname}${release}${shared_ext}$major'
  33928. - shlibpath_var=LD_LIBRARY_PATH
  33929. - hardcode_into_libs=yes
  33930. - if test "$with_gnu_ld" = yes; then
  33931. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33932. - shlibpath_overrides_runpath=no
  33933. - else
  33934. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33935. - shlibpath_overrides_runpath=yes
  33936. - case $host_os in
  33937. - sco3.2v5*)
  33938. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33939. - ;;
  33940. - esac
  33941. - fi
  33942. - sys_lib_dlsearch_path_spec='/usr/lib'
  33943. - ;;
  33944. -uts4*)
  33945. - version_type=linux
  33946. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33947. - soname_spec='${libname}${release}${shared_ext}$major'
  33948. - shlibpath_var=LD_LIBRARY_PATH
  33949. - ;;
  33950. -*)
  33951. - dynamic_linker=no
  33952. - ;;
  33953. -esac
  33954. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33955. -echo "${ECHO_T}$dynamic_linker" >&6
  33956. -test "$dynamic_linker" = no && can_build_shared=no
  33957. +hard_links="nottested"
  33958. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  33959. + # do not overwrite the value of need_locks provided by the user
  33960. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  33961. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  33962. + hard_links=yes
  33963. + $RM conftest*
  33964. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33965. + touch conftest.a
  33966. + ln conftest.a conftest.b 2>&5 || hard_links=no
  33967. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33968. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  33969. +$as_echo "$hard_links" >&6; }
  33970. + if test "$hard_links" = no; then
  33971. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33972. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33973. + need_locks=warn
  33974. + fi
  33975. +else
  33976. + need_locks=no
  33977. +fi
  33978. +
  33979. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33980. -if test "$GCC" = yes; then
  33981. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33982. -fi
  33983. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33984. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  33985. -hardcode_action_F77=
  33986. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  33987. - test -n "$runpath_var_F77" || \
  33988. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  33989. - # We can hardcode non-existant directories.
  33990. - if test "$hardcode_direct_F77" != no &&
  33991. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33992. - # have to relink, otherwise we might link with an installed library
  33993. - # when we should be linking with a yet-to-be-installed one
  33994. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  33995. - test "$hardcode_minus_L_F77" != no; then
  33996. - # Linking always hardcodes the temporary library directory.
  33997. - hardcode_action_F77=relink
  33998. - else
  33999. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  34000. - hardcode_action_F77=immediate
  34001. - fi
  34002. -else
  34003. - # We cannot hardcode anything, or else we can only hardcode existing
  34004. - # directories.
  34005. - hardcode_action_F77=unsupported
  34006. -fi
  34007. -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  34008. -echo "${ECHO_T}$hardcode_action_F77" >&6
  34009. -if test "$hardcode_action_F77" = relink; then
  34010. - # Fast installation is not supported
  34011. - enable_fast_install=no
  34012. -elif test "$shlibpath_overrides_runpath" = yes ||
  34013. - test "$enable_shared" = no; then
  34014. - # Fast installation is not necessary
  34015. - enable_fast_install=needless
  34016. -fi
  34017. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34018. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34019. -# The else clause should only fire when bootstrapping the
  34020. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34021. -# with your package, and you will get complaints that there are
  34022. -# no rules to generate ltmain.sh.
  34023. -if test -f "$ltmain"; then
  34024. - # See if we are running on zsh, and set the options which allow our commands through
  34025. - # without removal of \ escapes.
  34026. - if test -n "${ZSH_VERSION+set}" ; then
  34027. - setopt NO_GLOB_SUBST
  34028. - fi
  34029. - # Now quote all the things that may contain metacharacters while being
  34030. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34031. - # variables and quote the copies for generation of the libtool script.
  34032. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34033. - SED SHELL STRIP \
  34034. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34035. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34036. - deplibs_check_method reload_flag reload_cmds need_locks \
  34037. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34038. - lt_cv_sys_global_symbol_to_c_name_address \
  34039. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34040. - old_postinstall_cmds old_postuninstall_cmds \
  34041. - compiler_F77 \
  34042. - CC_F77 \
  34043. - LD_F77 \
  34044. - lt_prog_compiler_wl_F77 \
  34045. - lt_prog_compiler_pic_F77 \
  34046. - lt_prog_compiler_static_F77 \
  34047. - lt_prog_compiler_no_builtin_flag_F77 \
  34048. - export_dynamic_flag_spec_F77 \
  34049. - thread_safe_flag_spec_F77 \
  34050. - whole_archive_flag_spec_F77 \
  34051. - enable_shared_with_static_runtimes_F77 \
  34052. - old_archive_cmds_F77 \
  34053. - old_archive_from_new_cmds_F77 \
  34054. - predep_objects_F77 \
  34055. - postdep_objects_F77 \
  34056. - predeps_F77 \
  34057. - postdeps_F77 \
  34058. - compiler_lib_search_path_F77 \
  34059. - archive_cmds_F77 \
  34060. - archive_expsym_cmds_F77 \
  34061. - postinstall_cmds_F77 \
  34062. - postuninstall_cmds_F77 \
  34063. - old_archive_from_expsyms_cmds_F77 \
  34064. - allow_undefined_flag_F77 \
  34065. - no_undefined_flag_F77 \
  34066. - export_symbols_cmds_F77 \
  34067. - hardcode_libdir_flag_spec_F77 \
  34068. - hardcode_libdir_flag_spec_ld_F77 \
  34069. - hardcode_libdir_separator_F77 \
  34070. - hardcode_automatic_F77 \
  34071. - module_cmds_F77 \
  34072. - module_expsym_cmds_F77 \
  34073. - lt_cv_prog_compiler_c_o_F77 \
  34074. - exclude_expsyms_F77 \
  34075. - include_expsyms_F77; do
  34076. -
  34077. - case $var in
  34078. - old_archive_cmds_F77 | \
  34079. - old_archive_from_new_cmds_F77 | \
  34080. - archive_cmds_F77 | \
  34081. - archive_expsym_cmds_F77 | \
  34082. - module_cmds_F77 | \
  34083. - module_expsym_cmds_F77 | \
  34084. - old_archive_from_expsyms_cmds_F77 | \
  34085. - export_symbols_cmds_F77 | \
  34086. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34087. - postinstall_cmds | postuninstall_cmds | \
  34088. - old_postinstall_cmds | old_postuninstall_cmds | \
  34089. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34090. - # Double-quote double-evaled strings.
  34091. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34092. - ;;
  34093. - *)
  34094. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34095. - ;;
  34096. - esac
  34097. - done
  34098. + runpath_var=
  34099. + allow_undefined_flag=
  34100. + always_export_symbols=no
  34101. + archive_cmds=
  34102. + archive_expsym_cmds=
  34103. + compiler_needs_object=no
  34104. + enable_shared_with_static_runtimes=no
  34105. + export_dynamic_flag_spec=
  34106. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34107. + hardcode_automatic=no
  34108. + hardcode_direct=no
  34109. + hardcode_direct_absolute=no
  34110. + hardcode_libdir_flag_spec=
  34111. + hardcode_libdir_flag_spec_ld=
  34112. + hardcode_libdir_separator=
  34113. + hardcode_minus_L=no
  34114. + hardcode_shlibpath_var=unsupported
  34115. + inherit_rpath=no
  34116. + link_all_deplibs=unknown
  34117. + module_cmds=
  34118. + module_expsym_cmds=
  34119. + old_archive_from_new_cmds=
  34120. + old_archive_from_expsyms_cmds=
  34121. + thread_safe_flag_spec=
  34122. + whole_archive_flag_spec=
  34123. + # include_expsyms should be a list of space-separated symbols to be *always*
  34124. + # included in the symbol list
  34125. + include_expsyms=
  34126. + # exclude_expsyms can be an extended regexp of symbols to exclude
  34127. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34128. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34129. + # as well as any symbol that contains `d'.
  34130. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34131. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34132. + # platforms (ab)use it in PIC code, but their linkers get confused if
  34133. + # the symbol is explicitly referenced. Since portable code cannot
  34134. + # rely on this symbol name, it's probably fine to never include it in
  34135. + # preloaded symbol tables.
  34136. + # Exclude shared library initialization/finalization symbols.
  34137. + extract_expsyms_cmds=
  34138. - case $lt_echo in
  34139. - *'\$0 --fallback-echo"')
  34140. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34141. + case $host_os in
  34142. + cygwin* | mingw* | pw32* | cegcc*)
  34143. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34144. + # When not using gcc, we currently assume that we are using
  34145. + # Microsoft Visual C++.
  34146. + if test "$GCC" != yes; then
  34147. + with_gnu_ld=no
  34148. + fi
  34149. + ;;
  34150. + interix*)
  34151. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  34152. + with_gnu_ld=yes
  34153. + ;;
  34154. + openbsd*)
  34155. + with_gnu_ld=no
  34156. + ;;
  34157. + linux* | k*bsd*-gnu)
  34158. + link_all_deplibs=no
  34159. ;;
  34160. esac
  34161. -cfgfile="$ofile"
  34162. -
  34163. - cat <<__EOF__ >> "$cfgfile"
  34164. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34165. + ld_shlibs=yes
  34166. + if test "$with_gnu_ld" = yes; then
  34167. + # If archive_cmds runs LD, not CC, wlarc should be empty
  34168. + wlarc='${wl}'
  34169. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34170. + # Set some defaults for GNU ld with shared library support. These
  34171. + # are reset later if shared libraries are not supported. Putting them
  34172. + # here allows them to be overridden if necessary.
  34173. + runpath_var=LD_RUN_PATH
  34174. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34175. + export_dynamic_flag_spec='${wl}--export-dynamic'
  34176. + # ancient GNU ld didn't support --whole-archive et. al.
  34177. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  34178. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34179. + else
  34180. + whole_archive_flag_spec=
  34181. + fi
  34182. + supports_anon_versioning=no
  34183. + case `$LD -v 2>&1` in
  34184. + *GNU\ gold*) supports_anon_versioning=yes ;;
  34185. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34186. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34187. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34188. + *\ 2.11.*) ;; # other 2.11 versions
  34189. + *) supports_anon_versioning=yes ;;
  34190. + esac
  34191. -# Shell to use when invoking shell scripts.
  34192. -SHELL=$lt_SHELL
  34193. + # See if GNU ld supports shared libraries.
  34194. + case $host_os in
  34195. + aix[3-9]*)
  34196. + # On AIX/PPC, the GNU linker is very broken
  34197. + if test "$host_cpu" != ia64; then
  34198. + ld_shlibs=no
  34199. + cat <<_LT_EOF 1>&2
  34200. -# Whether or not to build shared libraries.
  34201. -build_libtool_libs=$enable_shared
  34202. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34203. +*** to be unable to reliably create shared libraries on AIX.
  34204. +*** Therefore, libtool is disabling shared libraries support. If you
  34205. +*** really care for shared libraries, you may want to modify your PATH
  34206. +*** so that a non-GNU linker is found, and then restart.
  34207. -# Whether or not to build static libraries.
  34208. -build_old_libs=$enable_static
  34209. +_LT_EOF
  34210. + fi
  34211. + ;;
  34212. -# Whether or not to add -lc for building shared libraries.
  34213. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  34214. + amigaos*)
  34215. + case $host_cpu in
  34216. + powerpc)
  34217. + # see comment about AmigaOS4 .so support
  34218. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34219. + archive_expsym_cmds=''
  34220. + ;;
  34221. + m68k)
  34222. + archive_cmds='$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)'
  34223. + hardcode_libdir_flag_spec='-L$libdir'
  34224. + hardcode_minus_L=yes
  34225. + ;;
  34226. + esac
  34227. + ;;
  34228. -# Whether or not to disallow shared libs when runtime libs are static
  34229. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  34230. + beos*)
  34231. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34232. + allow_undefined_flag=unsupported
  34233. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34234. + # support --undefined. This deserves some investigation. FIXME
  34235. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34236. + else
  34237. + ld_shlibs=no
  34238. + fi
  34239. + ;;
  34240. -# Whether or not to optimize for fast installation.
  34241. -fast_install=$enable_fast_install
  34242. + cygwin* | mingw* | pw32* | cegcc*)
  34243. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  34244. + # as there is no search path for DLLs.
  34245. + hardcode_libdir_flag_spec='-L$libdir'
  34246. + allow_undefined_flag=unsupported
  34247. + always_export_symbols=no
  34248. + enable_shared_with_static_runtimes=yes
  34249. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34250. -# The host system.
  34251. -host_alias=$host_alias
  34252. -host=$host
  34253. -host_os=$host_os
  34254. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34255. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34256. + # If the export-symbols file already is a .def file (1st line
  34257. + # is EXPORTS), use it as is; otherwise, prepend...
  34258. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34259. + cp $export_symbols $output_objdir/$soname.def;
  34260. + else
  34261. + echo EXPORTS > $output_objdir/$soname.def;
  34262. + cat $export_symbols >> $output_objdir/$soname.def;
  34263. + fi~
  34264. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34265. + else
  34266. + ld_shlibs=no
  34267. + fi
  34268. + ;;
  34269. -# The build system.
  34270. -build_alias=$build_alias
  34271. -build=$build
  34272. -build_os=$build_os
  34273. + interix[3-9]*)
  34274. + hardcode_direct=no
  34275. + hardcode_shlibpath_var=no
  34276. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34277. + export_dynamic_flag_spec='${wl}-E'
  34278. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34279. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  34280. + # default) and relocated if they conflict, which is a slow very memory
  34281. + # consuming and fragmenting process. To avoid this, we pick a random,
  34282. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34283. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34284. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34285. + archive_expsym_cmds='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'
  34286. + ;;
  34287. -# An echo program that does not interpret backslashes.
  34288. -echo=$lt_echo
  34289. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  34290. + tmp_diet=no
  34291. + if test "$host_os" = linux-dietlibc; then
  34292. + case $cc_basename in
  34293. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  34294. + esac
  34295. + fi
  34296. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  34297. + && test "$tmp_diet" = no
  34298. + then
  34299. + tmp_addflag=
  34300. + tmp_sharedflag='-shared'
  34301. + case $cc_basename,$host_cpu in
  34302. + pgcc*) # Portland Group C compiler
  34303. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34304. + tmp_addflag=' $pic_flag'
  34305. + ;;
  34306. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34307. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34308. + tmp_addflag=' $pic_flag -Mnomain' ;;
  34309. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34310. + tmp_addflag=' -i_dynamic' ;;
  34311. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34312. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  34313. + ifc* | ifort*) # Intel Fortran compiler
  34314. + tmp_addflag=' -nofor_main' ;;
  34315. + lf95*) # Lahey Fortran 8.1
  34316. + whole_archive_flag_spec=
  34317. + tmp_sharedflag='--shared' ;;
  34318. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  34319. + tmp_sharedflag='-qmkshrobj'
  34320. + tmp_addflag= ;;
  34321. + esac
  34322. + case `$CC -V 2>&1 | sed 5q` in
  34323. + *Sun\ C*) # Sun C 5.9
  34324. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34325. + compiler_needs_object=yes
  34326. + tmp_sharedflag='-G' ;;
  34327. + *Sun\ F*) # Sun Fortran 8.3
  34328. + tmp_sharedflag='-G' ;;
  34329. + esac
  34330. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34331. -# The archiver.
  34332. -AR=$lt_AR
  34333. -AR_FLAGS=$lt_AR_FLAGS
  34334. + if test "x$supports_anon_versioning" = xyes; then
  34335. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34336. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34337. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34338. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34339. + fi
  34340. -# A C compiler.
  34341. -LTCC=$lt_LTCC
  34342. + case $cc_basename in
  34343. + xlf*)
  34344. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  34345. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  34346. + hardcode_libdir_flag_spec=
  34347. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  34348. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  34349. + if test "x$supports_anon_versioning" = xyes; then
  34350. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34351. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34352. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34353. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34354. + fi
  34355. + ;;
  34356. + esac
  34357. + else
  34358. + ld_shlibs=no
  34359. + fi
  34360. + ;;
  34361. -# LTCC compiler flags.
  34362. -LTCFLAGS=$lt_LTCFLAGS
  34363. + netbsd* | netbsdelf*-gnu)
  34364. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34365. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34366. + wlarc=
  34367. + else
  34368. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34369. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34370. + fi
  34371. + ;;
  34372. -# A language-specific compiler.
  34373. -CC=$lt_compiler_F77
  34374. + solaris*)
  34375. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34376. + ld_shlibs=no
  34377. + cat <<_LT_EOF 1>&2
  34378. -# Is the compiler the GNU C compiler?
  34379. -with_gcc=$GCC_F77
  34380. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34381. +*** create shared libraries on Solaris systems. Therefore, libtool
  34382. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34383. +*** binutils to release 2.9.1 or newer. Another option is to modify
  34384. +*** your PATH or compiler configuration so that the native linker is
  34385. +*** used, and then restart.
  34386. -# An ERE matcher.
  34387. -EGREP=$lt_EGREP
  34388. +_LT_EOF
  34389. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34390. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34391. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34392. + else
  34393. + ld_shlibs=no
  34394. + fi
  34395. + ;;
  34396. -# The linker used to build libraries.
  34397. -LD=$lt_LD_F77
  34398. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34399. + case `$LD -v 2>&1` in
  34400. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34401. + ld_shlibs=no
  34402. + cat <<_LT_EOF 1>&2
  34403. -# Whether we need hard or soft links.
  34404. -LN_S=$lt_LN_S
  34405. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34406. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  34407. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34408. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34409. +*** your PATH or compiler configuration so that the native linker is
  34410. +*** used, and then restart.
  34411. -# A BSD-compatible nm program.
  34412. -NM=$lt_NM
  34413. +_LT_EOF
  34414. + ;;
  34415. + *)
  34416. + # For security reasons, it is highly recommended that you always
  34417. + # use absolute paths for naming shared libraries, and exclude the
  34418. + # DT_RUNPATH tag from executables and libraries. But doing so
  34419. + # requires that you compile everything twice, which is a pain.
  34420. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34421. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34422. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34423. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34424. + else
  34425. + ld_shlibs=no
  34426. + fi
  34427. + ;;
  34428. + esac
  34429. + ;;
  34430. -# A symbol stripping program
  34431. -STRIP=$lt_STRIP
  34432. + sunos4*)
  34433. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34434. + wlarc=
  34435. + hardcode_direct=yes
  34436. + hardcode_shlibpath_var=no
  34437. + ;;
  34438. -# Used to examine libraries when file_magic_cmd begins "file"
  34439. -MAGIC_CMD=$MAGIC_CMD
  34440. + *)
  34441. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34442. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34443. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34444. + else
  34445. + ld_shlibs=no
  34446. + fi
  34447. + ;;
  34448. + esac
  34449. -# Used on cygwin: DLL creation program.
  34450. -DLLTOOL="$DLLTOOL"
  34451. + if test "$ld_shlibs" = no; then
  34452. + runpath_var=
  34453. + hardcode_libdir_flag_spec=
  34454. + export_dynamic_flag_spec=
  34455. + whole_archive_flag_spec=
  34456. + fi
  34457. + else
  34458. + # PORTME fill in a description of your system's linker (not GNU ld)
  34459. + case $host_os in
  34460. + aix3*)
  34461. + allow_undefined_flag=unsupported
  34462. + always_export_symbols=yes
  34463. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  34464. + # Note: this linker hardcodes the directories in LIBPATH if there
  34465. + # are no directories specified by -L.
  34466. + hardcode_minus_L=yes
  34467. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34468. + # Neither direct hardcoding nor static linking is supported with a
  34469. + # broken collect2.
  34470. + hardcode_direct=unsupported
  34471. + fi
  34472. + ;;
  34473. -# Used on cygwin: object dumper.
  34474. -OBJDUMP="$OBJDUMP"
  34475. + aix[4-9]*)
  34476. + if test "$host_cpu" = ia64; then
  34477. + # On IA64, the linker does run time linking by default, so we don't
  34478. + # have to do anything special.
  34479. + aix_use_runtimelinking=no
  34480. + exp_sym_flag='-Bexport'
  34481. + no_entry_flag=""
  34482. + else
  34483. + # If we're using GNU nm, then we don't want the "-C" option.
  34484. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34485. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  34486. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34487. + else
  34488. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34489. + fi
  34490. + aix_use_runtimelinking=no
  34491. -# Used on cygwin: assembler.
  34492. -AS="$AS"
  34493. + # Test if we are trying to use run time linking or normal
  34494. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34495. + # need to do runtime linking.
  34496. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34497. + for ld_flag in $LDFLAGS; do
  34498. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34499. + aix_use_runtimelinking=yes
  34500. + break
  34501. + fi
  34502. + done
  34503. + ;;
  34504. + esac
  34505. -# The name of the directory that contains temporary libtool files.
  34506. -objdir=$objdir
  34507. + exp_sym_flag='-bexport'
  34508. + no_entry_flag='-bnoentry'
  34509. + fi
  34510. -# How to create reloadable object files.
  34511. -reload_flag=$lt_reload_flag
  34512. -reload_cmds=$lt_reload_cmds
  34513. + # When large executables or shared objects are built, AIX ld can
  34514. + # have problems creating the table of contents. If linking a library
  34515. + # or program results in "error TOC overflow" add -mminimal-toc to
  34516. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34517. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34518. -# How to pass a linker flag through the compiler.
  34519. -wl=$lt_lt_prog_compiler_wl_F77
  34520. + archive_cmds=''
  34521. + hardcode_direct=yes
  34522. + hardcode_direct_absolute=yes
  34523. + hardcode_libdir_separator=':'
  34524. + link_all_deplibs=yes
  34525. + file_list_spec='${wl}-f,'
  34526. -# Object file suffix (normally "o").
  34527. -objext="$ac_objext"
  34528. + if test "$GCC" = yes; then
  34529. + case $host_os in aix4.[012]|aix4.[012].*)
  34530. + # We only want to do this on AIX 4.2 and lower, the check
  34531. + # below for broken collect2 doesn't work under 4.3+
  34532. + collect2name=`${CC} -print-prog-name=collect2`
  34533. + if test -f "$collect2name" &&
  34534. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34535. + then
  34536. + # We have reworked collect2
  34537. + :
  34538. + else
  34539. + # We have old collect2
  34540. + hardcode_direct=unsupported
  34541. + # It fails to find uninstalled libraries when the uninstalled
  34542. + # path is not listed in the libpath. Setting hardcode_minus_L
  34543. + # to unsupported forces relinking
  34544. + hardcode_minus_L=yes
  34545. + hardcode_libdir_flag_spec='-L$libdir'
  34546. + hardcode_libdir_separator=
  34547. + fi
  34548. + ;;
  34549. + esac
  34550. + shared_flag='-shared'
  34551. + if test "$aix_use_runtimelinking" = yes; then
  34552. + shared_flag="$shared_flag "'${wl}-G'
  34553. + fi
  34554. + link_all_deplibs=no
  34555. + else
  34556. + # not using gcc
  34557. + if test "$host_cpu" = ia64; then
  34558. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34559. + # chokes on -Wl,-G. The following line is correct:
  34560. + shared_flag='-G'
  34561. + else
  34562. + if test "$aix_use_runtimelinking" = yes; then
  34563. + shared_flag='${wl}-G'
  34564. + else
  34565. + shared_flag='${wl}-bM:SRE'
  34566. + fi
  34567. + fi
  34568. + fi
  34569. -# Old archive suffix (normally "a").
  34570. -libext="$libext"
  34571. + export_dynamic_flag_spec='${wl}-bexpall'
  34572. + # It seems that -bexpall does not export symbols beginning with
  34573. + # underscore (_), so it is better to generate a list of symbols to export.
  34574. + always_export_symbols=yes
  34575. + if test "$aix_use_runtimelinking" = yes; then
  34576. + # Warning - without using the other runtime loading flags (-brtl),
  34577. + # -berok will link without error, but may produce a broken library.
  34578. + allow_undefined_flag='-berok'
  34579. + # Determine the default libpath from the value encoded in an
  34580. + # empty executable.
  34581. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34582. +/* end confdefs.h. */
  34583. -# Shared library suffix (normally ".so").
  34584. -shrext_cmds='$shrext_cmds'
  34585. +int
  34586. +main ()
  34587. +{
  34588. -# Executable file suffix (normally "").
  34589. -exeext="$exeext"
  34590. + ;
  34591. + return 0;
  34592. +}
  34593. +_ACEOF
  34594. +if ac_fn_c_try_link "$LINENO"; then :
  34595. -# Additional compiler flags for building library objects.
  34596. -pic_flag=$lt_lt_prog_compiler_pic_F77
  34597. -pic_mode=$pic_mode
  34598. +lt_aix_libpath_sed='
  34599. + /Import File Strings/,/^$/ {
  34600. + /^0/ {
  34601. + s/^0 *\(.*\)$/\1/
  34602. + p
  34603. + }
  34604. + }'
  34605. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34606. +# Check for a 64-bit object if we didn't find anything.
  34607. +if test -z "$aix_libpath"; then
  34608. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34609. +fi
  34610. +fi
  34611. +rm -f core conftest.err conftest.$ac_objext \
  34612. + conftest$ac_exeext conftest.$ac_ext
  34613. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34614. -# What is the maximum length of a command?
  34615. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34616. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34617. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34618. + else
  34619. + if test "$host_cpu" = ia64; then
  34620. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  34621. + allow_undefined_flag="-z nodefs"
  34622. + archive_expsym_cmds="\$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"
  34623. + else
  34624. + # Determine the default libpath from the value encoded in an
  34625. + # empty executable.
  34626. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34627. +/* end confdefs.h. */
  34628. -# Does compiler simultaneously support -c and -o options?
  34629. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  34630. +int
  34631. +main ()
  34632. +{
  34633. -# Must we lock files when doing compilation?
  34634. -need_locks=$lt_need_locks
  34635. + ;
  34636. + return 0;
  34637. +}
  34638. +_ACEOF
  34639. +if ac_fn_c_try_link "$LINENO"; then :
  34640. -# Do we need the lib prefix for modules?
  34641. -need_lib_prefix=$need_lib_prefix
  34642. +lt_aix_libpath_sed='
  34643. + /Import File Strings/,/^$/ {
  34644. + /^0/ {
  34645. + s/^0 *\(.*\)$/\1/
  34646. + p
  34647. + }
  34648. + }'
  34649. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34650. +# Check for a 64-bit object if we didn't find anything.
  34651. +if test -z "$aix_libpath"; then
  34652. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34653. +fi
  34654. +fi
  34655. +rm -f core conftest.err conftest.$ac_objext \
  34656. + conftest$ac_exeext conftest.$ac_ext
  34657. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34658. -# Do we need a version for libraries?
  34659. -need_version=$need_version
  34660. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34661. + # Warning - without using the other run time loading flags,
  34662. + # -berok will link without error, but may produce a broken library.
  34663. + no_undefined_flag=' ${wl}-bernotok'
  34664. + allow_undefined_flag=' ${wl}-berok'
  34665. + # Exported symbols can be pulled into shared objects from archives
  34666. + whole_archive_flag_spec='$convenience'
  34667. + archive_cmds_need_lc=yes
  34668. + # This is similar to how AIX traditionally builds its shared libraries.
  34669. + archive_expsym_cmds="\$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'
  34670. + fi
  34671. + fi
  34672. + ;;
  34673. -# Whether dlopen is supported.
  34674. -dlopen_support=$enable_dlopen
  34675. + amigaos*)
  34676. + case $host_cpu in
  34677. + powerpc)
  34678. + # see comment about AmigaOS4 .so support
  34679. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34680. + archive_expsym_cmds=''
  34681. + ;;
  34682. + m68k)
  34683. + archive_cmds='$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)'
  34684. + hardcode_libdir_flag_spec='-L$libdir'
  34685. + hardcode_minus_L=yes
  34686. + ;;
  34687. + esac
  34688. + ;;
  34689. -# Whether dlopen of programs is supported.
  34690. -dlopen_self=$enable_dlopen_self
  34691. + bsdi[45]*)
  34692. + export_dynamic_flag_spec=-rdynamic
  34693. + ;;
  34694. -# Whether dlopen of statically linked programs is supported.
  34695. -dlopen_self_static=$enable_dlopen_self_static
  34696. + cygwin* | mingw* | pw32* | cegcc*)
  34697. + # When not using gcc, we currently assume that we are using
  34698. + # Microsoft Visual C++.
  34699. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  34700. + # no search path for DLLs.
  34701. + hardcode_libdir_flag_spec=' '
  34702. + allow_undefined_flag=unsupported
  34703. + # Tell ltmain to make .lib files, not .a files.
  34704. + libext=lib
  34705. + # Tell ltmain to make .dll files, not .so files.
  34706. + shrext_cmds=".dll"
  34707. + # FIXME: Setting linknames here is a bad hack.
  34708. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34709. + # The linker will automatically build a .lib file if we build a DLL.
  34710. + old_archive_from_new_cmds='true'
  34711. + # FIXME: Should let the user specify the lib program.
  34712. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  34713. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  34714. + enable_shared_with_static_runtimes=yes
  34715. + ;;
  34716. -# Compiler flag to prevent dynamic linking.
  34717. -link_static_flag=$lt_lt_prog_compiler_static_F77
  34718. + darwin* | rhapsody*)
  34719. -# Compiler flag to turn off builtin functions.
  34720. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  34721. -# Compiler flag to allow reflexive dlopens.
  34722. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  34723. + archive_cmds_need_lc=no
  34724. + hardcode_direct=no
  34725. + hardcode_automatic=yes
  34726. + hardcode_shlibpath_var=unsupported
  34727. + whole_archive_flag_spec=''
  34728. + link_all_deplibs=yes
  34729. + allow_undefined_flag="$_lt_dar_allow_undefined"
  34730. + case $cc_basename in
  34731. + ifort*) _lt_dar_can_shared=yes ;;
  34732. + *) _lt_dar_can_shared=$GCC ;;
  34733. + esac
  34734. + if test "$_lt_dar_can_shared" = "yes"; then
  34735. + output_verbose_link_cmd=echo
  34736. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  34737. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  34738. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  34739. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  34740. -# Compiler flag to generate shared objects directly from archives.
  34741. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  34742. + else
  34743. + ld_shlibs=no
  34744. + fi
  34745. -# Compiler flag to generate thread-safe objects.
  34746. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  34747. + ;;
  34748. -# Library versioning type.
  34749. -version_type=$version_type
  34750. + dgux*)
  34751. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34752. + hardcode_libdir_flag_spec='-L$libdir'
  34753. + hardcode_shlibpath_var=no
  34754. + ;;
  34755. -# Format of library name prefix.
  34756. -libname_spec=$lt_libname_spec
  34757. + freebsd1*)
  34758. + ld_shlibs=no
  34759. + ;;
  34760. -# List of archive names. First name is the real one, the rest are links.
  34761. -# The last name is the one that the linker finds with -lNAME.
  34762. -library_names_spec=$lt_library_names_spec
  34763. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34764. + # support. Future versions do this automatically, but an explicit c++rt0.o
  34765. + # does not break anything, and helps significantly (at the cost of a little
  34766. + # extra space).
  34767. + freebsd2.2*)
  34768. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34769. + hardcode_libdir_flag_spec='-R$libdir'
  34770. + hardcode_direct=yes
  34771. + hardcode_shlibpath_var=no
  34772. + ;;
  34773. -# The coded name of the library, if different from the real name.
  34774. -soname_spec=$lt_soname_spec
  34775. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34776. + freebsd2*)
  34777. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34778. + hardcode_direct=yes
  34779. + hardcode_minus_L=yes
  34780. + hardcode_shlibpath_var=no
  34781. + ;;
  34782. -# Commands used to build and install an old-style archive.
  34783. -RANLIB=$lt_RANLIB
  34784. -old_archive_cmds=$lt_old_archive_cmds_F77
  34785. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34786. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34787. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34788. + freebsd* | dragonfly*)
  34789. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34790. + hardcode_libdir_flag_spec='-R$libdir'
  34791. + hardcode_direct=yes
  34792. + hardcode_shlibpath_var=no
  34793. + ;;
  34794. -# Create an old-style archive from a shared archive.
  34795. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  34796. + hpux9*)
  34797. + if test "$GCC" = yes; then
  34798. + archive_cmds='$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'
  34799. + else
  34800. + archive_cmds='$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'
  34801. + fi
  34802. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34803. + hardcode_libdir_separator=:
  34804. + hardcode_direct=yes
  34805. -# Create a temporary old-style archive to link instead of a shared archive.
  34806. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  34807. + # hardcode_minus_L: Not really in the search PATH,
  34808. + # but as the default location of the library.
  34809. + hardcode_minus_L=yes
  34810. + export_dynamic_flag_spec='${wl}-E'
  34811. + ;;
  34812. -# Commands used to build and install a shared archive.
  34813. -archive_cmds=$lt_archive_cmds_F77
  34814. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  34815. -postinstall_cmds=$lt_postinstall_cmds
  34816. -postuninstall_cmds=$lt_postuninstall_cmds
  34817. + hpux10*)
  34818. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34819. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34820. + else
  34821. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34822. + fi
  34823. + if test "$with_gnu_ld" = no; then
  34824. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34825. + hardcode_libdir_flag_spec_ld='+b $libdir'
  34826. + hardcode_libdir_separator=:
  34827. + hardcode_direct=yes
  34828. + hardcode_direct_absolute=yes
  34829. + export_dynamic_flag_spec='${wl}-E'
  34830. + # hardcode_minus_L: Not really in the search PATH,
  34831. + # but as the default location of the library.
  34832. + hardcode_minus_L=yes
  34833. + fi
  34834. + ;;
  34835. -# Commands used to build a loadable module (assumed same as above if empty)
  34836. -module_cmds=$lt_module_cmds_F77
  34837. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  34838. + hpux11*)
  34839. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34840. + case $host_cpu in
  34841. + hppa*64*)
  34842. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34843. + ;;
  34844. + ia64*)
  34845. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34846. + ;;
  34847. + *)
  34848. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34849. + ;;
  34850. + esac
  34851. + else
  34852. + case $host_cpu in
  34853. + hppa*64*)
  34854. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34855. + ;;
  34856. + ia64*)
  34857. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34858. + ;;
  34859. + *)
  34860. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34861. + ;;
  34862. + esac
  34863. + fi
  34864. + if test "$with_gnu_ld" = no; then
  34865. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34866. + hardcode_libdir_separator=:
  34867. -# Commands to strip libraries.
  34868. -old_striplib=$lt_old_striplib
  34869. -striplib=$lt_striplib
  34870. + case $host_cpu in
  34871. + hppa*64*|ia64*)
  34872. + hardcode_direct=no
  34873. + hardcode_shlibpath_var=no
  34874. + ;;
  34875. + *)
  34876. + hardcode_direct=yes
  34877. + hardcode_direct_absolute=yes
  34878. + export_dynamic_flag_spec='${wl}-E'
  34879. -# Dependencies to place before the objects being linked to create a
  34880. -# shared library.
  34881. -predep_objects=$lt_predep_objects_F77
  34882. -
  34883. -# Dependencies to place after the objects being linked to create a
  34884. -# shared library.
  34885. -postdep_objects=$lt_postdep_objects_F77
  34886. -
  34887. -# Dependencies to place before the objects being linked to create a
  34888. -# shared library.
  34889. -predeps=$lt_predeps_F77
  34890. -
  34891. -# Dependencies to place after the objects being linked to create a
  34892. -# shared library.
  34893. -postdeps=$lt_postdeps_F77
  34894. -
  34895. -# The library search path used internally by the compiler when linking
  34896. -# a shared library.
  34897. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  34898. + # hardcode_minus_L: Not really in the search PATH,
  34899. + # but as the default location of the library.
  34900. + hardcode_minus_L=yes
  34901. + ;;
  34902. + esac
  34903. + fi
  34904. + ;;
  34905. -# Method to check whether dependent libraries are shared objects.
  34906. -deplibs_check_method=$lt_deplibs_check_method
  34907. + irix5* | irix6* | nonstopux*)
  34908. + if test "$GCC" = yes; then
  34909. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34910. + # Try to use the -exported_symbol ld option, if it does not
  34911. + # work, assume that -exports_file does not work either and
  34912. + # implicitly export all symbols.
  34913. + save_LDFLAGS="$LDFLAGS"
  34914. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  34915. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34916. +/* end confdefs.h. */
  34917. +int foo(void) {}
  34918. +_ACEOF
  34919. +if ac_fn_c_try_link "$LINENO"; then :
  34920. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  34921. -# Command to use when deplibs_check_method == file_magic.
  34922. -file_magic_cmd=$lt_file_magic_cmd
  34923. +fi
  34924. +rm -f core conftest.err conftest.$ac_objext \
  34925. + conftest$ac_exeext conftest.$ac_ext
  34926. + LDFLAGS="$save_LDFLAGS"
  34927. + else
  34928. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  34929. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  34930. + fi
  34931. + archive_cmds_need_lc='no'
  34932. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34933. + hardcode_libdir_separator=:
  34934. + inherit_rpath=yes
  34935. + link_all_deplibs=yes
  34936. + ;;
  34937. -# Flag that allows shared libraries with undefined symbols to be built.
  34938. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  34939. + netbsd* | netbsdelf*-gnu)
  34940. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34941. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34942. + else
  34943. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34944. + fi
  34945. + hardcode_libdir_flag_spec='-R$libdir'
  34946. + hardcode_direct=yes
  34947. + hardcode_shlibpath_var=no
  34948. + ;;
  34949. -# Flag that forces no undefined symbols.
  34950. -no_undefined_flag=$lt_no_undefined_flag_F77
  34951. + newsos6)
  34952. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34953. + hardcode_direct=yes
  34954. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34955. + hardcode_libdir_separator=:
  34956. + hardcode_shlibpath_var=no
  34957. + ;;
  34958. -# Commands used to finish a libtool library installation in a directory.
  34959. -finish_cmds=$lt_finish_cmds
  34960. + *nto* | *qnx*)
  34961. + ;;
  34962. -# Same as above, but a single script fragment to be evaled but not shown.
  34963. -finish_eval=$lt_finish_eval
  34964. + openbsd*)
  34965. + if test -f /usr/libexec/ld.so; then
  34966. + hardcode_direct=yes
  34967. + hardcode_shlibpath_var=no
  34968. + hardcode_direct_absolute=yes
  34969. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34970. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34971. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34972. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34973. + export_dynamic_flag_spec='${wl}-E'
  34974. + else
  34975. + case $host_os in
  34976. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34977. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34978. + hardcode_libdir_flag_spec='-R$libdir'
  34979. + ;;
  34980. + *)
  34981. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34982. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34983. + ;;
  34984. + esac
  34985. + fi
  34986. + else
  34987. + ld_shlibs=no
  34988. + fi
  34989. + ;;
  34990. -# Take the output of nm and produce a listing of raw symbols and C names.
  34991. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34992. + os2*)
  34993. + hardcode_libdir_flag_spec='-L$libdir'
  34994. + hardcode_minus_L=yes
  34995. + allow_undefined_flag=unsupported
  34996. + archive_cmds='$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'
  34997. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34998. + ;;
  34999. -# Transform the output of nm in a proper C declaration
  35000. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35001. + osf3*)
  35002. + if test "$GCC" = yes; then
  35003. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35004. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35005. + else
  35006. + allow_undefined_flag=' -expect_unresolved \*'
  35007. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35008. + fi
  35009. + archive_cmds_need_lc='no'
  35010. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35011. + hardcode_libdir_separator=:
  35012. + ;;
  35013. -# Transform the output of nm in a C name address pair
  35014. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35015. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  35016. + if test "$GCC" = yes; then
  35017. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35018. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35019. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35020. + else
  35021. + allow_undefined_flag=' -expect_unresolved \*'
  35022. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35023. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  35024. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  35025. -# This is the shared library runtime path variable.
  35026. -runpath_var=$runpath_var
  35027. + # Both c and cxx compiler support -rpath directly
  35028. + hardcode_libdir_flag_spec='-rpath $libdir'
  35029. + fi
  35030. + archive_cmds_need_lc='no'
  35031. + hardcode_libdir_separator=:
  35032. + ;;
  35033. -# This is the shared library path variable.
  35034. -shlibpath_var=$shlibpath_var
  35035. + solaris*)
  35036. + no_undefined_flag=' -z defs'
  35037. + if test "$GCC" = yes; then
  35038. + wlarc='${wl}'
  35039. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35040. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35041. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35042. + else
  35043. + case `$CC -V 2>&1` in
  35044. + *"Compilers 5.0"*)
  35045. + wlarc=''
  35046. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35047. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35048. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  35049. + ;;
  35050. + *)
  35051. + wlarc='${wl}'
  35052. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35053. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35054. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35055. + ;;
  35056. + esac
  35057. + fi
  35058. + hardcode_libdir_flag_spec='-R$libdir'
  35059. + hardcode_shlibpath_var=no
  35060. + case $host_os in
  35061. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  35062. + *)
  35063. + # The compiler driver will combine and reorder linker options,
  35064. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  35065. + # but is careful enough not to reorder.
  35066. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  35067. + if test "$GCC" = yes; then
  35068. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35069. + else
  35070. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  35071. + fi
  35072. + ;;
  35073. + esac
  35074. + link_all_deplibs=yes
  35075. + ;;
  35076. -# Is shlibpath searched before the hard-coded library search path?
  35077. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35078. + sunos4*)
  35079. + if test "x$host_vendor" = xsequent; then
  35080. + # Use $CC to link under sequent, because it throws in some extra .o
  35081. + # files that make .init and .fini sections work.
  35082. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35083. + else
  35084. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35085. + fi
  35086. + hardcode_libdir_flag_spec='-L$libdir'
  35087. + hardcode_direct=yes
  35088. + hardcode_minus_L=yes
  35089. + hardcode_shlibpath_var=no
  35090. + ;;
  35091. -# How to hardcode a shared library path into an executable.
  35092. -hardcode_action=$hardcode_action_F77
  35093. + sysv4)
  35094. + case $host_vendor in
  35095. + sni)
  35096. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35097. + hardcode_direct=yes # is this really true???
  35098. + ;;
  35099. + siemens)
  35100. + ## LD is ld it makes a PLAMLIB
  35101. + ## CC just makes a GrossModule.
  35102. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35103. + reload_cmds='$CC -r -o $output$reload_objs'
  35104. + hardcode_direct=no
  35105. + ;;
  35106. + motorola)
  35107. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35108. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  35109. + ;;
  35110. + esac
  35111. + runpath_var='LD_RUN_PATH'
  35112. + hardcode_shlibpath_var=no
  35113. + ;;
  35114. -# Whether we should hardcode library paths into libraries.
  35115. -hardcode_into_libs=$hardcode_into_libs
  35116. + sysv4.3*)
  35117. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35118. + hardcode_shlibpath_var=no
  35119. + export_dynamic_flag_spec='-Bexport'
  35120. + ;;
  35121. -# Flag to hardcode \$libdir into a binary during linking.
  35122. -# This must work even if \$libdir does not exist.
  35123. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  35124. + sysv4*MP*)
  35125. + if test -d /usr/nec; then
  35126. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35127. + hardcode_shlibpath_var=no
  35128. + runpath_var=LD_RUN_PATH
  35129. + hardcode_runpath_var=yes
  35130. + ld_shlibs=yes
  35131. + fi
  35132. + ;;
  35133. +
  35134. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35135. + no_undefined_flag='${wl}-z,text'
  35136. + archive_cmds_need_lc=no
  35137. + hardcode_shlibpath_var=no
  35138. + runpath_var='LD_RUN_PATH'
  35139. -# If ld is used when linking, flag to hardcode \$libdir into
  35140. -# a binary during linking. This must work even if \$libdir does
  35141. -# not exist.
  35142. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  35143. -
  35144. -# Whether we need a single -rpath flag with a separated argument.
  35145. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  35146. -
  35147. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35148. -# resulting binary.
  35149. -hardcode_direct=$hardcode_direct_F77
  35150. -
  35151. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35152. -# resulting binary.
  35153. -hardcode_minus_L=$hardcode_minus_L_F77
  35154. -
  35155. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35156. -# the resulting binary.
  35157. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  35158. -
  35159. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35160. -# and all subsequent libraries and executables linked against it.
  35161. -hardcode_automatic=$hardcode_automatic_F77
  35162. + if test "$GCC" = yes; then
  35163. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35164. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35165. + else
  35166. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35167. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35168. + fi
  35169. + ;;
  35170. -# Variables whose values should be saved in libtool wrapper scripts and
  35171. -# restored at relink time.
  35172. -variables_saved_for_relink="$variables_saved_for_relink"
  35173. + sysv5* | sco3.2v5* | sco5v6*)
  35174. + # Note: We can NOT use -z defs as we might desire, because we do not
  35175. + # link with -lc, and that would cause any symbols used from libc to
  35176. + # always be unresolved, which means just about no library would
  35177. + # ever link correctly. If we're not using GNU ld we use -z text
  35178. + # though, which does catch some bad symbols but isn't as heavy-handed
  35179. + # as -z defs.
  35180. + no_undefined_flag='${wl}-z,text'
  35181. + allow_undefined_flag='${wl}-z,nodefs'
  35182. + archive_cmds_need_lc=no
  35183. + hardcode_shlibpath_var=no
  35184. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  35185. + hardcode_libdir_separator=':'
  35186. + link_all_deplibs=yes
  35187. + export_dynamic_flag_spec='${wl}-Bexport'
  35188. + runpath_var='LD_RUN_PATH'
  35189. -# Whether libtool must link a program against all its dependency libraries.
  35190. -link_all_deplibs=$link_all_deplibs_F77
  35191. + if test "$GCC" = yes; then
  35192. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35193. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35194. + else
  35195. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35196. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35197. + fi
  35198. + ;;
  35199. -# Compile-time system search path for libraries
  35200. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35201. + uts4*)
  35202. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35203. + hardcode_libdir_flag_spec='-L$libdir'
  35204. + hardcode_shlibpath_var=no
  35205. + ;;
  35206. -# Run-time system search path for libraries
  35207. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35208. + *)
  35209. + ld_shlibs=no
  35210. + ;;
  35211. + esac
  35212. -# Fix the shell variable \$srcfile for the compiler.
  35213. -fix_srcfile_path="$fix_srcfile_path_F77"
  35214. + if test x$host_vendor = xsni; then
  35215. + case $host in
  35216. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35217. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  35218. + ;;
  35219. + esac
  35220. + fi
  35221. + fi
  35222. -# Set to yes if exported symbols are required.
  35223. -always_export_symbols=$always_export_symbols_F77
  35224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  35225. +$as_echo "$ld_shlibs" >&6; }
  35226. +test "$ld_shlibs" = no && can_build_shared=no
  35227. -# The commands to list exported symbols.
  35228. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  35229. +with_gnu_ld=$with_gnu_ld
  35230. -# The commands to extract the exported symbol list from a shared archive.
  35231. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35232. -# Symbols that should not be listed in the preloaded symbols.
  35233. -exclude_expsyms=$lt_exclude_expsyms_F77
  35234. -# Symbols that must always be exported.
  35235. -include_expsyms=$lt_include_expsyms_F77
  35236. -# ### END LIBTOOL TAG CONFIG: $tagname
  35237. -__EOF__
  35238. -else
  35239. - # If there is no Makefile yet, we rely on a make rule to execute
  35240. - # `config.status --recheck' to rerun these tests and create the
  35241. - # libtool script then.
  35242. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35243. - if test -f "$ltmain_in"; then
  35244. - test -f Makefile && make "$ltmain"
  35245. - fi
  35246. -fi
  35247. -ac_ext=c
  35248. -ac_cpp='$CPP $CPPFLAGS'
  35249. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35250. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35251. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35252. -CC="$lt_save_CC"
  35253. - else
  35254. - tagname=""
  35255. - fi
  35256. - ;;
  35257. - GCJ)
  35258. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  35259. -# Source file extension for Java test sources.
  35260. -ac_ext=java
  35261. +#
  35262. +# Do we need to explicitly link libc?
  35263. +#
  35264. +case "x$archive_cmds_need_lc" in
  35265. +x|xyes)
  35266. + # Assume -lc should be added
  35267. + archive_cmds_need_lc=yes
  35268. +
  35269. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  35270. + case $archive_cmds in
  35271. + *'~'*)
  35272. + # FIXME: we may have to deal with multi-command sequences.
  35273. + ;;
  35274. + '$CC '*)
  35275. + # Test whether the compiler implicitly links with -lc since on some
  35276. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35277. + # to ld, don't add -lc before -lgcc.
  35278. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35279. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35280. + $RM conftest*
  35281. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35282. +
  35283. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35284. + (eval $ac_compile) 2>&5
  35285. + ac_status=$?
  35286. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35287. + test $ac_status = 0; } 2>conftest.err; then
  35288. + soname=conftest
  35289. + lib=conftest
  35290. + libobjs=conftest.$ac_objext
  35291. + deplibs=
  35292. + wl=$lt_prog_compiler_wl
  35293. + pic_flag=$lt_prog_compiler_pic
  35294. + compiler_flags=-v
  35295. + linker_flags=-v
  35296. + verstring=
  35297. + output_objdir=.
  35298. + libname=conftest
  35299. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35300. + allow_undefined_flag=
  35301. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35302. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35303. + ac_status=$?
  35304. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35305. + test $ac_status = 0; }
  35306. + then
  35307. + archive_cmds_need_lc=no
  35308. + else
  35309. + archive_cmds_need_lc=yes
  35310. + fi
  35311. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35312. + else
  35313. + cat conftest.err 1>&5
  35314. + fi
  35315. + $RM conftest*
  35316. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35317. +$as_echo "$archive_cmds_need_lc" >&6; }
  35318. + ;;
  35319. + esac
  35320. + fi
  35321. + ;;
  35322. +esac
  35323. +
  35324. +
  35325. +
  35326. +
  35327. -# Object file extension for compiled Java test sources.
  35328. -objext=o
  35329. -objext_GCJ=$objext
  35330. -# Code to be used in simple compile tests
  35331. -lt_simple_compile_test_code="class foo {}\n"
  35332. -# Code to be used in simple link tests
  35333. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  35334. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35335. -# If no C compiler was specified, use CC.
  35336. -LTCC=${LTCC-"$CC"}
  35337. -# If no C compiler flags were specified, use CFLAGS.
  35338. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  35339. -# Allow CC to be a program name with arguments.
  35340. -compiler=$CC
  35341. -# save warnings/boilerplate of simple test code
  35342. -ac_outfile=conftest.$ac_objext
  35343. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  35344. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35345. -_lt_compiler_boilerplate=`cat conftest.err`
  35346. -$rm conftest*
  35347. -ac_outfile=conftest.$ac_objext
  35348. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  35349. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35350. -_lt_linker_boilerplate=`cat conftest.err`
  35351. -$rm conftest*
  35352. -# Allow CC to be a program name with arguments.
  35353. -lt_save_CC="$CC"
  35354. -CC=${GCJ-"gcj"}
  35355. -compiler=$CC
  35356. -compiler_GCJ=$CC
  35357. -for cc_temp in $compiler""; do
  35358. - case $cc_temp in
  35359. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35360. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35361. - \-*) ;;
  35362. - *) break;;
  35363. - esac
  35364. -done
  35365. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35366. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  35367. -archive_cmds_need_lc_GCJ=no
  35368. -old_archive_cmds_GCJ=$old_archive_cmds
  35369. -lt_prog_compiler_no_builtin_flag_GCJ=
  35370. -if test "$GCC" = yes; then
  35371. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  35372. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  35373. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  35374. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  35375. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35376. -else
  35377. - lt_cv_prog_compiler_rtti_exceptions=no
  35378. - ac_outfile=conftest.$ac_objext
  35379. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35380. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  35381. - # Insert the option either (1) after the last *FLAGS variable, or
  35382. - # (2) before a word containing "conftest.", or (3) at the end.
  35383. - # Note that $ac_compile itself does not contain backslashes and begins
  35384. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35385. - # The option is referenced via a variable to avoid confusing sed.
  35386. - lt_compile=`echo "$ac_compile" | $SED \
  35387. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35388. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35389. - -e 's:$: $lt_compiler_flag:'`
  35390. - (eval echo "\"\$as_me:15586: $lt_compile\"" >&5)
  35391. - (eval "$lt_compile" 2>conftest.err)
  35392. - ac_status=$?
  35393. - cat conftest.err >&5
  35394. - echo "$as_me:15590: \$? = $ac_status" >&5
  35395. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35396. - # The compiler can only warn and ignore the option if not recognized
  35397. - # So say no if there are warnings other than the usual output.
  35398. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35399. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35400. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35401. - lt_cv_prog_compiler_rtti_exceptions=yes
  35402. - fi
  35403. - fi
  35404. - $rm conftest*
  35405. -fi
  35406. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  35407. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  35408. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  35409. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  35410. -else
  35411. - :
  35412. -fi
  35413. -fi
  35414. -lt_prog_compiler_wl_GCJ=
  35415. -lt_prog_compiler_pic_GCJ=
  35416. -lt_prog_compiler_static_GCJ=
  35417. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  35418. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  35419. - if test "$GCC" = yes; then
  35420. - lt_prog_compiler_wl_GCJ='-Wl,'
  35421. - lt_prog_compiler_static_GCJ='-static'
  35422. - case $host_os in
  35423. - aix*)
  35424. - # All AIX code is PIC.
  35425. - if test "$host_cpu" = ia64; then
  35426. - # AIX 5 now supports IA64 processor
  35427. - lt_prog_compiler_static_GCJ='-Bstatic'
  35428. - fi
  35429. - ;;
  35430. - amigaos*)
  35431. - # FIXME: we need at least 68020 code to build shared libraries, but
  35432. - # adding the `-m68020' flag to GCC prevents building anything better,
  35433. - # like `-m68040'.
  35434. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  35435. - ;;
  35436. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  35437. - # PIC is the default for these OSes.
  35438. - ;;
  35439. - mingw* | pw32* | os2*)
  35440. - # This hack is so that the source file can tell whether it is being
  35441. - # built for inclusion in a dll (and should export symbols for example).
  35442. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  35443. - ;;
  35444. - darwin* | rhapsody*)
  35445. - # PIC is the default on this platform
  35446. - # Common symbols not allowed in MH_DYLIB files
  35447. - lt_prog_compiler_pic_GCJ='-fno-common'
  35448. - ;;
  35449. - interix3*)
  35450. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  35451. - # Instead, we relocate shared libraries at runtime.
  35452. - ;;
  35453. - msdosdjgpp*)
  35454. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  35455. - # on systems that don't support them.
  35456. - lt_prog_compiler_can_build_shared_GCJ=no
  35457. - enable_shared=no
  35458. - ;;
  35459. - sysv4*MP*)
  35460. - if test -d /usr/nec; then
  35461. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  35462. - fi
  35463. - ;;
  35464. - hpux*)
  35465. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35466. - # not for PA HP-UX.
  35467. - case $host_cpu in
  35468. - hppa*64*|ia64*)
  35469. - # +Z the default
  35470. - ;;
  35471. - *)
  35472. - lt_prog_compiler_pic_GCJ='-fPIC'
  35473. - ;;
  35474. - esac
  35475. - ;;
  35476. - *)
  35477. - lt_prog_compiler_pic_GCJ='-fPIC'
  35478. - ;;
  35479. - esac
  35480. - else
  35481. - # PORTME Check for flag to pass linker flags through the system compiler.
  35482. - case $host_os in
  35483. - aix*)
  35484. - lt_prog_compiler_wl_GCJ='-Wl,'
  35485. - if test "$host_cpu" = ia64; then
  35486. - # AIX 5 now supports IA64 processor
  35487. - lt_prog_compiler_static_GCJ='-Bstatic'
  35488. - else
  35489. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  35490. - fi
  35491. - ;;
  35492. - darwin*)
  35493. - # PIC is the default on this platform
  35494. - # Common symbols not allowed in MH_DYLIB files
  35495. - case $cc_basename in
  35496. - xlc*)
  35497. - lt_prog_compiler_pic_GCJ='-qnocommon'
  35498. - lt_prog_compiler_wl_GCJ='-Wl,'
  35499. - ;;
  35500. - esac
  35501. - ;;
  35502. - mingw* | pw32* | os2*)
  35503. - # This hack is so that the source file can tell whether it is being
  35504. - # built for inclusion in a dll (and should export symbols for example).
  35505. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  35506. - ;;
  35507. - hpux9* | hpux10* | hpux11*)
  35508. - lt_prog_compiler_wl_GCJ='-Wl,'
  35509. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35510. - # not for PA HP-UX.
  35511. - case $host_cpu in
  35512. - hppa*64*|ia64*)
  35513. - # +Z the default
  35514. - ;;
  35515. - *)
  35516. - lt_prog_compiler_pic_GCJ='+Z'
  35517. - ;;
  35518. - esac
  35519. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  35520. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  35521. - ;;
  35522. - irix5* | irix6* | nonstopux*)
  35523. - lt_prog_compiler_wl_GCJ='-Wl,'
  35524. - # PIC (with -KPIC) is the default.
  35525. - lt_prog_compiler_static_GCJ='-non_shared'
  35526. - ;;
  35527. - newsos6)
  35528. - lt_prog_compiler_pic_GCJ='-KPIC'
  35529. - lt_prog_compiler_static_GCJ='-Bstatic'
  35530. - ;;
  35531. - linux*)
  35532. - case $cc_basename in
  35533. - icc* | ecc*)
  35534. - lt_prog_compiler_wl_GCJ='-Wl,'
  35535. - lt_prog_compiler_pic_GCJ='-KPIC'
  35536. - lt_prog_compiler_static_GCJ='-static'
  35537. - ;;
  35538. - pgcc* | pgf77* | pgf90* | pgf95*)
  35539. - # Portland Group compilers (*not* the Pentium gcc compiler,
  35540. - # which looks to be a dead project)
  35541. - lt_prog_compiler_wl_GCJ='-Wl,'
  35542. - lt_prog_compiler_pic_GCJ='-fpic'
  35543. - lt_prog_compiler_static_GCJ='-Bstatic'
  35544. - ;;
  35545. - ccc*)
  35546. - lt_prog_compiler_wl_GCJ='-Wl,'
  35547. - # All Alpha code is PIC.
  35548. - lt_prog_compiler_static_GCJ='-non_shared'
  35549. - ;;
  35550. - esac
  35551. - ;;
  35552. - osf3* | osf4* | osf5*)
  35553. - lt_prog_compiler_wl_GCJ='-Wl,'
  35554. - # All OSF/1 code is PIC.
  35555. - lt_prog_compiler_static_GCJ='-non_shared'
  35556. - ;;
  35557. - solaris*)
  35558. - lt_prog_compiler_pic_GCJ='-KPIC'
  35559. - lt_prog_compiler_static_GCJ='-Bstatic'
  35560. - case $cc_basename in
  35561. - f77* | f90* | f95*)
  35562. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  35563. - *)
  35564. - lt_prog_compiler_wl_GCJ='-Wl,';;
  35565. - esac
  35566. - ;;
  35567. - sunos4*)
  35568. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  35569. - lt_prog_compiler_pic_GCJ='-PIC'
  35570. - lt_prog_compiler_static_GCJ='-Bstatic'
  35571. - ;;
  35572. - sysv4 | sysv4.2uw2* | sysv4.3*)
  35573. - lt_prog_compiler_wl_GCJ='-Wl,'
  35574. - lt_prog_compiler_pic_GCJ='-KPIC'
  35575. - lt_prog_compiler_static_GCJ='-Bstatic'
  35576. - ;;
  35577. - sysv4*MP*)
  35578. - if test -d /usr/nec ;then
  35579. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  35580. - lt_prog_compiler_static_GCJ='-Bstatic'
  35581. - fi
  35582. - ;;
  35583. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  35584. - lt_prog_compiler_wl_GCJ='-Wl,'
  35585. - lt_prog_compiler_pic_GCJ='-KPIC'
  35586. - lt_prog_compiler_static_GCJ='-Bstatic'
  35587. - ;;
  35588. - unicos*)
  35589. - lt_prog_compiler_wl_GCJ='-Wl,'
  35590. - lt_prog_compiler_can_build_shared_GCJ=no
  35591. - ;;
  35592. - uts4*)
  35593. - lt_prog_compiler_pic_GCJ='-pic'
  35594. - lt_prog_compiler_static_GCJ='-Bstatic'
  35595. - ;;
  35596. - *)
  35597. - lt_prog_compiler_can_build_shared_GCJ=no
  35598. - ;;
  35599. - esac
  35600. - fi
  35601. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  35602. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  35603. -#
  35604. -# Check to make sure the PIC flag actually works.
  35605. -#
  35606. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  35607. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  35608. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  35609. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  35610. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35611. -else
  35612. - lt_prog_compiler_pic_works_GCJ=no
  35613. - ac_outfile=conftest.$ac_objext
  35614. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35615. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  35616. - # Insert the option either (1) after the last *FLAGS variable, or
  35617. - # (2) before a word containing "conftest.", or (3) at the end.
  35618. - # Note that $ac_compile itself does not contain backslashes and begins
  35619. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35620. - # The option is referenced via a variable to avoid confusing sed.
  35621. - lt_compile=`echo "$ac_compile" | $SED \
  35622. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35623. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35624. - -e 's:$: $lt_compiler_flag:'`
  35625. - (eval echo "\"\$as_me:15854: $lt_compile\"" >&5)
  35626. - (eval "$lt_compile" 2>conftest.err)
  35627. - ac_status=$?
  35628. - cat conftest.err >&5
  35629. - echo "$as_me:15858: \$? = $ac_status" >&5
  35630. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35631. - # The compiler can only warn and ignore the option if not recognized
  35632. - # So say no if there are warnings other than the usual output.
  35633. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35634. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35635. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35636. - lt_prog_compiler_pic_works_GCJ=yes
  35637. - fi
  35638. - fi
  35639. - $rm conftest*
  35640. -fi
  35641. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  35642. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  35643. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  35644. - case $lt_prog_compiler_pic_GCJ in
  35645. - "" | " "*) ;;
  35646. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  35647. - esac
  35648. -else
  35649. - lt_prog_compiler_pic_GCJ=
  35650. - lt_prog_compiler_can_build_shared_GCJ=no
  35651. -fi
  35652. -fi
  35653. -case $host_os in
  35654. - # For platforms which do not support PIC, -DPIC is meaningless:
  35655. - *djgpp*)
  35656. - lt_prog_compiler_pic_GCJ=
  35657. - ;;
  35658. - *)
  35659. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  35660. - ;;
  35661. -esac
  35662. -#
  35663. -# Check to make sure the static flag actually works.
  35664. -#
  35665. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  35666. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  35667. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  35668. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  35669. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35670. -else
  35671. - lt_prog_compiler_static_works_GCJ=no
  35672. - save_LDFLAGS="$LDFLAGS"
  35673. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  35674. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  35675. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  35676. - # The linker can only warn and ignore the option if not recognized
  35677. - # So say no if there are warnings
  35678. - if test -s conftest.err; then
  35679. - # Append any errors to the config.log.
  35680. - cat conftest.err 1>&5
  35681. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  35682. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35683. - if diff conftest.exp conftest.er2 >/dev/null; then
  35684. - lt_prog_compiler_static_works_GCJ=yes
  35685. - fi
  35686. - else
  35687. - lt_prog_compiler_static_works_GCJ=yes
  35688. - fi
  35689. - fi
  35690. - $rm conftest*
  35691. - LDFLAGS="$save_LDFLAGS"
  35692. -fi
  35693. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  35694. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  35695. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  35696. - :
  35697. -else
  35698. - lt_prog_compiler_static_GCJ=
  35699. -fi
  35700. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  35701. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  35702. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  35703. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35704. -else
  35705. - lt_cv_prog_compiler_c_o_GCJ=no
  35706. - $rm -r conftest 2>/dev/null
  35707. - mkdir conftest
  35708. - cd conftest
  35709. - mkdir out
  35710. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35711. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  35712. - # Insert the option either (1) after the last *FLAGS variable, or
  35713. - # (2) before a word containing "conftest.", or (3) at the end.
  35714. - # Note that $ac_compile itself does not contain backslashes and begins
  35715. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35716. - lt_compile=`echo "$ac_compile" | $SED \
  35717. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35718. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35719. - -e 's:$: $lt_compiler_flag:'`
  35720. - (eval echo "\"\$as_me:15958: $lt_compile\"" >&5)
  35721. - (eval "$lt_compile" 2>out/conftest.err)
  35722. - ac_status=$?
  35723. - cat out/conftest.err >&5
  35724. - echo "$as_me:15962: \$? = $ac_status" >&5
  35725. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35726. - then
  35727. - # The compiler can only warn and ignore the option if not recognized
  35728. - # So say no if there are warnings
  35729. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35730. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35731. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35732. - lt_cv_prog_compiler_c_o_GCJ=yes
  35733. - fi
  35734. - fi
  35735. - chmod u+w . 2>&5
  35736. - $rm conftest*
  35737. - # SGI C++ compiler will create directory out/ii_files/ for
  35738. - # template instantiation
  35739. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  35740. - $rm out/* && rmdir out
  35741. - cd ..
  35742. - rmdir conftest
  35743. - $rm conftest*
  35744. -fi
  35745. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  35746. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  35747. -hard_links="nottested"
  35748. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  35749. - # do not overwrite the value of need_locks provided by the user
  35750. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  35751. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  35752. - hard_links=yes
  35753. - $rm conftest*
  35754. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35755. - touch conftest.a
  35756. - ln conftest.a conftest.b 2>&5 || hard_links=no
  35757. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35758. - echo "$as_me:$LINENO: result: $hard_links" >&5
  35759. -echo "${ECHO_T}$hard_links" >&6
  35760. - if test "$hard_links" = no; then
  35761. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  35762. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  35763. - need_locks=warn
  35764. - fi
  35765. -else
  35766. - need_locks=no
  35767. -fi
  35768. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  35769. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  35770. - runpath_var=
  35771. - allow_undefined_flag_GCJ=
  35772. - enable_shared_with_static_runtimes_GCJ=no
  35773. - archive_cmds_GCJ=
  35774. - archive_expsym_cmds_GCJ=
  35775. - old_archive_From_new_cmds_GCJ=
  35776. - old_archive_from_expsyms_cmds_GCJ=
  35777. - export_dynamic_flag_spec_GCJ=
  35778. - whole_archive_flag_spec_GCJ=
  35779. - thread_safe_flag_spec_GCJ=
  35780. - hardcode_libdir_flag_spec_GCJ=
  35781. - hardcode_libdir_flag_spec_ld_GCJ=
  35782. - hardcode_libdir_separator_GCJ=
  35783. - hardcode_direct_GCJ=no
  35784. - hardcode_minus_L_GCJ=no
  35785. - hardcode_shlibpath_var_GCJ=unsupported
  35786. - link_all_deplibs_GCJ=unknown
  35787. - hardcode_automatic_GCJ=no
  35788. - module_cmds_GCJ=
  35789. - module_expsym_cmds_GCJ=
  35790. - always_export_symbols_GCJ=no
  35791. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  35792. - # include_expsyms should be a list of space-separated symbols to be *always*
  35793. - # included in the symbol list
  35794. - include_expsyms_GCJ=
  35795. - # exclude_expsyms can be an extended regexp of symbols to exclude
  35796. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  35797. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  35798. - # as well as any symbol that contains `d'.
  35799. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  35800. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  35801. - # platforms (ab)use it in PIC code, but their linkers get confused if
  35802. - # the symbol is explicitly referenced. Since portable code cannot
  35803. - # rely on this symbol name, it's probably fine to never include it in
  35804. - # preloaded symbol tables.
  35805. - extract_expsyms_cmds=
  35806. - # Just being paranoid about ensuring that cc_basename is set.
  35807. - for cc_temp in $compiler""; do
  35808. - case $cc_temp in
  35809. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35810. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35811. - \-*) ;;
  35812. - *) break;;
  35813. - esac
  35814. -done
  35815. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35816. - case $host_os in
  35817. - cygwin* | mingw* | pw32*)
  35818. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  35819. - # When not using gcc, we currently assume that we are using
  35820. - # Microsoft Visual C++.
  35821. - if test "$GCC" != yes; then
  35822. - with_gnu_ld=no
  35823. - fi
  35824. - ;;
  35825. - interix*)
  35826. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  35827. - with_gnu_ld=yes
  35828. - ;;
  35829. - openbsd*)
  35830. - with_gnu_ld=no
  35831. - ;;
  35832. - esac
  35833. - ld_shlibs_GCJ=yes
  35834. - if test "$with_gnu_ld" = yes; then
  35835. - # If archive_cmds runs LD, not CC, wlarc should be empty
  35836. - wlarc='${wl}'
  35837. - # Set some defaults for GNU ld with shared library support. These
  35838. - # are reset later if shared libraries are not supported. Putting them
  35839. - # here allows them to be overridden if necessary.
  35840. - runpath_var=LD_RUN_PATH
  35841. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  35842. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  35843. - # ancient GNU ld didn't support --whole-archive et. al.
  35844. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  35845. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35846. - else
  35847. - whole_archive_flag_spec_GCJ=
  35848. - fi
  35849. - supports_anon_versioning=no
  35850. - case `$LD -v 2>/dev/null` in
  35851. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  35852. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  35853. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  35854. - *\ 2.11.*) ;; # other 2.11 versions
  35855. - *) supports_anon_versioning=yes ;;
  35856. - esac
  35857. - # See if GNU ld supports shared libraries.
  35858. - case $host_os in
  35859. - aix3* | aix4* | aix5*)
  35860. - # On AIX/PPC, the GNU linker is very broken
  35861. - if test "$host_cpu" != ia64; then
  35862. - ld_shlibs_GCJ=no
  35863. - cat <<EOF 1>&2
  35864. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  35865. -*** to be unable to reliably create shared libraries on AIX.
  35866. -*** Therefore, libtool is disabling shared libraries support. If you
  35867. -*** really care for shared libraries, you may want to modify your PATH
  35868. -*** so that a non-GNU linker is found, and then restart.
  35869. -EOF
  35870. - fi
  35871. - ;;
  35872. - amigaos*)
  35873. - archive_cmds_GCJ='$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)'
  35874. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35875. - hardcode_minus_L_GCJ=yes
  35876. -
  35877. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  35878. - # that the semantics of dynamic libraries on AmigaOS, at least up
  35879. - # to version 4, is to share data among multiple programs linked
  35880. - # with the same dynamic library. Since this doesn't match the
  35881. - # behavior of shared libraries on other platforms, we can't use
  35882. - # them.
  35883. - ld_shlibs_GCJ=no
  35884. - ;;
  35885. - beos*)
  35886. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35887. - allow_undefined_flag_GCJ=unsupported
  35888. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35889. - # support --undefined. This deserves some investigation. FIXME
  35890. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35891. - else
  35892. - ld_shlibs_GCJ=no
  35893. - fi
  35894. - ;;
  35895. - cygwin* | mingw* | pw32*)
  35896. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  35897. - # as there is no search path for DLLs.
  35898. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35899. - allow_undefined_flag_GCJ=unsupported
  35900. - always_export_symbols_GCJ=no
  35901. - enable_shared_with_static_runtimes_GCJ=yes
  35902. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  35903. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  35904. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35905. - # If the export-symbols file already is a .def file (1st line
  35906. - # is EXPORTS), use it as is; otherwise, prepend...
  35907. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35908. - cp $export_symbols $output_objdir/$soname.def;
  35909. - else
  35910. - echo EXPORTS > $output_objdir/$soname.def;
  35911. - cat $export_symbols >> $output_objdir/$soname.def;
  35912. - fi~
  35913. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35914. - else
  35915. - ld_shlibs_GCJ=no
  35916. - fi
  35917. - ;;
  35918. - interix3*)
  35919. - hardcode_direct_GCJ=no
  35920. - hardcode_shlibpath_var_GCJ=no
  35921. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35922. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35923. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35924. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  35925. - # default) and relocated if they conflict, which is a slow very memory
  35926. - # consuming and fragmenting process. To avoid this, we pick a random,
  35927. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35928. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35929. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35930. - archive_expsym_cmds_GCJ='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'
  35931. - ;;
  35932. - linux*)
  35933. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35934. - tmp_addflag=
  35935. - case $cc_basename,$host_cpu in
  35936. - pgcc*) # Portland Group C compiler
  35937. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  35938. - tmp_addflag=' $pic_flag'
  35939. - ;;
  35940. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  35941. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  35942. - tmp_addflag=' $pic_flag -Mnomain' ;;
  35943. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  35944. - tmp_addflag=' -i_dynamic' ;;
  35945. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  35946. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  35947. - ifc* | ifort*) # Intel Fortran compiler
  35948. - tmp_addflag=' -nofor_main' ;;
  35949. - esac
  35950. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35951. - if test $supports_anon_versioning = yes; then
  35952. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  35953. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35954. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  35955. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35956. - fi
  35957. - link_all_deplibs_GCJ=no
  35958. - else
  35959. - ld_shlibs_GCJ=no
  35960. - fi
  35961. - ;;
  35962. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  35963. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35964. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  35965. - wlarc=
  35966. - else
  35967. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35968. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35969. - fi
  35970. - ;;
  35971. - solaris*)
  35972. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  35973. - ld_shlibs_GCJ=no
  35974. - cat <<EOF 1>&2
  35975. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  35976. -*** create shared libraries on Solaris systems. Therefore, libtool
  35977. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35978. -*** binutils to release 2.9.1 or newer. Another option is to modify
  35979. -*** your PATH or compiler configuration so that the native linker is
  35980. -*** used, and then restart.
  35981. -EOF
  35982. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35983. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35984. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35985. - else
  35986. - ld_shlibs_GCJ=no
  35987. - fi
  35988. - ;;
  35989. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  35990. - case `$LD -v 2>&1` in
  35991. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  35992. - ld_shlibs_GCJ=no
  35993. - cat <<_LT_EOF 1>&2
  35994. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  35995. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  35996. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35997. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  35998. -*** your PATH or compiler configuration so that the native linker is
  35999. -*** used, and then restart.
  36000. -_LT_EOF
  36001. - ;;
  36002. - *)
  36003. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36004. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  36005. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  36006. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  36007. - else
  36008. - ld_shlibs_GCJ=no
  36009. - fi
  36010. - ;;
  36011. - esac
  36012. - ;;
  36013. - sunos4*)
  36014. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36015. - wlarc=
  36016. - hardcode_direct_GCJ=yes
  36017. - hardcode_shlibpath_var_GCJ=no
  36018. - ;;
  36019. - *)
  36020. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  36021. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36022. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  36023. - else
  36024. - ld_shlibs_GCJ=no
  36025. - fi
  36026. - ;;
  36027. - esac
  36028. - if test "$ld_shlibs_GCJ" = no; then
  36029. - runpath_var=
  36030. - hardcode_libdir_flag_spec_GCJ=
  36031. - export_dynamic_flag_spec_GCJ=
  36032. - whole_archive_flag_spec_GCJ=
  36033. - fi
  36034. - else
  36035. - # PORTME fill in a description of your system's linker (not GNU ld)
  36036. - case $host_os in
  36037. - aix3*)
  36038. - allow_undefined_flag_GCJ=unsupported
  36039. - always_export_symbols_GCJ=yes
  36040. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  36041. - # Note: this linker hardcodes the directories in LIBPATH if there
  36042. - # are no directories specified by -L.
  36043. - hardcode_minus_L_GCJ=yes
  36044. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  36045. - # Neither direct hardcoding nor static linking is supported with a
  36046. - # broken collect2.
  36047. - hardcode_direct_GCJ=unsupported
  36048. - fi
  36049. - ;;
  36050. - aix4* | aix5*)
  36051. - if test "$host_cpu" = ia64; then
  36052. - # On IA64, the linker does run time linking by default, so we don't
  36053. - # have to do anything special.
  36054. - aix_use_runtimelinking=no
  36055. - exp_sym_flag='-Bexport'
  36056. - no_entry_flag=""
  36057. - else
  36058. - # If we're using GNU nm, then we don't want the "-C" option.
  36059. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  36060. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  36061. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  36062. - else
  36063. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  36064. - fi
  36065. - aix_use_runtimelinking=no
  36066. - # Test if we are trying to use run time linking or normal
  36067. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  36068. - # need to do runtime linking.
  36069. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  36070. - for ld_flag in $LDFLAGS; do
  36071. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  36072. - aix_use_runtimelinking=yes
  36073. - break
  36074. - fi
  36075. - done
  36076. - ;;
  36077. - esac
  36078. - exp_sym_flag='-bexport'
  36079. - no_entry_flag='-bnoentry'
  36080. - fi
  36081. - # When large executables or shared objects are built, AIX ld can
  36082. - # have problems creating the table of contents. If linking a library
  36083. - # or program results in "error TOC overflow" add -mminimal-toc to
  36084. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  36085. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  36086. - archive_cmds_GCJ=''
  36087. - hardcode_direct_GCJ=yes
  36088. - hardcode_libdir_separator_GCJ=':'
  36089. - link_all_deplibs_GCJ=yes
  36090. - if test "$GCC" = yes; then
  36091. - case $host_os in aix4.[012]|aix4.[012].*)
  36092. - # We only want to do this on AIX 4.2 and lower, the check
  36093. - # below for broken collect2 doesn't work under 4.3+
  36094. - collect2name=`${CC} -print-prog-name=collect2`
  36095. - if test -f "$collect2name" && \
  36096. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  36097. - then
  36098. - # We have reworked collect2
  36099. - hardcode_direct_GCJ=yes
  36100. - else
  36101. - # We have old collect2
  36102. - hardcode_direct_GCJ=unsupported
  36103. - # It fails to find uninstalled libraries when the uninstalled
  36104. - # path is not listed in the libpath. Setting hardcode_minus_L
  36105. - # to unsupported forces relinking
  36106. - hardcode_minus_L_GCJ=yes
  36107. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36108. - hardcode_libdir_separator_GCJ=
  36109. - fi
  36110. - ;;
  36111. - esac
  36112. - shared_flag='-shared'
  36113. - if test "$aix_use_runtimelinking" = yes; then
  36114. - shared_flag="$shared_flag "'${wl}-G'
  36115. - fi
  36116. - else
  36117. - # not using gcc
  36118. - if test "$host_cpu" = ia64; then
  36119. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  36120. - # chokes on -Wl,-G. The following line is correct:
  36121. - shared_flag='-G'
  36122. - else
  36123. - if test "$aix_use_runtimelinking" = yes; then
  36124. - shared_flag='${wl}-G'
  36125. - else
  36126. - shared_flag='${wl}-bM:SRE'
  36127. - fi
  36128. - fi
  36129. - fi
  36130. - # It seems that -bexpall does not export symbols beginning with
  36131. - # underscore (_), so it is better to generate a list of symbols to export.
  36132. - always_export_symbols_GCJ=yes
  36133. - if test "$aix_use_runtimelinking" = yes; then
  36134. - # Warning - without using the other runtime loading flags (-brtl),
  36135. - # -berok will link without error, but may produce a broken library.
  36136. - allow_undefined_flag_GCJ='-berok'
  36137. - # Determine the default libpath from the value encoded in an empty executable.
  36138. - cat >conftest.$ac_ext <<_ACEOF
  36139. -/* confdefs.h. */
  36140. -_ACEOF
  36141. -cat confdefs.h >>conftest.$ac_ext
  36142. -cat >>conftest.$ac_ext <<_ACEOF
  36143. -/* end confdefs.h. */
  36144. -int
  36145. -main ()
  36146. -{
  36147. - ;
  36148. - return 0;
  36149. -}
  36150. -_ACEOF
  36151. -rm -f conftest.$ac_objext conftest$ac_exeext
  36152. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36153. - (eval $ac_link) 2>conftest.er1
  36154. - ac_status=$?
  36155. - grep -v '^ *+' conftest.er1 >conftest.err
  36156. - rm -f conftest.er1
  36157. - cat conftest.err >&5
  36158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36159. - (exit $ac_status); } &&
  36160. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36161. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36162. - (eval $ac_try) 2>&5
  36163. - ac_status=$?
  36164. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36165. - (exit $ac_status); }; } &&
  36166. - { ac_try='test -s conftest$ac_exeext'
  36167. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36168. - (eval $ac_try) 2>&5
  36169. - ac_status=$?
  36170. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36171. - (exit $ac_status); }; }; then
  36172. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36173. -}'`
  36174. -# Check for a 64-bit object if we didn't find anything.
  36175. -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; }
  36176. -}'`; fi
  36177. -else
  36178. - echo "$as_me: failed program was:" >&5
  36179. -sed 's/^/| /' conftest.$ac_ext >&5
  36180. -fi
  36181. -rm -f conftest.err conftest.$ac_objext \
  36182. - conftest$ac_exeext conftest.$ac_ext
  36183. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36184. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  36185. - archive_expsym_cmds_GCJ="\$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"
  36186. - else
  36187. - if test "$host_cpu" = ia64; then
  36188. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  36189. - allow_undefined_flag_GCJ="-z nodefs"
  36190. - archive_expsym_cmds_GCJ="\$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"
  36191. - else
  36192. - # Determine the default libpath from the value encoded in an empty executable.
  36193. - cat >conftest.$ac_ext <<_ACEOF
  36194. -/* confdefs.h. */
  36195. -_ACEOF
  36196. -cat confdefs.h >>conftest.$ac_ext
  36197. -cat >>conftest.$ac_ext <<_ACEOF
  36198. -/* end confdefs.h. */
  36199. -int
  36200. -main ()
  36201. -{
  36202. - ;
  36203. - return 0;
  36204. -}
  36205. -_ACEOF
  36206. -rm -f conftest.$ac_objext conftest$ac_exeext
  36207. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36208. - (eval $ac_link) 2>conftest.er1
  36209. - ac_status=$?
  36210. - grep -v '^ *+' conftest.er1 >conftest.err
  36211. - rm -f conftest.er1
  36212. - cat conftest.err >&5
  36213. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36214. - (exit $ac_status); } &&
  36215. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36216. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36217. - (eval $ac_try) 2>&5
  36218. - ac_status=$?
  36219. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36220. - (exit $ac_status); }; } &&
  36221. - { ac_try='test -s conftest$ac_exeext'
  36222. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36223. - (eval $ac_try) 2>&5
  36224. - ac_status=$?
  36225. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36226. - (exit $ac_status); }; }; then
  36227. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36228. -}'`
  36229. -# Check for a 64-bit object if we didn't find anything.
  36230. -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; }
  36231. -}'`; fi
  36232. -else
  36233. - echo "$as_me: failed program was:" >&5
  36234. -sed 's/^/| /' conftest.$ac_ext >&5
  36235. -fi
  36236. -rm -f conftest.err conftest.$ac_objext \
  36237. - conftest$ac_exeext conftest.$ac_ext
  36238. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36239. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  36240. - # Warning - without using the other run time loading flags,
  36241. - # -berok will link without error, but may produce a broken library.
  36242. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  36243. - allow_undefined_flag_GCJ=' ${wl}-berok'
  36244. - # Exported symbols can be pulled into shared objects from archives
  36245. - whole_archive_flag_spec_GCJ='$convenience'
  36246. - archive_cmds_need_lc_GCJ=yes
  36247. - # This is similar to how AIX traditionally builds its shared libraries.
  36248. - archive_expsym_cmds_GCJ="\$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'
  36249. - fi
  36250. - fi
  36251. - ;;
  36252. - amigaos*)
  36253. - archive_cmds_GCJ='$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)'
  36254. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36255. - hardcode_minus_L_GCJ=yes
  36256. - # see comment about different semantics on the GNU ld section
  36257. - ld_shlibs_GCJ=no
  36258. - ;;
  36259. - bsdi[45]*)
  36260. - export_dynamic_flag_spec_GCJ=-rdynamic
  36261. - ;;
  36262. - cygwin* | mingw* | pw32*)
  36263. - # When not using gcc, we currently assume that we are using
  36264. - # Microsoft Visual C++.
  36265. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  36266. - # no search path for DLLs.
  36267. - hardcode_libdir_flag_spec_GCJ=' '
  36268. - allow_undefined_flag_GCJ=unsupported
  36269. - # Tell ltmain to make .lib files, not .a files.
  36270. - libext=lib
  36271. - # Tell ltmain to make .dll files, not .so files.
  36272. - shrext_cmds=".dll"
  36273. - # FIXME: Setting linknames here is a bad hack.
  36274. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  36275. - # The linker will automatically build a .lib file if we build a DLL.
  36276. - old_archive_From_new_cmds_GCJ='true'
  36277. - # FIXME: Should let the user specify the lib program.
  36278. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  36279. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  36280. - enable_shared_with_static_runtimes_GCJ=yes
  36281. - ;;
  36282. - darwin* | rhapsody*)
  36283. - case $host_os in
  36284. - rhapsody* | darwin1.[012])
  36285. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  36286. - ;;
  36287. - *) # Darwin 1.3 on
  36288. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  36289. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36290. - else
  36291. - case ${MACOSX_DEPLOYMENT_TARGET} in
  36292. - 10.[012])
  36293. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36294. - ;;
  36295. - 10.*)
  36296. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  36297. - ;;
  36298. - esac
  36299. - fi
  36300. - ;;
  36301. - esac
  36302. - archive_cmds_need_lc_GCJ=no
  36303. - hardcode_direct_GCJ=no
  36304. - hardcode_automatic_GCJ=yes
  36305. - hardcode_shlibpath_var_GCJ=unsupported
  36306. - whole_archive_flag_spec_GCJ=''
  36307. - link_all_deplibs_GCJ=yes
  36308. - if test "$GCC" = yes ; then
  36309. - output_verbose_link_cmd='echo'
  36310. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  36311. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36312. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36313. - archive_expsym_cmds_GCJ='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}'
  36314. - module_expsym_cmds_GCJ='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}'
  36315. - else
  36316. - case $cc_basename in
  36317. - xlc*)
  36318. - output_verbose_link_cmd='echo'
  36319. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  36320. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36321. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36322. - archive_expsym_cmds_GCJ='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}'
  36323. - module_expsym_cmds_GCJ='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}'
  36324. - ;;
  36325. - *)
  36326. - ld_shlibs_GCJ=no
  36327. - ;;
  36328. - esac
  36329. - fi
  36330. - ;;
  36331. - dgux*)
  36332. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36333. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36334. - hardcode_shlibpath_var_GCJ=no
  36335. - ;;
  36336. - freebsd1*)
  36337. - ld_shlibs_GCJ=no
  36338. - ;;
  36339. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  36340. - # support. Future versions do this automatically, but an explicit c++rt0.o
  36341. - # does not break anything, and helps significantly (at the cost of a little
  36342. - # extra space).
  36343. - freebsd2.2*)
  36344. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  36345. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36346. - hardcode_direct_GCJ=yes
  36347. - hardcode_shlibpath_var_GCJ=no
  36348. - ;;
  36349. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  36350. - freebsd2*)
  36351. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36352. - hardcode_direct_GCJ=yes
  36353. - hardcode_minus_L_GCJ=yes
  36354. - hardcode_shlibpath_var_GCJ=no
  36355. - ;;
  36356. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  36357. - freebsd* | dragonfly*)
  36358. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36359. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36360. - hardcode_direct_GCJ=yes
  36361. - hardcode_shlibpath_var_GCJ=no
  36362. - ;;
  36363. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  36364. - kfreebsd*-gnu)
  36365. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36366. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36367. - hardcode_direct_GCJ=yes
  36368. - hardcode_shlibpath_var_GCJ=no
  36369. - link_all_deplibs_GCJ=no
  36370. - ;;
  36371. - hpux9*)
  36372. - if test "$GCC" = yes; then
  36373. - archive_cmds_GCJ='$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'
  36374. - else
  36375. - archive_cmds_GCJ='$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'
  36376. - fi
  36377. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36378. - hardcode_libdir_separator_GCJ=:
  36379. - hardcode_direct_GCJ=yes
  36380. - # hardcode_minus_L: Not really in the search PATH,
  36381. - # but as the default location of the library.
  36382. - hardcode_minus_L_GCJ=yes
  36383. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36384. - ;;
  36385. - hpux10*)
  36386. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36387. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36388. - else
  36389. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  36390. - fi
  36391. - if test "$with_gnu_ld" = no; then
  36392. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36393. - hardcode_libdir_separator_GCJ=:
  36394. - hardcode_direct_GCJ=yes
  36395. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36396. - # hardcode_minus_L: Not really in the search PATH,
  36397. - # but as the default location of the library.
  36398. - hardcode_minus_L_GCJ=yes
  36399. - fi
  36400. - ;;
  36401. - hpux11*)
  36402. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36403. - case $host_cpu in
  36404. - hppa*64*)
  36405. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36406. - ;;
  36407. - ia64*)
  36408. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36409. - ;;
  36410. - *)
  36411. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36412. - ;;
  36413. - esac
  36414. - else
  36415. - case $host_cpu in
  36416. - hppa*64*)
  36417. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36418. - ;;
  36419. - ia64*)
  36420. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36421. - ;;
  36422. - *)
  36423. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36424. - ;;
  36425. - esac
  36426. - fi
  36427. - if test "$with_gnu_ld" = no; then
  36428. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36429. - hardcode_libdir_separator_GCJ=:
  36430. - case $host_cpu in
  36431. - hppa*64*|ia64*)
  36432. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  36433. - hardcode_direct_GCJ=no
  36434. - hardcode_shlibpath_var_GCJ=no
  36435. - ;;
  36436. - *)
  36437. - hardcode_direct_GCJ=yes
  36438. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36439. - # hardcode_minus_L: Not really in the search PATH,
  36440. - # but as the default location of the library.
  36441. - hardcode_minus_L_GCJ=yes
  36442. - ;;
  36443. - esac
  36444. - fi
  36445. - ;;
  36446. - irix5* | irix6* | nonstopux*)
  36447. - if test "$GCC" = yes; then
  36448. - archive_cmds_GCJ='$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'
  36449. - else
  36450. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36451. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  36452. - fi
  36453. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36454. - hardcode_libdir_separator_GCJ=:
  36455. - link_all_deplibs_GCJ=yes
  36456. - ;;
  36457. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  36458. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36459. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  36460. - else
  36461. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  36462. - fi
  36463. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36464. - hardcode_direct_GCJ=yes
  36465. - hardcode_shlibpath_var_GCJ=no
  36466. - ;;
  36467. - newsos6)
  36468. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36469. - hardcode_direct_GCJ=yes
  36470. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36471. - hardcode_libdir_separator_GCJ=:
  36472. - hardcode_shlibpath_var_GCJ=no
  36473. - ;;
  36474. - openbsd*)
  36475. - hardcode_direct_GCJ=yes
  36476. - hardcode_shlibpath_var_GCJ=no
  36477. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36478. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36479. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  36480. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36481. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36482. - else
  36483. - case $host_os in
  36484. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  36485. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36486. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36487. - ;;
  36488. - *)
  36489. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36490. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36491. - ;;
  36492. - esac
  36493. - fi
  36494. - ;;
  36495. - os2*)
  36496. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36497. - hardcode_minus_L_GCJ=yes
  36498. - allow_undefined_flag_GCJ=unsupported
  36499. - archive_cmds_GCJ='$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'
  36500. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  36501. - ;;
  36502. - osf3*)
  36503. - if test "$GCC" = yes; then
  36504. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36505. - archive_cmds_GCJ='$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'
  36506. - else
  36507. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36508. - archive_cmds_GCJ='$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'
  36509. - fi
  36510. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36511. - hardcode_libdir_separator_GCJ=:
  36512. - ;;
  36513. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  36514. - if test "$GCC" = yes; then
  36515. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36516. - archive_cmds_GCJ='$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'
  36517. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36518. - else
  36519. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36520. - archive_cmds_GCJ='$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'
  36521. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  36522. - $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'
  36523. - # Both c and cxx compiler support -rpath directly
  36524. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  36525. - fi
  36526. - hardcode_libdir_separator_GCJ=:
  36527. - ;;
  36528. - solaris*)
  36529. - no_undefined_flag_GCJ=' -z text'
  36530. - if test "$GCC" = yes; then
  36531. - wlarc='${wl}'
  36532. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36533. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36534. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  36535. - else
  36536. - wlarc=''
  36537. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36538. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36539. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  36540. - fi
  36541. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36542. - hardcode_shlibpath_var_GCJ=no
  36543. - case $host_os in
  36544. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  36545. - *)
  36546. - # The compiler driver will combine linker options so we
  36547. - # cannot just pass the convience library names through
  36548. - # without $wl, iff we do not link with $LD.
  36549. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  36550. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  36551. - case $wlarc in
  36552. - '')
  36553. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  36554. - *)
  36555. - whole_archive_flag_spec_GCJ='${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' ;;
  36556. - esac ;;
  36557. - esac
  36558. - link_all_deplibs_GCJ=yes
  36559. - ;;
  36560. - sunos4*)
  36561. - if test "x$host_vendor" = xsequent; then
  36562. - # Use $CC to link under sequent, because it throws in some extra .o
  36563. - # files that make .init and .fini sections work.
  36564. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36565. - else
  36566. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  36567. - fi
  36568. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36569. - hardcode_direct_GCJ=yes
  36570. - hardcode_minus_L_GCJ=yes
  36571. - hardcode_shlibpath_var_GCJ=no
  36572. - ;;
  36573. - sysv4)
  36574. - case $host_vendor in
  36575. - sni)
  36576. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36577. - hardcode_direct_GCJ=yes # is this really true???
  36578. - ;;
  36579. - siemens)
  36580. - ## LD is ld it makes a PLAMLIB
  36581. - ## CC just makes a GrossModule.
  36582. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36583. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  36584. - hardcode_direct_GCJ=no
  36585. - ;;
  36586. - motorola)
  36587. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36588. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  36589. - ;;
  36590. - esac
  36591. - runpath_var='LD_RUN_PATH'
  36592. - hardcode_shlibpath_var_GCJ=no
  36593. - ;;
  36594. - sysv4.3*)
  36595. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36596. - hardcode_shlibpath_var_GCJ=no
  36597. - export_dynamic_flag_spec_GCJ='-Bexport'
  36598. - ;;
  36599. - sysv4*MP*)
  36600. - if test -d /usr/nec; then
  36601. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36602. - hardcode_shlibpath_var_GCJ=no
  36603. - runpath_var=LD_RUN_PATH
  36604. - hardcode_runpath_var=yes
  36605. - ld_shlibs_GCJ=yes
  36606. - fi
  36607. - ;;
  36608. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  36609. - no_undefined_flag_GCJ='${wl}-z,text'
  36610. - archive_cmds_need_lc_GCJ=no
  36611. - hardcode_shlibpath_var_GCJ=no
  36612. - runpath_var='LD_RUN_PATH'
  36613. - if test "$GCC" = yes; then
  36614. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36615. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36616. - else
  36617. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36618. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36619. - fi
  36620. - ;;
  36621. - sysv5* | sco3.2v5* | sco5v6*)
  36622. - # Note: We can NOT use -z defs as we might desire, because we do not
  36623. - # link with -lc, and that would cause any symbols used from libc to
  36624. - # always be unresolved, which means just about no library would
  36625. - # ever link correctly. If we're not using GNU ld we use -z text
  36626. - # though, which does catch some bad symbols but isn't as heavy-handed
  36627. - # as -z defs.
  36628. - no_undefined_flag_GCJ='${wl}-z,text'
  36629. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  36630. - archive_cmds_need_lc_GCJ=no
  36631. - hardcode_shlibpath_var_GCJ=no
  36632. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  36633. - hardcode_libdir_separator_GCJ=':'
  36634. - link_all_deplibs_GCJ=yes
  36635. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  36636. - runpath_var='LD_RUN_PATH'
  36637. - if test "$GCC" = yes; then
  36638. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36639. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36640. - else
  36641. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36642. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36643. - fi
  36644. - ;;
  36645. - uts4*)
  36646. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36647. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36648. - hardcode_shlibpath_var_GCJ=no
  36649. - ;;
  36650. - *)
  36651. - ld_shlibs_GCJ=no
  36652. - ;;
  36653. - esac
  36654. - fi
  36655. -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  36656. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  36657. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  36658. -#
  36659. -# Do we need to explicitly link libc?
  36660. -#
  36661. -case "x$archive_cmds_need_lc_GCJ" in
  36662. -x|xyes)
  36663. - # Assume -lc should be added
  36664. - archive_cmds_need_lc_GCJ=yes
  36665. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  36666. - case $archive_cmds_GCJ in
  36667. - *'~'*)
  36668. - # FIXME: we may have to deal with multi-command sequences.
  36669. - ;;
  36670. - '$CC '*)
  36671. - # Test whether the compiler implicitly links with -lc since on some
  36672. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36673. - # to ld, don't add -lc before -lgcc.
  36674. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  36675. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  36676. - $rm conftest*
  36677. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36678. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36679. - (eval $ac_compile) 2>&5
  36680. - ac_status=$?
  36681. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36682. - (exit $ac_status); } 2>conftest.err; then
  36683. - soname=conftest
  36684. - lib=conftest
  36685. - libobjs=conftest.$ac_objext
  36686. - deplibs=
  36687. - wl=$lt_prog_compiler_wl_GCJ
  36688. - pic_flag=$lt_prog_compiler_pic_GCJ
  36689. - compiler_flags=-v
  36690. - linker_flags=-v
  36691. - verstring=
  36692. - output_objdir=.
  36693. - libname=conftest
  36694. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  36695. - allow_undefined_flag_GCJ=
  36696. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  36697. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36698. - ac_status=$?
  36699. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36700. - (exit $ac_status); }
  36701. - then
  36702. - archive_cmds_need_lc_GCJ=no
  36703. - else
  36704. - archive_cmds_need_lc_GCJ=yes
  36705. - fi
  36706. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  36707. - else
  36708. - cat conftest.err 1>&5
  36709. - fi
  36710. - $rm conftest*
  36711. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  36712. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  36713. - ;;
  36714. - esac
  36715. - fi
  36716. - ;;
  36717. -esac
  36718. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  36719. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  36720. +
  36721. +
  36722. +
  36723. +
  36724. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36725. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36726. +
  36727. +if test "$GCC" = yes; then
  36728. + case $host_os in
  36729. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36730. + *) lt_awk_arg="/^libraries:/" ;;
  36731. + esac
  36732. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36733. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36734. + # if the path contains ";" then we assume it to be the separator
  36735. + # otherwise default to the standard path separator (i.e. ":") - it is
  36736. + # assumed that no part of a normal pathname contains ";" but that should
  36737. + # okay in the real world where ";" in dirpaths is itself problematic.
  36738. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36739. + else
  36740. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36741. + fi
  36742. + # Ok, now we have the path, separated by spaces, we can step through it
  36743. + # and add multilib dir if necessary.
  36744. + lt_tmp_lt_search_path_spec=
  36745. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36746. + for lt_sys_path in $lt_search_path_spec; do
  36747. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36748. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36749. + else
  36750. + test -d "$lt_sys_path" && \
  36751. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36752. + fi
  36753. + done
  36754. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36755. +BEGIN {RS=" "; FS="/|\n";} {
  36756. + lt_foo="";
  36757. + lt_count=0;
  36758. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36759. + if ($lt_i != "" && $lt_i != ".") {
  36760. + if ($lt_i == "..") {
  36761. + lt_count++;
  36762. + } else {
  36763. + if (lt_count == 0) {
  36764. + lt_foo="/" $lt_i lt_foo;
  36765. + } else {
  36766. + lt_count--;
  36767. + }
  36768. + }
  36769. + }
  36770. + }
  36771. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  36772. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  36773. +}'`
  36774. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36775. +else
  36776. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36777. +fi
  36778. library_names_spec=
  36779. libname_spec='lib$name'
  36780. soname_spec=
  36781. @@ -17055,20 +9186,6 @@
  36782. version_type=none
  36783. dynamic_linker="$host_os ld.so"
  36784. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36785. -if test "$GCC" = yes; then
  36786. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36787. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  36788. - # if the path contains ";" then we assume it to be the separator
  36789. - # otherwise default to the standard path separator (i.e. ":") - it is
  36790. - # assumed that no part of a normal pathname contains ";" but that should
  36791. - # okay in the real world where ";" in dirpaths is itself problematic.
  36792. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36793. - else
  36794. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36795. - fi
  36796. -else
  36797. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36798. -fi
  36799. need_lib_prefix=unknown
  36800. hardcode_into_libs=no
  36801. @@ -17086,7 +9203,7 @@
  36802. soname_spec='${libname}${release}${shared_ext}$major'
  36803. ;;
  36804. -aix4* | aix5*)
  36805. +aix[4-9]*)
  36806. version_type=linux
  36807. need_lib_prefix=no
  36808. need_version=no
  36809. @@ -17105,7 +9222,7 @@
  36810. aix4 | aix4.[01] | aix4.[01].*)
  36811. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36812. echo ' yes '
  36813. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  36814. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36815. :
  36816. else
  36817. can_build_shared=no
  36818. @@ -17131,9 +9248,18 @@
  36819. ;;
  36820. amigaos*)
  36821. - library_names_spec='$libname.ixlibrary $libname.a'
  36822. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36823. - 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'
  36824. + case $host_cpu in
  36825. + powerpc)
  36826. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36827. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36828. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36829. + ;;
  36830. + m68k)
  36831. + library_names_spec='$libname.ixlibrary $libname.a'
  36832. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36833. + 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'
  36834. + ;;
  36835. + esac
  36836. ;;
  36837. beos*)
  36838. @@ -17156,25 +9282,28 @@
  36839. # libtool to hard-code these into programs
  36840. ;;
  36841. -cygwin* | mingw* | pw32*)
  36842. +cygwin* | mingw* | pw32* | cegcc*)
  36843. version_type=windows
  36844. shrext_cmds=".dll"
  36845. need_version=no
  36846. need_lib_prefix=no
  36847. case $GCC,$host_os in
  36848. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36849. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36850. library_names_spec='$libname.dll.a'
  36851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36852. postinstall_cmds='base_file=`basename \${file}`~
  36853. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36854. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36855. dldir=$destdir/`dirname \$dlpath`~
  36856. test -d \$dldir || mkdir -p \$dldir~
  36857. $install_prog $dir/$dlname \$dldir/$dlname~
  36858. - chmod a+x \$dldir/$dlname'
  36859. + chmod a+x \$dldir/$dlname~
  36860. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36861. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36862. + fi'
  36863. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36864. dlpath=$dir/\$dldll~
  36865. - $rm \$dlpath'
  36866. + $RM \$dlpath'
  36867. shlibpath_overrides_runpath=yes
  36868. case $host_os in
  36869. @@ -17183,20 +9312,20 @@
  36870. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36871. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36872. ;;
  36873. - mingw*)
  36874. + mingw* | cegcc*)
  36875. # MinGW DLLs use traditional 'lib' prefix
  36876. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36877. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36878. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36879. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36880. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  36881. # It is most probably a Windows format PATH printed by
  36882. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36883. # path with ; separators, and with drive letters. We can handle the
  36884. # drive letters (cygwin fileutils understands them), so leave them,
  36885. # especially as we might pass files found there to a mingw objdump,
  36886. # which wouldn't understand a cygwinified path. Ahh.
  36887. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36888. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36889. else
  36890. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36891. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36892. fi
  36893. ;;
  36894. pw32*)
  36895. @@ -17220,17 +9349,13 @@
  36896. version_type=darwin
  36897. need_lib_prefix=no
  36898. need_version=no
  36899. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36900. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36901. soname_spec='${libname}${release}${major}$shared_ext'
  36902. shlibpath_overrides_runpath=yes
  36903. shlibpath_var=DYLD_LIBRARY_PATH
  36904. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36905. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  36906. - if test "$GCC" = yes; then
  36907. - 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"`
  36908. - else
  36909. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  36910. - fi
  36911. +
  36912. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  36913. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36914. ;;
  36915. @@ -17247,18 +9372,6 @@
  36916. dynamic_linker=no
  36917. ;;
  36918. -kfreebsd*-gnu)
  36919. - version_type=linux
  36920. - need_lib_prefix=no
  36921. - need_version=no
  36922. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36923. - soname_spec='${libname}${release}${shared_ext}$major'
  36924. - shlibpath_var=LD_LIBRARY_PATH
  36925. - shlibpath_overrides_runpath=no
  36926. - hardcode_into_libs=yes
  36927. - dynamic_linker='GNU ld.so'
  36928. - ;;
  36929. -
  36930. freebsd* | dragonfly*)
  36931. # DragonFly does not have aout. When/if they implement a new
  36932. # versioning mechanism, adjust this.
  36933. @@ -17296,7 +9409,7 @@
  36934. shlibpath_overrides_runpath=no
  36935. hardcode_into_libs=yes
  36936. ;;
  36937. - freebsd*) # from 4.6 on
  36938. + *) # from 4.6 on, and DragonFly
  36939. shlibpath_overrides_runpath=yes
  36940. hardcode_into_libs=yes
  36941. ;;
  36942. @@ -17335,18 +9448,18 @@
  36943. fi
  36944. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36945. ;;
  36946. - hppa*64*)
  36947. - shrext_cmds='.sl'
  36948. - hardcode_into_libs=yes
  36949. - dynamic_linker="$host_os dld.sl"
  36950. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36951. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36952. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36953. - soname_spec='${libname}${release}${shared_ext}$major'
  36954. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36955. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36956. - ;;
  36957. - *)
  36958. + hppa*64*)
  36959. + shrext_cmds='.sl'
  36960. + hardcode_into_libs=yes
  36961. + dynamic_linker="$host_os dld.sl"
  36962. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36963. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36964. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36965. + soname_spec='${libname}${release}${shared_ext}$major'
  36966. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36967. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36968. + ;;
  36969. + *)
  36970. shrext_cmds='.sl'
  36971. dynamic_linker="$host_os dld.sl"
  36972. shlibpath_var=SHLIB_PATH
  36973. @@ -17359,7 +9472,7 @@
  36974. postinstall_cmds='chmod 555 $lib'
  36975. ;;
  36976. -interix3*)
  36977. +interix[3-9]*)
  36978. version_type=linux
  36979. need_lib_prefix=no
  36980. need_version=no
  36981. @@ -17414,7 +9527,7 @@
  36982. ;;
  36983. # This must be Linux ELF.
  36984. -linux*)
  36985. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36986. version_type=linux
  36987. need_lib_prefix=no
  36988. need_version=no
  36989. @@ -17423,6 +9536,32 @@
  36990. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36991. shlibpath_var=LD_LIBRARY_PATH
  36992. shlibpath_overrides_runpath=no
  36993. + # Some binutils ld are patched to set DT_RUNPATH
  36994. + save_LDFLAGS=$LDFLAGS
  36995. + save_libdir=$libdir
  36996. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  36997. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  36998. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36999. +/* end confdefs.h. */
  37000. +
  37001. +int
  37002. +main ()
  37003. +{
  37004. +
  37005. + ;
  37006. + return 0;
  37007. +}
  37008. +_ACEOF
  37009. +if ac_fn_c_try_link "$LINENO"; then :
  37010. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  37011. + shlibpath_overrides_runpath=yes
  37012. +fi
  37013. +fi
  37014. +rm -f core conftest.err conftest.$ac_objext \
  37015. + conftest$ac_exeext conftest.$ac_ext
  37016. + LDFLAGS=$save_LDFLAGS
  37017. + libdir=$save_libdir
  37018. +
  37019. # This implies no fast_install, which is unacceptable.
  37020. # Some rework will be needed to allow for fast_install
  37021. # before this can be enabled.
  37022. @@ -17430,7 +9569,7 @@
  37023. # Append ld.so.conf contents to the search path
  37024. if test -f /etc/ld.so.conf; then
  37025. - 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' ' '`
  37026. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  37027. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37028. fi
  37029. @@ -17455,23 +9594,11 @@
  37030. dynamic_linker='NetBSD ld.elf_so'
  37031. ;;
  37032. -knetbsd*-gnu)
  37033. - version_type=linux
  37034. - need_lib_prefix=no
  37035. - need_version=no
  37036. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37037. - soname_spec='${libname}${release}${shared_ext}$major'
  37038. - shlibpath_var=LD_LIBRARY_PATH
  37039. - shlibpath_overrides_runpath=no
  37040. - hardcode_into_libs=yes
  37041. - dynamic_linker='GNU ld.so'
  37042. - ;;
  37043. -
  37044. netbsd*)
  37045. version_type=sunos
  37046. need_lib_prefix=no
  37047. need_version=no
  37048. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37049. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  37050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37051. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37052. dynamic_linker='NetBSD (a.out) ld.so'
  37053. @@ -17492,14 +9619,16 @@
  37054. shlibpath_overrides_runpath=yes
  37055. ;;
  37056. -nto-qnx*)
  37057. - version_type=linux
  37058. +*nto* | *qnx*)
  37059. + version_type=qnx
  37060. need_lib_prefix=no
  37061. need_version=no
  37062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37063. soname_spec='${libname}${release}${shared_ext}$major'
  37064. shlibpath_var=LD_LIBRARY_PATH
  37065. - shlibpath_overrides_runpath=yes
  37066. + shlibpath_overrides_runpath=no
  37067. + hardcode_into_libs=yes
  37068. + dynamic_linker='ldqnx.so'
  37069. ;;
  37070. openbsd*)
  37071. @@ -17508,13 +9637,13 @@
  37072. need_lib_prefix=no
  37073. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  37074. case $host_os in
  37075. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37076. - *) need_version=no ;;
  37077. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37078. + *) need_version=no ;;
  37079. esac
  37080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37081. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37082. shlibpath_var=LD_LIBRARY_PATH
  37083. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37084. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37085. case $host_os in
  37086. openbsd2.[89] | openbsd2.[89].*)
  37087. shlibpath_overrides_runpath=no
  37088. @@ -17548,6 +9677,10 @@
  37089. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  37090. ;;
  37091. +rdos*)
  37092. + dynamic_linker=no
  37093. + ;;
  37094. +
  37095. solaris*)
  37096. version_type=linux
  37097. need_lib_prefix=no
  37098. @@ -17582,7 +9715,6 @@
  37099. sni)
  37100. shlibpath_overrides_runpath=no
  37101. need_lib_prefix=no
  37102. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  37103. runpath_var=LD_RUN_PATH
  37104. ;;
  37105. siemens)
  37106. @@ -17613,13 +9745,12 @@
  37107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37108. soname_spec='${libname}${release}${shared_ext}$major'
  37109. shlibpath_var=LD_LIBRARY_PATH
  37110. + shlibpath_overrides_runpath=yes
  37111. hardcode_into_libs=yes
  37112. if test "$with_gnu_ld" = yes; then
  37113. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37114. - shlibpath_overrides_runpath=no
  37115. else
  37116. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37117. - shlibpath_overrides_runpath=yes
  37118. case $host_os in
  37119. sco3.2v5*)
  37120. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37121. @@ -17629,6 +9760,17 @@
  37122. sys_lib_dlsearch_path_spec='/usr/lib'
  37123. ;;
  37124. +tpf*)
  37125. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  37126. + version_type=linux
  37127. + need_lib_prefix=no
  37128. + need_version=no
  37129. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37130. + shlibpath_var=LD_LIBRARY_PATH
  37131. + shlibpath_overrides_runpath=no
  37132. + hardcode_into_libs=yes
  37133. + ;;
  37134. +
  37135. uts4*)
  37136. version_type=linux
  37137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37138. @@ -17640,8 +9782,8 @@
  37139. dynamic_linker=no
  37140. ;;
  37141. esac
  37142. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  37143. -echo "${ECHO_T}$dynamic_linker" >&6
  37144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  37145. +$as_echo "$dynamic_linker" >&6; }
  37146. test "$dynamic_linker" = no && can_build_shared=no
  37147. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37148. @@ -17649,1059 +9791,1353 @@
  37149. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37150. fi
  37151. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  37152. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  37153. -hardcode_action_GCJ=
  37154. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  37155. - test -n "$runpath_var_GCJ" || \
  37156. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  37157. -
  37158. - # We can hardcode non-existant directories.
  37159. - if test "$hardcode_direct_GCJ" != no &&
  37160. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37161. - # have to relink, otherwise we might link with an installed library
  37162. - # when we should be linking with a yet-to-be-installed one
  37163. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  37164. - test "$hardcode_minus_L_GCJ" != no; then
  37165. - # Linking always hardcodes the temporary library directory.
  37166. - hardcode_action_GCJ=relink
  37167. - else
  37168. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37169. - hardcode_action_GCJ=immediate
  37170. - fi
  37171. -else
  37172. - # We cannot hardcode anything, or else we can only hardcode existing
  37173. - # directories.
  37174. - hardcode_action_GCJ=unsupported
  37175. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  37176. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  37177. fi
  37178. -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  37179. -echo "${ECHO_T}$hardcode_action_GCJ" >&6
  37180. -
  37181. -if test "$hardcode_action_GCJ" = relink; then
  37182. - # Fast installation is not supported
  37183. - enable_fast_install=no
  37184. -elif test "$shlibpath_overrides_runpath" = yes ||
  37185. - test "$enable_shared" = no; then
  37186. - # Fast installation is not necessary
  37187. - enable_fast_install=needless
  37188. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  37189. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  37190. fi
  37191. -# The else clause should only fire when bootstrapping the
  37192. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37193. -# with your package, and you will get complaints that there are
  37194. -# no rules to generate ltmain.sh.
  37195. -if test -f "$ltmain"; then
  37196. - # See if we are running on zsh, and set the options which allow our commands through
  37197. - # without removal of \ escapes.
  37198. - if test -n "${ZSH_VERSION+set}" ; then
  37199. - setopt NO_GLOB_SUBST
  37200. - fi
  37201. - # Now quote all the things that may contain metacharacters while being
  37202. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37203. - # variables and quote the copies for generation of the libtool script.
  37204. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37205. - SED SHELL STRIP \
  37206. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37207. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37208. - deplibs_check_method reload_flag reload_cmds need_locks \
  37209. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37210. - lt_cv_sys_global_symbol_to_c_name_address \
  37211. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37212. - old_postinstall_cmds old_postuninstall_cmds \
  37213. - compiler_GCJ \
  37214. - CC_GCJ \
  37215. - LD_GCJ \
  37216. - lt_prog_compiler_wl_GCJ \
  37217. - lt_prog_compiler_pic_GCJ \
  37218. - lt_prog_compiler_static_GCJ \
  37219. - lt_prog_compiler_no_builtin_flag_GCJ \
  37220. - export_dynamic_flag_spec_GCJ \
  37221. - thread_safe_flag_spec_GCJ \
  37222. - whole_archive_flag_spec_GCJ \
  37223. - enable_shared_with_static_runtimes_GCJ \
  37224. - old_archive_cmds_GCJ \
  37225. - old_archive_from_new_cmds_GCJ \
  37226. - predep_objects_GCJ \
  37227. - postdep_objects_GCJ \
  37228. - predeps_GCJ \
  37229. - postdeps_GCJ \
  37230. - compiler_lib_search_path_GCJ \
  37231. - archive_cmds_GCJ \
  37232. - archive_expsym_cmds_GCJ \
  37233. - postinstall_cmds_GCJ \
  37234. - postuninstall_cmds_GCJ \
  37235. - old_archive_from_expsyms_cmds_GCJ \
  37236. - allow_undefined_flag_GCJ \
  37237. - no_undefined_flag_GCJ \
  37238. - export_symbols_cmds_GCJ \
  37239. - hardcode_libdir_flag_spec_GCJ \
  37240. - hardcode_libdir_flag_spec_ld_GCJ \
  37241. - hardcode_libdir_separator_GCJ \
  37242. - hardcode_automatic_GCJ \
  37243. - module_cmds_GCJ \
  37244. - module_expsym_cmds_GCJ \
  37245. - lt_cv_prog_compiler_c_o_GCJ \
  37246. - exclude_expsyms_GCJ \
  37247. - include_expsyms_GCJ; do
  37248. -
  37249. - case $var in
  37250. - old_archive_cmds_GCJ | \
  37251. - old_archive_from_new_cmds_GCJ | \
  37252. - archive_cmds_GCJ | \
  37253. - archive_expsym_cmds_GCJ | \
  37254. - module_cmds_GCJ | \
  37255. - module_expsym_cmds_GCJ | \
  37256. - old_archive_from_expsyms_cmds_GCJ | \
  37257. - export_symbols_cmds_GCJ | \
  37258. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37259. - postinstall_cmds | postuninstall_cmds | \
  37260. - old_postinstall_cmds | old_postuninstall_cmds | \
  37261. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37262. - # Double-quote double-evaled strings.
  37263. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37264. - ;;
  37265. - *)
  37266. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37267. - ;;
  37268. - esac
  37269. - done
  37270. - case $lt_echo in
  37271. - *'\$0 --fallback-echo"')
  37272. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37273. - ;;
  37274. - esac
  37275. -cfgfile="$ofile"
  37276. - cat <<__EOF__ >> "$cfgfile"
  37277. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37278. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37279. -# Shell to use when invoking shell scripts.
  37280. -SHELL=$lt_SHELL
  37281. -# Whether or not to build shared libraries.
  37282. -build_libtool_libs=$enable_shared
  37283. -# Whether or not to build static libraries.
  37284. -build_old_libs=$enable_static
  37285. -# Whether or not to add -lc for building shared libraries.
  37286. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  37287. -# Whether or not to disallow shared libs when runtime libs are static
  37288. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  37289. -# Whether or not to optimize for fast installation.
  37290. -fast_install=$enable_fast_install
  37291. -# The host system.
  37292. -host_alias=$host_alias
  37293. -host=$host
  37294. -host_os=$host_os
  37295. -# The build system.
  37296. -build_alias=$build_alias
  37297. -build=$build
  37298. -build_os=$build_os
  37299. -# An echo program that does not interpret backslashes.
  37300. -echo=$lt_echo
  37301. -# The archiver.
  37302. -AR=$lt_AR
  37303. -AR_FLAGS=$lt_AR_FLAGS
  37304. -# A C compiler.
  37305. -LTCC=$lt_LTCC
  37306. -# LTCC compiler flags.
  37307. -LTCFLAGS=$lt_LTCFLAGS
  37308. -# A language-specific compiler.
  37309. -CC=$lt_compiler_GCJ
  37310. -# Is the compiler the GNU C compiler?
  37311. -with_gcc=$GCC_GCJ
  37312. -# An ERE matcher.
  37313. -EGREP=$lt_EGREP
  37314. -# The linker used to build libraries.
  37315. -LD=$lt_LD_GCJ
  37316. -# Whether we need hard or soft links.
  37317. -LN_S=$lt_LN_S
  37318. -# A BSD-compatible nm program.
  37319. -NM=$lt_NM
  37320. -# A symbol stripping program
  37321. -STRIP=$lt_STRIP
  37322. -# Used to examine libraries when file_magic_cmd begins "file"
  37323. -MAGIC_CMD=$MAGIC_CMD
  37324. -# Used on cygwin: DLL creation program.
  37325. -DLLTOOL="$DLLTOOL"
  37326. -# Used on cygwin: object dumper.
  37327. -OBJDUMP="$OBJDUMP"
  37328. -# Used on cygwin: assembler.
  37329. -AS="$AS"
  37330. -# The name of the directory that contains temporary libtool files.
  37331. -objdir=$objdir
  37332. -# How to create reloadable object files.
  37333. -reload_flag=$lt_reload_flag
  37334. -reload_cmds=$lt_reload_cmds
  37335. -# How to pass a linker flag through the compiler.
  37336. -wl=$lt_lt_prog_compiler_wl_GCJ
  37337. -# Object file suffix (normally "o").
  37338. -objext="$ac_objext"
  37339. -# Old archive suffix (normally "a").
  37340. -libext="$libext"
  37341. -# Shared library suffix (normally ".so").
  37342. -shrext_cmds='$shrext_cmds'
  37343. -# Executable file suffix (normally "").
  37344. -exeext="$exeext"
  37345. -# Additional compiler flags for building library objects.
  37346. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  37347. -pic_mode=$pic_mode
  37348. -# What is the maximum length of a command?
  37349. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37350. -# Does compiler simultaneously support -c and -o options?
  37351. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  37352. -# Must we lock files when doing compilation?
  37353. -need_locks=$lt_need_locks
  37354. -# Do we need the lib prefix for modules?
  37355. -need_lib_prefix=$need_lib_prefix
  37356. -# Do we need a version for libraries?
  37357. -need_version=$need_version
  37358. -# Whether dlopen is supported.
  37359. -dlopen_support=$enable_dlopen
  37360. -# Whether dlopen of programs is supported.
  37361. -dlopen_self=$enable_dlopen_self
  37362. -# Whether dlopen of statically linked programs is supported.
  37363. -dlopen_self_static=$enable_dlopen_self_static
  37364. -# Compiler flag to prevent dynamic linking.
  37365. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  37366. -# Compiler flag to turn off builtin functions.
  37367. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  37368. -# Compiler flag to allow reflexive dlopens.
  37369. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  37370. -# Compiler flag to generate shared objects directly from archives.
  37371. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  37372. -# Compiler flag to generate thread-safe objects.
  37373. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  37374. -# Library versioning type.
  37375. -version_type=$version_type
  37376. -# Format of library name prefix.
  37377. -libname_spec=$lt_libname_spec
  37378. -# List of archive names. First name is the real one, the rest are links.
  37379. -# The last name is the one that the linker finds with -lNAME.
  37380. -library_names_spec=$lt_library_names_spec
  37381. -# The coded name of the library, if different from the real name.
  37382. -soname_spec=$lt_soname_spec
  37383. -# Commands used to build and install an old-style archive.
  37384. -RANLIB=$lt_RANLIB
  37385. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  37386. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37387. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37388. -# Create an old-style archive from a shared archive.
  37389. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  37390. -# Create a temporary old-style archive to link instead of a shared archive.
  37391. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  37392. -# Commands used to build and install a shared archive.
  37393. -archive_cmds=$lt_archive_cmds_GCJ
  37394. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  37395. -postinstall_cmds=$lt_postinstall_cmds
  37396. -postuninstall_cmds=$lt_postuninstall_cmds
  37397. -# Commands used to build a loadable module (assumed same as above if empty)
  37398. -module_cmds=$lt_module_cmds_GCJ
  37399. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  37400. -# Commands to strip libraries.
  37401. -old_striplib=$lt_old_striplib
  37402. -striplib=$lt_striplib
  37403. -# Dependencies to place before the objects being linked to create a
  37404. -# shared library.
  37405. -predep_objects=$lt_predep_objects_GCJ
  37406. -
  37407. -# Dependencies to place after the objects being linked to create a
  37408. -# shared library.
  37409. -postdep_objects=$lt_postdep_objects_GCJ
  37410. -
  37411. -# Dependencies to place before the objects being linked to create a
  37412. -# shared library.
  37413. -predeps=$lt_predeps_GCJ
  37414. -
  37415. -# Dependencies to place after the objects being linked to create a
  37416. -# shared library.
  37417. -postdeps=$lt_postdeps_GCJ
  37418. -
  37419. -# The library search path used internally by the compiler when linking
  37420. -# a shared library.
  37421. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  37422. -# Method to check whether dependent libraries are shared objects.
  37423. -deplibs_check_method=$lt_deplibs_check_method
  37424. -# Command to use when deplibs_check_method == file_magic.
  37425. -file_magic_cmd=$lt_file_magic_cmd
  37426. -# Flag that allows shared libraries with undefined symbols to be built.
  37427. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  37428. -# Flag that forces no undefined symbols.
  37429. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  37430. -# Commands used to finish a libtool library installation in a directory.
  37431. -finish_cmds=$lt_finish_cmds
  37432. -# Same as above, but a single script fragment to be evaled but not shown.
  37433. -finish_eval=$lt_finish_eval
  37434. -# Take the output of nm and produce a listing of raw symbols and C names.
  37435. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37436. -# Transform the output of nm in a proper C declaration
  37437. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37438. -# Transform the output of nm in a C name address pair
  37439. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37440. -# This is the shared library runtime path variable.
  37441. -runpath_var=$runpath_var
  37442. -# This is the shared library path variable.
  37443. -shlibpath_var=$shlibpath_var
  37444. -# Is shlibpath searched before the hard-coded library search path?
  37445. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37446. -# How to hardcode a shared library path into an executable.
  37447. -hardcode_action=$hardcode_action_GCJ
  37448. -# Whether we should hardcode library paths into libraries.
  37449. -hardcode_into_libs=$hardcode_into_libs
  37450. -# Flag to hardcode \$libdir into a binary during linking.
  37451. -# This must work even if \$libdir does not exist.
  37452. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  37453. -# If ld is used when linking, flag to hardcode \$libdir into
  37454. -# a binary during linking. This must work even if \$libdir does
  37455. -# not exist.
  37456. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  37457. -
  37458. -# Whether we need a single -rpath flag with a separated argument.
  37459. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  37460. -
  37461. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37462. -# resulting binary.
  37463. -hardcode_direct=$hardcode_direct_GCJ
  37464. -
  37465. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37466. -# resulting binary.
  37467. -hardcode_minus_L=$hardcode_minus_L_GCJ
  37468. -
  37469. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37470. -# the resulting binary.
  37471. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  37472. -
  37473. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37474. -# and all subsequent libraries and executables linked against it.
  37475. -hardcode_automatic=$hardcode_automatic_GCJ
  37476. -# Variables whose values should be saved in libtool wrapper scripts and
  37477. -# restored at relink time.
  37478. -variables_saved_for_relink="$variables_saved_for_relink"
  37479. -# Whether libtool must link a program against all its dependency libraries.
  37480. -link_all_deplibs=$link_all_deplibs_GCJ
  37481. -# Compile-time system search path for libraries
  37482. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37483. -# Run-time system search path for libraries
  37484. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37485. -# Fix the shell variable \$srcfile for the compiler.
  37486. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  37487. -# Set to yes if exported symbols are required.
  37488. -always_export_symbols=$always_export_symbols_GCJ
  37489. -# The commands to list exported symbols.
  37490. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  37491. -# The commands to extract the exported symbol list from a shared archive.
  37492. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37493. -# Symbols that should not be listed in the preloaded symbols.
  37494. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  37495. -# Symbols that must always be exported.
  37496. -include_expsyms=$lt_include_expsyms_GCJ
  37497. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37498. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37499. +hardcode_action=
  37500. +if test -n "$hardcode_libdir_flag_spec" ||
  37501. + test -n "$runpath_var" ||
  37502. + test "X$hardcode_automatic" = "Xyes" ; then
  37503. +
  37504. + # We can hardcode non-existent directories.
  37505. + if test "$hardcode_direct" != no &&
  37506. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37507. + # have to relink, otherwise we might link with an installed library
  37508. + # when we should be linking with a yet-to-be-installed one
  37509. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  37510. + test "$hardcode_minus_L" != no; then
  37511. + # Linking always hardcodes the temporary library directory.
  37512. + hardcode_action=relink
  37513. + else
  37514. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37515. + hardcode_action=immediate
  37516. + fi
  37517. +else
  37518. + # We cannot hardcode anything, or else we can only hardcode existing
  37519. + # directories.
  37520. + hardcode_action=unsupported
  37521. +fi
  37522. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  37523. +$as_echo "$hardcode_action" >&6; }
  37524. +
  37525. +if test "$hardcode_action" = relink ||
  37526. + test "$inherit_rpath" = yes; then
  37527. + # Fast installation is not supported
  37528. + enable_fast_install=no
  37529. +elif test "$shlibpath_overrides_runpath" = yes ||
  37530. + test "$enable_shared" = no; then
  37531. + # Fast installation is not necessary
  37532. + enable_fast_install=needless
  37533. +fi
  37534. +
  37535. +
  37536. +
  37537. +
  37538. +
  37539. +
  37540. + if test "x$enable_dlopen" != xyes; then
  37541. + enable_dlopen=unknown
  37542. + enable_dlopen_self=unknown
  37543. + enable_dlopen_self_static=unknown
  37544. +else
  37545. + lt_cv_dlopen=no
  37546. + lt_cv_dlopen_libs=
  37547. +
  37548. + case $host_os in
  37549. + beos*)
  37550. + lt_cv_dlopen="load_add_on"
  37551. + lt_cv_dlopen_libs=
  37552. + lt_cv_dlopen_self=yes
  37553. + ;;
  37554. +
  37555. + mingw* | pw32* | cegcc*)
  37556. + lt_cv_dlopen="LoadLibrary"
  37557. + lt_cv_dlopen_libs=
  37558. + ;;
  37559. +
  37560. + cygwin*)
  37561. + lt_cv_dlopen="dlopen"
  37562. + lt_cv_dlopen_libs=
  37563. + ;;
  37564. +
  37565. + darwin*)
  37566. + # if libdl is installed we need to link against it
  37567. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37568. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37569. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37570. + $as_echo_n "(cached) " >&6
  37571. +else
  37572. + ac_check_lib_save_LIBS=$LIBS
  37573. +LIBS="-ldl $LIBS"
  37574. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37575. +/* end confdefs.h. */
  37576. +
  37577. +/* Override any GCC internal prototype to avoid an error.
  37578. + Use char because int might match the return type of a GCC
  37579. + builtin and then its argument prototype would still apply. */
  37580. +#ifdef __cplusplus
  37581. +extern "C"
  37582. +#endif
  37583. +char dlopen ();
  37584. +int
  37585. +main ()
  37586. +{
  37587. +return dlopen ();
  37588. + ;
  37589. + return 0;
  37590. +}
  37591. +_ACEOF
  37592. +if ac_fn_c_try_link "$LINENO"; then :
  37593. + ac_cv_lib_dl_dlopen=yes
  37594. +else
  37595. + ac_cv_lib_dl_dlopen=no
  37596. +fi
  37597. +rm -f core conftest.err conftest.$ac_objext \
  37598. + conftest$ac_exeext conftest.$ac_ext
  37599. +LIBS=$ac_check_lib_save_LIBS
  37600. +fi
  37601. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37602. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37603. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37604. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37605. +else
  37606. +
  37607. + lt_cv_dlopen="dyld"
  37608. + lt_cv_dlopen_libs=
  37609. + lt_cv_dlopen_self=yes
  37610. +
  37611. +fi
  37612. +
  37613. + ;;
  37614. +
  37615. + *)
  37616. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  37617. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  37618. + lt_cv_dlopen="shl_load"
  37619. +else
  37620. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  37621. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  37622. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  37623. + $as_echo_n "(cached) " >&6
  37624. +else
  37625. + ac_check_lib_save_LIBS=$LIBS
  37626. +LIBS="-ldld $LIBS"
  37627. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37628. +/* end confdefs.h. */
  37629. +
  37630. +/* Override any GCC internal prototype to avoid an error.
  37631. + Use char because int might match the return type of a GCC
  37632. + builtin and then its argument prototype would still apply. */
  37633. +#ifdef __cplusplus
  37634. +extern "C"
  37635. +#endif
  37636. +char shl_load ();
  37637. +int
  37638. +main ()
  37639. +{
  37640. +return shl_load ();
  37641. + ;
  37642. + return 0;
  37643. +}
  37644. +_ACEOF
  37645. +if ac_fn_c_try_link "$LINENO"; then :
  37646. + ac_cv_lib_dld_shl_load=yes
  37647. +else
  37648. + ac_cv_lib_dld_shl_load=no
  37649. +fi
  37650. +rm -f core conftest.err conftest.$ac_objext \
  37651. + conftest$ac_exeext conftest.$ac_ext
  37652. +LIBS=$ac_check_lib_save_LIBS
  37653. +fi
  37654. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  37655. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  37656. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  37657. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  37658. +else
  37659. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  37660. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  37661. + lt_cv_dlopen="dlopen"
  37662. +else
  37663. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37664. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37665. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37666. + $as_echo_n "(cached) " >&6
  37667. +else
  37668. + ac_check_lib_save_LIBS=$LIBS
  37669. +LIBS="-ldl $LIBS"
  37670. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37671. +/* end confdefs.h. */
  37672. +
  37673. +/* Override any GCC internal prototype to avoid an error.
  37674. + Use char because int might match the return type of a GCC
  37675. + builtin and then its argument prototype would still apply. */
  37676. +#ifdef __cplusplus
  37677. +extern "C"
  37678. +#endif
  37679. +char dlopen ();
  37680. +int
  37681. +main ()
  37682. +{
  37683. +return dlopen ();
  37684. + ;
  37685. + return 0;
  37686. +}
  37687. +_ACEOF
  37688. +if ac_fn_c_try_link "$LINENO"; then :
  37689. + ac_cv_lib_dl_dlopen=yes
  37690. +else
  37691. + ac_cv_lib_dl_dlopen=no
  37692. +fi
  37693. +rm -f core conftest.err conftest.$ac_objext \
  37694. + conftest$ac_exeext conftest.$ac_ext
  37695. +LIBS=$ac_check_lib_save_LIBS
  37696. +fi
  37697. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37698. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37699. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37700. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37701. +else
  37702. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  37703. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  37704. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  37705. + $as_echo_n "(cached) " >&6
  37706. +else
  37707. + ac_check_lib_save_LIBS=$LIBS
  37708. +LIBS="-lsvld $LIBS"
  37709. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37710. +/* end confdefs.h. */
  37711. +
  37712. +/* Override any GCC internal prototype to avoid an error.
  37713. + Use char because int might match the return type of a GCC
  37714. + builtin and then its argument prototype would still apply. */
  37715. +#ifdef __cplusplus
  37716. +extern "C"
  37717. +#endif
  37718. +char dlopen ();
  37719. +int
  37720. +main ()
  37721. +{
  37722. +return dlopen ();
  37723. + ;
  37724. + return 0;
  37725. +}
  37726. +_ACEOF
  37727. +if ac_fn_c_try_link "$LINENO"; then :
  37728. + ac_cv_lib_svld_dlopen=yes
  37729. +else
  37730. + ac_cv_lib_svld_dlopen=no
  37731. +fi
  37732. +rm -f core conftest.err conftest.$ac_objext \
  37733. + conftest$ac_exeext conftest.$ac_ext
  37734. +LIBS=$ac_check_lib_save_LIBS
  37735. +fi
  37736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  37737. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  37738. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  37739. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  37740. +else
  37741. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  37742. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  37743. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  37744. + $as_echo_n "(cached) " >&6
  37745. +else
  37746. + ac_check_lib_save_LIBS=$LIBS
  37747. +LIBS="-ldld $LIBS"
  37748. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37749. +/* end confdefs.h. */
  37750. +
  37751. +/* Override any GCC internal prototype to avoid an error.
  37752. + Use char because int might match the return type of a GCC
  37753. + builtin and then its argument prototype would still apply. */
  37754. +#ifdef __cplusplus
  37755. +extern "C"
  37756. +#endif
  37757. +char dld_link ();
  37758. +int
  37759. +main ()
  37760. +{
  37761. +return dld_link ();
  37762. + ;
  37763. + return 0;
  37764. +}
  37765. +_ACEOF
  37766. +if ac_fn_c_try_link "$LINENO"; then :
  37767. + ac_cv_lib_dld_dld_link=yes
  37768. +else
  37769. + ac_cv_lib_dld_dld_link=no
  37770. +fi
  37771. +rm -f core conftest.err conftest.$ac_objext \
  37772. + conftest$ac_exeext conftest.$ac_ext
  37773. +LIBS=$ac_check_lib_save_LIBS
  37774. +fi
  37775. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  37776. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  37777. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  37778. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  37779. +fi
  37780. +
  37781. +
  37782. +fi
  37783. +
  37784. +
  37785. +fi
  37786. +
  37787. +
  37788. +fi
  37789. +
  37790. +
  37791. +fi
  37792. +
  37793. +
  37794. +fi
  37795. +
  37796. + ;;
  37797. + esac
  37798. +
  37799. + if test "x$lt_cv_dlopen" != xno; then
  37800. + enable_dlopen=yes
  37801. + else
  37802. + enable_dlopen=no
  37803. + fi
  37804. +
  37805. + case $lt_cv_dlopen in
  37806. + dlopen)
  37807. + save_CPPFLAGS="$CPPFLAGS"
  37808. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  37809. +
  37810. + save_LDFLAGS="$LDFLAGS"
  37811. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  37812. +
  37813. + save_LIBS="$LIBS"
  37814. + LIBS="$lt_cv_dlopen_libs $LIBS"
  37815. +
  37816. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  37817. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  37818. +if test "${lt_cv_dlopen_self+set}" = set; then :
  37819. + $as_echo_n "(cached) " >&6
  37820. +else
  37821. + if test "$cross_compiling" = yes; then :
  37822. + lt_cv_dlopen_self=cross
  37823. +else
  37824. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  37825. + lt_status=$lt_dlunknown
  37826. + cat > conftest.$ac_ext <<_LT_EOF
  37827. +#line 10217 "configure"
  37828. +#include "confdefs.h"
  37829. +
  37830. +#if HAVE_DLFCN_H
  37831. +#include <dlfcn.h>
  37832. +#endif
  37833. +
  37834. +#include <stdio.h>
  37835. +
  37836. +#ifdef RTLD_GLOBAL
  37837. +# define LT_DLGLOBAL RTLD_GLOBAL
  37838. +#else
  37839. +# ifdef DL_GLOBAL
  37840. +# define LT_DLGLOBAL DL_GLOBAL
  37841. +# else
  37842. +# define LT_DLGLOBAL 0
  37843. +# endif
  37844. +#endif
  37845. +
  37846. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  37847. + find out it does not work in some platform. */
  37848. +#ifndef LT_DLLAZY_OR_NOW
  37849. +# ifdef RTLD_LAZY
  37850. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  37851. +# else
  37852. +# ifdef DL_LAZY
  37853. +# define LT_DLLAZY_OR_NOW DL_LAZY
  37854. +# else
  37855. +# ifdef RTLD_NOW
  37856. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  37857. +# else
  37858. +# ifdef DL_NOW
  37859. +# define LT_DLLAZY_OR_NOW DL_NOW
  37860. +# else
  37861. +# define LT_DLLAZY_OR_NOW 0
  37862. +# endif
  37863. +# endif
  37864. +# endif
  37865. +# endif
  37866. +#endif
  37867. +
  37868. +void fnord() { int i=42;}
  37869. +int main ()
  37870. +{
  37871. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  37872. + int status = $lt_dlunknown;
  37873. +
  37874. + if (self)
  37875. + {
  37876. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  37877. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  37878. + /* dlclose (self); */
  37879. + }
  37880. + else
  37881. + puts (dlerror ());
  37882. +
  37883. + return status;
  37884. +}
  37885. +_LT_EOF
  37886. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  37887. + (eval $ac_link) 2>&5
  37888. + ac_status=$?
  37889. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37890. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  37891. + (./conftest; exit; ) >&5 2>/dev/null
  37892. + lt_status=$?
  37893. + case x$lt_status in
  37894. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  37895. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  37896. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  37897. + esac
  37898. + else :
  37899. + # compilation failed
  37900. + lt_cv_dlopen_self=no
  37901. + fi
  37902. +fi
  37903. +rm -fr conftest*
  37904. +
  37905. +
  37906. +fi
  37907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  37908. +$as_echo "$lt_cv_dlopen_self" >&6; }
  37909. +
  37910. + if test "x$lt_cv_dlopen_self" = xyes; then
  37911. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  37912. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  37913. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  37914. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  37915. + $as_echo_n "(cached) " >&6
  37916. +else
  37917. + if test "$cross_compiling" = yes; then :
  37918. + lt_cv_dlopen_self_static=cross
  37919. +else
  37920. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  37921. + lt_status=$lt_dlunknown
  37922. + cat > conftest.$ac_ext <<_LT_EOF
  37923. +#line 10313 "configure"
  37924. +#include "confdefs.h"
  37925. +
  37926. +#if HAVE_DLFCN_H
  37927. +#include <dlfcn.h>
  37928. +#endif
  37929. +
  37930. +#include <stdio.h>
  37931. +
  37932. +#ifdef RTLD_GLOBAL
  37933. +# define LT_DLGLOBAL RTLD_GLOBAL
  37934. +#else
  37935. +# ifdef DL_GLOBAL
  37936. +# define LT_DLGLOBAL DL_GLOBAL
  37937. +# else
  37938. +# define LT_DLGLOBAL 0
  37939. +# endif
  37940. +#endif
  37941. -# ### END LIBTOOL TAG CONFIG: $tagname
  37942. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  37943. + find out it does not work in some platform. */
  37944. +#ifndef LT_DLLAZY_OR_NOW
  37945. +# ifdef RTLD_LAZY
  37946. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  37947. +# else
  37948. +# ifdef DL_LAZY
  37949. +# define LT_DLLAZY_OR_NOW DL_LAZY
  37950. +# else
  37951. +# ifdef RTLD_NOW
  37952. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  37953. +# else
  37954. +# ifdef DL_NOW
  37955. +# define LT_DLLAZY_OR_NOW DL_NOW
  37956. +# else
  37957. +# define LT_DLLAZY_OR_NOW 0
  37958. +# endif
  37959. +# endif
  37960. +# endif
  37961. +# endif
  37962. +#endif
  37963. -__EOF__
  37964. +void fnord() { int i=42;}
  37965. +int main ()
  37966. +{
  37967. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  37968. + int status = $lt_dlunknown;
  37969. + if (self)
  37970. + {
  37971. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  37972. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  37973. + /* dlclose (self); */
  37974. + }
  37975. + else
  37976. + puts (dlerror ());
  37977. -else
  37978. - # If there is no Makefile yet, we rely on a make rule to execute
  37979. - # `config.status --recheck' to rerun these tests and create the
  37980. - # libtool script then.
  37981. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37982. - if test -f "$ltmain_in"; then
  37983. - test -f Makefile && make "$ltmain"
  37984. + return status;
  37985. +}
  37986. +_LT_EOF
  37987. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  37988. + (eval $ac_link) 2>&5
  37989. + ac_status=$?
  37990. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37991. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  37992. + (./conftest; exit; ) >&5 2>/dev/null
  37993. + lt_status=$?
  37994. + case x$lt_status in
  37995. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  37996. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  37997. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  37998. + esac
  37999. + else :
  38000. + # compilation failed
  38001. + lt_cv_dlopen_self_static=no
  38002. fi
  38003. fi
  38004. +rm -fr conftest*
  38005. -ac_ext=c
  38006. -ac_cpp='$CPP $CPPFLAGS'
  38007. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38008. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38009. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38010. -
  38011. -CC="$lt_save_CC"
  38012. +fi
  38013. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  38014. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  38015. + fi
  38016. - else
  38017. - tagname=""
  38018. - fi
  38019. - ;;
  38020. + CPPFLAGS="$save_CPPFLAGS"
  38021. + LDFLAGS="$save_LDFLAGS"
  38022. + LIBS="$save_LIBS"
  38023. + ;;
  38024. + esac
  38025. - RC)
  38026. + case $lt_cv_dlopen_self in
  38027. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  38028. + *) enable_dlopen_self=unknown ;;
  38029. + esac
  38030. + case $lt_cv_dlopen_self_static in
  38031. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  38032. + *) enable_dlopen_self_static=unknown ;;
  38033. + esac
  38034. +fi
  38035. -# Source file extension for RC test sources.
  38036. -ac_ext=rc
  38037. -# Object file extension for compiled RC test sources.
  38038. -objext=o
  38039. -objext_RC=$objext
  38040. -# Code to be used in simple compile tests
  38041. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  38042. -# Code to be used in simple link tests
  38043. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  38044. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  38045. -# If no C compiler was specified, use CC.
  38046. -LTCC=${LTCC-"$CC"}
  38047. -# If no C compiler flags were specified, use CFLAGS.
  38048. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  38049. -# Allow CC to be a program name with arguments.
  38050. -compiler=$CC
  38051. -# save warnings/boilerplate of simple test code
  38052. -ac_outfile=conftest.$ac_objext
  38053. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  38054. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  38055. -_lt_compiler_boilerplate=`cat conftest.err`
  38056. -$rm conftest*
  38057. -ac_outfile=conftest.$ac_objext
  38058. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  38059. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  38060. -_lt_linker_boilerplate=`cat conftest.err`
  38061. -$rm conftest*
  38062. -# Allow CC to be a program name with arguments.
  38063. -lt_save_CC="$CC"
  38064. -CC=${RC-"windres"}
  38065. -compiler=$CC
  38066. -compiler_RC=$CC
  38067. -for cc_temp in $compiler""; do
  38068. - case $cc_temp in
  38069. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38070. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  38071. - \-*) ;;
  38072. - *) break;;
  38073. - esac
  38074. -done
  38075. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  38076. -lt_cv_prog_compiler_c_o_RC=yes
  38077. -# The else clause should only fire when bootstrapping the
  38078. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  38079. -# with your package, and you will get complaints that there are
  38080. -# no rules to generate ltmain.sh.
  38081. -if test -f "$ltmain"; then
  38082. - # See if we are running on zsh, and set the options which allow our commands through
  38083. - # without removal of \ escapes.
  38084. - if test -n "${ZSH_VERSION+set}" ; then
  38085. - setopt NO_GLOB_SUBST
  38086. - fi
  38087. - # Now quote all the things that may contain metacharacters while being
  38088. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  38089. - # variables and quote the copies for generation of the libtool script.
  38090. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  38091. - SED SHELL STRIP \
  38092. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  38093. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  38094. - deplibs_check_method reload_flag reload_cmds need_locks \
  38095. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  38096. - lt_cv_sys_global_symbol_to_c_name_address \
  38097. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  38098. - old_postinstall_cmds old_postuninstall_cmds \
  38099. - compiler_RC \
  38100. - CC_RC \
  38101. - LD_RC \
  38102. - lt_prog_compiler_wl_RC \
  38103. - lt_prog_compiler_pic_RC \
  38104. - lt_prog_compiler_static_RC \
  38105. - lt_prog_compiler_no_builtin_flag_RC \
  38106. - export_dynamic_flag_spec_RC \
  38107. - thread_safe_flag_spec_RC \
  38108. - whole_archive_flag_spec_RC \
  38109. - enable_shared_with_static_runtimes_RC \
  38110. - old_archive_cmds_RC \
  38111. - old_archive_from_new_cmds_RC \
  38112. - predep_objects_RC \
  38113. - postdep_objects_RC \
  38114. - predeps_RC \
  38115. - postdeps_RC \
  38116. - compiler_lib_search_path_RC \
  38117. - archive_cmds_RC \
  38118. - archive_expsym_cmds_RC \
  38119. - postinstall_cmds_RC \
  38120. - postuninstall_cmds_RC \
  38121. - old_archive_from_expsyms_cmds_RC \
  38122. - allow_undefined_flag_RC \
  38123. - no_undefined_flag_RC \
  38124. - export_symbols_cmds_RC \
  38125. - hardcode_libdir_flag_spec_RC \
  38126. - hardcode_libdir_flag_spec_ld_RC \
  38127. - hardcode_libdir_separator_RC \
  38128. - hardcode_automatic_RC \
  38129. - module_cmds_RC \
  38130. - module_expsym_cmds_RC \
  38131. - lt_cv_prog_compiler_c_o_RC \
  38132. - exclude_expsyms_RC \
  38133. - include_expsyms_RC; do
  38134. -
  38135. - case $var in
  38136. - old_archive_cmds_RC | \
  38137. - old_archive_from_new_cmds_RC | \
  38138. - archive_cmds_RC | \
  38139. - archive_expsym_cmds_RC | \
  38140. - module_cmds_RC | \
  38141. - module_expsym_cmds_RC | \
  38142. - old_archive_from_expsyms_cmds_RC | \
  38143. - export_symbols_cmds_RC | \
  38144. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  38145. - postinstall_cmds | postuninstall_cmds | \
  38146. - old_postinstall_cmds | old_postuninstall_cmds | \
  38147. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  38148. - # Double-quote double-evaled strings.
  38149. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  38150. - ;;
  38151. - *)
  38152. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  38153. - ;;
  38154. - esac
  38155. - done
  38156. - case $lt_echo in
  38157. - *'\$0 --fallback-echo"')
  38158. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  38159. +striplib=
  38160. +old_striplib=
  38161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  38162. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  38163. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  38164. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38165. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38166. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38167. +$as_echo "yes" >&6; }
  38168. +else
  38169. +# FIXME - insert some real tests, host_os isn't really good enough
  38170. + case $host_os in
  38171. + darwin*)
  38172. + if test -n "$STRIP" ; then
  38173. + striplib="$STRIP -x"
  38174. + old_striplib="$STRIP -S"
  38175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38176. +$as_echo "yes" >&6; }
  38177. + else
  38178. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38179. +$as_echo "no" >&6; }
  38180. + fi
  38181. + ;;
  38182. + *)
  38183. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38184. +$as_echo "no" >&6; }
  38185. ;;
  38186. esac
  38187. +fi
  38188. -cfgfile="$ofile"
  38189. - cat <<__EOF__ >> "$cfgfile"
  38190. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  38191. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  38192. -# Shell to use when invoking shell scripts.
  38193. -SHELL=$lt_SHELL
  38194. -# Whether or not to build shared libraries.
  38195. -build_libtool_libs=$enable_shared
  38196. -# Whether or not to build static libraries.
  38197. -build_old_libs=$enable_static
  38198. -# Whether or not to add -lc for building shared libraries.
  38199. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  38200. -# Whether or not to disallow shared libs when runtime libs are static
  38201. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  38202. -# Whether or not to optimize for fast installation.
  38203. -fast_install=$enable_fast_install
  38204. -# The host system.
  38205. -host_alias=$host_alias
  38206. -host=$host
  38207. -host_os=$host_os
  38208. -# The build system.
  38209. -build_alias=$build_alias
  38210. -build=$build
  38211. -build_os=$build_os
  38212. -# An echo program that does not interpret backslashes.
  38213. -echo=$lt_echo
  38214. + # Report which library types will actually be built
  38215. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  38216. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  38217. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  38218. +$as_echo "$can_build_shared" >&6; }
  38219. -# The archiver.
  38220. -AR=$lt_AR
  38221. -AR_FLAGS=$lt_AR_FLAGS
  38222. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  38223. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  38224. + test "$can_build_shared" = "no" && enable_shared=no
  38225. -# A C compiler.
  38226. -LTCC=$lt_LTCC
  38227. + # On AIX, shared libraries and static libraries use the same namespace, and
  38228. + # are all built from PIC.
  38229. + case $host_os in
  38230. + aix3*)
  38231. + test "$enable_shared" = yes && enable_static=no
  38232. + if test -n "$RANLIB"; then
  38233. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38234. + postinstall_cmds='$RANLIB $lib'
  38235. + fi
  38236. + ;;
  38237. -# LTCC compiler flags.
  38238. -LTCFLAGS=$lt_LTCFLAGS
  38239. + aix[4-9]*)
  38240. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38241. + test "$enable_shared" = yes && enable_static=no
  38242. + fi
  38243. + ;;
  38244. + esac
  38245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  38246. +$as_echo "$enable_shared" >&6; }
  38247. -# A language-specific compiler.
  38248. -CC=$lt_compiler_RC
  38249. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  38250. +$as_echo_n "checking whether to build static libraries... " >&6; }
  38251. + # Make sure either enable_shared or enable_static is yes.
  38252. + test "$enable_shared" = yes || enable_static=yes
  38253. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  38254. +$as_echo "$enable_static" >&6; }
  38255. -# Is the compiler the GNU C compiler?
  38256. -with_gcc=$GCC_RC
  38257. -# An ERE matcher.
  38258. -EGREP=$lt_EGREP
  38259. -# The linker used to build libraries.
  38260. -LD=$lt_LD_RC
  38261. -# Whether we need hard or soft links.
  38262. -LN_S=$lt_LN_S
  38263. +fi
  38264. +ac_ext=c
  38265. +ac_cpp='$CPP $CPPFLAGS'
  38266. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38267. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38268. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38269. -# A BSD-compatible nm program.
  38270. -NM=$lt_NM
  38271. +CC="$lt_save_CC"
  38272. -# A symbol stripping program
  38273. -STRIP=$lt_STRIP
  38274. -# Used to examine libraries when file_magic_cmd begins "file"
  38275. -MAGIC_CMD=$MAGIC_CMD
  38276. -# Used on cygwin: DLL creation program.
  38277. -DLLTOOL="$DLLTOOL"
  38278. -# Used on cygwin: object dumper.
  38279. -OBJDUMP="$OBJDUMP"
  38280. -# Used on cygwin: assembler.
  38281. -AS="$AS"
  38282. -# The name of the directory that contains temporary libtool files.
  38283. -objdir=$objdir
  38284. -# How to create reloadable object files.
  38285. -reload_flag=$lt_reload_flag
  38286. -reload_cmds=$lt_reload_cmds
  38287. -# How to pass a linker flag through the compiler.
  38288. -wl=$lt_lt_prog_compiler_wl_RC
  38289. -# Object file suffix (normally "o").
  38290. -objext="$ac_objext"
  38291. -# Old archive suffix (normally "a").
  38292. -libext="$libext"
  38293. -# Shared library suffix (normally ".so").
  38294. -shrext_cmds='$shrext_cmds'
  38295. -# Executable file suffix (normally "").
  38296. -exeext="$exeext"
  38297. -# Additional compiler flags for building library objects.
  38298. -pic_flag=$lt_lt_prog_compiler_pic_RC
  38299. -pic_mode=$pic_mode
  38300. + ac_config_commands="$ac_config_commands libtool"
  38301. -# What is the maximum length of a command?
  38302. -max_cmd_len=$lt_cv_sys_max_cmd_len
  38303. -# Does compiler simultaneously support -c and -o options?
  38304. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  38305. -# Must we lock files when doing compilation?
  38306. -need_locks=$lt_need_locks
  38307. -# Do we need the lib prefix for modules?
  38308. -need_lib_prefix=$need_lib_prefix
  38309. +# Only expand once:
  38310. -# Do we need a version for libraries?
  38311. -need_version=$need_version
  38312. -# Whether dlopen is supported.
  38313. -dlopen_support=$enable_dlopen
  38314. -# Whether dlopen of programs is supported.
  38315. -dlopen_self=$enable_dlopen_self
  38316. +#
  38317. +# Check for Xrender
  38318. +#
  38319. -# Whether dlopen of statically linked programs is supported.
  38320. -dlopen_self_static=$enable_dlopen_self_static
  38321. -# Compiler flag to prevent dynamic linking.
  38322. -link_static_flag=$lt_lt_prog_compiler_static_RC
  38323. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  38324. + if test -n "$ac_tool_prefix"; then
  38325. + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  38326. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  38327. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38328. +$as_echo_n "checking for $ac_word... " >&6; }
  38329. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  38330. + $as_echo_n "(cached) " >&6
  38331. +else
  38332. + case $PKG_CONFIG in
  38333. + [\\/]* | ?:[\\/]*)
  38334. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  38335. + ;;
  38336. + *)
  38337. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38338. +for as_dir in $PATH
  38339. +do
  38340. + IFS=$as_save_IFS
  38341. + test -z "$as_dir" && as_dir=.
  38342. + for ac_exec_ext in '' $ac_executable_extensions; do
  38343. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38344. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  38345. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38346. + break 2
  38347. + fi
  38348. +done
  38349. + done
  38350. +IFS=$as_save_IFS
  38351. -# Compiler flag to turn off builtin functions.
  38352. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  38353. + ;;
  38354. +esac
  38355. +fi
  38356. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  38357. +if test -n "$PKG_CONFIG"; then
  38358. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  38359. +$as_echo "$PKG_CONFIG" >&6; }
  38360. +else
  38361. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38362. +$as_echo "no" >&6; }
  38363. +fi
  38364. -# Compiler flag to allow reflexive dlopens.
  38365. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  38366. -# Compiler flag to generate shared objects directly from archives.
  38367. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  38368. +fi
  38369. +if test -z "$ac_cv_path_PKG_CONFIG"; then
  38370. + ac_pt_PKG_CONFIG=$PKG_CONFIG
  38371. + # Extract the first word of "pkg-config", so it can be a program name with args.
  38372. +set dummy pkg-config; ac_word=$2
  38373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38374. +$as_echo_n "checking for $ac_word... " >&6; }
  38375. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  38376. + $as_echo_n "(cached) " >&6
  38377. +else
  38378. + case $ac_pt_PKG_CONFIG in
  38379. + [\\/]* | ?:[\\/]*)
  38380. + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  38381. + ;;
  38382. + *)
  38383. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38384. +for as_dir in $PATH
  38385. +do
  38386. + IFS=$as_save_IFS
  38387. + test -z "$as_dir" && as_dir=.
  38388. + for ac_exec_ext in '' $ac_executable_extensions; do
  38389. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38390. + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  38391. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38392. + break 2
  38393. + fi
  38394. +done
  38395. + done
  38396. +IFS=$as_save_IFS
  38397. -# Compiler flag to generate thread-safe objects.
  38398. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  38399. + ;;
  38400. +esac
  38401. +fi
  38402. +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  38403. +if test -n "$ac_pt_PKG_CONFIG"; then
  38404. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  38405. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  38406. +else
  38407. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38408. +$as_echo "no" >&6; }
  38409. +fi
  38410. -# Library versioning type.
  38411. -version_type=$version_type
  38412. + if test "x$ac_pt_PKG_CONFIG" = x; then
  38413. + PKG_CONFIG=""
  38414. + else
  38415. + case $cross_compiling:$ac_tool_warned in
  38416. +yes:)
  38417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  38418. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  38419. +ac_tool_warned=yes ;;
  38420. +esac
  38421. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  38422. + fi
  38423. +else
  38424. + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  38425. +fi
  38426. -# Format of library name prefix.
  38427. -libname_spec=$lt_libname_spec
  38428. +fi
  38429. +if test -n "$PKG_CONFIG"; then
  38430. + _pkg_min_version=0.9.0
  38431. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  38432. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  38433. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  38434. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38435. +$as_echo "yes" >&6; }
  38436. + else
  38437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38438. +$as_echo "no" >&6; }
  38439. + PKG_CONFIG=""
  38440. + fi
  38441. -# List of archive names. First name is the real one, the rest are links.
  38442. -# The last name is the one that the linker finds with -lNAME.
  38443. -library_names_spec=$lt_library_names_spec
  38444. +fi
  38445. -# The coded name of the library, if different from the real name.
  38446. -soname_spec=$lt_soname_spec
  38447. +pkg_failed=no
  38448. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
  38449. +$as_echo_n "checking for XRENDER... " >&6; }
  38450. -# Commands used to build and install an old-style archive.
  38451. -RANLIB=$lt_RANLIB
  38452. -old_archive_cmds=$lt_old_archive_cmds_RC
  38453. -old_postinstall_cmds=$lt_old_postinstall_cmds
  38454. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  38455. +if test -n "$PKG_CONFIG"; then
  38456. + if test -n "$XRENDER_CFLAGS"; then
  38457. + pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
  38458. + else
  38459. + if test -n "$PKG_CONFIG" && \
  38460. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\""; } >&5
  38461. + ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
  38462. + ac_status=$?
  38463. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38464. + test $ac_status = 0; }; then
  38465. + pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2" 2>/dev/null`
  38466. +else
  38467. + pkg_failed=yes
  38468. +fi
  38469. + fi
  38470. +else
  38471. + pkg_failed=untried
  38472. +fi
  38473. +if test -n "$PKG_CONFIG"; then
  38474. + if test -n "$XRENDER_LIBS"; then
  38475. + pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
  38476. + else
  38477. + if test -n "$PKG_CONFIG" && \
  38478. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\""; } >&5
  38479. + ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
  38480. + ac_status=$?
  38481. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38482. + test $ac_status = 0; }; then
  38483. + pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2" 2>/dev/null`
  38484. +else
  38485. + pkg_failed=yes
  38486. +fi
  38487. + fi
  38488. +else
  38489. + pkg_failed=untried
  38490. +fi
  38491. -# Create an old-style archive from a shared archive.
  38492. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  38493. -# Create a temporary old-style archive to link instead of a shared archive.
  38494. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  38495. -# Commands used to build and install a shared archive.
  38496. -archive_cmds=$lt_archive_cmds_RC
  38497. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  38498. -postinstall_cmds=$lt_postinstall_cmds
  38499. -postuninstall_cmds=$lt_postuninstall_cmds
  38500. +if test $pkg_failed = yes; then
  38501. -# Commands used to build a loadable module (assumed same as above if empty)
  38502. -module_cmds=$lt_module_cmds_RC
  38503. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  38504. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  38505. + _pkg_short_errors_supported=yes
  38506. +else
  38507. + _pkg_short_errors_supported=no
  38508. +fi
  38509. + if test $_pkg_short_errors_supported = yes; then
  38510. + XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0.8.2"`
  38511. + else
  38512. + XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0.8.2"`
  38513. + fi
  38514. + # Put the nasty error message in config.log where it belongs
  38515. + echo "$XRENDER_PKG_ERRORS" >&5
  38516. -# Commands to strip libraries.
  38517. -old_striplib=$lt_old_striplib
  38518. -striplib=$lt_striplib
  38519. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38520. +$as_echo "no" >&6; }
  38521. + xrender_found_with_pkgconfig=no
  38522. +elif test $pkg_failed = untried; then
  38523. + xrender_found_with_pkgconfig=no
  38524. +else
  38525. + XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
  38526. + XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
  38527. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38528. +$as_echo "yes" >&6; }
  38529. + xrender_found_with_pkgconfig=yes
  38530. +fi
  38531. +case "$xrender_found_with_pkgconfig" in
  38532. +no)
  38533. +
  38534. +pkg_failed=no
  38535. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
  38536. +$as_echo_n "checking for XRENDER... " >&6; }
  38537. -# Dependencies to place before the objects being linked to create a
  38538. -# shared library.
  38539. -predep_objects=$lt_predep_objects_RC
  38540. -
  38541. -# Dependencies to place after the objects being linked to create a
  38542. -# shared library.
  38543. -postdep_objects=$lt_postdep_objects_RC
  38544. -
  38545. -# Dependencies to place before the objects being linked to create a
  38546. -# shared library.
  38547. -predeps=$lt_predeps_RC
  38548. -
  38549. -# Dependencies to place after the objects being linked to create a
  38550. -# shared library.
  38551. -postdeps=$lt_postdeps_RC
  38552. -
  38553. -# The library search path used internally by the compiler when linking
  38554. -# a shared library.
  38555. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  38556. +if test -n "$PKG_CONFIG"; then
  38557. + if test -n "$XRENDER_CFLAGS"; then
  38558. + pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
  38559. + else
  38560. + if test -n "$PKG_CONFIG" && \
  38561. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\""; } >&5
  38562. + ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
  38563. + ac_status=$?
  38564. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38565. + test $ac_status = 0; }; then
  38566. + pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0" 2>/dev/null`
  38567. +else
  38568. + pkg_failed=yes
  38569. +fi
  38570. + fi
  38571. +else
  38572. + pkg_failed=untried
  38573. +fi
  38574. +if test -n "$PKG_CONFIG"; then
  38575. + if test -n "$XRENDER_LIBS"; then
  38576. + pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
  38577. + else
  38578. + if test -n "$PKG_CONFIG" && \
  38579. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\""; } >&5
  38580. + ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
  38581. + ac_status=$?
  38582. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38583. + test $ac_status = 0; }; then
  38584. + pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0" 2>/dev/null`
  38585. +else
  38586. + pkg_failed=yes
  38587. +fi
  38588. + fi
  38589. +else
  38590. + pkg_failed=untried
  38591. +fi
  38592. -# Method to check whether dependent libraries are shared objects.
  38593. -deplibs_check_method=$lt_deplibs_check_method
  38594. -# Command to use when deplibs_check_method == file_magic.
  38595. -file_magic_cmd=$lt_file_magic_cmd
  38596. -# Flag that allows shared libraries with undefined symbols to be built.
  38597. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  38598. +if test $pkg_failed = yes; then
  38599. -# Flag that forces no undefined symbols.
  38600. -no_undefined_flag=$lt_no_undefined_flag_RC
  38601. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  38602. + _pkg_short_errors_supported=yes
  38603. +else
  38604. + _pkg_short_errors_supported=no
  38605. +fi
  38606. + if test $_pkg_short_errors_supported = yes; then
  38607. + XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0"`
  38608. + else
  38609. + XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0"`
  38610. + fi
  38611. + # Put the nasty error message in config.log where it belongs
  38612. + echo "$XRENDER_PKG_ERRORS" >&5
  38613. -# Commands used to finish a libtool library installation in a directory.
  38614. -finish_cmds=$lt_finish_cmds
  38615. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38616. +$as_echo "no" >&6; }
  38617. + old_xrender_found_with_pkgconfig=no
  38618. +elif test $pkg_failed = untried; then
  38619. + old_xrender_found_with_pkgconfig=no
  38620. +else
  38621. + XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
  38622. + XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
  38623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38624. +$as_echo "yes" >&6; }
  38625. + old_xrender_found_with_pkgconfig=yes
  38626. +fi
  38627. + case "$old_xrender_found_with_pkgconfig" in
  38628. + yes)
  38629. + XRENDER_LIBS="$XRENDER_LIBS -lXext -lX11"
  38630. + ;;
  38631. + *)
  38632. + # checks for X
  38633. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  38634. +$as_echo_n "checking for X... " >&6; }
  38635. -# Same as above, but a single script fragment to be evaled but not shown.
  38636. -finish_eval=$lt_finish_eval
  38637. -# Take the output of nm and produce a listing of raw symbols and C names.
  38638. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  38639. +# Check whether --with-x was given.
  38640. +if test "${with_x+set}" = set; then :
  38641. + withval=$with_x;
  38642. +fi
  38643. -# Transform the output of nm in a proper C declaration
  38644. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  38645. +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  38646. +if test "x$with_x" = xno; then
  38647. + # The user explicitly disabled X.
  38648. + have_x=disabled
  38649. +else
  38650. + case $x_includes,$x_libraries in #(
  38651. + *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  38652. + *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  38653. + $as_echo_n "(cached) " >&6
  38654. +else
  38655. + # One or both of the vars are not set, and there is no cached value.
  38656. +ac_x_includes=no ac_x_libraries=no
  38657. +rm -f -r conftest.dir
  38658. +if mkdir conftest.dir; then
  38659. + cd conftest.dir
  38660. + cat >Imakefile <<'_ACEOF'
  38661. +incroot:
  38662. + @echo incroot='${INCROOT}'
  38663. +usrlibdir:
  38664. + @echo usrlibdir='${USRLIBDIR}'
  38665. +libdir:
  38666. + @echo libdir='${LIBDIR}'
  38667. +_ACEOF
  38668. + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  38669. + # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  38670. + for ac_var in incroot usrlibdir libdir; do
  38671. + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  38672. + done
  38673. + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  38674. + for ac_extension in a so sl dylib la dll; do
  38675. + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  38676. + test -f "$ac_im_libdir/libX11.$ac_extension"; then
  38677. + ac_im_usrlibdir=$ac_im_libdir; break
  38678. + fi
  38679. + done
  38680. + # Screen out bogus values from the imake configuration. They are
  38681. + # bogus both because they are the default anyway, and because
  38682. + # using them would break gcc on systems where it needs fixed includes.
  38683. + case $ac_im_incroot in
  38684. + /usr/include) ac_x_includes= ;;
  38685. + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  38686. + esac
  38687. + case $ac_im_usrlibdir in
  38688. + /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  38689. + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  38690. + esac
  38691. + fi
  38692. + cd ..
  38693. + rm -f -r conftest.dir
  38694. +fi
  38695. -# Transform the output of nm in a C name address pair
  38696. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  38697. +# Standard set of common directories for X headers.
  38698. +# Check X11 before X11Rn because it is often a symlink to the current release.
  38699. +ac_x_header_dirs='
  38700. +/usr/X11/include
  38701. +/usr/X11R7/include
  38702. +/usr/X11R6/include
  38703. +/usr/X11R5/include
  38704. +/usr/X11R4/include
  38705. -# This is the shared library runtime path variable.
  38706. -runpath_var=$runpath_var
  38707. +/usr/include/X11
  38708. +/usr/include/X11R7
  38709. +/usr/include/X11R6
  38710. +/usr/include/X11R5
  38711. +/usr/include/X11R4
  38712. -# This is the shared library path variable.
  38713. -shlibpath_var=$shlibpath_var
  38714. +/usr/local/X11/include
  38715. +/usr/local/X11R7/include
  38716. +/usr/local/X11R6/include
  38717. +/usr/local/X11R5/include
  38718. +/usr/local/X11R4/include
  38719. -# Is shlibpath searched before the hard-coded library search path?
  38720. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38721. +/usr/local/include/X11
  38722. +/usr/local/include/X11R7
  38723. +/usr/local/include/X11R6
  38724. +/usr/local/include/X11R5
  38725. +/usr/local/include/X11R4
  38726. -# How to hardcode a shared library path into an executable.
  38727. -hardcode_action=$hardcode_action_RC
  38728. +/usr/X386/include
  38729. +/usr/x386/include
  38730. +/usr/XFree86/include/X11
  38731. -# Whether we should hardcode library paths into libraries.
  38732. -hardcode_into_libs=$hardcode_into_libs
  38733. +/usr/include
  38734. +/usr/local/include
  38735. +/usr/unsupported/include
  38736. +/usr/athena/include
  38737. +/usr/local/x11r5/include
  38738. +/usr/lpp/Xamples/include
  38739. -# Flag to hardcode \$libdir into a binary during linking.
  38740. -# This must work even if \$libdir does not exist.
  38741. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  38742. +/usr/openwin/include
  38743. +/usr/openwin/share/include'
  38744. -# If ld is used when linking, flag to hardcode \$libdir into
  38745. -# a binary during linking. This must work even if \$libdir does
  38746. -# not exist.
  38747. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  38748. -
  38749. -# Whether we need a single -rpath flag with a separated argument.
  38750. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  38751. -
  38752. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  38753. -# resulting binary.
  38754. -hardcode_direct=$hardcode_direct_RC
  38755. -
  38756. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  38757. -# resulting binary.
  38758. -hardcode_minus_L=$hardcode_minus_L_RC
  38759. -
  38760. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  38761. -# the resulting binary.
  38762. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  38763. -
  38764. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  38765. -# and all subsequent libraries and executables linked against it.
  38766. -hardcode_automatic=$hardcode_automatic_RC
  38767. +if test "$ac_x_includes" = no; then
  38768. + # Guess where to find include files, by looking for Xlib.h.
  38769. + # First, try using that file with no special directory specified.
  38770. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38771. +/* end confdefs.h. */
  38772. +#include <X11/Xlib.h>
  38773. +_ACEOF
  38774. +if ac_fn_c_try_cpp "$LINENO"; then :
  38775. + # We can compile using X headers with no special include directory.
  38776. +ac_x_includes=
  38777. +else
  38778. + for ac_dir in $ac_x_header_dirs; do
  38779. + if test -r "$ac_dir/X11/Xlib.h"; then
  38780. + ac_x_includes=$ac_dir
  38781. + break
  38782. + fi
  38783. +done
  38784. +fi
  38785. +rm -f conftest.err conftest.$ac_ext
  38786. +fi # $ac_x_includes = no
  38787. -# Variables whose values should be saved in libtool wrapper scripts and
  38788. -# restored at relink time.
  38789. -variables_saved_for_relink="$variables_saved_for_relink"
  38790. +if test "$ac_x_libraries" = no; then
  38791. + # Check for the libraries.
  38792. + # See if we find them without any special options.
  38793. + # Don't add to $LIBS permanently.
  38794. + ac_save_LIBS=$LIBS
  38795. + LIBS="-lX11 $LIBS"
  38796. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38797. +/* end confdefs.h. */
  38798. +#include <X11/Xlib.h>
  38799. +int
  38800. +main ()
  38801. +{
  38802. +XrmInitialize ()
  38803. + ;
  38804. + return 0;
  38805. +}
  38806. +_ACEOF
  38807. +if ac_fn_c_try_link "$LINENO"; then :
  38808. + LIBS=$ac_save_LIBS
  38809. +# We can link X programs with no special library path.
  38810. +ac_x_libraries=
  38811. +else
  38812. + LIBS=$ac_save_LIBS
  38813. +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  38814. +do
  38815. + # Don't even attempt the hair of trying to link an X program!
  38816. + for ac_extension in a so sl dylib la dll; do
  38817. + if test -r "$ac_dir/libX11.$ac_extension"; then
  38818. + ac_x_libraries=$ac_dir
  38819. + break 2
  38820. + fi
  38821. + done
  38822. +done
  38823. +fi
  38824. +rm -f core conftest.err conftest.$ac_objext \
  38825. + conftest$ac_exeext conftest.$ac_ext
  38826. +fi # $ac_x_libraries = no
  38827. -# Whether libtool must link a program against all its dependency libraries.
  38828. -link_all_deplibs=$link_all_deplibs_RC
  38829. +case $ac_x_includes,$ac_x_libraries in #(
  38830. + no,* | *,no | *\'*)
  38831. + # Didn't find X, or a directory has "'" in its name.
  38832. + ac_cv_have_x="have_x=no";; #(
  38833. + *)
  38834. + # Record where we found X for the cache.
  38835. + ac_cv_have_x="have_x=yes\
  38836. + ac_x_includes='$ac_x_includes'\
  38837. + ac_x_libraries='$ac_x_libraries'"
  38838. +esac
  38839. +fi
  38840. +;; #(
  38841. + *) have_x=yes;;
  38842. + esac
  38843. + eval "$ac_cv_have_x"
  38844. +fi # $with_x != no
  38845. -# Compile-time system search path for libraries
  38846. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38847. +if test "$have_x" != yes; then
  38848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  38849. +$as_echo "$have_x" >&6; }
  38850. + no_x=yes
  38851. +else
  38852. + # If each of the values was on the command line, it overrides each guess.
  38853. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  38854. + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  38855. + # Update the cache value to reflect the command line values.
  38856. + ac_cv_have_x="have_x=yes\
  38857. + ac_x_includes='$x_includes'\
  38858. + ac_x_libraries='$x_libraries'"
  38859. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  38860. +$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  38861. +fi
  38862. -# Run-time system search path for libraries
  38863. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38864. -# Fix the shell variable \$srcfile for the compiler.
  38865. -fix_srcfile_path="$fix_srcfile_path_RC"
  38866. + XRENDER_CFLAGS="-I$x_includes"
  38867. + XRENDER_LIBS="-L$x_libraries -lXrender -lXext -lX11"
  38868. -# Set to yes if exported symbols are required.
  38869. -always_export_symbols=$always_export_symbols_RC
  38870. + saved_CPPFLAGS="$CPPFLAGS"
  38871. + CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
  38872. + for ac_header in X11/extensions/Xrender.h
  38873. +do :
  38874. + ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
  38875. +if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
  38876. + cat >>confdefs.h <<_ACEOF
  38877. +#define HAVE_X11_EXTENSIONS_XRENDER_H 1
  38878. +_ACEOF
  38879. -# The commands to list exported symbols.
  38880. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  38881. +else
  38882. + as_fn_error "Xrender.h not found." "$LINENO" 5
  38883. +fi
  38884. -# The commands to extract the exported symbol list from a shared archive.
  38885. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  38886. +done
  38887. -# Symbols that should not be listed in the preloaded symbols.
  38888. -exclude_expsyms=$lt_exclude_expsyms_RC
  38889. + CPPFLAGS="$saved_CPPFLAGS"
  38890. -# Symbols that must always be exported.
  38891. -include_expsyms=$lt_include_expsyms_RC
  38892. + saved_LIBS="$LIBS"
  38893. + LIBS="$LIBS $XRENDER_LIBS"
  38894. + for ac_func in XRenderFindStandardFormat
  38895. +do :
  38896. + ac_fn_c_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
  38897. +if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
  38898. + cat >>confdefs.h <<_ACEOF
  38899. +#define HAVE_XRENDERFINDSTANDARDFORMAT 1
  38900. +_ACEOF
  38901. -# ### END LIBTOOL TAG CONFIG: $tagname
  38902. +else
  38903. + as_fn_error "libXrender not found or too old." "$LINENO" 5
  38904. +fi
  38905. +done
  38906. -__EOF__
  38907. + LIBS="$saved_LIBS"
  38908. + ;;
  38909. + esac
  38910. + ;;
  38911. +esac
  38912. +# Check freetype configuration
  38913. +# Check whether --with-freetype-config was given.
  38914. +if test "${with_freetype_config+set}" = set; then :
  38915. + withval=$with_freetype_config; freetype_config=$withval
  38916. else
  38917. - # If there is no Makefile yet, we rely on a make rule to execute
  38918. - # `config.status --recheck' to rerun these tests and create the
  38919. - # libtool script then.
  38920. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38921. - if test -f "$ltmain_in"; then
  38922. - test -f Makefile && make "$ltmain"
  38923. - fi
  38924. + freetype_config=auto
  38925. fi
  38926. -ac_ext=c
  38927. -ac_cpp='$CPP $CPPFLAGS'
  38928. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38929. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38930. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38931. -
  38932. -CC="$lt_save_CC"
  38933. -
  38934. - ;;
  38935. +if test "$freetype_config" = "auto"; then
  38936. - *)
  38937. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  38938. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  38939. - { (exit 1); exit 1; }; }
  38940. - ;;
  38941. - esac
  38942. +pkg_failed=no
  38943. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
  38944. +$as_echo_n "checking for FREETYPE... " >&6; }
  38945. - # Append the new tag name to the list of available tags.
  38946. - if test -n "$tagname" ; then
  38947. - available_tags="$available_tags $tagname"
  38948. +if test -n "$PKG_CONFIG"; then
  38949. + if test -n "$FREETYPE_CFLAGS"; then
  38950. + pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
  38951. + else
  38952. + if test -n "$PKG_CONFIG" && \
  38953. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
  38954. + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  38955. + ac_status=$?
  38956. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38957. + test $ac_status = 0; }; then
  38958. + pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
  38959. +else
  38960. + pkg_failed=yes
  38961. +fi
  38962. fi
  38963. +else
  38964. + pkg_failed=untried
  38965. +fi
  38966. +if test -n "$PKG_CONFIG"; then
  38967. + if test -n "$FREETYPE_LIBS"; then
  38968. + pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
  38969. + else
  38970. + if test -n "$PKG_CONFIG" && \
  38971. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
  38972. + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  38973. + ac_status=$?
  38974. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38975. + test $ac_status = 0; }; then
  38976. + pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
  38977. +else
  38978. + pkg_failed=yes
  38979. +fi
  38980. fi
  38981. - done
  38982. - IFS="$lt_save_ifs"
  38983. -
  38984. - # Now substitute the updated list of available tags.
  38985. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  38986. - mv "${ofile}T" "$ofile"
  38987. - chmod +x "$ofile"
  38988. - else
  38989. - rm -f "${ofile}T"
  38990. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  38991. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  38992. - { (exit 1); exit 1; }; }
  38993. - fi
  38994. +else
  38995. + pkg_failed=untried
  38996. fi
  38997. -# This can be used to rebuild libtool when needed
  38998. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  38999. -
  39000. -# Always use our own libtool.
  39001. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  39002. -
  39003. -# Prevent multiple expansion
  39004. -
  39005. -
  39006. -
  39007. -
  39008. -
  39009. -
  39010. -
  39011. -
  39012. -
  39013. -
  39014. -
  39015. -
  39016. -
  39017. -
  39018. -
  39019. -
  39020. -
  39021. -
  39022. -
  39023. -
  39024. -
  39025. -#
  39026. -# Check for Xrender
  39027. -#
  39028. -
  39029. +if test $pkg_failed = yes; then
  39030. -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  39031. - if test -n "$ac_tool_prefix"; then
  39032. - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  39033. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  39034. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  39035. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  39036. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  39037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39038. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  39039. + _pkg_short_errors_supported=yes
  39040. else
  39041. - case $PKG_CONFIG in
  39042. - [\\/]* | ?:[\\/]*)
  39043. - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  39044. - ;;
  39045. - *)
  39046. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39047. -for as_dir in $PATH
  39048. -do
  39049. - IFS=$as_save_IFS
  39050. - test -z "$as_dir" && as_dir=.
  39051. - for ac_exec_ext in '' $ac_executable_extensions; do
  39052. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  39053. - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  39054. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  39055. - break 2
  39056. - fi
  39057. -done
  39058. -done
  39059. -
  39060. - ;;
  39061. -esac
  39062. + _pkg_short_errors_supported=no
  39063. fi
  39064. -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  39065. + if test $_pkg_short_errors_supported = yes; then
  39066. + FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
  39067. + else
  39068. + FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  39069. + fi
  39070. + # Put the nasty error message in config.log where it belongs
  39071. + echo "$FREETYPE_PKG_ERRORS" >&5
  39072. -if test -n "$PKG_CONFIG"; then
  39073. - echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  39074. -echo "${ECHO_T}$PKG_CONFIG" >&6
  39075. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39076. +$as_echo "no" >&6; }
  39077. + freetype_config=yes
  39078. +elif test $pkg_failed = untried; then
  39079. + freetype_config=yes
  39080. else
  39081. - echo "$as_me:$LINENO: result: no" >&5
  39082. -echo "${ECHO_T}no" >&6
  39083. + FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
  39084. + FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
  39085. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39086. +$as_echo "yes" >&6; }
  39087. + freetype_config=no
  39088. fi
  39089. -
  39090. fi
  39091. -if test -z "$ac_cv_path_PKG_CONFIG"; then
  39092. - ac_pt_PKG_CONFIG=$PKG_CONFIG
  39093. - # Extract the first word of "pkg-config", so it can be a program name with args.
  39094. -set dummy pkg-config; ac_word=$2
  39095. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  39096. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  39097. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  39098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39099. +
  39100. +if test "$freetype_config" = "yes"; then
  39101. + # Extract the first word of "freetype-config", so it can be a program name with args.
  39102. +set dummy freetype-config; ac_word=$2
  39103. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39104. +$as_echo_n "checking for $ac_word... " >&6; }
  39105. +if test "${ac_cv_path_ft_config+set}" = set; then :
  39106. + $as_echo_n "(cached) " >&6
  39107. else
  39108. - case $ac_pt_PKG_CONFIG in
  39109. + case $ft_config in
  39110. [\\/]* | ?:[\\/]*)
  39111. - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  39112. + ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
  39113. ;;
  39114. *)
  39115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39116. @@ -18709,64 +11145,59 @@
  39117. do
  39118. IFS=$as_save_IFS
  39119. test -z "$as_dir" && as_dir=.
  39120. - for ac_exec_ext in '' $ac_executable_extensions; do
  39121. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  39122. - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  39123. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  39124. + for ac_exec_ext in '' $ac_executable_extensions; do
  39125. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39126. + ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
  39127. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39128. break 2
  39129. fi
  39130. done
  39131. -done
  39132. + done
  39133. +IFS=$as_save_IFS
  39134. + test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
  39135. ;;
  39136. esac
  39137. fi
  39138. -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  39139. -
  39140. -if test -n "$ac_pt_PKG_CONFIG"; then
  39141. - echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  39142. -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
  39143. +ft_config=$ac_cv_path_ft_config
  39144. +if test -n "$ft_config"; then
  39145. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
  39146. +$as_echo "$ft_config" >&6; }
  39147. else
  39148. - echo "$as_me:$LINENO: result: no" >&5
  39149. -echo "${ECHO_T}no" >&6
  39150. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39151. +$as_echo "no" >&6; }
  39152. fi
  39153. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  39154. +
  39155. + if test "$ft_config" = "no"; then
  39156. + as_fn_error "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
  39157. + fi
  39158. else
  39159. - PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  39160. + ft_config="$freetype_config"
  39161. fi
  39162. +if test "$freetype_config" != "no"; then
  39163. + FREETYPE_CFLAGS="`$ft_config --cflags`"
  39164. + FREETYPE_LIBS="`$ft_config --libs`"
  39165. fi
  39166. -if test -n "$PKG_CONFIG"; then
  39167. - _pkg_min_version=0.9.0
  39168. - echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  39169. -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
  39170. - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  39171. - echo "$as_me:$LINENO: result: yes" >&5
  39172. -echo "${ECHO_T}yes" >&6
  39173. - else
  39174. - echo "$as_me:$LINENO: result: no" >&5
  39175. -echo "${ECHO_T}no" >&6
  39176. - PKG_CONFIG=""
  39177. - fi
  39178. -fi
  39179. +# Check fontconfig configuration
  39180. pkg_failed=no
  39181. -echo "$as_me:$LINENO: checking for XRENDER" >&5
  39182. -echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6
  39183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
  39184. +$as_echo_n "checking for FONTCONFIG... " >&6; }
  39185. if test -n "$PKG_CONFIG"; then
  39186. - if test -n "$XRENDER_CFLAGS"; then
  39187. - pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
  39188. + if test -n "$FONTCONFIG_CFLAGS"; then
  39189. + pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
  39190. else
  39191. if test -n "$PKG_CONFIG" && \
  39192. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\"") >&5
  39193. - ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
  39194. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\""; } >&5
  39195. + ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
  39196. ac_status=$?
  39197. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39198. - (exit $ac_status); }; then
  39199. - pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2" 2>/dev/null`
  39200. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39201. + test $ac_status = 0; }; then
  39202. + pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2" 2>/dev/null`
  39203. else
  39204. pkg_failed=yes
  39205. fi
  39206. @@ -18775,16 +11206,16 @@
  39207. pkg_failed=untried
  39208. fi
  39209. if test -n "$PKG_CONFIG"; then
  39210. - if test -n "$XRENDER_LIBS"; then
  39211. - pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
  39212. + if test -n "$FONTCONFIG_LIBS"; then
  39213. + pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
  39214. else
  39215. if test -n "$PKG_CONFIG" && \
  39216. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\"") >&5
  39217. - ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
  39218. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\""; } >&5
  39219. + ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
  39220. ac_status=$?
  39221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39222. - (exit $ac_status); }; then
  39223. - pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2" 2>/dev/null`
  39224. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39225. + test $ac_status = 0; }; then
  39226. + pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2" 2>/dev/null`
  39227. else
  39228. pkg_failed=yes
  39229. fi
  39230. @@ -18803,2558 +11234,2409 @@
  39231. _pkg_short_errors_supported=no
  39232. fi
  39233. if test $_pkg_short_errors_supported = yes; then
  39234. - XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0.8.2"`
  39235. + FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.2"`
  39236. else
  39237. - XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0.8.2"`
  39238. + FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2"`
  39239. fi
  39240. # Put the nasty error message in config.log where it belongs
  39241. - echo "$XRENDER_PKG_ERRORS" >&5
  39242. + echo "$FONTCONFIG_PKG_ERRORS" >&5
  39243. - xrender_found_with_pkgconfig=no
  39244. + as_fn_error "Package requirements (fontconfig >= 2.2) were not met:
  39245. +
  39246. +$FONTCONFIG_PKG_ERRORS
  39247. +
  39248. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  39249. +installed software in a non-standard prefix.
  39250. +
  39251. +Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  39252. +and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  39253. +See the pkg-config man page for more details.
  39254. +" "$LINENO" 5
  39255. elif test $pkg_failed = untried; then
  39256. - xrender_found_with_pkgconfig=no
  39257. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39258. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39259. +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  39260. +is in your PATH or set the PKG_CONFIG environment variable to the full
  39261. +path to pkg-config.
  39262. +
  39263. +Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  39264. +and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  39265. +See the pkg-config man page for more details.
  39266. +
  39267. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  39268. +See \`config.log' for more details." "$LINENO" 5; }
  39269. else
  39270. - XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
  39271. - XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
  39272. - echo "$as_me:$LINENO: result: yes" >&5
  39273. -echo "${ECHO_T}yes" >&6
  39274. - xrender_found_with_pkgconfig=yes
  39275. + FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
  39276. + FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
  39277. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39278. +$as_echo "yes" >&6; }
  39279. + :
  39280. fi
  39281. -case "$xrender_found_with_pkgconfig" in
  39282. -no)
  39283. -pkg_failed=no
  39284. -echo "$as_me:$LINENO: checking for XRENDER" >&5
  39285. -echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6
  39286. -if test -n "$PKG_CONFIG"; then
  39287. - if test -n "$XRENDER_CFLAGS"; then
  39288. - pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
  39289. - else
  39290. - if test -n "$PKG_CONFIG" && \
  39291. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\"") >&5
  39292. - ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
  39293. - ac_status=$?
  39294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39295. - (exit $ac_status); }; then
  39296. - pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0" 2>/dev/null`
  39297. +
  39298. +
  39299. +
  39300. +
  39301. +
  39302. +
  39303. +fontconfig_save_libs="$LIBS"
  39304. +fontconfig_save_cflags="$CFLAGS"
  39305. +LIBS="$LIBS $FREETYPE_LIBS"
  39306. +CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
  39307. +for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_GlyphSlot_Embolden
  39308. +do :
  39309. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39310. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  39311. +eval as_val=\$$as_ac_var
  39312. + if test "x$as_val" = x""yes; then :
  39313. + cat >>confdefs.h <<_ACEOF
  39314. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39315. +_ACEOF
  39316. +
  39317. +fi
  39318. +done
  39319. +
  39320. +ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
  39321. +#include FT_FREETYPE_H
  39322. +"
  39323. +if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = x""yes; then :
  39324. + HAVE_FT_BITMAP_SIZE_Y_PPEM=1
  39325. +else
  39326. + HAVE_FT_BITMAP_SIZE_Y_PPEM=0
  39327. +fi
  39328. +
  39329. +
  39330. +cat >>confdefs.h <<_ACEOF
  39331. +#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
  39332. +_ACEOF
  39333. +
  39334. +
  39335. +LIBS="$fontconfig_save_libs"
  39336. +CFLAGS="$fontconfig_save_cflags"
  39337. +
  39338. +if test "$VERSION" = "" ; then
  39339. + VERSION=$PACKAGE_VERSION;
  39340. +fi
  39341. +
  39342. +WARN_CFLAGS=""
  39343. +
  39344. +if test "x$GCC" = "xyes"; then
  39345. + WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
  39346. + -Wmissing-prototypes -Wmissing-declarations \
  39347. + -Wnested-externs -fno-strict-aliasing"
  39348. +fi
  39349. +
  39350. +
  39351. +XORG_RELEASE_VERSION
  39352. +
  39353. +ac_config_files="$ac_config_files Makefile xft.pc xft-config src/Makefile man/Makefile man/xft-config.1 man/Xft.3"
  39354. +
  39355. +cat >confcache <<\_ACEOF
  39356. +# This file is a shell script that caches the results of configure
  39357. +# tests run on this system so they can be shared between configure
  39358. +# scripts and configure runs, see configure's option --config-cache.
  39359. +# It is not useful on other systems. If it contains results you don't
  39360. +# want to keep, you may remove or edit it.
  39361. +#
  39362. +# config.status only pays attention to the cache file if you give it
  39363. +# the --recheck option to rerun configure.
  39364. +#
  39365. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  39366. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  39367. +# following values.
  39368. +
  39369. +_ACEOF
  39370. +
  39371. +# The following way of writing the cache mishandles newlines in values,
  39372. +# but we know of no workaround that is simple, portable, and efficient.
  39373. +# So, we kill variables containing newlines.
  39374. +# Ultrix sh set writes to stderr and can't be redirected directly,
  39375. +# and sets the high bit in the cache file unless we assign to the vars.
  39376. +(
  39377. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  39378. + eval ac_val=\$$ac_var
  39379. + case $ac_val in #(
  39380. + *${as_nl}*)
  39381. + case $ac_var in #(
  39382. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  39383. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  39384. + esac
  39385. + case $ac_var in #(
  39386. + _ | IFS | as_nl) ;; #(
  39387. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  39388. + *) { eval $ac_var=; unset $ac_var;} ;;
  39389. + esac ;;
  39390. + esac
  39391. + done
  39392. +
  39393. + (set) 2>&1 |
  39394. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  39395. + *${as_nl}ac_space=\ *)
  39396. + # `set' does not quote correctly, so add quotes: double-quote
  39397. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  39398. + sed -n \
  39399. + "s/'/'\\\\''/g;
  39400. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  39401. + ;; #(
  39402. + *)
  39403. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  39404. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  39405. + ;;
  39406. + esac |
  39407. + sort
  39408. +) |
  39409. + sed '
  39410. + /^ac_cv_env_/b end
  39411. + t clear
  39412. + :clear
  39413. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  39414. + t end
  39415. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  39416. + :end' >>confcache
  39417. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  39418. + if test -w "$cache_file"; then
  39419. + test "x$cache_file" != "x/dev/null" &&
  39420. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  39421. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  39422. + cat confcache >$cache_file
  39423. + else
  39424. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  39425. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  39426. + fi
  39427. +fi
  39428. +rm -f confcache
  39429. +
  39430. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  39431. +# Let make expand exec_prefix.
  39432. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  39433. +
  39434. +DEFS=-DHAVE_CONFIG_H
  39435. +
  39436. +ac_libobjs=
  39437. +ac_ltlibobjs=
  39438. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  39439. + # 1. Remove the extension, and $U if already installed.
  39440. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  39441. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  39442. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  39443. + # will be set to the directory where LIBOBJS objects are built.
  39444. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  39445. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  39446. +done
  39447. +LIBOBJS=$ac_libobjs
  39448. +
  39449. +LTLIBOBJS=$ac_ltlibobjs
  39450. +
  39451. +
  39452. + if test -n "$EXEEXT"; then
  39453. + am__EXEEXT_TRUE=
  39454. + am__EXEEXT_FALSE='#'
  39455. else
  39456. - pkg_failed=yes
  39457. + am__EXEEXT_TRUE='#'
  39458. + am__EXEEXT_FALSE=
  39459. fi
  39460. - fi
  39461. -else
  39462. - pkg_failed=untried
  39463. +
  39464. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  39465. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  39466. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39467. fi
  39468. -if test -n "$PKG_CONFIG"; then
  39469. - if test -n "$XRENDER_LIBS"; then
  39470. - pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
  39471. - else
  39472. - if test -n "$PKG_CONFIG" && \
  39473. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\"") >&5
  39474. - ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
  39475. - ac_status=$?
  39476. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39477. - (exit $ac_status); }; then
  39478. - pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0" 2>/dev/null`
  39479. -else
  39480. - pkg_failed=yes
  39481. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  39482. + as_fn_error "conditional \"AMDEP\" was never defined.
  39483. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39484. fi
  39485. - fi
  39486. -else
  39487. - pkg_failed=untried
  39488. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  39489. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  39490. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39491. fi
  39492. +: ${CONFIG_STATUS=./config.status}
  39493. +ac_write_fail=0
  39494. +ac_clean_files_save=$ac_clean_files
  39495. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  39496. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  39497. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  39498. +as_write_fail=0
  39499. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  39500. +#! $SHELL
  39501. +# Generated by $as_me.
  39502. +# Run this file to recreate the current configuration.
  39503. +# Compiler output produced by configure, useful for debugging
  39504. +# configure, is in config.log if it exists.
  39505. +debug=false
  39506. +ac_cs_recheck=false
  39507. +ac_cs_silent=false
  39508. -if test $pkg_failed = yes; then
  39509. -
  39510. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  39511. - _pkg_short_errors_supported=yes
  39512. -else
  39513. - _pkg_short_errors_supported=no
  39514. -fi
  39515. - if test $_pkg_short_errors_supported = yes; then
  39516. - XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0"`
  39517. - else
  39518. - XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0"`
  39519. - fi
  39520. - # Put the nasty error message in config.log where it belongs
  39521. - echo "$XRENDER_PKG_ERRORS" >&5
  39522. +SHELL=\${CONFIG_SHELL-$SHELL}
  39523. +export SHELL
  39524. +_ASEOF
  39525. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  39526. +## -------------------- ##
  39527. +## M4sh Initialization. ##
  39528. +## -------------------- ##
  39529. - old_xrender_found_with_pkgconfig=no
  39530. -elif test $pkg_failed = untried; then
  39531. - old_xrender_found_with_pkgconfig=no
  39532. +# Be more Bourne compatible
  39533. +DUALCASE=1; export DUALCASE # for MKS sh
  39534. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  39535. + emulate sh
  39536. + NULLCMD=:
  39537. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  39538. + # is contrary to our usage. Disable this feature.
  39539. + alias -g '${1+"$@"}'='"$@"'
  39540. + setopt NO_GLOB_SUBST
  39541. else
  39542. - XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
  39543. - XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
  39544. - echo "$as_me:$LINENO: result: yes" >&5
  39545. -echo "${ECHO_T}yes" >&6
  39546. - old_xrender_found_with_pkgconfig=yes
  39547. + case `(set -o) 2>/dev/null` in #(
  39548. + *posix*) :
  39549. + set -o posix ;; #(
  39550. + *) :
  39551. + ;;
  39552. +esac
  39553. fi
  39554. - case "$old_xrender_found_with_pkgconfig" in
  39555. - yes)
  39556. - XRENDER_LIBS="$XRENDER_LIBS -lXext -lX11"
  39557. - ;;
  39558. - *)
  39559. - # checks for X
  39560. - echo "$as_me:$LINENO: checking for X" >&5
  39561. -echo $ECHO_N "checking for X... $ECHO_C" >&6
  39562. -
  39563. -ac_path_x_has_been_run=yes
  39564. -# Check whether --with-x or --without-x was given.
  39565. -if test "${with_x+set}" = set; then
  39566. - withval="$with_x"
  39567. -fi;
  39568. -# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  39569. -if test "x$with_x" = xno; then
  39570. - # The user explicitly disabled X.
  39571. - have_x=disabled
  39572. -else
  39573. - if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  39574. - # Both variables are already set.
  39575. - have_x=yes
  39576. - else
  39577. - if test "${ac_cv_have_x+set}" = set; then
  39578. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39579. -else
  39580. - # One or both of the vars are not set, and there is no cached value.
  39581. -ac_x_includes=no ac_x_libraries=no
  39582. -rm -fr conftest.dir
  39583. -if mkdir conftest.dir; then
  39584. - cd conftest.dir
  39585. - # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  39586. - cat >Imakefile <<'_ACEOF'
  39587. -acfindx:
  39588. - @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  39589. -_ACEOF
  39590. - if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  39591. - # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  39592. - eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  39593. - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  39594. - for ac_extension in a so sl; do
  39595. - if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  39596. - test -f $ac_im_libdir/libX11.$ac_extension; then
  39597. - ac_im_usrlibdir=$ac_im_libdir; break
  39598. - fi
  39599. - done
  39600. - # Screen out bogus values from the imake configuration. They are
  39601. - # bogus both because they are the default anyway, and because
  39602. - # using them would break gcc on systems where it needs fixed includes.
  39603. - case $ac_im_incroot in
  39604. - /usr/include) ;;
  39605. - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  39606. - esac
  39607. - case $ac_im_usrlibdir in
  39608. - /usr/lib | /lib) ;;
  39609. - *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  39610. - esac
  39611. +as_nl='
  39612. +'
  39613. +export as_nl
  39614. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  39615. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39616. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39617. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  39618. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  39619. +# but without wasting forks for bash or zsh.
  39620. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  39621. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  39622. + as_echo='print -r --'
  39623. + as_echo_n='print -rn --'
  39624. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  39625. + as_echo='printf %s\n'
  39626. + as_echo_n='printf %s'
  39627. +else
  39628. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  39629. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  39630. + as_echo_n='/usr/ucb/echo -n'
  39631. + else
  39632. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  39633. + as_echo_n_body='eval
  39634. + arg=$1;
  39635. + case $arg in #(
  39636. + *"$as_nl"*)
  39637. + expr "X$arg" : "X\\(.*\\)$as_nl";
  39638. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  39639. + esac;
  39640. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  39641. + '
  39642. + export as_echo_n_body
  39643. + as_echo_n='sh -c $as_echo_n_body as_echo'
  39644. fi
  39645. - cd ..
  39646. - rm -fr conftest.dir
  39647. + export as_echo_body
  39648. + as_echo='sh -c $as_echo_body as_echo'
  39649. fi
  39650. -# Standard set of common directories for X headers.
  39651. -# Check X11 before X11Rn because it is often a symlink to the current release.
  39652. -ac_x_header_dirs='
  39653. -/usr/X11/include
  39654. -/usr/X11R6/include
  39655. -/usr/X11R5/include
  39656. -/usr/X11R4/include
  39657. +# The user is always right.
  39658. +if test "${PATH_SEPARATOR+set}" != set; then
  39659. + PATH_SEPARATOR=:
  39660. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  39661. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  39662. + PATH_SEPARATOR=';'
  39663. + }
  39664. +fi
  39665. -/usr/include/X11
  39666. -/usr/include/X11R6
  39667. -/usr/include/X11R5
  39668. -/usr/include/X11R4
  39669. -/usr/local/X11/include
  39670. -/usr/local/X11R6/include
  39671. -/usr/local/X11R5/include
  39672. -/usr/local/X11R4/include
  39673. +# IFS
  39674. +# We need space, tab and new line, in precisely that order. Quoting is
  39675. +# there to prevent editors from complaining about space-tab.
  39676. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  39677. +# splitting by setting IFS to empty value.)
  39678. +IFS=" "" $as_nl"
  39679. +
  39680. +# Find who we are. Look in the path if we contain no directory separator.
  39681. +case $0 in #((
  39682. + *[\\/]* ) as_myself=$0 ;;
  39683. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39684. +for as_dir in $PATH
  39685. +do
  39686. + IFS=$as_save_IFS
  39687. + test -z "$as_dir" && as_dir=.
  39688. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  39689. + done
  39690. +IFS=$as_save_IFS
  39691. -/usr/local/include/X11
  39692. -/usr/local/include/X11R6
  39693. -/usr/local/include/X11R5
  39694. -/usr/local/include/X11R4
  39695. + ;;
  39696. +esac
  39697. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  39698. +# in which case we are not to be found in the path.
  39699. +if test "x$as_myself" = x; then
  39700. + as_myself=$0
  39701. +fi
  39702. +if test ! -f "$as_myself"; then
  39703. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  39704. + exit 1
  39705. +fi
  39706. +
  39707. +# Unset variables that we do not need and which cause bugs (e.g. in
  39708. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  39709. +# suppresses any "Segmentation fault" message there. '((' could
  39710. +# trigger a bug in pdksh 5.2.14.
  39711. +for as_var in BASH_ENV ENV MAIL MAILPATH
  39712. +do eval test x\${$as_var+set} = xset \
  39713. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  39714. +done
  39715. +PS1='$ '
  39716. +PS2='> '
  39717. +PS4='+ '
  39718. -/usr/X386/include
  39719. -/usr/x386/include
  39720. -/usr/XFree86/include/X11
  39721. +# NLS nuisances.
  39722. +LC_ALL=C
  39723. +export LC_ALL
  39724. +LANGUAGE=C
  39725. +export LANGUAGE
  39726. -/usr/include
  39727. -/usr/local/include
  39728. -/usr/unsupported/include
  39729. -/usr/athena/include
  39730. -/usr/local/x11r5/include
  39731. -/usr/lpp/Xamples/include
  39732. +# CDPATH.
  39733. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  39734. -/usr/openwin/include
  39735. -/usr/openwin/share/include'
  39736. -if test "$ac_x_includes" = no; then
  39737. - # Guess where to find include files, by looking for a specified header file.
  39738. - # First, try using that file with no special directory specified.
  39739. - cat >conftest.$ac_ext <<_ACEOF
  39740. -/* confdefs.h. */
  39741. -_ACEOF
  39742. -cat confdefs.h >>conftest.$ac_ext
  39743. -cat >>conftest.$ac_ext <<_ACEOF
  39744. -/* end confdefs.h. */
  39745. -#include <X11/Xlib.h>
  39746. -_ACEOF
  39747. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  39748. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  39749. - ac_status=$?
  39750. - grep -v '^ *+' conftest.er1 >conftest.err
  39751. - rm -f conftest.er1
  39752. - cat conftest.err >&5
  39753. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39754. - (exit $ac_status); } >/dev/null; then
  39755. - if test -s conftest.err; then
  39756. - ac_cpp_err=$ac_c_preproc_warn_flag
  39757. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  39758. - else
  39759. - ac_cpp_err=
  39760. - fi
  39761. +# as_fn_error ERROR [LINENO LOG_FD]
  39762. +# ---------------------------------
  39763. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  39764. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  39765. +# script with status $?, using 1 if that was 0.
  39766. +as_fn_error ()
  39767. +{
  39768. + as_status=$?; test $as_status -eq 0 && as_status=1
  39769. + if test "$3"; then
  39770. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  39771. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  39772. + fi
  39773. + $as_echo "$as_me: error: $1" >&2
  39774. + as_fn_exit $as_status
  39775. +} # as_fn_error
  39776. +
  39777. +
  39778. +# as_fn_set_status STATUS
  39779. +# -----------------------
  39780. +# Set $? to STATUS, without forking.
  39781. +as_fn_set_status ()
  39782. +{
  39783. + return $1
  39784. +} # as_fn_set_status
  39785. +
  39786. +# as_fn_exit STATUS
  39787. +# -----------------
  39788. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  39789. +as_fn_exit ()
  39790. +{
  39791. + set +e
  39792. + as_fn_set_status $1
  39793. + exit $1
  39794. +} # as_fn_exit
  39795. +
  39796. +# as_fn_unset VAR
  39797. +# ---------------
  39798. +# Portably unset VAR.
  39799. +as_fn_unset ()
  39800. +{
  39801. + { eval $1=; unset $1;}
  39802. +}
  39803. +as_unset=as_fn_unset
  39804. +# as_fn_append VAR VALUE
  39805. +# ----------------------
  39806. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  39807. +# advantage of any shell optimizations that allow amortized linear growth over
  39808. +# repeated appends, instead of the typical quadratic growth present in naive
  39809. +# implementations.
  39810. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  39811. + eval 'as_fn_append ()
  39812. + {
  39813. + eval $1+=\$2
  39814. + }'
  39815. else
  39816. - ac_cpp_err=yes
  39817. -fi
  39818. -if test -z "$ac_cpp_err"; then
  39819. - # We can compile using X headers with no special include directory.
  39820. -ac_x_includes=
  39821. + as_fn_append ()
  39822. + {
  39823. + eval $1=\$$1\$2
  39824. + }
  39825. +fi # as_fn_append
  39826. +
  39827. +# as_fn_arith ARG...
  39828. +# ------------------
  39829. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  39830. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  39831. +# must be portable across $(()) and expr.
  39832. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  39833. + eval 'as_fn_arith ()
  39834. + {
  39835. + as_val=$(( $* ))
  39836. + }'
  39837. else
  39838. - echo "$as_me: failed program was:" >&5
  39839. -sed 's/^/| /' conftest.$ac_ext >&5
  39840. + as_fn_arith ()
  39841. + {
  39842. + as_val=`expr "$@" || test $? -eq 1`
  39843. + }
  39844. +fi # as_fn_arith
  39845. - for ac_dir in $ac_x_header_dirs; do
  39846. - if test -r "$ac_dir/X11/Xlib.h"; then
  39847. - ac_x_includes=$ac_dir
  39848. - break
  39849. - fi
  39850. -done
  39851. -fi
  39852. -rm -f conftest.err conftest.$ac_ext
  39853. -fi # $ac_x_includes = no
  39854. -if test "$ac_x_libraries" = no; then
  39855. - # Check for the libraries.
  39856. - # See if we find them without any special options.
  39857. - # Don't add to $LIBS permanently.
  39858. - ac_save_LIBS=$LIBS
  39859. - LIBS="-lX11 $LIBS"
  39860. - cat >conftest.$ac_ext <<_ACEOF
  39861. -/* confdefs.h. */
  39862. -_ACEOF
  39863. -cat confdefs.h >>conftest.$ac_ext
  39864. -cat >>conftest.$ac_ext <<_ACEOF
  39865. -/* end confdefs.h. */
  39866. -#include <X11/Xlib.h>
  39867. -int
  39868. -main ()
  39869. -{
  39870. -XrmInitialize ()
  39871. - ;
  39872. - return 0;
  39873. -}
  39874. -_ACEOF
  39875. -rm -f conftest.$ac_objext conftest$ac_exeext
  39876. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39877. - (eval $ac_link) 2>conftest.er1
  39878. - ac_status=$?
  39879. - grep -v '^ *+' conftest.er1 >conftest.err
  39880. - rm -f conftest.er1
  39881. - cat conftest.err >&5
  39882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39883. - (exit $ac_status); } &&
  39884. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39885. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39886. - (eval $ac_try) 2>&5
  39887. - ac_status=$?
  39888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39889. - (exit $ac_status); }; } &&
  39890. - { ac_try='test -s conftest$ac_exeext'
  39891. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39892. - (eval $ac_try) 2>&5
  39893. - ac_status=$?
  39894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39895. - (exit $ac_status); }; }; then
  39896. - LIBS=$ac_save_LIBS
  39897. -# We can link X programs with no special library path.
  39898. -ac_x_libraries=
  39899. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  39900. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  39901. + as_expr=expr
  39902. else
  39903. - echo "$as_me: failed program was:" >&5
  39904. -sed 's/^/| /' conftest.$ac_ext >&5
  39905. -
  39906. -LIBS=$ac_save_LIBS
  39907. -for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  39908. -do
  39909. - # Don't even attempt the hair of trying to link an X program!
  39910. - for ac_extension in a so sl; do
  39911. - if test -r $ac_dir/libX11.$ac_extension; then
  39912. - ac_x_libraries=$ac_dir
  39913. - break 2
  39914. - fi
  39915. - done
  39916. -done
  39917. + as_expr=false
  39918. fi
  39919. -rm -f conftest.err conftest.$ac_objext \
  39920. - conftest$ac_exeext conftest.$ac_ext
  39921. -fi # $ac_x_libraries = no
  39922. -if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  39923. - # Didn't find X anywhere. Cache the known absence of X.
  39924. - ac_cv_have_x="have_x=no"
  39925. -else
  39926. - # Record where we found X for the cache.
  39927. - ac_cv_have_x="have_x=yes \
  39928. - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  39929. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  39930. + as_basename=basename
  39931. +else
  39932. + as_basename=false
  39933. fi
  39934. +
  39935. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  39936. + as_dirname=dirname
  39937. +else
  39938. + as_dirname=false
  39939. fi
  39940. - fi
  39941. - eval "$ac_cv_have_x"
  39942. -fi # $with_x != no
  39943. +as_me=`$as_basename -- "$0" ||
  39944. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  39945. + X"$0" : 'X\(//\)$' \| \
  39946. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  39947. +$as_echo X/"$0" |
  39948. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  39949. + s//\1/
  39950. + q
  39951. + }
  39952. + /^X\/\(\/\/\)$/{
  39953. + s//\1/
  39954. + q
  39955. + }
  39956. + /^X\/\(\/\).*/{
  39957. + s//\1/
  39958. + q
  39959. + }
  39960. + s/.*/./; q'`
  39961. -if test "$have_x" != yes; then
  39962. - echo "$as_me:$LINENO: result: $have_x" >&5
  39963. -echo "${ECHO_T}$have_x" >&6
  39964. - no_x=yes
  39965. +# Avoid depending upon Character Ranges.
  39966. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  39967. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  39968. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39969. +as_cr_digits='0123456789'
  39970. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  39971. +
  39972. +ECHO_C= ECHO_N= ECHO_T=
  39973. +case `echo -n x` in #(((((
  39974. +-n*)
  39975. + case `echo 'xy\c'` in
  39976. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  39977. + xy) ECHO_C='\c';;
  39978. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  39979. + ECHO_T=' ';;
  39980. + esac;;
  39981. +*)
  39982. + ECHO_N='-n';;
  39983. +esac
  39984. +
  39985. +rm -f conf$$ conf$$.exe conf$$.file
  39986. +if test -d conf$$.dir; then
  39987. + rm -f conf$$.dir/conf$$.file
  39988. else
  39989. - # If each of the values was on the command line, it overrides each guess.
  39990. - test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  39991. - test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  39992. - # Update the cache value to reflect the command line values.
  39993. - ac_cv_have_x="have_x=yes \
  39994. - ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  39995. - # It might be that x_includes is empty (headers are found in the
  39996. - # standard search path. Then output the corresponding message
  39997. - ac_out_x_includes=$x_includes
  39998. - test "x$x_includes" = x && ac_out_x_includes="in standard search path"
  39999. - echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
  40000. -echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
  40001. + rm -f conf$$.dir
  40002. + mkdir conf$$.dir 2>/dev/null
  40003. +fi
  40004. +if (echo >conf$$.file) 2>/dev/null; then
  40005. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  40006. + as_ln_s='ln -s'
  40007. + # ... but there are two gotchas:
  40008. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  40009. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  40010. + # In both cases, we have to default to `cp -p'.
  40011. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  40012. + as_ln_s='cp -p'
  40013. + elif ln conf$$.file conf$$ 2>/dev/null; then
  40014. + as_ln_s=ln
  40015. + else
  40016. + as_ln_s='cp -p'
  40017. + fi
  40018. +else
  40019. + as_ln_s='cp -p'
  40020. fi
  40021. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  40022. +rmdir conf$$.dir 2>/dev/null
  40023. - XRENDER_CFLAGS="-I$x_includes"
  40024. - XRENDER_LIBS="-L$x_libraries -lXrender -lXext -lX11"
  40025. +# as_fn_mkdir_p
  40026. +# -------------
  40027. +# Create "$as_dir" as a directory, including parents if necessary.
  40028. +as_fn_mkdir_p ()
  40029. +{
  40030. - saved_CPPFLAGS="$CPPFLAGS"
  40031. - CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
  40032. + case $as_dir in #(
  40033. + -*) as_dir=./$as_dir;;
  40034. + esac
  40035. + test -d "$as_dir" || eval $as_mkdir_p || {
  40036. + as_dirs=
  40037. + while :; do
  40038. + case $as_dir in #(
  40039. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  40040. + *) as_qdir=$as_dir;;
  40041. + esac
  40042. + as_dirs="'$as_qdir' $as_dirs"
  40043. + as_dir=`$as_dirname -- "$as_dir" ||
  40044. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40045. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40046. + X"$as_dir" : 'X\(//\)$' \| \
  40047. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40048. +$as_echo X"$as_dir" |
  40049. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40050. + s//\1/
  40051. + q
  40052. + }
  40053. + /^X\(\/\/\)[^/].*/{
  40054. + s//\1/
  40055. + q
  40056. + }
  40057. + /^X\(\/\/\)$/{
  40058. + s//\1/
  40059. + q
  40060. + }
  40061. + /^X\(\/\).*/{
  40062. + s//\1/
  40063. + q
  40064. + }
  40065. + s/.*/./; q'`
  40066. + test -d "$as_dir" && break
  40067. + done
  40068. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  40069. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  40070. -for ac_header in X11/extensions/Xrender.h
  40071. -do
  40072. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40073. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  40074. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  40075. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  40076. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  40077. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40078. -fi
  40079. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  40080. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  40081. -else
  40082. - # Is the header compilable?
  40083. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  40084. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  40085. -cat >conftest.$ac_ext <<_ACEOF
  40086. -/* confdefs.h. */
  40087. -_ACEOF
  40088. -cat confdefs.h >>conftest.$ac_ext
  40089. -cat >>conftest.$ac_ext <<_ACEOF
  40090. -/* end confdefs.h. */
  40091. -$ac_includes_default
  40092. -#include <$ac_header>
  40093. -_ACEOF
  40094. -rm -f conftest.$ac_objext
  40095. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40096. - (eval $ac_compile) 2>conftest.er1
  40097. - ac_status=$?
  40098. - grep -v '^ *+' conftest.er1 >conftest.err
  40099. - rm -f conftest.er1
  40100. - cat conftest.err >&5
  40101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40102. - (exit $ac_status); } &&
  40103. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40104. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40105. - (eval $ac_try) 2>&5
  40106. - ac_status=$?
  40107. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40108. - (exit $ac_status); }; } &&
  40109. - { ac_try='test -s conftest.$ac_objext'
  40110. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40111. - (eval $ac_try) 2>&5
  40112. - ac_status=$?
  40113. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40114. - (exit $ac_status); }; }; then
  40115. - ac_header_compiler=yes
  40116. -else
  40117. - echo "$as_me: failed program was:" >&5
  40118. -sed 's/^/| /' conftest.$ac_ext >&5
  40119. -ac_header_compiler=no
  40120. +} # as_fn_mkdir_p
  40121. +if mkdir -p . 2>/dev/null; then
  40122. + as_mkdir_p='mkdir -p "$as_dir"'
  40123. +else
  40124. + test -d ./-p && rmdir ./-p
  40125. + as_mkdir_p=false
  40126. fi
  40127. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40128. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40129. -echo "${ECHO_T}$ac_header_compiler" >&6
  40130. -# Is the header present?
  40131. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  40132. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  40133. -cat >conftest.$ac_ext <<_ACEOF
  40134. -/* confdefs.h. */
  40135. -_ACEOF
  40136. -cat confdefs.h >>conftest.$ac_ext
  40137. -cat >>conftest.$ac_ext <<_ACEOF
  40138. -/* end confdefs.h. */
  40139. -#include <$ac_header>
  40140. -_ACEOF
  40141. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  40142. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  40143. - ac_status=$?
  40144. - grep -v '^ *+' conftest.er1 >conftest.err
  40145. - rm -f conftest.er1
  40146. - cat conftest.err >&5
  40147. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40148. - (exit $ac_status); } >/dev/null; then
  40149. - if test -s conftest.err; then
  40150. - ac_cpp_err=$ac_c_preproc_warn_flag
  40151. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  40152. +if test -x / >/dev/null 2>&1; then
  40153. + as_test_x='test -x'
  40154. +else
  40155. + if ls -dL / >/dev/null 2>&1; then
  40156. + as_ls_L_option=L
  40157. else
  40158. - ac_cpp_err=
  40159. + as_ls_L_option=
  40160. fi
  40161. -else
  40162. - ac_cpp_err=yes
  40163. + as_test_x='
  40164. + eval sh -c '\''
  40165. + if test -d "$1"; then
  40166. + test -d "$1/.";
  40167. + else
  40168. + case $1 in #(
  40169. + -*)set "./$1";;
  40170. + esac;
  40171. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  40172. + ???[sx]*):;;*)false;;esac;fi
  40173. + '\'' sh
  40174. + '
  40175. fi
  40176. -if test -z "$ac_cpp_err"; then
  40177. - ac_header_preproc=yes
  40178. -else
  40179. - echo "$as_me: failed program was:" >&5
  40180. -sed 's/^/| /' conftest.$ac_ext >&5
  40181. +as_executable_p=$as_test_x
  40182. - ac_header_preproc=no
  40183. -fi
  40184. -rm -f conftest.err conftest.$ac_ext
  40185. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40186. -echo "${ECHO_T}$ac_header_preproc" >&6
  40187. +# Sed expression to map a string onto a valid CPP name.
  40188. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  40189. -# So? What about this header?
  40190. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40191. - yes:no: )
  40192. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  40193. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40194. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  40195. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  40196. - ac_header_preproc=yes
  40197. - ;;
  40198. - no:yes:* )
  40199. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  40200. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  40201. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  40202. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  40203. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  40204. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  40205. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  40206. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  40207. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  40208. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  40209. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  40210. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  40211. - (
  40212. - cat <<\_ASBOX
  40213. -## ---------------------------------------------------------------------- ##
  40214. -## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  40215. -## ---------------------------------------------------------------------- ##
  40216. -_ASBOX
  40217. - ) |
  40218. - sed "s/^/$as_me: WARNING: /" >&2
  40219. - ;;
  40220. -esac
  40221. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  40222. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  40223. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  40224. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40225. -else
  40226. - eval "$as_ac_Header=\$ac_header_preproc"
  40227. -fi
  40228. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  40229. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  40230. +# Sed expression to map a string onto a valid variable name.
  40231. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  40232. +
  40233. +
  40234. +exec 6>&1
  40235. +## ----------------------------------- ##
  40236. +## Main body of $CONFIG_STATUS script. ##
  40237. +## ----------------------------------- ##
  40238. +_ASEOF
  40239. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  40240. +
  40241. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40242. +# Save the log message, to keep $0 and so on meaningful, and to
  40243. +# report actual input values of CONFIG_FILES etc. instead of their
  40244. +# values after options handling.
  40245. +ac_log="
  40246. +This file was extended by libXft $as_me 2.1.9, which was
  40247. +generated by GNU Autoconf 2.65. Invocation command line was
  40248. +
  40249. + CONFIG_FILES = $CONFIG_FILES
  40250. + CONFIG_HEADERS = $CONFIG_HEADERS
  40251. + CONFIG_LINKS = $CONFIG_LINKS
  40252. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  40253. + $ $0 $@
  40254. +
  40255. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  40256. +"
  40257. -fi
  40258. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  40259. - cat >>confdefs.h <<_ACEOF
  40260. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  40261. _ACEOF
  40262. -else
  40263. - { { echo "$as_me:$LINENO: error: Xrender.h not found." >&5
  40264. -echo "$as_me: error: Xrender.h not found." >&2;}
  40265. - { (exit 1); exit 1; }; }
  40266. -fi
  40267. +case $ac_config_files in *"
  40268. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  40269. +esac
  40270. -done
  40271. +case $ac_config_headers in *"
  40272. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  40273. +esac
  40274. - CPPFLAGS="$saved_CPPFLAGS"
  40275. - saved_LIBS="$LIBS"
  40276. - LIBS="$LIBS $XRENDER_LIBS"
  40277. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40278. +# Files that config.status was made for.
  40279. +config_files="$ac_config_files"
  40280. +config_headers="$ac_config_headers"
  40281. +config_commands="$ac_config_commands"
  40282. -for ac_func in XRenderFindStandardFormat
  40283. -do
  40284. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40285. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  40286. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  40287. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  40288. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40289. -else
  40290. - cat >conftest.$ac_ext <<_ACEOF
  40291. -/* confdefs.h. */
  40292. _ACEOF
  40293. -cat confdefs.h >>conftest.$ac_ext
  40294. -cat >>conftest.$ac_ext <<_ACEOF
  40295. -/* end confdefs.h. */
  40296. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40297. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40298. -#define $ac_func innocuous_$ac_func
  40299. -/* System header to define __stub macros and hopefully few prototypes,
  40300. - which can conflict with char $ac_func (); below.
  40301. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40302. - <limits.h> exists even on freestanding compilers. */
  40303. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40304. +ac_cs_usage="\
  40305. +\`$as_me' instantiates files and other configuration actions
  40306. +from templates according to the current configuration. Unless the files
  40307. +and actions are specified as TAGs, all are instantiated by default.
  40308. -#ifdef __STDC__
  40309. -# include <limits.h>
  40310. -#else
  40311. -# include <assert.h>
  40312. -#endif
  40313. +Usage: $0 [OPTION]... [TAG]...
  40314. -#undef $ac_func
  40315. + -h, --help print this help, then exit
  40316. + -V, --version print version number and configuration settings, then exit
  40317. + --config print configuration, then exit
  40318. + -q, --quiet, --silent
  40319. + do not print progress messages
  40320. + -d, --debug don't remove temporary files
  40321. + --recheck update $as_me by reconfiguring in the same conditions
  40322. + --file=FILE[:TEMPLATE]
  40323. + instantiate the configuration file FILE
  40324. + --header=FILE[:TEMPLATE]
  40325. + instantiate the configuration header FILE
  40326. -/* Override any gcc2 internal prototype to avoid an error. */
  40327. -#ifdef __cplusplus
  40328. -extern "C"
  40329. -{
  40330. -#endif
  40331. -/* We use char because int might match the return type of a gcc2
  40332. - builtin and then its argument prototype would still apply. */
  40333. -char $ac_func ();
  40334. -/* The GNU C library defines this for functions which it implements
  40335. - to always fail with ENOSYS. Some functions are actually named
  40336. - something starting with __ and the normal name is an alias. */
  40337. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  40338. -choke me
  40339. -#else
  40340. -char (*f) () = $ac_func;
  40341. -#endif
  40342. -#ifdef __cplusplus
  40343. -}
  40344. -#endif
  40345. +Configuration files:
  40346. +$config_files
  40347. +
  40348. +Configuration headers:
  40349. +$config_headers
  40350. +
  40351. +Configuration commands:
  40352. +$config_commands
  40353. +
  40354. +Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  40355. -int
  40356. -main ()
  40357. -{
  40358. -return f != $ac_func;
  40359. - ;
  40360. - return 0;
  40361. -}
  40362. _ACEOF
  40363. -rm -f conftest.$ac_objext conftest$ac_exeext
  40364. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  40365. - (eval $ac_link) 2>conftest.er1
  40366. - ac_status=$?
  40367. - grep -v '^ *+' conftest.er1 >conftest.err
  40368. - rm -f conftest.er1
  40369. - cat conftest.err >&5
  40370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40371. - (exit $ac_status); } &&
  40372. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40373. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40374. - (eval $ac_try) 2>&5
  40375. - ac_status=$?
  40376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40377. - (exit $ac_status); }; } &&
  40378. - { ac_try='test -s conftest$ac_exeext'
  40379. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40380. - (eval $ac_try) 2>&5
  40381. - ac_status=$?
  40382. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40383. - (exit $ac_status); }; }; then
  40384. - eval "$as_ac_var=yes"
  40385. -else
  40386. - echo "$as_me: failed program was:" >&5
  40387. -sed 's/^/| /' conftest.$ac_ext >&5
  40388. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40389. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  40390. +ac_cs_version="\\
  40391. +libXft config.status 2.1.9
  40392. +configured by $0, generated by GNU Autoconf 2.65,
  40393. + with options \\"\$ac_cs_config\\"
  40394. -eval "$as_ac_var=no"
  40395. -fi
  40396. -rm -f conftest.err conftest.$ac_objext \
  40397. - conftest$ac_exeext conftest.$ac_ext
  40398. -fi
  40399. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  40400. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  40401. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  40402. - cat >>confdefs.h <<_ACEOF
  40403. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40404. +Copyright (C) 2009 Free Software Foundation, Inc.
  40405. +This config.status script is free software; the Free Software Foundation
  40406. +gives unlimited permission to copy, distribute and modify it."
  40407. +
  40408. +ac_pwd='$ac_pwd'
  40409. +srcdir='$srcdir'
  40410. +INSTALL='$INSTALL'
  40411. +MKDIR_P='$MKDIR_P'
  40412. +AWK='$AWK'
  40413. +test -n "\$AWK" || AWK=awk
  40414. _ACEOF
  40415. -else
  40416. - { { echo "$as_me:$LINENO: error: libXrender not found or too old." >&5
  40417. -echo "$as_me: error: libXrender not found or too old." >&2;}
  40418. - { (exit 1); exit 1; }; }
  40419. -fi
  40420. -done
  40421. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40422. +# The default lists apply if the user does not specify any file.
  40423. +ac_need_defaults=:
  40424. +while test $# != 0
  40425. +do
  40426. + case $1 in
  40427. + --*=*)
  40428. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  40429. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  40430. + ac_shift=:
  40431. + ;;
  40432. + *)
  40433. + ac_option=$1
  40434. + ac_optarg=$2
  40435. + ac_shift=shift
  40436. + ;;
  40437. + esac
  40438. - LIBS="$saved_LIBS"
  40439. - ;;
  40440. - esac
  40441. - ;;
  40442. -esac
  40443. + case $ac_option in
  40444. + # Handling of the options.
  40445. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  40446. + ac_cs_recheck=: ;;
  40447. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  40448. + $as_echo "$ac_cs_version"; exit ;;
  40449. + --config | --confi | --conf | --con | --co | --c )
  40450. + $as_echo "$ac_cs_config"; exit ;;
  40451. + --debug | --debu | --deb | --de | --d | -d )
  40452. + debug=: ;;
  40453. + --file | --fil | --fi | --f )
  40454. + $ac_shift
  40455. + case $ac_optarg in
  40456. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40457. + esac
  40458. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  40459. + ac_need_defaults=false;;
  40460. + --header | --heade | --head | --hea )
  40461. + $ac_shift
  40462. + case $ac_optarg in
  40463. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40464. + esac
  40465. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  40466. + ac_need_defaults=false;;
  40467. + --he | --h)
  40468. + # Conflict between --help and --header
  40469. + as_fn_error "ambiguous option: \`$1'
  40470. +Try \`$0 --help' for more information.";;
  40471. + --help | --hel | -h )
  40472. + $as_echo "$ac_cs_usage"; exit ;;
  40473. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  40474. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  40475. + ac_cs_silent=: ;;
  40476. -# Check freetype configuration
  40477. + # This is an error.
  40478. + -*) as_fn_error "unrecognized option: \`$1'
  40479. +Try \`$0 --help' for more information." ;;
  40480. -# Check whether --with-freetype-config or --without-freetype-config was given.
  40481. -if test "${with_freetype_config+set}" = set; then
  40482. - withval="$with_freetype_config"
  40483. - freetype_config=$withval
  40484. -else
  40485. - freetype_config=auto
  40486. -fi;
  40487. + *) as_fn_append ac_config_targets " $1"
  40488. + ac_need_defaults=false ;;
  40489. -if test "$freetype_config" = "auto"; then
  40490. + esac
  40491. + shift
  40492. +done
  40493. -pkg_failed=no
  40494. -echo "$as_me:$LINENO: checking for FREETYPE" >&5
  40495. -echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6
  40496. +ac_configure_extra_args=
  40497. -if test -n "$PKG_CONFIG"; then
  40498. - if test -n "$FREETYPE_CFLAGS"; then
  40499. - pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
  40500. - else
  40501. - if test -n "$PKG_CONFIG" && \
  40502. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
  40503. - ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  40504. - ac_status=$?
  40505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40506. - (exit $ac_status); }; then
  40507. - pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
  40508. -else
  40509. - pkg_failed=yes
  40510. -fi
  40511. - fi
  40512. -else
  40513. - pkg_failed=untried
  40514. -fi
  40515. -if test -n "$PKG_CONFIG"; then
  40516. - if test -n "$FREETYPE_LIBS"; then
  40517. - pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
  40518. - else
  40519. - if test -n "$PKG_CONFIG" && \
  40520. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
  40521. - ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  40522. - ac_status=$?
  40523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40524. - (exit $ac_status); }; then
  40525. - pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
  40526. -else
  40527. - pkg_failed=yes
  40528. +if $ac_cs_silent; then
  40529. + exec 6>/dev/null
  40530. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  40531. fi
  40532. - fi
  40533. -else
  40534. - pkg_failed=untried
  40535. +
  40536. +_ACEOF
  40537. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40538. +if \$ac_cs_recheck; then
  40539. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  40540. + shift
  40541. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  40542. + CONFIG_SHELL='$SHELL'
  40543. + export CONFIG_SHELL
  40544. + exec "\$@"
  40545. fi
  40546. +_ACEOF
  40547. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40548. +exec 5>>config.log
  40549. +{
  40550. + echo
  40551. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  40552. +## Running $as_me. ##
  40553. +_ASBOX
  40554. + $as_echo "$ac_log"
  40555. +} >&5
  40556. +
  40557. +_ACEOF
  40558. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40559. +#
  40560. +# INIT-COMMANDS
  40561. +#
  40562. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  40563. +
  40564. +
  40565. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  40566. +# if CDPATH is set.
  40567. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40568. +
  40569. +sed_quote_subst='$sed_quote_subst'
  40570. +double_quote_subst='$double_quote_subst'
  40571. +delay_variable_subst='$delay_variable_subst'
  40572. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  40573. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  40574. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  40575. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  40576. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  40577. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  40578. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  40579. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  40580. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  40581. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  40582. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  40583. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  40584. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  40585. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  40586. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  40587. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  40588. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  40589. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  40590. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  40591. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  40592. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  40593. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  40594. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  40595. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  40596. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  40597. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  40598. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40599. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40600. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  40601. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  40602. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  40603. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  40604. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  40605. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  40606. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  40607. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40608. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40609. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40610. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  40611. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  40612. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  40613. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  40614. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  40615. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  40616. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  40617. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  40618. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  40619. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  40620. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  40621. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  40622. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40623. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  40624. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  40625. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  40626. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  40627. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  40628. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  40629. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  40630. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  40631. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  40632. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  40633. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  40634. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40635. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40636. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  40637. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  40638. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40639. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40640. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  40641. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40642. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40643. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40644. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40645. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40646. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40647. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  40648. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40649. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40650. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40651. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  40652. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  40653. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  40654. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  40655. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  40656. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  40657. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  40658. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  40659. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  40660. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  40661. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  40662. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40663. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  40664. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  40665. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40666. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40667. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  40668. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  40669. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  40670. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  40671. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  40672. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  40673. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  40674. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40675. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40676. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40677. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40678. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40679. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40680. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  40681. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  40682. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40683. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40684. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  40685. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  40686. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  40687. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  40688. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  40689. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  40690. +
  40691. +LTCC='$LTCC'
  40692. +LTCFLAGS='$LTCFLAGS'
  40693. +compiler='$compiler_DEFAULT'
  40694. +
  40695. +# Quote evaled strings.
  40696. +for var in SED \
  40697. +GREP \
  40698. +EGREP \
  40699. +FGREP \
  40700. +LD \
  40701. +NM \
  40702. +LN_S \
  40703. +lt_SP2NL \
  40704. +lt_NL2SP \
  40705. +reload_flag \
  40706. +OBJDUMP \
  40707. +deplibs_check_method \
  40708. +file_magic_cmd \
  40709. +AR \
  40710. +AR_FLAGS \
  40711. +STRIP \
  40712. +RANLIB \
  40713. +CC \
  40714. +CFLAGS \
  40715. +compiler \
  40716. +lt_cv_sys_global_symbol_pipe \
  40717. +lt_cv_sys_global_symbol_to_cdecl \
  40718. +lt_cv_sys_global_symbol_to_c_name_address \
  40719. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  40720. +SHELL \
  40721. +ECHO \
  40722. +lt_prog_compiler_no_builtin_flag \
  40723. +lt_prog_compiler_wl \
  40724. +lt_prog_compiler_pic \
  40725. +lt_prog_compiler_static \
  40726. +lt_cv_prog_compiler_c_o \
  40727. +need_locks \
  40728. +DSYMUTIL \
  40729. +NMEDIT \
  40730. +LIPO \
  40731. +OTOOL \
  40732. +OTOOL64 \
  40733. +shrext_cmds \
  40734. +export_dynamic_flag_spec \
  40735. +whole_archive_flag_spec \
  40736. +compiler_needs_object \
  40737. +with_gnu_ld \
  40738. +allow_undefined_flag \
  40739. +no_undefined_flag \
  40740. +hardcode_libdir_flag_spec \
  40741. +hardcode_libdir_flag_spec_ld \
  40742. +hardcode_libdir_separator \
  40743. +fix_srcfile_path \
  40744. +exclude_expsyms \
  40745. +include_expsyms \
  40746. +file_list_spec \
  40747. +variables_saved_for_relink \
  40748. +libname_spec \
  40749. +library_names_spec \
  40750. +soname_spec \
  40751. +finish_eval \
  40752. +old_striplib \
  40753. +striplib; do
  40754. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  40755. + *[\\\\\\\`\\"\\\$]*)
  40756. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  40757. + ;;
  40758. + *)
  40759. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  40760. + ;;
  40761. + esac
  40762. +done
  40763. +
  40764. +# Double-quote double-evaled strings.
  40765. +for var in reload_cmds \
  40766. +old_postinstall_cmds \
  40767. +old_postuninstall_cmds \
  40768. +old_archive_cmds \
  40769. +extract_expsyms_cmds \
  40770. +old_archive_from_new_cmds \
  40771. +old_archive_from_expsyms_cmds \
  40772. +archive_cmds \
  40773. +archive_expsym_cmds \
  40774. +module_cmds \
  40775. +module_expsym_cmds \
  40776. +export_symbols_cmds \
  40777. +prelink_cmds \
  40778. +postinstall_cmds \
  40779. +postuninstall_cmds \
  40780. +finish_cmds \
  40781. +sys_lib_search_path_spec \
  40782. +sys_lib_dlsearch_path_spec; do
  40783. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  40784. + *[\\\\\\\`\\"\\\$]*)
  40785. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  40786. + ;;
  40787. + *)
  40788. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  40789. + ;;
  40790. + esac
  40791. +done
  40792. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  40793. +case \$lt_ECHO in
  40794. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  40795. + ;;
  40796. +esac
  40797. -if test $pkg_failed = yes; then
  40798. +ac_aux_dir='$ac_aux_dir'
  40799. +xsi_shell='$xsi_shell'
  40800. +lt_shell_append='$lt_shell_append'
  40801. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  40802. - _pkg_short_errors_supported=yes
  40803. -else
  40804. - _pkg_short_errors_supported=no
  40805. +# See if we are running on zsh, and set the options which allow our
  40806. +# commands through without removal of \ escapes INIT.
  40807. +if test -n "\${ZSH_VERSION+set}" ; then
  40808. + setopt NO_GLOB_SUBST
  40809. fi
  40810. - if test $_pkg_short_errors_supported = yes; then
  40811. - FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
  40812. - else
  40813. - FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  40814. - fi
  40815. - # Put the nasty error message in config.log where it belongs
  40816. - echo "$FREETYPE_PKG_ERRORS" >&5
  40817. - freetype_config=yes
  40818. -elif test $pkg_failed = untried; then
  40819. - freetype_config=yes
  40820. -else
  40821. - FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
  40822. - FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
  40823. - echo "$as_me:$LINENO: result: yes" >&5
  40824. -echo "${ECHO_T}yes" >&6
  40825. - freetype_config=no
  40826. -fi
  40827. -fi
  40828. -if test "$freetype_config" = "yes"; then
  40829. - # Extract the first word of "freetype-config", so it can be a program name with args.
  40830. -set dummy freetype-config; ac_word=$2
  40831. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40832. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40833. -if test "${ac_cv_path_ft_config+set}" = set; then
  40834. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40835. -else
  40836. - case $ft_config in
  40837. - [\\/]* | ?:[\\/]*)
  40838. - ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
  40839. - ;;
  40840. - *)
  40841. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40842. -for as_dir in $PATH
  40843. + PACKAGE='$PACKAGE'
  40844. + VERSION='$VERSION'
  40845. + TIMESTAMP='$TIMESTAMP'
  40846. + RM='$RM'
  40847. + ofile='$ofile'
  40848. +
  40849. +
  40850. +
  40851. +
  40852. +_ACEOF
  40853. +
  40854. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40855. +
  40856. +# Handling of arguments.
  40857. +for ac_config_target in $ac_config_targets
  40858. do
  40859. - IFS=$as_save_IFS
  40860. - test -z "$as_dir" && as_dir=.
  40861. - for ac_exec_ext in '' $ac_executable_extensions; do
  40862. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40863. - ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
  40864. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40865. - break 2
  40866. - fi
  40867. -done
  40868. + case $ac_config_target in
  40869. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  40870. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  40871. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  40872. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  40873. + "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
  40874. + "xft-config") CONFIG_FILES="$CONFIG_FILES xft-config" ;;
  40875. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  40876. + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  40877. + "man/xft-config.1") CONFIG_FILES="$CONFIG_FILES man/xft-config.1" ;;
  40878. + "man/Xft.3") CONFIG_FILES="$CONFIG_FILES man/Xft.3" ;;
  40879. +
  40880. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  40881. + esac
  40882. done
  40883. - test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
  40884. - ;;
  40885. -esac
  40886. -fi
  40887. -ft_config=$ac_cv_path_ft_config
  40888. -if test -n "$ft_config"; then
  40889. - echo "$as_me:$LINENO: result: $ft_config" >&5
  40890. -echo "${ECHO_T}$ft_config" >&6
  40891. -else
  40892. - echo "$as_me:$LINENO: result: no" >&5
  40893. -echo "${ECHO_T}no" >&6
  40894. +# If the user did not use the arguments to specify the items to instantiate,
  40895. +# then the envvar interface is used. Set only those that are not.
  40896. +# We use the long form for the default assignment because of an extremely
  40897. +# bizarre bug on SunOS 4.1.3.
  40898. +if $ac_need_defaults; then
  40899. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  40900. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  40901. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  40902. fi
  40903. - if test "$ft_config" = "no"; then
  40904. - { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5
  40905. -echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;}
  40906. - { (exit 1); exit 1; }; }
  40907. - fi
  40908. -else
  40909. - ft_config="$freetype_config"
  40910. -fi
  40911. +# Have a temporary directory for convenience. Make it in the build tree
  40912. +# simply because there is no reason against having it here, and in addition,
  40913. +# creating and moving files from /tmp can sometimes cause problems.
  40914. +# Hook for its removal unless debugging.
  40915. +# Note that there is a small window in which the directory will not be cleaned:
  40916. +# after its creation but before its name has been assigned to `$tmp'.
  40917. +$debug ||
  40918. +{
  40919. + tmp=
  40920. + trap 'exit_status=$?
  40921. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  40922. +' 0
  40923. + trap 'as_fn_exit 1' 1 2 13 15
  40924. +}
  40925. +# Create a (secure) tmp directory for tmp files.
  40926. -if test "$freetype_config" != "no"; then
  40927. - FREETYPE_CFLAGS="`$ft_config --cflags`"
  40928. - FREETYPE_LIBS="`$ft_config --libs`"
  40929. -fi
  40930. +{
  40931. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  40932. + test -n "$tmp" && test -d "$tmp"
  40933. +} ||
  40934. +{
  40935. + tmp=./conf$$-$RANDOM
  40936. + (umask 077 && mkdir "$tmp")
  40937. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  40938. -# Check fontconfig configuration
  40939. +# Set up the scripts for CONFIG_FILES section.
  40940. +# No need to generate them if there are no CONFIG_FILES.
  40941. +# This happens for instance with `./config.status config.h'.
  40942. +if test -n "$CONFIG_FILES"; then
  40943. -pkg_failed=no
  40944. -echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
  40945. -echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6
  40946. -if test -n "$PKG_CONFIG"; then
  40947. - if test -n "$FONTCONFIG_CFLAGS"; then
  40948. - pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
  40949. - else
  40950. - if test -n "$PKG_CONFIG" && \
  40951. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\"") >&5
  40952. - ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
  40953. - ac_status=$?
  40954. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40955. - (exit $ac_status); }; then
  40956. - pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2" 2>/dev/null`
  40957. -else
  40958. - pkg_failed=yes
  40959. -fi
  40960. - fi
  40961. -else
  40962. - pkg_failed=untried
  40963. -fi
  40964. -if test -n "$PKG_CONFIG"; then
  40965. - if test -n "$FONTCONFIG_LIBS"; then
  40966. - pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
  40967. - else
  40968. - if test -n "$PKG_CONFIG" && \
  40969. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\"") >&5
  40970. - ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
  40971. - ac_status=$?
  40972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40973. - (exit $ac_status); }; then
  40974. - pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2" 2>/dev/null`
  40975. -else
  40976. - pkg_failed=yes
  40977. +ac_cr=`echo X | tr X '\015'`
  40978. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  40979. +# But we know of no other shell where ac_cr would be empty at this
  40980. +# point, so we can use a bashism as a fallback.
  40981. +if test "x$ac_cr" = x; then
  40982. + eval ac_cr=\$\'\\r\'
  40983. fi
  40984. - fi
  40985. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  40986. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  40987. + ac_cs_awk_cr='\r'
  40988. else
  40989. - pkg_failed=untried
  40990. + ac_cs_awk_cr=$ac_cr
  40991. fi
  40992. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  40993. +_ACEOF
  40994. -if test $pkg_failed = yes; then
  40995. +{
  40996. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  40997. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  40998. + echo "_ACEOF"
  40999. +} >conf$$subs.sh ||
  41000. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41001. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  41002. +ac_delim='%!_!# '
  41003. +for ac_last_try in false false false false false :; do
  41004. + . ./conf$$subs.sh ||
  41005. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41006. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  41007. - _pkg_short_errors_supported=yes
  41008. -else
  41009. - _pkg_short_errors_supported=no
  41010. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  41011. + if test $ac_delim_n = $ac_delim_num; then
  41012. + break
  41013. + elif $ac_last_try; then
  41014. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41015. + else
  41016. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41017. + fi
  41018. +done
  41019. +rm -f conf$$subs.sh
  41020. +
  41021. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41022. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  41023. +_ACEOF
  41024. +sed -n '
  41025. +h
  41026. +s/^/S["/; s/!.*/"]=/
  41027. +p
  41028. +g
  41029. +s/^[^!]*!//
  41030. +:repl
  41031. +t repl
  41032. +s/'"$ac_delim"'$//
  41033. +t delim
  41034. +:nl
  41035. +h
  41036. +s/\(.\{148\}\)..*/\1/
  41037. +t more1
  41038. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  41039. +p
  41040. +n
  41041. +b repl
  41042. +:more1
  41043. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41044. +p
  41045. +g
  41046. +s/.\{148\}//
  41047. +t nl
  41048. +:delim
  41049. +h
  41050. +s/\(.\{148\}\)..*/\1/
  41051. +t more2
  41052. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  41053. +p
  41054. +b
  41055. +:more2
  41056. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41057. +p
  41058. +g
  41059. +s/.\{148\}//
  41060. +t delim
  41061. +' <conf$$subs.awk | sed '
  41062. +/^[^""]/{
  41063. + N
  41064. + s/\n//
  41065. +}
  41066. +' >>$CONFIG_STATUS || ac_write_fail=1
  41067. +rm -f conf$$subs.awk
  41068. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41069. +_ACAWK
  41070. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  41071. + for (key in S) S_is_set[key] = 1
  41072. + FS = ""
  41073. +
  41074. +}
  41075. +{
  41076. + line = $ 0
  41077. + nfields = split(line, field, "@")
  41078. + substed = 0
  41079. + len = length(field[1])
  41080. + for (i = 2; i < nfields; i++) {
  41081. + key = field[i]
  41082. + keylen = length(key)
  41083. + if (S_is_set[key]) {
  41084. + value = S[key]
  41085. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  41086. + len += length(value) + length(field[++i])
  41087. + substed = 1
  41088. + } else
  41089. + len += 1 + keylen
  41090. + }
  41091. +
  41092. + print line
  41093. +}
  41094. +
  41095. +_ACAWK
  41096. +_ACEOF
  41097. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41098. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  41099. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  41100. +else
  41101. + cat
  41102. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  41103. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  41104. +_ACEOF
  41105. +
  41106. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41107. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41108. +# trailing colons and then remove the whole line if VPATH becomes empty
  41109. +# (actually we leave an empty line to preserve line numbers).
  41110. +if test "x$srcdir" = x.; then
  41111. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41112. +s/:*\$(srcdir):*/:/
  41113. +s/:*\${srcdir}:*/:/
  41114. +s/:*@srcdir@:*/:/
  41115. +s/^\([^=]*=[ ]*\):*/\1/
  41116. +s/:*$//
  41117. +s/^[^=]*=[ ]*$//
  41118. +}'
  41119. fi
  41120. - if test $_pkg_short_errors_supported = yes; then
  41121. - FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.2"`
  41122. - else
  41123. - FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2"`
  41124. - fi
  41125. - # Put the nasty error message in config.log where it belongs
  41126. - echo "$FONTCONFIG_PKG_ERRORS" >&5
  41127. - { { echo "$as_me:$LINENO: error: Package requirements (fontconfig >= 2.2) were not met:
  41128. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41129. +fi # test -n "$CONFIG_FILES"
  41130. -$FONTCONFIG_PKG_ERRORS
  41131. +# Set up the scripts for CONFIG_HEADERS section.
  41132. +# No need to generate them if there are no CONFIG_HEADERS.
  41133. +# This happens for instance with `./config.status Makefile'.
  41134. +if test -n "$CONFIG_HEADERS"; then
  41135. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  41136. +BEGIN {
  41137. +_ACEOF
  41138. +
  41139. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  41140. +# here-document in config.status, that substitutes the proper values into
  41141. +# config.h.in to produce config.h.
  41142. +
  41143. +# Create a delimiter string that does not exist in confdefs.h, to ease
  41144. +# handling of long lines.
  41145. +ac_delim='%!_!# '
  41146. +for ac_last_try in false false :; do
  41147. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  41148. + if test -z "$ac_t"; then
  41149. + break
  41150. + elif $ac_last_try; then
  41151. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  41152. + else
  41153. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41154. + fi
  41155. +done
  41156. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  41157. -installed software in a non-standard prefix.
  41158. +# For the awk script, D is an array of macro values keyed by name,
  41159. +# likewise P contains macro parameters if any. Preserve backslash
  41160. +# newline sequences.
  41161. +
  41162. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  41163. +sed -n '
  41164. +s/.\{148\}/&'"$ac_delim"'/g
  41165. +t rset
  41166. +:rset
  41167. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  41168. +t def
  41169. +d
  41170. +:def
  41171. +s/\\$//
  41172. +t bsnl
  41173. +s/["\\]/\\&/g
  41174. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41175. +D["\1"]=" \3"/p
  41176. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  41177. +d
  41178. +:bsnl
  41179. +s/["\\]/\\&/g
  41180. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41181. +D["\1"]=" \3\\\\\\n"\\/p
  41182. +t cont
  41183. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  41184. +t cont
  41185. +d
  41186. +:cont
  41187. +n
  41188. +s/.\{148\}/&'"$ac_delim"'/g
  41189. +t clear
  41190. +:clear
  41191. +s/\\$//
  41192. +t bsnlc
  41193. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  41194. +d
  41195. +:bsnlc
  41196. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  41197. +b cont
  41198. +' <confdefs.h | sed '
  41199. +s/'"$ac_delim"'/"\\\
  41200. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  41201. +
  41202. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41203. + for (key in D) D_is_set[key] = 1
  41204. + FS = ""
  41205. +}
  41206. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  41207. + line = \$ 0
  41208. + split(line, arg, " ")
  41209. + if (arg[1] == "#") {
  41210. + defundef = arg[2]
  41211. + mac1 = arg[3]
  41212. + } else {
  41213. + defundef = substr(arg[1], 2)
  41214. + mac1 = arg[2]
  41215. + }
  41216. + split(mac1, mac2, "(") #)
  41217. + macro = mac2[1]
  41218. + prefix = substr(line, 1, index(line, defundef) - 1)
  41219. + if (D_is_set[macro]) {
  41220. + # Preserve the white space surrounding the "#".
  41221. + print prefix "define", macro P[macro] D[macro]
  41222. + next
  41223. + } else {
  41224. + # Replace #undef with comments. This is necessary, for example,
  41225. + # in the case of _POSIX_SOURCE, which is predefined and required
  41226. + # on some systems where configure will not decide to define it.
  41227. + if (defundef == "undef") {
  41228. + print "/*", prefix defundef, macro, "*/"
  41229. + next
  41230. + }
  41231. + }
  41232. +}
  41233. +{ print }
  41234. +_ACAWK
  41235. +_ACEOF
  41236. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41237. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  41238. +fi # test -n "$CONFIG_HEADERS"
  41239. -Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  41240. -and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  41241. -See the pkg-config man page for more details.
  41242. -" >&5
  41243. -echo "$as_me: error: Package requirements (fontconfig >= 2.2) were not met:
  41244. -$FONTCONFIG_PKG_ERRORS
  41245. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  41246. +shift
  41247. +for ac_tag
  41248. +do
  41249. + case $ac_tag in
  41250. + :[FHLC]) ac_mode=$ac_tag; continue;;
  41251. + esac
  41252. + case $ac_mode$ac_tag in
  41253. + :[FHL]*:*);;
  41254. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  41255. + :[FH]-) ac_tag=-:-;;
  41256. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  41257. + esac
  41258. + ac_save_IFS=$IFS
  41259. + IFS=:
  41260. + set x $ac_tag
  41261. + IFS=$ac_save_IFS
  41262. + shift
  41263. + ac_file=$1
  41264. + shift
  41265. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  41266. -installed software in a non-standard prefix.
  41267. + case $ac_mode in
  41268. + :L) ac_source=$1;;
  41269. + :[FH])
  41270. + ac_file_inputs=
  41271. + for ac_f
  41272. + do
  41273. + case $ac_f in
  41274. + -) ac_f="$tmp/stdin";;
  41275. + *) # Look for the file first in the build tree, then in the source tree
  41276. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  41277. + # because $ac_f cannot contain `:'.
  41278. + test -f "$ac_f" ||
  41279. + case $ac_f in
  41280. + [\\/$]*) false;;
  41281. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  41282. + esac ||
  41283. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  41284. + esac
  41285. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  41286. + as_fn_append ac_file_inputs " '$ac_f'"
  41287. + done
  41288. -Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  41289. -and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  41290. -See the pkg-config man page for more details.
  41291. -" >&2;}
  41292. - { (exit 1); exit 1; }; }
  41293. -elif test $pkg_failed = untried; then
  41294. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  41295. -is in your PATH or set the PKG_CONFIG environment variable to the full
  41296. -path to pkg-config.
  41297. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  41298. + # use $as_me), people would be surprised to read:
  41299. + # /* config.h. Generated by config.status. */
  41300. + configure_input='Generated from '`
  41301. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  41302. + `' by configure.'
  41303. + if test x"$ac_file" != x-; then
  41304. + configure_input="$ac_file. $configure_input"
  41305. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  41306. +$as_echo "$as_me: creating $ac_file" >&6;}
  41307. + fi
  41308. + # Neutralize special characters interpreted by sed in replacement strings.
  41309. + case $configure_input in #(
  41310. + *\&* | *\|* | *\\* )
  41311. + ac_sed_conf_input=`$as_echo "$configure_input" |
  41312. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  41313. + *) ac_sed_conf_input=$configure_input;;
  41314. + esac
  41315. -Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  41316. -and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  41317. -See the pkg-config man page for more details.
  41318. + case $ac_tag in
  41319. + *:-:* | *:-) cat >"$tmp/stdin" \
  41320. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  41321. + esac
  41322. + ;;
  41323. + esac
  41324. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  41325. -See \`config.log' for more details." >&5
  41326. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  41327. -is in your PATH or set the PKG_CONFIG environment variable to the full
  41328. -path to pkg-config.
  41329. + ac_dir=`$as_dirname -- "$ac_file" ||
  41330. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41331. + X"$ac_file" : 'X\(//\)[^/]' \| \
  41332. + X"$ac_file" : 'X\(//\)$' \| \
  41333. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  41334. +$as_echo X"$ac_file" |
  41335. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41336. + s//\1/
  41337. + q
  41338. + }
  41339. + /^X\(\/\/\)[^/].*/{
  41340. + s//\1/
  41341. + q
  41342. + }
  41343. + /^X\(\/\/\)$/{
  41344. + s//\1/
  41345. + q
  41346. + }
  41347. + /^X\(\/\).*/{
  41348. + s//\1/
  41349. + q
  41350. + }
  41351. + s/.*/./; q'`
  41352. + as_dir="$ac_dir"; as_fn_mkdir_p
  41353. + ac_builddir=.
  41354. -Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  41355. -and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  41356. -See the pkg-config man page for more details.
  41357. +case "$ac_dir" in
  41358. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  41359. +*)
  41360. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  41361. + # A ".." for each directory in $ac_dir_suffix.
  41362. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  41363. + case $ac_top_builddir_sub in
  41364. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  41365. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  41366. + esac ;;
  41367. +esac
  41368. +ac_abs_top_builddir=$ac_pwd
  41369. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  41370. +# for backward compatibility:
  41371. +ac_top_builddir=$ac_top_build_prefix
  41372. +
  41373. +case $srcdir in
  41374. + .) # We are building in place.
  41375. + ac_srcdir=.
  41376. + ac_top_srcdir=$ac_top_builddir_sub
  41377. + ac_abs_top_srcdir=$ac_pwd ;;
  41378. + [\\/]* | ?:[\\/]* ) # Absolute name.
  41379. + ac_srcdir=$srcdir$ac_dir_suffix;
  41380. + ac_top_srcdir=$srcdir
  41381. + ac_abs_top_srcdir=$srcdir ;;
  41382. + *) # Relative name.
  41383. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  41384. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  41385. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  41386. +esac
  41387. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  41388. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  41389. -See \`config.log' for more details." >&2;}
  41390. - { (exit 1); exit 1; }; }
  41391. -else
  41392. - FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
  41393. - FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
  41394. - echo "$as_me:$LINENO: result: yes" >&5
  41395. -echo "${ECHO_T}yes" >&6
  41396. - :
  41397. -fi
  41398. + case $ac_mode in
  41399. + :F)
  41400. + #
  41401. + # CONFIG_FILE
  41402. + #
  41403. +
  41404. + case $INSTALL in
  41405. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  41406. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  41407. + esac
  41408. + ac_MKDIR_P=$MKDIR_P
  41409. + case $MKDIR_P in
  41410. + [\\/$]* | ?:[\\/]* ) ;;
  41411. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  41412. + esac
  41413. +_ACEOF
  41414. +
  41415. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41416. +# If the template does not know about datarootdir, expand it.
  41417. +# FIXME: This hack should be removed a few years after 2.60.
  41418. +ac_datarootdir_hack=; ac_datarootdir_seen=
  41419. +ac_sed_dataroot='
  41420. +/datarootdir/ {
  41421. + p
  41422. + q
  41423. +}
  41424. +/@datadir@/p
  41425. +/@docdir@/p
  41426. +/@infodir@/p
  41427. +/@localedir@/p
  41428. +/@mandir@/p'
  41429. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  41430. +*datarootdir*) ac_datarootdir_seen=yes;;
  41431. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  41432. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  41433. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  41434. +_ACEOF
  41435. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41436. + ac_datarootdir_hack='
  41437. + s&@datadir@&$datadir&g
  41438. + s&@docdir@&$docdir&g
  41439. + s&@infodir@&$infodir&g
  41440. + s&@localedir@&$localedir&g
  41441. + s&@mandir@&$mandir&g
  41442. + s&\\\${datarootdir}&$datarootdir&g' ;;
  41443. +esac
  41444. +_ACEOF
  41445. +
  41446. +# Neutralize VPATH when `$srcdir' = `.'.
  41447. +# Shell code in configure.ac might set extrasub.
  41448. +# FIXME: do we really want to maintain this feature?
  41449. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41450. +ac_sed_extra="$ac_vpsub
  41451. +$extrasub
  41452. +_ACEOF
  41453. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41454. +:t
  41455. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  41456. +s|@configure_input@|$ac_sed_conf_input|;t t
  41457. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  41458. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  41459. +s&@srcdir@&$ac_srcdir&;t t
  41460. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  41461. +s&@top_srcdir@&$ac_top_srcdir&;t t
  41462. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  41463. +s&@builddir@&$ac_builddir&;t t
  41464. +s&@abs_builddir@&$ac_abs_builddir&;t t
  41465. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  41466. +s&@INSTALL@&$ac_INSTALL&;t t
  41467. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  41468. +$ac_datarootdir_hack
  41469. +"
  41470. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  41471. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  41472. +
  41473. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  41474. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  41475. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  41476. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  41477. +which seems to be undefined. Please make sure it is defined." >&5
  41478. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  41479. +which seems to be undefined. Please make sure it is defined." >&2;}
  41480. + rm -f "$tmp/stdin"
  41481. + case $ac_file in
  41482. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  41483. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  41484. + esac \
  41485. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  41486. + ;;
  41487. + :H)
  41488. + #
  41489. + # CONFIG_HEADER
  41490. + #
  41491. + if test x"$ac_file" != x-; then
  41492. + {
  41493. + $as_echo "/* $configure_input */" \
  41494. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  41495. + } >"$tmp/config.h" \
  41496. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  41497. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  41498. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  41499. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  41500. + else
  41501. + rm -f "$ac_file"
  41502. + mv "$tmp/config.h" "$ac_file" \
  41503. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  41504. + fi
  41505. + else
  41506. + $as_echo "/* $configure_input */" \
  41507. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  41508. + || as_fn_error "could not create -" "$LINENO" 5
  41509. + fi
  41510. +# Compute "$ac_file"'s index in $config_headers.
  41511. +_am_arg="$ac_file"
  41512. +_am_stamp_count=1
  41513. +for _am_header in $config_headers :; do
  41514. + case $_am_header in
  41515. + $_am_arg | $_am_arg:* )
  41516. + break ;;
  41517. + * )
  41518. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  41519. + esac
  41520. +done
  41521. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  41522. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41523. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  41524. + X"$_am_arg" : 'X\(//\)$' \| \
  41525. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  41526. +$as_echo X"$_am_arg" |
  41527. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41528. + s//\1/
  41529. + q
  41530. + }
  41531. + /^X\(\/\/\)[^/].*/{
  41532. + s//\1/
  41533. + q
  41534. + }
  41535. + /^X\(\/\/\)$/{
  41536. + s//\1/
  41537. + q
  41538. + }
  41539. + /^X\(\/\).*/{
  41540. + s//\1/
  41541. + q
  41542. + }
  41543. + s/.*/./; q'`/stamp-h$_am_stamp_count
  41544. + ;;
  41545. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  41546. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  41547. + ;;
  41548. + esac
  41549. + case $ac_file$ac_mode in
  41550. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  41551. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  41552. + # are listed without --file. Let's play safe and only enable the eval
  41553. + # if we detect the quoting.
  41554. + case $CONFIG_FILES in
  41555. + *\'*) eval set x "$CONFIG_FILES" ;;
  41556. + *) set x $CONFIG_FILES ;;
  41557. + esac
  41558. + shift
  41559. + for mf
  41560. + do
  41561. + # Strip MF so we end up with the name of the file.
  41562. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  41563. + # Check whether this is an Automake generated Makefile or not.
  41564. + # We used to match only the files named `Makefile.in', but
  41565. + # some people rename them; so instead we look at the file content.
  41566. + # Grep'ing the first line is not enough: some people post-process
  41567. + # each Makefile.in and add a new line on top of each file to say so.
  41568. + # Grep'ing the whole file is not good either: AIX grep has a line
  41569. + # limit of 2048, but all sed's we know have understand at least 4000.
  41570. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  41571. + dirpart=`$as_dirname -- "$mf" ||
  41572. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41573. + X"$mf" : 'X\(//\)[^/]' \| \
  41574. + X"$mf" : 'X\(//\)$' \| \
  41575. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  41576. +$as_echo X"$mf" |
  41577. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41578. + s//\1/
  41579. + q
  41580. + }
  41581. + /^X\(\/\/\)[^/].*/{
  41582. + s//\1/
  41583. + q
  41584. + }
  41585. + /^X\(\/\/\)$/{
  41586. + s//\1/
  41587. + q
  41588. + }
  41589. + /^X\(\/\).*/{
  41590. + s//\1/
  41591. + q
  41592. + }
  41593. + s/.*/./; q'`
  41594. + else
  41595. + continue
  41596. + fi
  41597. + # Extract the definition of DEPDIR, am__include, and am__quote
  41598. + # from the Makefile without running `make'.
  41599. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  41600. + test -z "$DEPDIR" && continue
  41601. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  41602. + test -z "am__include" && continue
  41603. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  41604. + # When using ansi2knr, U may be empty or an underscore; expand it
  41605. + U=`sed -n 's/^U = //p' < "$mf"`
  41606. + # Find all dependency output files, they are included files with
  41607. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  41608. + # simplest approach to changing $(DEPDIR) to its actual value in the
  41609. + # expansion.
  41610. + for file in `sed -n "
  41611. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  41612. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  41613. + # Make sure the directory exists.
  41614. + test -f "$dirpart/$file" && continue
  41615. + fdir=`$as_dirname -- "$file" ||
  41616. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41617. + X"$file" : 'X\(//\)[^/]' \| \
  41618. + X"$file" : 'X\(//\)$' \| \
  41619. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  41620. +$as_echo X"$file" |
  41621. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41622. + s//\1/
  41623. + q
  41624. + }
  41625. + /^X\(\/\/\)[^/].*/{
  41626. + s//\1/
  41627. + q
  41628. + }
  41629. + /^X\(\/\/\)$/{
  41630. + s//\1/
  41631. + q
  41632. + }
  41633. + /^X\(\/\).*/{
  41634. + s//\1/
  41635. + q
  41636. + }
  41637. + s/.*/./; q'`
  41638. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  41639. + # echo "creating $dirpart/$file"
  41640. + echo '# dummy' > "$dirpart/$file"
  41641. + done
  41642. + done
  41643. +}
  41644. + ;;
  41645. + "libtool":C)
  41646. + # See if we are running on zsh, and set the options which allow our
  41647. + # commands through without removal of \ escapes.
  41648. + if test -n "${ZSH_VERSION+set}" ; then
  41649. + setopt NO_GLOB_SUBST
  41650. + fi
  41651. + cfgfile="${ofile}T"
  41652. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  41653. + $RM "$cfgfile"
  41654. -fontconfig_save_libs="$LIBS"
  41655. -fontconfig_save_cflags="$CFLAGS"
  41656. -LIBS="$LIBS $FREETYPE_LIBS"
  41657. -CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
  41658. + cat <<_LT_EOF >> "$cfgfile"
  41659. +#! $SHELL
  41660. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  41661. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  41662. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  41663. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  41664. +#
  41665. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41666. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41667. +# Written by Gordon Matzigkeit, 1996
  41668. +#
  41669. +# This file is part of GNU Libtool.
  41670. +#
  41671. +# GNU Libtool is free software; you can redistribute it and/or
  41672. +# modify it under the terms of the GNU General Public License as
  41673. +# published by the Free Software Foundation; either version 2 of
  41674. +# the License, or (at your option) any later version.
  41675. +#
  41676. +# As a special exception to the GNU General Public License,
  41677. +# if you distribute this file as part of a program or library that
  41678. +# is built using GNU Libtool, you may include this file under the
  41679. +# same distribution terms that you use for the rest of that program.
  41680. +#
  41681. +# GNU Libtool is distributed in the hope that it will be useful,
  41682. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  41683. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  41684. +# GNU General Public License for more details.
  41685. +#
  41686. +# You should have received a copy of the GNU General Public License
  41687. +# along with GNU Libtool; see the file COPYING. If not, a copy
  41688. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  41689. +# obtained by writing to the Free Software Foundation, Inc.,
  41690. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  41691. +# The names of the tagged configurations supported by this script.
  41692. +available_tags=""
  41693. +# ### BEGIN LIBTOOL CONFIG
  41694. -for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_GlyphSlot_Embolden
  41695. -do
  41696. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41697. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  41698. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  41699. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  41700. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41701. -else
  41702. - cat >conftest.$ac_ext <<_ACEOF
  41703. -/* confdefs.h. */
  41704. -_ACEOF
  41705. -cat confdefs.h >>conftest.$ac_ext
  41706. -cat >>conftest.$ac_ext <<_ACEOF
  41707. -/* end confdefs.h. */
  41708. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  41709. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41710. -#define $ac_func innocuous_$ac_func
  41711. +# Which release of libtool.m4 was used?
  41712. +macro_version=$macro_version
  41713. +macro_revision=$macro_revision
  41714. -/* System header to define __stub macros and hopefully few prototypes,
  41715. - which can conflict with char $ac_func (); below.
  41716. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41717. - <limits.h> exists even on freestanding compilers. */
  41718. +# Whether or not to build shared libraries.
  41719. +build_libtool_libs=$enable_shared
  41720. -#ifdef __STDC__
  41721. -# include <limits.h>
  41722. -#else
  41723. -# include <assert.h>
  41724. -#endif
  41725. +# Whether or not to build static libraries.
  41726. +build_old_libs=$enable_static
  41727. -#undef $ac_func
  41728. +# What type of objects to build.
  41729. +pic_mode=$pic_mode
  41730. -/* Override any gcc2 internal prototype to avoid an error. */
  41731. -#ifdef __cplusplus
  41732. -extern "C"
  41733. -{
  41734. -#endif
  41735. -/* We use char because int might match the return type of a gcc2
  41736. - builtin and then its argument prototype would still apply. */
  41737. -char $ac_func ();
  41738. -/* The GNU C library defines this for functions which it implements
  41739. - to always fail with ENOSYS. Some functions are actually named
  41740. - something starting with __ and the normal name is an alias. */
  41741. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  41742. -choke me
  41743. -#else
  41744. -char (*f) () = $ac_func;
  41745. -#endif
  41746. -#ifdef __cplusplus
  41747. -}
  41748. -#endif
  41749. +# Whether or not to optimize for fast installation.
  41750. +fast_install=$enable_fast_install
  41751. -int
  41752. -main ()
  41753. -{
  41754. -return f != $ac_func;
  41755. - ;
  41756. - return 0;
  41757. -}
  41758. -_ACEOF
  41759. -rm -f conftest.$ac_objext conftest$ac_exeext
  41760. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  41761. - (eval $ac_link) 2>conftest.er1
  41762. - ac_status=$?
  41763. - grep -v '^ *+' conftest.er1 >conftest.err
  41764. - rm -f conftest.er1
  41765. - cat conftest.err >&5
  41766. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41767. - (exit $ac_status); } &&
  41768. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41769. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41770. - (eval $ac_try) 2>&5
  41771. - ac_status=$?
  41772. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41773. - (exit $ac_status); }; } &&
  41774. - { ac_try='test -s conftest$ac_exeext'
  41775. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41776. - (eval $ac_try) 2>&5
  41777. - ac_status=$?
  41778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41779. - (exit $ac_status); }; }; then
  41780. - eval "$as_ac_var=yes"
  41781. -else
  41782. - echo "$as_me: failed program was:" >&5
  41783. -sed 's/^/| /' conftest.$ac_ext >&5
  41784. +# The host system.
  41785. +host_alias=$host_alias
  41786. +host=$host
  41787. +host_os=$host_os
  41788. -eval "$as_ac_var=no"
  41789. -fi
  41790. -rm -f conftest.err conftest.$ac_objext \
  41791. - conftest$ac_exeext conftest.$ac_ext
  41792. -fi
  41793. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  41794. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  41795. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  41796. - cat >>confdefs.h <<_ACEOF
  41797. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41798. -_ACEOF
  41799. +# The build system.
  41800. +build_alias=$build_alias
  41801. +build=$build
  41802. +build_os=$build_os
  41803. -fi
  41804. -done
  41805. +# A sed program that does not truncate output.
  41806. +SED=$lt_SED
  41807. -echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5
  41808. -echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6
  41809. -if test "${ac_cv_member_FT_Bitmap_Size_y_ppem+set}" = set; then
  41810. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41811. -else
  41812. - cat >conftest.$ac_ext <<_ACEOF
  41813. -/* confdefs.h. */
  41814. -_ACEOF
  41815. -cat confdefs.h >>conftest.$ac_ext
  41816. -cat >>conftest.$ac_ext <<_ACEOF
  41817. -/* end confdefs.h. */
  41818. -#include <ft2build.h>
  41819. -#include FT_FREETYPE_H
  41820. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  41821. +Xsed="\$SED -e 1s/^X//"
  41822. -int
  41823. -main ()
  41824. -{
  41825. -static FT_Bitmap_Size ac_aggr;
  41826. -if (ac_aggr.y_ppem)
  41827. -return 0;
  41828. - ;
  41829. - return 0;
  41830. -}
  41831. -_ACEOF
  41832. -rm -f conftest.$ac_objext
  41833. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41834. - (eval $ac_compile) 2>conftest.er1
  41835. - ac_status=$?
  41836. - grep -v '^ *+' conftest.er1 >conftest.err
  41837. - rm -f conftest.er1
  41838. - cat conftest.err >&5
  41839. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41840. - (exit $ac_status); } &&
  41841. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41842. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41843. - (eval $ac_try) 2>&5
  41844. - ac_status=$?
  41845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41846. - (exit $ac_status); }; } &&
  41847. - { ac_try='test -s conftest.$ac_objext'
  41848. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41849. - (eval $ac_try) 2>&5
  41850. - ac_status=$?
  41851. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41852. - (exit $ac_status); }; }; then
  41853. - ac_cv_member_FT_Bitmap_Size_y_ppem=yes
  41854. -else
  41855. - echo "$as_me: failed program was:" >&5
  41856. -sed 's/^/| /' conftest.$ac_ext >&5
  41857. +# A grep program that handles long lines.
  41858. +GREP=$lt_GREP
  41859. -cat >conftest.$ac_ext <<_ACEOF
  41860. -/* confdefs.h. */
  41861. -_ACEOF
  41862. -cat confdefs.h >>conftest.$ac_ext
  41863. -cat >>conftest.$ac_ext <<_ACEOF
  41864. -/* end confdefs.h. */
  41865. -#include <ft2build.h>
  41866. -#include FT_FREETYPE_H
  41867. +# An ERE matcher.
  41868. +EGREP=$lt_EGREP
  41869. -int
  41870. -main ()
  41871. -{
  41872. -static FT_Bitmap_Size ac_aggr;
  41873. -if (sizeof ac_aggr.y_ppem)
  41874. -return 0;
  41875. - ;
  41876. - return 0;
  41877. -}
  41878. -_ACEOF
  41879. -rm -f conftest.$ac_objext
  41880. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41881. - (eval $ac_compile) 2>conftest.er1
  41882. - ac_status=$?
  41883. - grep -v '^ *+' conftest.er1 >conftest.err
  41884. - rm -f conftest.er1
  41885. - cat conftest.err >&5
  41886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41887. - (exit $ac_status); } &&
  41888. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41889. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41890. - (eval $ac_try) 2>&5
  41891. - ac_status=$?
  41892. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41893. - (exit $ac_status); }; } &&
  41894. - { ac_try='test -s conftest.$ac_objext'
  41895. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41896. - (eval $ac_try) 2>&5
  41897. - ac_status=$?
  41898. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41899. - (exit $ac_status); }; }; then
  41900. - ac_cv_member_FT_Bitmap_Size_y_ppem=yes
  41901. -else
  41902. - echo "$as_me: failed program was:" >&5
  41903. -sed 's/^/| /' conftest.$ac_ext >&5
  41904. +# A literal string matcher.
  41905. +FGREP=$lt_FGREP
  41906. -ac_cv_member_FT_Bitmap_Size_y_ppem=no
  41907. -fi
  41908. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41909. -fi
  41910. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41911. -fi
  41912. -echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5
  41913. -echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6
  41914. -if test $ac_cv_member_FT_Bitmap_Size_y_ppem = yes; then
  41915. - HAVE_FT_BITMAP_SIZE_Y_PPEM=1
  41916. -else
  41917. - HAVE_FT_BITMAP_SIZE_Y_PPEM=0
  41918. -fi
  41919. +# A BSD- or MS-compatible name lister.
  41920. +NM=$lt_NM
  41921. +# Whether we need soft or hard links.
  41922. +LN_S=$lt_LN_S
  41923. -cat >>confdefs.h <<_ACEOF
  41924. -#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
  41925. -_ACEOF
  41926. +# What is the maximum length of a command?
  41927. +max_cmd_len=$max_cmd_len
  41928. +# Object file suffix (normally "o").
  41929. +objext=$ac_objext
  41930. -LIBS="$fontconfig_save_libs"
  41931. -CFLAGS="$fontconfig_save_cflags"
  41932. +# Executable file suffix (normally "").
  41933. +exeext=$exeext
  41934. -if test "$VERSION" = "" ; then
  41935. - VERSION=$PACKAGE_VERSION;
  41936. -fi
  41937. +# whether the shell understands "unset".
  41938. +lt_unset=$lt_unset
  41939. -WARN_CFLAGS=""
  41940. +# turn spaces into newlines.
  41941. +SP2NL=$lt_lt_SP2NL
  41942. -if test "x$GCC" = "xyes"; then
  41943. - WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
  41944. - -Wmissing-prototypes -Wmissing-declarations \
  41945. - -Wnested-externs -fno-strict-aliasing"
  41946. -fi
  41947. +# turn newlines into spaces.
  41948. +NL2SP=$lt_lt_NL2SP
  41949. +# How to create reloadable object files.
  41950. +reload_flag=$lt_reload_flag
  41951. +reload_cmds=$lt_reload_cmds
  41952. +# An object symbol dumper.
  41953. +OBJDUMP=$lt_OBJDUMP
  41954. +# Method to check whether dependent libraries are shared objects.
  41955. +deplibs_check_method=$lt_deplibs_check_method
  41956. -# Check whether --with-release-version or --without-release-version was given.
  41957. -if test "${with_release_version+set}" = set; then
  41958. - withval="$with_release_version"
  41959. - RELEASE_VERSION="$withval"
  41960. -else
  41961. - RELEASE_VERSION=""
  41962. -fi;
  41963. - if test "x$RELEASE_VERSION" != "x"; then
  41964. - PACKAGE="$PACKAGE-$RELEASE_VERSION"
  41965. - PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  41966. - { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
  41967. -echo "$as_me: Building with package name set to $PACKAGE" >&6;}
  41968. - fi
  41969. +# Command to use when deplibs_check_method == "file_magic".
  41970. +file_magic_cmd=$lt_file_magic_cmd
  41971. +# The archiver.
  41972. +AR=$lt_AR
  41973. +AR_FLAGS=$lt_AR_FLAGS
  41974. - ac_config_files="$ac_config_files Makefile xft.pc xft-config src/Makefile man/Makefile man/xft-config.1 man/Xft.3"
  41975. -cat >confcache <<\_ACEOF
  41976. -# This file is a shell script that caches the results of configure
  41977. -# tests run on this system so they can be shared between configure
  41978. -# scripts and configure runs, see configure's option --config-cache.
  41979. -# It is not useful on other systems. If it contains results you don't
  41980. -# want to keep, you may remove or edit it.
  41981. -#
  41982. -# config.status only pays attention to the cache file if you give it
  41983. -# the --recheck option to rerun configure.
  41984. -#
  41985. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  41986. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  41987. -# following values.
  41988. +# A symbol stripping program.
  41989. +STRIP=$lt_STRIP
  41990. -_ACEOF
  41991. +# Commands used to install an old-style archive.
  41992. +RANLIB=$lt_RANLIB
  41993. +old_postinstall_cmds=$lt_old_postinstall_cmds
  41994. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  41995. -# The following way of writing the cache mishandles newlines in values,
  41996. -# but we know of no workaround that is simple, portable, and efficient.
  41997. -# So, don't put newlines in cache variables' values.
  41998. -# Ultrix sh set writes to stderr and can't be redirected directly,
  41999. -# and sets the high bit in the cache file unless we assign to the vars.
  42000. -{
  42001. - (set) 2>&1 |
  42002. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  42003. - *ac_space=\ *)
  42004. - # `set' does not quote correctly, so add quotes (double-quote
  42005. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  42006. - sed -n \
  42007. - "s/'/'\\\\''/g;
  42008. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  42009. - ;;
  42010. - *)
  42011. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  42012. - sed -n \
  42013. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  42014. - ;;
  42015. - esac;
  42016. -} |
  42017. - sed '
  42018. - t clear
  42019. - : clear
  42020. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  42021. - t end
  42022. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  42023. - : end' >>confcache
  42024. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  42025. - if test -w $cache_file; then
  42026. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  42027. - cat confcache >$cache_file
  42028. - else
  42029. - echo "not updating unwritable cache $cache_file"
  42030. - fi
  42031. -fi
  42032. -rm -f confcache
  42033. +# A C compiler.
  42034. +LTCC=$lt_CC
  42035. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  42036. -# Let make expand exec_prefix.
  42037. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  42038. +# LTCC compiler flags.
  42039. +LTCFLAGS=$lt_CFLAGS
  42040. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  42041. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  42042. -# trailing colons and then remove the whole line if VPATH becomes empty
  42043. -# (actually we leave an empty line to preserve line numbers).
  42044. -if test "x$srcdir" = x.; then
  42045. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  42046. -s/:*\$(srcdir):*/:/;
  42047. -s/:*\${srcdir}:*/:/;
  42048. -s/:*@srcdir@:*/:/;
  42049. -s/^\([^=]*=[ ]*\):*/\1/;
  42050. -s/:*$//;
  42051. -s/^[^=]*=[ ]*$//;
  42052. -}'
  42053. -fi
  42054. +# Take the output of nm and produce a listing of raw symbols and C names.
  42055. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  42056. -DEFS=-DHAVE_CONFIG_H
  42057. +# Transform the output of nm in a proper C declaration.
  42058. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  42059. -ac_libobjs=
  42060. -ac_ltlibobjs=
  42061. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  42062. - # 1. Remove the extension, and $U if already installed.
  42063. - ac_i=`echo "$ac_i" |
  42064. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  42065. - # 2. Add them.
  42066. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  42067. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  42068. -done
  42069. -LIBOBJS=$ac_libobjs
  42070. +# Transform the output of nm in a C name address pair.
  42071. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  42072. -LTLIBOBJS=$ac_ltlibobjs
  42073. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  42074. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  42075. +# The name of the directory that contains temporary libtool files.
  42076. +objdir=$objdir
  42077. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  42078. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  42079. -Usually this means the macro was only invoked conditionally." >&5
  42080. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  42081. -Usually this means the macro was only invoked conditionally." >&2;}
  42082. - { (exit 1); exit 1; }; }
  42083. -fi
  42084. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  42085. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  42086. -Usually this means the macro was only invoked conditionally." >&5
  42087. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  42088. -Usually this means the macro was only invoked conditionally." >&2;}
  42089. - { (exit 1); exit 1; }; }
  42090. -fi
  42091. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  42092. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  42093. -Usually this means the macro was only invoked conditionally." >&5
  42094. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  42095. -Usually this means the macro was only invoked conditionally." >&2;}
  42096. - { (exit 1); exit 1; }; }
  42097. -fi
  42098. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  42099. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  42100. -Usually this means the macro was only invoked conditionally." >&5
  42101. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  42102. -Usually this means the macro was only invoked conditionally." >&2;}
  42103. - { (exit 1); exit 1; }; }
  42104. -fi
  42105. +# Shell to use when invoking shell scripts.
  42106. +SHELL=$lt_SHELL
  42107. -: ${CONFIG_STATUS=./config.status}
  42108. -ac_clean_files_save=$ac_clean_files
  42109. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  42110. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  42111. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  42112. -cat >$CONFIG_STATUS <<_ACEOF
  42113. -#! $SHELL
  42114. -# Generated by $as_me.
  42115. -# Run this file to recreate the current configuration.
  42116. -# Compiler output produced by configure, useful for debugging
  42117. -# configure, is in config.log if it exists.
  42118. +# An echo program that does not interpret backslashes.
  42119. +ECHO=$lt_ECHO
  42120. -debug=false
  42121. -ac_cs_recheck=false
  42122. -ac_cs_silent=false
  42123. -SHELL=\${CONFIG_SHELL-$SHELL}
  42124. -_ACEOF
  42125. +# Used to examine libraries when file_magic_cmd begins with "file".
  42126. +MAGIC_CMD=$MAGIC_CMD
  42127. -cat >>$CONFIG_STATUS <<\_ACEOF
  42128. -## --------------------- ##
  42129. -## M4sh Initialization. ##
  42130. -## --------------------- ##
  42131. +# Must we lock files when doing compilation?
  42132. +need_locks=$lt_need_locks
  42133. -# Be Bourne compatible
  42134. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  42135. - emulate sh
  42136. - NULLCMD=:
  42137. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  42138. - # is contrary to our usage. Disable this feature.
  42139. - alias -g '${1+"$@"}'='"$@"'
  42140. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  42141. - set -o posix
  42142. -fi
  42143. -DUALCASE=1; export DUALCASE # for MKS sh
  42144. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  42145. +DSYMUTIL=$lt_DSYMUTIL
  42146. -# Support unset when possible.
  42147. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  42148. - as_unset=unset
  42149. -else
  42150. - as_unset=false
  42151. -fi
  42152. +# Tool to change global to local symbols on Mac OS X.
  42153. +NMEDIT=$lt_NMEDIT
  42154. +# Tool to manipulate fat objects and archives on Mac OS X.
  42155. +LIPO=$lt_LIPO
  42156. -# Work around bugs in pre-3.0 UWIN ksh.
  42157. -$as_unset ENV MAIL MAILPATH
  42158. -PS1='$ '
  42159. -PS2='> '
  42160. -PS4='+ '
  42161. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  42162. +OTOOL=$lt_OTOOL
  42163. -# NLS nuisances.
  42164. -for as_var in \
  42165. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  42166. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42167. - LC_TELEPHONE LC_TIME
  42168. -do
  42169. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42170. - eval $as_var=C; export $as_var
  42171. - else
  42172. - $as_unset $as_var
  42173. - fi
  42174. -done
  42175. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  42176. +OTOOL64=$lt_OTOOL64
  42177. -# Required to use basename.
  42178. -if expr a : '\(a\)' >/dev/null 2>&1; then
  42179. - as_expr=expr
  42180. -else
  42181. - as_expr=false
  42182. -fi
  42183. +# Old archive suffix (normally "a").
  42184. +libext=$libext
  42185. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  42186. - as_basename=basename
  42187. -else
  42188. - as_basename=false
  42189. -fi
  42190. +# Shared library suffix (normally ".so").
  42191. +shrext_cmds=$lt_shrext_cmds
  42192. +# The commands to extract the exported symbol list from a shared archive.
  42193. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  42194. -# Name of the executable.
  42195. -as_me=`$as_basename "$0" ||
  42196. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  42197. - X"$0" : 'X\(//\)$' \| \
  42198. - X"$0" : 'X\(/\)$' \| \
  42199. - . : '\(.\)' 2>/dev/null ||
  42200. -echo X/"$0" |
  42201. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  42202. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  42203. - /^X\/\(\/\).*/{ s//\1/; q; }
  42204. - s/.*/./; q'`
  42205. +# Variables whose values should be saved in libtool wrapper scripts and
  42206. +# restored at link time.
  42207. +variables_saved_for_relink=$lt_variables_saved_for_relink
  42208. +# Do we need the "lib" prefix for modules?
  42209. +need_lib_prefix=$need_lib_prefix
  42210. -# PATH needs CR, and LINENO needs CR and PATH.
  42211. -# Avoid depending upon Character Ranges.
  42212. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  42213. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  42214. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  42215. -as_cr_digits='0123456789'
  42216. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  42217. +# Do we need a version for libraries?
  42218. +need_version=$need_version
  42219. -# The user is always right.
  42220. -if test "${PATH_SEPARATOR+set}" != set; then
  42221. - echo "#! /bin/sh" >conf$$.sh
  42222. - echo "exit 0" >>conf$$.sh
  42223. - chmod +x conf$$.sh
  42224. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42225. - PATH_SEPARATOR=';'
  42226. - else
  42227. - PATH_SEPARATOR=:
  42228. - fi
  42229. - rm -f conf$$.sh
  42230. -fi
  42231. +# Library versioning type.
  42232. +version_type=$version_type
  42233. +# Shared library runtime path variable.
  42234. +runpath_var=$runpath_var
  42235. - as_lineno_1=$LINENO
  42236. - as_lineno_2=$LINENO
  42237. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  42238. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  42239. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  42240. - # Find who we are. Look in the path if we contain no path at all
  42241. - # relative or not.
  42242. - case $0 in
  42243. - *[\\/]* ) as_myself=$0 ;;
  42244. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42245. -for as_dir in $PATH
  42246. -do
  42247. - IFS=$as_save_IFS
  42248. - test -z "$as_dir" && as_dir=.
  42249. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  42250. -done
  42251. +# Shared library path variable.
  42252. +shlibpath_var=$shlibpath_var
  42253. - ;;
  42254. - esac
  42255. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  42256. - # in which case we are not to be found in the path.
  42257. - if test "x$as_myself" = x; then
  42258. - as_myself=$0
  42259. - fi
  42260. - if test ! -f "$as_myself"; then
  42261. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  42262. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  42263. - { (exit 1); exit 1; }; }
  42264. - fi
  42265. - case $CONFIG_SHELL in
  42266. - '')
  42267. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42268. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  42269. -do
  42270. - IFS=$as_save_IFS
  42271. - test -z "$as_dir" && as_dir=.
  42272. - for as_base in sh bash ksh sh5; do
  42273. - case $as_dir in
  42274. - /*)
  42275. - if ("$as_dir/$as_base" -c '
  42276. - as_lineno_1=$LINENO
  42277. - as_lineno_2=$LINENO
  42278. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  42279. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  42280. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  42281. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  42282. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  42283. - CONFIG_SHELL=$as_dir/$as_base
  42284. - export CONFIG_SHELL
  42285. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  42286. - fi;;
  42287. - esac
  42288. - done
  42289. -done
  42290. -;;
  42291. - esac
  42292. +# Is shlibpath searched before the hard-coded library search path?
  42293. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  42294. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  42295. - # uniformly replaced by the line number. The first 'sed' inserts a
  42296. - # line-number line before each line; the second 'sed' does the real
  42297. - # work. The second script uses 'N' to pair each line-number line
  42298. - # with the numbered line, and appends trailing '-' during
  42299. - # substitution so that $LINENO is not a special case at line end.
  42300. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  42301. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  42302. - sed '=' <$as_myself |
  42303. - sed '
  42304. - N
  42305. - s,$,-,
  42306. - : loop
  42307. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  42308. - t loop
  42309. - s,-$,,
  42310. - s,^['$as_cr_digits']*\n,,
  42311. - ' >$as_me.lineno &&
  42312. - chmod +x $as_me.lineno ||
  42313. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  42314. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  42315. - { (exit 1); exit 1; }; }
  42316. +# Format of library name prefix.
  42317. +libname_spec=$lt_libname_spec
  42318. - # Don't try to exec as it changes $[0], causing all sort of problems
  42319. - # (the dirname of $[0] is not the place where we might find the
  42320. - # original and so on. Autoconf is especially sensible to this).
  42321. - . ./$as_me.lineno
  42322. - # Exit status is that of the last command.
  42323. - exit
  42324. -}
  42325. +# List of archive names. First name is the real one, the rest are links.
  42326. +# The last name is the one that the linker finds with -lNAME
  42327. +library_names_spec=$lt_library_names_spec
  42328. +# The coded name of the library, if different from the real name.
  42329. +soname_spec=$lt_soname_spec
  42330. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  42331. - *c*,-n*) ECHO_N= ECHO_C='
  42332. -' ECHO_T=' ' ;;
  42333. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  42334. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  42335. -esac
  42336. +# Command to use after installation of a shared archive.
  42337. +postinstall_cmds=$lt_postinstall_cmds
  42338. -if expr a : '\(a\)' >/dev/null 2>&1; then
  42339. - as_expr=expr
  42340. -else
  42341. - as_expr=false
  42342. -fi
  42343. +# Command to use after uninstallation of a shared archive.
  42344. +postuninstall_cmds=$lt_postuninstall_cmds
  42345. -rm -f conf$$ conf$$.exe conf$$.file
  42346. -echo >conf$$.file
  42347. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  42348. - # We could just check for DJGPP; but this test a) works b) is more generic
  42349. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  42350. - if test -f conf$$.exe; then
  42351. - # Don't use ln at all; we don't have any links
  42352. - as_ln_s='cp -p'
  42353. - else
  42354. - as_ln_s='ln -s'
  42355. - fi
  42356. -elif ln conf$$.file conf$$ 2>/dev/null; then
  42357. - as_ln_s=ln
  42358. -else
  42359. - as_ln_s='cp -p'
  42360. -fi
  42361. -rm -f conf$$ conf$$.exe conf$$.file
  42362. +# Commands used to finish a libtool library installation in a directory.
  42363. +finish_cmds=$lt_finish_cmds
  42364. -if mkdir -p . 2>/dev/null; then
  42365. - as_mkdir_p=:
  42366. -else
  42367. - test -d ./-p && rmdir ./-p
  42368. - as_mkdir_p=false
  42369. -fi
  42370. +# As "finish_cmds", except a single script fragment to be evaled but
  42371. +# not shown.
  42372. +finish_eval=$lt_finish_eval
  42373. -as_executable_p="test -f"
  42374. +# Whether we should hardcode library paths into libraries.
  42375. +hardcode_into_libs=$hardcode_into_libs
  42376. -# Sed expression to map a string onto a valid CPP name.
  42377. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  42378. +# Compile-time system search path for libraries.
  42379. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  42380. -# Sed expression to map a string onto a valid variable name.
  42381. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  42382. +# Run-time system search path for libraries.
  42383. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  42384. +# Whether dlopen is supported.
  42385. +dlopen_support=$enable_dlopen
  42386. -# IFS
  42387. -# We need space, tab and new line, in precisely that order.
  42388. -as_nl='
  42389. -'
  42390. -IFS=" $as_nl"
  42391. +# Whether dlopen of programs is supported.
  42392. +dlopen_self=$enable_dlopen_self
  42393. -# CDPATH.
  42394. -$as_unset CDPATH
  42395. +# Whether dlopen of statically linked programs is supported.
  42396. +dlopen_self_static=$enable_dlopen_self_static
  42397. -exec 6>&1
  42398. +# Commands to strip libraries.
  42399. +old_striplib=$lt_old_striplib
  42400. +striplib=$lt_striplib
  42401. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  42402. -# report actual input values of CONFIG_FILES etc. instead of their
  42403. -# values after options handling. Logging --version etc. is OK.
  42404. -exec 5>>config.log
  42405. -{
  42406. - echo
  42407. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  42408. -## Running $as_me. ##
  42409. -_ASBOX
  42410. -} >&5
  42411. -cat >&5 <<_CSEOF
  42412. -This file was extended by libXft $as_me 2.1.9, which was
  42413. -generated by GNU Autoconf 2.59. Invocation command line was
  42414. +# The linker used to build libraries.
  42415. +LD=$lt_LD
  42416. - CONFIG_FILES = $CONFIG_FILES
  42417. - CONFIG_HEADERS = $CONFIG_HEADERS
  42418. - CONFIG_LINKS = $CONFIG_LINKS
  42419. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  42420. - $ $0 $@
  42421. +# Commands used to build an old-style archive.
  42422. +old_archive_cmds=$lt_old_archive_cmds
  42423. -_CSEOF
  42424. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  42425. -echo >&5
  42426. -_ACEOF
  42427. +# A language specific compiler.
  42428. +CC=$lt_compiler
  42429. -# Files that config.status was made for.
  42430. -if test -n "$ac_config_files"; then
  42431. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  42432. -fi
  42433. +# Is the compiler the GNU compiler?
  42434. +with_gcc=$GCC
  42435. -if test -n "$ac_config_headers"; then
  42436. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  42437. -fi
  42438. +# Compiler flag to turn off builtin functions.
  42439. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  42440. -if test -n "$ac_config_links"; then
  42441. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  42442. -fi
  42443. +# How to pass a linker flag through the compiler.
  42444. +wl=$lt_lt_prog_compiler_wl
  42445. -if test -n "$ac_config_commands"; then
  42446. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  42447. -fi
  42448. +# Additional compiler flags for building library objects.
  42449. +pic_flag=$lt_lt_prog_compiler_pic
  42450. -cat >>$CONFIG_STATUS <<\_ACEOF
  42451. +# Compiler flag to prevent dynamic linking.
  42452. +link_static_flag=$lt_lt_prog_compiler_static
  42453. -ac_cs_usage="\
  42454. -\`$as_me' instantiates files from templates according to the
  42455. -current configuration.
  42456. +# Does compiler simultaneously support -c and -o options?
  42457. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  42458. -Usage: $0 [OPTIONS] [FILE]...
  42459. +# Whether or not to add -lc for building shared libraries.
  42460. +build_libtool_need_lc=$archive_cmds_need_lc
  42461. - -h, --help print this help, then exit
  42462. - -V, --version print version number, then exit
  42463. - -q, --quiet do not print progress messages
  42464. - -d, --debug don't remove temporary files
  42465. - --recheck update $as_me by reconfiguring in the same conditions
  42466. - --file=FILE[:TEMPLATE]
  42467. - instantiate the configuration file FILE
  42468. - --header=FILE[:TEMPLATE]
  42469. - instantiate the configuration header FILE
  42470. +# Whether or not to disallow shared libs when runtime libs are static.
  42471. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  42472. -Configuration files:
  42473. -$config_files
  42474. +# Compiler flag to allow reflexive dlopens.
  42475. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  42476. -Configuration headers:
  42477. -$config_headers
  42478. +# Compiler flag to generate shared objects directly from archives.
  42479. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  42480. -Configuration commands:
  42481. -$config_commands
  42482. +# Whether the compiler copes with passing no objects directly.
  42483. +compiler_needs_object=$lt_compiler_needs_object
  42484. -Report bugs to <bug-autoconf@gnu.org>."
  42485. -_ACEOF
  42486. +# Create an old-style archive from a shared archive.
  42487. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  42488. -cat >>$CONFIG_STATUS <<_ACEOF
  42489. -ac_cs_version="\\
  42490. -libXft config.status 2.1.9
  42491. -configured by $0, generated by GNU Autoconf 2.59,
  42492. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  42493. +# Create a temporary old-style archive to link instead of a shared archive.
  42494. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  42495. -Copyright (C) 2003 Free Software Foundation, Inc.
  42496. -This config.status script is free software; the Free Software Foundation
  42497. -gives unlimited permission to copy, distribute and modify it."
  42498. -srcdir=$srcdir
  42499. -INSTALL="$INSTALL"
  42500. -_ACEOF
  42501. +# Commands used to build a shared archive.
  42502. +archive_cmds=$lt_archive_cmds
  42503. +archive_expsym_cmds=$lt_archive_expsym_cmds
  42504. -cat >>$CONFIG_STATUS <<\_ACEOF
  42505. -# If no file are specified by the user, then we need to provide default
  42506. -# value. By we need to know if files were specified by the user.
  42507. -ac_need_defaults=:
  42508. -while test $# != 0
  42509. -do
  42510. - case $1 in
  42511. - --*=*)
  42512. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  42513. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  42514. - ac_shift=:
  42515. - ;;
  42516. - -*)
  42517. - ac_option=$1
  42518. - ac_optarg=$2
  42519. - ac_shift=shift
  42520. - ;;
  42521. - *) # This is not an option, so the user has probably given explicit
  42522. - # arguments.
  42523. - ac_option=$1
  42524. - ac_need_defaults=false;;
  42525. - esac
  42526. +# Commands used to build a loadable module if different from building
  42527. +# a shared archive.
  42528. +module_cmds=$lt_module_cmds
  42529. +module_expsym_cmds=$lt_module_expsym_cmds
  42530. - case $ac_option in
  42531. - # Handling of the options.
  42532. -_ACEOF
  42533. -cat >>$CONFIG_STATUS <<\_ACEOF
  42534. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  42535. - ac_cs_recheck=: ;;
  42536. - --version | --vers* | -V )
  42537. - echo "$ac_cs_version"; exit 0 ;;
  42538. - --he | --h)
  42539. - # Conflict between --help and --header
  42540. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  42541. -Try \`$0 --help' for more information." >&5
  42542. -echo "$as_me: error: ambiguous option: $1
  42543. -Try \`$0 --help' for more information." >&2;}
  42544. - { (exit 1); exit 1; }; };;
  42545. - --help | --hel | -h )
  42546. - echo "$ac_cs_usage"; exit 0 ;;
  42547. - --debug | --d* | -d )
  42548. - debug=: ;;
  42549. - --file | --fil | --fi | --f )
  42550. - $ac_shift
  42551. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  42552. - ac_need_defaults=false;;
  42553. - --header | --heade | --head | --hea )
  42554. - $ac_shift
  42555. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  42556. - ac_need_defaults=false;;
  42557. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  42558. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  42559. - ac_cs_silent=: ;;
  42560. +# Whether we are building with GNU ld or not.
  42561. +with_gnu_ld=$lt_with_gnu_ld
  42562. - # This is an error.
  42563. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  42564. -Try \`$0 --help' for more information." >&5
  42565. -echo "$as_me: error: unrecognized option: $1
  42566. -Try \`$0 --help' for more information." >&2;}
  42567. - { (exit 1); exit 1; }; } ;;
  42568. +# Flag that allows shared libraries with undefined symbols to be built.
  42569. +allow_undefined_flag=$lt_allow_undefined_flag
  42570. - *) ac_config_targets="$ac_config_targets $1" ;;
  42571. +# Flag that enforces no undefined symbols.
  42572. +no_undefined_flag=$lt_no_undefined_flag
  42573. - esac
  42574. - shift
  42575. -done
  42576. +# Flag to hardcode \$libdir into a binary during linking.
  42577. +# This must work even if \$libdir does not exist
  42578. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  42579. -ac_configure_extra_args=
  42580. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  42581. +# during linking. This must work even if \$libdir does not exist.
  42582. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  42583. -if $ac_cs_silent; then
  42584. - exec 6>/dev/null
  42585. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  42586. -fi
  42587. +# Whether we need a single "-rpath" flag with a separated argument.
  42588. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  42589. -_ACEOF
  42590. -cat >>$CONFIG_STATUS <<_ACEOF
  42591. -if \$ac_cs_recheck; then
  42592. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  42593. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  42594. -fi
  42595. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  42596. +# DIR into the resulting binary.
  42597. +hardcode_direct=$hardcode_direct
  42598. -_ACEOF
  42599. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  42600. +# DIR into the resulting binary and the resulting library dependency is
  42601. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  42602. +# library is relocated.
  42603. +hardcode_direct_absolute=$hardcode_direct_absolute
  42604. -cat >>$CONFIG_STATUS <<_ACEOF
  42605. -#
  42606. -# INIT-COMMANDS section.
  42607. -#
  42608. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  42609. +# into the resulting binary.
  42610. +hardcode_minus_L=$hardcode_minus_L
  42611. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  42612. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  42613. +# into the resulting binary.
  42614. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  42615. -_ACEOF
  42616. +# Set to "yes" if building a shared library automatically hardcodes DIR
  42617. +# into the library and all subsequent libraries and executables linked
  42618. +# against it.
  42619. +hardcode_automatic=$hardcode_automatic
  42620. +
  42621. +# Set to yes if linker adds runtime paths of dependent libraries
  42622. +# to runtime path list.
  42623. +inherit_rpath=$inherit_rpath
  42624. +
  42625. +# Whether libtool must link a program against all its dependency libraries.
  42626. +link_all_deplibs=$link_all_deplibs
  42627. +
  42628. +# Fix the shell variable \$srcfile for the compiler.
  42629. +fix_srcfile_path=$lt_fix_srcfile_path
  42630. +
  42631. +# Set to "yes" if exported symbols are required.
  42632. +always_export_symbols=$always_export_symbols
  42633. +
  42634. +# The commands to list exported symbols.
  42635. +export_symbols_cmds=$lt_export_symbols_cmds
  42636. +# Symbols that should not be listed in the preloaded symbols.
  42637. +exclude_expsyms=$lt_exclude_expsyms
  42638. +# Symbols that must always be exported.
  42639. +include_expsyms=$lt_include_expsyms
  42640. -cat >>$CONFIG_STATUS <<\_ACEOF
  42641. -for ac_config_target in $ac_config_targets
  42642. -do
  42643. - case "$ac_config_target" in
  42644. - # Handling of arguments.
  42645. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  42646. - "xft.pc" ) CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
  42647. - "xft-config" ) CONFIG_FILES="$CONFIG_FILES xft-config" ;;
  42648. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  42649. - "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  42650. - "man/xft-config.1" ) CONFIG_FILES="$CONFIG_FILES man/xft-config.1" ;;
  42651. - "man/Xft.3" ) CONFIG_FILES="$CONFIG_FILES man/Xft.3" ;;
  42652. - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  42653. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  42654. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  42655. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  42656. - { (exit 1); exit 1; }; };;
  42657. - esac
  42658. -done
  42659. +# Commands necessary for linking programs (against libraries) with templates.
  42660. +prelink_cmds=$lt_prelink_cmds
  42661. -# If the user did not use the arguments to specify the items to instantiate,
  42662. -# then the envvar interface is used. Set only those that are not.
  42663. -# We use the long form for the default assignment because of an extremely
  42664. -# bizarre bug on SunOS 4.1.3.
  42665. -if $ac_need_defaults; then
  42666. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  42667. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  42668. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  42669. -fi
  42670. +# Specify filename containing input files.
  42671. +file_list_spec=$lt_file_list_spec
  42672. -# Have a temporary directory for convenience. Make it in the build tree
  42673. -# simply because there is no reason to put it here, and in addition,
  42674. -# creating and moving files from /tmp can sometimes cause problems.
  42675. -# Create a temporary directory, and hook for its removal unless debugging.
  42676. -$debug ||
  42677. -{
  42678. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  42679. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  42680. -}
  42681. +# How to hardcode a shared library path into an executable.
  42682. +hardcode_action=$hardcode_action
  42683. -# Create a (secure) tmp directory for tmp files.
  42684. +# ### END LIBTOOL CONFIG
  42685. -{
  42686. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  42687. - test -n "$tmp" && test -d "$tmp"
  42688. -} ||
  42689. -{
  42690. - tmp=./confstat$$-$RANDOM
  42691. - (umask 077 && mkdir $tmp)
  42692. -} ||
  42693. -{
  42694. - echo "$me: cannot create a temporary directory in ." >&2
  42695. - { (exit 1); exit 1; }
  42696. -}
  42697. +_LT_EOF
  42698. -_ACEOF
  42699. + case $host_os in
  42700. + aix3*)
  42701. + cat <<\_LT_EOF >> "$cfgfile"
  42702. +# AIX sometimes has problems with the GCC collect2 program. For some
  42703. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  42704. +# vanish in a puff of smoke.
  42705. +if test "X${COLLECT_NAMES+set}" != Xset; then
  42706. + COLLECT_NAMES=
  42707. + export COLLECT_NAMES
  42708. +fi
  42709. +_LT_EOF
  42710. + ;;
  42711. + esac
  42712. -cat >>$CONFIG_STATUS <<_ACEOF
  42713. -#
  42714. -# CONFIG_FILES section.
  42715. -#
  42716. +ltmain="$ac_aux_dir/ltmain.sh"
  42717. -# No need to generate the scripts if there are no CONFIG_FILES.
  42718. -# This happens for instance when ./config.status config.h
  42719. -if test -n "\$CONFIG_FILES"; then
  42720. - # Protect against being on the right side of a sed subst in config.status.
  42721. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  42722. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  42723. -s,@SHELL@,$SHELL,;t t
  42724. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  42725. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  42726. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  42727. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  42728. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  42729. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  42730. -s,@exec_prefix@,$exec_prefix,;t t
  42731. -s,@prefix@,$prefix,;t t
  42732. -s,@program_transform_name@,$program_transform_name,;t t
  42733. -s,@bindir@,$bindir,;t t
  42734. -s,@sbindir@,$sbindir,;t t
  42735. -s,@libexecdir@,$libexecdir,;t t
  42736. -s,@datadir@,$datadir,;t t
  42737. -s,@sysconfdir@,$sysconfdir,;t t
  42738. -s,@sharedstatedir@,$sharedstatedir,;t t
  42739. -s,@localstatedir@,$localstatedir,;t t
  42740. -s,@libdir@,$libdir,;t t
  42741. -s,@includedir@,$includedir,;t t
  42742. -s,@oldincludedir@,$oldincludedir,;t t
  42743. -s,@infodir@,$infodir,;t t
  42744. -s,@mandir@,$mandir,;t t
  42745. -s,@build_alias@,$build_alias,;t t
  42746. -s,@host_alias@,$host_alias,;t t
  42747. -s,@target_alias@,$target_alias,;t t
  42748. -s,@DEFS@,$DEFS,;t t
  42749. -s,@ECHO_C@,$ECHO_C,;t t
  42750. -s,@ECHO_N@,$ECHO_N,;t t
  42751. -s,@ECHO_T@,$ECHO_T,;t t
  42752. -s,@LIBS@,$LIBS,;t t
  42753. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  42754. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  42755. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  42756. -s,@CYGPATH_W@,$CYGPATH_W,;t t
  42757. -s,@PACKAGE@,$PACKAGE,;t t
  42758. -s,@VERSION@,$VERSION,;t t
  42759. -s,@ACLOCAL@,$ACLOCAL,;t t
  42760. -s,@AUTOCONF@,$AUTOCONF,;t t
  42761. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  42762. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  42763. -s,@MAKEINFO@,$MAKEINFO,;t t
  42764. -s,@install_sh@,$install_sh,;t t
  42765. -s,@STRIP@,$STRIP,;t t
  42766. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  42767. -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  42768. -s,@mkdir_p@,$mkdir_p,;t t
  42769. -s,@AWK@,$AWK,;t t
  42770. -s,@SET_MAKE@,$SET_MAKE,;t t
  42771. -s,@am__leading_dot@,$am__leading_dot,;t t
  42772. -s,@AMTAR@,$AMTAR,;t t
  42773. -s,@am__tar@,$am__tar,;t t
  42774. -s,@am__untar@,$am__untar,;t t
  42775. -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  42776. -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  42777. -s,@MAINT@,$MAINT,;t t
  42778. -s,@CC@,$CC,;t t
  42779. -s,@CFLAGS@,$CFLAGS,;t t
  42780. -s,@LDFLAGS@,$LDFLAGS,;t t
  42781. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  42782. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  42783. -s,@EXEEXT@,$EXEEXT,;t t
  42784. -s,@OBJEXT@,$OBJEXT,;t t
  42785. -s,@DEPDIR@,$DEPDIR,;t t
  42786. -s,@am__include@,$am__include,;t t
  42787. -s,@am__quote@,$am__quote,;t t
  42788. -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  42789. -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  42790. -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  42791. -s,@CCDEPMODE@,$CCDEPMODE,;t t
  42792. -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  42793. -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  42794. -s,@build@,$build,;t t
  42795. -s,@build_cpu@,$build_cpu,;t t
  42796. -s,@build_vendor@,$build_vendor,;t t
  42797. -s,@build_os@,$build_os,;t t
  42798. -s,@host@,$host,;t t
  42799. -s,@host_cpu@,$host_cpu,;t t
  42800. -s,@host_vendor@,$host_vendor,;t t
  42801. -s,@host_os@,$host_os,;t t
  42802. -s,@EGREP@,$EGREP,;t t
  42803. -s,@LN_S@,$LN_S,;t t
  42804. -s,@ECHO@,$ECHO,;t t
  42805. -s,@AR@,$AR,;t t
  42806. -s,@ac_ct_AR@,$ac_ct_AR,;t t
  42807. -s,@RANLIB@,$RANLIB,;t t
  42808. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  42809. -s,@CPP@,$CPP,;t t
  42810. -s,@CXX@,$CXX,;t t
  42811. -s,@CXXFLAGS@,$CXXFLAGS,;t t
  42812. -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  42813. -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  42814. -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  42815. -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  42816. -s,@CXXCPP@,$CXXCPP,;t t
  42817. -s,@F77@,$F77,;t t
  42818. -s,@FFLAGS@,$FFLAGS,;t t
  42819. -s,@ac_ct_F77@,$ac_ct_F77,;t t
  42820. -s,@LIBTOOL@,$LIBTOOL,;t t
  42821. -s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  42822. -s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
  42823. -s,@XRENDER_CFLAGS@,$XRENDER_CFLAGS,;t t
  42824. -s,@XRENDER_LIBS@,$XRENDER_LIBS,;t t
  42825. -s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
  42826. -s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
  42827. -s,@ft_config@,$ft_config,;t t
  42828. -s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
  42829. -s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
  42830. -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
  42831. -s,@LIBOBJS@,$LIBOBJS,;t t
  42832. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  42833. -CEOF
  42834. -_ACEOF
  42835. + # We use sed instead of cat because bash on DJGPP gets confused if
  42836. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  42837. + # text mode, it properly converts lines to CR/LF. This bash problem
  42838. + # is reportedly fixed, but why not run on old versions too?
  42839. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  42840. + || (rm -f "$cfgfile"; exit 1)
  42841. - cat >>$CONFIG_STATUS <<\_ACEOF
  42842. - # Split the substitutions into bite-sized pieces for seds with
  42843. - # small command number limits, like on Digital OSF/1 and HP-UX.
  42844. - ac_max_sed_lines=48
  42845. - ac_sed_frag=1 # Number of current file.
  42846. - ac_beg=1 # First line for current file.
  42847. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  42848. - ac_more_lines=:
  42849. - ac_sed_cmds=
  42850. - while $ac_more_lines; do
  42851. - if test $ac_beg -gt 1; then
  42852. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  42853. - else
  42854. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  42855. - fi
  42856. - if test ! -s $tmp/subs.frag; then
  42857. - ac_more_lines=false
  42858. - else
  42859. - # The purpose of the label and of the branching condition is to
  42860. - # speed up the sed processing (if there are no `@' at all, there
  42861. - # is no need to browse any of the substitutions).
  42862. - # These are the two extra sed commands mentioned above.
  42863. - (echo ':t
  42864. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  42865. - if test -z "$ac_sed_cmds"; then
  42866. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  42867. - else
  42868. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  42869. - fi
  42870. - ac_sed_frag=`expr $ac_sed_frag + 1`
  42871. - ac_beg=$ac_end
  42872. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  42873. - fi
  42874. - done
  42875. - if test -z "$ac_sed_cmds"; then
  42876. - ac_sed_cmds=cat
  42877. - fi
  42878. -fi # test -n "$CONFIG_FILES"
  42879. + case $xsi_shell in
  42880. + yes)
  42881. + cat << \_LT_EOF >> "$cfgfile"
  42882. -_ACEOF
  42883. -cat >>$CONFIG_STATUS <<\_ACEOF
  42884. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  42885. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  42886. - case $ac_file in
  42887. - - | *:- | *:-:* ) # input from stdin
  42888. - cat >$tmp/stdin
  42889. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  42890. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  42891. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  42892. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  42893. - * ) ac_file_in=$ac_file.in ;;
  42894. +# func_dirname file append nondir_replacement
  42895. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  42896. +# otherwise set result to NONDIR_REPLACEMENT.
  42897. +func_dirname ()
  42898. +{
  42899. + case ${1} in
  42900. + */*) func_dirname_result="${1%/*}${2}" ;;
  42901. + * ) func_dirname_result="${3}" ;;
  42902. esac
  42903. +}
  42904. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  42905. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  42906. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42907. - X"$ac_file" : 'X\(//\)[^/]' \| \
  42908. - X"$ac_file" : 'X\(//\)$' \| \
  42909. - X"$ac_file" : 'X\(/\)' \| \
  42910. - . : '\(.\)' 2>/dev/null ||
  42911. -echo X"$ac_file" |
  42912. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  42913. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  42914. - /^X\(\/\/\)$/{ s//\1/; q; }
  42915. - /^X\(\/\).*/{ s//\1/; q; }
  42916. - s/.*/./; q'`
  42917. - { if $as_mkdir_p; then
  42918. - mkdir -p "$ac_dir"
  42919. - else
  42920. - as_dir="$ac_dir"
  42921. - as_dirs=
  42922. - while test ! -d "$as_dir"; do
  42923. - as_dirs="$as_dir $as_dirs"
  42924. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  42925. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42926. - X"$as_dir" : 'X\(//\)[^/]' \| \
  42927. - X"$as_dir" : 'X\(//\)$' \| \
  42928. - X"$as_dir" : 'X\(/\)' \| \
  42929. - . : '\(.\)' 2>/dev/null ||
  42930. -echo X"$as_dir" |
  42931. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  42932. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  42933. - /^X\(\/\/\)$/{ s//\1/; q; }
  42934. - /^X\(\/\).*/{ s//\1/; q; }
  42935. - s/.*/./; q'`
  42936. - done
  42937. - test ! -n "$as_dirs" || mkdir $as_dirs
  42938. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  42939. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  42940. - { (exit 1); exit 1; }; }; }
  42941. +# func_basename file
  42942. +func_basename ()
  42943. +{
  42944. + func_basename_result="${1##*/}"
  42945. +}
  42946. - ac_builddir=.
  42947. +# func_dirname_and_basename file append nondir_replacement
  42948. +# perform func_basename and func_dirname in a single function
  42949. +# call:
  42950. +# dirname: Compute the dirname of FILE. If nonempty,
  42951. +# add APPEND to the result, otherwise set result
  42952. +# to NONDIR_REPLACEMENT.
  42953. +# value returned in "$func_dirname_result"
  42954. +# basename: Compute filename of FILE.
  42955. +# value retuned in "$func_basename_result"
  42956. +# Implementation must be kept synchronized with func_dirname
  42957. +# and func_basename. For efficiency, we do not delegate to
  42958. +# those functions but instead duplicate the functionality here.
  42959. +func_dirname_and_basename ()
  42960. +{
  42961. + case ${1} in
  42962. + */*) func_dirname_result="${1%/*}${2}" ;;
  42963. + * ) func_dirname_result="${3}" ;;
  42964. + esac
  42965. + func_basename_result="${1##*/}"
  42966. +}
  42967. -if test "$ac_dir" != .; then
  42968. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  42969. - # A "../" for each directory in $ac_dir_suffix.
  42970. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  42971. -else
  42972. - ac_dir_suffix= ac_top_builddir=
  42973. -fi
  42974. +# func_stripname prefix suffix name
  42975. +# strip PREFIX and SUFFIX off of NAME.
  42976. +# PREFIX and SUFFIX must not contain globbing or regex special
  42977. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  42978. +# dot (in which case that matches only a dot).
  42979. +func_stripname ()
  42980. +{
  42981. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  42982. + # positional parameters, so assign one to ordinary parameter first.
  42983. + func_stripname_result=${3}
  42984. + func_stripname_result=${func_stripname_result#"${1}"}
  42985. + func_stripname_result=${func_stripname_result%"${2}"}
  42986. +}
  42987. -case $srcdir in
  42988. - .) # No --srcdir option. We are building in place.
  42989. - ac_srcdir=.
  42990. - if test -z "$ac_top_builddir"; then
  42991. - ac_top_srcdir=.
  42992. - else
  42993. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  42994. - fi ;;
  42995. - [\\/]* | ?:[\\/]* ) # Absolute path.
  42996. - ac_srcdir=$srcdir$ac_dir_suffix;
  42997. - ac_top_srcdir=$srcdir ;;
  42998. - *) # Relative path.
  42999. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  43000. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  43001. -esac
  43002. +# func_opt_split
  43003. +func_opt_split ()
  43004. +{
  43005. + func_opt_split_opt=${1%%=*}
  43006. + func_opt_split_arg=${1#*=}
  43007. +}
  43008. -# Do not use `cd foo && pwd` to compute absolute paths, because
  43009. -# the directories may not exist.
  43010. -case `pwd` in
  43011. -.) ac_abs_builddir="$ac_dir";;
  43012. -*)
  43013. - case "$ac_dir" in
  43014. - .) ac_abs_builddir=`pwd`;;
  43015. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  43016. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  43017. - esac;;
  43018. -esac
  43019. -case $ac_abs_builddir in
  43020. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  43021. -*)
  43022. - case ${ac_top_builddir}. in
  43023. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  43024. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  43025. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  43026. - esac;;
  43027. -esac
  43028. -case $ac_abs_builddir in
  43029. -.) ac_abs_srcdir=$ac_srcdir;;
  43030. -*)
  43031. - case $ac_srcdir in
  43032. - .) ac_abs_srcdir=$ac_abs_builddir;;
  43033. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  43034. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  43035. - esac;;
  43036. -esac
  43037. -case $ac_abs_builddir in
  43038. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  43039. -*)
  43040. - case $ac_top_srcdir in
  43041. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  43042. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  43043. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  43044. - esac;;
  43045. -esac
  43046. +# func_lo2o object
  43047. +func_lo2o ()
  43048. +{
  43049. + case ${1} in
  43050. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  43051. + *) func_lo2o_result=${1} ;;
  43052. + esac
  43053. +}
  43054. +# func_xform libobj-or-source
  43055. +func_xform ()
  43056. +{
  43057. + func_xform_result=${1%.*}.lo
  43058. +}
  43059. - case $INSTALL in
  43060. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  43061. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  43062. - esac
  43063. +# func_arith arithmetic-term...
  43064. +func_arith ()
  43065. +{
  43066. + func_arith_result=$(( $* ))
  43067. +}
  43068. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  43069. - # use $as_me), people would be surprised to read:
  43070. - # /* config.h. Generated by config.status. */
  43071. - if test x"$ac_file" = x-; then
  43072. - configure_input=
  43073. - else
  43074. - configure_input="$ac_file. "
  43075. - fi
  43076. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  43077. - sed 's,.*/,,'` by configure."
  43078. +# func_len string
  43079. +# STRING may not start with a hyphen.
  43080. +func_len ()
  43081. +{
  43082. + func_len_result=${#1}
  43083. +}
  43084. - # First look for the input files in the build tree, otherwise in the
  43085. - # src tree.
  43086. - ac_file_inputs=`IFS=:
  43087. - for f in $ac_file_in; do
  43088. - case $f in
  43089. - -) echo $tmp/stdin ;;
  43090. - [\\/$]*)
  43091. - # Absolute (can't be DOS-style, as IFS=:)
  43092. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  43093. -echo "$as_me: error: cannot find input file: $f" >&2;}
  43094. - { (exit 1); exit 1; }; }
  43095. - echo "$f";;
  43096. - *) # Relative
  43097. - if test -f "$f"; then
  43098. - # Build tree
  43099. - echo "$f"
  43100. - elif test -f "$srcdir/$f"; then
  43101. - # Source tree
  43102. - echo "$srcdir/$f"
  43103. - else
  43104. - # /dev/null tree
  43105. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  43106. -echo "$as_me: error: cannot find input file: $f" >&2;}
  43107. - { (exit 1); exit 1; }; }
  43108. - fi;;
  43109. - esac
  43110. - done` || { (exit 1); exit 1; }
  43111. +_LT_EOF
  43112. + ;;
  43113. + *) # Bourne compatible functions.
  43114. + cat << \_LT_EOF >> "$cfgfile"
  43115. - if test x"$ac_file" != x-; then
  43116. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  43117. -echo "$as_me: creating $ac_file" >&6;}
  43118. - rm -f "$ac_file"
  43119. - fi
  43120. -_ACEOF
  43121. -cat >>$CONFIG_STATUS <<_ACEOF
  43122. - sed "$ac_vpsub
  43123. -$extrasub
  43124. -_ACEOF
  43125. -cat >>$CONFIG_STATUS <<\_ACEOF
  43126. -:t
  43127. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  43128. -s,@configure_input@,$configure_input,;t t
  43129. -s,@srcdir@,$ac_srcdir,;t t
  43130. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  43131. -s,@top_srcdir@,$ac_top_srcdir,;t t
  43132. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  43133. -s,@builddir@,$ac_builddir,;t t
  43134. -s,@abs_builddir@,$ac_abs_builddir,;t t
  43135. -s,@top_builddir@,$ac_top_builddir,;t t
  43136. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  43137. -s,@INSTALL@,$ac_INSTALL,;t t
  43138. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  43139. - rm -f $tmp/stdin
  43140. - if test x"$ac_file" != x-; then
  43141. - mv $tmp/out $ac_file
  43142. +# func_dirname file append nondir_replacement
  43143. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43144. +# otherwise set result to NONDIR_REPLACEMENT.
  43145. +func_dirname ()
  43146. +{
  43147. + # Extract subdirectory from the argument.
  43148. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  43149. + if test "X$func_dirname_result" = "X${1}"; then
  43150. + func_dirname_result="${3}"
  43151. else
  43152. - cat $tmp/out
  43153. - rm -f $tmp/out
  43154. + func_dirname_result="$func_dirname_result${2}"
  43155. fi
  43156. +}
  43157. -done
  43158. -_ACEOF
  43159. -cat >>$CONFIG_STATUS <<\_ACEOF
  43160. -
  43161. -#
  43162. -# CONFIG_HEADER section.
  43163. -#
  43164. +# func_basename file
  43165. +func_basename ()
  43166. +{
  43167. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  43168. +}
  43169. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  43170. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  43171. -#
  43172. -# ac_d sets the value in "#define NAME VALUE" lines.
  43173. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  43174. -ac_dB='[ ].*$,\1#\2'
  43175. -ac_dC=' '
  43176. -ac_dD=',;t'
  43177. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  43178. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  43179. -ac_uB='$,\1#\2define\3'
  43180. -ac_uC=' '
  43181. -ac_uD=',;t'
  43182. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  43183. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  43184. - case $ac_file in
  43185. - - | *:- | *:-:* ) # input from stdin
  43186. - cat >$tmp/stdin
  43187. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  43188. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  43189. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  43190. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  43191. - * ) ac_file_in=$ac_file.in ;;
  43192. +# func_stripname prefix suffix name
  43193. +# strip PREFIX and SUFFIX off of NAME.
  43194. +# PREFIX and SUFFIX must not contain globbing or regex special
  43195. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  43196. +# dot (in which case that matches only a dot).
  43197. +# func_strip_suffix prefix name
  43198. +func_stripname ()
  43199. +{
  43200. + case ${2} in
  43201. + .*) func_stripname_result=`$ECHO "X${3}" \
  43202. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  43203. + *) func_stripname_result=`$ECHO "X${3}" \
  43204. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  43205. esac
  43206. +}
  43207. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  43208. -echo "$as_me: creating $ac_file" >&6;}
  43209. -
  43210. - # First look for the input files in the build tree, otherwise in the
  43211. - # src tree.
  43212. - ac_file_inputs=`IFS=:
  43213. - for f in $ac_file_in; do
  43214. - case $f in
  43215. - -) echo $tmp/stdin ;;
  43216. - [\\/$]*)
  43217. - # Absolute (can't be DOS-style, as IFS=:)
  43218. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  43219. -echo "$as_me: error: cannot find input file: $f" >&2;}
  43220. - { (exit 1); exit 1; }; }
  43221. - # Do quote $f, to prevent DOS paths from being IFS'd.
  43222. - echo "$f";;
  43223. - *) # Relative
  43224. - if test -f "$f"; then
  43225. - # Build tree
  43226. - echo "$f"
  43227. - elif test -f "$srcdir/$f"; then
  43228. - # Source tree
  43229. - echo "$srcdir/$f"
  43230. - else
  43231. - # /dev/null tree
  43232. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  43233. -echo "$as_me: error: cannot find input file: $f" >&2;}
  43234. - { (exit 1); exit 1; }; }
  43235. - fi;;
  43236. - esac
  43237. - done` || { (exit 1); exit 1; }
  43238. - # Remove the trailing spaces.
  43239. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  43240. +# sed scripts:
  43241. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  43242. +my_sed_long_arg='1s/^-[^=]*=//'
  43243. -_ACEOF
  43244. +# func_opt_split
  43245. +func_opt_split ()
  43246. +{
  43247. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  43248. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  43249. +}
  43250. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  43251. -# `conftest.undefs', that substitutes the proper values into
  43252. -# config.h.in to produce config.h. The first handles `#define'
  43253. -# templates, and the second `#undef' templates.
  43254. -# And first: Protect against being on the right side of a sed subst in
  43255. -# config.status. Protect against being in an unquoted here document
  43256. -# in config.status.
  43257. -rm -f conftest.defines conftest.undefs
  43258. -# Using a here document instead of a string reduces the quoting nightmare.
  43259. -# Putting comments in sed scripts is not portable.
  43260. -#
  43261. -# `end' is used to avoid that the second main sed command (meant for
  43262. -# 0-ary CPP macros) applies to n-ary macro definitions.
  43263. -# See the Autoconf documentation for `clear'.
  43264. -cat >confdef2sed.sed <<\_ACEOF
  43265. -s/[\\&,]/\\&/g
  43266. -s,[\\$`],\\&,g
  43267. -t clear
  43268. -: clear
  43269. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  43270. -t end
  43271. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  43272. -: end
  43273. -_ACEOF
  43274. -# If some macros were called several times there might be several times
  43275. -# the same #defines, which is useless. Nevertheless, we may not want to
  43276. -# sort them, since we want the *last* AC-DEFINE to be honored.
  43277. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  43278. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  43279. -rm -f confdef2sed.sed
  43280. -
  43281. -# This sed command replaces #undef with comments. This is necessary, for
  43282. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  43283. -# on some systems where configure will not decide to define it.
  43284. -cat >>conftest.undefs <<\_ACEOF
  43285. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  43286. -_ACEOF
  43287. +# func_lo2o object
  43288. +func_lo2o ()
  43289. +{
  43290. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  43291. +}
  43292. -# Break up conftest.defines because some shells have a limit on the size
  43293. -# of here documents, and old seds have small limits too (100 cmds).
  43294. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  43295. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  43296. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  43297. -echo ' :' >>$CONFIG_STATUS
  43298. -rm -f conftest.tail
  43299. -while grep . conftest.defines >/dev/null
  43300. -do
  43301. - # Write a limited-size here document to $tmp/defines.sed.
  43302. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  43303. - # Speed up: don't consider the non `#define' lines.
  43304. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  43305. - # Work around the forget-to-reset-the-flag bug.
  43306. - echo 't clr' >>$CONFIG_STATUS
  43307. - echo ': clr' >>$CONFIG_STATUS
  43308. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  43309. - echo 'CEOF
  43310. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  43311. - rm -f $tmp/in
  43312. - mv $tmp/out $tmp/in
  43313. -' >>$CONFIG_STATUS
  43314. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  43315. - rm -f conftest.defines
  43316. - mv conftest.tail conftest.defines
  43317. -done
  43318. -rm -f conftest.defines
  43319. -echo ' fi # grep' >>$CONFIG_STATUS
  43320. -echo >>$CONFIG_STATUS
  43321. -
  43322. -# Break up conftest.undefs because some shells have a limit on the size
  43323. -# of here documents, and old seds have small limits too (100 cmds).
  43324. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  43325. -rm -f conftest.tail
  43326. -while grep . conftest.undefs >/dev/null
  43327. -do
  43328. - # Write a limited-size here document to $tmp/undefs.sed.
  43329. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  43330. - # Speed up: don't consider the non `#undef'
  43331. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  43332. - # Work around the forget-to-reset-the-flag bug.
  43333. - echo 't clr' >>$CONFIG_STATUS
  43334. - echo ': clr' >>$CONFIG_STATUS
  43335. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  43336. - echo 'CEOF
  43337. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  43338. - rm -f $tmp/in
  43339. - mv $tmp/out $tmp/in
  43340. -' >>$CONFIG_STATUS
  43341. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  43342. - rm -f conftest.undefs
  43343. - mv conftest.tail conftest.undefs
  43344. -done
  43345. -rm -f conftest.undefs
  43346. +# func_xform libobj-or-source
  43347. +func_xform ()
  43348. +{
  43349. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  43350. +}
  43351. -cat >>$CONFIG_STATUS <<\_ACEOF
  43352. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  43353. - # use $as_me), people would be surprised to read:
  43354. - # /* config.h. Generated by config.status. */
  43355. - if test x"$ac_file" = x-; then
  43356. - echo "/* Generated by configure. */" >$tmp/config.h
  43357. - else
  43358. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  43359. - fi
  43360. - cat $tmp/in >>$tmp/config.h
  43361. - rm -f $tmp/in
  43362. - if test x"$ac_file" != x-; then
  43363. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  43364. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  43365. -echo "$as_me: $ac_file is unchanged" >&6;}
  43366. - else
  43367. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  43368. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43369. - X"$ac_file" : 'X\(//\)[^/]' \| \
  43370. - X"$ac_file" : 'X\(//\)$' \| \
  43371. - X"$ac_file" : 'X\(/\)' \| \
  43372. - . : '\(.\)' 2>/dev/null ||
  43373. -echo X"$ac_file" |
  43374. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43375. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43376. - /^X\(\/\/\)$/{ s//\1/; q; }
  43377. - /^X\(\/\).*/{ s//\1/; q; }
  43378. - s/.*/./; q'`
  43379. - { if $as_mkdir_p; then
  43380. - mkdir -p "$ac_dir"
  43381. - else
  43382. - as_dir="$ac_dir"
  43383. - as_dirs=
  43384. - while test ! -d "$as_dir"; do
  43385. - as_dirs="$as_dir $as_dirs"
  43386. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  43387. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43388. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43389. - X"$as_dir" : 'X\(//\)$' \| \
  43390. - X"$as_dir" : 'X\(/\)' \| \
  43391. - . : '\(.\)' 2>/dev/null ||
  43392. -echo X"$as_dir" |
  43393. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43394. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43395. - /^X\(\/\/\)$/{ s//\1/; q; }
  43396. - /^X\(\/\).*/{ s//\1/; q; }
  43397. - s/.*/./; q'`
  43398. - done
  43399. - test ! -n "$as_dirs" || mkdir $as_dirs
  43400. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  43401. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  43402. - { (exit 1); exit 1; }; }; }
  43403. +# func_arith arithmetic-term...
  43404. +func_arith ()
  43405. +{
  43406. + func_arith_result=`expr "$@"`
  43407. +}
  43408. - rm -f $ac_file
  43409. - mv $tmp/config.h $ac_file
  43410. - fi
  43411. - else
  43412. - cat $tmp/config.h
  43413. - rm -f $tmp/config.h
  43414. - fi
  43415. -# Compute $ac_file's index in $config_headers.
  43416. -_am_stamp_count=1
  43417. -for _am_header in $config_headers :; do
  43418. - case $_am_header in
  43419. - $ac_file | $ac_file:* )
  43420. - break ;;
  43421. - * )
  43422. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  43423. - esac
  43424. -done
  43425. -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  43426. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43427. - X$ac_file : 'X\(//\)[^/]' \| \
  43428. - X$ac_file : 'X\(//\)$' \| \
  43429. - X$ac_file : 'X\(/\)' \| \
  43430. - . : '\(.\)' 2>/dev/null ||
  43431. -echo X$ac_file |
  43432. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43433. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43434. - /^X\(\/\/\)$/{ s//\1/; q; }
  43435. - /^X\(\/\).*/{ s//\1/; q; }
  43436. - s/.*/./; q'`/stamp-h$_am_stamp_count
  43437. -done
  43438. -_ACEOF
  43439. -cat >>$CONFIG_STATUS <<\_ACEOF
  43440. +# func_len string
  43441. +# STRING may not start with a hyphen.
  43442. +func_len ()
  43443. +{
  43444. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  43445. +}
  43446. -#
  43447. -# CONFIG_COMMANDS section.
  43448. -#
  43449. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  43450. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  43451. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  43452. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  43453. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43454. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  43455. - X"$ac_dest" : 'X\(//\)$' \| \
  43456. - X"$ac_dest" : 'X\(/\)' \| \
  43457. - . : '\(.\)' 2>/dev/null ||
  43458. -echo X"$ac_dest" |
  43459. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43460. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43461. - /^X\(\/\/\)$/{ s//\1/; q; }
  43462. - /^X\(\/\).*/{ s//\1/; q; }
  43463. - s/.*/./; q'`
  43464. - { if $as_mkdir_p; then
  43465. - mkdir -p "$ac_dir"
  43466. - else
  43467. - as_dir="$ac_dir"
  43468. - as_dirs=
  43469. - while test ! -d "$as_dir"; do
  43470. - as_dirs="$as_dir $as_dirs"
  43471. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  43472. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43473. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43474. - X"$as_dir" : 'X\(//\)$' \| \
  43475. - X"$as_dir" : 'X\(/\)' \| \
  43476. - . : '\(.\)' 2>/dev/null ||
  43477. -echo X"$as_dir" |
  43478. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43479. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43480. - /^X\(\/\/\)$/{ s//\1/; q; }
  43481. - /^X\(\/\).*/{ s//\1/; q; }
  43482. - s/.*/./; q'`
  43483. - done
  43484. - test ! -n "$as_dirs" || mkdir $as_dirs
  43485. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  43486. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  43487. - { (exit 1); exit 1; }; }; }
  43488. +_LT_EOF
  43489. +esac
  43490. - ac_builddir=.
  43491. +case $lt_shell_append in
  43492. + yes)
  43493. + cat << \_LT_EOF >> "$cfgfile"
  43494. +
  43495. +# func_append var value
  43496. +# Append VALUE to the end of shell variable VAR.
  43497. +func_append ()
  43498. +{
  43499. + eval "$1+=\$2"
  43500. +}
  43501. +_LT_EOF
  43502. + ;;
  43503. + *)
  43504. + cat << \_LT_EOF >> "$cfgfile"
  43505. -if test "$ac_dir" != .; then
  43506. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  43507. - # A "../" for each directory in $ac_dir_suffix.
  43508. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  43509. -else
  43510. - ac_dir_suffix= ac_top_builddir=
  43511. -fi
  43512. +# func_append var value
  43513. +# Append VALUE to the end of shell variable VAR.
  43514. +func_append ()
  43515. +{
  43516. + eval "$1=\$$1\$2"
  43517. +}
  43518. -case $srcdir in
  43519. - .) # No --srcdir option. We are building in place.
  43520. - ac_srcdir=.
  43521. - if test -z "$ac_top_builddir"; then
  43522. - ac_top_srcdir=.
  43523. - else
  43524. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  43525. - fi ;;
  43526. - [\\/]* | ?:[\\/]* ) # Absolute path.
  43527. - ac_srcdir=$srcdir$ac_dir_suffix;
  43528. - ac_top_srcdir=$srcdir ;;
  43529. - *) # Relative path.
  43530. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  43531. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  43532. -esac
  43533. +_LT_EOF
  43534. + ;;
  43535. + esac
  43536. -# Do not use `cd foo && pwd` to compute absolute paths, because
  43537. -# the directories may not exist.
  43538. -case `pwd` in
  43539. -.) ac_abs_builddir="$ac_dir";;
  43540. -*)
  43541. - case "$ac_dir" in
  43542. - .) ac_abs_builddir=`pwd`;;
  43543. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  43544. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  43545. - esac;;
  43546. -esac
  43547. -case $ac_abs_builddir in
  43548. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  43549. -*)
  43550. - case ${ac_top_builddir}. in
  43551. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  43552. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  43553. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  43554. - esac;;
  43555. -esac
  43556. -case $ac_abs_builddir in
  43557. -.) ac_abs_srcdir=$ac_srcdir;;
  43558. -*)
  43559. - case $ac_srcdir in
  43560. - .) ac_abs_srcdir=$ac_abs_builddir;;
  43561. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  43562. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  43563. - esac;;
  43564. -esac
  43565. -case $ac_abs_builddir in
  43566. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  43567. -*)
  43568. - case $ac_top_srcdir in
  43569. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  43570. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  43571. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  43572. - esac;;
  43573. -esac
  43574. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  43575. + || (rm -f "$cfgfile"; exit 1)
  43576. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  43577. -echo "$as_me: executing $ac_dest commands" >&6;}
  43578. - case $ac_dest in
  43579. - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  43580. - # Strip MF so we end up with the name of the file.
  43581. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  43582. - # Check whether this is an Automake generated Makefile or not.
  43583. - # We used to match only the files named `Makefile.in', but
  43584. - # some people rename them; so instead we look at the file content.
  43585. - # Grep'ing the first line is not enough: some people post-process
  43586. - # each Makefile.in and add a new line on top of each file to say so.
  43587. - # So let's grep whole file.
  43588. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  43589. - dirpart=`(dirname "$mf") 2>/dev/null ||
  43590. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43591. - X"$mf" : 'X\(//\)[^/]' \| \
  43592. - X"$mf" : 'X\(//\)$' \| \
  43593. - X"$mf" : 'X\(/\)' \| \
  43594. - . : '\(.\)' 2>/dev/null ||
  43595. -echo X"$mf" |
  43596. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43597. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43598. - /^X\(\/\/\)$/{ s//\1/; q; }
  43599. - /^X\(\/\).*/{ s//\1/; q; }
  43600. - s/.*/./; q'`
  43601. - else
  43602. - continue
  43603. - fi
  43604. - # Extract the definition of DEPDIR, am__include, and am__quote
  43605. - # from the Makefile without running `make'.
  43606. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  43607. - test -z "$DEPDIR" && continue
  43608. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  43609. - test -z "am__include" && continue
  43610. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  43611. - # When using ansi2knr, U may be empty or an underscore; expand it
  43612. - U=`sed -n 's/^U = //p' < "$mf"`
  43613. - # Find all dependency output files, they are included files with
  43614. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  43615. - # simplest approach to changing $(DEPDIR) to its actual value in the
  43616. - # expansion.
  43617. - for file in `sed -n "
  43618. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  43619. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  43620. - # Make sure the directory exists.
  43621. - test -f "$dirpart/$file" && continue
  43622. - fdir=`(dirname "$file") 2>/dev/null ||
  43623. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43624. - X"$file" : 'X\(//\)[^/]' \| \
  43625. - X"$file" : 'X\(//\)$' \| \
  43626. - X"$file" : 'X\(/\)' \| \
  43627. - . : '\(.\)' 2>/dev/null ||
  43628. -echo X"$file" |
  43629. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43630. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43631. - /^X\(\/\/\)$/{ s//\1/; q; }
  43632. - /^X\(\/\).*/{ s//\1/; q; }
  43633. - s/.*/./; q'`
  43634. - { if $as_mkdir_p; then
  43635. - mkdir -p $dirpart/$fdir
  43636. - else
  43637. - as_dir=$dirpart/$fdir
  43638. - as_dirs=
  43639. - while test ! -d "$as_dir"; do
  43640. - as_dirs="$as_dir $as_dirs"
  43641. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  43642. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43643. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43644. - X"$as_dir" : 'X\(//\)$' \| \
  43645. - X"$as_dir" : 'X\(/\)' \| \
  43646. - . : '\(.\)' 2>/dev/null ||
  43647. -echo X"$as_dir" |
  43648. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43649. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43650. - /^X\(\/\/\)$/{ s//\1/; q; }
  43651. - /^X\(\/\).*/{ s//\1/; q; }
  43652. - s/.*/./; q'`
  43653. - done
  43654. - test ! -n "$as_dirs" || mkdir $as_dirs
  43655. - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  43656. -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  43657. - { (exit 1); exit 1; }; }; }
  43658. + mv -f "$cfgfile" "$ofile" ||
  43659. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  43660. + chmod +x "$ofile"
  43661. - # echo "creating $dirpart/$file"
  43662. - echo '# dummy' > "$dirpart/$file"
  43663. - done
  43664. -done
  43665. ;;
  43666. +
  43667. esac
  43668. -done
  43669. -_ACEOF
  43670. +done # for ac_tag
  43671. -cat >>$CONFIG_STATUS <<\_ACEOF
  43672. -{ (exit 0); exit 0; }
  43673. +as_fn_exit 0
  43674. _ACEOF
  43675. -chmod +x $CONFIG_STATUS
  43676. ac_clean_files=$ac_clean_files_save
  43677. +test $ac_write_fail = 0 ||
  43678. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  43679. +
  43680. # configure is writing to config.log, and then calls config.status.
  43681. # config.status does its own redirection, appending to config.log.
  43682. @@ -21374,6 +13656,10 @@
  43683. exec 5>>config.log
  43684. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  43685. # would make configure fail if this is the last instruction.
  43686. - $ac_cs_success || { (exit 1); exit 1; }
  43687. + $ac_cs_success || as_fn_exit $?
  43688. +fi
  43689. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  43690. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  43691. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  43692. fi
  43693. diff -Nur libXft-2.1.9.orig/depcomp libXft-2.1.9/depcomp
  43694. --- libXft-2.1.9.orig/depcomp 2006-06-03 12:33:30.000000000 +0200
  43695. +++ libXft-2.1.9/depcomp 2011-02-16 21:01:10.663563200 +0100
  43696. @@ -1,9 +1,10 @@
  43697. #! /bin/sh
  43698. # depcomp - compile a program generating dependencies as side-effects
  43699. -scriptversion=2005-07-09.11
  43700. +scriptversion=2009-04-28.21; # UTC
  43701. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  43702. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  43703. +# Software Foundation, Inc.
  43704. # This program is free software; you can redistribute it and/or modify
  43705. # it under the terms of the GNU General Public License as published by
  43706. @@ -16,9 +17,7 @@
  43707. # GNU General Public License for more details.
  43708. # You should have received a copy of the GNU General Public License
  43709. -# along with this program; if not, write to the Free Software
  43710. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  43711. -# 02110-1301, USA.
  43712. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  43713. # As a special exception to the GNU General Public License, if you
  43714. # distribute this file as part of a program that contains a
  43715. @@ -86,12 +85,34 @@
  43716. depmode=dashmstdout
  43717. fi
  43718. +cygpath_u="cygpath -u -f -"
  43719. +if test "$depmode" = msvcmsys; then
  43720. + # This is just like msvisualcpp but w/o cygpath translation.
  43721. + # Just convert the backslash-escaped backslashes to single forward
  43722. + # slashes to satisfy depend.m4
  43723. + cygpath_u="sed s,\\\\\\\\,/,g"
  43724. + depmode=msvisualcpp
  43725. +fi
  43726. +
  43727. case "$depmode" in
  43728. gcc3)
  43729. ## gcc 3 implements dependency tracking that does exactly what
  43730. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  43731. ## it if -MD -MP comes after the -MF stuff. Hmm.
  43732. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  43733. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  43734. +## the command line argument order; so add the flags where they
  43735. +## appear in depend2.am. Note that the slowdown incurred here
  43736. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  43737. + for arg
  43738. + do
  43739. + case $arg in
  43740. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  43741. + *) set fnord "$@" "$arg" ;;
  43742. + esac
  43743. + shift # fnord
  43744. + shift # $arg
  43745. + done
  43746. + "$@"
  43747. stat=$?
  43748. if test $stat -eq 0; then :
  43749. else
  43750. @@ -178,14 +199,14 @@
  43751. ' < "$tmpdepfile" \
  43752. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  43753. tr '
  43754. -' ' ' >> $depfile
  43755. - echo >> $depfile
  43756. +' ' ' >> "$depfile"
  43757. + echo >> "$depfile"
  43758. # The second pass generates a dummy entry for each header file.
  43759. tr ' ' '
  43760. ' < "$tmpdepfile" \
  43761. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  43762. - >> $depfile
  43763. + >> "$depfile"
  43764. else
  43765. # The sourcefile does not contain any dependencies, so just
  43766. # store a dummy comment line, to avoid errors with the Makefile
  43767. @@ -201,34 +222,39 @@
  43768. # current directory. Also, the AIX compiler puts `$object:' at the
  43769. # start of each line; $object doesn't have directory information.
  43770. # Version 6 uses the directory in both cases.
  43771. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  43772. - tmpdepfile="$stripped.u"
  43773. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  43774. + test "x$dir" = "x$object" && dir=
  43775. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  43776. if test "$libtool" = yes; then
  43777. + tmpdepfile1=$dir$base.u
  43778. + tmpdepfile2=$base.u
  43779. + tmpdepfile3=$dir.libs/$base.u
  43780. "$@" -Wc,-M
  43781. else
  43782. + tmpdepfile1=$dir$base.u
  43783. + tmpdepfile2=$dir$base.u
  43784. + tmpdepfile3=$dir$base.u
  43785. "$@" -M
  43786. fi
  43787. stat=$?
  43788. - if test -f "$tmpdepfile"; then :
  43789. - else
  43790. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  43791. - tmpdepfile="$stripped.u"
  43792. - fi
  43793. -
  43794. if test $stat -eq 0; then :
  43795. else
  43796. - rm -f "$tmpdepfile"
  43797. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  43798. exit $stat
  43799. fi
  43800. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  43801. + do
  43802. + test -f "$tmpdepfile" && break
  43803. + done
  43804. if test -f "$tmpdepfile"; then
  43805. - outname="$stripped.o"
  43806. # Each line is of the form `foo.o: dependent.h'.
  43807. # Do two passes, one to just change these to
  43808. # `$object: dependent.h' and one to simply `dependent.h:'.
  43809. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  43810. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  43811. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  43812. + # That's a tab and a space in the [].
  43813. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  43814. else
  43815. # The sourcefile does not contain any dependencies, so just
  43816. # store a dummy comment line, to avoid errors with the Makefile
  43817. @@ -276,6 +302,51 @@
  43818. rm -f "$tmpdepfile"
  43819. ;;
  43820. +hp2)
  43821. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  43822. + # compilers, which have integrated preprocessors. The correct option
  43823. + # to use with these is +Maked; it writes dependencies to a file named
  43824. + # 'foo.d', which lands next to the object file, wherever that
  43825. + # happens to be.
  43826. + # Much of this is similar to the tru64 case; see comments there.
  43827. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  43828. + test "x$dir" = "x$object" && dir=
  43829. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  43830. + if test "$libtool" = yes; then
  43831. + tmpdepfile1=$dir$base.d
  43832. + tmpdepfile2=$dir.libs/$base.d
  43833. + "$@" -Wc,+Maked
  43834. + else
  43835. + tmpdepfile1=$dir$base.d
  43836. + tmpdepfile2=$dir$base.d
  43837. + "$@" +Maked
  43838. + fi
  43839. + stat=$?
  43840. + if test $stat -eq 0; then :
  43841. + else
  43842. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  43843. + exit $stat
  43844. + fi
  43845. +
  43846. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  43847. + do
  43848. + test -f "$tmpdepfile" && break
  43849. + done
  43850. + if test -f "$tmpdepfile"; then
  43851. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  43852. + # Add `dependent.h:' lines.
  43853. + sed -ne '2,${
  43854. + s/^ *//
  43855. + s/ \\*$//
  43856. + s/$/:/
  43857. + p
  43858. + }' "$tmpdepfile" >> "$depfile"
  43859. + else
  43860. + echo "#dummy" > "$depfile"
  43861. + fi
  43862. + rm -f "$tmpdepfile" "$tmpdepfile2"
  43863. + ;;
  43864. +
  43865. tru64)
  43866. # The Tru64 compiler uses -MD to generate dependencies as a side
  43867. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  43868. @@ -288,13 +359,13 @@
  43869. if test "$libtool" = yes; then
  43870. # With Tru64 cc, shared objects can also be used to make a
  43871. - # static library. This mecanism is used in libtool 1.4 series to
  43872. + # static library. This mechanism is used in libtool 1.4 series to
  43873. # handle both shared and static libraries in a single compilation.
  43874. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  43875. #
  43876. # With libtool 1.5 this exception was removed, and libtool now
  43877. # generates 2 separate objects for the 2 libraries. These two
  43878. - # compilations output dependencies in in $dir.libs/$base.o.d and
  43879. + # compilations output dependencies in $dir.libs/$base.o.d and
  43880. # in $dir$base.o.d. We have to check for both files, because
  43881. # one of the two compilations can be disabled. We should prefer
  43882. # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  43883. @@ -345,7 +416,7 @@
  43884. # Remove the call to Libtool.
  43885. if test "$libtool" = yes; then
  43886. - while test $1 != '--mode=compile'; do
  43887. + while test "X$1" != 'X--mode=compile'; do
  43888. shift
  43889. done
  43890. shift
  43891. @@ -396,32 +467,39 @@
  43892. "$@" || exit $?
  43893. # Remove any Libtool call
  43894. if test "$libtool" = yes; then
  43895. - while test $1 != '--mode=compile'; do
  43896. + while test "X$1" != 'X--mode=compile'; do
  43897. shift
  43898. done
  43899. shift
  43900. fi
  43901. # X makedepend
  43902. shift
  43903. - cleared=no
  43904. - for arg in "$@"; do
  43905. + cleared=no eat=no
  43906. + for arg
  43907. + do
  43908. case $cleared in
  43909. no)
  43910. set ""; shift
  43911. cleared=yes ;;
  43912. esac
  43913. + if test $eat = yes; then
  43914. + eat=no
  43915. + continue
  43916. + fi
  43917. case "$arg" in
  43918. -D*|-I*)
  43919. set fnord "$@" "$arg"; shift ;;
  43920. # Strip any option that makedepend may not understand. Remove
  43921. # the object too, otherwise makedepend will parse it as a source file.
  43922. + -arch)
  43923. + eat=yes ;;
  43924. -*|$object)
  43925. ;;
  43926. *)
  43927. set fnord "$@" "$arg"; shift ;;
  43928. esac
  43929. done
  43930. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  43931. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  43932. touch "$tmpdepfile"
  43933. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  43934. rm -f "$depfile"
  43935. @@ -441,7 +519,7 @@
  43936. # Remove the call to Libtool.
  43937. if test "$libtool" = yes; then
  43938. - while test $1 != '--mode=compile'; do
  43939. + while test "X$1" != 'X--mode=compile'; do
  43940. shift
  43941. done
  43942. shift
  43943. @@ -479,13 +557,27 @@
  43944. msvisualcpp)
  43945. # Important note: in order to support this mode, a compiler *must*
  43946. - # always write the preprocessed file to stdout, regardless of -o,
  43947. - # because we must use -o when running libtool.
  43948. + # always write the preprocessed file to stdout.
  43949. "$@" || exit $?
  43950. +
  43951. + # Remove the call to Libtool.
  43952. + if test "$libtool" = yes; then
  43953. + while test "X$1" != 'X--mode=compile'; do
  43954. + shift
  43955. + done
  43956. + shift
  43957. + fi
  43958. +
  43959. IFS=" "
  43960. for arg
  43961. do
  43962. case "$arg" in
  43963. + -o)
  43964. + shift
  43965. + ;;
  43966. + $object)
  43967. + shift
  43968. + ;;
  43969. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  43970. set fnord "$@"
  43971. shift
  43972. @@ -498,16 +590,23 @@
  43973. ;;
  43974. esac
  43975. done
  43976. - "$@" -E |
  43977. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  43978. + "$@" -E 2>/dev/null |
  43979. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  43980. rm -f "$depfile"
  43981. echo "$object : \\" > "$depfile"
  43982. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  43983. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  43984. echo " " >> "$depfile"
  43985. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  43986. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  43987. rm -f "$tmpdepfile"
  43988. ;;
  43989. +msvcmsys)
  43990. + # This case exists only to let depend.m4 do its work. It works by
  43991. + # looking at the text of this script. This case will never be run,
  43992. + # since it is checked for above.
  43993. + exit 1
  43994. + ;;
  43995. +
  43996. none)
  43997. exec "$@"
  43998. ;;
  43999. @@ -526,5 +625,6 @@
  44000. # eval: (add-hook 'write-file-hooks 'time-stamp)
  44001. # time-stamp-start: "scriptversion="
  44002. # time-stamp-format: "%:y-%02m-%02d.%02H"
  44003. -# time-stamp-end: "$"
  44004. +# time-stamp-time-zone: "UTC"
  44005. +# time-stamp-end: "; # UTC"
  44006. # End:
  44007. diff -Nur libXft-2.1.9.orig/INSTALL libXft-2.1.9/INSTALL
  44008. --- libXft-2.1.9.orig/INSTALL 2004-04-23 20:43:41.000000000 +0200
  44009. +++ libXft-2.1.9/INSTALL 2011-02-16 21:01:10.713554756 +0100
  44010. @@ -1,8 +1,365 @@
  44011. -Xft is built with the traditional configure script:
  44012. +Installation Instructions
  44013. +*************************
  44014. - $ ./configure --prefix=/usr/X11R6
  44015. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  44016. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  44017. -This should generate valid Makefiles, then:
  44018. + Copying and distribution of this file, with or without modification,
  44019. +are permitted in any medium without royalty provided the copyright
  44020. +notice and this notice are preserved. This file is offered as-is,
  44021. +without warranty of any kind.
  44022. +
  44023. +Basic Installation
  44024. +==================
  44025. +
  44026. + Briefly, the shell commands `./configure; make; make install' should
  44027. +configure, build, and install this package. The following
  44028. +more-detailed instructions are generic; see the `README' file for
  44029. +instructions specific to this package. Some packages provide this
  44030. +`INSTALL' file but do not implement all of the features documented
  44031. +below. The lack of an optional feature in a given package is not
  44032. +necessarily a bug. More recommendations for GNU packages can be found
  44033. +in *note Makefile Conventions: (standards)Makefile Conventions.
  44034. +
  44035. + The `configure' shell script attempts to guess correct values for
  44036. +various system-dependent variables used during compilation. It uses
  44037. +those values to create a `Makefile' in each directory of the package.
  44038. +It may also create one or more `.h' files containing system-dependent
  44039. +definitions. Finally, it creates a shell script `config.status' that
  44040. +you can run in the future to recreate the current configuration, and a
  44041. +file `config.log' containing compiler output (useful mainly for
  44042. +debugging `configure').
  44043. +
  44044. + It can also use an optional file (typically called `config.cache'
  44045. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  44046. +the results of its tests to speed up reconfiguring. Caching is
  44047. +disabled by default to prevent problems with accidental use of stale
  44048. +cache files.
  44049. +
  44050. + If you need to do unusual things to compile the package, please try
  44051. +to figure out how `configure' could check whether to do them, and mail
  44052. +diffs or instructions to the address given in the `README' so they can
  44053. +be considered for the next release. If you are using the cache, and at
  44054. +some point `config.cache' contains results you don't want to keep, you
  44055. +may remove or edit it.
  44056. +
  44057. + The file `configure.ac' (or `configure.in') is used to create
  44058. +`configure' by a program called `autoconf'. You need `configure.ac' if
  44059. +you want to change it or regenerate `configure' using a newer version
  44060. +of `autoconf'.
  44061. +
  44062. + The simplest way to compile this package is:
  44063. +
  44064. + 1. `cd' to the directory containing the package's source code and type
  44065. + `./configure' to configure the package for your system.
  44066. +
  44067. + Running `configure' might take a while. While running, it prints
  44068. + some messages telling which features it is checking for.
  44069. +
  44070. + 2. Type `make' to compile the package.
  44071. +
  44072. + 3. Optionally, type `make check' to run any self-tests that come with
  44073. + the package, generally using the just-built uninstalled binaries.
  44074. +
  44075. + 4. Type `make install' to install the programs and any data files and
  44076. + documentation. When installing into a prefix owned by root, it is
  44077. + recommended that the package be configured and built as a regular
  44078. + user, and only the `make install' phase executed with root
  44079. + privileges.
  44080. +
  44081. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  44082. + this time using the binaries in their final installed location.
  44083. + This target does not install anything. Running this target as a
  44084. + regular user, particularly if the prior `make install' required
  44085. + root privileges, verifies that the installation completed
  44086. + correctly.
  44087. +
  44088. + 6. You can remove the program binaries and object files from the
  44089. + source code directory by typing `make clean'. To also remove the
  44090. + files that `configure' created (so you can compile the package for
  44091. + a different kind of computer), type `make distclean'. There is
  44092. + also a `make maintainer-clean' target, but that is intended mainly
  44093. + for the package's developers. If you use it, you may have to get
  44094. + all sorts of other programs in order to regenerate files that came
  44095. + with the distribution.
  44096. +
  44097. + 7. Often, you can also type `make uninstall' to remove the installed
  44098. + files again. In practice, not all packages have tested that
  44099. + uninstallation works correctly, even though it is required by the
  44100. + GNU Coding Standards.
  44101. +
  44102. + 8. Some packages, particularly those that use Automake, provide `make
  44103. + distcheck', which can by used by developers to test that all other
  44104. + targets like `make install' and `make uninstall' work correctly.
  44105. + This target is generally not run by end users.
  44106. +
  44107. +Compilers and Options
  44108. +=====================
  44109. +
  44110. + Some systems require unusual options for compilation or linking that
  44111. +the `configure' script does not know about. Run `./configure --help'
  44112. +for details on some of the pertinent environment variables.
  44113. +
  44114. + You can give `configure' initial values for configuration parameters
  44115. +by setting variables in the command line or in the environment. Here
  44116. +is an example:
  44117. +
  44118. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  44119. +
  44120. + *Note Defining Variables::, for more details.
  44121. +
  44122. +Compiling For Multiple Architectures
  44123. +====================================
  44124. +
  44125. + You can compile the package for more than one kind of computer at the
  44126. +same time, by placing the object files for each architecture in their
  44127. +own directory. To do this, you can use GNU `make'. `cd' to the
  44128. +directory where you want the object files and executables to go and run
  44129. +the `configure' script. `configure' automatically checks for the
  44130. +source code in the directory that `configure' is in and in `..'. This
  44131. +is known as a "VPATH" build.
  44132. +
  44133. + With a non-GNU `make', it is safer to compile the package for one
  44134. +architecture at a time in the source code directory. After you have
  44135. +installed the package for one architecture, use `make distclean' before
  44136. +reconfiguring for another architecture.
  44137. +
  44138. + On MacOS X 10.5 and later systems, you can create libraries and
  44139. +executables that work on multiple system types--known as "fat" or
  44140. +"universal" binaries--by specifying multiple `-arch' options to the
  44141. +compiler but only a single `-arch' option to the preprocessor. Like
  44142. +this:
  44143. +
  44144. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  44145. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  44146. + CPP="gcc -E" CXXCPP="g++ -E"
  44147. +
  44148. + This is not guaranteed to produce working output in all cases, you
  44149. +may have to build one architecture at a time and combine the results
  44150. +using the `lipo' tool if you have problems.
  44151. +
  44152. +Installation Names
  44153. +==================
  44154. +
  44155. + By default, `make install' installs the package's commands under
  44156. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  44157. +can specify an installation prefix other than `/usr/local' by giving
  44158. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  44159. +absolute file name.
  44160. +
  44161. + You can specify separate installation prefixes for
  44162. +architecture-specific files and architecture-independent files. If you
  44163. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  44164. +PREFIX as the prefix for installing programs and libraries.
  44165. +Documentation and other data files still use the regular prefix.
  44166. +
  44167. + In addition, if you use an unusual directory layout you can give
  44168. +options like `--bindir=DIR' to specify different values for particular
  44169. +kinds of files. Run `configure --help' for a list of the directories
  44170. +you can set and what kinds of files go in them. In general, the
  44171. +default for these options is expressed in terms of `${prefix}', so that
  44172. +specifying just `--prefix' will affect all of the other directory
  44173. +specifications that were not explicitly provided.
  44174. +
  44175. + The most portable way to affect installation locations is to pass the
  44176. +correct locations to `configure'; however, many packages provide one or
  44177. +both of the following shortcuts of passing variable assignments to the
  44178. +`make install' command line to change installation locations without
  44179. +having to reconfigure or recompile.
  44180. +
  44181. + The first method involves providing an override variable for each
  44182. +affected directory. For example, `make install
  44183. +prefix=/alternate/directory' will choose an alternate location for all
  44184. +directory configuration variables that were expressed in terms of
  44185. +`${prefix}'. Any directories that were specified during `configure',
  44186. +but not in terms of `${prefix}', must each be overridden at install
  44187. +time for the entire installation to be relocated. The approach of
  44188. +makefile variable overrides for each directory variable is required by
  44189. +the GNU Coding Standards, and ideally causes no recompilation.
  44190. +However, some platforms have known limitations with the semantics of
  44191. +shared libraries that end up requiring recompilation when using this
  44192. +method, particularly noticeable in packages that use GNU Libtool.
  44193. +
  44194. + The second method involves providing the `DESTDIR' variable. For
  44195. +example, `make install DESTDIR=/alternate/directory' will prepend
  44196. +`/alternate/directory' before all installation names. The approach of
  44197. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  44198. +does not work on platforms that have drive letters. On the other hand,
  44199. +it does better at avoiding recompilation issues, and works well even
  44200. +when some directory options were not specified in terms of `${prefix}'
  44201. +at `configure' time.
  44202. +
  44203. +Optional Features
  44204. +=================
  44205. +
  44206. + If the package supports it, you can cause programs to be installed
  44207. +with an extra prefix or suffix on their names by giving `configure' the
  44208. +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  44209. +
  44210. + Some packages pay attention to `--enable-FEATURE' options to
  44211. +`configure', where FEATURE indicates an optional part of the package.
  44212. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  44213. +is something like `gnu-as' or `x' (for the X Window System). The
  44214. +`README' should mention any `--enable-' and `--with-' options that the
  44215. +package recognizes.
  44216. +
  44217. + For packages that use the X Window System, `configure' can usually
  44218. +find the X include and library files automatically, but if it doesn't,
  44219. +you can use the `configure' options `--x-includes=DIR' and
  44220. +`--x-libraries=DIR' to specify their locations.
  44221. +
  44222. + Some packages offer the ability to configure how verbose the
  44223. +execution of `make' will be. For these packages, running `./configure
  44224. +--enable-silent-rules' sets the default to minimal output, which can be
  44225. +overridden with `make V=1'; while running `./configure
  44226. +--disable-silent-rules' sets the default to verbose, which can be
  44227. +overridden with `make V=0'.
  44228. +
  44229. +Particular systems
  44230. +==================
  44231. +
  44232. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  44233. +CC is not installed, it is recommended to use the following options in
  44234. +order to use an ANSI C compiler:
  44235. +
  44236. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  44237. +
  44238. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  44239. +
  44240. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  44241. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  44242. +a workaround. If GNU CC is not installed, it is therefore recommended
  44243. +to try
  44244. +
  44245. + ./configure CC="cc"
  44246. +
  44247. +and if that doesn't work, try
  44248. +
  44249. + ./configure CC="cc -nodtk"
  44250. +
  44251. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  44252. +directory contains several dysfunctional programs; working variants of
  44253. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  44254. +in your `PATH', put it _after_ `/usr/bin'.
  44255. +
  44256. + On Haiku, software installed for all users goes in `/boot/common',
  44257. +not `/usr/local'. It is recommended to use the following options:
  44258. +
  44259. + ./configure --prefix=/boot/common
  44260. +
  44261. +Specifying the System Type
  44262. +==========================
  44263. +
  44264. + There may be some features `configure' cannot figure out
  44265. +automatically, but needs to determine by the type of machine the package
  44266. +will run on. Usually, assuming the package is built to be run on the
  44267. +_same_ architectures, `configure' can figure that out, but if it prints
  44268. +a message saying it cannot guess the machine type, give it the
  44269. +`--build=TYPE' option. TYPE can either be a short name for the system
  44270. +type, such as `sun4', or a canonical name which has the form:
  44271. +
  44272. + CPU-COMPANY-SYSTEM
  44273. +
  44274. +where SYSTEM can have one of these forms:
  44275. +
  44276. + OS
  44277. + KERNEL-OS
  44278. +
  44279. + See the file `config.sub' for the possible values of each field. If
  44280. +`config.sub' isn't included in this package, then this package doesn't
  44281. +need to know the machine type.
  44282. +
  44283. + If you are _building_ compiler tools for cross-compiling, you should
  44284. +use the option `--target=TYPE' to select the type of system they will
  44285. +produce code for.
  44286. +
  44287. + If you want to _use_ a cross compiler, that generates code for a
  44288. +platform different from the build platform, you should specify the
  44289. +"host" platform (i.e., that on which the generated programs will
  44290. +eventually be run) with `--host=TYPE'.
  44291. +
  44292. +Sharing Defaults
  44293. +================
  44294. +
  44295. + If you want to set default values for `configure' scripts to share,
  44296. +you can create a site shell script called `config.site' that gives
  44297. +default values for variables like `CC', `cache_file', and `prefix'.
  44298. +`configure' looks for `PREFIX/share/config.site' if it exists, then
  44299. +`PREFIX/etc/config.site' if it exists. Or, you can set the
  44300. +`CONFIG_SITE' environment variable to the location of the site script.
  44301. +A warning: not all `configure' scripts look for a site script.
  44302. +
  44303. +Defining Variables
  44304. +==================
  44305. +
  44306. + Variables not defined in a site shell script can be set in the
  44307. +environment passed to `configure'. However, some packages may run
  44308. +configure again during the build, and the customized values of these
  44309. +variables may be lost. In order to avoid this problem, you should set
  44310. +them in the `configure' command line, using `VAR=value'. For example:
  44311. +
  44312. + ./configure CC=/usr/local2/bin/gcc
  44313. +
  44314. +causes the specified `gcc' to be used as the C compiler (unless it is
  44315. +overridden in the site shell script).
  44316. +
  44317. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  44318. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  44319. +
  44320. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  44321. +
  44322. +`configure' Invocation
  44323. +======================
  44324. +
  44325. + `configure' recognizes the following options to control how it
  44326. +operates.
  44327. +
  44328. +`--help'
  44329. +`-h'
  44330. + Print a summary of all of the options to `configure', and exit.
  44331. +
  44332. +`--help=short'
  44333. +`--help=recursive'
  44334. + Print a summary of the options unique to this package's
  44335. + `configure', and exit. The `short' variant lists options used
  44336. + only in the top level, while the `recursive' variant lists options
  44337. + also present in any nested packages.
  44338. +
  44339. +`--version'
  44340. +`-V'
  44341. + Print the version of Autoconf used to generate the `configure'
  44342. + script, and exit.
  44343. +
  44344. +`--cache-file=FILE'
  44345. + Enable the cache: use and save the results of the tests in FILE,
  44346. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  44347. + disable caching.
  44348. +
  44349. +`--config-cache'
  44350. +`-C'
  44351. + Alias for `--cache-file=config.cache'.
  44352. +
  44353. +`--quiet'
  44354. +`--silent'
  44355. +`-q'
  44356. + Do not print messages saying which checks are being made. To
  44357. + suppress all normal output, redirect it to `/dev/null' (any error
  44358. + messages will still be shown).
  44359. +
  44360. +`--srcdir=DIR'
  44361. + Look for the package's source code in directory DIR. Usually
  44362. + `configure' can determine that directory automatically.
  44363. +
  44364. +`--prefix=DIR'
  44365. + Use DIR as the installation prefix. *note Installation Names::
  44366. + for more details, including other options available for fine-tuning
  44367. + the installation locations.
  44368. +
  44369. +`--no-create'
  44370. +`-n'
  44371. + Run the configure checks, but stop before creating any output
  44372. + files.
  44373. +
  44374. +`configure' also accepts some other, not widely useful, options. Run
  44375. +`configure --help' for more details.
  44376. - $ make
  44377. - $ make install
  44378. diff -Nur libXft-2.1.9.orig/install-sh libXft-2.1.9/install-sh
  44379. --- libXft-2.1.9.orig/install-sh 2006-06-03 12:33:30.000000000 +0200
  44380. +++ libXft-2.1.9/install-sh 2011-02-16 21:01:10.593554810 +0100
  44381. @@ -1,7 +1,7 @@
  44382. #!/bin/sh
  44383. # install - install a program, script, or datafile
  44384. -scriptversion=2005-05-14.22
  44385. +scriptversion=2009-04-28.21; # UTC
  44386. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  44387. # later released in X11R6 (xc/config/util/install.sh) with the
  44388. @@ -39,38 +39,68 @@
  44389. # when there is no Makefile.
  44390. #
  44391. # This script is compatible with the BSD install script, but was written
  44392. -# from scratch. It can only install one file at a time, a restriction
  44393. -# shared with many OS's install programs.
  44394. +# from scratch.
  44395. +
  44396. +nl='
  44397. +'
  44398. +IFS=" "" $nl"
  44399. # set DOITPROG to echo to test this script
  44400. # Don't use :- since 4.3BSD and earlier shells don't like it.
  44401. -doit="${DOITPROG-}"
  44402. +doit=${DOITPROG-}
  44403. +if test -z "$doit"; then
  44404. + doit_exec=exec
  44405. +else
  44406. + doit_exec=$doit
  44407. +fi
  44408. -# put in absolute paths if you don't have them in your path; or use env. vars.
  44409. +# Put in absolute file names if you don't have them in your path;
  44410. +# or use environment vars.
  44411. -mvprog="${MVPROG-mv}"
  44412. -cpprog="${CPPROG-cp}"
  44413. -chmodprog="${CHMODPROG-chmod}"
  44414. -chownprog="${CHOWNPROG-chown}"
  44415. -chgrpprog="${CHGRPPROG-chgrp}"
  44416. -stripprog="${STRIPPROG-strip}"
  44417. -rmprog="${RMPROG-rm}"
  44418. -mkdirprog="${MKDIRPROG-mkdir}"
  44419. +chgrpprog=${CHGRPPROG-chgrp}
  44420. +chmodprog=${CHMODPROG-chmod}
  44421. +chownprog=${CHOWNPROG-chown}
  44422. +cmpprog=${CMPPROG-cmp}
  44423. +cpprog=${CPPROG-cp}
  44424. +mkdirprog=${MKDIRPROG-mkdir}
  44425. +mvprog=${MVPROG-mv}
  44426. +rmprog=${RMPROG-rm}
  44427. +stripprog=${STRIPPROG-strip}
  44428. +
  44429. +posix_glob='?'
  44430. +initialize_posix_glob='
  44431. + test "$posix_glob" != "?" || {
  44432. + if (set -f) 2>/dev/null; then
  44433. + posix_glob=
  44434. + else
  44435. + posix_glob=:
  44436. + fi
  44437. + }
  44438. +'
  44439. +
  44440. +posix_mkdir=
  44441. +
  44442. +# Desired mode of installed file.
  44443. +mode=0755
  44444. -chmodcmd="$chmodprog 0755"
  44445. -chowncmd=
  44446. chgrpcmd=
  44447. -stripcmd=
  44448. +chmodcmd=$chmodprog
  44449. +chowncmd=
  44450. +mvcmd=$mvprog
  44451. rmcmd="$rmprog -f"
  44452. -mvcmd="$mvprog"
  44453. +stripcmd=
  44454. +
  44455. src=
  44456. dst=
  44457. dir_arg=
  44458. -dstarg=
  44459. +dst_arg=
  44460. +
  44461. +copy_on_change=false
  44462. no_target_directory=
  44463. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  44464. +usage="\
  44465. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  44466. or: $0 [OPTION]... SRCFILES... DIRECTORY
  44467. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  44468. or: $0 [OPTION]... -d DIRECTORIES...
  44469. @@ -80,81 +110,86 @@
  44470. In the 4th, create DIRECTORIES.
  44471. Options:
  44472. --c (ignored)
  44473. --d create directories instead of installing files.
  44474. --g GROUP $chgrpprog installed files to GROUP.
  44475. --m MODE $chmodprog installed files to MODE.
  44476. --o USER $chownprog installed files to USER.
  44477. --s $stripprog installed files.
  44478. --t DIRECTORY install into DIRECTORY.
  44479. --T report an error if DSTFILE is a directory.
  44480. ---help display this help and exit.
  44481. ---version display version info and exit.
  44482. + --help display this help and exit.
  44483. + --version display version info and exit.
  44484. +
  44485. + -c (ignored)
  44486. + -C install only if different (preserve the last data modification time)
  44487. + -d create directories instead of installing files.
  44488. + -g GROUP $chgrpprog installed files to GROUP.
  44489. + -m MODE $chmodprog installed files to MODE.
  44490. + -o USER $chownprog installed files to USER.
  44491. + -s $stripprog installed files.
  44492. + -t DIRECTORY install into DIRECTORY.
  44493. + -T report an error if DSTFILE is a directory.
  44494. Environment variables override the default commands:
  44495. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  44496. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  44497. + RMPROG STRIPPROG
  44498. "
  44499. -while test -n "$1"; do
  44500. +while test $# -ne 0; do
  44501. case $1 in
  44502. - -c) shift
  44503. - continue;;
  44504. + -c) ;;
  44505. - -d) dir_arg=true
  44506. - shift
  44507. - continue;;
  44508. + -C) copy_on_change=true;;
  44509. +
  44510. + -d) dir_arg=true;;
  44511. -g) chgrpcmd="$chgrpprog $2"
  44512. - shift
  44513. - shift
  44514. - continue;;
  44515. + shift;;
  44516. --help) echo "$usage"; exit $?;;
  44517. - -m) chmodcmd="$chmodprog $2"
  44518. - shift
  44519. - shift
  44520. - continue;;
  44521. + -m) mode=$2
  44522. + case $mode in
  44523. + *' '* | *' '* | *'
  44524. +'* | *'*'* | *'?'* | *'['*)
  44525. + echo "$0: invalid mode: $mode" >&2
  44526. + exit 1;;
  44527. + esac
  44528. + shift;;
  44529. -o) chowncmd="$chownprog $2"
  44530. - shift
  44531. - shift
  44532. - continue;;
  44533. -
  44534. - -s) stripcmd=$stripprog
  44535. - shift
  44536. - continue;;
  44537. -
  44538. - -t) dstarg=$2
  44539. - shift
  44540. - shift
  44541. - continue;;
  44542. -
  44543. - -T) no_target_directory=true
  44544. - shift
  44545. - continue;;
  44546. + shift;;
  44547. +
  44548. + -s) stripcmd=$stripprog;;
  44549. +
  44550. + -t) dst_arg=$2
  44551. + shift;;
  44552. +
  44553. + -T) no_target_directory=true;;
  44554. --version) echo "$0 $scriptversion"; exit $?;;
  44555. - *) # When -d is used, all remaining arguments are directories to create.
  44556. - # When -t is used, the destination is already specified.
  44557. - test -n "$dir_arg$dstarg" && break
  44558. - # Otherwise, the last argument is the destination. Remove it from $@.
  44559. - for arg
  44560. - do
  44561. - if test -n "$dstarg"; then
  44562. - # $@ is not empty: it contains at least $arg.
  44563. - set fnord "$@" "$dstarg"
  44564. - shift # fnord
  44565. - fi
  44566. - shift # arg
  44567. - dstarg=$arg
  44568. - done
  44569. + --) shift
  44570. break;;
  44571. +
  44572. + -*) echo "$0: invalid option: $1" >&2
  44573. + exit 1;;
  44574. +
  44575. + *) break;;
  44576. esac
  44577. + shift
  44578. done
  44579. -if test -z "$1"; then
  44580. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  44581. + # When -d is used, all remaining arguments are directories to create.
  44582. + # When -t is used, the destination is already specified.
  44583. + # Otherwise, the last argument is the destination. Remove it from $@.
  44584. + for arg
  44585. + do
  44586. + if test -n "$dst_arg"; then
  44587. + # $@ is not empty: it contains at least $arg.
  44588. + set fnord "$@" "$dst_arg"
  44589. + shift # fnord
  44590. + fi
  44591. + shift # arg
  44592. + dst_arg=$arg
  44593. + done
  44594. +fi
  44595. +
  44596. +if test $# -eq 0; then
  44597. if test -z "$dir_arg"; then
  44598. echo "$0: no input file specified." >&2
  44599. exit 1
  44600. @@ -164,24 +199,47 @@
  44601. exit 0
  44602. fi
  44603. +if test -z "$dir_arg"; then
  44604. + trap '(exit $?); exit' 1 2 13 15
  44605. +
  44606. + # Set umask so as not to create temps with too-generous modes.
  44607. + # However, 'strip' requires both read and write access to temps.
  44608. + case $mode in
  44609. + # Optimize common cases.
  44610. + *644) cp_umask=133;;
  44611. + *755) cp_umask=22;;
  44612. +
  44613. + *[0-7])
  44614. + if test -z "$stripcmd"; then
  44615. + u_plus_rw=
  44616. + else
  44617. + u_plus_rw='% 200'
  44618. + fi
  44619. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  44620. + *)
  44621. + if test -z "$stripcmd"; then
  44622. + u_plus_rw=
  44623. + else
  44624. + u_plus_rw=,u+rw
  44625. + fi
  44626. + cp_umask=$mode$u_plus_rw;;
  44627. + esac
  44628. +fi
  44629. +
  44630. for src
  44631. do
  44632. # Protect names starting with `-'.
  44633. case $src in
  44634. - -*) src=./$src ;;
  44635. + -*) src=./$src;;
  44636. esac
  44637. if test -n "$dir_arg"; then
  44638. dst=$src
  44639. - src=
  44640. -
  44641. - if test -d "$dst"; then
  44642. - mkdircmd=:
  44643. - chmodcmd=
  44644. - else
  44645. - mkdircmd=$mkdirprog
  44646. - fi
  44647. + dstdir=$dst
  44648. + test -d "$dstdir"
  44649. + dstdir_status=$?
  44650. else
  44651. +
  44652. # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  44653. # might cause directories to be created, which would be especially bad
  44654. # if $src (and thus $dsttmp) contains '*'.
  44655. @@ -190,71 +248,199 @@
  44656. exit 1
  44657. fi
  44658. - if test -z "$dstarg"; then
  44659. + if test -z "$dst_arg"; then
  44660. echo "$0: no destination specified." >&2
  44661. exit 1
  44662. fi
  44663. - dst=$dstarg
  44664. + dst=$dst_arg
  44665. # Protect names starting with `-'.
  44666. case $dst in
  44667. - -*) dst=./$dst ;;
  44668. + -*) dst=./$dst;;
  44669. esac
  44670. # If destination is a directory, append the input filename; won't work
  44671. # if double slashes aren't ignored.
  44672. if test -d "$dst"; then
  44673. if test -n "$no_target_directory"; then
  44674. - echo "$0: $dstarg: Is a directory" >&2
  44675. + echo "$0: $dst_arg: Is a directory" >&2
  44676. exit 1
  44677. fi
  44678. - dst=$dst/`basename "$src"`
  44679. + dstdir=$dst
  44680. + dst=$dstdir/`basename "$src"`
  44681. + dstdir_status=0
  44682. + else
  44683. + # Prefer dirname, but fall back on a substitute if dirname fails.
  44684. + dstdir=`
  44685. + (dirname "$dst") 2>/dev/null ||
  44686. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44687. + X"$dst" : 'X\(//\)[^/]' \| \
  44688. + X"$dst" : 'X\(//\)$' \| \
  44689. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  44690. + echo X"$dst" |
  44691. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44692. + s//\1/
  44693. + q
  44694. + }
  44695. + /^X\(\/\/\)[^/].*/{
  44696. + s//\1/
  44697. + q
  44698. + }
  44699. + /^X\(\/\/\)$/{
  44700. + s//\1/
  44701. + q
  44702. + }
  44703. + /^X\(\/\).*/{
  44704. + s//\1/
  44705. + q
  44706. + }
  44707. + s/.*/./; q'
  44708. + `
  44709. +
  44710. + test -d "$dstdir"
  44711. + dstdir_status=$?
  44712. fi
  44713. fi
  44714. - # This sed command emulates the dirname command.
  44715. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  44716. -
  44717. - # Make sure that the destination directory exists.
  44718. + obsolete_mkdir_used=false
  44719. - # Skip lots of stat calls in the usual case.
  44720. - if test ! -d "$dstdir"; then
  44721. - defaultIFS='
  44722. - '
  44723. - IFS="${IFS-$defaultIFS}"
  44724. -
  44725. - oIFS=$IFS
  44726. - # Some sh's can't handle IFS=/ for some reason.
  44727. - IFS='%'
  44728. - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  44729. - shift
  44730. - IFS=$oIFS
  44731. + if test $dstdir_status != 0; then
  44732. + case $posix_mkdir in
  44733. + '')
  44734. + # Create intermediate dirs using mode 755 as modified by the umask.
  44735. + # This is like FreeBSD 'install' as of 1997-10-28.
  44736. + umask=`umask`
  44737. + case $stripcmd.$umask in
  44738. + # Optimize common cases.
  44739. + *[2367][2367]) mkdir_umask=$umask;;
  44740. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  44741. +
  44742. + *[0-7])
  44743. + mkdir_umask=`expr $umask + 22 \
  44744. + - $umask % 100 % 40 + $umask % 20 \
  44745. + - $umask % 10 % 4 + $umask % 2
  44746. + `;;
  44747. + *) mkdir_umask=$umask,go-w;;
  44748. + esac
  44749. +
  44750. + # With -d, create the new directory with the user-specified mode.
  44751. + # Otherwise, rely on $mkdir_umask.
  44752. + if test -n "$dir_arg"; then
  44753. + mkdir_mode=-m$mode
  44754. + else
  44755. + mkdir_mode=
  44756. + fi
  44757. +
  44758. + posix_mkdir=false
  44759. + case $umask in
  44760. + *[123567][0-7][0-7])
  44761. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  44762. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  44763. + ;;
  44764. + *)
  44765. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  44766. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  44767. +
  44768. + if (umask $mkdir_umask &&
  44769. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  44770. + then
  44771. + if test -z "$dir_arg" || {
  44772. + # Check for POSIX incompatibilities with -m.
  44773. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  44774. + # other-writeable bit of parent directory when it shouldn't.
  44775. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  44776. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  44777. + case $ls_ld_tmpdir in
  44778. + d????-?r-*) different_mode=700;;
  44779. + d????-?--*) different_mode=755;;
  44780. + *) false;;
  44781. + esac &&
  44782. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  44783. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  44784. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  44785. + }
  44786. + }
  44787. + then posix_mkdir=:
  44788. + fi
  44789. + rmdir "$tmpdir/d" "$tmpdir"
  44790. + else
  44791. + # Remove any dirs left behind by ancient mkdir implementations.
  44792. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  44793. + fi
  44794. + trap '' 0;;
  44795. + esac;;
  44796. + esac
  44797. - pathcomp=
  44798. + if
  44799. + $posix_mkdir && (
  44800. + umask $mkdir_umask &&
  44801. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  44802. + )
  44803. + then :
  44804. + else
  44805. - while test $# -ne 0 ; do
  44806. - pathcomp=$pathcomp$1
  44807. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  44808. + # or it failed possibly due to a race condition. Create the
  44809. + # directory the slow way, step by step, checking for races as we go.
  44810. +
  44811. + case $dstdir in
  44812. + /*) prefix='/';;
  44813. + -*) prefix='./';;
  44814. + *) prefix='';;
  44815. + esac
  44816. +
  44817. + eval "$initialize_posix_glob"
  44818. +
  44819. + oIFS=$IFS
  44820. + IFS=/
  44821. + $posix_glob set -f
  44822. + set fnord $dstdir
  44823. shift
  44824. - if test ! -d "$pathcomp"; then
  44825. - $mkdirprog "$pathcomp"
  44826. - # mkdir can fail with a `File exist' error in case several
  44827. - # install-sh are creating the directory concurrently. This
  44828. - # is OK.
  44829. - test -d "$pathcomp" || exit
  44830. + $posix_glob set +f
  44831. + IFS=$oIFS
  44832. +
  44833. + prefixes=
  44834. +
  44835. + for d
  44836. + do
  44837. + test -z "$d" && continue
  44838. +
  44839. + prefix=$prefix$d
  44840. + if test -d "$prefix"; then
  44841. + prefixes=
  44842. + else
  44843. + if $posix_mkdir; then
  44844. + (umask=$mkdir_umask &&
  44845. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  44846. + # Don't fail if two instances are running concurrently.
  44847. + test -d "$prefix" || exit 1
  44848. + else
  44849. + case $prefix in
  44850. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  44851. + *) qprefix=$prefix;;
  44852. + esac
  44853. + prefixes="$prefixes '$qprefix'"
  44854. + fi
  44855. + fi
  44856. + prefix=$prefix/
  44857. + done
  44858. +
  44859. + if test -n "$prefixes"; then
  44860. + # Don't fail if two instances are running concurrently.
  44861. + (umask $mkdir_umask &&
  44862. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  44863. + test -d "$dstdir" || exit 1
  44864. + obsolete_mkdir_used=true
  44865. fi
  44866. - pathcomp=$pathcomp/
  44867. - done
  44868. + fi
  44869. fi
  44870. if test -n "$dir_arg"; then
  44871. - $doit $mkdircmd "$dst" \
  44872. - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  44873. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  44874. - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  44875. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  44876. -
  44877. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  44878. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  44879. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  44880. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  44881. else
  44882. - dstfile=`basename "$dst"`
  44883. # Make a couple of temp file names in the proper directory.
  44884. dsttmp=$dstdir/_inst.$$_
  44885. @@ -262,10 +448,9 @@
  44886. # Trap to clean up those temp files at exit.
  44887. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  44888. - trap '(exit $?); exit' 1 2 13 15
  44889. # Copy the file name to the temp name.
  44890. - $doit $cpprog "$src" "$dsttmp" &&
  44891. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  44892. # and set any options; do chmod last to preserve setuid bits.
  44893. #
  44894. @@ -273,51 +458,63 @@
  44895. # ignore errors from any of these, just make sure not to ignore
  44896. # errors from the above "$doit $cpprog $src $dsttmp" command.
  44897. #
  44898. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  44899. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  44900. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  44901. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  44902. -
  44903. - # Now rename the file to the real destination.
  44904. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  44905. - || {
  44906. - # The rename failed, perhaps because mv can't rename something else
  44907. - # to itself, or perhaps because mv is so ancient that it does not
  44908. - # support -f.
  44909. -
  44910. - # Now remove or move aside any old file at destination location.
  44911. - # We try this two ways since rm can't unlink itself on some
  44912. - # systems and the destination file might be busy for other
  44913. - # reasons. In this case, the final cleanup might fail but the new
  44914. - # file should still install successfully.
  44915. - {
  44916. - if test -f "$dstdir/$dstfile"; then
  44917. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  44918. - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  44919. - || {
  44920. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  44921. - (exit 1); exit 1
  44922. - }
  44923. - else
  44924. - :
  44925. - fi
  44926. - } &&
  44927. -
  44928. - # Now rename the file to the real destination.
  44929. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  44930. - }
  44931. - }
  44932. - fi || { (exit 1); exit 1; }
  44933. -done
  44934. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  44935. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  44936. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  44937. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  44938. +
  44939. + # If -C, don't bother to copy if it wouldn't change the file.
  44940. + if $copy_on_change &&
  44941. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  44942. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  44943. +
  44944. + eval "$initialize_posix_glob" &&
  44945. + $posix_glob set -f &&
  44946. + set X $old && old=:$2:$4:$5:$6 &&
  44947. + set X $new && new=:$2:$4:$5:$6 &&
  44948. + $posix_glob set +f &&
  44949. +
  44950. + test "$old" = "$new" &&
  44951. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  44952. + then
  44953. + rm -f "$dsttmp"
  44954. + else
  44955. + # Rename the file to the real destination.
  44956. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  44957. -# The final little trick to "correctly" pass the exit status to the exit trap.
  44958. -{
  44959. - (exit 0); exit 0
  44960. -}
  44961. + # The rename failed, perhaps because mv can't rename something else
  44962. + # to itself, or perhaps because mv is so ancient that it does not
  44963. + # support -f.
  44964. + {
  44965. + # Now remove or move aside any old file at destination location.
  44966. + # We try this two ways since rm can't unlink itself on some
  44967. + # systems and the destination file might be busy for other
  44968. + # reasons. In this case, the final cleanup might fail but the new
  44969. + # file should still install successfully.
  44970. + {
  44971. + test ! -f "$dst" ||
  44972. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  44973. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  44974. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  44975. + } ||
  44976. + { echo "$0: cannot unlink or rename $dst" >&2
  44977. + (exit 1); exit 1
  44978. + }
  44979. + } &&
  44980. +
  44981. + # Now rename the file to the real destination.
  44982. + $doit $mvcmd "$dsttmp" "$dst"
  44983. + }
  44984. + fi || exit 1
  44985. +
  44986. + trap '' 0
  44987. + fi
  44988. +done
  44989. # Local variables:
  44990. # eval: (add-hook 'write-file-hooks 'time-stamp)
  44991. # time-stamp-start: "scriptversion="
  44992. # time-stamp-format: "%:y-%02m-%02d.%02H"
  44993. -# time-stamp-end: "$"
  44994. +# time-stamp-time-zone: "UTC"
  44995. +# time-stamp-end: "; # UTC"
  44996. # End:
  44997. diff -Nur libXft-2.1.9.orig/ltmain.sh libXft-2.1.9/ltmain.sh
  44998. --- libXft-2.1.9.orig/ltmain.sh 2006-01-10 16:23:50.000000000 +0100
  44999. +++ libXft-2.1.9/ltmain.sh 2011-02-16 21:01:07.373553579 +0100
  45000. @@ -1,30 +1,174 @@
  45001. -# ltmain.sh - Provide generalized library-building support services.
  45002. -# NOTE: Changing this file will not affect anything until you rerun configure.
  45003. -#
  45004. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  45005. -# Free Software Foundation, Inc.
  45006. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45007. -#
  45008. -# This program is free software; you can redistribute it and/or modify
  45009. +# Generated from ltmain.m4sh.
  45010. +
  45011. +# ltmain.sh (GNU libtool) 2.2.6b
  45012. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45013. +
  45014. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  45015. +# This is free software; see the source for copying conditions. There is NO
  45016. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  45017. +
  45018. +# GNU Libtool is free software; you can redistribute it and/or modify
  45019. # it under the terms of the GNU General Public License as published by
  45020. # the Free Software Foundation; either version 2 of the License, or
  45021. # (at your option) any later version.
  45022. #
  45023. -# This program is distributed in the hope that it will be useful, but
  45024. +# As a special exception to the GNU General Public License,
  45025. +# if you distribute this file as part of a program or library that
  45026. +# is built using GNU Libtool, you may include this file under the
  45027. +# same distribution terms that you use for the rest of that program.
  45028. +#
  45029. +# GNU Libtool is distributed in the hope that it will be useful, but
  45030. # WITHOUT ANY WARRANTY; without even the implied warranty of
  45031. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  45032. # General Public License for more details.
  45033. #
  45034. # You should have received a copy of the GNU General Public License
  45035. -# along with this program; if not, write to the Free Software
  45036. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45037. +# along with GNU Libtool; see the file COPYING. If not, a copy
  45038. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  45039. +# or obtained by writing to the Free Software Foundation, Inc.,
  45040. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45041. +
  45042. +# Usage: $progname [OPTION]... [MODE-ARG]...
  45043. +#
  45044. +# Provide generalized library-building support services.
  45045. #
  45046. -# As a special exception to the GNU General Public License, if you
  45047. -# distribute this file as part of a program that contains a
  45048. -# configuration script generated by Autoconf, you may include it under
  45049. -# the same distribution terms that you use for the rest of that program.
  45050. +# --config show all configuration variables
  45051. +# --debug enable verbose shell tracing
  45052. +# -n, --dry-run display commands without modifying any files
  45053. +# --features display basic configuration information and exit
  45054. +# --mode=MODE use operation mode MODE
  45055. +# --preserve-dup-deps don't remove duplicate dependency libraries
  45056. +# --quiet, --silent don't print informational messages
  45057. +# --tag=TAG use configuration variables from tag TAG
  45058. +# -v, --verbose print informational messages (default)
  45059. +# --version print version information
  45060. +# -h, --help print short or long help message
  45061. +#
  45062. +# MODE must be one of the following:
  45063. +#
  45064. +# clean remove files from the build directory
  45065. +# compile compile a source file into a libtool object
  45066. +# execute automatically set library path, then run a program
  45067. +# finish complete the installation of libtool libraries
  45068. +# install install libraries or executables
  45069. +# link create a library or an executable
  45070. +# uninstall remove libraries from an installed directory
  45071. +#
  45072. +# MODE-ARGS vary depending on the MODE.
  45073. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  45074. +#
  45075. +# When reporting a bug, please describe a test case to reproduce it and
  45076. +# include the following information:
  45077. +#
  45078. +# host-triplet: $host
  45079. +# shell: $SHELL
  45080. +# compiler: $LTCC
  45081. +# compiler flags: $LTCFLAGS
  45082. +# linker: $LD (gnu? $with_gnu_ld)
  45083. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  45084. +# automake: $automake_version
  45085. +# autoconf: $autoconf_version
  45086. +#
  45087. +# Report bugs to <bug-libtool@gnu.org>.
  45088. +
  45089. +PROGRAM=ltmain.sh
  45090. +PACKAGE=libtool
  45091. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  45092. +TIMESTAMP=""
  45093. +package_revision=1.3017
  45094. +
  45095. +# Be Bourne compatible
  45096. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  45097. + emulate sh
  45098. + NULLCMD=:
  45099. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  45100. + # is contrary to our usage. Disable this feature.
  45101. + alias -g '${1+"$@"}'='"$@"'
  45102. + setopt NO_GLOB_SUBST
  45103. +else
  45104. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  45105. +fi
  45106. +BIN_SH=xpg4; export BIN_SH # for Tru64
  45107. +DUALCASE=1; export DUALCASE # for MKS sh
  45108. +
  45109. +# NLS nuisances: We save the old values to restore during execute mode.
  45110. +# Only set LANG and LC_ALL to C if already set.
  45111. +# These must not be set unconditionally because not all systems understand
  45112. +# e.g. LANG=C (notably SCO).
  45113. +lt_user_locale=
  45114. +lt_safe_locale=
  45115. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  45116. +do
  45117. + eval "if test \"\${$lt_var+set}\" = set; then
  45118. + save_$lt_var=\$$lt_var
  45119. + $lt_var=C
  45120. + export $lt_var
  45121. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  45122. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  45123. + fi"
  45124. +done
  45125. +
  45126. +$lt_unset CDPATH
  45127. +
  45128. +
  45129. +
  45130. +
  45131. +
  45132. +: ${CP="cp -f"}
  45133. +: ${ECHO="echo"}
  45134. +: ${EGREP="/bin/grep -E"}
  45135. +: ${FGREP="/bin/grep -F"}
  45136. +: ${GREP="/bin/grep"}
  45137. +: ${LN_S="ln -s"}
  45138. +: ${MAKE="make"}
  45139. +: ${MKDIR="mkdir"}
  45140. +: ${MV="mv -f"}
  45141. +: ${RM="rm -f"}
  45142. +: ${SED="/bin/sed"}
  45143. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  45144. +: ${Xsed="$SED -e 1s/^X//"}
  45145. -basename="s,^.*/,,g"
  45146. +# Global variables:
  45147. +EXIT_SUCCESS=0
  45148. +EXIT_FAILURE=1
  45149. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  45150. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  45151. +
  45152. +exit_status=$EXIT_SUCCESS
  45153. +
  45154. +# Make sure IFS has a sensible default
  45155. +lt_nl='
  45156. +'
  45157. +IFS=" $lt_nl"
  45158. +
  45159. +dirname="s,/[^/]*$,,"
  45160. +basename="s,^.*/,,"
  45161. +
  45162. +# func_dirname_and_basename file append nondir_replacement
  45163. +# perform func_basename and func_dirname in a single function
  45164. +# call:
  45165. +# dirname: Compute the dirname of FILE. If nonempty,
  45166. +# add APPEND to the result, otherwise set result
  45167. +# to NONDIR_REPLACEMENT.
  45168. +# value returned in "$func_dirname_result"
  45169. +# basename: Compute filename of FILE.
  45170. +# value retuned in "$func_basename_result"
  45171. +# Implementation must be kept synchronized with func_dirname
  45172. +# and func_basename. For efficiency, we do not delegate to
  45173. +# those functions but instead duplicate the functionality here.
  45174. +func_dirname_and_basename ()
  45175. +{
  45176. + # Extract subdirectory from the argument.
  45177. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  45178. + if test "X$func_dirname_result" = "X${1}"; then
  45179. + func_dirname_result="${3}"
  45180. + else
  45181. + func_dirname_result="$func_dirname_result${2}"
  45182. + fi
  45183. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  45184. +}
  45185. +
  45186. +# Generated shell functions inserted here.
  45187. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  45188. # is ksh but when the shell is invoked as "sh" and the current value of
  45189. @@ -34,112 +178,174 @@
  45190. progpath="$0"
  45191. # The name of this program:
  45192. -progname=`echo "$progpath" | $SED $basename`
  45193. -modename="$progname"
  45194. +# In the unlikely event $progname began with a '-', it would play havoc with
  45195. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  45196. +func_dirname_and_basename "$progpath"
  45197. +progname=$func_basename_result
  45198. +case $progname in
  45199. + -*) progname=./$progname ;;
  45200. +esac
  45201. -# Global variables:
  45202. -EXIT_SUCCESS=0
  45203. -EXIT_FAILURE=1
  45204. +# Make sure we have an absolute path for reexecution:
  45205. +case $progpath in
  45206. + [\\/]*|[A-Za-z]:\\*) ;;
  45207. + *[\\/]*)
  45208. + progdir=$func_dirname_result
  45209. + progdir=`cd "$progdir" && pwd`
  45210. + progpath="$progdir/$progname"
  45211. + ;;
  45212. + *)
  45213. + save_IFS="$IFS"
  45214. + IFS=:
  45215. + for progdir in $PATH; do
  45216. + IFS="$save_IFS"
  45217. + test -x "$progdir/$progname" && break
  45218. + done
  45219. + IFS="$save_IFS"
  45220. + test -n "$progdir" || progdir=`pwd`
  45221. + progpath="$progdir/$progname"
  45222. + ;;
  45223. +esac
  45224. -PROGRAM=ltmain.sh
  45225. -PACKAGE=libtool
  45226. -VERSION="1.5.22 Debian 1.5.22-2"
  45227. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  45228. +# Sed substitution that helps us do robust quoting. It backslashifies
  45229. +# metacharacters that are still active within double-quoted strings.
  45230. +Xsed="${SED}"' -e 1s/^X//'
  45231. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  45232. -# See if we are running on zsh, and set the options which allow our
  45233. -# commands through without removal of \ escapes.
  45234. -if test -n "${ZSH_VERSION+set}" ; then
  45235. - setopt NO_GLOB_SUBST
  45236. -fi
  45237. +# Same as above, but do not quote variable references.
  45238. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  45239. -# Check that we have a working $echo.
  45240. -if test "X$1" = X--no-reexec; then
  45241. - # Discard the --no-reexec flag, and continue.
  45242. - shift
  45243. -elif test "X$1" = X--fallback-echo; then
  45244. - # Avoid inline document here, it may be left over
  45245. - :
  45246. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  45247. - # Yippee, $echo works!
  45248. - :
  45249. -else
  45250. - # Restart under the correct shell, and then maybe $echo will work.
  45251. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  45252. -fi
  45253. +# Re-`\' parameter expansions in output of double_quote_subst that were
  45254. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  45255. +# in input to double_quote_subst, that '$' was protected from expansion.
  45256. +# Since each input `\' is now two `\'s, look for any number of runs of
  45257. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  45258. +bs='\\'
  45259. +bs2='\\\\'
  45260. +bs4='\\\\\\\\'
  45261. +dollar='\$'
  45262. +sed_double_backslash="\
  45263. + s/$bs4/&\\
  45264. +/g
  45265. + s/^$bs2$dollar/$bs&/
  45266. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  45267. + s/\n//g"
  45268. +
  45269. +# Standard options:
  45270. +opt_dry_run=false
  45271. +opt_help=false
  45272. +opt_quiet=false
  45273. +opt_verbose=false
  45274. +opt_warning=:
  45275. +
  45276. +# func_echo arg...
  45277. +# Echo program name prefixed message, along with the current mode
  45278. +# name if it has been set yet.
  45279. +func_echo ()
  45280. +{
  45281. + $ECHO "$progname${mode+: }$mode: $*"
  45282. +}
  45283. -if test "X$1" = X--fallback-echo; then
  45284. - # used as fallback echo
  45285. - shift
  45286. - cat <<EOF
  45287. -$*
  45288. -EOF
  45289. - exit $EXIT_SUCCESS
  45290. -fi
  45291. +# func_verbose arg...
  45292. +# Echo program name prefixed message in verbose mode only.
  45293. +func_verbose ()
  45294. +{
  45295. + $opt_verbose && func_echo ${1+"$@"}
  45296. -default_mode=
  45297. -help="Try \`$progname --help' for more information."
  45298. -magic="%%%MAGIC variable%%%"
  45299. -mkdir="mkdir"
  45300. -mv="mv -f"
  45301. -rm="rm -f"
  45302. + # A bug in bash halts the script if the last line of a function
  45303. + # fails when set -e is in force, so we need another command to
  45304. + # work around that:
  45305. + :
  45306. +}
  45307. -# Sed substitution that helps us do robust quoting. It backslashifies
  45308. -# metacharacters that are still active within double-quoted strings.
  45309. -Xsed="${SED}"' -e 1s/^X//'
  45310. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  45311. -# test EBCDIC or ASCII
  45312. -case `echo X|tr X '\101'` in
  45313. - A) # ASCII based system
  45314. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  45315. - SP2NL='tr \040 \012'
  45316. - NL2SP='tr \015\012 \040\040'
  45317. - ;;
  45318. - *) # EBCDIC based system
  45319. - SP2NL='tr \100 \n'
  45320. - NL2SP='tr \r\n \100\100'
  45321. - ;;
  45322. -esac
  45323. +# func_error arg...
  45324. +# Echo program name prefixed message to standard error.
  45325. +func_error ()
  45326. +{
  45327. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  45328. +}
  45329. -# NLS nuisances.
  45330. -# Only set LANG and LC_ALL to C if already set.
  45331. -# These must not be set unconditionally because not all systems understand
  45332. -# e.g. LANG=C (notably SCO).
  45333. -# We save the old values to restore during execute mode.
  45334. -if test "${LC_ALL+set}" = set; then
  45335. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  45336. -fi
  45337. -if test "${LANG+set}" = set; then
  45338. - save_LANG="$LANG"; LANG=C; export LANG
  45339. -fi
  45340. +# func_warning arg...
  45341. +# Echo program name prefixed warning message to standard error.
  45342. +func_warning ()
  45343. +{
  45344. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  45345. -# Make sure IFS has a sensible default
  45346. -lt_nl='
  45347. -'
  45348. -IFS=" $lt_nl"
  45349. + # bash bug again:
  45350. + :
  45351. +}
  45352. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  45353. - $echo "$modename: not configured to build any kind of library" 1>&2
  45354. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  45355. - exit $EXIT_FAILURE
  45356. -fi
  45357. +# func_fatal_error arg...
  45358. +# Echo program name prefixed message to standard error, and exit.
  45359. +func_fatal_error ()
  45360. +{
  45361. + func_error ${1+"$@"}
  45362. + exit $EXIT_FAILURE
  45363. +}
  45364. -# Global variables.
  45365. -mode=$default_mode
  45366. -nonopt=
  45367. -prev=
  45368. -prevopt=
  45369. -run=
  45370. -show="$echo"
  45371. -show_help=
  45372. -execute_dlfiles=
  45373. -duplicate_deps=no
  45374. -preserve_args=
  45375. -lo2o="s/\\.lo\$/.${objext}/"
  45376. -o2lo="s/\\.${objext}\$/.lo/"
  45377. +# func_fatal_help arg...
  45378. +# Echo program name prefixed message to standard error, followed by
  45379. +# a help hint, and exit.
  45380. +func_fatal_help ()
  45381. +{
  45382. + func_error ${1+"$@"}
  45383. + func_fatal_error "$help"
  45384. +}
  45385. +help="Try \`$progname --help' for more information." ## default
  45386. +
  45387. +
  45388. +# func_grep expression filename
  45389. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  45390. +func_grep ()
  45391. +{
  45392. + $GREP "$1" "$2" >/dev/null 2>&1
  45393. +}
  45394. +
  45395. +
  45396. +# func_mkdir_p directory-path
  45397. +# Make sure the entire path to DIRECTORY-PATH is available.
  45398. +func_mkdir_p ()
  45399. +{
  45400. + my_directory_path="$1"
  45401. + my_dir_list=
  45402. +
  45403. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  45404. +
  45405. + # Protect directory names starting with `-'
  45406. + case $my_directory_path in
  45407. + -*) my_directory_path="./$my_directory_path" ;;
  45408. + esac
  45409. +
  45410. + # While some portion of DIR does not yet exist...
  45411. + while test ! -d "$my_directory_path"; do
  45412. + # ...make a list in topmost first order. Use a colon delimited
  45413. + # list incase some portion of path contains whitespace.
  45414. + my_dir_list="$my_directory_path:$my_dir_list"
  45415. +
  45416. + # If the last portion added has no slash in it, the list is done
  45417. + case $my_directory_path in */*) ;; *) break ;; esac
  45418. +
  45419. + # ...otherwise throw away the child directory and loop
  45420. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  45421. + done
  45422. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  45423. +
  45424. + save_mkdir_p_IFS="$IFS"; IFS=':'
  45425. + for my_dir in $my_dir_list; do
  45426. + IFS="$save_mkdir_p_IFS"
  45427. + # mkdir can fail with a `File exist' error if two processes
  45428. + # try to create one of the directories concurrently. Don't
  45429. + # stop in that case!
  45430. + $MKDIR "$my_dir" 2>/dev/null || :
  45431. + done
  45432. + IFS="$save_mkdir_p_IFS"
  45433. +
  45434. + # Bail out if we (or some other process) failed to create a directory.
  45435. + test -d "$my_directory_path" || \
  45436. + func_fatal_error "Failed to create \`$1'"
  45437. + fi
  45438. +}
  45439. -#####################################
  45440. -# Shell function definitions:
  45441. -# This seems to be the best place for them
  45442. # func_mktempdir [string]
  45443. # Make a temporary directory that won't clash with other running
  45444. @@ -149,7 +355,7 @@
  45445. {
  45446. my_template="${TMPDIR-/tmp}/${1-$progname}"
  45447. - if test "$run" = ":"; then
  45448. + if test "$opt_dry_run" = ":"; then
  45449. # Return a directory name, but don't create it in dry-run mode
  45450. my_tmpdir="${my_template}-$$"
  45451. else
  45452. @@ -158,546 +364,818 @@
  45453. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  45454. if test ! -d "$my_tmpdir"; then
  45455. - # Failing that, at least try and use $RANDOM to avoid a race
  45456. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  45457. + # Failing that, at least try and use $RANDOM to avoid a race
  45458. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  45459. - save_mktempdir_umask=`umask`
  45460. - umask 0077
  45461. - $mkdir "$my_tmpdir"
  45462. - umask $save_mktempdir_umask
  45463. + save_mktempdir_umask=`umask`
  45464. + umask 0077
  45465. + $MKDIR "$my_tmpdir"
  45466. + umask $save_mktempdir_umask
  45467. fi
  45468. # If we're not in dry-run mode, bomb out on failure
  45469. - test -d "$my_tmpdir" || {
  45470. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  45471. - exit $EXIT_FAILURE
  45472. - }
  45473. + test -d "$my_tmpdir" || \
  45474. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  45475. fi
  45476. - $echo "X$my_tmpdir" | $Xsed
  45477. + $ECHO "X$my_tmpdir" | $Xsed
  45478. }
  45479. -# func_win32_libid arg
  45480. -# return the library type of file 'arg'
  45481. -#
  45482. -# Need a lot of goo to handle *both* DLLs and import libs
  45483. -# Has to be a shell function in order to 'eat' the argument
  45484. -# that is supplied when $file_magic_command is called.
  45485. -func_win32_libid ()
  45486. +# func_quote_for_eval arg
  45487. +# Aesthetically quote ARG to be evaled later.
  45488. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  45489. +# is double-quoted, suitable for a subsequent eval, whereas
  45490. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  45491. +# which are still active within double quotes backslashified.
  45492. +func_quote_for_eval ()
  45493. {
  45494. - win32_libid_type="unknown"
  45495. - win32_fileres=`file -L $1 2>/dev/null`
  45496. - case $win32_fileres in
  45497. - *ar\ archive\ import\ library*) # definitely import
  45498. - win32_libid_type="x86 archive import"
  45499. - ;;
  45500. - *ar\ archive*) # could be an import, or static
  45501. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  45502. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  45503. - win32_nmres=`eval $NM -f posix -A $1 | \
  45504. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  45505. - case $win32_nmres in
  45506. - import*) win32_libid_type="x86 archive import";;
  45507. - *) win32_libid_type="x86 archive static";;
  45508. - esac
  45509. - fi
  45510. - ;;
  45511. - *DLL*)
  45512. - win32_libid_type="x86 DLL"
  45513. - ;;
  45514. - *executable*) # but shell scripts are "executable" too...
  45515. - case $win32_fileres in
  45516. - *MS\ Windows\ PE\ Intel*)
  45517. - win32_libid_type="x86 DLL"
  45518. - ;;
  45519. + case $1 in
  45520. + *[\\\`\"\$]*)
  45521. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  45522. + *)
  45523. + func_quote_for_eval_unquoted_result="$1" ;;
  45524. + esac
  45525. +
  45526. + case $func_quote_for_eval_unquoted_result in
  45527. + # Double-quote args containing shell metacharacters to delay
  45528. + # word splitting, command substitution and and variable
  45529. + # expansion for a subsequent eval.
  45530. + # Many Bourne shells cannot handle close brackets correctly
  45531. + # in scan sets, so we specify it separately.
  45532. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45533. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  45534. + ;;
  45535. + *)
  45536. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  45537. esac
  45538. - ;;
  45539. - esac
  45540. - $echo $win32_libid_type
  45541. }
  45542. -# func_infer_tag arg
  45543. -# Infer tagged configuration to use if any are available and
  45544. -# if one wasn't chosen via the "--tag" command line option.
  45545. -# Only attempt this if the compiler in the base compile
  45546. -# command doesn't match the default compiler.
  45547. -# arg is usually of the form 'gcc ...'
  45548. -func_infer_tag ()
  45549. +# func_quote_for_expand arg
  45550. +# Aesthetically quote ARG to be evaled later; same as above,
  45551. +# but do not quote variable references.
  45552. +func_quote_for_expand ()
  45553. {
  45554. - if test -n "$available_tags" && test -z "$tagname"; then
  45555. - CC_quoted=
  45556. - for arg in $CC; do
  45557. - case $arg in
  45558. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45559. - arg="\"$arg\""
  45560. - ;;
  45561. - esac
  45562. - CC_quoted="$CC_quoted $arg"
  45563. - done
  45564. - case $@ in
  45565. - # Blanks in the command may have been stripped by the calling shell,
  45566. - # but not from the CC environment variable when configure was run.
  45567. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  45568. - # Blanks at the start of $base_compile will cause this to fail
  45569. - # if we don't check for them as well.
  45570. + case $1 in
  45571. + *[\\\`\"]*)
  45572. + my_arg=`$ECHO "X$1" | $Xsed \
  45573. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  45574. *)
  45575. - for z in $available_tags; do
  45576. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  45577. - # Evaluate the configuration.
  45578. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  45579. - CC_quoted=
  45580. - for arg in $CC; do
  45581. - # Double-quote args containing other shell metacharacters.
  45582. - case $arg in
  45583. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45584. - arg="\"$arg\""
  45585. - ;;
  45586. - esac
  45587. - CC_quoted="$CC_quoted $arg"
  45588. - done
  45589. - case "$@ " in
  45590. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  45591. - # The compiler in the base compile command matches
  45592. - # the one in the tagged configuration.
  45593. - # Assume this is the tagged configuration we want.
  45594. - tagname=$z
  45595. - break
  45596. - ;;
  45597. - esac
  45598. - fi
  45599. - done
  45600. - # If $tagname still isn't set, then no tagged configuration
  45601. - # was found and let the user know that the "--tag" command
  45602. - # line option must be used.
  45603. - if test -z "$tagname"; then
  45604. - $echo "$modename: unable to infer tagged configuration"
  45605. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  45606. - exit $EXIT_FAILURE
  45607. -# else
  45608. -# $echo "$modename: using $tagname tagged configuration"
  45609. - fi
  45610. - ;;
  45611. - esac
  45612. - fi
  45613. + my_arg="$1" ;;
  45614. + esac
  45615. +
  45616. + case $my_arg in
  45617. + # Double-quote args containing shell metacharacters to delay
  45618. + # word splitting and command substitution for a subsequent eval.
  45619. + # Many Bourne shells cannot handle close brackets correctly
  45620. + # in scan sets, so we specify it separately.
  45621. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45622. + my_arg="\"$my_arg\""
  45623. + ;;
  45624. + esac
  45625. +
  45626. + func_quote_for_expand_result="$my_arg"
  45627. }
  45628. -# func_extract_an_archive dir oldlib
  45629. -func_extract_an_archive ()
  45630. +# func_show_eval cmd [fail_exp]
  45631. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  45632. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  45633. +# is given, then evaluate it.
  45634. +func_show_eval ()
  45635. {
  45636. - f_ex_an_ar_dir="$1"; shift
  45637. - f_ex_an_ar_oldlib="$1"
  45638. + my_cmd="$1"
  45639. + my_fail_exp="${2-:}"
  45640. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  45641. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  45642. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  45643. - :
  45644. - else
  45645. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  45646. - exit $EXIT_FAILURE
  45647. + ${opt_silent-false} || {
  45648. + func_quote_for_expand "$my_cmd"
  45649. + eval "func_echo $func_quote_for_expand_result"
  45650. + }
  45651. +
  45652. + if ${opt_dry_run-false}; then :; else
  45653. + eval "$my_cmd"
  45654. + my_status=$?
  45655. + if test "$my_status" -eq 0; then :; else
  45656. + eval "(exit $my_status); $my_fail_exp"
  45657. + fi
  45658. fi
  45659. }
  45660. -# func_extract_archives gentop oldlib ...
  45661. -func_extract_archives ()
  45662. +
  45663. +# func_show_eval_locale cmd [fail_exp]
  45664. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  45665. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  45666. +# is given, then evaluate it. Use the saved locale for evaluation.
  45667. +func_show_eval_locale ()
  45668. {
  45669. - my_gentop="$1"; shift
  45670. - my_oldlibs=${1+"$@"}
  45671. - my_oldobjs=""
  45672. - my_xlib=""
  45673. - my_xabs=""
  45674. - my_xdir=""
  45675. - my_status=""
  45676. + my_cmd="$1"
  45677. + my_fail_exp="${2-:}"
  45678. +
  45679. + ${opt_silent-false} || {
  45680. + func_quote_for_expand "$my_cmd"
  45681. + eval "func_echo $func_quote_for_expand_result"
  45682. + }
  45683. - $show "${rm}r $my_gentop"
  45684. - $run ${rm}r "$my_gentop"
  45685. - $show "$mkdir $my_gentop"
  45686. - $run $mkdir "$my_gentop"
  45687. - my_status=$?
  45688. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  45689. - exit $my_status
  45690. + if ${opt_dry_run-false}; then :; else
  45691. + eval "$lt_user_locale
  45692. + $my_cmd"
  45693. + my_status=$?
  45694. + eval "$lt_safe_locale"
  45695. + if test "$my_status" -eq 0; then :; else
  45696. + eval "(exit $my_status); $my_fail_exp"
  45697. + fi
  45698. fi
  45699. +}
  45700. - for my_xlib in $my_oldlibs; do
  45701. - # Extract the objects.
  45702. - case $my_xlib in
  45703. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  45704. - *) my_xabs=`pwd`"/$my_xlib" ;;
  45705. - esac
  45706. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  45707. - my_xdir="$my_gentop/$my_xlib"
  45708. - $show "${rm}r $my_xdir"
  45709. - $run ${rm}r "$my_xdir"
  45710. - $show "$mkdir $my_xdir"
  45711. - $run $mkdir "$my_xdir"
  45712. - exit_status=$?
  45713. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  45714. - exit $exit_status
  45715. - fi
  45716. - case $host in
  45717. - *-darwin*)
  45718. - $show "Extracting $my_xabs"
  45719. - # Do not bother doing anything if just a dry run
  45720. - if test -z "$run"; then
  45721. - darwin_orig_dir=`pwd`
  45722. - cd $my_xdir || exit $?
  45723. - darwin_archive=$my_xabs
  45724. - darwin_curdir=`pwd`
  45725. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  45726. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  45727. - if test -n "$darwin_arches"; then
  45728. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  45729. - darwin_arch=
  45730. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  45731. - for darwin_arch in $darwin_arches ; do
  45732. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45733. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  45734. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45735. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  45736. - cd "$darwin_curdir"
  45737. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  45738. - done # $darwin_arches
  45739. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  45740. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  45741. - darwin_file=
  45742. - darwin_files=
  45743. - for darwin_file in $darwin_filelist; do
  45744. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  45745. - lipo -create -output "$darwin_file" $darwin_files
  45746. - done # $darwin_filelist
  45747. - ${rm}r unfat-$$
  45748. - cd "$darwin_orig_dir"
  45749. - else
  45750. - cd "$darwin_orig_dir"
  45751. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45752. - fi # $darwin_arches
  45753. - fi # $run
  45754. - ;;
  45755. - *)
  45756. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45757. - ;;
  45758. - esac
  45759. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  45760. - done
  45761. - func_extract_archives_result="$my_oldobjs"
  45762. +
  45763. +
  45764. +
  45765. +# func_version
  45766. +# Echo version message to standard output and exit.
  45767. +func_version ()
  45768. +{
  45769. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  45770. + s/^# //
  45771. + s/^# *$//
  45772. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  45773. + p
  45774. + }' < "$progpath"
  45775. + exit $?
  45776. }
  45777. -# End of Shell function definitions
  45778. -#####################################
  45779. -# Darwin sucks
  45780. -eval std_shrext=\"$shrext_cmds\"
  45781. +# func_usage
  45782. +# Echo short help message to standard output and exit.
  45783. +func_usage ()
  45784. +{
  45785. + $SED -n '/^# Usage:/,/# -h/ {
  45786. + s/^# //
  45787. + s/^# *$//
  45788. + s/\$progname/'$progname'/
  45789. + p
  45790. + }' < "$progpath"
  45791. + $ECHO
  45792. + $ECHO "run \`$progname --help | more' for full usage"
  45793. + exit $?
  45794. +}
  45795. -disable_libs=no
  45796. +# func_help
  45797. +# Echo long help message to standard output and exit.
  45798. +func_help ()
  45799. +{
  45800. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  45801. + s/^# //
  45802. + s/^# *$//
  45803. + s*\$progname*'$progname'*
  45804. + s*\$host*'"$host"'*
  45805. + s*\$SHELL*'"$SHELL"'*
  45806. + s*\$LTCC*'"$LTCC"'*
  45807. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  45808. + s*\$LD*'"$LD"'*
  45809. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  45810. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  45811. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  45812. + p
  45813. + }' < "$progpath"
  45814. + exit $?
  45815. +}
  45816. -# Parse our command line options once, thoroughly.
  45817. -while test "$#" -gt 0
  45818. -do
  45819. - arg="$1"
  45820. +# func_missing_arg argname
  45821. +# Echo program name prefixed message to standard error and set global
  45822. +# exit_cmd.
  45823. +func_missing_arg ()
  45824. +{
  45825. + func_error "missing argument for $1"
  45826. + exit_cmd=exit
  45827. +}
  45828. +
  45829. +exit_cmd=:
  45830. +
  45831. +
  45832. +
  45833. +
  45834. +
  45835. +# Check that we have a working $ECHO.
  45836. +if test "X$1" = X--no-reexec; then
  45837. + # Discard the --no-reexec flag, and continue.
  45838. shift
  45839. +elif test "X$1" = X--fallback-echo; then
  45840. + # Avoid inline document here, it may be left over
  45841. + :
  45842. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  45843. + # Yippee, $ECHO works!
  45844. + :
  45845. +else
  45846. + # Restart under the correct shell, and then maybe $ECHO will work.
  45847. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  45848. +fi
  45849. - case $arg in
  45850. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  45851. - *) optarg= ;;
  45852. - esac
  45853. +if test "X$1" = X--fallback-echo; then
  45854. + # used as fallback echo
  45855. + shift
  45856. + cat <<EOF
  45857. +$*
  45858. +EOF
  45859. + exit $EXIT_SUCCESS
  45860. +fi
  45861. - # If the previous option needs an argument, assign it.
  45862. - if test -n "$prev"; then
  45863. - case $prev in
  45864. - execute_dlfiles)
  45865. - execute_dlfiles="$execute_dlfiles $arg"
  45866. - ;;
  45867. - tag)
  45868. - tagname="$arg"
  45869. - preserve_args="${preserve_args}=$arg"
  45870. -
  45871. - # Check whether tagname contains only valid characters
  45872. - case $tagname in
  45873. - *[!-_A-Za-z0-9,/]*)
  45874. - $echo "$progname: invalid tag name: $tagname" 1>&2
  45875. - exit $EXIT_FAILURE
  45876. - ;;
  45877. - esac
  45878. +magic="%%%MAGIC variable%%%"
  45879. +magic_exe="%%%MAGIC EXE variable%%%"
  45880. - case $tagname in
  45881. - CC)
  45882. - # Don't test for the "default" C tag, as we know, it's there, but
  45883. - # not specially marked.
  45884. - ;;
  45885. - *)
  45886. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  45887. - taglist="$taglist $tagname"
  45888. - # Evaluate the configuration.
  45889. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  45890. - else
  45891. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  45892. - fi
  45893. - ;;
  45894. - esac
  45895. - ;;
  45896. - *)
  45897. - eval "$prev=\$arg"
  45898. - ;;
  45899. - esac
  45900. +# Global variables.
  45901. +# $mode is unset
  45902. +nonopt=
  45903. +execute_dlfiles=
  45904. +preserve_args=
  45905. +lo2o="s/\\.lo\$/.${objext}/"
  45906. +o2lo="s/\\.${objext}\$/.lo/"
  45907. +extracted_archives=
  45908. +extracted_serial=0
  45909. - prev=
  45910. - prevopt=
  45911. - continue
  45912. - fi
  45913. +opt_dry_run=false
  45914. +opt_duplicate_deps=false
  45915. +opt_silent=false
  45916. +opt_debug=:
  45917. - # Have we seen a non-optional argument yet?
  45918. - case $arg in
  45919. - --help)
  45920. - show_help=yes
  45921. - ;;
  45922. +# If this variable is set in any of the actions, the command in it
  45923. +# will be execed at the end. This prevents here-documents from being
  45924. +# left over by shells.
  45925. +exec_cmd=
  45926. - --version)
  45927. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  45928. - $echo
  45929. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  45930. - $echo "This is free software; see the source for copying conditions. There is NO"
  45931. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  45932. - exit $?
  45933. - ;;
  45934. +# func_fatal_configuration arg...
  45935. +# Echo program name prefixed message to standard error, followed by
  45936. +# a configuration failure hint, and exit.
  45937. +func_fatal_configuration ()
  45938. +{
  45939. + func_error ${1+"$@"}
  45940. + func_error "See the $PACKAGE documentation for more information."
  45941. + func_fatal_error "Fatal configuration error."
  45942. +}
  45943. +
  45944. +
  45945. +# func_config
  45946. +# Display the configuration for all the tags in this script.
  45947. +func_config ()
  45948. +{
  45949. + re_begincf='^# ### BEGIN LIBTOOL'
  45950. + re_endcf='^# ### END LIBTOOL'
  45951. +
  45952. + # Default configuration.
  45953. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  45954. - --config)
  45955. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  45956. # Now print the configurations for the tags.
  45957. for tagname in $taglist; do
  45958. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  45959. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  45960. done
  45961. - exit $?
  45962. - ;;
  45963. - --debug)
  45964. - $echo "$progname: enabling shell trace mode"
  45965. - set -x
  45966. - preserve_args="$preserve_args $arg"
  45967. - ;;
  45968. -
  45969. - --dry-run | -n)
  45970. - run=:
  45971. - ;;
  45972. + exit $?
  45973. +}
  45974. - --features)
  45975. - $echo "host: $host"
  45976. +# func_features
  45977. +# Display the features supported by this script.
  45978. +func_features ()
  45979. +{
  45980. + $ECHO "host: $host"
  45981. if test "$build_libtool_libs" = yes; then
  45982. - $echo "enable shared libraries"
  45983. + $ECHO "enable shared libraries"
  45984. else
  45985. - $echo "disable shared libraries"
  45986. + $ECHO "disable shared libraries"
  45987. fi
  45988. if test "$build_old_libs" = yes; then
  45989. - $echo "enable static libraries"
  45990. + $ECHO "enable static libraries"
  45991. else
  45992. - $echo "disable static libraries"
  45993. + $ECHO "disable static libraries"
  45994. fi
  45995. +
  45996. exit $?
  45997. - ;;
  45998. +}
  45999. - --finish) mode="finish" ;;
  46000. +# func_enable_tag tagname
  46001. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  46002. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  46003. +# variable here.
  46004. +func_enable_tag ()
  46005. +{
  46006. + # Global variable:
  46007. + tagname="$1"
  46008. - --mode) prevopt="--mode" prev=mode ;;
  46009. - --mode=*) mode="$optarg" ;;
  46010. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  46011. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  46012. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  46013. +
  46014. + # Validate tagname.
  46015. + case $tagname in
  46016. + *[!-_A-Za-z0-9,/]*)
  46017. + func_fatal_error "invalid tag name: $tagname"
  46018. + ;;
  46019. + esac
  46020. - --preserve-dup-deps) duplicate_deps="yes" ;;
  46021. + # Don't test for the "default" C tag, as we know it's
  46022. + # there but not specially marked.
  46023. + case $tagname in
  46024. + CC) ;;
  46025. + *)
  46026. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  46027. + taglist="$taglist $tagname"
  46028. - --quiet | --silent)
  46029. - show=:
  46030. - preserve_args="$preserve_args $arg"
  46031. - ;;
  46032. + # Evaluate the configuration. Be careful to quote the path
  46033. + # and the sed script, to avoid splitting on whitespace, but
  46034. + # also don't use non-portable quotes within backquotes within
  46035. + # quotes we have to do it in 2 steps:
  46036. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  46037. + eval "$extractedcf"
  46038. + else
  46039. + func_error "ignoring unknown tag $tagname"
  46040. + fi
  46041. + ;;
  46042. + esac
  46043. +}
  46044. +
  46045. +# Parse options once, thoroughly. This comes as soon as possible in
  46046. +# the script to make things like `libtool --version' happen quickly.
  46047. +{
  46048. - --tag)
  46049. - prevopt="--tag"
  46050. - prev=tag
  46051. - preserve_args="$preserve_args --tag"
  46052. + # Shorthand for --mode=foo, only valid as the first argument
  46053. + case $1 in
  46054. + clean|clea|cle|cl)
  46055. + shift; set dummy --mode clean ${1+"$@"}; shift
  46056. ;;
  46057. - --tag=*)
  46058. - set tag "$optarg" ${1+"$@"}
  46059. - shift
  46060. - prev=tag
  46061. - preserve_args="$preserve_args --tag"
  46062. + compile|compil|compi|comp|com|co|c)
  46063. + shift; set dummy --mode compile ${1+"$@"}; shift
  46064. ;;
  46065. -
  46066. - -dlopen)
  46067. - prevopt="-dlopen"
  46068. - prev=execute_dlfiles
  46069. + execute|execut|execu|exec|exe|ex|e)
  46070. + shift; set dummy --mode execute ${1+"$@"}; shift
  46071. ;;
  46072. -
  46073. - -*)
  46074. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  46075. - $echo "$help" 1>&2
  46076. - exit $EXIT_FAILURE
  46077. + finish|finis|fini|fin|fi|f)
  46078. + shift; set dummy --mode finish ${1+"$@"}; shift
  46079. ;;
  46080. -
  46081. - *)
  46082. - nonopt="$arg"
  46083. - break
  46084. + install|instal|insta|inst|ins|in|i)
  46085. + shift; set dummy --mode install ${1+"$@"}; shift
  46086. + ;;
  46087. + link|lin|li|l)
  46088. + shift; set dummy --mode link ${1+"$@"}; shift
  46089. + ;;
  46090. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  46091. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  46092. ;;
  46093. esac
  46094. -done
  46095. -if test -n "$prevopt"; then
  46096. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  46097. - $echo "$help" 1>&2
  46098. - exit $EXIT_FAILURE
  46099. -fi
  46100. + # Parse non-mode specific arguments:
  46101. + while test "$#" -gt 0; do
  46102. + opt="$1"
  46103. + shift
  46104. -case $disable_libs in
  46105. -no)
  46106. - ;;
  46107. -shared)
  46108. - build_libtool_libs=no
  46109. - build_old_libs=yes
  46110. - ;;
  46111. -static)
  46112. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  46113. - ;;
  46114. -esac
  46115. + case $opt in
  46116. + --config) func_config ;;
  46117. -# If this variable is set in any of the actions, the command in it
  46118. -# will be execed at the end. This prevents here-documents from being
  46119. -# left over by shells.
  46120. -exec_cmd=
  46121. + --debug) preserve_args="$preserve_args $opt"
  46122. + func_echo "enabling shell trace mode"
  46123. + opt_debug='set -x'
  46124. + $opt_debug
  46125. + ;;
  46126. +
  46127. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46128. + execute_dlfiles="$execute_dlfiles $1"
  46129. + shift
  46130. + ;;
  46131. -if test -z "$show_help"; then
  46132. + --dry-run | -n) opt_dry_run=: ;;
  46133. + --features) func_features ;;
  46134. + --finish) mode="finish" ;;
  46135. +
  46136. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46137. + case $1 in
  46138. + # Valid mode arguments:
  46139. + clean) ;;
  46140. + compile) ;;
  46141. + execute) ;;
  46142. + finish) ;;
  46143. + install) ;;
  46144. + link) ;;
  46145. + relink) ;;
  46146. + uninstall) ;;
  46147. +
  46148. + # Catch anything else as an error
  46149. + *) func_error "invalid argument for $opt"
  46150. + exit_cmd=exit
  46151. + break
  46152. + ;;
  46153. + esac
  46154. - # Infer the operation mode.
  46155. - if test -z "$mode"; then
  46156. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  46157. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  46158. - case $nonopt in
  46159. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  46160. - mode=link
  46161. - for arg
  46162. - do
  46163. - case $arg in
  46164. - -c)
  46165. - mode=compile
  46166. - break
  46167. - ;;
  46168. - esac
  46169. - done
  46170. - ;;
  46171. - *db | *dbx | *strace | *truss)
  46172. - mode=execute
  46173. - ;;
  46174. - *install*|cp|mv)
  46175. - mode=install
  46176. - ;;
  46177. - *rm)
  46178. - mode=uninstall
  46179. + mode="$1"
  46180. + shift
  46181. + ;;
  46182. +
  46183. + --preserve-dup-deps)
  46184. + opt_duplicate_deps=: ;;
  46185. +
  46186. + --quiet|--silent) preserve_args="$preserve_args $opt"
  46187. + opt_silent=:
  46188. + ;;
  46189. +
  46190. + --verbose| -v) preserve_args="$preserve_args $opt"
  46191. + opt_silent=false
  46192. + ;;
  46193. +
  46194. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46195. + preserve_args="$preserve_args $opt $1"
  46196. + func_enable_tag "$1" # tagname is set here
  46197. + shift
  46198. + ;;
  46199. +
  46200. + # Separate optargs to long options:
  46201. + -dlopen=*|--mode=*|--tag=*)
  46202. + func_opt_split "$opt"
  46203. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  46204. + shift
  46205. + ;;
  46206. +
  46207. + -\?|-h) func_usage ;;
  46208. + --help) opt_help=: ;;
  46209. + --version) func_version ;;
  46210. +
  46211. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  46212. +
  46213. + *) nonopt="$opt"
  46214. + break
  46215. + ;;
  46216. + esac
  46217. + done
  46218. +
  46219. +
  46220. + case $host in
  46221. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  46222. + # don't eliminate duplications in $postdeps and $predeps
  46223. + opt_duplicate_compiler_generated_deps=:
  46224. ;;
  46225. *)
  46226. - # If we have no mode, but dlfiles were specified, then do execute mode.
  46227. - test -n "$execute_dlfiles" && mode=execute
  46228. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  46229. + ;;
  46230. + esac
  46231. - # Just use the default operation mode.
  46232. - if test -z "$mode"; then
  46233. - if test -n "$nonopt"; then
  46234. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  46235. - else
  46236. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  46237. - fi
  46238. + # Having warned about all mis-specified options, bail out if
  46239. + # anything was wrong.
  46240. + $exit_cmd $EXIT_FAILURE
  46241. +}
  46242. +
  46243. +# func_check_version_match
  46244. +# Ensure that we are using m4 macros, and libtool script from the same
  46245. +# release of libtool.
  46246. +func_check_version_match ()
  46247. +{
  46248. + if test "$package_revision" != "$macro_revision"; then
  46249. + if test "$VERSION" != "$macro_version"; then
  46250. + if test -z "$macro_version"; then
  46251. + cat >&2 <<_LT_EOF
  46252. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  46253. +$progname: definition of this LT_INIT comes from an older release.
  46254. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46255. +$progname: and run autoconf again.
  46256. +_LT_EOF
  46257. + else
  46258. + cat >&2 <<_LT_EOF
  46259. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  46260. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  46261. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46262. +$progname: and run autoconf again.
  46263. +_LT_EOF
  46264. fi
  46265. - ;;
  46266. - esac
  46267. + else
  46268. + cat >&2 <<_LT_EOF
  46269. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  46270. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  46271. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  46272. +$progname: of $PACKAGE $VERSION and run autoconf again.
  46273. +_LT_EOF
  46274. + fi
  46275. +
  46276. + exit $EXIT_MISMATCH
  46277. + fi
  46278. +}
  46279. +
  46280. +
  46281. +## ----------- ##
  46282. +## Main. ##
  46283. +## ----------- ##
  46284. +
  46285. +$opt_help || {
  46286. + # Sanity checks first:
  46287. + func_check_version_match
  46288. +
  46289. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  46290. + func_fatal_configuration "not configured to build any kind of library"
  46291. fi
  46292. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  46293. +
  46294. +
  46295. + # Darwin sucks
  46296. + eval std_shrext=\"$shrext_cmds\"
  46297. +
  46298. +
  46299. # Only execute mode is allowed to have -dlopen flags.
  46300. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  46301. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  46302. - $echo "$help" 1>&2
  46303. + func_error "unrecognized option \`-dlopen'"
  46304. + $ECHO "$help" 1>&2
  46305. exit $EXIT_FAILURE
  46306. fi
  46307. # Change the help message to a mode-specific one.
  46308. generic_help="$help"
  46309. - help="Try \`$modename --help --mode=$mode' for more information."
  46310. + help="Try \`$progname --help --mode=$mode' for more information."
  46311. +}
  46312. - # These modes are in order of execution frequency so that they run quickly.
  46313. - case $mode in
  46314. - # libtool compile mode
  46315. - compile)
  46316. - modename="$modename: compile"
  46317. - # Get the compilation command and the source file.
  46318. - base_compile=
  46319. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  46320. - suppress_opt=yes
  46321. - suppress_output=
  46322. - arg_mode=normal
  46323. - libobj=
  46324. - later=
  46325. - for arg
  46326. - do
  46327. - case $arg_mode in
  46328. - arg )
  46329. - # do not "continue". Instead, add this to base_compile
  46330. - lastarg="$arg"
  46331. - arg_mode=normal
  46332. - ;;
  46333. +# func_lalib_p file
  46334. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46335. +# This function is only a basic sanity check; it will hardly flush out
  46336. +# determined imposters.
  46337. +func_lalib_p ()
  46338. +{
  46339. + test -f "$1" &&
  46340. + $SED -e 4q "$1" 2>/dev/null \
  46341. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  46342. +}
  46343. - target )
  46344. - libobj="$arg"
  46345. - arg_mode=normal
  46346. - continue
  46347. - ;;
  46348. +# func_lalib_unsafe_p file
  46349. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46350. +# This function implements the same check as func_lalib_p without
  46351. +# resorting to external programs. To this end, it redirects stdin and
  46352. +# closes it afterwards, without saving the original file descriptor.
  46353. +# As a safety measure, use it only where a negative result would be
  46354. +# fatal anyway. Works if `file' does not exist.
  46355. +func_lalib_unsafe_p ()
  46356. +{
  46357. + lalib_p=no
  46358. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  46359. + for lalib_p_l in 1 2 3 4
  46360. + do
  46361. + read lalib_p_line
  46362. + case "$lalib_p_line" in
  46363. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  46364. + esac
  46365. + done
  46366. + exec 0<&5 5<&-
  46367. + fi
  46368. + test "$lalib_p" = yes
  46369. +}
  46370. - normal )
  46371. - # Accept any command-line options.
  46372. - case $arg in
  46373. - -o)
  46374. - if test -n "$libobj" ; then
  46375. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  46376. - exit $EXIT_FAILURE
  46377. - fi
  46378. - arg_mode=target
  46379. - continue
  46380. - ;;
  46381. +# func_ltwrapper_script_p file
  46382. +# True iff FILE is a libtool wrapper script
  46383. +# This function is only a basic sanity check; it will hardly flush out
  46384. +# determined imposters.
  46385. +func_ltwrapper_script_p ()
  46386. +{
  46387. + func_lalib_p "$1"
  46388. +}
  46389. - -static | -prefer-pic | -prefer-non-pic)
  46390. - later="$later $arg"
  46391. - continue
  46392. - ;;
  46393. +# func_ltwrapper_executable_p file
  46394. +# True iff FILE is a libtool wrapper executable
  46395. +# This function is only a basic sanity check; it will hardly flush out
  46396. +# determined imposters.
  46397. +func_ltwrapper_executable_p ()
  46398. +{
  46399. + func_ltwrapper_exec_suffix=
  46400. + case $1 in
  46401. + *.exe) ;;
  46402. + *) func_ltwrapper_exec_suffix=.exe ;;
  46403. + esac
  46404. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  46405. +}
  46406. - -no-suppress)
  46407. - suppress_opt=no
  46408. - continue
  46409. - ;;
  46410. +# func_ltwrapper_scriptname file
  46411. +# Assumes file is an ltwrapper_executable
  46412. +# uses $file to determine the appropriate filename for a
  46413. +# temporary ltwrapper_script.
  46414. +func_ltwrapper_scriptname ()
  46415. +{
  46416. + func_ltwrapper_scriptname_result=""
  46417. + if func_ltwrapper_executable_p "$1"; then
  46418. + func_dirname_and_basename "$1" "" "."
  46419. + func_stripname '' '.exe' "$func_basename_result"
  46420. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  46421. + fi
  46422. +}
  46423. - -Xcompiler)
  46424. - arg_mode=arg # the next one goes into the "base_compile" arg list
  46425. - continue # The current "srcfile" will either be retained or
  46426. - ;; # replaced later. I would guess that would be a bug.
  46427. +# func_ltwrapper_p file
  46428. +# True iff FILE is a libtool wrapper script or wrapper executable
  46429. +# This function is only a basic sanity check; it will hardly flush out
  46430. +# determined imposters.
  46431. +func_ltwrapper_p ()
  46432. +{
  46433. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  46434. +}
  46435. - -Wc,*)
  46436. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  46437. - lastarg=
  46438. - save_ifs="$IFS"; IFS=','
  46439. - for arg in $args; do
  46440. - IFS="$save_ifs"
  46441. - # Double-quote args containing other shell metacharacters.
  46442. - # Many Bourne shells cannot handle close brackets correctly
  46443. - # in scan sets, so we specify it separately.
  46444. - case $arg in
  46445. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46446. - arg="\"$arg\""
  46447. +# func_execute_cmds commands fail_cmd
  46448. +# Execute tilde-delimited COMMANDS.
  46449. +# If FAIL_CMD is given, eval that upon failure.
  46450. +# FAIL_CMD may read-access the current command in variable CMD!
  46451. +func_execute_cmds ()
  46452. +{
  46453. + $opt_debug
  46454. + save_ifs=$IFS; IFS='~'
  46455. + for cmd in $1; do
  46456. + IFS=$save_ifs
  46457. + eval cmd=\"$cmd\"
  46458. + func_show_eval "$cmd" "${2-:}"
  46459. + done
  46460. + IFS=$save_ifs
  46461. +}
  46462. +
  46463. +
  46464. +# func_source file
  46465. +# Source FILE, adding directory component if necessary.
  46466. +# Note that it is not necessary on cygwin/mingw to append a dot to
  46467. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  46468. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  46469. +# `FILE.' does not work on cygwin managed mounts.
  46470. +func_source ()
  46471. +{
  46472. + $opt_debug
  46473. + case $1 in
  46474. + */* | *\\*) . "$1" ;;
  46475. + *) . "./$1" ;;
  46476. + esac
  46477. +}
  46478. +
  46479. +
  46480. +# func_infer_tag arg
  46481. +# Infer tagged configuration to use if any are available and
  46482. +# if one wasn't chosen via the "--tag" command line option.
  46483. +# Only attempt this if the compiler in the base compile
  46484. +# command doesn't match the default compiler.
  46485. +# arg is usually of the form 'gcc ...'
  46486. +func_infer_tag ()
  46487. +{
  46488. + $opt_debug
  46489. + if test -n "$available_tags" && test -z "$tagname"; then
  46490. + CC_quoted=
  46491. + for arg in $CC; do
  46492. + func_quote_for_eval "$arg"
  46493. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  46494. + done
  46495. + case $@ in
  46496. + # Blanks in the command may have been stripped by the calling shell,
  46497. + # but not from the CC environment variable when configure was run.
  46498. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  46499. + # Blanks at the start of $base_compile will cause this to fail
  46500. + # if we don't check for them as well.
  46501. + *)
  46502. + for z in $available_tags; do
  46503. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  46504. + # Evaluate the configuration.
  46505. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  46506. + CC_quoted=
  46507. + for arg in $CC; do
  46508. + # Double-quote args containing other shell metacharacters.
  46509. + func_quote_for_eval "$arg"
  46510. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  46511. + done
  46512. + case "$@ " in
  46513. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  46514. + # The compiler in the base compile command matches
  46515. + # the one in the tagged configuration.
  46516. + # Assume this is the tagged configuration we want.
  46517. + tagname=$z
  46518. + break
  46519. ;;
  46520. esac
  46521. - lastarg="$lastarg $arg"
  46522. + fi
  46523. + done
  46524. + # If $tagname still isn't set, then no tagged configuration
  46525. + # was found and let the user know that the "--tag" command
  46526. + # line option must be used.
  46527. + if test -z "$tagname"; then
  46528. + func_echo "unable to infer tagged configuration"
  46529. + func_fatal_error "specify a tag with \`--tag'"
  46530. +# else
  46531. +# func_verbose "using $tagname tagged configuration"
  46532. + fi
  46533. + ;;
  46534. + esac
  46535. + fi
  46536. +}
  46537. +
  46538. +
  46539. +
  46540. +# func_write_libtool_object output_name pic_name nonpic_name
  46541. +# Create a libtool object file (analogous to a ".la" file),
  46542. +# but don't create it if we're doing a dry run.
  46543. +func_write_libtool_object ()
  46544. +{
  46545. + write_libobj=${1}
  46546. + if test "$build_libtool_libs" = yes; then
  46547. + write_lobj=\'${2}\'
  46548. + else
  46549. + write_lobj=none
  46550. + fi
  46551. +
  46552. + if test "$build_old_libs" = yes; then
  46553. + write_oldobj=\'${3}\'
  46554. + else
  46555. + write_oldobj=none
  46556. + fi
  46557. +
  46558. + $opt_dry_run || {
  46559. + cat >${write_libobj}T <<EOF
  46560. +# $write_libobj - a libtool object file
  46561. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  46562. +#
  46563. +# Please DO NOT delete this file!
  46564. +# It is necessary for linking the library.
  46565. +
  46566. +# Name of the PIC object.
  46567. +pic_object=$write_lobj
  46568. +
  46569. +# Name of the non-PIC object
  46570. +non_pic_object=$write_oldobj
  46571. +
  46572. +EOF
  46573. + $MV "${write_libobj}T" "${write_libobj}"
  46574. + }
  46575. +}
  46576. +
  46577. +# func_mode_compile arg...
  46578. +func_mode_compile ()
  46579. +{
  46580. + $opt_debug
  46581. + # Get the compilation command and the source file.
  46582. + base_compile=
  46583. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  46584. + suppress_opt=yes
  46585. + suppress_output=
  46586. + arg_mode=normal
  46587. + libobj=
  46588. + later=
  46589. + pie_flag=
  46590. +
  46591. + for arg
  46592. + do
  46593. + case $arg_mode in
  46594. + arg )
  46595. + # do not "continue". Instead, add this to base_compile
  46596. + lastarg="$arg"
  46597. + arg_mode=normal
  46598. + ;;
  46599. +
  46600. + target )
  46601. + libobj="$arg"
  46602. + arg_mode=normal
  46603. + continue
  46604. + ;;
  46605. +
  46606. + normal )
  46607. + # Accept any command-line options.
  46608. + case $arg in
  46609. + -o)
  46610. + test -n "$libobj" && \
  46611. + func_fatal_error "you cannot specify \`-o' more than once"
  46612. + arg_mode=target
  46613. + continue
  46614. + ;;
  46615. +
  46616. + -pie | -fpie | -fPIE)
  46617. + pie_flag="$pie_flag $arg"
  46618. + continue
  46619. + ;;
  46620. +
  46621. + -shared | -static | -prefer-pic | -prefer-non-pic)
  46622. + later="$later $arg"
  46623. + continue
  46624. + ;;
  46625. +
  46626. + -no-suppress)
  46627. + suppress_opt=no
  46628. + continue
  46629. + ;;
  46630. +
  46631. + -Xcompiler)
  46632. + arg_mode=arg # the next one goes into the "base_compile" arg list
  46633. + continue # The current "srcfile" will either be retained or
  46634. + ;; # replaced later. I would guess that would be a bug.
  46635. +
  46636. + -Wc,*)
  46637. + func_stripname '-Wc,' '' "$arg"
  46638. + args=$func_stripname_result
  46639. + lastarg=
  46640. + save_ifs="$IFS"; IFS=','
  46641. + for arg in $args; do
  46642. + IFS="$save_ifs"
  46643. + func_quote_for_eval "$arg"
  46644. + lastarg="$lastarg $func_quote_for_eval_result"
  46645. done
  46646. IFS="$save_ifs"
  46647. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  46648. + func_stripname ' ' '' "$lastarg"
  46649. + lastarg=$func_stripname_result
  46650. # Add the arguments to base_compile.
  46651. base_compile="$base_compile $lastarg"
  46652. continue
  46653. ;;
  46654. - * )
  46655. + *)
  46656. # Accept the current argument as the source file.
  46657. # The previous "srcfile" becomes the current argument.
  46658. #
  46659. @@ -709,64 +1187,42 @@
  46660. esac # case $arg_mode
  46661. # Aesthetically quote the previous argument.
  46662. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  46663. -
  46664. - case $lastarg in
  46665. - # Double-quote args containing other shell metacharacters.
  46666. - # Many Bourne shells cannot handle close brackets correctly
  46667. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  46668. - # in scan sets (worked around with variable expansion),
  46669. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  46670. - # at all, so we specify them separately.
  46671. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46672. - lastarg="\"$lastarg\""
  46673. - ;;
  46674. - esac
  46675. -
  46676. - base_compile="$base_compile $lastarg"
  46677. + func_quote_for_eval "$lastarg"
  46678. + base_compile="$base_compile $func_quote_for_eval_result"
  46679. done # for arg
  46680. case $arg_mode in
  46681. arg)
  46682. - $echo "$modename: you must specify an argument for -Xcompile"
  46683. - exit $EXIT_FAILURE
  46684. + func_fatal_error "you must specify an argument for -Xcompile"
  46685. ;;
  46686. target)
  46687. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  46688. - exit $EXIT_FAILURE
  46689. + func_fatal_error "you must specify a target with \`-o'"
  46690. ;;
  46691. *)
  46692. # Get the name of the library object.
  46693. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  46694. + test -z "$libobj" && {
  46695. + func_basename "$srcfile"
  46696. + libobj="$func_basename_result"
  46697. + }
  46698. ;;
  46699. esac
  46700. # Recognize several different file suffixes.
  46701. # If the user specifies -o file.o, it is replaced with file.lo
  46702. - xform='[cCFSifmso]'
  46703. case $libobj in
  46704. - *.ada) xform=ada ;;
  46705. - *.adb) xform=adb ;;
  46706. - *.ads) xform=ads ;;
  46707. - *.asm) xform=asm ;;
  46708. - *.c++) xform=c++ ;;
  46709. - *.cc) xform=cc ;;
  46710. - *.ii) xform=ii ;;
  46711. - *.class) xform=class ;;
  46712. - *.cpp) xform=cpp ;;
  46713. - *.cxx) xform=cxx ;;
  46714. - *.f90) xform=f90 ;;
  46715. - *.for) xform=for ;;
  46716. - *.java) xform=java ;;
  46717. + *.[cCFSifmso] | \
  46718. + *.ada | *.adb | *.ads | *.asm | \
  46719. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  46720. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  46721. + func_xform "$libobj"
  46722. + libobj=$func_xform_result
  46723. + ;;
  46724. esac
  46725. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  46726. -
  46727. case $libobj in
  46728. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  46729. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  46730. *)
  46731. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  46732. - exit $EXIT_FAILURE
  46733. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  46734. ;;
  46735. esac
  46736. @@ -774,7 +1230,15 @@
  46737. for arg in $later; do
  46738. case $arg in
  46739. + -shared)
  46740. + test "$build_libtool_libs" != yes && \
  46741. + func_fatal_configuration "can not build a shared library"
  46742. + build_old_libs=no
  46743. + continue
  46744. + ;;
  46745. +
  46746. -static)
  46747. + build_libtool_libs=no
  46748. build_old_libs=yes
  46749. continue
  46750. ;;
  46751. @@ -791,28 +1255,17 @@
  46752. esac
  46753. done
  46754. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  46755. - case $qlibobj in
  46756. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46757. - qlibobj="\"$qlibobj\"" ;;
  46758. - esac
  46759. - test "X$libobj" != "X$qlibobj" \
  46760. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  46761. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  46762. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  46763. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  46764. - if test "X$xdir" = "X$obj"; then
  46765. - xdir=
  46766. - else
  46767. - xdir=$xdir/
  46768. - fi
  46769. + func_quote_for_eval "$libobj"
  46770. + test "X$libobj" != "X$func_quote_for_eval_result" \
  46771. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  46772. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  46773. + func_dirname_and_basename "$obj" "/" ""
  46774. + objname="$func_basename_result"
  46775. + xdir="$func_dirname_result"
  46776. lobj=${xdir}$objdir/$objname
  46777. - if test -z "$base_compile"; then
  46778. - $echo "$modename: you must specify a compilation command" 1>&2
  46779. - $echo "$help" 1>&2
  46780. - exit $EXIT_FAILURE
  46781. - fi
  46782. + test -z "$base_compile" && \
  46783. + func_fatal_help "you must specify a compilation command"
  46784. # Delete any leftover library objects.
  46785. if test "$build_old_libs" = yes; then
  46786. @@ -821,12 +1274,9 @@
  46787. removelist="$lobj $libobj ${libobj}T"
  46788. fi
  46789. - $run $rm $removelist
  46790. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  46791. -
  46792. # On Cygwin there's no "real" PIC flag so we must build both object types
  46793. case $host_os in
  46794. - cygwin* | mingw* | pw32* | os2*)
  46795. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  46796. pic_mode=default
  46797. ;;
  46798. esac
  46799. @@ -838,10 +1288,8 @@
  46800. # Calculate the filename of the output object if compiler does
  46801. # not support -o with -c
  46802. if test "$compiler_c_o" = no; then
  46803. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  46804. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  46805. lockfile="$output_obj.lock"
  46806. - removelist="$removelist $output_obj $lockfile"
  46807. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  46808. else
  46809. output_obj=
  46810. need_locks=no
  46811. @@ -851,13 +1299,13 @@
  46812. # Lock this critical section if it is needed
  46813. # We use this script file to make the link, it avoids creating a new file
  46814. if test "$need_locks" = yes; then
  46815. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  46816. - $show "Waiting for $lockfile to be removed"
  46817. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  46818. + func_echo "Waiting for $lockfile to be removed"
  46819. sleep 2
  46820. done
  46821. elif test "$need_locks" = warn; then
  46822. if test -f "$lockfile"; then
  46823. - $echo "\
  46824. + $ECHO "\
  46825. *** ERROR, $lockfile exists and contains:
  46826. `cat $lockfile 2>/dev/null`
  46827. @@ -868,34 +1316,22 @@
  46828. avoid parallel builds (make -j) in this platform, or get a better
  46829. compiler."
  46830. - $run $rm $removelist
  46831. + $opt_dry_run || $RM $removelist
  46832. exit $EXIT_FAILURE
  46833. fi
  46834. - $echo "$srcfile" > "$lockfile"
  46835. + removelist="$removelist $output_obj"
  46836. + $ECHO "$srcfile" > "$lockfile"
  46837. fi
  46838. + $opt_dry_run || $RM $removelist
  46839. + removelist="$removelist $lockfile"
  46840. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  46841. +
  46842. if test -n "$fix_srcfile_path"; then
  46843. eval srcfile=\"$fix_srcfile_path\"
  46844. fi
  46845. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  46846. - case $qsrcfile in
  46847. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46848. - qsrcfile="\"$qsrcfile\"" ;;
  46849. - esac
  46850. -
  46851. - $run $rm "$libobj" "${libobj}T"
  46852. -
  46853. - # Create a libtool object file (analogous to a ".la" file),
  46854. - # but don't create it if we're doing a dry run.
  46855. - test -z "$run" && cat > ${libobj}T <<EOF
  46856. -# $libobj - a libtool object file
  46857. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  46858. -#
  46859. -# Please DO NOT delete this file!
  46860. -# It is necessary for linking the library.
  46861. -
  46862. -# Name of the PIC object.
  46863. -EOF
  46864. + func_quote_for_eval "$srcfile"
  46865. + qsrcfile=$func_quote_for_eval_result
  46866. # Only build a PIC object if we are building libtool libraries.
  46867. if test "$build_libtool_libs" = yes; then
  46868. @@ -909,32 +1345,19 @@
  46869. command="$base_compile $qsrcfile"
  46870. fi
  46871. - if test ! -d "${xdir}$objdir"; then
  46872. - $show "$mkdir ${xdir}$objdir"
  46873. - $run $mkdir ${xdir}$objdir
  46874. - exit_status=$?
  46875. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  46876. - exit $exit_status
  46877. - fi
  46878. - fi
  46879. + func_mkdir_p "$xdir$objdir"
  46880. if test -z "$output_obj"; then
  46881. # Place PIC objects in $objdir
  46882. command="$command -o $lobj"
  46883. fi
  46884. - $run $rm "$lobj" "$output_obj"
  46885. -
  46886. - $show "$command"
  46887. - if $run eval "$command"; then :
  46888. - else
  46889. - test -n "$output_obj" && $run $rm $removelist
  46890. - exit $EXIT_FAILURE
  46891. - fi
  46892. + func_show_eval_locale "$command" \
  46893. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  46894. if test "$need_locks" = warn &&
  46895. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  46896. - $echo "\
  46897. + $ECHO "\
  46898. *** ERROR, $lockfile contains:
  46899. `cat $lockfile 2>/dev/null`
  46900. @@ -948,45 +1371,27 @@
  46901. avoid parallel builds (make -j) in this platform, or get a better
  46902. compiler."
  46903. - $run $rm $removelist
  46904. + $opt_dry_run || $RM $removelist
  46905. exit $EXIT_FAILURE
  46906. fi
  46907. # Just move the object if needed, then go on to compile the next one
  46908. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  46909. - $show "$mv $output_obj $lobj"
  46910. - if $run $mv $output_obj $lobj; then :
  46911. - else
  46912. - error=$?
  46913. - $run $rm $removelist
  46914. - exit $error
  46915. - fi
  46916. + func_show_eval '$MV "$output_obj" "$lobj"' \
  46917. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  46918. fi
  46919. - # Append the name of the PIC object to the libtool object file.
  46920. - test -z "$run" && cat >> ${libobj}T <<EOF
  46921. -pic_object='$objdir/$objname'
  46922. -
  46923. -EOF
  46924. -
  46925. # Allow error messages only from the first compilation.
  46926. if test "$suppress_opt" = yes; then
  46927. - suppress_output=' >/dev/null 2>&1'
  46928. + suppress_output=' >/dev/null 2>&1'
  46929. fi
  46930. - else
  46931. - # No PIC object so indicate it doesn't exist in the libtool
  46932. - # object file.
  46933. - test -z "$run" && cat >> ${libobj}T <<EOF
  46934. -pic_object=none
  46935. -
  46936. -EOF
  46937. fi
  46938. # Only build a position-dependent object if we build old libraries.
  46939. if test "$build_old_libs" = yes; then
  46940. if test "$pic_mode" != yes; then
  46941. # Don't build PIC code
  46942. - command="$base_compile $qsrcfile"
  46943. + command="$base_compile $qsrcfile$pie_flag"
  46944. else
  46945. command="$base_compile $qsrcfile $pic_flag"
  46946. fi
  46947. @@ -996,17 +1401,12 @@
  46948. # Suppress compiler output if we already did a PIC compilation.
  46949. command="$command$suppress_output"
  46950. - $run $rm "$obj" "$output_obj"
  46951. - $show "$command"
  46952. - if $run eval "$command"; then :
  46953. - else
  46954. - $run $rm $removelist
  46955. - exit $EXIT_FAILURE
  46956. - fi
  46957. + func_show_eval_locale "$command" \
  46958. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  46959. if test "$need_locks" = warn &&
  46960. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  46961. - $echo "\
  46962. + $ECHO "\
  46963. *** ERROR, $lockfile contains:
  46964. `cat $lockfile 2>/dev/null`
  46965. @@ -1020,5431 +1420,6784 @@
  46966. avoid parallel builds (make -j) in this platform, or get a better
  46967. compiler."
  46968. - $run $rm $removelist
  46969. + $opt_dry_run || $RM $removelist
  46970. exit $EXIT_FAILURE
  46971. fi
  46972. # Just move the object if needed
  46973. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  46974. - $show "$mv $output_obj $obj"
  46975. - if $run $mv $output_obj $obj; then :
  46976. - else
  46977. - error=$?
  46978. - $run $rm $removelist
  46979. - exit $error
  46980. - fi
  46981. + func_show_eval '$MV "$output_obj" "$obj"' \
  46982. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  46983. fi
  46984. -
  46985. - # Append the name of the non-PIC object the libtool object file.
  46986. - # Only append if the libtool object file exists.
  46987. - test -z "$run" && cat >> ${libobj}T <<EOF
  46988. -# Name of the non-PIC object.
  46989. -non_pic_object='$objname'
  46990. -
  46991. -EOF
  46992. - else
  46993. - # Append the name of the non-PIC object the libtool object file.
  46994. - # Only append if the libtool object file exists.
  46995. - test -z "$run" && cat >> ${libobj}T <<EOF
  46996. -# Name of the non-PIC object.
  46997. -non_pic_object=none
  46998. -
  46999. -EOF
  47000. fi
  47001. - $run $mv "${libobj}T" "${libobj}"
  47002. + $opt_dry_run || {
  47003. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  47004. - # Unlock the critical section if it was locked
  47005. - if test "$need_locks" != no; then
  47006. - $run $rm "$lockfile"
  47007. - fi
  47008. + # Unlock the critical section if it was locked
  47009. + if test "$need_locks" != no; then
  47010. + removelist=$lockfile
  47011. + $RM "$lockfile"
  47012. + fi
  47013. + }
  47014. exit $EXIT_SUCCESS
  47015. - ;;
  47016. -
  47017. - # libtool link mode
  47018. - link | relink)
  47019. - modename="$modename: link"
  47020. - case $host in
  47021. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47022. - # It is impossible to link a dll without this setting, and
  47023. - # we shouldn't force the makefile maintainer to figure out
  47024. - # which system we are compiling for in order to pass an extra
  47025. - # flag for every libtool invocation.
  47026. - # allow_undefined=no
  47027. +}
  47028. - # FIXME: Unfortunately, there are problems with the above when trying
  47029. - # to make a dll which has undefined symbols, in which case not
  47030. - # even a static library is built. For now, we need to specify
  47031. - # -no-undefined on the libtool link line when we can be certain
  47032. - # that all symbols are satisfied, otherwise we get a static library.
  47033. - allow_undefined=yes
  47034. - ;;
  47035. - *)
  47036. - allow_undefined=yes
  47037. - ;;
  47038. - esac
  47039. - libtool_args="$nonopt"
  47040. - base_compile="$nonopt $@"
  47041. - compile_command="$nonopt"
  47042. - finalize_command="$nonopt"
  47043. +$opt_help || {
  47044. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  47045. +}
  47046. - compile_rpath=
  47047. - finalize_rpath=
  47048. - compile_shlibpath=
  47049. - finalize_shlibpath=
  47050. - convenience=
  47051. - old_convenience=
  47052. - deplibs=
  47053. - old_deplibs=
  47054. - compiler_flags=
  47055. - linker_flags=
  47056. - dllsearchpath=
  47057. - lib_search_path=`pwd`
  47058. - inst_prefix_dir=
  47059. +func_mode_help ()
  47060. +{
  47061. + # We need to display help for each of the modes.
  47062. + case $mode in
  47063. + "")
  47064. + # Generic help is extracted from the usage comments
  47065. + # at the start of this file.
  47066. + func_help
  47067. + ;;
  47068. - avoid_version=no
  47069. - dlfiles=
  47070. - dlprefiles=
  47071. - dlself=no
  47072. - export_dynamic=no
  47073. - export_symbols=
  47074. - export_symbols_regex=
  47075. - generated=
  47076. - libobjs=
  47077. - ltlibs=
  47078. - module=no
  47079. - no_install=no
  47080. - objs=
  47081. - non_pic_objects=
  47082. - notinst_path= # paths that contain not-installed libtool libraries
  47083. - precious_files_regex=
  47084. - prefer_static_libs=no
  47085. - preload=no
  47086. - prev=
  47087. - prevarg=
  47088. - release=
  47089. - rpath=
  47090. - xrpath=
  47091. - perm_rpath=
  47092. - temp_rpath=
  47093. - thread_safe=no
  47094. - vinfo=
  47095. - vinfo_number=no
  47096. + clean)
  47097. + $ECHO \
  47098. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  47099. - func_infer_tag $base_compile
  47100. +Remove files from the build directory.
  47101. - # We need to know -static, to get the right output filenames.
  47102. - for arg
  47103. - do
  47104. - case $arg in
  47105. - -all-static | -static)
  47106. - if test "X$arg" = "X-all-static"; then
  47107. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  47108. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  47109. - fi
  47110. - if test -n "$link_static_flag"; then
  47111. - dlopen_self=$dlopen_self_static
  47112. - fi
  47113. - prefer_static_libs=yes
  47114. - else
  47115. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  47116. - dlopen_self=$dlopen_self_static
  47117. - fi
  47118. - prefer_static_libs=built
  47119. - fi
  47120. - build_libtool_libs=no
  47121. - build_old_libs=yes
  47122. - break
  47123. - ;;
  47124. - esac
  47125. - done
  47126. +RM is the name of the program to use to delete files associated with each FILE
  47127. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  47128. +to RM.
  47129. - # See if our shared archives depend on static archives.
  47130. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  47131. +If FILE is a libtool library, object or program, all the files associated
  47132. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  47133. + ;;
  47134. - # Go through the arguments, transforming them on the way.
  47135. - while test "$#" -gt 0; do
  47136. - arg="$1"
  47137. - shift
  47138. - case $arg in
  47139. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47140. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  47141. - ;;
  47142. - *) qarg=$arg ;;
  47143. - esac
  47144. - libtool_args="$libtool_args $qarg"
  47145. + compile)
  47146. + $ECHO \
  47147. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  47148. - # If the previous option needs an argument, assign it.
  47149. - if test -n "$prev"; then
  47150. - case $prev in
  47151. - output)
  47152. - compile_command="$compile_command @OUTPUT@"
  47153. - finalize_command="$finalize_command @OUTPUT@"
  47154. - ;;
  47155. - esac
  47156. +Compile a source file into a libtool library object.
  47157. - case $prev in
  47158. - dlfiles|dlprefiles)
  47159. - if test "$preload" = no; then
  47160. - # Add the symbol object into the linking commands.
  47161. - compile_command="$compile_command @SYMFILE@"
  47162. - finalize_command="$finalize_command @SYMFILE@"
  47163. - preload=yes
  47164. - fi
  47165. - case $arg in
  47166. - *.la | *.lo) ;; # We handle these cases below.
  47167. - force)
  47168. - if test "$dlself" = no; then
  47169. - dlself=needless
  47170. - export_dynamic=yes
  47171. - fi
  47172. - prev=
  47173. - continue
  47174. - ;;
  47175. - self)
  47176. - if test "$prev" = dlprefiles; then
  47177. - dlself=yes
  47178. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  47179. - dlself=yes
  47180. - else
  47181. - dlself=needless
  47182. - export_dynamic=yes
  47183. - fi
  47184. - prev=
  47185. - continue
  47186. - ;;
  47187. - *)
  47188. - if test "$prev" = dlfiles; then
  47189. - dlfiles="$dlfiles $arg"
  47190. - else
  47191. - dlprefiles="$dlprefiles $arg"
  47192. - fi
  47193. - prev=
  47194. - continue
  47195. - ;;
  47196. - esac
  47197. - ;;
  47198. - expsyms)
  47199. - export_symbols="$arg"
  47200. - if test ! -f "$arg"; then
  47201. - $echo "$modename: symbol file \`$arg' does not exist"
  47202. - exit $EXIT_FAILURE
  47203. - fi
  47204. - prev=
  47205. - continue
  47206. - ;;
  47207. - expsyms_regex)
  47208. - export_symbols_regex="$arg"
  47209. - prev=
  47210. - continue
  47211. - ;;
  47212. - inst_prefix)
  47213. - inst_prefix_dir="$arg"
  47214. - prev=
  47215. - continue
  47216. - ;;
  47217. - precious_regex)
  47218. - precious_files_regex="$arg"
  47219. - prev=
  47220. - continue
  47221. - ;;
  47222. - release)
  47223. - release="-$arg"
  47224. - prev=
  47225. - continue
  47226. - ;;
  47227. - objectlist)
  47228. - if test -f "$arg"; then
  47229. - save_arg=$arg
  47230. - moreargs=
  47231. - for fil in `cat $save_arg`
  47232. - do
  47233. -# moreargs="$moreargs $fil"
  47234. - arg=$fil
  47235. - # A libtool-controlled object.
  47236. +This mode accepts the following additional options:
  47237. - # Check to see that this really is a libtool object.
  47238. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  47239. - pic_object=
  47240. - non_pic_object=
  47241. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  47242. + -no-suppress do not suppress compiler output for multiple passes
  47243. + -prefer-pic try to building PIC objects only
  47244. + -prefer-non-pic try to building non-PIC objects only
  47245. + -shared do not build a \`.o' file suitable for static linking
  47246. + -static only build a \`.o' file suitable for static linking
  47247. - # Read the .lo file
  47248. - # If there is no directory component, then add one.
  47249. - case $arg in
  47250. - */* | *\\*) . $arg ;;
  47251. - *) . ./$arg ;;
  47252. - esac
  47253. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  47254. +from the given SOURCEFILE.
  47255. - if test -z "$pic_object" || \
  47256. - test -z "$non_pic_object" ||
  47257. - test "$pic_object" = none && \
  47258. - test "$non_pic_object" = none; then
  47259. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  47260. - exit $EXIT_FAILURE
  47261. - fi
  47262. +The output file name is determined by removing the directory component from
  47263. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  47264. +library object suffix, \`.lo'."
  47265. + ;;
  47266. - # Extract subdirectory from the argument.
  47267. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47268. - if test "X$xdir" = "X$arg"; then
  47269. - xdir=
  47270. - else
  47271. - xdir="$xdir/"
  47272. - fi
  47273. + execute)
  47274. + $ECHO \
  47275. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  47276. - if test "$pic_object" != none; then
  47277. - # Prepend the subdirectory the object is found in.
  47278. - pic_object="$xdir$pic_object"
  47279. +Automatically set library path, then run a program.
  47280. - if test "$prev" = dlfiles; then
  47281. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47282. - dlfiles="$dlfiles $pic_object"
  47283. - prev=
  47284. - continue
  47285. - else
  47286. - # If libtool objects are unsupported, then we need to preload.
  47287. - prev=dlprefiles
  47288. - fi
  47289. - fi
  47290. +This mode accepts the following additional options:
  47291. - # CHECK ME: I think I busted this. -Ossama
  47292. - if test "$prev" = dlprefiles; then
  47293. - # Preload the old-style object.
  47294. - dlprefiles="$dlprefiles $pic_object"
  47295. - prev=
  47296. - fi
  47297. + -dlopen FILE add the directory containing FILE to the library path
  47298. - # A PIC object.
  47299. - libobjs="$libobjs $pic_object"
  47300. - arg="$pic_object"
  47301. - fi
  47302. +This mode sets the library path environment variable according to \`-dlopen'
  47303. +flags.
  47304. - # Non-PIC object.
  47305. - if test "$non_pic_object" != none; then
  47306. - # Prepend the subdirectory the object is found in.
  47307. - non_pic_object="$xdir$non_pic_object"
  47308. +If any of the ARGS are libtool executable wrappers, then they are translated
  47309. +into their corresponding uninstalled binary, and any of their required library
  47310. +directories are added to the library path.
  47311. - # A standard non-PIC object
  47312. - non_pic_objects="$non_pic_objects $non_pic_object"
  47313. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47314. - arg="$non_pic_object"
  47315. - fi
  47316. - else
  47317. - # If the PIC object exists, use it instead.
  47318. - # $xdir was prepended to $pic_object above.
  47319. - non_pic_object="$pic_object"
  47320. - non_pic_objects="$non_pic_objects $non_pic_object"
  47321. - fi
  47322. - else
  47323. - # Only an error if not doing a dry-run.
  47324. - if test -z "$run"; then
  47325. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  47326. - exit $EXIT_FAILURE
  47327. - else
  47328. - # Dry-run case.
  47329. +Then, COMMAND is executed, with ARGS as arguments."
  47330. + ;;
  47331. - # Extract subdirectory from the argument.
  47332. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47333. - if test "X$xdir" = "X$arg"; then
  47334. - xdir=
  47335. - else
  47336. - xdir="$xdir/"
  47337. - fi
  47338. + finish)
  47339. + $ECHO \
  47340. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  47341. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47342. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47343. - libobjs="$libobjs $pic_object"
  47344. - non_pic_objects="$non_pic_objects $non_pic_object"
  47345. - fi
  47346. - fi
  47347. - done
  47348. - else
  47349. - $echo "$modename: link input file \`$save_arg' does not exist"
  47350. - exit $EXIT_FAILURE
  47351. - fi
  47352. - arg=$save_arg
  47353. - prev=
  47354. - continue
  47355. - ;;
  47356. - rpath | xrpath)
  47357. - # We need an absolute path.
  47358. - case $arg in
  47359. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47360. - *)
  47361. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  47362. - exit $EXIT_FAILURE
  47363. - ;;
  47364. - esac
  47365. - if test "$prev" = rpath; then
  47366. - case "$rpath " in
  47367. - *" $arg "*) ;;
  47368. - *) rpath="$rpath $arg" ;;
  47369. - esac
  47370. - else
  47371. - case "$xrpath " in
  47372. - *" $arg "*) ;;
  47373. - *) xrpath="$xrpath $arg" ;;
  47374. - esac
  47375. - fi
  47376. - prev=
  47377. - continue
  47378. - ;;
  47379. - xcompiler)
  47380. - compiler_flags="$compiler_flags $qarg"
  47381. - prev=
  47382. - compile_command="$compile_command $qarg"
  47383. - finalize_command="$finalize_command $qarg"
  47384. - continue
  47385. - ;;
  47386. - xlinker)
  47387. - linker_flags="$linker_flags $qarg"
  47388. - compiler_flags="$compiler_flags $wl$qarg"
  47389. - prev=
  47390. - compile_command="$compile_command $wl$qarg"
  47391. - finalize_command="$finalize_command $wl$qarg"
  47392. - continue
  47393. - ;;
  47394. - xcclinker)
  47395. - linker_flags="$linker_flags $qarg"
  47396. - compiler_flags="$compiler_flags $qarg"
  47397. - prev=
  47398. - compile_command="$compile_command $qarg"
  47399. - finalize_command="$finalize_command $qarg"
  47400. - continue
  47401. - ;;
  47402. - shrext)
  47403. - shrext_cmds="$arg"
  47404. - prev=
  47405. - continue
  47406. - ;;
  47407. - darwin_framework|darwin_framework_skip)
  47408. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  47409. - compile_command="$compile_command $arg"
  47410. - finalize_command="$finalize_command $arg"
  47411. - prev=
  47412. - continue
  47413. - ;;
  47414. - *)
  47415. - eval "$prev=\"\$arg\""
  47416. - prev=
  47417. - continue
  47418. - ;;
  47419. - esac
  47420. - fi # test -n "$prev"
  47421. +Complete the installation of libtool libraries.
  47422. - prevarg="$arg"
  47423. +Each LIBDIR is a directory that contains libtool libraries.
  47424. - case $arg in
  47425. - -all-static)
  47426. - if test -n "$link_static_flag"; then
  47427. - compile_command="$compile_command $link_static_flag"
  47428. - finalize_command="$finalize_command $link_static_flag"
  47429. - fi
  47430. - continue
  47431. - ;;
  47432. +The commands that this mode executes may require superuser privileges. Use
  47433. +the \`--dry-run' option if you just want to see what would be executed."
  47434. + ;;
  47435. - -allow-undefined)
  47436. - # FIXME: remove this flag sometime in the future.
  47437. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  47438. - continue
  47439. - ;;
  47440. + install)
  47441. + $ECHO \
  47442. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  47443. - -avoid-version)
  47444. - avoid_version=yes
  47445. - continue
  47446. - ;;
  47447. +Install executables or libraries.
  47448. - -dlopen)
  47449. - prev=dlfiles
  47450. - continue
  47451. - ;;
  47452. +INSTALL-COMMAND is the installation command. The first component should be
  47453. +either the \`install' or \`cp' program.
  47454. - -dlpreopen)
  47455. - prev=dlprefiles
  47456. - continue
  47457. - ;;
  47458. +The following components of INSTALL-COMMAND are treated specially:
  47459. - -export-dynamic)
  47460. - export_dynamic=yes
  47461. - continue
  47462. - ;;
  47463. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  47464. - -export-symbols | -export-symbols-regex)
  47465. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  47466. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  47467. - exit $EXIT_FAILURE
  47468. - fi
  47469. - if test "X$arg" = "X-export-symbols"; then
  47470. - prev=expsyms
  47471. - else
  47472. - prev=expsyms_regex
  47473. - fi
  47474. - continue
  47475. - ;;
  47476. +The rest of the components are interpreted as arguments to that command (only
  47477. +BSD-compatible install options are recognized)."
  47478. + ;;
  47479. - -framework|-arch|-isysroot)
  47480. - case " $CC " in
  47481. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  47482. - prev=darwin_framework_skip ;;
  47483. - *) compiler_flags="$compiler_flags $arg"
  47484. - prev=darwin_framework ;;
  47485. - esac
  47486. - compile_command="$compile_command $arg"
  47487. - finalize_command="$finalize_command $arg"
  47488. - continue
  47489. - ;;
  47490. + link)
  47491. + $ECHO \
  47492. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  47493. - -inst-prefix-dir)
  47494. - prev=inst_prefix
  47495. - continue
  47496. - ;;
  47497. +Link object files or libraries together to form another library, or to
  47498. +create an executable program.
  47499. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  47500. - # so, if we see these flags be careful not to treat them like -L
  47501. - -L[A-Z][A-Z]*:*)
  47502. - case $with_gcc/$host in
  47503. - no/*-*-irix* | /*-*-irix*)
  47504. - compile_command="$compile_command $arg"
  47505. - finalize_command="$finalize_command $arg"
  47506. - ;;
  47507. - esac
  47508. - continue
  47509. - ;;
  47510. +LINK-COMMAND is a command using the C compiler that you would use to create
  47511. +a program from several object files.
  47512. - -L*)
  47513. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  47514. - # We need an absolute path.
  47515. - case $dir in
  47516. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47517. - *)
  47518. - absdir=`cd "$dir" && pwd`
  47519. - if test -z "$absdir"; then
  47520. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  47521. - absdir="$dir"
  47522. - notinst_path="$notinst_path $dir"
  47523. - fi
  47524. - dir="$absdir"
  47525. - ;;
  47526. - esac
  47527. - case "$deplibs " in
  47528. - *" -L$dir "*) ;;
  47529. - *)
  47530. - deplibs="$deplibs -L$dir"
  47531. - lib_search_path="$lib_search_path $dir"
  47532. - ;;
  47533. - esac
  47534. - case $host in
  47535. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47536. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  47537. - case :$dllsearchpath: in
  47538. - *":$dir:"*) ;;
  47539. - *) dllsearchpath="$dllsearchpath:$dir";;
  47540. - esac
  47541. - case :$dllsearchpath: in
  47542. - *":$testbindir:"*) ;;
  47543. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  47544. - esac
  47545. - ;;
  47546. - esac
  47547. - continue
  47548. - ;;
  47549. +The following components of LINK-COMMAND are treated specially:
  47550. - -l*)
  47551. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  47552. - case $host in
  47553. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  47554. - # These systems don't actually have a C or math library (as such)
  47555. - continue
  47556. - ;;
  47557. - *-*-os2*)
  47558. - # These systems don't actually have a C library (as such)
  47559. - test "X$arg" = "X-lc" && continue
  47560. - ;;
  47561. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47562. - # Do not include libc due to us having libc/libc_r.
  47563. - test "X$arg" = "X-lc" && continue
  47564. - ;;
  47565. - *-*-rhapsody* | *-*-darwin1.[012])
  47566. - # Rhapsody C and math libraries are in the System framework
  47567. - deplibs="$deplibs -framework System"
  47568. - continue
  47569. - ;;
  47570. - *-*-sco3.2v5* | *-*-sco5v6*)
  47571. - # Causes problems with __ctype
  47572. - test "X$arg" = "X-lc" && continue
  47573. - ;;
  47574. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47575. - # Compiler inserts libc in the correct place for threads to work
  47576. - test "X$arg" = "X-lc" && continue
  47577. - ;;
  47578. - esac
  47579. - elif test "X$arg" = "X-lc_r"; then
  47580. - case $host in
  47581. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47582. - # Do not include libc_r directly, use -pthread flag.
  47583. - continue
  47584. - ;;
  47585. - esac
  47586. - fi
  47587. - deplibs="$deplibs $arg"
  47588. - continue
  47589. - ;;
  47590. + -all-static do not do any dynamic linking at all
  47591. + -avoid-version do not add a version suffix if possible
  47592. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  47593. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  47594. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  47595. + -export-symbols SYMFILE
  47596. + try to export only the symbols listed in SYMFILE
  47597. + -export-symbols-regex REGEX
  47598. + try to export only the symbols matching REGEX
  47599. + -LLIBDIR search LIBDIR for required installed libraries
  47600. + -lNAME OUTPUT-FILE requires the installed library libNAME
  47601. + -module build a library that can dlopened
  47602. + -no-fast-install disable the fast-install mode
  47603. + -no-install link a not-installable executable
  47604. + -no-undefined declare that a library does not refer to external symbols
  47605. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  47606. + -objectlist FILE Use a list of object files found in FILE to specify objects
  47607. + -precious-files-regex REGEX
  47608. + don't remove output files matching REGEX
  47609. + -release RELEASE specify package release information
  47610. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  47611. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  47612. + -shared only do dynamic linking of libtool libraries
  47613. + -shrext SUFFIX override the standard shared library file extension
  47614. + -static do not do any dynamic linking of uninstalled libtool libraries
  47615. + -static-libtool-libs
  47616. + do not do any dynamic linking of libtool libraries
  47617. + -version-info CURRENT[:REVISION[:AGE]]
  47618. + specify library version info [each variable defaults to 0]
  47619. + -weak LIBNAME declare that the target provides the LIBNAME interface
  47620. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  47621. - # classes, name mangling, and exception handling.
  47622. - -model)
  47623. - compile_command="$compile_command $arg"
  47624. - compiler_flags="$compiler_flags $arg"
  47625. - finalize_command="$finalize_command $arg"
  47626. - prev=xcompiler
  47627. - continue
  47628. - ;;
  47629. +All other options (arguments beginning with \`-') are ignored.
  47630. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  47631. - compiler_flags="$compiler_flags $arg"
  47632. - compile_command="$compile_command $arg"
  47633. - finalize_command="$finalize_command $arg"
  47634. - continue
  47635. - ;;
  47636. +Every other argument is treated as a filename. Files ending in \`.la' are
  47637. +treated as uninstalled libtool libraries, other files are standard or library
  47638. +object files.
  47639. - -module)
  47640. - module=yes
  47641. - continue
  47642. - ;;
  47643. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  47644. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  47645. +required, except when creating a convenience library.
  47646. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  47647. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  47648. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  47649. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  47650. - # -q* pass through compiler args for the IBM compiler
  47651. - # -m* pass through architecture-specific compiler args for GCC
  47652. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  47653. - # compiler args for GCC
  47654. - # -pg pass through profiling flag for GCC
  47655. - # @file GCC response files
  47656. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  47657. - -t[45]*|-txscale*|@*)
  47658. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  47659. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  47660. - # Unknown arguments in both finalize_command and compile_command need
  47661. - # to be aesthetically quoted because they are evaled later.
  47662. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  47663. - case $arg in
  47664. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47665. - arg="\"$arg\""
  47666. - ;;
  47667. - esac
  47668. - compile_command="$compile_command $arg"
  47669. - finalize_command="$finalize_command $arg"
  47670. - compiler_flags="$compiler_flags $arg"
  47671. - continue
  47672. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  47673. +is created, otherwise an executable program is created."
  47674. ;;
  47675. - -shrext)
  47676. - prev=shrext
  47677. - continue
  47678. - ;;
  47679. + uninstall)
  47680. + $ECHO \
  47681. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  47682. - -no-fast-install)
  47683. - fast_install=no
  47684. - continue
  47685. - ;;
  47686. +Remove libraries from an installation directory.
  47687. - -no-install)
  47688. - case $host in
  47689. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47690. - # The PATH hackery in wrapper scripts is required on Windows
  47691. - # in order for the loader to find any dlls it needs.
  47692. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  47693. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  47694. - fast_install=no
  47695. - ;;
  47696. - *) no_install=yes ;;
  47697. - esac
  47698. - continue
  47699. - ;;
  47700. +RM is the name of the program to use to delete files associated with each FILE
  47701. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  47702. +to RM.
  47703. - -no-undefined)
  47704. - allow_undefined=no
  47705. - continue
  47706. - ;;
  47707. +If FILE is a libtool library, all the files associated with it are deleted.
  47708. +Otherwise, only FILE itself is deleted using RM."
  47709. + ;;
  47710. - -objectlist)
  47711. - prev=objectlist
  47712. - continue
  47713. - ;;
  47714. + *)
  47715. + func_fatal_help "invalid operation mode \`$mode'"
  47716. + ;;
  47717. + esac
  47718. - -o) prev=output ;;
  47719. + $ECHO
  47720. + $ECHO "Try \`$progname --help' for more information about other modes."
  47721. - -precious-files-regex)
  47722. - prev=precious_regex
  47723. - continue
  47724. - ;;
  47725. + exit $?
  47726. +}
  47727. - -release)
  47728. - prev=release
  47729. - continue
  47730. - ;;
  47731. + # Now that we've collected a possible --mode arg, show help if necessary
  47732. + $opt_help && func_mode_help
  47733. - -rpath)
  47734. - prev=rpath
  47735. - continue
  47736. - ;;
  47737. - -R)
  47738. - prev=xrpath
  47739. - continue
  47740. - ;;
  47741. +# func_mode_execute arg...
  47742. +func_mode_execute ()
  47743. +{
  47744. + $opt_debug
  47745. + # The first argument is the command name.
  47746. + cmd="$nonopt"
  47747. + test -z "$cmd" && \
  47748. + func_fatal_help "you must specify a COMMAND"
  47749. - -R*)
  47750. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  47751. - # We need an absolute path.
  47752. - case $dir in
  47753. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47754. - *)
  47755. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  47756. - exit $EXIT_FAILURE
  47757. - ;;
  47758. - esac
  47759. - case "$xrpath " in
  47760. - *" $dir "*) ;;
  47761. - *) xrpath="$xrpath $dir" ;;
  47762. - esac
  47763. - continue
  47764. - ;;
  47765. -
  47766. - -static)
  47767. - # The effects of -static are defined in a previous loop.
  47768. - # We used to do the same as -all-static on platforms that
  47769. - # didn't have a PIC flag, but the assumption that the effects
  47770. - # would be equivalent was wrong. It would break on at least
  47771. - # Digital Unix and AIX.
  47772. - continue
  47773. - ;;
  47774. + # Handle -dlopen flags immediately.
  47775. + for file in $execute_dlfiles; do
  47776. + test -f "$file" \
  47777. + || func_fatal_help "\`$file' is not a file"
  47778. - -thread-safe)
  47779. - thread_safe=yes
  47780. - continue
  47781. - ;;
  47782. + dir=
  47783. + case $file in
  47784. + *.la)
  47785. + # Check to see that this really is a libtool archive.
  47786. + func_lalib_unsafe_p "$file" \
  47787. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  47788. - -version-info)
  47789. - prev=vinfo
  47790. - continue
  47791. - ;;
  47792. - -version-number)
  47793. - prev=vinfo
  47794. - vinfo_number=yes
  47795. - continue
  47796. - ;;
  47797. + # Read the libtool library.
  47798. + dlname=
  47799. + library_names=
  47800. + func_source "$file"
  47801. - -Wc,*)
  47802. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  47803. - arg=
  47804. - save_ifs="$IFS"; IFS=','
  47805. - for flag in $args; do
  47806. - IFS="$save_ifs"
  47807. - case $flag in
  47808. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47809. - flag="\"$flag\""
  47810. - ;;
  47811. - esac
  47812. - arg="$arg $wl$flag"
  47813. - compiler_flags="$compiler_flags $flag"
  47814. - done
  47815. - IFS="$save_ifs"
  47816. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  47817. - ;;
  47818. + # Skip this library if it cannot be dlopened.
  47819. + if test -z "$dlname"; then
  47820. + # Warn if it was a shared library.
  47821. + test -n "$library_names" && \
  47822. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  47823. + continue
  47824. + fi
  47825. - -Wl,*)
  47826. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  47827. - arg=
  47828. - save_ifs="$IFS"; IFS=','
  47829. - for flag in $args; do
  47830. - IFS="$save_ifs"
  47831. - case $flag in
  47832. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47833. - flag="\"$flag\""
  47834. - ;;
  47835. - esac
  47836. - arg="$arg $wl$flag"
  47837. - compiler_flags="$compiler_flags $wl$flag"
  47838. - linker_flags="$linker_flags $flag"
  47839. - done
  47840. - IFS="$save_ifs"
  47841. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  47842. - ;;
  47843. + func_dirname "$file" "" "."
  47844. + dir="$func_dirname_result"
  47845. - -Xcompiler)
  47846. - prev=xcompiler
  47847. - continue
  47848. + if test -f "$dir/$objdir/$dlname"; then
  47849. + dir="$dir/$objdir"
  47850. + else
  47851. + if test ! -f "$dir/$dlname"; then
  47852. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  47853. + fi
  47854. + fi
  47855. ;;
  47856. - -Xlinker)
  47857. - prev=xlinker
  47858. - continue
  47859. + *.lo)
  47860. + # Just add the directory containing the .lo file.
  47861. + func_dirname "$file" "" "."
  47862. + dir="$func_dirname_result"
  47863. ;;
  47864. - -XCClinker)
  47865. - prev=xcclinker
  47866. + *)
  47867. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  47868. continue
  47869. ;;
  47870. + esac
  47871. - # Some other compiler flag.
  47872. - -* | +*)
  47873. - # Unknown arguments in both finalize_command and compile_command need
  47874. - # to be aesthetically quoted because they are evaled later.
  47875. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  47876. - case $arg in
  47877. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47878. - arg="\"$arg\""
  47879. - ;;
  47880. - esac
  47881. - ;;
  47882. + # Get the absolute pathname.
  47883. + absdir=`cd "$dir" && pwd`
  47884. + test -n "$absdir" && dir="$absdir"
  47885. - *.$objext)
  47886. - # A standard object.
  47887. - objs="$objs $arg"
  47888. - ;;
  47889. + # Now add the directory to shlibpath_var.
  47890. + if eval "test -z \"\$$shlibpath_var\""; then
  47891. + eval "$shlibpath_var=\"\$dir\""
  47892. + else
  47893. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  47894. + fi
  47895. + done
  47896. - *.lo)
  47897. - # A libtool-controlled object.
  47898. + # This variable tells wrapper scripts just to set shlibpath_var
  47899. + # rather than running their programs.
  47900. + libtool_execute_magic="$magic"
  47901. - # Check to see that this really is a libtool object.
  47902. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  47903. - pic_object=
  47904. - non_pic_object=
  47905. + # Check if any of the arguments is a wrapper script.
  47906. + args=
  47907. + for file
  47908. + do
  47909. + case $file in
  47910. + -*) ;;
  47911. + *)
  47912. + # Do a test to see if this is really a libtool program.
  47913. + if func_ltwrapper_script_p "$file"; then
  47914. + func_source "$file"
  47915. + # Transform arg to wrapped name.
  47916. + file="$progdir/$program"
  47917. + elif func_ltwrapper_executable_p "$file"; then
  47918. + func_ltwrapper_scriptname "$file"
  47919. + func_source "$func_ltwrapper_scriptname_result"
  47920. + # Transform arg to wrapped name.
  47921. + file="$progdir/$program"
  47922. + fi
  47923. + ;;
  47924. + esac
  47925. + # Quote arguments (to preserve shell metacharacters).
  47926. + func_quote_for_eval "$file"
  47927. + args="$args $func_quote_for_eval_result"
  47928. + done
  47929. - # Read the .lo file
  47930. - # If there is no directory component, then add one.
  47931. - case $arg in
  47932. - */* | *\\*) . $arg ;;
  47933. - *) . ./$arg ;;
  47934. - esac
  47935. + if test "X$opt_dry_run" = Xfalse; then
  47936. + if test -n "$shlibpath_var"; then
  47937. + # Export the shlibpath_var.
  47938. + eval "export $shlibpath_var"
  47939. + fi
  47940. - if test -z "$pic_object" || \
  47941. - test -z "$non_pic_object" ||
  47942. - test "$pic_object" = none && \
  47943. - test "$non_pic_object" = none; then
  47944. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  47945. - exit $EXIT_FAILURE
  47946. - fi
  47947. + # Restore saved environment variables
  47948. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47949. + do
  47950. + eval "if test \"\${save_$lt_var+set}\" = set; then
  47951. + $lt_var=\$save_$lt_var; export $lt_var
  47952. + else
  47953. + $lt_unset $lt_var
  47954. + fi"
  47955. + done
  47956. - # Extract subdirectory from the argument.
  47957. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47958. - if test "X$xdir" = "X$arg"; then
  47959. - xdir=
  47960. - else
  47961. - xdir="$xdir/"
  47962. - fi
  47963. + # Now prepare to actually exec the command.
  47964. + exec_cmd="\$cmd$args"
  47965. + else
  47966. + # Display what would be done.
  47967. + if test -n "$shlibpath_var"; then
  47968. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  47969. + $ECHO "export $shlibpath_var"
  47970. + fi
  47971. + $ECHO "$cmd$args"
  47972. + exit $EXIT_SUCCESS
  47973. + fi
  47974. +}
  47975. - if test "$pic_object" != none; then
  47976. - # Prepend the subdirectory the object is found in.
  47977. - pic_object="$xdir$pic_object"
  47978. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  47979. - if test "$prev" = dlfiles; then
  47980. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47981. - dlfiles="$dlfiles $pic_object"
  47982. - prev=
  47983. - continue
  47984. - else
  47985. - # If libtool objects are unsupported, then we need to preload.
  47986. - prev=dlprefiles
  47987. - fi
  47988. - fi
  47989. - # CHECK ME: I think I busted this. -Ossama
  47990. - if test "$prev" = dlprefiles; then
  47991. - # Preload the old-style object.
  47992. - dlprefiles="$dlprefiles $pic_object"
  47993. - prev=
  47994. - fi
  47995. +# func_mode_finish arg...
  47996. +func_mode_finish ()
  47997. +{
  47998. + $opt_debug
  47999. + libdirs="$nonopt"
  48000. + admincmds=
  48001. - # A PIC object.
  48002. - libobjs="$libobjs $pic_object"
  48003. - arg="$pic_object"
  48004. - fi
  48005. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  48006. + for dir
  48007. + do
  48008. + libdirs="$libdirs $dir"
  48009. + done
  48010. - # Non-PIC object.
  48011. - if test "$non_pic_object" != none; then
  48012. - # Prepend the subdirectory the object is found in.
  48013. - non_pic_object="$xdir$non_pic_object"
  48014. + for libdir in $libdirs; do
  48015. + if test -n "$finish_cmds"; then
  48016. + # Do each command in the finish commands.
  48017. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  48018. +'"$cmd"'"'
  48019. + fi
  48020. + if test -n "$finish_eval"; then
  48021. + # Do the single finish_eval.
  48022. + eval cmds=\"$finish_eval\"
  48023. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  48024. + $cmds"
  48025. + fi
  48026. + done
  48027. + fi
  48028. - # A standard non-PIC object
  48029. - non_pic_objects="$non_pic_objects $non_pic_object"
  48030. - if test -z "$pic_object" || test "$pic_object" = none ; then
  48031. - arg="$non_pic_object"
  48032. - fi
  48033. - else
  48034. - # If the PIC object exists, use it instead.
  48035. - # $xdir was prepended to $pic_object above.
  48036. - non_pic_object="$pic_object"
  48037. - non_pic_objects="$non_pic_objects $non_pic_object"
  48038. - fi
  48039. - else
  48040. - # Only an error if not doing a dry-run.
  48041. - if test -z "$run"; then
  48042. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  48043. - exit $EXIT_FAILURE
  48044. - else
  48045. - # Dry-run case.
  48046. + # Exit here if they wanted silent mode.
  48047. + $opt_silent && exit $EXIT_SUCCESS
  48048. - # Extract subdirectory from the argument.
  48049. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48050. - if test "X$xdir" = "X$arg"; then
  48051. - xdir=
  48052. - else
  48053. - xdir="$xdir/"
  48054. - fi
  48055. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48056. + $ECHO "Libraries have been installed in:"
  48057. + for libdir in $libdirs; do
  48058. + $ECHO " $libdir"
  48059. + done
  48060. + $ECHO
  48061. + $ECHO "If you ever happen to want to link against installed libraries"
  48062. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  48063. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  48064. + $ECHO "flag during linking and do at least one of the following:"
  48065. + if test -n "$shlibpath_var"; then
  48066. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48067. + $ECHO " during execution"
  48068. + fi
  48069. + if test -n "$runpath_var"; then
  48070. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  48071. + $ECHO " during linking"
  48072. + fi
  48073. + if test -n "$hardcode_libdir_flag_spec"; then
  48074. + libdir=LIBDIR
  48075. + eval flag=\"$hardcode_libdir_flag_spec\"
  48076. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  48077. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  48078. - libobjs="$libobjs $pic_object"
  48079. - non_pic_objects="$non_pic_objects $non_pic_object"
  48080. - fi
  48081. - fi
  48082. - ;;
  48083. + $ECHO " - use the \`$flag' linker flag"
  48084. + fi
  48085. + if test -n "$admincmds"; then
  48086. + $ECHO " - have your system administrator run these commands:$admincmds"
  48087. + fi
  48088. + if test -f /etc/ld.so.conf; then
  48089. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  48090. + fi
  48091. + $ECHO
  48092. - *.$libext)
  48093. - # An archive.
  48094. - deplibs="$deplibs $arg"
  48095. - old_deplibs="$old_deplibs $arg"
  48096. - continue
  48097. + $ECHO "See any operating system documentation about shared libraries for"
  48098. + case $host in
  48099. + solaris2.[6789]|solaris2.1[0-9])
  48100. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  48101. + $ECHO "pages."
  48102. ;;
  48103. + *)
  48104. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  48105. + ;;
  48106. + esac
  48107. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48108. + exit $EXIT_SUCCESS
  48109. +}
  48110. - *.la)
  48111. - # A libtool-controlled library.
  48112. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  48113. - if test "$prev" = dlfiles; then
  48114. - # This library was specified with -dlopen.
  48115. - dlfiles="$dlfiles $arg"
  48116. - prev=
  48117. - elif test "$prev" = dlprefiles; then
  48118. - # The library was specified with -dlpreopen.
  48119. - dlprefiles="$dlprefiles $arg"
  48120. - prev=
  48121. - else
  48122. - deplibs="$deplibs $arg"
  48123. - fi
  48124. - continue
  48125. - ;;
  48126. - # Some other compiler argument.
  48127. - *)
  48128. - # Unknown arguments in both finalize_command and compile_command need
  48129. - # to be aesthetically quoted because they are evaled later.
  48130. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48131. - case $arg in
  48132. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48133. - arg="\"$arg\""
  48134. - ;;
  48135. - esac
  48136. - ;;
  48137. - esac # arg
  48138. +# func_mode_install arg...
  48139. +func_mode_install ()
  48140. +{
  48141. + $opt_debug
  48142. + # There may be an optional sh(1) argument at the beginning of
  48143. + # install_prog (especially on Windows NT).
  48144. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  48145. + # Allow the use of GNU shtool's install command.
  48146. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  48147. + # Aesthetically quote it.
  48148. + func_quote_for_eval "$nonopt"
  48149. + install_prog="$func_quote_for_eval_result "
  48150. + arg=$1
  48151. + shift
  48152. + else
  48153. + install_prog=
  48154. + arg=$nonopt
  48155. + fi
  48156. - # Now actually substitute the argument into the commands.
  48157. - if test -n "$arg"; then
  48158. - compile_command="$compile_command $arg"
  48159. - finalize_command="$finalize_command $arg"
  48160. + # The real first argument should be the name of the installation program.
  48161. + # Aesthetically quote it.
  48162. + func_quote_for_eval "$arg"
  48163. + install_prog="$install_prog$func_quote_for_eval_result"
  48164. +
  48165. + # We need to accept at least all the BSD install flags.
  48166. + dest=
  48167. + files=
  48168. + opts=
  48169. + prev=
  48170. + install_type=
  48171. + isdir=no
  48172. + stripme=
  48173. + for arg
  48174. + do
  48175. + if test -n "$dest"; then
  48176. + files="$files $dest"
  48177. + dest=$arg
  48178. + continue
  48179. fi
  48180. - done # argument parsing loop
  48181. - if test -n "$prev"; then
  48182. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  48183. - $echo "$help" 1>&2
  48184. - exit $EXIT_FAILURE
  48185. - fi
  48186. + case $arg in
  48187. + -d) isdir=yes ;;
  48188. + -f)
  48189. + case " $install_prog " in
  48190. + *[\\\ /]cp\ *) ;;
  48191. + *) prev=$arg ;;
  48192. + esac
  48193. + ;;
  48194. + -g | -m | -o)
  48195. + prev=$arg
  48196. + ;;
  48197. + -s)
  48198. + stripme=" -s"
  48199. + continue
  48200. + ;;
  48201. + -*)
  48202. + ;;
  48203. + *)
  48204. + # If the previous option needed an argument, then skip it.
  48205. + if test -n "$prev"; then
  48206. + prev=
  48207. + else
  48208. + dest=$arg
  48209. + continue
  48210. + fi
  48211. + ;;
  48212. + esac
  48213. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  48214. - eval arg=\"$export_dynamic_flag_spec\"
  48215. - compile_command="$compile_command $arg"
  48216. - finalize_command="$finalize_command $arg"
  48217. - fi
  48218. + # Aesthetically quote the argument.
  48219. + func_quote_for_eval "$arg"
  48220. + install_prog="$install_prog $func_quote_for_eval_result"
  48221. + done
  48222. - oldlibs=
  48223. - # calculate the name of the file, without its directory
  48224. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  48225. - libobjs_save="$libobjs"
  48226. + test -z "$install_prog" && \
  48227. + func_fatal_help "you must specify an install program"
  48228. - if test -n "$shlibpath_var"; then
  48229. - # get the directories listed in $shlibpath_var
  48230. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  48231. - else
  48232. - shlib_search_path=
  48233. - fi
  48234. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  48235. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  48236. + test -n "$prev" && \
  48237. + func_fatal_help "the \`$prev' option requires an argument"
  48238. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  48239. - if test "X$output_objdir" = "X$output"; then
  48240. - output_objdir="$objdir"
  48241. - else
  48242. - output_objdir="$output_objdir/$objdir"
  48243. - fi
  48244. - # Create the object directory.
  48245. - if test ! -d "$output_objdir"; then
  48246. - $show "$mkdir $output_objdir"
  48247. - $run $mkdir $output_objdir
  48248. - exit_status=$?
  48249. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  48250. - exit $exit_status
  48251. + if test -z "$files"; then
  48252. + if test -z "$dest"; then
  48253. + func_fatal_help "no file or destination specified"
  48254. + else
  48255. + func_fatal_help "you must specify a destination"
  48256. fi
  48257. fi
  48258. - # Determine the type of output
  48259. - case $output in
  48260. - "")
  48261. - $echo "$modename: you must specify an output file" 1>&2
  48262. - $echo "$help" 1>&2
  48263. - exit $EXIT_FAILURE
  48264. - ;;
  48265. - *.$libext) linkmode=oldlib ;;
  48266. - *.lo | *.$objext) linkmode=obj ;;
  48267. - *.la) linkmode=lib ;;
  48268. - *) linkmode=prog ;; # Anything else should be a program.
  48269. - esac
  48270. + # Strip any trailing slash from the destination.
  48271. + func_stripname '' '/' "$dest"
  48272. + dest=$func_stripname_result
  48273. - case $host in
  48274. - *cygwin* | *mingw* | *pw32*)
  48275. - # don't eliminate duplications in $postdeps and $predeps
  48276. - duplicate_compiler_generated_deps=yes
  48277. - ;;
  48278. + # Check to see that the destination is a directory.
  48279. + test -d "$dest" && isdir=yes
  48280. + if test "$isdir" = yes; then
  48281. + destdir="$dest"
  48282. + destname=
  48283. + else
  48284. + func_dirname_and_basename "$dest" "" "."
  48285. + destdir="$func_dirname_result"
  48286. + destname="$func_basename_result"
  48287. +
  48288. + # Not a directory, so check to see that there is only one file specified.
  48289. + set dummy $files; shift
  48290. + test "$#" -gt 1 && \
  48291. + func_fatal_help "\`$dest' is not a directory"
  48292. + fi
  48293. + case $destdir in
  48294. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  48295. *)
  48296. - duplicate_compiler_generated_deps=$duplicate_deps
  48297. + for file in $files; do
  48298. + case $file in
  48299. + *.lo) ;;
  48300. + *)
  48301. + func_fatal_help "\`$destdir' must be an absolute directory name"
  48302. + ;;
  48303. + esac
  48304. + done
  48305. ;;
  48306. esac
  48307. - specialdeplibs=
  48308. - libs=
  48309. - # Find all interdependent deplibs by searching for libraries
  48310. - # that are linked more than once (e.g. -la -lb -la)
  48311. - for deplib in $deplibs; do
  48312. - if test "X$duplicate_deps" = "Xyes" ; then
  48313. - case "$libs " in
  48314. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48315. - esac
  48316. - fi
  48317. - libs="$libs $deplib"
  48318. - done
  48319. + # This variable tells wrapper scripts just to set variables rather
  48320. + # than running their programs.
  48321. + libtool_install_magic="$magic"
  48322. - if test "$linkmode" = lib; then
  48323. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  48324. + staticlibs=
  48325. + future_libdirs=
  48326. + current_libdirs=
  48327. + for file in $files; do
  48328. - # Compute libraries that are listed more than once in $predeps
  48329. - # $postdeps and mark them as special (i.e., whose duplicates are
  48330. - # not to be eliminated).
  48331. - pre_post_deps=
  48332. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  48333. - for pre_post_dep in $predeps $postdeps; do
  48334. - case "$pre_post_deps " in
  48335. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  48336. + # Do each installation.
  48337. + case $file in
  48338. + *.$libext)
  48339. + # Do the static libraries later.
  48340. + staticlibs="$staticlibs $file"
  48341. + ;;
  48342. +
  48343. + *.la)
  48344. + # Check to see that this really is a libtool archive.
  48345. + func_lalib_unsafe_p "$file" \
  48346. + || func_fatal_help "\`$file' is not a valid libtool archive"
  48347. +
  48348. + library_names=
  48349. + old_library=
  48350. + relink_command=
  48351. + func_source "$file"
  48352. +
  48353. + # Add the libdir to current_libdirs if it is the destination.
  48354. + if test "X$destdir" = "X$libdir"; then
  48355. + case "$current_libdirs " in
  48356. + *" $libdir "*) ;;
  48357. + *) current_libdirs="$current_libdirs $libdir" ;;
  48358. esac
  48359. - pre_post_deps="$pre_post_deps $pre_post_dep"
  48360. - done
  48361. - fi
  48362. - pre_post_deps=
  48363. - fi
  48364. + else
  48365. + # Note the libdir as a future libdir.
  48366. + case "$future_libdirs " in
  48367. + *" $libdir "*) ;;
  48368. + *) future_libdirs="$future_libdirs $libdir" ;;
  48369. + esac
  48370. + fi
  48371. - deplibs=
  48372. - newdependency_libs=
  48373. - newlib_search_path=
  48374. - need_relink=no # whether we're linking any uninstalled libtool libraries
  48375. - notinst_deplibs= # not-installed libtool libraries
  48376. - case $linkmode in
  48377. - lib)
  48378. - passes="conv link"
  48379. - for file in $dlfiles $dlprefiles; do
  48380. - case $file in
  48381. - *.la) ;;
  48382. - *)
  48383. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  48384. - exit $EXIT_FAILURE
  48385. + func_dirname "$file" "/" ""
  48386. + dir="$func_dirname_result"
  48387. + dir="$dir$objdir"
  48388. +
  48389. + if test -n "$relink_command"; then
  48390. + # Determine the prefix the user has applied to our future dir.
  48391. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  48392. +
  48393. + # Don't allow the user to place us outside of our expected
  48394. + # location b/c this prevents finding dependent libraries that
  48395. + # are installed to the same prefix.
  48396. + # At present, this check doesn't affect windows .dll's that
  48397. + # are installed into $libdir/../bin (currently, that works fine)
  48398. + # but it's something to keep an eye on.
  48399. + test "$inst_prefix_dir" = "$destdir" && \
  48400. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  48401. +
  48402. + if test -n "$inst_prefix_dir"; then
  48403. + # Stick the inst_prefix_dir data into the link command.
  48404. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  48405. + else
  48406. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  48407. + fi
  48408. +
  48409. + func_warning "relinking \`$file'"
  48410. + func_show_eval "$relink_command" \
  48411. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  48412. + fi
  48413. +
  48414. + # See the names of the shared library.
  48415. + set dummy $library_names; shift
  48416. + if test -n "$1"; then
  48417. + realname="$1"
  48418. + shift
  48419. +
  48420. + srcname="$realname"
  48421. + test -n "$relink_command" && srcname="$realname"T
  48422. +
  48423. + # Install the shared library and build the symlinks.
  48424. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  48425. + 'exit $?'
  48426. + tstripme="$stripme"
  48427. + case $host_os in
  48428. + cygwin* | mingw* | pw32* | cegcc*)
  48429. + case $realname in
  48430. + *.dll.a)
  48431. + tstripme=""
  48432. + ;;
  48433. + esac
  48434. ;;
  48435. esac
  48436. - done
  48437. - ;;
  48438. - prog)
  48439. - compile_deplibs=
  48440. - finalize_deplibs=
  48441. - alldeplibs=no
  48442. - newdlfiles=
  48443. - newdlprefiles=
  48444. - passes="conv scan dlopen dlpreopen link"
  48445. - ;;
  48446. - *) passes="conv"
  48447. + if test -n "$tstripme" && test -n "$striplib"; then
  48448. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  48449. + fi
  48450. +
  48451. + if test "$#" -gt 0; then
  48452. + # Delete the old symlinks, and create new ones.
  48453. + # Try `ln -sf' first, because the `ln' binary might depend on
  48454. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  48455. + # so we also need to try rm && ln -s.
  48456. + for linkname
  48457. + do
  48458. + test "$linkname" != "$realname" \
  48459. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  48460. + done
  48461. + fi
  48462. +
  48463. + # Do each command in the postinstall commands.
  48464. + lib="$destdir/$realname"
  48465. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  48466. + fi
  48467. +
  48468. + # Install the pseudo-library for information purposes.
  48469. + func_basename "$file"
  48470. + name="$func_basename_result"
  48471. + instname="$dir/$name"i
  48472. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  48473. +
  48474. + # Maybe install the static library, too.
  48475. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  48476. ;;
  48477. - esac
  48478. - for pass in $passes; do
  48479. - if test "$linkmode,$pass" = "lib,link" ||
  48480. - test "$linkmode,$pass" = "prog,scan"; then
  48481. - libs="$deplibs"
  48482. - deplibs=
  48483. - fi
  48484. - if test "$linkmode" = prog; then
  48485. - case $pass in
  48486. - dlopen) libs="$dlfiles" ;;
  48487. - dlpreopen) libs="$dlprefiles" ;;
  48488. - link)
  48489. - libs="$deplibs %DEPLIBS%"
  48490. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  48491. +
  48492. + *.lo)
  48493. + # Install (i.e. copy) a libtool object.
  48494. +
  48495. + # Figure out destination file name, if it wasn't already specified.
  48496. + if test -n "$destname"; then
  48497. + destfile="$destdir/$destname"
  48498. + else
  48499. + func_basename "$file"
  48500. + destfile="$func_basename_result"
  48501. + destfile="$destdir/$destfile"
  48502. + fi
  48503. +
  48504. + # Deduce the name of the destination old-style object file.
  48505. + case $destfile in
  48506. + *.lo)
  48507. + func_lo2o "$destfile"
  48508. + staticdest=$func_lo2o_result
  48509. ;;
  48510. - esac
  48511. - fi
  48512. - if test "$pass" = dlopen; then
  48513. - # Collect dlpreopened libraries
  48514. - save_deplibs="$deplibs"
  48515. - deplibs=
  48516. - fi
  48517. - for deplib in $libs; do
  48518. - lib=
  48519. - found=no
  48520. - case $deplib in
  48521. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  48522. - if test "$linkmode,$pass" = "prog,link"; then
  48523. - compile_deplibs="$deplib $compile_deplibs"
  48524. - finalize_deplibs="$deplib $finalize_deplibs"
  48525. - else
  48526. - compiler_flags="$compiler_flags $deplib"
  48527. - fi
  48528. - continue
  48529. + *.$objext)
  48530. + staticdest="$destfile"
  48531. + destfile=
  48532. ;;
  48533. - -l*)
  48534. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  48535. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  48536. - continue
  48537. - fi
  48538. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  48539. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  48540. - for search_ext in .la $std_shrext .so .a; do
  48541. - # Search the libtool library
  48542. - lib="$searchdir/lib${name}${search_ext}"
  48543. - if test -f "$lib"; then
  48544. - if test "$search_ext" = ".la"; then
  48545. - found=yes
  48546. - else
  48547. - found=no
  48548. - fi
  48549. - break 2
  48550. - fi
  48551. - done
  48552. - done
  48553. - if test "$found" != yes; then
  48554. - # deplib doesn't seem to be a libtool library
  48555. - if test "$linkmode,$pass" = "prog,link"; then
  48556. - compile_deplibs="$deplib $compile_deplibs"
  48557. - finalize_deplibs="$deplib $finalize_deplibs"
  48558. - else
  48559. - deplibs="$deplib $deplibs"
  48560. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48561. - fi
  48562. - continue
  48563. - else # deplib is a libtool library
  48564. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  48565. - # We need to do some special things here, and not later.
  48566. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48567. - case " $predeps $postdeps " in
  48568. - *" $deplib "*)
  48569. - if (${SED} -e '2q' $lib |
  48570. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48571. - library_names=
  48572. - old_library=
  48573. - case $lib in
  48574. - */* | *\\*) . $lib ;;
  48575. - *) . ./$lib ;;
  48576. - esac
  48577. - for l in $old_library $library_names; do
  48578. - ll="$l"
  48579. - done
  48580. - if test "X$ll" = "X$old_library" ; then # only static version available
  48581. - found=no
  48582. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  48583. - test "X$ladir" = "X$lib" && ladir="."
  48584. - lib=$ladir/$old_library
  48585. - if test "$linkmode,$pass" = "prog,link"; then
  48586. - compile_deplibs="$deplib $compile_deplibs"
  48587. - finalize_deplibs="$deplib $finalize_deplibs"
  48588. - else
  48589. - deplibs="$deplib $deplibs"
  48590. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48591. - fi
  48592. - continue
  48593. - fi
  48594. - fi
  48595. - ;;
  48596. - *) ;;
  48597. - esac
  48598. + *)
  48599. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  48600. + ;;
  48601. + esac
  48602. +
  48603. + # Install the libtool object if requested.
  48604. + test -n "$destfile" && \
  48605. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  48606. +
  48607. + # Install the old object if enabled.
  48608. + if test "$build_old_libs" = yes; then
  48609. + # Deduce the name of the old-style object file.
  48610. + func_lo2o "$file"
  48611. + staticobj=$func_lo2o_result
  48612. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  48613. + fi
  48614. + exit $EXIT_SUCCESS
  48615. + ;;
  48616. +
  48617. + *)
  48618. + # Figure out destination file name, if it wasn't already specified.
  48619. + if test -n "$destname"; then
  48620. + destfile="$destdir/$destname"
  48621. + else
  48622. + func_basename "$file"
  48623. + destfile="$func_basename_result"
  48624. + destfile="$destdir/$destfile"
  48625. + fi
  48626. +
  48627. + # If the file is missing, and there is a .exe on the end, strip it
  48628. + # because it is most likely a libtool script we actually want to
  48629. + # install
  48630. + stripped_ext=""
  48631. + case $file in
  48632. + *.exe)
  48633. + if test ! -f "$file"; then
  48634. + func_stripname '' '.exe' "$file"
  48635. + file=$func_stripname_result
  48636. + stripped_ext=".exe"
  48637. fi
  48638. - fi
  48639. - ;; # -l
  48640. - -L*)
  48641. - case $linkmode in
  48642. - lib)
  48643. - deplibs="$deplib $deplibs"
  48644. - test "$pass" = conv && continue
  48645. - newdependency_libs="$deplib $newdependency_libs"
  48646. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  48647. ;;
  48648. - prog)
  48649. - if test "$pass" = conv; then
  48650. - deplibs="$deplib $deplibs"
  48651. - continue
  48652. - fi
  48653. - if test "$pass" = scan; then
  48654. - deplibs="$deplib $deplibs"
  48655. + esac
  48656. +
  48657. + # Do a test to see if this is really a libtool program.
  48658. + case $host in
  48659. + *cygwin* | *mingw*)
  48660. + if func_ltwrapper_executable_p "$file"; then
  48661. + func_ltwrapper_scriptname "$file"
  48662. + wrapper=$func_ltwrapper_scriptname_result
  48663. else
  48664. - compile_deplibs="$deplib $compile_deplibs"
  48665. - finalize_deplibs="$deplib $finalize_deplibs"
  48666. + func_stripname '' '.exe' "$file"
  48667. + wrapper=$func_stripname_result
  48668. fi
  48669. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  48670. ;;
  48671. - *)
  48672. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  48673. - ;;
  48674. - esac # linkmode
  48675. - continue
  48676. - ;; # -L
  48677. - -R*)
  48678. - if test "$pass" = link; then
  48679. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  48680. - # Make sure the xrpath contains only unique directories.
  48681. - case "$xrpath " in
  48682. - *" $dir "*) ;;
  48683. - *) xrpath="$xrpath $dir" ;;
  48684. - esac
  48685. - fi
  48686. - deplibs="$deplib $deplibs"
  48687. - continue
  48688. - ;;
  48689. - *.la) lib="$deplib" ;;
  48690. - *.$libext)
  48691. - if test "$pass" = conv; then
  48692. - deplibs="$deplib $deplibs"
  48693. - continue
  48694. - fi
  48695. - case $linkmode in
  48696. - lib)
  48697. - valid_a_lib=no
  48698. - case $deplibs_check_method in
  48699. - match_pattern*)
  48700. - set dummy $deplibs_check_method
  48701. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  48702. - if eval $echo \"$deplib\" 2>/dev/null \
  48703. - | $SED 10q \
  48704. - | $EGREP "$match_pattern_regex" > /dev/null; then
  48705. - valid_a_lib=yes
  48706. - fi
  48707. - ;;
  48708. - pass_all)
  48709. - valid_a_lib=yes
  48710. - ;;
  48711. - esac
  48712. - if test "$valid_a_lib" != yes; then
  48713. - $echo
  48714. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  48715. - $echo "*** I have the capability to make that library automatically link in when"
  48716. - $echo "*** you link to this library. But I can only do this if you have a"
  48717. - $echo "*** shared version of the library, which you do not appear to have"
  48718. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  48719. - $echo "*** that it is just a static archive that I should not used here."
  48720. - else
  48721. - $echo
  48722. - $echo "*** Warning: Linking the shared library $output against the"
  48723. - $echo "*** static library $deplib is not portable!"
  48724. - deplibs="$deplib $deplibs"
  48725. - fi
  48726. - continue
  48727. + *)
  48728. + wrapper=$file
  48729. ;;
  48730. - prog)
  48731. - if test "$pass" != link; then
  48732. - deplibs="$deplib $deplibs"
  48733. - else
  48734. - compile_deplibs="$deplib $compile_deplibs"
  48735. - finalize_deplibs="$deplib $finalize_deplibs"
  48736. + esac
  48737. + if func_ltwrapper_script_p "$wrapper"; then
  48738. + notinst_deplibs=
  48739. + relink_command=
  48740. +
  48741. + func_source "$wrapper"
  48742. +
  48743. + # Check the variables that should have been set.
  48744. + test -z "$generated_by_libtool_version" && \
  48745. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  48746. +
  48747. + finalize=yes
  48748. + for lib in $notinst_deplibs; do
  48749. + # Check to see that each library is installed.
  48750. + libdir=
  48751. + if test -f "$lib"; then
  48752. + func_source "$lib"
  48753. fi
  48754. - continue
  48755. - ;;
  48756. - esac # linkmode
  48757. - ;; # *.$libext
  48758. - *.lo | *.$objext)
  48759. - if test "$pass" = conv; then
  48760. - deplibs="$deplib $deplibs"
  48761. - elif test "$linkmode" = prog; then
  48762. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  48763. - # If there is no dlopen support or we're linking statically,
  48764. - # we need to preload.
  48765. - newdlprefiles="$newdlprefiles $deplib"
  48766. - compile_deplibs="$deplib $compile_deplibs"
  48767. - finalize_deplibs="$deplib $finalize_deplibs"
  48768. - else
  48769. - newdlfiles="$newdlfiles $deplib"
  48770. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  48771. + if test -n "$libdir" && test ! -f "$libfile"; then
  48772. + func_warning "\`$lib' has not been installed in \`$libdir'"
  48773. + finalize=no
  48774. fi
  48775. + done
  48776. +
  48777. + relink_command=
  48778. + func_source "$wrapper"
  48779. +
  48780. + outputname=
  48781. + if test "$fast_install" = no && test -n "$relink_command"; then
  48782. + $opt_dry_run || {
  48783. + if test "$finalize" = yes; then
  48784. + tmpdir=`func_mktempdir`
  48785. + func_basename "$file$stripped_ext"
  48786. + file="$func_basename_result"
  48787. + outputname="$tmpdir/$file"
  48788. + # Replace the output file specification.
  48789. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  48790. +
  48791. + $opt_silent || {
  48792. + func_quote_for_expand "$relink_command"
  48793. + eval "func_echo $func_quote_for_expand_result"
  48794. + }
  48795. + if eval "$relink_command"; then :
  48796. + else
  48797. + func_error "error: relink \`$file' with the above command before installing it"
  48798. + $opt_dry_run || ${RM}r "$tmpdir"
  48799. + continue
  48800. + fi
  48801. + file="$outputname"
  48802. + else
  48803. + func_warning "cannot relink \`$file'"
  48804. + fi
  48805. + }
  48806. + else
  48807. + # Install the binary that we compiled earlier.
  48808. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48809. fi
  48810. - continue
  48811. - ;;
  48812. - %DEPLIBS%)
  48813. - alldeplibs=yes
  48814. - continue
  48815. - ;;
  48816. - esac # case $deplib
  48817. - if test "$found" = yes || test -f "$lib"; then :
  48818. - else
  48819. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  48820. - exit $EXIT_FAILURE
  48821. fi
  48822. - # Check to see that this really is a libtool archive.
  48823. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48824. - else
  48825. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48826. - exit $EXIT_FAILURE
  48827. + # remove .exe since cygwin /usr/bin/install will append another
  48828. + # one anyway
  48829. + case $install_prog,$host in
  48830. + */usr/bin/install*,*cygwin*)
  48831. + case $file:$destfile in
  48832. + *.exe:*.exe)
  48833. + # this is ok
  48834. + ;;
  48835. + *.exe:*)
  48836. + destfile=$destfile.exe
  48837. + ;;
  48838. + *:*.exe)
  48839. + func_stripname '' '.exe' "$destfile"
  48840. + destfile=$func_stripname_result
  48841. + ;;
  48842. + esac
  48843. + ;;
  48844. + esac
  48845. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  48846. + $opt_dry_run || if test -n "$outputname"; then
  48847. + ${RM}r "$tmpdir"
  48848. fi
  48849. + ;;
  48850. + esac
  48851. + done
  48852. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  48853. - test "X$ladir" = "X$lib" && ladir="."
  48854. + for file in $staticlibs; do
  48855. + func_basename "$file"
  48856. + name="$func_basename_result"
  48857. - dlname=
  48858. - dlopen=
  48859. - dlpreopen=
  48860. - libdir=
  48861. - library_names=
  48862. - old_library=
  48863. - # If the library was installed with an old release of libtool,
  48864. - # it will not redefine variables installed, or shouldnotlink
  48865. - installed=yes
  48866. - shouldnotlink=no
  48867. - avoidtemprpath=
  48868. + # Set up the ranlib parameters.
  48869. + oldlib="$destdir/$name"
  48870. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  48871. - # Read the .la file
  48872. - case $lib in
  48873. - */* | *\\*) . $lib ;;
  48874. - *) . ./$lib ;;
  48875. - esac
  48876. + if test -n "$stripme" && test -n "$old_striplib"; then
  48877. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  48878. + fi
  48879. - if test "$linkmode,$pass" = "lib,link" ||
  48880. - test "$linkmode,$pass" = "prog,scan" ||
  48881. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  48882. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  48883. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  48884. - fi
  48885. + # Do each command in the postinstall commands.
  48886. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  48887. + done
  48888. - if test "$pass" = conv; then
  48889. - # Only check for convenience libraries
  48890. - deplibs="$lib $deplibs"
  48891. - if test -z "$libdir"; then
  48892. - if test -z "$old_library"; then
  48893. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48894. - exit $EXIT_FAILURE
  48895. - fi
  48896. - # It is a libtool convenience library, so add in its objects.
  48897. - convenience="$convenience $ladir/$objdir/$old_library"
  48898. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  48899. - tmp_libs=
  48900. - for deplib in $dependency_libs; do
  48901. - deplibs="$deplib $deplibs"
  48902. - if test "X$duplicate_deps" = "Xyes" ; then
  48903. - case "$tmp_libs " in
  48904. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48905. - esac
  48906. - fi
  48907. - tmp_libs="$tmp_libs $deplib"
  48908. - done
  48909. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  48910. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  48911. - exit $EXIT_FAILURE
  48912. - fi
  48913. - continue
  48914. - fi # $pass = conv
  48915. + test -n "$future_libdirs" && \
  48916. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  48917. + if test -n "$current_libdirs"; then
  48918. + # Maybe just do a dry run.
  48919. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  48920. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  48921. + else
  48922. + exit $EXIT_SUCCESS
  48923. + fi
  48924. +}
  48925. - # Get the name of the library we link against.
  48926. - linklib=
  48927. - for l in $old_library $library_names; do
  48928. - linklib="$l"
  48929. - done
  48930. - if test -z "$linklib"; then
  48931. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48932. - exit $EXIT_FAILURE
  48933. - fi
  48934. +test "$mode" = install && func_mode_install ${1+"$@"}
  48935. - # This library was specified with -dlopen.
  48936. - if test "$pass" = dlopen; then
  48937. - if test -z "$libdir"; then
  48938. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  48939. - exit $EXIT_FAILURE
  48940. - fi
  48941. - if test -z "$dlname" ||
  48942. - test "$dlopen_support" != yes ||
  48943. - test "$build_libtool_libs" = no; then
  48944. - # If there is no dlname, no dlopen support or we're linking
  48945. - # statically, we need to preload. We also need to preload any
  48946. - # dependent libraries so libltdl's deplib preloader doesn't
  48947. - # bomb out in the load deplibs phase.
  48948. - dlprefiles="$dlprefiles $lib $dependency_libs"
  48949. - else
  48950. - newdlfiles="$newdlfiles $lib"
  48951. - fi
  48952. - continue
  48953. - fi # $pass = dlopen
  48954. - # We need an absolute path.
  48955. - case $ladir in
  48956. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  48957. - *)
  48958. - abs_ladir=`cd "$ladir" && pwd`
  48959. - if test -z "$abs_ladir"; then
  48960. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  48961. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  48962. - abs_ladir="$ladir"
  48963. +# func_generate_dlsyms outputname originator pic_p
  48964. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  48965. +# a dlpreopen symbol table.
  48966. +func_generate_dlsyms ()
  48967. +{
  48968. + $opt_debug
  48969. + my_outputname="$1"
  48970. + my_originator="$2"
  48971. + my_pic_p="${3-no}"
  48972. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  48973. + my_dlsyms=
  48974. +
  48975. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48976. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  48977. + my_dlsyms="${my_outputname}S.c"
  48978. + else
  48979. + func_error "not configured to extract global symbols from dlpreopened files"
  48980. + fi
  48981. + fi
  48982. +
  48983. + if test -n "$my_dlsyms"; then
  48984. + case $my_dlsyms in
  48985. + "") ;;
  48986. + *.c)
  48987. + # Discover the nlist of each of the dlfiles.
  48988. + nlist="$output_objdir/${my_outputname}.nm"
  48989. +
  48990. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  48991. +
  48992. + # Parse the name list into a source file.
  48993. + func_verbose "creating $output_objdir/$my_dlsyms"
  48994. +
  48995. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  48996. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  48997. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  48998. +
  48999. +#ifdef __cplusplus
  49000. +extern \"C\" {
  49001. +#endif
  49002. +
  49003. +/* External symbol declarations for the compiler. */\
  49004. +"
  49005. +
  49006. + if test "$dlself" = yes; then
  49007. + func_verbose "generating symbol list for \`$output'"
  49008. +
  49009. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  49010. +
  49011. + # Add our own program objects to the symbol list.
  49012. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49013. + for progfile in $progfiles; do
  49014. + func_verbose "extracting global C symbols from \`$progfile'"
  49015. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  49016. + done
  49017. +
  49018. + if test -n "$exclude_expsyms"; then
  49019. + $opt_dry_run || {
  49020. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49021. + eval '$MV "$nlist"T "$nlist"'
  49022. + }
  49023. fi
  49024. - ;;
  49025. - esac
  49026. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  49027. - # Find the relevant object directory and library name.
  49028. - if test "X$installed" = Xyes; then
  49029. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49030. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  49031. - dir="$ladir"
  49032. - absdir="$abs_ladir"
  49033. - libdir="$abs_ladir"
  49034. - else
  49035. - dir="$libdir"
  49036. - absdir="$libdir"
  49037. + if test -n "$export_symbols_regex"; then
  49038. + $opt_dry_run || {
  49039. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  49040. + eval '$MV "$nlist"T "$nlist"'
  49041. + }
  49042. fi
  49043. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  49044. - else
  49045. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49046. - dir="$ladir"
  49047. - absdir="$abs_ladir"
  49048. - # Remove this search path later
  49049. - notinst_path="$notinst_path $abs_ladir"
  49050. +
  49051. + # Prepare the list of exported symbols
  49052. + if test -z "$export_symbols"; then
  49053. + export_symbols="$output_objdir/$outputname.exp"
  49054. + $opt_dry_run || {
  49055. + $RM $export_symbols
  49056. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  49057. + case $host in
  49058. + *cygwin* | *mingw* | *cegcc* )
  49059. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49060. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  49061. + ;;
  49062. + esac
  49063. + }
  49064. else
  49065. - dir="$ladir/$objdir"
  49066. - absdir="$abs_ladir/$objdir"
  49067. - # Remove this search path later
  49068. - notinst_path="$notinst_path $abs_ladir"
  49069. + $opt_dry_run || {
  49070. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  49071. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  49072. + eval '$MV "$nlist"T "$nlist"'
  49073. + case $host in
  49074. + *cygwin | *mingw* | *cegcc* )
  49075. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49076. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  49077. + ;;
  49078. + esac
  49079. + }
  49080. fi
  49081. - fi # $installed = yes
  49082. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  49083. + fi
  49084. - # This library was specified with -dlpreopen.
  49085. - if test "$pass" = dlpreopen; then
  49086. - if test -z "$libdir"; then
  49087. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  49088. - exit $EXIT_FAILURE
  49089. + for dlprefile in $dlprefiles; do
  49090. + func_verbose "extracting global C symbols from \`$dlprefile'"
  49091. + func_basename "$dlprefile"
  49092. + name="$func_basename_result"
  49093. + $opt_dry_run || {
  49094. + eval '$ECHO ": $name " >> "$nlist"'
  49095. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  49096. + }
  49097. + done
  49098. +
  49099. + $opt_dry_run || {
  49100. + # Make sure we have at least an empty file.
  49101. + test -f "$nlist" || : > "$nlist"
  49102. +
  49103. + if test -n "$exclude_expsyms"; then
  49104. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  49105. + $MV "$nlist"T "$nlist"
  49106. fi
  49107. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  49108. - # are required to link).
  49109. - if test -n "$old_library"; then
  49110. - newdlprefiles="$newdlprefiles $dir/$old_library"
  49111. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  49112. - elif test -n "$dlname"; then
  49113. - newdlprefiles="$newdlprefiles $dir/$dlname"
  49114. +
  49115. + # Try sorting and uniquifying the output.
  49116. + if $GREP -v "^: " < "$nlist" |
  49117. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  49118. + sort -k 3
  49119. + else
  49120. + sort +2
  49121. + fi |
  49122. + uniq > "$nlist"S; then
  49123. + :
  49124. else
  49125. - newdlprefiles="$newdlprefiles $dir/$linklib"
  49126. + $GREP -v "^: " < "$nlist" > "$nlist"S
  49127. fi
  49128. - fi # $pass = dlpreopen
  49129. - if test -z "$libdir"; then
  49130. - # Link the convenience library
  49131. - if test "$linkmode" = lib; then
  49132. - deplibs="$dir/$old_library $deplibs"
  49133. - elif test "$linkmode,$pass" = "prog,link"; then
  49134. - compile_deplibs="$dir/$old_library $compile_deplibs"
  49135. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  49136. + if test -f "$nlist"S; then
  49137. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  49138. else
  49139. - deplibs="$lib $deplibs" # used for prog,scan pass
  49140. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  49141. fi
  49142. - continue
  49143. - fi
  49144. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49145. - if test "$linkmode" = prog && test "$pass" != link; then
  49146. - newlib_search_path="$newlib_search_path $ladir"
  49147. - deplibs="$lib $deplibs"
  49148. -
  49149. - linkalldeplibs=no
  49150. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  49151. - test "$build_libtool_libs" = no; then
  49152. - linkalldeplibs=yes
  49153. - fi
  49154. +/* The mapping between symbol names and symbols. */
  49155. +typedef struct {
  49156. + const char *name;
  49157. + void *address;
  49158. +} lt_dlsymlist;
  49159. +"
  49160. + case $host in
  49161. + *cygwin* | *mingw* | *cegcc* )
  49162. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49163. +/* DATA imports from DLLs on WIN32 con't be const, because
  49164. + runtime relocations are performed -- see ld's documentation
  49165. + on pseudo-relocs. */"
  49166. + lt_dlsym_const= ;;
  49167. + *osf5*)
  49168. + echo >> "$output_objdir/$my_dlsyms" "\
  49169. +/* This system does not cope well with relocations in const data */"
  49170. + lt_dlsym_const= ;;
  49171. + *)
  49172. + lt_dlsym_const=const ;;
  49173. + esac
  49174. - tmp_libs=
  49175. - for deplib in $dependency_libs; do
  49176. - case $deplib in
  49177. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  49178. - esac
  49179. - # Need to link against all dependency_libs?
  49180. - if test "$linkalldeplibs" = yes; then
  49181. - deplibs="$deplib $deplibs"
  49182. - else
  49183. - # Need to hardcode shared library paths
  49184. - # or/and link against static libraries
  49185. - newdependency_libs="$deplib $newdependency_libs"
  49186. - fi
  49187. - if test "X$duplicate_deps" = "Xyes" ; then
  49188. - case "$tmp_libs " in
  49189. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49190. - esac
  49191. - fi
  49192. - tmp_libs="$tmp_libs $deplib"
  49193. - done # for deplib
  49194. - continue
  49195. - fi # $linkmode = prog...
  49196. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49197. +extern $lt_dlsym_const lt_dlsymlist
  49198. +lt_${my_prefix}_LTX_preloaded_symbols[];
  49199. +$lt_dlsym_const lt_dlsymlist
  49200. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  49201. +{\
  49202. + { \"$my_originator\", (void *) 0 },"
  49203. - if test "$linkmode,$pass" = "prog,link"; then
  49204. - if test -n "$library_names" &&
  49205. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  49206. - # We need to hardcode the library path
  49207. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  49208. - # Make sure the rpath contains only unique directories.
  49209. - case "$temp_rpath " in
  49210. - *" $dir "*) ;;
  49211. - *" $absdir "*) ;;
  49212. - *) temp_rpath="$temp_rpath $absdir" ;;
  49213. - esac
  49214. - fi
  49215. + case $need_lib_prefix in
  49216. + no)
  49217. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  49218. + ;;
  49219. + *)
  49220. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  49221. + ;;
  49222. + esac
  49223. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49224. + {0, (void *) 0}
  49225. +};
  49226. - # Hardcode the library path.
  49227. - # Skip directories that are in the system default run-time
  49228. - # search path.
  49229. - case " $sys_lib_dlsearch_path " in
  49230. - *" $absdir "*) ;;
  49231. - *)
  49232. - case "$compile_rpath " in
  49233. - *" $absdir "*) ;;
  49234. - *) compile_rpath="$compile_rpath $absdir"
  49235. - esac
  49236. - ;;
  49237. - esac
  49238. - case " $sys_lib_dlsearch_path " in
  49239. - *" $libdir "*) ;;
  49240. - *)
  49241. - case "$finalize_rpath " in
  49242. - *" $libdir "*) ;;
  49243. - *) finalize_rpath="$finalize_rpath $libdir"
  49244. - esac
  49245. - ;;
  49246. - esac
  49247. - fi # $linkmode,$pass = prog,link...
  49248. +/* This works around a problem in FreeBSD linker */
  49249. +#ifdef FREEBSD_WORKAROUND
  49250. +static const void *lt_preloaded_setup() {
  49251. + return lt_${my_prefix}_LTX_preloaded_symbols;
  49252. +}
  49253. +#endif
  49254. - if test "$alldeplibs" = yes &&
  49255. - { test "$deplibs_check_method" = pass_all ||
  49256. - { test "$build_libtool_libs" = yes &&
  49257. - test -n "$library_names"; }; }; then
  49258. - # We only need to search for static libraries
  49259. - continue
  49260. - fi
  49261. - fi
  49262. +#ifdef __cplusplus
  49263. +}
  49264. +#endif\
  49265. +"
  49266. + } # !$opt_dry_run
  49267. - link_static=no # Whether the deplib will be linked statically
  49268. - use_static_libs=$prefer_static_libs
  49269. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  49270. - use_static_libs=no
  49271. - fi
  49272. - if test -n "$library_names" &&
  49273. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  49274. - if test "$installed" = no; then
  49275. - notinst_deplibs="$notinst_deplibs $lib"
  49276. - need_relink=yes
  49277. - fi
  49278. - # This is a shared library
  49279. -
  49280. - # Warn about portability, can't link against -module's on
  49281. - # some systems (darwin)
  49282. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  49283. - $echo
  49284. - if test "$linkmode" = prog; then
  49285. - $echo "*** Warning: Linking the executable $output against the loadable module"
  49286. - else
  49287. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  49288. + pic_flag_for_symtable=
  49289. + case "$compile_command " in
  49290. + *" -static "*) ;;
  49291. + *)
  49292. + case $host in
  49293. + # compiling the symbol table file with pic_flag works around
  49294. + # a FreeBSD bug that causes programs to crash when -lm is
  49295. + # linked before any other PIC object. But we must not use
  49296. + # pic_flag when linking with -static. The problem exists in
  49297. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  49298. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  49299. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  49300. + *-*-hpux*)
  49301. + pic_flag_for_symtable=" $pic_flag" ;;
  49302. + *)
  49303. + if test "X$my_pic_p" != Xno; then
  49304. + pic_flag_for_symtable=" $pic_flag"
  49305. fi
  49306. - $echo "*** $linklib is not portable!"
  49307. - fi
  49308. - if test "$linkmode" = lib &&
  49309. - test "$hardcode_into_libs" = yes; then
  49310. - # Hardcode the library path.
  49311. - # Skip directories that are in the system default run-time
  49312. - # search path.
  49313. - case " $sys_lib_dlsearch_path " in
  49314. - *" $absdir "*) ;;
  49315. - *)
  49316. - case "$compile_rpath " in
  49317. - *" $absdir "*) ;;
  49318. - *) compile_rpath="$compile_rpath $absdir"
  49319. - esac
  49320. - ;;
  49321. - esac
  49322. - case " $sys_lib_dlsearch_path " in
  49323. - *" $libdir "*) ;;
  49324. - *)
  49325. - case "$finalize_rpath " in
  49326. - *" $libdir "*) ;;
  49327. - *) finalize_rpath="$finalize_rpath $libdir"
  49328. - esac
  49329. - ;;
  49330. - esac
  49331. - fi
  49332. + ;;
  49333. + esac
  49334. + ;;
  49335. + esac
  49336. + symtab_cflags=
  49337. + for arg in $LTCFLAGS; do
  49338. + case $arg in
  49339. + -pie | -fpie | -fPIE) ;;
  49340. + *) symtab_cflags="$symtab_cflags $arg" ;;
  49341. + esac
  49342. + done
  49343. - if test -n "$old_archive_from_expsyms_cmds"; then
  49344. - # figure out the soname
  49345. - set dummy $library_names
  49346. - realname="$2"
  49347. - shift; shift
  49348. - libname=`eval \\$echo \"$libname_spec\"`
  49349. - # use dlname if we got it. it's perfectly good, no?
  49350. - if test -n "$dlname"; then
  49351. - soname="$dlname"
  49352. - elif test -n "$soname_spec"; then
  49353. - # bleh windows
  49354. - case $host in
  49355. - *cygwin* | mingw*)
  49356. - major=`expr $current - $age`
  49357. - versuffix="-$major"
  49358. - ;;
  49359. - esac
  49360. - eval soname=\"$soname_spec\"
  49361. - else
  49362. - soname="$realname"
  49363. - fi
  49364. + # Now compile the dynamic symbol file.
  49365. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  49366. - # Make a new name for the extract_expsyms_cmds to use
  49367. - soroot="$soname"
  49368. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  49369. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  49370. + # Clean up the generated files.
  49371. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  49372. - # If the library has no export list, then create one now
  49373. - if test -f "$output_objdir/$soname-def"; then :
  49374. - else
  49375. - $show "extracting exported symbol list from \`$soname'"
  49376. - save_ifs="$IFS"; IFS='~'
  49377. - cmds=$extract_expsyms_cmds
  49378. - for cmd in $cmds; do
  49379. - IFS="$save_ifs"
  49380. - eval cmd=\"$cmd\"
  49381. - $show "$cmd"
  49382. - $run eval "$cmd" || exit $?
  49383. - done
  49384. - IFS="$save_ifs"
  49385. - fi
  49386. + # Transform the symbol file into the correct name.
  49387. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  49388. + case $host in
  49389. + *cygwin* | *mingw* | *cegcc* )
  49390. + if test -f "$output_objdir/$my_outputname.def"; then
  49391. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49392. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49393. + else
  49394. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49395. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49396. + fi
  49397. + ;;
  49398. + *)
  49399. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49400. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49401. + ;;
  49402. + esac
  49403. + ;;
  49404. + *)
  49405. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  49406. + ;;
  49407. + esac
  49408. + else
  49409. + # We keep going just in case the user didn't refer to
  49410. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  49411. + # really was required.
  49412. +
  49413. + # Nullify the symbol file.
  49414. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  49415. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  49416. + fi
  49417. +}
  49418. - # Create $newlib
  49419. - if test -f "$output_objdir/$newlib"; then :; else
  49420. - $show "generating import library for \`$soname'"
  49421. - save_ifs="$IFS"; IFS='~'
  49422. - cmds=$old_archive_from_expsyms_cmds
  49423. - for cmd in $cmds; do
  49424. - IFS="$save_ifs"
  49425. - eval cmd=\"$cmd\"
  49426. - $show "$cmd"
  49427. - $run eval "$cmd" || exit $?
  49428. - done
  49429. - IFS="$save_ifs"
  49430. - fi
  49431. - # make sure the library variables are pointing to the new library
  49432. - dir=$output_objdir
  49433. - linklib=$newlib
  49434. - fi # test -n "$old_archive_from_expsyms_cmds"
  49435. +# func_win32_libid arg
  49436. +# return the library type of file 'arg'
  49437. +#
  49438. +# Need a lot of goo to handle *both* DLLs and import libs
  49439. +# Has to be a shell function in order to 'eat' the argument
  49440. +# that is supplied when $file_magic_command is called.
  49441. +func_win32_libid ()
  49442. +{
  49443. + $opt_debug
  49444. + win32_libid_type="unknown"
  49445. + win32_fileres=`file -L $1 2>/dev/null`
  49446. + case $win32_fileres in
  49447. + *ar\ archive\ import\ library*) # definitely import
  49448. + win32_libid_type="x86 archive import"
  49449. + ;;
  49450. + *ar\ archive*) # could be an import, or static
  49451. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  49452. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  49453. + win32_nmres=`eval $NM -f posix -A $1 |
  49454. + $SED -n -e '
  49455. + 1,100{
  49456. + / I /{
  49457. + s,.*,import,
  49458. + p
  49459. + q
  49460. + }
  49461. + }'`
  49462. + case $win32_nmres in
  49463. + import*) win32_libid_type="x86 archive import";;
  49464. + *) win32_libid_type="x86 archive static";;
  49465. + esac
  49466. + fi
  49467. + ;;
  49468. + *DLL*)
  49469. + win32_libid_type="x86 DLL"
  49470. + ;;
  49471. + *executable*) # but shell scripts are "executable" too...
  49472. + case $win32_fileres in
  49473. + *MS\ Windows\ PE\ Intel*)
  49474. + win32_libid_type="x86 DLL"
  49475. + ;;
  49476. + esac
  49477. + ;;
  49478. + esac
  49479. + $ECHO "$win32_libid_type"
  49480. +}
  49481. - if test "$linkmode" = prog || test "$mode" != relink; then
  49482. - add_shlibpath=
  49483. - add_dir=
  49484. - add=
  49485. - lib_linked=yes
  49486. - case $hardcode_action in
  49487. - immediate | unsupported)
  49488. - if test "$hardcode_direct" = no; then
  49489. - add="$dir/$linklib"
  49490. - case $host in
  49491. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  49492. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  49493. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  49494. - *-*-unixware7*) add_dir="-L$dir" ;;
  49495. - *-*-darwin* )
  49496. - # if the lib is a module then we can not link against
  49497. - # it, someone is ignoring the new warnings I added
  49498. - if /usr/bin/file -L $add 2> /dev/null |
  49499. - $EGREP ": [^:]* bundle" >/dev/null ; then
  49500. - $echo "** Warning, lib $linklib is a module, not a shared library"
  49501. - if test -z "$old_library" ; then
  49502. - $echo
  49503. - $echo "** And there doesn't seem to be a static archive available"
  49504. - $echo "** The link will probably fail, sorry"
  49505. - else
  49506. - add="$dir/$old_library"
  49507. - fi
  49508. - fi
  49509. - esac
  49510. - elif test "$hardcode_minus_L" = no; then
  49511. - case $host in
  49512. - *-*-sunos*) add_shlibpath="$dir" ;;
  49513. - esac
  49514. - add_dir="-L$dir"
  49515. - add="-l$name"
  49516. - elif test "$hardcode_shlibpath_var" = no; then
  49517. - add_shlibpath="$dir"
  49518. - add="-l$name"
  49519. - else
  49520. - lib_linked=no
  49521. - fi
  49522. - ;;
  49523. - relink)
  49524. - if test "$hardcode_direct" = yes; then
  49525. - add="$dir/$linklib"
  49526. - elif test "$hardcode_minus_L" = yes; then
  49527. - add_dir="-L$dir"
  49528. - # Try looking first in the location we're being installed to.
  49529. - if test -n "$inst_prefix_dir"; then
  49530. - case $libdir in
  49531. - [\\/]*)
  49532. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49533. - ;;
  49534. - esac
  49535. - fi
  49536. - add="-l$name"
  49537. - elif test "$hardcode_shlibpath_var" = yes; then
  49538. - add_shlibpath="$dir"
  49539. - add="-l$name"
  49540. - else
  49541. - lib_linked=no
  49542. - fi
  49543. - ;;
  49544. - *) lib_linked=no ;;
  49545. - esac
  49546. - if test "$lib_linked" != yes; then
  49547. - $echo "$modename: configuration error: unsupported hardcode properties"
  49548. - exit $EXIT_FAILURE
  49549. - fi
  49550. - if test -n "$add_shlibpath"; then
  49551. - case :$compile_shlibpath: in
  49552. - *":$add_shlibpath:"*) ;;
  49553. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  49554. - esac
  49555. - fi
  49556. - if test "$linkmode" = prog; then
  49557. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  49558. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  49559. - else
  49560. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49561. - test -n "$add" && deplibs="$add $deplibs"
  49562. - if test "$hardcode_direct" != yes && \
  49563. - test "$hardcode_minus_L" != yes && \
  49564. - test "$hardcode_shlibpath_var" = yes; then
  49565. - case :$finalize_shlibpath: in
  49566. - *":$libdir:"*) ;;
  49567. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49568. - esac
  49569. - fi
  49570. - fi
  49571. - fi
  49572. +# func_extract_an_archive dir oldlib
  49573. +func_extract_an_archive ()
  49574. +{
  49575. + $opt_debug
  49576. + f_ex_an_ar_dir="$1"; shift
  49577. + f_ex_an_ar_oldlib="$1"
  49578. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  49579. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  49580. + :
  49581. + else
  49582. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  49583. + fi
  49584. +}
  49585. - if test "$linkmode" = prog || test "$mode" = relink; then
  49586. - add_shlibpath=
  49587. - add_dir=
  49588. - add=
  49589. - # Finalize command for both is simple: just hardcode it.
  49590. - if test "$hardcode_direct" = yes; then
  49591. - add="$libdir/$linklib"
  49592. - elif test "$hardcode_minus_L" = yes; then
  49593. - add_dir="-L$libdir"
  49594. - add="-l$name"
  49595. - elif test "$hardcode_shlibpath_var" = yes; then
  49596. - case :$finalize_shlibpath: in
  49597. - *":$libdir:"*) ;;
  49598. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49599. - esac
  49600. - add="-l$name"
  49601. - elif test "$hardcode_automatic" = yes; then
  49602. - if test -n "$inst_prefix_dir" &&
  49603. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  49604. - add="$inst_prefix_dir$libdir/$linklib"
  49605. - else
  49606. - add="$libdir/$linklib"
  49607. - fi
  49608. - else
  49609. - # We cannot seem to hardcode it, guess we'll fake it.
  49610. - add_dir="-L$libdir"
  49611. - # Try looking first in the location we're being installed to.
  49612. - if test -n "$inst_prefix_dir"; then
  49613. - case $libdir in
  49614. - [\\/]*)
  49615. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49616. - ;;
  49617. - esac
  49618. - fi
  49619. - add="-l$name"
  49620. - fi
  49621. - if test "$linkmode" = prog; then
  49622. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  49623. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  49624. - else
  49625. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49626. - test -n "$add" && deplibs="$add $deplibs"
  49627. - fi
  49628. - fi
  49629. - elif test "$linkmode" = prog; then
  49630. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  49631. - # is not unsupported. This is valid on all known static and
  49632. - # shared platforms.
  49633. - if test "$hardcode_direct" != unsupported; then
  49634. - test -n "$old_library" && linklib="$old_library"
  49635. - compile_deplibs="$dir/$linklib $compile_deplibs"
  49636. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  49637. - else
  49638. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  49639. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  49640. - fi
  49641. - elif test "$build_libtool_libs" = yes; then
  49642. - # Not a shared library
  49643. - if test "$deplibs_check_method" != pass_all; then
  49644. - # We're trying link a shared library against a static one
  49645. - # but the system doesn't support it.
  49646. +# func_extract_archives gentop oldlib ...
  49647. +func_extract_archives ()
  49648. +{
  49649. + $opt_debug
  49650. + my_gentop="$1"; shift
  49651. + my_oldlibs=${1+"$@"}
  49652. + my_oldobjs=""
  49653. + my_xlib=""
  49654. + my_xabs=""
  49655. + my_xdir=""
  49656. - # Just print a warning and add the library to dependency_libs so
  49657. - # that the program can be linked against the static library.
  49658. - $echo
  49659. - $echo "*** Warning: This system can not link to static lib archive $lib."
  49660. - $echo "*** I have the capability to make that library automatically link in when"
  49661. - $echo "*** you link to this library. But I can only do this if you have a"
  49662. - $echo "*** shared version of the library, which you do not appear to have."
  49663. - if test "$module" = yes; then
  49664. - $echo "*** But as you try to build a module library, libtool will still create "
  49665. - $echo "*** a static module, that should work as long as the dlopening application"
  49666. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  49667. - if test -z "$global_symbol_pipe"; then
  49668. - $echo
  49669. - $echo "*** However, this would only work if libtool was able to extract symbol"
  49670. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49671. - $echo "*** not find such a program. So, this module is probably useless."
  49672. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  49673. - fi
  49674. - if test "$build_old_libs" = no; then
  49675. - build_libtool_libs=module
  49676. - build_old_libs=yes
  49677. - else
  49678. - build_libtool_libs=no
  49679. - fi
  49680. - fi
  49681. + for my_xlib in $my_oldlibs; do
  49682. + # Extract the objects.
  49683. + case $my_xlib in
  49684. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  49685. + *) my_xabs=`pwd`"/$my_xlib" ;;
  49686. + esac
  49687. + func_basename "$my_xlib"
  49688. + my_xlib="$func_basename_result"
  49689. + my_xlib_u=$my_xlib
  49690. + while :; do
  49691. + case " $extracted_archives " in
  49692. + *" $my_xlib_u "*)
  49693. + func_arith $extracted_serial + 1
  49694. + extracted_serial=$func_arith_result
  49695. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  49696. + *) break ;;
  49697. + esac
  49698. + done
  49699. + extracted_archives="$extracted_archives $my_xlib_u"
  49700. + my_xdir="$my_gentop/$my_xlib_u"
  49701. +
  49702. + func_mkdir_p "$my_xdir"
  49703. +
  49704. + case $host in
  49705. + *-darwin*)
  49706. + func_verbose "Extracting $my_xabs"
  49707. + # Do not bother doing anything if just a dry run
  49708. + $opt_dry_run || {
  49709. + darwin_orig_dir=`pwd`
  49710. + cd $my_xdir || exit $?
  49711. + darwin_archive=$my_xabs
  49712. + darwin_curdir=`pwd`
  49713. + darwin_base_archive=`basename "$darwin_archive"`
  49714. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  49715. + if test -n "$darwin_arches"; then
  49716. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  49717. + darwin_arch=
  49718. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  49719. + for darwin_arch in $darwin_arches ; do
  49720. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49721. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  49722. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49723. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  49724. + cd "$darwin_curdir"
  49725. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  49726. + done # $darwin_arches
  49727. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  49728. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  49729. + darwin_file=
  49730. + darwin_files=
  49731. + for darwin_file in $darwin_filelist; do
  49732. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  49733. + $LIPO -create -output "$darwin_file" $darwin_files
  49734. + done # $darwin_filelist
  49735. + $RM -rf unfat-$$
  49736. + cd "$darwin_orig_dir"
  49737. else
  49738. - deplibs="$dir/$old_library $deplibs"
  49739. - link_static=yes
  49740. - fi
  49741. - fi # link shared/static library?
  49742. + cd $darwin_orig_dir
  49743. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49744. + fi # $darwin_arches
  49745. + } # !$opt_dry_run
  49746. + ;;
  49747. + *)
  49748. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49749. + ;;
  49750. + esac
  49751. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  49752. + done
  49753. - if test "$linkmode" = lib; then
  49754. - if test -n "$dependency_libs" &&
  49755. - { test "$hardcode_into_libs" != yes ||
  49756. - test "$build_old_libs" = yes ||
  49757. - test "$link_static" = yes; }; then
  49758. - # Extract -R from dependency_libs
  49759. - temp_deplibs=
  49760. - for libdir in $dependency_libs; do
  49761. - case $libdir in
  49762. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  49763. - case " $xrpath " in
  49764. - *" $temp_xrpath "*) ;;
  49765. - *) xrpath="$xrpath $temp_xrpath";;
  49766. - esac;;
  49767. - *) temp_deplibs="$temp_deplibs $libdir";;
  49768. - esac
  49769. - done
  49770. - dependency_libs="$temp_deplibs"
  49771. - fi
  49772. + func_extract_archives_result="$my_oldobjs"
  49773. +}
  49774. - newlib_search_path="$newlib_search_path $absdir"
  49775. - # Link against this library
  49776. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  49777. - # ... and its dependency_libs
  49778. - tmp_libs=
  49779. - for deplib in $dependency_libs; do
  49780. - newdependency_libs="$deplib $newdependency_libs"
  49781. - if test "X$duplicate_deps" = "Xyes" ; then
  49782. - case "$tmp_libs " in
  49783. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49784. - esac
  49785. - fi
  49786. - tmp_libs="$tmp_libs $deplib"
  49787. - done
  49788. - if test "$link_all_deplibs" != no; then
  49789. - # Add the search paths of all dependency libraries
  49790. - for deplib in $dependency_libs; do
  49791. - case $deplib in
  49792. - -L*) path="$deplib" ;;
  49793. - *.la)
  49794. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  49795. - test "X$dir" = "X$deplib" && dir="."
  49796. - # We need an absolute path.
  49797. - case $dir in
  49798. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  49799. - *)
  49800. - absdir=`cd "$dir" && pwd`
  49801. - if test -z "$absdir"; then
  49802. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  49803. - absdir="$dir"
  49804. - fi
  49805. - ;;
  49806. - esac
  49807. - if grep "^installed=no" $deplib > /dev/null; then
  49808. - path="$absdir/$objdir"
  49809. - else
  49810. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49811. - if test -z "$libdir"; then
  49812. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  49813. - exit $EXIT_FAILURE
  49814. - fi
  49815. - if test "$absdir" != "$libdir"; then
  49816. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  49817. - fi
  49818. - path="$absdir"
  49819. - fi
  49820. - depdepl=
  49821. - case $host in
  49822. - *-*-darwin*)
  49823. - # we do not want to link against static libs,
  49824. - # but need to link against shared
  49825. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  49826. - if test -n "$deplibrary_names" ; then
  49827. - for tmp in $deplibrary_names ; do
  49828. - depdepl=$tmp
  49829. - done
  49830. - if test -f "$path/$depdepl" ; then
  49831. - depdepl="$path/$depdepl"
  49832. - fi
  49833. - # do not add paths which are already there
  49834. - case " $newlib_search_path " in
  49835. - *" $path "*) ;;
  49836. - *) newlib_search_path="$newlib_search_path $path";;
  49837. - esac
  49838. - fi
  49839. - path=""
  49840. - ;;
  49841. - *)
  49842. - path="-L$path"
  49843. - ;;
  49844. - esac
  49845. - ;;
  49846. - -l*)
  49847. - case $host in
  49848. - *-*-darwin*)
  49849. - # Again, we only want to link against shared libraries
  49850. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  49851. - for tmp in $newlib_search_path ; do
  49852. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  49853. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  49854. - break
  49855. - fi
  49856. - done
  49857. - path=""
  49858. - ;;
  49859. - *) continue ;;
  49860. - esac
  49861. - ;;
  49862. - *) continue ;;
  49863. - esac
  49864. - case " $deplibs " in
  49865. - *" $path "*) ;;
  49866. - *) deplibs="$path $deplibs" ;;
  49867. - esac
  49868. - case " $deplibs " in
  49869. - *" $depdepl "*) ;;
  49870. - *) deplibs="$depdepl $deplibs" ;;
  49871. - esac
  49872. - done
  49873. - fi # link_all_deplibs != no
  49874. - fi # linkmode = lib
  49875. - done # for deplib in $libs
  49876. - dependency_libs="$newdependency_libs"
  49877. - if test "$pass" = dlpreopen; then
  49878. - # Link the dlpreopened libraries before other libraries
  49879. - for deplib in $save_deplibs; do
  49880. - deplibs="$deplib $deplibs"
  49881. - done
  49882. - fi
  49883. - if test "$pass" != dlopen; then
  49884. - if test "$pass" != conv; then
  49885. - # Make sure lib_search_path contains only unique directories.
  49886. - lib_search_path=
  49887. - for dir in $newlib_search_path; do
  49888. - case "$lib_search_path " in
  49889. - *" $dir "*) ;;
  49890. - *) lib_search_path="$lib_search_path $dir" ;;
  49891. - esac
  49892. - done
  49893. - newlib_search_path=
  49894. - fi
  49895. - if test "$linkmode,$pass" != "prog,link"; then
  49896. - vars="deplibs"
  49897. - else
  49898. - vars="compile_deplibs finalize_deplibs"
  49899. +# func_emit_wrapper_part1 [arg=no]
  49900. +#
  49901. +# Emit the first part of a libtool wrapper script on stdout.
  49902. +# For more information, see the description associated with
  49903. +# func_emit_wrapper(), below.
  49904. +func_emit_wrapper_part1 ()
  49905. +{
  49906. + func_emit_wrapper_part1_arg1=no
  49907. + if test -n "$1" ; then
  49908. + func_emit_wrapper_part1_arg1=$1
  49909. fi
  49910. - for var in $vars dependency_libs; do
  49911. - # Add libraries to $var in reverse order
  49912. - eval tmp_libs=\"\$$var\"
  49913. - new_libs=
  49914. - for deplib in $tmp_libs; do
  49915. - # FIXME: Pedantically, this is the right thing to do, so
  49916. - # that some nasty dependency loop isn't accidentally
  49917. - # broken:
  49918. - #new_libs="$deplib $new_libs"
  49919. - # Pragmatically, this seems to cause very few problems in
  49920. - # practice:
  49921. - case $deplib in
  49922. - -L*) new_libs="$deplib $new_libs" ;;
  49923. - -R*) ;;
  49924. - *)
  49925. - # And here is the reason: when a library appears more
  49926. - # than once as an explicit dependence of a library, or
  49927. - # is implicitly linked in more than once by the
  49928. - # compiler, it is considered special, and multiple
  49929. - # occurrences thereof are not removed. Compare this
  49930. - # with having the same library being listed as a
  49931. - # dependency of multiple other libraries: in this case,
  49932. - # we know (pedantically, we assume) the library does not
  49933. - # need to be listed more than once, so we keep only the
  49934. - # last copy. This is not always right, but it is rare
  49935. - # enough that we require users that really mean to play
  49936. - # such unportable linking tricks to link the library
  49937. - # using -Wl,-lname, so that libtool does not consider it
  49938. - # for duplicate removal.
  49939. - case " $specialdeplibs " in
  49940. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  49941. - *)
  49942. - case " $new_libs " in
  49943. - *" $deplib "*) ;;
  49944. - *) new_libs="$deplib $new_libs" ;;
  49945. - esac
  49946. - ;;
  49947. - esac
  49948. - ;;
  49949. - esac
  49950. - done
  49951. - tmp_libs=
  49952. - for deplib in $new_libs; do
  49953. - case $deplib in
  49954. - -L*)
  49955. - case " $tmp_libs " in
  49956. - *" $deplib "*) ;;
  49957. - *) tmp_libs="$tmp_libs $deplib" ;;
  49958. - esac
  49959. - ;;
  49960. - *) tmp_libs="$tmp_libs $deplib" ;;
  49961. - esac
  49962. - done
  49963. - eval $var=\"$tmp_libs\"
  49964. - done # for var
  49965. - fi
  49966. - # Last step: remove runtime libs from dependency_libs
  49967. - # (they stay in deplibs)
  49968. - tmp_libs=
  49969. - for i in $dependency_libs ; do
  49970. - case " $predeps $postdeps $compiler_lib_search_path " in
  49971. - *" $i "*)
  49972. - i=""
  49973. - ;;
  49974. - esac
  49975. - if test -n "$i" ; then
  49976. - tmp_libs="$tmp_libs $i"
  49977. - fi
  49978. - done
  49979. - dependency_libs=$tmp_libs
  49980. - done # for pass
  49981. - if test "$linkmode" = prog; then
  49982. - dlfiles="$newdlfiles"
  49983. - dlprefiles="$newdlprefiles"
  49984. - fi
  49985. - case $linkmode in
  49986. - oldlib)
  49987. - if test -n "$deplibs"; then
  49988. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  49989. - fi
  49990. + $ECHO "\
  49991. +#! $SHELL
  49992. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49993. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  49994. - fi
  49995. +# $output - temporary wrapper script for $objdir/$outputname
  49996. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49997. +#
  49998. +# The $output program cannot be directly executed until all the libtool
  49999. +# libraries that it depends on are installed.
  50000. +#
  50001. +# This wrapper script should never be moved out of the build directory.
  50002. +# If it is, it will not operate correctly.
  50003. - if test -n "$rpath"; then
  50004. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  50005. - fi
  50006. +# Sed substitution that helps us do robust quoting. It backslashifies
  50007. +# metacharacters that are still active within double-quoted strings.
  50008. +Xsed='${SED} -e 1s/^X//'
  50009. +sed_quote_subst='$sed_quote_subst'
  50010. - if test -n "$xrpath"; then
  50011. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  50012. - fi
  50013. +# Be Bourne compatible
  50014. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  50015. + emulate sh
  50016. + NULLCMD=:
  50017. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  50018. + # is contrary to our usage. Disable this feature.
  50019. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  50020. + setopt NO_GLOB_SUBST
  50021. +else
  50022. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  50023. +fi
  50024. +BIN_SH=xpg4; export BIN_SH # for Tru64
  50025. +DUALCASE=1; export DUALCASE # for MKS sh
  50026. - if test -n "$vinfo"; then
  50027. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  50028. - fi
  50029. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50030. +# if CDPATH is set.
  50031. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50032. - if test -n "$release"; then
  50033. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  50034. - fi
  50035. +relink_command=\"$relink_command\"
  50036. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  50037. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  50038. - fi
  50039. +# This environment variable determines our operation mode.
  50040. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  50041. + # install mode needs the following variables:
  50042. + generated_by_libtool_version='$macro_version'
  50043. + notinst_deplibs='$notinst_deplibs'
  50044. +else
  50045. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  50046. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50047. + ECHO=\"$qecho\"
  50048. + file=\"\$0\"
  50049. + # Make sure echo works.
  50050. + if test \"X\$1\" = X--no-reexec; then
  50051. + # Discard the --no-reexec flag, and continue.
  50052. + shift
  50053. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  50054. + # Yippee, \$ECHO works!
  50055. + :
  50056. + else
  50057. + # Restart under the correct shell, and then maybe \$ECHO will work.
  50058. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  50059. + fi
  50060. + fi\
  50061. +"
  50062. + $ECHO "\
  50063. - # Now set the variables for building old libraries.
  50064. - build_libtool_libs=no
  50065. - oldlibs="$output"
  50066. - objs="$objs$old_deplibs"
  50067. - ;;
  50068. + # Find the directory that this script lives in.
  50069. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  50070. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  50071. - lib)
  50072. - # Make sure we only generate libraries of the form `libNAME.la'.
  50073. - case $outputname in
  50074. - lib*)
  50075. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  50076. - eval shared_ext=\"$shrext_cmds\"
  50077. - eval libname=\"$libname_spec\"
  50078. - ;;
  50079. - *)
  50080. - if test "$module" = no; then
  50081. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  50082. - $echo "$help" 1>&2
  50083. - exit $EXIT_FAILURE
  50084. - fi
  50085. - if test "$need_lib_prefix" != no; then
  50086. - # Add the "lib" prefix for modules if required
  50087. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  50088. - eval shared_ext=\"$shrext_cmds\"
  50089. - eval libname=\"$libname_spec\"
  50090. - else
  50091. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  50092. - fi
  50093. - ;;
  50094. + # Follow symbolic links until we get to the real thisdir.
  50095. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  50096. + while test -n \"\$file\"; do
  50097. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  50098. +
  50099. + # If there was a directory component, then change thisdir.
  50100. + if test \"x\$destdir\" != \"x\$file\"; then
  50101. + case \"\$destdir\" in
  50102. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  50103. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  50104. esac
  50105. + fi
  50106. - if test -n "$objs"; then
  50107. - if test "$deplibs_check_method" != pass_all; then
  50108. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  50109. - exit $EXIT_FAILURE
  50110. - else
  50111. - $echo
  50112. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  50113. - $echo "*** objects $objs is not portable!"
  50114. - libobjs="$libobjs $objs"
  50115. - fi
  50116. - fi
  50117. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  50118. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  50119. + done
  50120. +"
  50121. +}
  50122. +# end: func_emit_wrapper_part1
  50123. - if test "$dlself" != no; then
  50124. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  50125. - fi
  50126. +# func_emit_wrapper_part2 [arg=no]
  50127. +#
  50128. +# Emit the second part of a libtool wrapper script on stdout.
  50129. +# For more information, see the description associated with
  50130. +# func_emit_wrapper(), below.
  50131. +func_emit_wrapper_part2 ()
  50132. +{
  50133. + func_emit_wrapper_part2_arg1=no
  50134. + if test -n "$1" ; then
  50135. + func_emit_wrapper_part2_arg1=$1
  50136. + fi
  50137. +
  50138. + $ECHO "\
  50139. +
  50140. + # Usually 'no', except on cygwin/mingw when embedded into
  50141. + # the cwrapper.
  50142. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  50143. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  50144. + # special case for '.'
  50145. + if test \"\$thisdir\" = \".\"; then
  50146. + thisdir=\`pwd\`
  50147. + fi
  50148. + # remove .libs from thisdir
  50149. + case \"\$thisdir\" in
  50150. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  50151. + $objdir ) thisdir=. ;;
  50152. + esac
  50153. + fi
  50154. - set dummy $rpath
  50155. - if test "$#" -gt 2; then
  50156. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  50157. + # Try to get the absolute directory name.
  50158. + absdir=\`cd \"\$thisdir\" && pwd\`
  50159. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  50160. +"
  50161. +
  50162. + if test "$fast_install" = yes; then
  50163. + $ECHO "\
  50164. + program=lt-'$outputname'$exeext
  50165. + progdir=\"\$thisdir/$objdir\"
  50166. +
  50167. + if test ! -f \"\$progdir/\$program\" ||
  50168. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  50169. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  50170. +
  50171. + file=\"\$\$-\$program\"
  50172. +
  50173. + if test ! -d \"\$progdir\"; then
  50174. + $MKDIR \"\$progdir\"
  50175. + else
  50176. + $RM \"\$progdir/\$file\"
  50177. + fi"
  50178. +
  50179. + $ECHO "\
  50180. +
  50181. + # relink executable if necessary
  50182. + if test -n \"\$relink_command\"; then
  50183. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  50184. + else
  50185. + $ECHO \"\$relink_command_output\" >&2
  50186. + $RM \"\$progdir/\$file\"
  50187. + exit 1
  50188. fi
  50189. - install_libdir="$2"
  50190. + fi
  50191. - oldlibs=
  50192. - if test -z "$rpath"; then
  50193. - if test "$build_libtool_libs" = yes; then
  50194. - # Building a libtool convenience library.
  50195. - # Some compilers have problems with a `.al' extension so
  50196. - # convenience libraries should have the same extension an
  50197. - # archive normally would.
  50198. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  50199. - build_libtool_libs=convenience
  50200. - build_old_libs=yes
  50201. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  50202. + { $RM \"\$progdir/\$program\";
  50203. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  50204. + $RM \"\$progdir/\$file\"
  50205. + fi"
  50206. + else
  50207. + $ECHO "\
  50208. + program='$outputname'
  50209. + progdir=\"\$thisdir/$objdir\"
  50210. +"
  50211. fi
  50212. - if test -n "$vinfo"; then
  50213. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  50214. - fi
  50215. + $ECHO "\
  50216. - if test -n "$release"; then
  50217. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  50218. - fi
  50219. - else
  50220. + if test -f \"\$progdir/\$program\"; then"
  50221. - # Parse the version information argument.
  50222. - save_ifs="$IFS"; IFS=':'
  50223. - set dummy $vinfo 0 0 0
  50224. - IFS="$save_ifs"
  50225. + # Export our shlibpath_var if we have one.
  50226. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50227. + $ECHO "\
  50228. + # Add our own library path to $shlibpath_var
  50229. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  50230. - if test -n "$8"; then
  50231. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  50232. - $echo "$help" 1>&2
  50233. - exit $EXIT_FAILURE
  50234. - fi
  50235. + # Some systems cannot cope with colon-terminated $shlibpath_var
  50236. + # The second colon is a workaround for a bug in BeOS R4 sed
  50237. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  50238. - # convert absolute version numbers to libtool ages
  50239. - # this retains compatibility with .la files and attempts
  50240. - # to make the code below a bit more comprehensible
  50241. + export $shlibpath_var
  50242. +"
  50243. + fi
  50244. - case $vinfo_number in
  50245. - yes)
  50246. - number_major="$2"
  50247. - number_minor="$3"
  50248. - number_revision="$4"
  50249. - #
  50250. - # There are really only two kinds -- those that
  50251. - # use the current revision as the major version
  50252. - # and those that subtract age and use age as
  50253. - # a minor version. But, then there is irix
  50254. - # which has an extra 1 added just for fun
  50255. - #
  50256. - case $version_type in
  50257. - darwin|linux|osf|windows)
  50258. - current=`expr $number_major + $number_minor`
  50259. - age="$number_minor"
  50260. - revision="$number_revision"
  50261. - ;;
  50262. - freebsd-aout|freebsd-elf|sunos)
  50263. - current="$number_major"
  50264. - revision="$number_minor"
  50265. - age="0"
  50266. - ;;
  50267. - irix|nonstopux)
  50268. - current=`expr $number_major + $number_minor - 1`
  50269. - age="$number_minor"
  50270. - revision="$number_minor"
  50271. - ;;
  50272. - *)
  50273. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  50274. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  50275. - exit $EXIT_FAILURE
  50276. - ;;
  50277. - esac
  50278. - ;;
  50279. - no)
  50280. - current="$2"
  50281. - revision="$3"
  50282. - age="$4"
  50283. - ;;
  50284. - esac
  50285. + # fixup the dll searchpath if we need to.
  50286. + if test -n "$dllsearchpath"; then
  50287. + $ECHO "\
  50288. + # Add the dll search path components to the executable PATH
  50289. + PATH=$dllsearchpath:\$PATH
  50290. +"
  50291. + fi
  50292. - # Check that each of the things are valid numbers.
  50293. - case $current in
  50294. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  50295. - *)
  50296. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  50297. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50298. - exit $EXIT_FAILURE
  50299. + $ECHO "\
  50300. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50301. + # Run the actual program with our arguments.
  50302. +"
  50303. + case $host in
  50304. + # Backslashes separate directories on plain windows
  50305. + *-*-mingw | *-*-os2* | *-cegcc*)
  50306. + $ECHO "\
  50307. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  50308. +"
  50309. ;;
  50310. - esac
  50311. - case $revision in
  50312. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  50313. *)
  50314. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  50315. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50316. - exit $EXIT_FAILURE
  50317. + $ECHO "\
  50318. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  50319. +"
  50320. ;;
  50321. esac
  50322. + $ECHO "\
  50323. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  50324. + exit 1
  50325. + fi
  50326. + else
  50327. + # The program doesn't exist.
  50328. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  50329. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  50330. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  50331. + exit 1
  50332. + fi
  50333. +fi\
  50334. +"
  50335. +}
  50336. +# end: func_emit_wrapper_part2
  50337. - case $age in
  50338. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  50339. - *)
  50340. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  50341. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50342. - exit $EXIT_FAILURE
  50343. - ;;
  50344. - esac
  50345. - if test "$age" -gt "$current"; then
  50346. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  50347. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50348. - exit $EXIT_FAILURE
  50349. +# func_emit_wrapper [arg=no]
  50350. +#
  50351. +# Emit a libtool wrapper script on stdout.
  50352. +# Don't directly open a file because we may want to
  50353. +# incorporate the script contents within a cygwin/mingw
  50354. +# wrapper executable. Must ONLY be called from within
  50355. +# func_mode_link because it depends on a number of variables
  50356. +# set therein.
  50357. +#
  50358. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  50359. +# variable will take. If 'yes', then the emitted script
  50360. +# will assume that the directory in which it is stored is
  50361. +# the $objdir directory. This is a cygwin/mingw-specific
  50362. +# behavior.
  50363. +func_emit_wrapper ()
  50364. +{
  50365. + func_emit_wrapper_arg1=no
  50366. + if test -n "$1" ; then
  50367. + func_emit_wrapper_arg1=$1
  50368. fi
  50369. - # Calculate the version variables.
  50370. - major=
  50371. - versuffix=
  50372. - verstring=
  50373. - case $version_type in
  50374. - none) ;;
  50375. -
  50376. - darwin)
  50377. - # Like Linux, but with the current version available in
  50378. - # verstring for coding it into the library header
  50379. - major=.`expr $current - $age`
  50380. - versuffix="$major.$age.$revision"
  50381. - # Darwin ld doesn't like 0 for these options...
  50382. - minor_current=`expr $current + 1`
  50383. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  50384. - ;;
  50385. -
  50386. - freebsd-aout)
  50387. - major=".$current"
  50388. - versuffix=".$current.$revision";
  50389. - ;;
  50390. + # split this up so that func_emit_cwrapperexe_src
  50391. + # can call each part independently.
  50392. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  50393. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  50394. +}
  50395. - freebsd-elf)
  50396. - major=".$current"
  50397. - versuffix=".$current";
  50398. - ;;
  50399. - irix | nonstopux)
  50400. - major=`expr $current - $age + 1`
  50401. +# func_to_host_path arg
  50402. +#
  50403. +# Convert paths to host format when used with build tools.
  50404. +# Intended for use with "native" mingw (where libtool itself
  50405. +# is running under the msys shell), or in the following cross-
  50406. +# build environments:
  50407. +# $build $host
  50408. +# mingw (msys) mingw [e.g. native]
  50409. +# cygwin mingw
  50410. +# *nix + wine mingw
  50411. +# where wine is equipped with the `winepath' executable.
  50412. +# In the native mingw case, the (msys) shell automatically
  50413. +# converts paths for any non-msys applications it launches,
  50414. +# but that facility isn't available from inside the cwrapper.
  50415. +# Similar accommodations are necessary for $host mingw and
  50416. +# $build cygwin. Calling this function does no harm for other
  50417. +# $host/$build combinations not listed above.
  50418. +#
  50419. +# ARG is the path (on $build) that should be converted to
  50420. +# the proper representation for $host. The result is stored
  50421. +# in $func_to_host_path_result.
  50422. +func_to_host_path ()
  50423. +{
  50424. + func_to_host_path_result="$1"
  50425. + if test -n "$1" ; then
  50426. + case $host in
  50427. + *mingw* )
  50428. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50429. + case $build in
  50430. + *mingw* ) # actually, msys
  50431. + # awkward: cmd appends spaces to result
  50432. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50433. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  50434. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50435. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50436. + $SED -e "$lt_sed_naive_backslashify"`
  50437. + ;;
  50438. + *cygwin* )
  50439. + func_to_host_path_tmp1=`cygpath -w "$1"`
  50440. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50441. + $SED -e "$lt_sed_naive_backslashify"`
  50442. + ;;
  50443. + * )
  50444. + # Unfortunately, winepath does not exit with a non-zero
  50445. + # error code, so we are forced to check the contents of
  50446. + # stdout. On the other hand, if the command is not
  50447. + # found, the shell will set an exit code of 127 and print
  50448. + # *an error message* to stdout. So we must check for both
  50449. + # error code of zero AND non-empty stdout, which explains
  50450. + # the odd construction:
  50451. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  50452. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  50453. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50454. + $SED -e "$lt_sed_naive_backslashify"`
  50455. + else
  50456. + # Allow warning below.
  50457. + func_to_host_path_result=""
  50458. + fi
  50459. + ;;
  50460. + esac
  50461. + if test -z "$func_to_host_path_result" ; then
  50462. + func_error "Could not determine host path corresponding to"
  50463. + func_error " '$1'"
  50464. + func_error "Continuing, but uninstalled executables may not work."
  50465. + # Fallback:
  50466. + func_to_host_path_result="$1"
  50467. + fi
  50468. + ;;
  50469. + esac
  50470. + fi
  50471. +}
  50472. +# end: func_to_host_path
  50473. - case $version_type in
  50474. - nonstopux) verstring_prefix=nonstopux ;;
  50475. - *) verstring_prefix=sgi ;;
  50476. - esac
  50477. - verstring="$verstring_prefix$major.$revision"
  50478. +# func_to_host_pathlist arg
  50479. +#
  50480. +# Convert pathlists to host format when used with build tools.
  50481. +# See func_to_host_path(), above. This function supports the
  50482. +# following $build/$host combinations (but does no harm for
  50483. +# combinations not listed here):
  50484. +# $build $host
  50485. +# mingw (msys) mingw [e.g. native]
  50486. +# cygwin mingw
  50487. +# *nix + wine mingw
  50488. +#
  50489. +# Path separators are also converted from $build format to
  50490. +# $host format. If ARG begins or ends with a path separator
  50491. +# character, it is preserved (but converted to $host format)
  50492. +# on output.
  50493. +#
  50494. +# ARG is a pathlist (on $build) that should be converted to
  50495. +# the proper representation on $host. The result is stored
  50496. +# in $func_to_host_pathlist_result.
  50497. +func_to_host_pathlist ()
  50498. +{
  50499. + func_to_host_pathlist_result="$1"
  50500. + if test -n "$1" ; then
  50501. + case $host in
  50502. + *mingw* )
  50503. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50504. + # Remove leading and trailing path separator characters from
  50505. + # ARG. msys behavior is inconsistent here, cygpath turns them
  50506. + # into '.;' and ';.', and winepath ignores them completely.
  50507. + func_to_host_pathlist_tmp2="$1"
  50508. + # Once set for this call, this variable should not be
  50509. + # reassigned. It is used in tha fallback case.
  50510. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  50511. + $SED -e 's|^:*||' -e 's|:*$||'`
  50512. + case $build in
  50513. + *mingw* ) # Actually, msys.
  50514. + # Awkward: cmd appends spaces to result.
  50515. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50516. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  50517. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50518. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50519. + $SED -e "$lt_sed_naive_backslashify"`
  50520. + ;;
  50521. + *cygwin* )
  50522. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  50523. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50524. + $SED -e "$lt_sed_naive_backslashify"`
  50525. + ;;
  50526. + * )
  50527. + # unfortunately, winepath doesn't convert pathlists
  50528. + func_to_host_pathlist_result=""
  50529. + func_to_host_pathlist_oldIFS=$IFS
  50530. + IFS=:
  50531. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  50532. + IFS=$func_to_host_pathlist_oldIFS
  50533. + if test -n "$func_to_host_pathlist_f" ; then
  50534. + func_to_host_path "$func_to_host_pathlist_f"
  50535. + if test -n "$func_to_host_path_result" ; then
  50536. + if test -z "$func_to_host_pathlist_result" ; then
  50537. + func_to_host_pathlist_result="$func_to_host_path_result"
  50538. + else
  50539. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  50540. + fi
  50541. + fi
  50542. + fi
  50543. + IFS=:
  50544. + done
  50545. + IFS=$func_to_host_pathlist_oldIFS
  50546. + ;;
  50547. + esac
  50548. + if test -z "$func_to_host_pathlist_result" ; then
  50549. + func_error "Could not determine the host path(s) corresponding to"
  50550. + func_error " '$1'"
  50551. + func_error "Continuing, but uninstalled executables may not work."
  50552. + # Fallback. This may break if $1 contains DOS-style drive
  50553. + # specifications. The fix is not to complicate the expression
  50554. + # below, but for the user to provide a working wine installation
  50555. + # with winepath so that path translation in the cross-to-mingw
  50556. + # case works properly.
  50557. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  50558. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  50559. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  50560. + fi
  50561. + # Now, add the leading and trailing path separators back
  50562. + case "$1" in
  50563. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  50564. + ;;
  50565. + esac
  50566. + case "$1" in
  50567. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  50568. + ;;
  50569. + esac
  50570. + ;;
  50571. + esac
  50572. + fi
  50573. +}
  50574. +# end: func_to_host_pathlist
  50575. - # Add in all the interfaces that we are compatible with.
  50576. - loop=$revision
  50577. - while test "$loop" -ne 0; do
  50578. - iface=`expr $revision - $loop`
  50579. - loop=`expr $loop - 1`
  50580. - verstring="$verstring_prefix$major.$iface:$verstring"
  50581. - done
  50582. +# func_emit_cwrapperexe_src
  50583. +# emit the source code for a wrapper executable on stdout
  50584. +# Must ONLY be called from within func_mode_link because
  50585. +# it depends on a number of variable set therein.
  50586. +func_emit_cwrapperexe_src ()
  50587. +{
  50588. + cat <<EOF
  50589. - # Before this point, $major must not contain `.'.
  50590. - major=.$major
  50591. - versuffix="$major.$revision"
  50592. - ;;
  50593. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  50594. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50595. - linux)
  50596. - major=.`expr $current - $age`
  50597. - versuffix="$major.$age.$revision"
  50598. - ;;
  50599. + The $output program cannot be directly executed until all the libtool
  50600. + libraries that it depends on are installed.
  50601. - osf)
  50602. - major=.`expr $current - $age`
  50603. - versuffix=".$current.$age.$revision"
  50604. - verstring="$current.$age.$revision"
  50605. + This wrapper executable should never be moved out of the build directory.
  50606. + If it is, it will not operate correctly.
  50607. - # Add in all the interfaces that we are compatible with.
  50608. - loop=$age
  50609. - while test "$loop" -ne 0; do
  50610. - iface=`expr $current - $loop`
  50611. - loop=`expr $loop - 1`
  50612. - verstring="$verstring:${iface}.0"
  50613. - done
  50614. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  50615. + but could eventually absorb all of the scripts functionality and
  50616. + exec $objdir/$outputname directly.
  50617. +*/
  50618. +EOF
  50619. + cat <<"EOF"
  50620. +#include <stdio.h>
  50621. +#include <stdlib.h>
  50622. +#ifdef _MSC_VER
  50623. +# include <direct.h>
  50624. +# include <process.h>
  50625. +# include <io.h>
  50626. +# define setmode _setmode
  50627. +#else
  50628. +# include <unistd.h>
  50629. +# include <stdint.h>
  50630. +# ifdef __CYGWIN__
  50631. +# include <io.h>
  50632. +# define HAVE_SETENV
  50633. +# ifdef __STRICT_ANSI__
  50634. +char *realpath (const char *, char *);
  50635. +int putenv (char *);
  50636. +int setenv (const char *, const char *, int);
  50637. +# endif
  50638. +# endif
  50639. +#endif
  50640. +#include <malloc.h>
  50641. +#include <stdarg.h>
  50642. +#include <assert.h>
  50643. +#include <string.h>
  50644. +#include <ctype.h>
  50645. +#include <errno.h>
  50646. +#include <fcntl.h>
  50647. +#include <sys/stat.h>
  50648. - # Make executables depend on our current version.
  50649. - verstring="$verstring:${current}.0"
  50650. - ;;
  50651. +#if defined(PATH_MAX)
  50652. +# define LT_PATHMAX PATH_MAX
  50653. +#elif defined(MAXPATHLEN)
  50654. +# define LT_PATHMAX MAXPATHLEN
  50655. +#else
  50656. +# define LT_PATHMAX 1024
  50657. +#endif
  50658. - sunos)
  50659. - major=".$current"
  50660. - versuffix=".$current.$revision"
  50661. - ;;
  50662. +#ifndef S_IXOTH
  50663. +# define S_IXOTH 0
  50664. +#endif
  50665. +#ifndef S_IXGRP
  50666. +# define S_IXGRP 0
  50667. +#endif
  50668. - windows)
  50669. - # Use '-' rather than '.', since we only want one
  50670. - # extension on DOS 8.3 filesystems.
  50671. - major=`expr $current - $age`
  50672. - versuffix="-$major"
  50673. - ;;
  50674. +#ifdef _MSC_VER
  50675. +# define S_IXUSR _S_IEXEC
  50676. +# define stat _stat
  50677. +# ifndef _INTPTR_T_DEFINED
  50678. +# define intptr_t int
  50679. +# endif
  50680. +#endif
  50681. - *)
  50682. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  50683. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  50684. - exit $EXIT_FAILURE
  50685. - ;;
  50686. - esac
  50687. +#ifndef DIR_SEPARATOR
  50688. +# define DIR_SEPARATOR '/'
  50689. +# define PATH_SEPARATOR ':'
  50690. +#endif
  50691. - # Clear the version info if we defaulted, and they specified a release.
  50692. - if test -z "$vinfo" && test -n "$release"; then
  50693. - major=
  50694. - case $version_type in
  50695. - darwin)
  50696. - # we can't check for "0.0" in archive_cmds due to quoting
  50697. - # problems, so we reset it completely
  50698. - verstring=
  50699. - ;;
  50700. - *)
  50701. - verstring="0.0"
  50702. - ;;
  50703. - esac
  50704. - if test "$need_version" = no; then
  50705. - versuffix=
  50706. - else
  50707. - versuffix=".0.0"
  50708. - fi
  50709. - fi
  50710. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  50711. + defined (__OS2__)
  50712. +# define HAVE_DOS_BASED_FILE_SYSTEM
  50713. +# define FOPEN_WB "wb"
  50714. +# ifndef DIR_SEPARATOR_2
  50715. +# define DIR_SEPARATOR_2 '\\'
  50716. +# endif
  50717. +# ifndef PATH_SEPARATOR_2
  50718. +# define PATH_SEPARATOR_2 ';'
  50719. +# endif
  50720. +#endif
  50721. - # Remove version info from name if versioning should be avoided
  50722. - if test "$avoid_version" = yes && test "$need_version" = no; then
  50723. - major=
  50724. - versuffix=
  50725. - verstring=""
  50726. - fi
  50727. +#ifndef DIR_SEPARATOR_2
  50728. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  50729. +#else /* DIR_SEPARATOR_2 */
  50730. +# define IS_DIR_SEPARATOR(ch) \
  50731. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  50732. +#endif /* DIR_SEPARATOR_2 */
  50733. - # Check to see if the archive will have undefined symbols.
  50734. - if test "$allow_undefined" = yes; then
  50735. - if test "$allow_undefined_flag" = unsupported; then
  50736. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  50737. - build_libtool_libs=no
  50738. - build_old_libs=yes
  50739. - fi
  50740. - else
  50741. - # Don't allow undefined symbols.
  50742. - allow_undefined_flag="$no_undefined_flag"
  50743. - fi
  50744. - fi
  50745. +#ifndef PATH_SEPARATOR_2
  50746. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  50747. +#else /* PATH_SEPARATOR_2 */
  50748. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  50749. +#endif /* PATH_SEPARATOR_2 */
  50750. - if test "$mode" != relink; then
  50751. - # Remove our outputs, but don't remove object files since they
  50752. - # may have been created when compiling PIC objects.
  50753. - removelist=
  50754. - tempremovelist=`$echo "$output_objdir/*"`
  50755. - for p in $tempremovelist; do
  50756. - case $p in
  50757. - *.$objext)
  50758. - ;;
  50759. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  50760. - if test "X$precious_files_regex" != "X"; then
  50761. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  50762. - then
  50763. - continue
  50764. - fi
  50765. - fi
  50766. - removelist="$removelist $p"
  50767. - ;;
  50768. - *) ;;
  50769. - esac
  50770. - done
  50771. - if test -n "$removelist"; then
  50772. - $show "${rm}r $removelist"
  50773. - $run ${rm}r $removelist
  50774. - fi
  50775. - fi
  50776. +#ifdef __CYGWIN__
  50777. +# define FOPEN_WB "wb"
  50778. +#endif
  50779. - # Now set the variables for building old libraries.
  50780. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  50781. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  50782. +#ifndef FOPEN_WB
  50783. +# define FOPEN_WB "w"
  50784. +#endif
  50785. +#ifndef _O_BINARY
  50786. +# define _O_BINARY 0
  50787. +#endif
  50788. - # Transform .lo files to .o files.
  50789. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  50790. - fi
  50791. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  50792. +#define XFREE(stale) do { \
  50793. + if (stale) { free ((void *) stale); stale = 0; } \
  50794. +} while (0)
  50795. - # Eliminate all temporary directories.
  50796. - for path in $notinst_path; do
  50797. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  50798. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  50799. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  50800. - done
  50801. +#undef LTWRAPPER_DEBUGPRINTF
  50802. +#if defined DEBUGWRAPPER
  50803. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  50804. +static void
  50805. +ltwrapper_debugprintf (const char *fmt, ...)
  50806. +{
  50807. + va_list args;
  50808. + va_start (args, fmt);
  50809. + (void) vfprintf (stderr, fmt, args);
  50810. + va_end (args);
  50811. +}
  50812. +#else
  50813. +# define LTWRAPPER_DEBUGPRINTF(args)
  50814. +#endif
  50815. - if test -n "$xrpath"; then
  50816. - # If the user specified any rpath flags, then add them.
  50817. - temp_xrpath=
  50818. - for libdir in $xrpath; do
  50819. - temp_xrpath="$temp_xrpath -R$libdir"
  50820. - case "$finalize_rpath " in
  50821. - *" $libdir "*) ;;
  50822. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  50823. - esac
  50824. - done
  50825. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  50826. - dependency_libs="$temp_xrpath $dependency_libs"
  50827. - fi
  50828. - fi
  50829. +const char *program_name = NULL;
  50830. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  50831. - old_dlfiles="$dlfiles"
  50832. - dlfiles=
  50833. - for lib in $old_dlfiles; do
  50834. - case " $dlprefiles $dlfiles " in
  50835. - *" $lib "*) ;;
  50836. - *) dlfiles="$dlfiles $lib" ;;
  50837. - esac
  50838. - done
  50839. +void *xmalloc (size_t num);
  50840. +char *xstrdup (const char *string);
  50841. +const char *base_name (const char *name);
  50842. +char *find_executable (const char *wrapper);
  50843. +char *chase_symlinks (const char *pathspec);
  50844. +int make_executable (const char *path);
  50845. +int check_executable (const char *path);
  50846. +char *strendzap (char *str, const char *pat);
  50847. +void lt_fatal (const char *message, ...);
  50848. +void lt_setenv (const char *name, const char *value);
  50849. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  50850. +void lt_opt_process_env_set (const char *arg);
  50851. +void lt_opt_process_env_prepend (const char *arg);
  50852. +void lt_opt_process_env_append (const char *arg);
  50853. +int lt_split_name_value (const char *arg, char** name, char** value);
  50854. +void lt_update_exe_path (const char *name, const char *value);
  50855. +void lt_update_lib_path (const char *name, const char *value);
  50856. - # Make sure dlprefiles contains only unique files
  50857. - old_dlprefiles="$dlprefiles"
  50858. - dlprefiles=
  50859. - for lib in $old_dlprefiles; do
  50860. - case "$dlprefiles " in
  50861. - *" $lib "*) ;;
  50862. - *) dlprefiles="$dlprefiles $lib" ;;
  50863. - esac
  50864. - done
  50865. +static const char *script_text_part1 =
  50866. +EOF
  50867. - if test "$build_libtool_libs" = yes; then
  50868. - if test -n "$rpath"; then
  50869. - case $host in
  50870. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  50871. - # these systems don't actually have a c library (as such)!
  50872. - ;;
  50873. - *-*-rhapsody* | *-*-darwin1.[012])
  50874. - # Rhapsody C library is in the System framework
  50875. - deplibs="$deplibs -framework System"
  50876. - ;;
  50877. - *-*-netbsd*)
  50878. - # Don't link with libc until the a.out ld.so is fixed.
  50879. - ;;
  50880. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50881. - # Do not include libc due to us having libc/libc_r.
  50882. - ;;
  50883. - *-*-sco3.2v5* | *-*-sco5v6*)
  50884. - # Causes problems with __ctype
  50885. - ;;
  50886. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  50887. - # Compiler inserts libc in the correct place for threads to work
  50888. - ;;
  50889. - *)
  50890. - # Add libc to deplibs on all other systems if necessary.
  50891. - if test "$build_libtool_need_lc" = "yes"; then
  50892. - deplibs="$deplibs -lc"
  50893. - fi
  50894. - ;;
  50895. - esac
  50896. - fi
  50897. + func_emit_wrapper_part1 yes |
  50898. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50899. + -e 's/^/ "/' -e 's/$/\\n"/'
  50900. + echo ";"
  50901. + cat <<EOF
  50902. - # Transform deplibs into only deplibs that can be linked in shared.
  50903. - name_save=$name
  50904. - libname_save=$libname
  50905. - release_save=$release
  50906. - versuffix_save=$versuffix
  50907. - major_save=$major
  50908. - # I'm not sure if I'm treating the release correctly. I think
  50909. - # release should show up in the -l (ie -lgmp5) so we don't want to
  50910. - # add it in twice. Is that correct?
  50911. - release=""
  50912. - versuffix=""
  50913. - major=""
  50914. - newdeplibs=
  50915. - droppeddeps=no
  50916. - case $deplibs_check_method in
  50917. - pass_all)
  50918. - # Don't check for shared/static. Everything works.
  50919. - # This might be a little naive. We might want to check
  50920. - # whether the library exists or not. But this is on
  50921. - # osf3 & osf4 and I'm not really sure... Just
  50922. - # implementing what was already the behavior.
  50923. - newdeplibs=$deplibs
  50924. - ;;
  50925. - test_compile)
  50926. - # This code stresses the "libraries are programs" paradigm to its
  50927. - # limits. Maybe even breaks it. We compile a program, linking it
  50928. - # against the deplibs as a proxy for the library. Then we can check
  50929. - # whether they linked in statically or dynamically with ldd.
  50930. - $rm conftest.c
  50931. - cat > conftest.c <<EOF
  50932. - int main() { return 0; }
  50933. +static const char *script_text_part2 =
  50934. +EOF
  50935. + func_emit_wrapper_part2 yes |
  50936. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50937. + -e 's/^/ "/' -e 's/$/\\n"/'
  50938. + echo ";"
  50939. +
  50940. + cat <<EOF
  50941. +const char * MAGIC_EXE = "$magic_exe";
  50942. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  50943. +EOF
  50944. +
  50945. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50946. + func_to_host_pathlist "$temp_rpath"
  50947. + cat <<EOF
  50948. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  50949. EOF
  50950. - $rm conftest
  50951. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  50952. - if test "$?" -eq 0 ; then
  50953. - ldd_output=`ldd conftest`
  50954. - for i in $deplibs; do
  50955. - name=`expr $i : '-l\(.*\)'`
  50956. - # If $name is empty we are operating on a -L argument.
  50957. - if test "$name" != "" && test "$name" -ne "0"; then
  50958. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50959. - case " $predeps $postdeps " in
  50960. - *" $i "*)
  50961. - newdeplibs="$newdeplibs $i"
  50962. - i=""
  50963. - ;;
  50964. - esac
  50965. - fi
  50966. - if test -n "$i" ; then
  50967. - libname=`eval \\$echo \"$libname_spec\"`
  50968. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  50969. - set dummy $deplib_matches
  50970. - deplib_match=$2
  50971. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  50972. - newdeplibs="$newdeplibs $i"
  50973. - else
  50974. - droppeddeps=yes
  50975. - $echo
  50976. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  50977. - $echo "*** I have the capability to make that library automatically link in when"
  50978. - $echo "*** you link to this library. But I can only do this if you have a"
  50979. - $echo "*** shared version of the library, which I believe you do not have"
  50980. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  50981. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  50982. - fi
  50983. - fi
  50984. - else
  50985. - newdeplibs="$newdeplibs $i"
  50986. - fi
  50987. - done
  50988. - else
  50989. - # Error occurred in the first compile. Let's try to salvage
  50990. - # the situation: Compile a separate program for each library.
  50991. - for i in $deplibs; do
  50992. - name=`expr $i : '-l\(.*\)'`
  50993. - # If $name is empty we are operating on a -L argument.
  50994. - if test "$name" != "" && test "$name" != "0"; then
  50995. - $rm conftest
  50996. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  50997. - # Did it work?
  50998. - if test "$?" -eq 0 ; then
  50999. - ldd_output=`ldd conftest`
  51000. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51001. - case " $predeps $postdeps " in
  51002. - *" $i "*)
  51003. - newdeplibs="$newdeplibs $i"
  51004. - i=""
  51005. - ;;
  51006. - esac
  51007. - fi
  51008. - if test -n "$i" ; then
  51009. - libname=`eval \\$echo \"$libname_spec\"`
  51010. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  51011. - set dummy $deplib_matches
  51012. - deplib_match=$2
  51013. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  51014. - newdeplibs="$newdeplibs $i"
  51015. - else
  51016. - droppeddeps=yes
  51017. - $echo
  51018. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  51019. - $echo "*** I have the capability to make that library automatically link in when"
  51020. - $echo "*** you link to this library. But I can only do this if you have a"
  51021. - $echo "*** shared version of the library, which you do not appear to have"
  51022. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  51023. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  51024. - fi
  51025. - fi
  51026. - else
  51027. - droppeddeps=yes
  51028. - $echo
  51029. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  51030. - $echo "*** make it link in! You will probably need to install it or some"
  51031. - $echo "*** library that it depends on before this library will be fully"
  51032. - $echo "*** functional. Installing it before continuing would be even better."
  51033. - fi
  51034. - else
  51035. - newdeplibs="$newdeplibs $i"
  51036. - fi
  51037. - done
  51038. - fi
  51039. - ;;
  51040. - file_magic*)
  51041. - set dummy $deplibs_check_method
  51042. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51043. - for a_deplib in $deplibs; do
  51044. - name=`expr $a_deplib : '-l\(.*\)'`
  51045. - # If $name is empty we are operating on a -L argument.
  51046. - if test "$name" != "" && test "$name" != "0"; then
  51047. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51048. - case " $predeps $postdeps " in
  51049. - *" $a_deplib "*)
  51050. - newdeplibs="$newdeplibs $a_deplib"
  51051. - a_deplib=""
  51052. - ;;
  51053. - esac
  51054. - fi
  51055. - if test -n "$a_deplib" ; then
  51056. - libname=`eval \\$echo \"$libname_spec\"`
  51057. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51058. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51059. - for potent_lib in $potential_libs; do
  51060. - # Follow soft links.
  51061. - if ls -lLd "$potent_lib" 2>/dev/null \
  51062. - | grep " -> " >/dev/null; then
  51063. - continue
  51064. - fi
  51065. - # The statement above tries to avoid entering an
  51066. - # endless loop below, in case of cyclic links.
  51067. - # We might still enter an endless loop, since a link
  51068. - # loop can be closed while we follow links,
  51069. - # but so what?
  51070. - potlib="$potent_lib"
  51071. - while test -h "$potlib" 2>/dev/null; do
  51072. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  51073. - case $potliblink in
  51074. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  51075. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  51076. - esac
  51077. - done
  51078. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  51079. - | ${SED} 10q \
  51080. - | $EGREP "$file_magic_regex" > /dev/null; then
  51081. - newdeplibs="$newdeplibs $a_deplib"
  51082. - a_deplib=""
  51083. - break 2
  51084. - fi
  51085. - done
  51086. - done
  51087. - fi
  51088. - if test -n "$a_deplib" ; then
  51089. - droppeddeps=yes
  51090. - $echo
  51091. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51092. - $echo "*** I have the capability to make that library automatically link in when"
  51093. - $echo "*** you link to this library. But I can only do this if you have a"
  51094. - $echo "*** shared version of the library, which you do not appear to have"
  51095. - $echo "*** because I did check the linker path looking for a file starting"
  51096. - if test -z "$potlib" ; then
  51097. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  51098. - else
  51099. - $echo "*** with $libname and none of the candidates passed a file format test"
  51100. - $echo "*** using a file magic. Last file checked: $potlib"
  51101. - fi
  51102. - fi
  51103. else
  51104. - # Add a -L argument.
  51105. - newdeplibs="$newdeplibs $a_deplib"
  51106. + cat <<"EOF"
  51107. +const char * LIB_PATH_VALUE = "";
  51108. +EOF
  51109. fi
  51110. - done # Gone through all deplibs.
  51111. - ;;
  51112. - match_pattern*)
  51113. - set dummy $deplibs_check_method
  51114. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51115. - for a_deplib in $deplibs; do
  51116. - name=`expr $a_deplib : '-l\(.*\)'`
  51117. - # If $name is empty we are operating on a -L argument.
  51118. - if test -n "$name" && test "$name" != "0"; then
  51119. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51120. - case " $predeps $postdeps " in
  51121. - *" $a_deplib "*)
  51122. - newdeplibs="$newdeplibs $a_deplib"
  51123. - a_deplib=""
  51124. - ;;
  51125. - esac
  51126. - fi
  51127. - if test -n "$a_deplib" ; then
  51128. - libname=`eval \\$echo \"$libname_spec\"`
  51129. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51130. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51131. - for potent_lib in $potential_libs; do
  51132. - potlib="$potent_lib" # see symlink-check above in file_magic test
  51133. - if eval $echo \"$potent_lib\" 2>/dev/null \
  51134. - | ${SED} 10q \
  51135. - | $EGREP "$match_pattern_regex" > /dev/null; then
  51136. - newdeplibs="$newdeplibs $a_deplib"
  51137. - a_deplib=""
  51138. - break 2
  51139. - fi
  51140. - done
  51141. - done
  51142. - fi
  51143. - if test -n "$a_deplib" ; then
  51144. - droppeddeps=yes
  51145. - $echo
  51146. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51147. - $echo "*** I have the capability to make that library automatically link in when"
  51148. - $echo "*** you link to this library. But I can only do this if you have a"
  51149. - $echo "*** shared version of the library, which you do not appear to have"
  51150. - $echo "*** because I did check the linker path looking for a file starting"
  51151. - if test -z "$potlib" ; then
  51152. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  51153. - else
  51154. - $echo "*** with $libname and none of the candidates passed a file format test"
  51155. - $echo "*** using a regex pattern. Last file checked: $potlib"
  51156. - fi
  51157. - fi
  51158. +
  51159. + if test -n "$dllsearchpath"; then
  51160. + func_to_host_pathlist "$dllsearchpath:"
  51161. + cat <<EOF
  51162. +const char * EXE_PATH_VARNAME = "PATH";
  51163. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  51164. +EOF
  51165. else
  51166. - # Add a -L argument.
  51167. - newdeplibs="$newdeplibs $a_deplib"
  51168. + cat <<"EOF"
  51169. +const char * EXE_PATH_VARNAME = "";
  51170. +const char * EXE_PATH_VALUE = "";
  51171. +EOF
  51172. fi
  51173. - done # Gone through all deplibs.
  51174. - ;;
  51175. - none | unknown | *)
  51176. - newdeplibs=""
  51177. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  51178. - -e 's/ -[LR][^ ]*//g'`
  51179. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51180. - for i in $predeps $postdeps ; do
  51181. - # can't use Xsed below, because $i might contain '/'
  51182. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  51183. - done
  51184. - fi
  51185. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  51186. - | grep . >/dev/null; then
  51187. - $echo
  51188. - if test "X$deplibs_check_method" = "Xnone"; then
  51189. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  51190. +
  51191. + if test "$fast_install" = yes; then
  51192. + cat <<EOF
  51193. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  51194. +EOF
  51195. else
  51196. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  51197. + cat <<EOF
  51198. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  51199. +EOF
  51200. fi
  51201. - $echo "*** All declared inter-library dependencies are being dropped."
  51202. - droppeddeps=yes
  51203. - fi
  51204. - ;;
  51205. - esac
  51206. - versuffix=$versuffix_save
  51207. - major=$major_save
  51208. - release=$release_save
  51209. - libname=$libname_save
  51210. - name=$name_save
  51211. - case $host in
  51212. - *-*-rhapsody* | *-*-darwin1.[012])
  51213. - # On Rhapsody replace the C library is the System framework
  51214. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  51215. - ;;
  51216. - esac
  51217. - if test "$droppeddeps" = yes; then
  51218. - if test "$module" = yes; then
  51219. - $echo
  51220. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  51221. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  51222. - $echo "*** a static module, that should work as long as the dlopening"
  51223. - $echo "*** application is linked with the -dlopen flag."
  51224. - if test -z "$global_symbol_pipe"; then
  51225. - $echo
  51226. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51227. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51228. - $echo "*** not find such a program. So, this module is probably useless."
  51229. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51230. - fi
  51231. - if test "$build_old_libs" = no; then
  51232. - oldlibs="$output_objdir/$libname.$libext"
  51233. - build_libtool_libs=module
  51234. - build_old_libs=yes
  51235. - else
  51236. - build_libtool_libs=no
  51237. - fi
  51238. - else
  51239. - $echo "*** The inter-library dependencies that have been dropped here will be"
  51240. - $echo "*** automatically added whenever a program is linked with this library"
  51241. - $echo "*** or is declared to -dlopen it."
  51242. + cat <<"EOF"
  51243. - if test "$allow_undefined" = no; then
  51244. - $echo
  51245. - $echo "*** Since this library must not contain undefined symbols,"
  51246. - $echo "*** because either the platform does not support them or"
  51247. - $echo "*** it was explicitly requested with -no-undefined,"
  51248. - $echo "*** libtool will only create a static version of it."
  51249. - if test "$build_old_libs" = no; then
  51250. - oldlibs="$output_objdir/$libname.$libext"
  51251. - build_libtool_libs=module
  51252. - build_old_libs=yes
  51253. - else
  51254. - build_libtool_libs=no
  51255. - fi
  51256. - fi
  51257. - fi
  51258. - fi
  51259. - # Done checking deplibs!
  51260. - deplibs=$newdeplibs
  51261. - fi
  51262. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  51263. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  51264. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  51265. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  51266. - # move library search paths that coincide with paths to not yet
  51267. - # installed libraries to the beginning of the library search list
  51268. - new_libs=
  51269. - for path in $notinst_path; do
  51270. - case " $new_libs " in
  51271. - *" -L$path/$objdir "*) ;;
  51272. - *)
  51273. - case " $deplibs " in
  51274. - *" -L$path/$objdir "*)
  51275. - new_libs="$new_libs -L$path/$objdir" ;;
  51276. - esac
  51277. - ;;
  51278. - esac
  51279. - done
  51280. - for deplib in $deplibs; do
  51281. - case $deplib in
  51282. - -L*)
  51283. - case " $new_libs " in
  51284. - *" $deplib "*) ;;
  51285. - *) new_libs="$new_libs $deplib" ;;
  51286. - esac
  51287. - ;;
  51288. - *) new_libs="$new_libs $deplib" ;;
  51289. - esac
  51290. - done
  51291. - deplibs="$new_libs"
  51292. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  51293. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  51294. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  51295. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  51296. - # All the library-specific variables (install_libdir is set above).
  51297. - library_names=
  51298. - old_library=
  51299. - dlname=
  51300. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  51301. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  51302. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  51303. - # Test again, we may have decided not to build it any more
  51304. - if test "$build_libtool_libs" = yes; then
  51305. - if test "$hardcode_into_libs" = yes; then
  51306. - # Hardcode the library paths
  51307. - hardcode_libdirs=
  51308. - dep_rpath=
  51309. - rpath="$finalize_rpath"
  51310. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  51311. - for libdir in $rpath; do
  51312. - if test -n "$hardcode_libdir_flag_spec"; then
  51313. - if test -n "$hardcode_libdir_separator"; then
  51314. - if test -z "$hardcode_libdirs"; then
  51315. - hardcode_libdirs="$libdir"
  51316. - else
  51317. - # Just accumulate the unique libdirs.
  51318. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51319. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51320. - ;;
  51321. - *)
  51322. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51323. - ;;
  51324. - esac
  51325. - fi
  51326. - else
  51327. - eval flag=\"$hardcode_libdir_flag_spec\"
  51328. - dep_rpath="$dep_rpath $flag"
  51329. - fi
  51330. - elif test -n "$runpath_var"; then
  51331. - case "$perm_rpath " in
  51332. - *" $libdir "*) ;;
  51333. - *) perm_rpath="$perm_rpath $libdir" ;;
  51334. - esac
  51335. - fi
  51336. - done
  51337. - # Substitute the hardcoded libdirs into the rpath.
  51338. - if test -n "$hardcode_libdir_separator" &&
  51339. - test -n "$hardcode_libdirs"; then
  51340. - libdir="$hardcode_libdirs"
  51341. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  51342. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  51343. - else
  51344. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  51345. - fi
  51346. - fi
  51347. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  51348. - # We should set the runpath_var.
  51349. - rpath=
  51350. - for dir in $perm_rpath; do
  51351. - rpath="$rpath$dir:"
  51352. - done
  51353. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  51354. - fi
  51355. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  51356. - fi
  51357. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  51358. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  51359. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  51360. - shlibpath="$finalize_shlibpath"
  51361. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  51362. - if test -n "$shlibpath"; then
  51363. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  51364. - fi
  51365. +int
  51366. +main (int argc, char *argv[])
  51367. +{
  51368. + char **newargz;
  51369. + int newargc;
  51370. + char *tmp_pathspec;
  51371. + char *actual_cwrapper_path;
  51372. + char *actual_cwrapper_name;
  51373. + char *target_name;
  51374. + char *lt_argv_zero;
  51375. + intptr_t rval = 127;
  51376. - # Get the real and link names of the library.
  51377. - eval shared_ext=\"$shrext_cmds\"
  51378. - eval library_names=\"$library_names_spec\"
  51379. - set dummy $library_names
  51380. - realname="$2"
  51381. - shift; shift
  51382. + int i;
  51383. - if test -n "$soname_spec"; then
  51384. - eval soname=\"$soname_spec\"
  51385. - else
  51386. - soname="$realname"
  51387. - fi
  51388. - if test -z "$dlname"; then
  51389. - dlname=$soname
  51390. - fi
  51391. + program_name = (char *) xstrdup (base_name (argv[0]));
  51392. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  51393. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  51394. - lib="$output_objdir/$realname"
  51395. - linknames=
  51396. - for link
  51397. - do
  51398. - linknames="$linknames $link"
  51399. - done
  51400. + /* very simple arg parsing; don't want to rely on getopt */
  51401. + for (i = 1; i < argc; i++)
  51402. + {
  51403. + if (strcmp (argv[i], dumpscript_opt) == 0)
  51404. + {
  51405. +EOF
  51406. + case "$host" in
  51407. + *mingw* | *cygwin* )
  51408. + # make stdout use "unix" line endings
  51409. + echo " setmode(1,_O_BINARY);"
  51410. + ;;
  51411. + esac
  51412. - # Use standard objects if they are pic
  51413. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51414. + cat <<"EOF"
  51415. + printf ("%s", script_text_part1);
  51416. + printf ("%s", script_text_part2);
  51417. + return 0;
  51418. + }
  51419. + }
  51420. - # Prepare the list of exported symbols
  51421. - if test -z "$export_symbols"; then
  51422. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  51423. - $show "generating symbol list for \`$libname.la'"
  51424. - export_symbols="$output_objdir/$libname.exp"
  51425. - $run $rm $export_symbols
  51426. - cmds=$export_symbols_cmds
  51427. - save_ifs="$IFS"; IFS='~'
  51428. - for cmd in $cmds; do
  51429. - IFS="$save_ifs"
  51430. - eval cmd=\"$cmd\"
  51431. - if len=`expr "X$cmd" : ".*"` &&
  51432. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51433. - $show "$cmd"
  51434. - $run eval "$cmd" || exit $?
  51435. - skipped_export=false
  51436. - else
  51437. - # The command line is too long to execute in one step.
  51438. - $show "using reloadable object file for export list..."
  51439. - skipped_export=:
  51440. - # Break out early, otherwise skipped_export may be
  51441. - # set to false by a later but shorter cmd.
  51442. - break
  51443. - fi
  51444. - done
  51445. - IFS="$save_ifs"
  51446. - if test -n "$export_symbols_regex"; then
  51447. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  51448. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  51449. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  51450. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  51451. - fi
  51452. - fi
  51453. - fi
  51454. + newargz = XMALLOC (char *, argc + 1);
  51455. + tmp_pathspec = find_executable (argv[0]);
  51456. + if (tmp_pathspec == NULL)
  51457. + lt_fatal ("Couldn't find %s", argv[0]);
  51458. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  51459. + tmp_pathspec));
  51460. +
  51461. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  51462. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  51463. + actual_cwrapper_path));
  51464. + XFREE (tmp_pathspec);
  51465. +
  51466. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  51467. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  51468. +
  51469. + /* wrapper name transforms */
  51470. + strendzap (actual_cwrapper_name, ".exe");
  51471. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  51472. + XFREE (actual_cwrapper_name);
  51473. + actual_cwrapper_name = tmp_pathspec;
  51474. + tmp_pathspec = 0;
  51475. +
  51476. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  51477. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  51478. + strendzap (target_name, ".exe");
  51479. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  51480. + XFREE (target_name);
  51481. + target_name = tmp_pathspec;
  51482. + tmp_pathspec = 0;
  51483. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  51484. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  51485. - fi
  51486. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  51487. + target_name));
  51488. +EOF
  51489. - tmp_deplibs=
  51490. - for test_deplib in $deplibs; do
  51491. - case " $convenience " in
  51492. - *" $test_deplib "*) ;;
  51493. - *)
  51494. - tmp_deplibs="$tmp_deplibs $test_deplib"
  51495. - ;;
  51496. - esac
  51497. - done
  51498. - deplibs="$tmp_deplibs"
  51499. + cat <<EOF
  51500. + newargz[0] =
  51501. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  51502. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  51503. + strcpy (newargz[0], actual_cwrapper_path);
  51504. + strcat (newargz[0], "$objdir");
  51505. + strcat (newargz[0], "/");
  51506. +EOF
  51507. - if test -n "$convenience"; then
  51508. - if test -n "$whole_archive_flag_spec"; then
  51509. - save_libobjs=$libobjs
  51510. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51511. - else
  51512. - gentop="$output_objdir/${outputname}x"
  51513. - generated="$generated $gentop"
  51514. + cat <<"EOF"
  51515. + /* stop here, and copy so we don't have to do this twice */
  51516. + tmp_pathspec = xstrdup (newargz[0]);
  51517. +
  51518. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  51519. + strcat (newargz[0], actual_cwrapper_name);
  51520. +
  51521. + /* DO want the lt- prefix here if it exists, so use target_name */
  51522. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  51523. + XFREE (tmp_pathspec);
  51524. + tmp_pathspec = NULL;
  51525. +EOF
  51526. - func_extract_archives $gentop $convenience
  51527. - libobjs="$libobjs $func_extract_archives_result"
  51528. - fi
  51529. - fi
  51530. -
  51531. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  51532. - eval flag=\"$thread_safe_flag_spec\"
  51533. - linker_flags="$linker_flags $flag"
  51534. - fi
  51535. + case $host_os in
  51536. + mingw*)
  51537. + cat <<"EOF"
  51538. + {
  51539. + char* p;
  51540. + while ((p = strchr (newargz[0], '\\')) != NULL)
  51541. + {
  51542. + *p = '/';
  51543. + }
  51544. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  51545. + {
  51546. + *p = '/';
  51547. + }
  51548. + }
  51549. +EOF
  51550. + ;;
  51551. + esac
  51552. - # Make a backup of the uninstalled library when relinking
  51553. - if test "$mode" = relink; then
  51554. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  51555. - fi
  51556. + cat <<"EOF"
  51557. + XFREE (target_name);
  51558. + XFREE (actual_cwrapper_path);
  51559. + XFREE (actual_cwrapper_name);
  51560. +
  51561. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  51562. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  51563. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  51564. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  51565. - # Do each of the archive commands.
  51566. - if test "$module" = yes && test -n "$module_cmds" ; then
  51567. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51568. - eval test_cmds=\"$module_expsym_cmds\"
  51569. - cmds=$module_expsym_cmds
  51570. - else
  51571. - eval test_cmds=\"$module_cmds\"
  51572. - cmds=$module_cmds
  51573. - fi
  51574. - else
  51575. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51576. - eval test_cmds=\"$archive_expsym_cmds\"
  51577. - cmds=$archive_expsym_cmds
  51578. - else
  51579. - eval test_cmds=\"$archive_cmds\"
  51580. - cmds=$archive_cmds
  51581. - fi
  51582. - fi
  51583. + newargc=0;
  51584. + for (i = 1; i < argc; i++)
  51585. + {
  51586. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  51587. + {
  51588. + if (argv[i][env_set_opt_len] == '=')
  51589. + {
  51590. + const char *p = argv[i] + env_set_opt_len + 1;
  51591. + lt_opt_process_env_set (p);
  51592. + }
  51593. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  51594. + {
  51595. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  51596. + }
  51597. + else
  51598. + lt_fatal ("%s missing required argument", env_set_opt);
  51599. + continue;
  51600. + }
  51601. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  51602. + {
  51603. + if (argv[i][env_prepend_opt_len] == '=')
  51604. + {
  51605. + const char *p = argv[i] + env_prepend_opt_len + 1;
  51606. + lt_opt_process_env_prepend (p);
  51607. + }
  51608. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  51609. + {
  51610. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  51611. + }
  51612. + else
  51613. + lt_fatal ("%s missing required argument", env_prepend_opt);
  51614. + continue;
  51615. + }
  51616. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  51617. + {
  51618. + if (argv[i][env_append_opt_len] == '=')
  51619. + {
  51620. + const char *p = argv[i] + env_append_opt_len + 1;
  51621. + lt_opt_process_env_append (p);
  51622. + }
  51623. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  51624. + {
  51625. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  51626. + }
  51627. + else
  51628. + lt_fatal ("%s missing required argument", env_append_opt);
  51629. + continue;
  51630. + }
  51631. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  51632. + {
  51633. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  51634. + namespace, but it is not one of the ones we know about and
  51635. + have already dealt with, above (inluding dump-script), then
  51636. + report an error. Otherwise, targets might begin to believe
  51637. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  51638. + namespace. The first time any user complains about this, we'll
  51639. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  51640. + or a configure.ac-settable value.
  51641. + */
  51642. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  51643. + ltwrapper_option_prefix, argv[i]);
  51644. + }
  51645. + /* otherwise ... */
  51646. + newargz[++newargc] = xstrdup (argv[i]);
  51647. + }
  51648. + newargz[++newargc] = NULL;
  51649. - if test "X$skipped_export" != "X:" &&
  51650. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51651. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51652. - :
  51653. - else
  51654. - # The command line is too long to link in one step, link piecewise.
  51655. - $echo "creating reloadable object files..."
  51656. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  51657. + for (i = 0; i < newargc; i++)
  51658. + {
  51659. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  51660. + }
  51661. - # Save the value of $output and $libobjs because we want to
  51662. - # use them later. If we have whole_archive_flag_spec, we
  51663. - # want to use save_libobjs as it was before
  51664. - # whole_archive_flag_spec was expanded, because we can't
  51665. - # assume the linker understands whole_archive_flag_spec.
  51666. - # This may have to be revisited, in case too many
  51667. - # convenience libraries get linked in and end up exceeding
  51668. - # the spec.
  51669. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  51670. - save_libobjs=$libobjs
  51671. - fi
  51672. - save_output=$output
  51673. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  51674. +EOF
  51675. - # Clear the reloadable object creation command queue and
  51676. - # initialize k to one.
  51677. - test_cmds=
  51678. - concat_cmds=
  51679. - objlist=
  51680. - delfiles=
  51681. - last_robj=
  51682. - k=1
  51683. - output=$output_objdir/$output_la-${k}.$objext
  51684. - # Loop over the list of objects to be linked.
  51685. - for obj in $save_libobjs
  51686. - do
  51687. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  51688. - if test "X$objlist" = X ||
  51689. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51690. - test "$len" -le "$max_cmd_len"; }; then
  51691. - objlist="$objlist $obj"
  51692. - else
  51693. - # The command $test_cmds is almost too long, add a
  51694. - # command to the queue.
  51695. - if test "$k" -eq 1 ; then
  51696. - # The first file doesn't have a previous command to add.
  51697. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  51698. - else
  51699. - # All subsequent reloadable object files will link in
  51700. - # the last one created.
  51701. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  51702. - fi
  51703. - last_robj=$output_objdir/$output_la-${k}.$objext
  51704. - k=`expr $k + 1`
  51705. - output=$output_objdir/$output_la-${k}.$objext
  51706. - objlist=$obj
  51707. - len=1
  51708. - fi
  51709. - done
  51710. - # Handle the remaining objects by creating one last
  51711. - # reloadable object file. All subsequent reloadable object
  51712. - # files will link in the last one created.
  51713. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51714. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  51715. + case $host_os in
  51716. + mingw*)
  51717. + cat <<"EOF"
  51718. + /* execv doesn't actually work on mingw as expected on unix */
  51719. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  51720. + if (rval == -1)
  51721. + {
  51722. + /* failed to start process */
  51723. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  51724. + return 127;
  51725. + }
  51726. + return rval;
  51727. +EOF
  51728. + ;;
  51729. + *)
  51730. + cat <<"EOF"
  51731. + execv (lt_argv_zero, newargz);
  51732. + return rval; /* =127, but avoids unused variable warning */
  51733. +EOF
  51734. + ;;
  51735. + esac
  51736. - if ${skipped_export-false}; then
  51737. - $show "generating symbol list for \`$libname.la'"
  51738. - export_symbols="$output_objdir/$libname.exp"
  51739. - $run $rm $export_symbols
  51740. - libobjs=$output
  51741. - # Append the command to create the export file.
  51742. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  51743. - fi
  51744. -
  51745. - # Set up a command to remove the reloadable object files
  51746. - # after they are used.
  51747. - i=0
  51748. - while test "$i" -lt "$k"
  51749. - do
  51750. - i=`expr $i + 1`
  51751. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  51752. - done
  51753. + cat <<"EOF"
  51754. +}
  51755. - $echo "creating a temporary reloadable object file: $output"
  51756. +void *
  51757. +xmalloc (size_t num)
  51758. +{
  51759. + void *p = (void *) malloc (num);
  51760. + if (!p)
  51761. + lt_fatal ("Memory exhausted");
  51762. - # Loop through the commands generated above and execute them.
  51763. - save_ifs="$IFS"; IFS='~'
  51764. - for cmd in $concat_cmds; do
  51765. - IFS="$save_ifs"
  51766. - $show "$cmd"
  51767. - $run eval "$cmd" || exit $?
  51768. - done
  51769. - IFS="$save_ifs"
  51770. + return p;
  51771. +}
  51772. - libobjs=$output
  51773. - # Restore the value of output.
  51774. - output=$save_output
  51775. +char *
  51776. +xstrdup (const char *string)
  51777. +{
  51778. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  51779. + string) : NULL;
  51780. +}
  51781. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  51782. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51783. - fi
  51784. - # Expand the library linking commands again to reset the
  51785. - # value of $libobjs for piecewise linking.
  51786. +const char *
  51787. +base_name (const char *name)
  51788. +{
  51789. + const char *base;
  51790. - # Do each of the archive commands.
  51791. - if test "$module" = yes && test -n "$module_cmds" ; then
  51792. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51793. - cmds=$module_expsym_cmds
  51794. - else
  51795. - cmds=$module_cmds
  51796. - fi
  51797. - else
  51798. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51799. - cmds=$archive_expsym_cmds
  51800. - else
  51801. - cmds=$archive_cmds
  51802. - fi
  51803. - fi
  51804. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51805. + /* Skip over the disk name in MSDOS pathnames. */
  51806. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  51807. + name += 2;
  51808. +#endif
  51809. - # Append the command to remove the reloadable object files
  51810. - # to the just-reset $cmds.
  51811. - eval cmds=\"\$cmds~\$rm $delfiles\"
  51812. - fi
  51813. - save_ifs="$IFS"; IFS='~'
  51814. - for cmd in $cmds; do
  51815. - IFS="$save_ifs"
  51816. - eval cmd=\"$cmd\"
  51817. - $show "$cmd"
  51818. - $run eval "$cmd" || {
  51819. - lt_exit=$?
  51820. + for (base = name; *name; name++)
  51821. + if (IS_DIR_SEPARATOR (*name))
  51822. + base = name + 1;
  51823. + return base;
  51824. +}
  51825. - # Restore the uninstalled library and exit
  51826. - if test "$mode" = relink; then
  51827. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  51828. - fi
  51829. +int
  51830. +check_executable (const char *path)
  51831. +{
  51832. + struct stat st;
  51833. - exit $lt_exit
  51834. - }
  51835. - done
  51836. - IFS="$save_ifs"
  51837. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  51838. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  51839. + if ((!path) || (!*path))
  51840. + return 0;
  51841. - # Restore the uninstalled library and exit
  51842. - if test "$mode" = relink; then
  51843. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  51844. + if ((stat (path, &st) >= 0)
  51845. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  51846. + return 1;
  51847. + else
  51848. + return 0;
  51849. +}
  51850. - if test -n "$convenience"; then
  51851. - if test -z "$whole_archive_flag_spec"; then
  51852. - $show "${rm}r $gentop"
  51853. - $run ${rm}r "$gentop"
  51854. - fi
  51855. - fi
  51856. +int
  51857. +make_executable (const char *path)
  51858. +{
  51859. + int rval = 0;
  51860. + struct stat st;
  51861. - exit $EXIT_SUCCESS
  51862. - fi
  51863. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  51864. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  51865. + if ((!path) || (!*path))
  51866. + return 0;
  51867. - # Create links to the real library.
  51868. - for linkname in $linknames; do
  51869. - if test "$realname" != "$linkname"; then
  51870. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  51871. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  51872. - fi
  51873. - done
  51874. + if (stat (path, &st) >= 0)
  51875. + {
  51876. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  51877. + }
  51878. + return rval;
  51879. +}
  51880. - # If -module or -export-dynamic was specified, set the dlname.
  51881. - if test "$module" = yes || test "$export_dynamic" = yes; then
  51882. - # On all known operating systems, these are identical.
  51883. - dlname="$soname"
  51884. - fi
  51885. - fi
  51886. - ;;
  51887. +/* Searches for the full path of the wrapper. Returns
  51888. + newly allocated full path name if found, NULL otherwise
  51889. + Does not chase symlinks, even on platforms that support them.
  51890. +*/
  51891. +char *
  51892. +find_executable (const char *wrapper)
  51893. +{
  51894. + int has_slash = 0;
  51895. + const char *p;
  51896. + const char *p_next;
  51897. + /* static buffer for getcwd */
  51898. + char tmp[LT_PATHMAX + 1];
  51899. + int tmp_len;
  51900. + char *concat_name;
  51901. - obj)
  51902. - if test -n "$deplibs"; then
  51903. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  51904. - fi
  51905. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  51906. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  51907. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51908. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  51909. - fi
  51910. + if ((wrapper == NULL) || (*wrapper == '\0'))
  51911. + return NULL;
  51912. - if test -n "$rpath"; then
  51913. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  51914. - fi
  51915. + /* Absolute path? */
  51916. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51917. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  51918. + {
  51919. + concat_name = xstrdup (wrapper);
  51920. + if (check_executable (concat_name))
  51921. + return concat_name;
  51922. + XFREE (concat_name);
  51923. + }
  51924. + else
  51925. + {
  51926. +#endif
  51927. + if (IS_DIR_SEPARATOR (wrapper[0]))
  51928. + {
  51929. + concat_name = xstrdup (wrapper);
  51930. + if (check_executable (concat_name))
  51931. + return concat_name;
  51932. + XFREE (concat_name);
  51933. + }
  51934. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51935. + }
  51936. +#endif
  51937. - if test -n "$xrpath"; then
  51938. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  51939. - fi
  51940. + for (p = wrapper; *p; p++)
  51941. + if (*p == '/')
  51942. + {
  51943. + has_slash = 1;
  51944. + break;
  51945. + }
  51946. + if (!has_slash)
  51947. + {
  51948. + /* no slashes; search PATH */
  51949. + const char *path = getenv ("PATH");
  51950. + if (path != NULL)
  51951. + {
  51952. + for (p = path; *p; p = p_next)
  51953. + {
  51954. + const char *q;
  51955. + size_t p_len;
  51956. + for (q = p; *q; q++)
  51957. + if (IS_PATH_SEPARATOR (*q))
  51958. + break;
  51959. + p_len = q - p;
  51960. + p_next = (*q == '\0' ? q : q + 1);
  51961. + if (p_len == 0)
  51962. + {
  51963. + /* empty path: current directory */
  51964. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51965. + lt_fatal ("getcwd failed");
  51966. + tmp_len = strlen (tmp);
  51967. + concat_name =
  51968. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  51969. + memcpy (concat_name, tmp, tmp_len);
  51970. + concat_name[tmp_len] = '/';
  51971. + strcpy (concat_name + tmp_len + 1, wrapper);
  51972. + }
  51973. + else
  51974. + {
  51975. + concat_name =
  51976. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  51977. + memcpy (concat_name, p, p_len);
  51978. + concat_name[p_len] = '/';
  51979. + strcpy (concat_name + p_len + 1, wrapper);
  51980. + }
  51981. + if (check_executable (concat_name))
  51982. + return concat_name;
  51983. + XFREE (concat_name);
  51984. + }
  51985. + }
  51986. + /* not found in PATH; assume curdir */
  51987. + }
  51988. + /* Relative path | not found in path: prepend cwd */
  51989. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51990. + lt_fatal ("getcwd failed");
  51991. + tmp_len = strlen (tmp);
  51992. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  51993. + memcpy (concat_name, tmp, tmp_len);
  51994. + concat_name[tmp_len] = '/';
  51995. + strcpy (concat_name + tmp_len + 1, wrapper);
  51996. - if test -n "$vinfo"; then
  51997. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  51998. - fi
  51999. + if (check_executable (concat_name))
  52000. + return concat_name;
  52001. + XFREE (concat_name);
  52002. + return NULL;
  52003. +}
  52004. - if test -n "$release"; then
  52005. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  52006. - fi
  52007. +char *
  52008. +chase_symlinks (const char *pathspec)
  52009. +{
  52010. +#ifndef S_ISLNK
  52011. + return xstrdup (pathspec);
  52012. +#else
  52013. + char buf[LT_PATHMAX];
  52014. + struct stat s;
  52015. + char *tmp_pathspec = xstrdup (pathspec);
  52016. + char *p;
  52017. + int has_symlinks = 0;
  52018. + while (strlen (tmp_pathspec) && !has_symlinks)
  52019. + {
  52020. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  52021. + tmp_pathspec));
  52022. + if (lstat (tmp_pathspec, &s) == 0)
  52023. + {
  52024. + if (S_ISLNK (s.st_mode) != 0)
  52025. + {
  52026. + has_symlinks = 1;
  52027. + break;
  52028. + }
  52029. - case $output in
  52030. - *.lo)
  52031. - if test -n "$objs$old_deplibs"; then
  52032. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  52033. - exit $EXIT_FAILURE
  52034. - fi
  52035. - libobj="$output"
  52036. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  52037. - ;;
  52038. - *)
  52039. - libobj=
  52040. - obj="$output"
  52041. - ;;
  52042. - esac
  52043. + /* search backwards for last DIR_SEPARATOR */
  52044. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  52045. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52046. + p--;
  52047. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52048. + {
  52049. + /* no more DIR_SEPARATORS left */
  52050. + break;
  52051. + }
  52052. + *p = '\0';
  52053. + }
  52054. + else
  52055. + {
  52056. + char *errstr = strerror (errno);
  52057. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  52058. + }
  52059. + }
  52060. + XFREE (tmp_pathspec);
  52061. - # Delete the old objects.
  52062. - $run $rm $obj $libobj
  52063. + if (!has_symlinks)
  52064. + {
  52065. + return xstrdup (pathspec);
  52066. + }
  52067. - # Objects from convenience libraries. This assumes
  52068. - # single-version convenience libraries. Whenever we create
  52069. - # different ones for PIC/non-PIC, this we'll have to duplicate
  52070. - # the extraction.
  52071. - reload_conv_objs=
  52072. - gentop=
  52073. - # reload_cmds runs $LD directly, so let us get rid of
  52074. - # -Wl from whole_archive_flag_spec
  52075. - wl=
  52076. + tmp_pathspec = realpath (pathspec, buf);
  52077. + if (tmp_pathspec == 0)
  52078. + {
  52079. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  52080. + }
  52081. + return xstrdup (tmp_pathspec);
  52082. +#endif
  52083. +}
  52084. - if test -n "$convenience"; then
  52085. - if test -n "$whole_archive_flag_spec"; then
  52086. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  52087. - else
  52088. - gentop="$output_objdir/${obj}x"
  52089. - generated="$generated $gentop"
  52090. +char *
  52091. +strendzap (char *str, const char *pat)
  52092. +{
  52093. + size_t len, patlen;
  52094. - func_extract_archives $gentop $convenience
  52095. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  52096. - fi
  52097. - fi
  52098. + assert (str != NULL);
  52099. + assert (pat != NULL);
  52100. - # Create the old-style object.
  52101. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  52102. + len = strlen (str);
  52103. + patlen = strlen (pat);
  52104. - output="$obj"
  52105. - cmds=$reload_cmds
  52106. - save_ifs="$IFS"; IFS='~'
  52107. - for cmd in $cmds; do
  52108. - IFS="$save_ifs"
  52109. - eval cmd=\"$cmd\"
  52110. - $show "$cmd"
  52111. - $run eval "$cmd" || exit $?
  52112. - done
  52113. - IFS="$save_ifs"
  52114. + if (patlen <= len)
  52115. + {
  52116. + str += len - patlen;
  52117. + if (strcmp (str, pat) == 0)
  52118. + *str = '\0';
  52119. + }
  52120. + return str;
  52121. +}
  52122. - # Exit if we aren't doing a library object file.
  52123. - if test -z "$libobj"; then
  52124. - if test -n "$gentop"; then
  52125. - $show "${rm}r $gentop"
  52126. - $run ${rm}r $gentop
  52127. - fi
  52128. +static void
  52129. +lt_error_core (int exit_status, const char *mode,
  52130. + const char *message, va_list ap)
  52131. +{
  52132. + fprintf (stderr, "%s: %s: ", program_name, mode);
  52133. + vfprintf (stderr, message, ap);
  52134. + fprintf (stderr, ".\n");
  52135. - exit $EXIT_SUCCESS
  52136. - fi
  52137. + if (exit_status >= 0)
  52138. + exit (exit_status);
  52139. +}
  52140. - if test "$build_libtool_libs" != yes; then
  52141. - if test -n "$gentop"; then
  52142. - $show "${rm}r $gentop"
  52143. - $run ${rm}r $gentop
  52144. - fi
  52145. +void
  52146. +lt_fatal (const char *message, ...)
  52147. +{
  52148. + va_list ap;
  52149. + va_start (ap, message);
  52150. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  52151. + va_end (ap);
  52152. +}
  52153. - # Create an invalid libtool object if no PIC, so that we don't
  52154. - # accidentally link it into a program.
  52155. - # $show "echo timestamp > $libobj"
  52156. - # $run eval "echo timestamp > $libobj" || exit $?
  52157. - exit $EXIT_SUCCESS
  52158. - fi
  52159. +void
  52160. +lt_setenv (const char *name, const char *value)
  52161. +{
  52162. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  52163. + (name ? name : "<NULL>"),
  52164. + (value ? value : "<NULL>")));
  52165. + {
  52166. +#ifdef HAVE_SETENV
  52167. + /* always make a copy, for consistency with !HAVE_SETENV */
  52168. + char *str = xstrdup (value);
  52169. + setenv (name, str, 1);
  52170. +#else
  52171. + int len = strlen (name) + 1 + strlen (value) + 1;
  52172. + char *str = XMALLOC (char, len);
  52173. + sprintf (str, "%s=%s", name, value);
  52174. + if (putenv (str) != EXIT_SUCCESS)
  52175. + {
  52176. + XFREE (str);
  52177. + }
  52178. +#endif
  52179. + }
  52180. +}
  52181. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  52182. - # Only do commands if we really have different PIC objects.
  52183. - reload_objs="$libobjs $reload_conv_objs"
  52184. - output="$libobj"
  52185. - cmds=$reload_cmds
  52186. - save_ifs="$IFS"; IFS='~'
  52187. - for cmd in $cmds; do
  52188. - IFS="$save_ifs"
  52189. - eval cmd=\"$cmd\"
  52190. - $show "$cmd"
  52191. - $run eval "$cmd" || exit $?
  52192. - done
  52193. - IFS="$save_ifs"
  52194. - fi
  52195. +char *
  52196. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  52197. +{
  52198. + char *new_value;
  52199. + if (orig_value && *orig_value)
  52200. + {
  52201. + int orig_value_len = strlen (orig_value);
  52202. + int add_len = strlen (add);
  52203. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  52204. + if (to_end)
  52205. + {
  52206. + strcpy (new_value, orig_value);
  52207. + strcpy (new_value + orig_value_len, add);
  52208. + }
  52209. + else
  52210. + {
  52211. + strcpy (new_value, add);
  52212. + strcpy (new_value + add_len, orig_value);
  52213. + }
  52214. + }
  52215. + else
  52216. + {
  52217. + new_value = xstrdup (add);
  52218. + }
  52219. + return new_value;
  52220. +}
  52221. - if test -n "$gentop"; then
  52222. - $show "${rm}r $gentop"
  52223. - $run ${rm}r $gentop
  52224. - fi
  52225. +int
  52226. +lt_split_name_value (const char *arg, char** name, char** value)
  52227. +{
  52228. + const char *p;
  52229. + int len;
  52230. + if (!arg || !*arg)
  52231. + return 1;
  52232. - exit $EXIT_SUCCESS
  52233. - ;;
  52234. + p = strchr (arg, (int)'=');
  52235. - prog)
  52236. - case $host in
  52237. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  52238. - esac
  52239. - if test -n "$vinfo"; then
  52240. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  52241. - fi
  52242. + if (!p)
  52243. + return 1;
  52244. - if test -n "$release"; then
  52245. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  52246. - fi
  52247. + *value = xstrdup (++p);
  52248. - if test "$preload" = yes; then
  52249. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  52250. - test "$dlopen_self_static" = unknown; then
  52251. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  52252. - fi
  52253. - fi
  52254. + len = strlen (arg) - strlen (*value);
  52255. + *name = XMALLOC (char, len);
  52256. + strncpy (*name, arg, len-1);
  52257. + (*name)[len - 1] = '\0';
  52258. - case $host in
  52259. - *-*-rhapsody* | *-*-darwin1.[012])
  52260. - # On Rhapsody replace the C library is the System framework
  52261. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52262. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52263. - ;;
  52264. - esac
  52265. + return 0;
  52266. +}
  52267. - case $host in
  52268. - *darwin*)
  52269. - # Don't allow lazy linking, it breaks C++ global constructors
  52270. - if test "$tagname" = CXX ; then
  52271. - compile_command="$compile_command ${wl}-bind_at_load"
  52272. - finalize_command="$finalize_command ${wl}-bind_at_load"
  52273. - fi
  52274. - ;;
  52275. - esac
  52276. +void
  52277. +lt_opt_process_env_set (const char *arg)
  52278. +{
  52279. + char *name = NULL;
  52280. + char *value = NULL;
  52281. + if (lt_split_name_value (arg, &name, &value) != 0)
  52282. + {
  52283. + XFREE (name);
  52284. + XFREE (value);
  52285. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  52286. + }
  52287. - # move library search paths that coincide with paths to not yet
  52288. - # installed libraries to the beginning of the library search list
  52289. - new_libs=
  52290. - for path in $notinst_path; do
  52291. - case " $new_libs " in
  52292. - *" -L$path/$objdir "*) ;;
  52293. - *)
  52294. - case " $compile_deplibs " in
  52295. - *" -L$path/$objdir "*)
  52296. - new_libs="$new_libs -L$path/$objdir" ;;
  52297. - esac
  52298. - ;;
  52299. - esac
  52300. - done
  52301. - for deplib in $compile_deplibs; do
  52302. - case $deplib in
  52303. - -L*)
  52304. - case " $new_libs " in
  52305. - *" $deplib "*) ;;
  52306. - *) new_libs="$new_libs $deplib" ;;
  52307. - esac
  52308. - ;;
  52309. - *) new_libs="$new_libs $deplib" ;;
  52310. - esac
  52311. - done
  52312. - compile_deplibs="$new_libs"
  52313. -
  52314. + lt_setenv (name, value);
  52315. + XFREE (name);
  52316. + XFREE (value);
  52317. +}
  52318. - compile_command="$compile_command $compile_deplibs"
  52319. - finalize_command="$finalize_command $finalize_deplibs"
  52320. +void
  52321. +lt_opt_process_env_prepend (const char *arg)
  52322. +{
  52323. + char *name = NULL;
  52324. + char *value = NULL;
  52325. + char *new_value = NULL;
  52326. - if test -n "$rpath$xrpath"; then
  52327. - # If the user specified any rpath flags, then add them.
  52328. - for libdir in $rpath $xrpath; do
  52329. - # This is the magic to use -rpath.
  52330. - case "$finalize_rpath " in
  52331. - *" $libdir "*) ;;
  52332. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52333. - esac
  52334. - done
  52335. - fi
  52336. + if (lt_split_name_value (arg, &name, &value) != 0)
  52337. + {
  52338. + XFREE (name);
  52339. + XFREE (value);
  52340. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  52341. + }
  52342. - # Now hardcode the library paths
  52343. - rpath=
  52344. - hardcode_libdirs=
  52345. - for libdir in $compile_rpath $finalize_rpath; do
  52346. - if test -n "$hardcode_libdir_flag_spec"; then
  52347. - if test -n "$hardcode_libdir_separator"; then
  52348. - if test -z "$hardcode_libdirs"; then
  52349. - hardcode_libdirs="$libdir"
  52350. - else
  52351. - # Just accumulate the unique libdirs.
  52352. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52353. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52354. - ;;
  52355. - *)
  52356. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52357. - ;;
  52358. - esac
  52359. - fi
  52360. - else
  52361. - eval flag=\"$hardcode_libdir_flag_spec\"
  52362. - rpath="$rpath $flag"
  52363. - fi
  52364. - elif test -n "$runpath_var"; then
  52365. - case "$perm_rpath " in
  52366. - *" $libdir "*) ;;
  52367. - *) perm_rpath="$perm_rpath $libdir" ;;
  52368. - esac
  52369. - fi
  52370. - case $host in
  52371. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  52372. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  52373. - case :$dllsearchpath: in
  52374. - *":$libdir:"*) ;;
  52375. - *) dllsearchpath="$dllsearchpath:$libdir";;
  52376. - esac
  52377. - case :$dllsearchpath: in
  52378. - *":$testbindir:"*) ;;
  52379. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  52380. - esac
  52381. - ;;
  52382. - esac
  52383. - done
  52384. - # Substitute the hardcoded libdirs into the rpath.
  52385. - if test -n "$hardcode_libdir_separator" &&
  52386. - test -n "$hardcode_libdirs"; then
  52387. - libdir="$hardcode_libdirs"
  52388. - eval rpath=\" $hardcode_libdir_flag_spec\"
  52389. - fi
  52390. - compile_rpath="$rpath"
  52391. + new_value = lt_extend_str (getenv (name), value, 0);
  52392. + lt_setenv (name, new_value);
  52393. + XFREE (new_value);
  52394. + XFREE (name);
  52395. + XFREE (value);
  52396. +}
  52397. - rpath=
  52398. - hardcode_libdirs=
  52399. - for libdir in $finalize_rpath; do
  52400. - if test -n "$hardcode_libdir_flag_spec"; then
  52401. - if test -n "$hardcode_libdir_separator"; then
  52402. - if test -z "$hardcode_libdirs"; then
  52403. - hardcode_libdirs="$libdir"
  52404. - else
  52405. - # Just accumulate the unique libdirs.
  52406. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52407. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52408. - ;;
  52409. - *)
  52410. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52411. - ;;
  52412. - esac
  52413. - fi
  52414. - else
  52415. - eval flag=\"$hardcode_libdir_flag_spec\"
  52416. - rpath="$rpath $flag"
  52417. - fi
  52418. - elif test -n "$runpath_var"; then
  52419. - case "$finalize_perm_rpath " in
  52420. - *" $libdir "*) ;;
  52421. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  52422. - esac
  52423. - fi
  52424. - done
  52425. - # Substitute the hardcoded libdirs into the rpath.
  52426. - if test -n "$hardcode_libdir_separator" &&
  52427. - test -n "$hardcode_libdirs"; then
  52428. - libdir="$hardcode_libdirs"
  52429. - eval rpath=\" $hardcode_libdir_flag_spec\"
  52430. - fi
  52431. - finalize_rpath="$rpath"
  52432. +void
  52433. +lt_opt_process_env_append (const char *arg)
  52434. +{
  52435. + char *name = NULL;
  52436. + char *value = NULL;
  52437. + char *new_value = NULL;
  52438. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  52439. - # Transform all the library objects into standard objects.
  52440. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52441. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52442. - fi
  52443. + if (lt_split_name_value (arg, &name, &value) != 0)
  52444. + {
  52445. + XFREE (name);
  52446. + XFREE (value);
  52447. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  52448. + }
  52449. - dlsyms=
  52450. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52451. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  52452. - dlsyms="${outputname}S.c"
  52453. - else
  52454. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  52455. - fi
  52456. - fi
  52457. + new_value = lt_extend_str (getenv (name), value, 1);
  52458. + lt_setenv (name, new_value);
  52459. + XFREE (new_value);
  52460. + XFREE (name);
  52461. + XFREE (value);
  52462. +}
  52463. - if test -n "$dlsyms"; then
  52464. - case $dlsyms in
  52465. - "") ;;
  52466. - *.c)
  52467. - # Discover the nlist of each of the dlfiles.
  52468. - nlist="$output_objdir/${outputname}.nm"
  52469. +void
  52470. +lt_update_exe_path (const char *name, const char *value)
  52471. +{
  52472. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  52473. + (name ? name : "<NULL>"),
  52474. + (value ? value : "<NULL>")));
  52475. - $show "$rm $nlist ${nlist}S ${nlist}T"
  52476. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  52477. + if (name && *name && value && *value)
  52478. + {
  52479. + char *new_value = lt_extend_str (getenv (name), value, 0);
  52480. + /* some systems can't cope with a ':'-terminated path #' */
  52481. + int len = strlen (new_value);
  52482. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  52483. + {
  52484. + new_value[len-1] = '\0';
  52485. + }
  52486. + lt_setenv (name, new_value);
  52487. + XFREE (new_value);
  52488. + }
  52489. +}
  52490. - # Parse the name list into a source file.
  52491. - $show "creating $output_objdir/$dlsyms"
  52492. +void
  52493. +lt_update_lib_path (const char *name, const char *value)
  52494. +{
  52495. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  52496. + (name ? name : "<NULL>"),
  52497. + (value ? value : "<NULL>")));
  52498. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  52499. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  52500. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  52501. + if (name && *name && value && *value)
  52502. + {
  52503. + char *new_value = lt_extend_str (getenv (name), value, 0);
  52504. + lt_setenv (name, new_value);
  52505. + XFREE (new_value);
  52506. + }
  52507. +}
  52508. -#ifdef __cplusplus
  52509. -extern \"C\" {
  52510. -#endif
  52511. -/* Prevent the only kind of declaration conflicts we can make. */
  52512. -#define lt_preloaded_symbols some_other_symbol
  52513. +EOF
  52514. +}
  52515. +# end: func_emit_cwrapperexe_src
  52516. -/* External symbol declarations for the compiler. */\
  52517. -"
  52518. +# func_mode_link arg...
  52519. +func_mode_link ()
  52520. +{
  52521. + $opt_debug
  52522. + case $host in
  52523. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  52524. + # It is impossible to link a dll without this setting, and
  52525. + # we shouldn't force the makefile maintainer to figure out
  52526. + # which system we are compiling for in order to pass an extra
  52527. + # flag for every libtool invocation.
  52528. + # allow_undefined=no
  52529. - if test "$dlself" = yes; then
  52530. - $show "generating symbol list for \`$output'"
  52531. + # FIXME: Unfortunately, there are problems with the above when trying
  52532. + # to make a dll which has undefined symbols, in which case not
  52533. + # even a static library is built. For now, we need to specify
  52534. + # -no-undefined on the libtool link line when we can be certain
  52535. + # that all symbols are satisfied, otherwise we get a static library.
  52536. + allow_undefined=yes
  52537. + ;;
  52538. + *)
  52539. + allow_undefined=yes
  52540. + ;;
  52541. + esac
  52542. + libtool_args=$nonopt
  52543. + base_compile="$nonopt $@"
  52544. + compile_command=$nonopt
  52545. + finalize_command=$nonopt
  52546. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  52547. + compile_rpath=
  52548. + finalize_rpath=
  52549. + compile_shlibpath=
  52550. + finalize_shlibpath=
  52551. + convenience=
  52552. + old_convenience=
  52553. + deplibs=
  52554. + old_deplibs=
  52555. + compiler_flags=
  52556. + linker_flags=
  52557. + dllsearchpath=
  52558. + lib_search_path=`pwd`
  52559. + inst_prefix_dir=
  52560. + new_inherited_linker_flags=
  52561. - # Add our own program objects to the symbol list.
  52562. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52563. - for arg in $progfiles; do
  52564. - $show "extracting global C symbols from \`$arg'"
  52565. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  52566. - done
  52567. + avoid_version=no
  52568. + dlfiles=
  52569. + dlprefiles=
  52570. + dlself=no
  52571. + export_dynamic=no
  52572. + export_symbols=
  52573. + export_symbols_regex=
  52574. + generated=
  52575. + libobjs=
  52576. + ltlibs=
  52577. + module=no
  52578. + no_install=no
  52579. + objs=
  52580. + non_pic_objects=
  52581. + precious_files_regex=
  52582. + prefer_static_libs=no
  52583. + preload=no
  52584. + prev=
  52585. + prevarg=
  52586. + release=
  52587. + rpath=
  52588. + xrpath=
  52589. + perm_rpath=
  52590. + temp_rpath=
  52591. + thread_safe=no
  52592. + vinfo=
  52593. + vinfo_number=no
  52594. + weak_libs=
  52595. + single_module="${wl}-single_module"
  52596. + func_infer_tag $base_compile
  52597. - if test -n "$exclude_expsyms"; then
  52598. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  52599. - $run eval '$mv "$nlist"T "$nlist"'
  52600. - fi
  52601. -
  52602. - if test -n "$export_symbols_regex"; then
  52603. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  52604. - $run eval '$mv "$nlist"T "$nlist"'
  52605. - fi
  52606. -
  52607. - # Prepare the list of exported symbols
  52608. - if test -z "$export_symbols"; then
  52609. - export_symbols="$output_objdir/$outputname.exp"
  52610. - $run $rm $export_symbols
  52611. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  52612. - case $host in
  52613. - *cygwin* | *mingw* )
  52614. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52615. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  52616. - ;;
  52617. - esac
  52618. - else
  52619. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  52620. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  52621. - $run eval 'mv "$nlist"T "$nlist"'
  52622. - case $host in
  52623. - *cygwin* | *mingw* )
  52624. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52625. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  52626. - ;;
  52627. - esac
  52628. - fi
  52629. + # We need to know -static, to get the right output filenames.
  52630. + for arg
  52631. + do
  52632. + case $arg in
  52633. + -shared)
  52634. + test "$build_libtool_libs" != yes && \
  52635. + func_fatal_configuration "can not build a shared library"
  52636. + build_old_libs=no
  52637. + break
  52638. + ;;
  52639. + -all-static | -static | -static-libtool-libs)
  52640. + case $arg in
  52641. + -all-static)
  52642. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  52643. + func_warning "complete static linking is impossible in this configuration"
  52644. fi
  52645. + if test -n "$link_static_flag"; then
  52646. + dlopen_self=$dlopen_self_static
  52647. + fi
  52648. + prefer_static_libs=yes
  52649. + ;;
  52650. + -static)
  52651. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  52652. + dlopen_self=$dlopen_self_static
  52653. + fi
  52654. + prefer_static_libs=built
  52655. + ;;
  52656. + -static-libtool-libs)
  52657. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  52658. + dlopen_self=$dlopen_self_static
  52659. + fi
  52660. + prefer_static_libs=yes
  52661. + ;;
  52662. + esac
  52663. + build_libtool_libs=no
  52664. + build_old_libs=yes
  52665. + break
  52666. + ;;
  52667. + esac
  52668. + done
  52669. - for arg in $dlprefiles; do
  52670. - $show "extracting global C symbols from \`$arg'"
  52671. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  52672. - $run eval '$echo ": $name " >> "$nlist"'
  52673. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  52674. - done
  52675. -
  52676. - if test -z "$run"; then
  52677. - # Make sure we have at least an empty file.
  52678. - test -f "$nlist" || : > "$nlist"
  52679. -
  52680. - if test -n "$exclude_expsyms"; then
  52681. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  52682. - $mv "$nlist"T "$nlist"
  52683. - fi
  52684. + # See if our shared archives depend on static archives.
  52685. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  52686. - # Try sorting and uniquifying the output.
  52687. - if grep -v "^: " < "$nlist" |
  52688. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  52689. - sort -k 3
  52690. - else
  52691. - sort +2
  52692. - fi |
  52693. - uniq > "$nlist"S; then
  52694. - :
  52695. + # Go through the arguments, transforming them on the way.
  52696. + while test "$#" -gt 0; do
  52697. + arg="$1"
  52698. + shift
  52699. + func_quote_for_eval "$arg"
  52700. + qarg=$func_quote_for_eval_unquoted_result
  52701. + func_append libtool_args " $func_quote_for_eval_result"
  52702. +
  52703. + # If the previous option needs an argument, assign it.
  52704. + if test -n "$prev"; then
  52705. + case $prev in
  52706. + output)
  52707. + func_append compile_command " @OUTPUT@"
  52708. + func_append finalize_command " @OUTPUT@"
  52709. + ;;
  52710. + esac
  52711. +
  52712. + case $prev in
  52713. + dlfiles|dlprefiles)
  52714. + if test "$preload" = no; then
  52715. + # Add the symbol object into the linking commands.
  52716. + func_append compile_command " @SYMFILE@"
  52717. + func_append finalize_command " @SYMFILE@"
  52718. + preload=yes
  52719. + fi
  52720. + case $arg in
  52721. + *.la | *.lo) ;; # We handle these cases below.
  52722. + force)
  52723. + if test "$dlself" = no; then
  52724. + dlself=needless
  52725. + export_dynamic=yes
  52726. + fi
  52727. + prev=
  52728. + continue
  52729. + ;;
  52730. + self)
  52731. + if test "$prev" = dlprefiles; then
  52732. + dlself=yes
  52733. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  52734. + dlself=yes
  52735. else
  52736. - grep -v "^: " < "$nlist" > "$nlist"S
  52737. + dlself=needless
  52738. + export_dynamic=yes
  52739. fi
  52740. -
  52741. - if test -f "$nlist"S; then
  52742. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  52743. + prev=
  52744. + continue
  52745. + ;;
  52746. + *)
  52747. + if test "$prev" = dlfiles; then
  52748. + dlfiles="$dlfiles $arg"
  52749. else
  52750. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  52751. + dlprefiles="$dlprefiles $arg"
  52752. fi
  52753. + prev=
  52754. + continue
  52755. + ;;
  52756. + esac
  52757. + ;;
  52758. + expsyms)
  52759. + export_symbols="$arg"
  52760. + test -f "$arg" \
  52761. + || func_fatal_error "symbol file \`$arg' does not exist"
  52762. + prev=
  52763. + continue
  52764. + ;;
  52765. + expsyms_regex)
  52766. + export_symbols_regex="$arg"
  52767. + prev=
  52768. + continue
  52769. + ;;
  52770. + framework)
  52771. + case $host in
  52772. + *-*-darwin*)
  52773. + case "$deplibs " in
  52774. + *" $qarg.ltframework "*) ;;
  52775. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  52776. + ;;
  52777. + esac
  52778. + ;;
  52779. + esac
  52780. + prev=
  52781. + continue
  52782. + ;;
  52783. + inst_prefix)
  52784. + inst_prefix_dir="$arg"
  52785. + prev=
  52786. + continue
  52787. + ;;
  52788. + objectlist)
  52789. + if test -f "$arg"; then
  52790. + save_arg=$arg
  52791. + moreargs=
  52792. + for fil in `cat "$save_arg"`
  52793. + do
  52794. +# moreargs="$moreargs $fil"
  52795. + arg=$fil
  52796. + # A libtool-controlled object.
  52797. - $echo >> "$output_objdir/$dlsyms" "\
  52798. + # Check to see that this really is a libtool object.
  52799. + if func_lalib_unsafe_p "$arg"; then
  52800. + pic_object=
  52801. + non_pic_object=
  52802. -#undef lt_preloaded_symbols
  52803. + # Read the .lo file
  52804. + func_source "$arg"
  52805. -#if defined (__STDC__) && __STDC__
  52806. -# define lt_ptr void *
  52807. -#else
  52808. -# define lt_ptr char *
  52809. -# define const
  52810. -#endif
  52811. + if test -z "$pic_object" ||
  52812. + test -z "$non_pic_object" ||
  52813. + test "$pic_object" = none &&
  52814. + test "$non_pic_object" = none; then
  52815. + func_fatal_error "cannot find name of object for \`$arg'"
  52816. + fi
  52817. -/* The mapping between symbol names and symbols. */
  52818. -"
  52819. + # Extract subdirectory from the argument.
  52820. + func_dirname "$arg" "/" ""
  52821. + xdir="$func_dirname_result"
  52822. - case $host in
  52823. - *cygwin* | *mingw* )
  52824. - $echo >> "$output_objdir/$dlsyms" "\
  52825. -/* DATA imports from DLLs on WIN32 can't be const, because
  52826. - runtime relocations are performed -- see ld's documentation
  52827. - on pseudo-relocs */
  52828. -struct {
  52829. -"
  52830. - ;;
  52831. - * )
  52832. - $echo >> "$output_objdir/$dlsyms" "\
  52833. -const struct {
  52834. -"
  52835. - ;;
  52836. - esac
  52837. + if test "$pic_object" != none; then
  52838. + # Prepend the subdirectory the object is found in.
  52839. + pic_object="$xdir$pic_object"
  52840. + if test "$prev" = dlfiles; then
  52841. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  52842. + dlfiles="$dlfiles $pic_object"
  52843. + prev=
  52844. + continue
  52845. + else
  52846. + # If libtool objects are unsupported, then we need to preload.
  52847. + prev=dlprefiles
  52848. + fi
  52849. + fi
  52850. - $echo >> "$output_objdir/$dlsyms" "\
  52851. - const char *name;
  52852. - lt_ptr address;
  52853. -}
  52854. -lt_preloaded_symbols[] =
  52855. -{\
  52856. -"
  52857. + # CHECK ME: I think I busted this. -Ossama
  52858. + if test "$prev" = dlprefiles; then
  52859. + # Preload the old-style object.
  52860. + dlprefiles="$dlprefiles $pic_object"
  52861. + prev=
  52862. + fi
  52863. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  52864. + # A PIC object.
  52865. + func_append libobjs " $pic_object"
  52866. + arg="$pic_object"
  52867. + fi
  52868. - $echo >> "$output_objdir/$dlsyms" "\
  52869. - {0, (lt_ptr) 0}
  52870. -};
  52871. + # Non-PIC object.
  52872. + if test "$non_pic_object" != none; then
  52873. + # Prepend the subdirectory the object is found in.
  52874. + non_pic_object="$xdir$non_pic_object"
  52875. -/* This works around a problem in FreeBSD linker */
  52876. -#ifdef FREEBSD_WORKAROUND
  52877. -static const void *lt_preloaded_setup() {
  52878. - return lt_preloaded_symbols;
  52879. -}
  52880. -#endif
  52881. + # A standard non-PIC object
  52882. + func_append non_pic_objects " $non_pic_object"
  52883. + if test -z "$pic_object" || test "$pic_object" = none ; then
  52884. + arg="$non_pic_object"
  52885. + fi
  52886. + else
  52887. + # If the PIC object exists, use it instead.
  52888. + # $xdir was prepended to $pic_object above.
  52889. + non_pic_object="$pic_object"
  52890. + func_append non_pic_objects " $non_pic_object"
  52891. + fi
  52892. + else
  52893. + # Only an error if not doing a dry-run.
  52894. + if $opt_dry_run; then
  52895. + # Extract subdirectory from the argument.
  52896. + func_dirname "$arg" "/" ""
  52897. + xdir="$func_dirname_result"
  52898. -#ifdef __cplusplus
  52899. -}
  52900. -#endif\
  52901. -"
  52902. + func_lo2o "$arg"
  52903. + pic_object=$xdir$objdir/$func_lo2o_result
  52904. + non_pic_object=$xdir$func_lo2o_result
  52905. + func_append libobjs " $pic_object"
  52906. + func_append non_pic_objects " $non_pic_object"
  52907. + else
  52908. + func_fatal_error "\`$arg' is not a valid libtool object"
  52909. + fi
  52910. + fi
  52911. + done
  52912. + else
  52913. + func_fatal_error "link input file \`$arg' does not exist"
  52914. fi
  52915. -
  52916. - pic_flag_for_symtable=
  52917. - case $host in
  52918. - # compiling the symbol table file with pic_flag works around
  52919. - # a FreeBSD bug that causes programs to crash when -lm is
  52920. - # linked before any other PIC object. But we must not use
  52921. - # pic_flag when linking with -static. The problem exists in
  52922. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  52923. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  52924. - case "$compile_command " in
  52925. - *" -static "*) ;;
  52926. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  52927. - esac;;
  52928. - *-*-hpux*)
  52929. - case "$compile_command " in
  52930. - *" -static "*) ;;
  52931. - *) pic_flag_for_symtable=" $pic_flag";;
  52932. - esac
  52933. + arg=$save_arg
  52934. + prev=
  52935. + continue
  52936. + ;;
  52937. + precious_regex)
  52938. + precious_files_regex="$arg"
  52939. + prev=
  52940. + continue
  52941. + ;;
  52942. + release)
  52943. + release="-$arg"
  52944. + prev=
  52945. + continue
  52946. + ;;
  52947. + rpath | xrpath)
  52948. + # We need an absolute path.
  52949. + case $arg in
  52950. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  52951. + *)
  52952. + func_fatal_error "only absolute run-paths are allowed"
  52953. + ;;
  52954. esac
  52955. -
  52956. - # Now compile the dynamic symbol file.
  52957. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  52958. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  52959. -
  52960. - # Clean up the generated files.
  52961. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  52962. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  52963. -
  52964. - # Transform the symbol file into the correct name.
  52965. - case $host in
  52966. - *cygwin* | *mingw* )
  52967. - if test -f "$output_objdir/${outputname}.def" ; then
  52968. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  52969. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  52970. - else
  52971. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  52972. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  52973. - fi
  52974. - ;;
  52975. - * )
  52976. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  52977. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  52978. - ;;
  52979. - esac
  52980. + if test "$prev" = rpath; then
  52981. + case "$rpath " in
  52982. + *" $arg "*) ;;
  52983. + *) rpath="$rpath $arg" ;;
  52984. + esac
  52985. + else
  52986. + case "$xrpath " in
  52987. + *" $arg "*) ;;
  52988. + *) xrpath="$xrpath $arg" ;;
  52989. + esac
  52990. + fi
  52991. + prev=
  52992. + continue
  52993. + ;;
  52994. + shrext)
  52995. + shrext_cmds="$arg"
  52996. + prev=
  52997. + continue
  52998. + ;;
  52999. + weak)
  53000. + weak_libs="$weak_libs $arg"
  53001. + prev=
  53002. + continue
  53003. + ;;
  53004. + xcclinker)
  53005. + linker_flags="$linker_flags $qarg"
  53006. + compiler_flags="$compiler_flags $qarg"
  53007. + prev=
  53008. + func_append compile_command " $qarg"
  53009. + func_append finalize_command " $qarg"
  53010. + continue
  53011. + ;;
  53012. + xcompiler)
  53013. + compiler_flags="$compiler_flags $qarg"
  53014. + prev=
  53015. + func_append compile_command " $qarg"
  53016. + func_append finalize_command " $qarg"
  53017. + continue
  53018. + ;;
  53019. + xlinker)
  53020. + linker_flags="$linker_flags $qarg"
  53021. + compiler_flags="$compiler_flags $wl$qarg"
  53022. + prev=
  53023. + func_append compile_command " $wl$qarg"
  53024. + func_append finalize_command " $wl$qarg"
  53025. + continue
  53026. ;;
  53027. *)
  53028. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  53029. - exit $EXIT_FAILURE
  53030. + eval "$prev=\"\$arg\""
  53031. + prev=
  53032. + continue
  53033. ;;
  53034. esac
  53035. - else
  53036. - # We keep going just in case the user didn't refer to
  53037. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  53038. - # really was required.
  53039. + fi # test -n "$prev"
  53040. - # Nullify the symbol file.
  53041. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  53042. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  53043. - fi
  53044. + prevarg="$arg"
  53045. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  53046. - # Replace the output file specification.
  53047. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  53048. - link_command="$compile_command$compile_rpath"
  53049. + case $arg in
  53050. + -all-static)
  53051. + if test -n "$link_static_flag"; then
  53052. + # See comment for -static flag below, for more details.
  53053. + func_append compile_command " $link_static_flag"
  53054. + func_append finalize_command " $link_static_flag"
  53055. + fi
  53056. + continue
  53057. + ;;
  53058. - # We have no uninstalled library dependencies, so finalize right now.
  53059. - $show "$link_command"
  53060. - $run eval "$link_command"
  53061. - exit_status=$?
  53062. + -allow-undefined)
  53063. + # FIXME: remove this flag sometime in the future.
  53064. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  53065. + ;;
  53066. - # Delete the generated files.
  53067. - if test -n "$dlsyms"; then
  53068. - $show "$rm $output_objdir/${outputname}S.${objext}"
  53069. - $run $rm "$output_objdir/${outputname}S.${objext}"
  53070. - fi
  53071. + -avoid-version)
  53072. + avoid_version=yes
  53073. + continue
  53074. + ;;
  53075. - exit $exit_status
  53076. - fi
  53077. + -dlopen)
  53078. + prev=dlfiles
  53079. + continue
  53080. + ;;
  53081. - if test -n "$shlibpath_var"; then
  53082. - # We should set the shlibpath_var
  53083. - rpath=
  53084. - for dir in $temp_rpath; do
  53085. - case $dir in
  53086. - [\\/]* | [A-Za-z]:[\\/]*)
  53087. - # Absolute path.
  53088. - rpath="$rpath$dir:"
  53089. - ;;
  53090. - *)
  53091. - # Relative path: add a thisdir entry.
  53092. - rpath="$rpath\$thisdir/$dir:"
  53093. - ;;
  53094. - esac
  53095. - done
  53096. - temp_rpath="$rpath"
  53097. - fi
  53098. + -dlpreopen)
  53099. + prev=dlprefiles
  53100. + continue
  53101. + ;;
  53102. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  53103. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  53104. - fi
  53105. - if test -n "$finalize_shlibpath"; then
  53106. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  53107. - fi
  53108. + -export-dynamic)
  53109. + export_dynamic=yes
  53110. + continue
  53111. + ;;
  53112. - compile_var=
  53113. - finalize_var=
  53114. - if test -n "$runpath_var"; then
  53115. - if test -n "$perm_rpath"; then
  53116. - # We should set the runpath_var.
  53117. - rpath=
  53118. - for dir in $perm_rpath; do
  53119. - rpath="$rpath$dir:"
  53120. - done
  53121. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  53122. + -export-symbols | -export-symbols-regex)
  53123. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  53124. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  53125. fi
  53126. - if test -n "$finalize_perm_rpath"; then
  53127. - # We should set the runpath_var.
  53128. - rpath=
  53129. - for dir in $finalize_perm_rpath; do
  53130. - rpath="$rpath$dir:"
  53131. - done
  53132. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  53133. + if test "X$arg" = "X-export-symbols"; then
  53134. + prev=expsyms
  53135. + else
  53136. + prev=expsyms_regex
  53137. fi
  53138. - fi
  53139. + continue
  53140. + ;;
  53141. - if test "$no_install" = yes; then
  53142. - # We don't need to create a wrapper script.
  53143. - link_command="$compile_var$compile_command$compile_rpath"
  53144. - # Replace the output file specification.
  53145. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  53146. - # Delete the old output file.
  53147. - $run $rm $output
  53148. - # Link the executable and exit
  53149. - $show "$link_command"
  53150. - $run eval "$link_command" || exit $?
  53151. - exit $EXIT_SUCCESS
  53152. - fi
  53153. + -framework)
  53154. + prev=framework
  53155. + continue
  53156. + ;;
  53157. - if test "$hardcode_action" = relink; then
  53158. - # Fast installation is not supported
  53159. - link_command="$compile_var$compile_command$compile_rpath"
  53160. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  53161. + -inst-prefix-dir)
  53162. + prev=inst_prefix
  53163. + continue
  53164. + ;;
  53165. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  53166. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  53167. - else
  53168. - if test "$fast_install" != no; then
  53169. - link_command="$finalize_var$compile_command$finalize_rpath"
  53170. - if test "$fast_install" = yes; then
  53171. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  53172. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  53173. + # so, if we see these flags be careful not to treat them like -L
  53174. + -L[A-Z][A-Z]*:*)
  53175. + case $with_gcc/$host in
  53176. + no/*-*-irix* | /*-*-irix*)
  53177. + func_append compile_command " $arg"
  53178. + func_append finalize_command " $arg"
  53179. + ;;
  53180. + esac
  53181. + continue
  53182. + ;;
  53183. +
  53184. + -L*)
  53185. + func_stripname '-L' '' "$arg"
  53186. + dir=$func_stripname_result
  53187. + if test -z "$dir"; then
  53188. + if test "$#" -gt 0; then
  53189. + func_fatal_error "require no space between \`-L' and \`$1'"
  53190. else
  53191. - # fast_install is set to needless
  53192. - relink_command=
  53193. + func_fatal_error "need path for \`-L' option"
  53194. fi
  53195. - else
  53196. - link_command="$compile_var$compile_command$compile_rpath"
  53197. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  53198. fi
  53199. - fi
  53200. + # We need an absolute path.
  53201. + case $dir in
  53202. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53203. + *)
  53204. + absdir=`cd "$dir" && pwd`
  53205. + test -z "$absdir" && \
  53206. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  53207. + dir="$absdir"
  53208. + ;;
  53209. + esac
  53210. + case "$deplibs " in
  53211. + *" -L$dir "*) ;;
  53212. + *)
  53213. + deplibs="$deplibs -L$dir"
  53214. + lib_search_path="$lib_search_path $dir"
  53215. + ;;
  53216. + esac
  53217. + case $host in
  53218. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53219. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  53220. + case :$dllsearchpath: in
  53221. + *":$dir:"*) ;;
  53222. + ::) dllsearchpath=$dir;;
  53223. + *) dllsearchpath="$dllsearchpath:$dir";;
  53224. + esac
  53225. + case :$dllsearchpath: in
  53226. + *":$testbindir:"*) ;;
  53227. + ::) dllsearchpath=$testbindir;;
  53228. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  53229. + esac
  53230. + ;;
  53231. + esac
  53232. + continue
  53233. + ;;
  53234. - # Replace the output file specification.
  53235. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  53236. + -l*)
  53237. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  53238. + case $host in
  53239. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  53240. + # These systems don't actually have a C or math library (as such)
  53241. + continue
  53242. + ;;
  53243. + *-*-os2*)
  53244. + # These systems don't actually have a C library (as such)
  53245. + test "X$arg" = "X-lc" && continue
  53246. + ;;
  53247. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53248. + # Do not include libc due to us having libc/libc_r.
  53249. + test "X$arg" = "X-lc" && continue
  53250. + ;;
  53251. + *-*-rhapsody* | *-*-darwin1.[012])
  53252. + # Rhapsody C and math libraries are in the System framework
  53253. + deplibs="$deplibs System.ltframework"
  53254. + continue
  53255. + ;;
  53256. + *-*-sco3.2v5* | *-*-sco5v6*)
  53257. + # Causes problems with __ctype
  53258. + test "X$arg" = "X-lc" && continue
  53259. + ;;
  53260. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53261. + # Compiler inserts libc in the correct place for threads to work
  53262. + test "X$arg" = "X-lc" && continue
  53263. + ;;
  53264. + esac
  53265. + elif test "X$arg" = "X-lc_r"; then
  53266. + case $host in
  53267. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53268. + # Do not include libc_r directly, use -pthread flag.
  53269. + continue
  53270. + ;;
  53271. + esac
  53272. + fi
  53273. + deplibs="$deplibs $arg"
  53274. + continue
  53275. + ;;
  53276. - # Delete the old output files.
  53277. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  53278. + -module)
  53279. + module=yes
  53280. + continue
  53281. + ;;
  53282. - $show "$link_command"
  53283. - $run eval "$link_command" || exit $?
  53284. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  53285. + # classes, name mangling, and exception handling.
  53286. + # Darwin uses the -arch flag to determine output architecture.
  53287. + -model|-arch|-isysroot)
  53288. + compiler_flags="$compiler_flags $arg"
  53289. + func_append compile_command " $arg"
  53290. + func_append finalize_command " $arg"
  53291. + prev=xcompiler
  53292. + continue
  53293. + ;;
  53294. - # Now create the wrapper script.
  53295. - $show "creating $output"
  53296. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  53297. + compiler_flags="$compiler_flags $arg"
  53298. + func_append compile_command " $arg"
  53299. + func_append finalize_command " $arg"
  53300. + case "$new_inherited_linker_flags " in
  53301. + *" $arg "*) ;;
  53302. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  53303. + esac
  53304. + continue
  53305. + ;;
  53306. - # Quote the relink command for shipping.
  53307. - if test -n "$relink_command"; then
  53308. - # Preserve any variables that may affect compiler behavior
  53309. - for var in $variables_saved_for_relink; do
  53310. - if eval test -z \"\${$var+set}\"; then
  53311. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  53312. - elif eval var_value=\$$var; test -z "$var_value"; then
  53313. - relink_command="$var=; export $var; $relink_command"
  53314. - else
  53315. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  53316. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  53317. - fi
  53318. - done
  53319. - relink_command="(cd `pwd`; $relink_command)"
  53320. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  53321. - fi
  53322. + -multi_module)
  53323. + single_module="${wl}-multi_module"
  53324. + continue
  53325. + ;;
  53326. - # Quote $echo for shipping.
  53327. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  53328. - case $progpath in
  53329. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  53330. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  53331. - esac
  53332. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  53333. - else
  53334. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  53335. - fi
  53336. + -no-fast-install)
  53337. + fast_install=no
  53338. + continue
  53339. + ;;
  53340. - # Only actually do things if our run command is non-null.
  53341. - if test -z "$run"; then
  53342. - # win32 will think the script is a binary if it has
  53343. - # a .exe suffix, so we strip it off here.
  53344. - case $output in
  53345. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  53346. - esac
  53347. - # test for cygwin because mv fails w/o .exe extensions
  53348. + -no-install)
  53349. case $host in
  53350. - *cygwin*)
  53351. - exeext=.exe
  53352. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  53353. - *) exeext= ;;
  53354. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  53355. + # The PATH hackery in wrapper scripts is required on Windows
  53356. + # and Darwin in order for the loader to find any dlls it needs.
  53357. + func_warning "\`-no-install' is ignored for $host"
  53358. + func_warning "assuming \`-no-fast-install' instead"
  53359. + fast_install=no
  53360. + ;;
  53361. + *) no_install=yes ;;
  53362. esac
  53363. - case $host in
  53364. - *cygwin* | *mingw* )
  53365. - output_name=`basename $output`
  53366. - output_path=`dirname $output`
  53367. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  53368. - cwrapper="$output_path/$output_name.exe"
  53369. - $rm $cwrappersource $cwrapper
  53370. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  53371. -
  53372. - cat > $cwrappersource <<EOF
  53373. + continue
  53374. + ;;
  53375. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  53376. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53377. + -no-undefined)
  53378. + allow_undefined=no
  53379. + continue
  53380. + ;;
  53381. - The $output program cannot be directly executed until all the libtool
  53382. - libraries that it depends on are installed.
  53383. + -objectlist)
  53384. + prev=objectlist
  53385. + continue
  53386. + ;;
  53387. - This wrapper executable should never be moved out of the build directory.
  53388. - If it is, it will not operate correctly.
  53389. + -o) prev=output ;;
  53390. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  53391. - but could eventually absorb all of the scripts functionality and
  53392. - exec $objdir/$outputname directly.
  53393. -*/
  53394. -EOF
  53395. - cat >> $cwrappersource<<"EOF"
  53396. -#include <stdio.h>
  53397. -#include <stdlib.h>
  53398. -#include <unistd.h>
  53399. -#include <malloc.h>
  53400. -#include <stdarg.h>
  53401. -#include <assert.h>
  53402. -#include <string.h>
  53403. -#include <ctype.h>
  53404. -#include <sys/stat.h>
  53405. + -precious-files-regex)
  53406. + prev=precious_regex
  53407. + continue
  53408. + ;;
  53409. -#if defined(PATH_MAX)
  53410. -# define LT_PATHMAX PATH_MAX
  53411. -#elif defined(MAXPATHLEN)
  53412. -# define LT_PATHMAX MAXPATHLEN
  53413. -#else
  53414. -# define LT_PATHMAX 1024
  53415. -#endif
  53416. + -release)
  53417. + prev=release
  53418. + continue
  53419. + ;;
  53420. -#ifndef DIR_SEPARATOR
  53421. -# define DIR_SEPARATOR '/'
  53422. -# define PATH_SEPARATOR ':'
  53423. -#endif
  53424. + -rpath)
  53425. + prev=rpath
  53426. + continue
  53427. + ;;
  53428. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  53429. - defined (__OS2__)
  53430. -# define HAVE_DOS_BASED_FILE_SYSTEM
  53431. -# ifndef DIR_SEPARATOR_2
  53432. -# define DIR_SEPARATOR_2 '\\'
  53433. -# endif
  53434. -# ifndef PATH_SEPARATOR_2
  53435. -# define PATH_SEPARATOR_2 ';'
  53436. -# endif
  53437. -#endif
  53438. + -R)
  53439. + prev=xrpath
  53440. + continue
  53441. + ;;
  53442. -#ifndef DIR_SEPARATOR_2
  53443. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  53444. -#else /* DIR_SEPARATOR_2 */
  53445. -# define IS_DIR_SEPARATOR(ch) \
  53446. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  53447. -#endif /* DIR_SEPARATOR_2 */
  53448. + -R*)
  53449. + func_stripname '-R' '' "$arg"
  53450. + dir=$func_stripname_result
  53451. + # We need an absolute path.
  53452. + case $dir in
  53453. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53454. + *)
  53455. + func_fatal_error "only absolute run-paths are allowed"
  53456. + ;;
  53457. + esac
  53458. + case "$xrpath " in
  53459. + *" $dir "*) ;;
  53460. + *) xrpath="$xrpath $dir" ;;
  53461. + esac
  53462. + continue
  53463. + ;;
  53464. -#ifndef PATH_SEPARATOR_2
  53465. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  53466. -#else /* PATH_SEPARATOR_2 */
  53467. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  53468. -#endif /* PATH_SEPARATOR_2 */
  53469. + -shared)
  53470. + # The effects of -shared are defined in a previous loop.
  53471. + continue
  53472. + ;;
  53473. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  53474. -#define XFREE(stale) do { \
  53475. - if (stale) { free ((void *) stale); stale = 0; } \
  53476. -} while (0)
  53477. + -shrext)
  53478. + prev=shrext
  53479. + continue
  53480. + ;;
  53481. -/* -DDEBUG is fairly common in CFLAGS. */
  53482. -#undef DEBUG
  53483. -#if defined DEBUGWRAPPER
  53484. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  53485. -#else
  53486. -# define DEBUG(format, ...)
  53487. -#endif
  53488. + -static | -static-libtool-libs)
  53489. + # The effects of -static are defined in a previous loop.
  53490. + # We used to do the same as -all-static on platforms that
  53491. + # didn't have a PIC flag, but the assumption that the effects
  53492. + # would be equivalent was wrong. It would break on at least
  53493. + # Digital Unix and AIX.
  53494. + continue
  53495. + ;;
  53496. -const char *program_name = NULL;
  53497. + -thread-safe)
  53498. + thread_safe=yes
  53499. + continue
  53500. + ;;
  53501. -void * xmalloc (size_t num);
  53502. -char * xstrdup (const char *string);
  53503. -const char * base_name (const char *name);
  53504. -char * find_executable(const char *wrapper);
  53505. -int check_executable(const char *path);
  53506. -char * strendzap(char *str, const char *pat);
  53507. -void lt_fatal (const char *message, ...);
  53508. + -version-info)
  53509. + prev=vinfo
  53510. + continue
  53511. + ;;
  53512. -int
  53513. -main (int argc, char *argv[])
  53514. -{
  53515. - char **newargz;
  53516. - int i;
  53517. + -version-number)
  53518. + prev=vinfo
  53519. + vinfo_number=yes
  53520. + continue
  53521. + ;;
  53522. - program_name = (char *) xstrdup (base_name (argv[0]));
  53523. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  53524. - DEBUG("(main) program_name : %s\n",program_name);
  53525. - newargz = XMALLOC(char *, argc+2);
  53526. -EOF
  53527. + -weak)
  53528. + prev=weak
  53529. + continue
  53530. + ;;
  53531. - cat >> $cwrappersource <<EOF
  53532. - newargz[0] = (char *) xstrdup("$SHELL");
  53533. -EOF
  53534. + -Wc,*)
  53535. + func_stripname '-Wc,' '' "$arg"
  53536. + args=$func_stripname_result
  53537. + arg=
  53538. + save_ifs="$IFS"; IFS=','
  53539. + for flag in $args; do
  53540. + IFS="$save_ifs"
  53541. + func_quote_for_eval "$flag"
  53542. + arg="$arg $wl$func_quote_for_eval_result"
  53543. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  53544. + done
  53545. + IFS="$save_ifs"
  53546. + func_stripname ' ' '' "$arg"
  53547. + arg=$func_stripname_result
  53548. + ;;
  53549. - cat >> $cwrappersource <<"EOF"
  53550. - newargz[1] = find_executable(argv[0]);
  53551. - if (newargz[1] == NULL)
  53552. - lt_fatal("Couldn't find %s", argv[0]);
  53553. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  53554. - /* we know the script has the same name, without the .exe */
  53555. - /* so make sure newargz[1] doesn't end in .exe */
  53556. - strendzap(newargz[1],".exe");
  53557. - for (i = 1; i < argc; i++)
  53558. - newargz[i+1] = xstrdup(argv[i]);
  53559. - newargz[argc+1] = NULL;
  53560. + -Wl,*)
  53561. + func_stripname '-Wl,' '' "$arg"
  53562. + args=$func_stripname_result
  53563. + arg=
  53564. + save_ifs="$IFS"; IFS=','
  53565. + for flag in $args; do
  53566. + IFS="$save_ifs"
  53567. + func_quote_for_eval "$flag"
  53568. + arg="$arg $wl$func_quote_for_eval_result"
  53569. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  53570. + linker_flags="$linker_flags $func_quote_for_eval_result"
  53571. + done
  53572. + IFS="$save_ifs"
  53573. + func_stripname ' ' '' "$arg"
  53574. + arg=$func_stripname_result
  53575. + ;;
  53576. - for (i=0; i<argc+1; i++)
  53577. - {
  53578. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  53579. - ;
  53580. - }
  53581. + -Xcompiler)
  53582. + prev=xcompiler
  53583. + continue
  53584. + ;;
  53585. -EOF
  53586. + -Xlinker)
  53587. + prev=xlinker
  53588. + continue
  53589. + ;;
  53590. - case $host_os in
  53591. - mingw*)
  53592. - cat >> $cwrappersource <<EOF
  53593. - execv("$SHELL",(char const **)newargz);
  53594. -EOF
  53595. - ;;
  53596. - *)
  53597. - cat >> $cwrappersource <<EOF
  53598. - execv("$SHELL",newargz);
  53599. -EOF
  53600. - ;;
  53601. - esac
  53602. + -XCClinker)
  53603. + prev=xcclinker
  53604. + continue
  53605. + ;;
  53606. - cat >> $cwrappersource <<"EOF"
  53607. - return 127;
  53608. -}
  53609. + # -msg_* for osf cc
  53610. + -msg_*)
  53611. + func_quote_for_eval "$arg"
  53612. + arg="$func_quote_for_eval_result"
  53613. + ;;
  53614. -void *
  53615. -xmalloc (size_t num)
  53616. -{
  53617. - void * p = (void *) malloc (num);
  53618. - if (!p)
  53619. - lt_fatal ("Memory exhausted");
  53620. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  53621. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  53622. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  53623. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  53624. + # -q* pass through compiler args for the IBM compiler
  53625. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  53626. + # compiler args for GCC
  53627. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  53628. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  53629. + # @file GCC response files
  53630. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  53631. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  53632. + func_quote_for_eval "$arg"
  53633. + arg="$func_quote_for_eval_result"
  53634. + func_append compile_command " $arg"
  53635. + func_append finalize_command " $arg"
  53636. + compiler_flags="$compiler_flags $arg"
  53637. + continue
  53638. + ;;
  53639. - return p;
  53640. -}
  53641. + # Some other compiler flag.
  53642. + -* | +*)
  53643. + func_quote_for_eval "$arg"
  53644. + arg="$func_quote_for_eval_result"
  53645. + ;;
  53646. -char *
  53647. -xstrdup (const char *string)
  53648. -{
  53649. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  53650. -;
  53651. -}
  53652. + *.$objext)
  53653. + # A standard object.
  53654. + objs="$objs $arg"
  53655. + ;;
  53656. -const char *
  53657. -base_name (const char *name)
  53658. -{
  53659. - const char *base;
  53660. + *.lo)
  53661. + # A libtool-controlled object.
  53662. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53663. - /* Skip over the disk name in MSDOS pathnames. */
  53664. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  53665. - name += 2;
  53666. -#endif
  53667. + # Check to see that this really is a libtool object.
  53668. + if func_lalib_unsafe_p "$arg"; then
  53669. + pic_object=
  53670. + non_pic_object=
  53671. - for (base = name; *name; name++)
  53672. - if (IS_DIR_SEPARATOR (*name))
  53673. - base = name + 1;
  53674. - return base;
  53675. -}
  53676. + # Read the .lo file
  53677. + func_source "$arg"
  53678. -int
  53679. -check_executable(const char * path)
  53680. -{
  53681. - struct stat st;
  53682. + if test -z "$pic_object" ||
  53683. + test -z "$non_pic_object" ||
  53684. + test "$pic_object" = none &&
  53685. + test "$non_pic_object" = none; then
  53686. + func_fatal_error "cannot find name of object for \`$arg'"
  53687. + fi
  53688. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  53689. - if ((!path) || (!*path))
  53690. - return 0;
  53691. + # Extract subdirectory from the argument.
  53692. + func_dirname "$arg" "/" ""
  53693. + xdir="$func_dirname_result"
  53694. - if ((stat (path, &st) >= 0) &&
  53695. - (
  53696. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  53697. -#if defined (S_IXOTH)
  53698. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  53699. -#endif
  53700. -#if defined (S_IXGRP)
  53701. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  53702. -#endif
  53703. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  53704. - )
  53705. - return 1;
  53706. - else
  53707. - return 0;
  53708. -}
  53709. + if test "$pic_object" != none; then
  53710. + # Prepend the subdirectory the object is found in.
  53711. + pic_object="$xdir$pic_object"
  53712. -/* Searches for the full path of the wrapper. Returns
  53713. - newly allocated full path name if found, NULL otherwise */
  53714. -char *
  53715. -find_executable (const char* wrapper)
  53716. -{
  53717. - int has_slash = 0;
  53718. - const char* p;
  53719. - const char* p_next;
  53720. - /* static buffer for getcwd */
  53721. - char tmp[LT_PATHMAX + 1];
  53722. - int tmp_len;
  53723. - char* concat_name;
  53724. + if test "$prev" = dlfiles; then
  53725. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53726. + dlfiles="$dlfiles $pic_object"
  53727. + prev=
  53728. + continue
  53729. + else
  53730. + # If libtool objects are unsupported, then we need to preload.
  53731. + prev=dlprefiles
  53732. + fi
  53733. + fi
  53734. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  53735. + # CHECK ME: I think I busted this. -Ossama
  53736. + if test "$prev" = dlprefiles; then
  53737. + # Preload the old-style object.
  53738. + dlprefiles="$dlprefiles $pic_object"
  53739. + prev=
  53740. + fi
  53741. - if ((wrapper == NULL) || (*wrapper == '\0'))
  53742. - return NULL;
  53743. + # A PIC object.
  53744. + func_append libobjs " $pic_object"
  53745. + arg="$pic_object"
  53746. + fi
  53747. - /* Absolute path? */
  53748. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53749. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  53750. - {
  53751. - concat_name = xstrdup (wrapper);
  53752. - if (check_executable(concat_name))
  53753. - return concat_name;
  53754. - XFREE(concat_name);
  53755. - }
  53756. - else
  53757. - {
  53758. -#endif
  53759. - if (IS_DIR_SEPARATOR (wrapper[0]))
  53760. - {
  53761. - concat_name = xstrdup (wrapper);
  53762. - if (check_executable(concat_name))
  53763. - return concat_name;
  53764. - XFREE(concat_name);
  53765. - }
  53766. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53767. - }
  53768. -#endif
  53769. + # Non-PIC object.
  53770. + if test "$non_pic_object" != none; then
  53771. + # Prepend the subdirectory the object is found in.
  53772. + non_pic_object="$xdir$non_pic_object"
  53773. - for (p = wrapper; *p; p++)
  53774. - if (*p == '/')
  53775. - {
  53776. - has_slash = 1;
  53777. - break;
  53778. - }
  53779. - if (!has_slash)
  53780. - {
  53781. - /* no slashes; search PATH */
  53782. - const char* path = getenv ("PATH");
  53783. - if (path != NULL)
  53784. - {
  53785. - for (p = path; *p; p = p_next)
  53786. - {
  53787. - const char* q;
  53788. - size_t p_len;
  53789. - for (q = p; *q; q++)
  53790. - if (IS_PATH_SEPARATOR(*q))
  53791. - break;
  53792. - p_len = q - p;
  53793. - p_next = (*q == '\0' ? q : q + 1);
  53794. - if (p_len == 0)
  53795. - {
  53796. - /* empty path: current directory */
  53797. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  53798. - lt_fatal ("getcwd failed");
  53799. - tmp_len = strlen(tmp);
  53800. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  53801. - memcpy (concat_name, tmp, tmp_len);
  53802. - concat_name[tmp_len] = '/';
  53803. - strcpy (concat_name + tmp_len + 1, wrapper);
  53804. - }
  53805. - else
  53806. - {
  53807. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  53808. - memcpy (concat_name, p, p_len);
  53809. - concat_name[p_len] = '/';
  53810. - strcpy (concat_name + p_len + 1, wrapper);
  53811. - }
  53812. - if (check_executable(concat_name))
  53813. - return concat_name;
  53814. - XFREE(concat_name);
  53815. - }
  53816. - }
  53817. - /* not found in PATH; assume curdir */
  53818. - }
  53819. - /* Relative path | not found in path: prepend cwd */
  53820. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  53821. - lt_fatal ("getcwd failed");
  53822. - tmp_len = strlen(tmp);
  53823. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  53824. - memcpy (concat_name, tmp, tmp_len);
  53825. - concat_name[tmp_len] = '/';
  53826. - strcpy (concat_name + tmp_len + 1, wrapper);
  53827. + # A standard non-PIC object
  53828. + func_append non_pic_objects " $non_pic_object"
  53829. + if test -z "$pic_object" || test "$pic_object" = none ; then
  53830. + arg="$non_pic_object"
  53831. + fi
  53832. + else
  53833. + # If the PIC object exists, use it instead.
  53834. + # $xdir was prepended to $pic_object above.
  53835. + non_pic_object="$pic_object"
  53836. + func_append non_pic_objects " $non_pic_object"
  53837. + fi
  53838. + else
  53839. + # Only an error if not doing a dry-run.
  53840. + if $opt_dry_run; then
  53841. + # Extract subdirectory from the argument.
  53842. + func_dirname "$arg" "/" ""
  53843. + xdir="$func_dirname_result"
  53844. - if (check_executable(concat_name))
  53845. - return concat_name;
  53846. - XFREE(concat_name);
  53847. - return NULL;
  53848. -}
  53849. + func_lo2o "$arg"
  53850. + pic_object=$xdir$objdir/$func_lo2o_result
  53851. + non_pic_object=$xdir$func_lo2o_result
  53852. + func_append libobjs " $pic_object"
  53853. + func_append non_pic_objects " $non_pic_object"
  53854. + else
  53855. + func_fatal_error "\`$arg' is not a valid libtool object"
  53856. + fi
  53857. + fi
  53858. + ;;
  53859. -char *
  53860. -strendzap(char *str, const char *pat)
  53861. -{
  53862. - size_t len, patlen;
  53863. + *.$libext)
  53864. + # An archive.
  53865. + deplibs="$deplibs $arg"
  53866. + old_deplibs="$old_deplibs $arg"
  53867. + continue
  53868. + ;;
  53869. - assert(str != NULL);
  53870. - assert(pat != NULL);
  53871. + *.la)
  53872. + # A libtool-controlled library.
  53873. - len = strlen(str);
  53874. - patlen = strlen(pat);
  53875. + if test "$prev" = dlfiles; then
  53876. + # This library was specified with -dlopen.
  53877. + dlfiles="$dlfiles $arg"
  53878. + prev=
  53879. + elif test "$prev" = dlprefiles; then
  53880. + # The library was specified with -dlpreopen.
  53881. + dlprefiles="$dlprefiles $arg"
  53882. + prev=
  53883. + else
  53884. + deplibs="$deplibs $arg"
  53885. + fi
  53886. + continue
  53887. + ;;
  53888. - if (patlen <= len)
  53889. - {
  53890. - str += len - patlen;
  53891. - if (strcmp(str, pat) == 0)
  53892. - *str = '\0';
  53893. - }
  53894. - return str;
  53895. -}
  53896. + # Some other compiler argument.
  53897. + *)
  53898. + # Unknown arguments in both finalize_command and compile_command need
  53899. + # to be aesthetically quoted because they are evaled later.
  53900. + func_quote_for_eval "$arg"
  53901. + arg="$func_quote_for_eval_result"
  53902. + ;;
  53903. + esac # arg
  53904. -static void
  53905. -lt_error_core (int exit_status, const char * mode,
  53906. - const char * message, va_list ap)
  53907. -{
  53908. - fprintf (stderr, "%s: %s: ", program_name, mode);
  53909. - vfprintf (stderr, message, ap);
  53910. - fprintf (stderr, ".\n");
  53911. + # Now actually substitute the argument into the commands.
  53912. + if test -n "$arg"; then
  53913. + func_append compile_command " $arg"
  53914. + func_append finalize_command " $arg"
  53915. + fi
  53916. + done # argument parsing loop
  53917. - if (exit_status >= 0)
  53918. - exit (exit_status);
  53919. -}
  53920. + test -n "$prev" && \
  53921. + func_fatal_help "the \`$prevarg' option requires an argument"
  53922. -void
  53923. -lt_fatal (const char *message, ...)
  53924. -{
  53925. - va_list ap;
  53926. - va_start (ap, message);
  53927. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  53928. - va_end (ap);
  53929. -}
  53930. -EOF
  53931. - # we should really use a build-platform specific compiler
  53932. - # here, but OTOH, the wrappers (shell script and this C one)
  53933. - # are only useful if you want to execute the "real" binary.
  53934. - # Since the "real" binary is built for $host, then this
  53935. - # wrapper might as well be built for $host, too.
  53936. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  53937. - ;;
  53938. - esac
  53939. - $rm $output
  53940. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  53941. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  53942. + eval arg=\"$export_dynamic_flag_spec\"
  53943. + func_append compile_command " $arg"
  53944. + func_append finalize_command " $arg"
  53945. + fi
  53946. - $echo > $output "\
  53947. -#! $SHELL
  53948. + oldlibs=
  53949. + # calculate the name of the file, without its directory
  53950. + func_basename "$output"
  53951. + outputname="$func_basename_result"
  53952. + libobjs_save="$libobjs"
  53953. -# $output - temporary wrapper script for $objdir/$outputname
  53954. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53955. -#
  53956. -# The $output program cannot be directly executed until all the libtool
  53957. -# libraries that it depends on are installed.
  53958. -#
  53959. -# This wrapper script should never be moved out of the build directory.
  53960. -# If it is, it will not operate correctly.
  53961. + if test -n "$shlibpath_var"; then
  53962. + # get the directories listed in $shlibpath_var
  53963. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  53964. + else
  53965. + shlib_search_path=
  53966. + fi
  53967. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  53968. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  53969. -# Sed substitution that helps us do robust quoting. It backslashifies
  53970. -# metacharacters that are still active within double-quoted strings.
  53971. -Xsed='${SED} -e 1s/^X//'
  53972. -sed_quote_subst='$sed_quote_subst'
  53973. + func_dirname "$output" "/" ""
  53974. + output_objdir="$func_dirname_result$objdir"
  53975. + # Create the object directory.
  53976. + func_mkdir_p "$output_objdir"
  53977. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  53978. -# if CDPATH is set.
  53979. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  53980. + # Determine the type of output
  53981. + case $output in
  53982. + "")
  53983. + func_fatal_help "you must specify an output file"
  53984. + ;;
  53985. + *.$libext) linkmode=oldlib ;;
  53986. + *.lo | *.$objext) linkmode=obj ;;
  53987. + *.la) linkmode=lib ;;
  53988. + *) linkmode=prog ;; # Anything else should be a program.
  53989. + esac
  53990. -relink_command=\"$relink_command\"
  53991. + specialdeplibs=
  53992. -# This environment variable determines our operation mode.
  53993. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  53994. - # install mode needs the following variable:
  53995. - notinst_deplibs='$notinst_deplibs'
  53996. -else
  53997. - # When we are sourced in execute mode, \$file and \$echo are already set.
  53998. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53999. - echo=\"$qecho\"
  54000. - file=\"\$0\"
  54001. - # Make sure echo works.
  54002. - if test \"X\$1\" = X--no-reexec; then
  54003. - # Discard the --no-reexec flag, and continue.
  54004. - shift
  54005. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  54006. - # Yippee, \$echo works!
  54007. - :
  54008. - else
  54009. - # Restart under the correct shell, and then maybe \$echo will work.
  54010. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  54011. + libs=
  54012. + # Find all interdependent deplibs by searching for libraries
  54013. + # that are linked more than once (e.g. -la -lb -la)
  54014. + for deplib in $deplibs; do
  54015. + if $opt_duplicate_deps ; then
  54016. + case "$libs " in
  54017. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54018. + esac
  54019. + fi
  54020. + libs="$libs $deplib"
  54021. + done
  54022. +
  54023. + if test "$linkmode" = lib; then
  54024. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  54025. +
  54026. + # Compute libraries that are listed more than once in $predeps
  54027. + # $postdeps and mark them as special (i.e., whose duplicates are
  54028. + # not to be eliminated).
  54029. + pre_post_deps=
  54030. + if $opt_duplicate_compiler_generated_deps; then
  54031. + for pre_post_dep in $predeps $postdeps; do
  54032. + case "$pre_post_deps " in
  54033. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  54034. + esac
  54035. + pre_post_deps="$pre_post_deps $pre_post_dep"
  54036. + done
  54037. + fi
  54038. + pre_post_deps=
  54039. fi
  54040. - fi\
  54041. -"
  54042. - $echo >> $output "\
  54043. - # Find the directory that this script lives in.
  54044. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  54045. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  54046. + deplibs=
  54047. + newdependency_libs=
  54048. + newlib_search_path=
  54049. + need_relink=no # whether we're linking any uninstalled libtool libraries
  54050. + notinst_deplibs= # not-installed libtool libraries
  54051. + notinst_path= # paths that contain not-installed libtool libraries
  54052. - # Follow symbolic links until we get to the real thisdir.
  54053. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  54054. - while test -n \"\$file\"; do
  54055. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  54056. + case $linkmode in
  54057. + lib)
  54058. + passes="conv dlpreopen link"
  54059. + for file in $dlfiles $dlprefiles; do
  54060. + case $file in
  54061. + *.la) ;;
  54062. + *)
  54063. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  54064. + ;;
  54065. + esac
  54066. + done
  54067. + ;;
  54068. + prog)
  54069. + compile_deplibs=
  54070. + finalize_deplibs=
  54071. + alldeplibs=no
  54072. + newdlfiles=
  54073. + newdlprefiles=
  54074. + passes="conv scan dlopen dlpreopen link"
  54075. + ;;
  54076. + *) passes="conv"
  54077. + ;;
  54078. + esac
  54079. - # If there was a directory component, then change thisdir.
  54080. - if test \"x\$destdir\" != \"x\$file\"; then
  54081. - case \"\$destdir\" in
  54082. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  54083. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  54084. - esac
  54085. - fi
  54086. + for pass in $passes; do
  54087. + # The preopen pass in lib mode reverses $deplibs; put it back here
  54088. + # so that -L comes before libs that need it for instance...
  54089. + if test "$linkmode,$pass" = "lib,link"; then
  54090. + ## FIXME: Find the place where the list is rebuilt in the wrong
  54091. + ## order, and fix it there properly
  54092. + tmp_deplibs=
  54093. + for deplib in $deplibs; do
  54094. + tmp_deplibs="$deplib $tmp_deplibs"
  54095. + done
  54096. + deplibs="$tmp_deplibs"
  54097. + fi
  54098. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  54099. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  54100. - done
  54101. + if test "$linkmode,$pass" = "lib,link" ||
  54102. + test "$linkmode,$pass" = "prog,scan"; then
  54103. + libs="$deplibs"
  54104. + deplibs=
  54105. + fi
  54106. + if test "$linkmode" = prog; then
  54107. + case $pass in
  54108. + dlopen) libs="$dlfiles" ;;
  54109. + dlpreopen) libs="$dlprefiles" ;;
  54110. + link)
  54111. + libs="$deplibs %DEPLIBS%"
  54112. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  54113. + ;;
  54114. + esac
  54115. + fi
  54116. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  54117. + # Collect and forward deplibs of preopened libtool libs
  54118. + for lib in $dlprefiles; do
  54119. + # Ignore non-libtool-libs
  54120. + dependency_libs=
  54121. + case $lib in
  54122. + *.la) func_source "$lib" ;;
  54123. + esac
  54124. +
  54125. + # Collect preopened libtool deplibs, except any this library
  54126. + # has declared as weak libs
  54127. + for deplib in $dependency_libs; do
  54128. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  54129. + case " $weak_libs " in
  54130. + *" $deplib_base "*) ;;
  54131. + *) deplibs="$deplibs $deplib" ;;
  54132. + esac
  54133. + done
  54134. + done
  54135. + libs="$dlprefiles"
  54136. + fi
  54137. + if test "$pass" = dlopen; then
  54138. + # Collect dlpreopened libraries
  54139. + save_deplibs="$deplibs"
  54140. + deplibs=
  54141. + fi
  54142. +
  54143. + for deplib in $libs; do
  54144. + lib=
  54145. + found=no
  54146. + case $deplib in
  54147. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  54148. + if test "$linkmode,$pass" = "prog,link"; then
  54149. + compile_deplibs="$deplib $compile_deplibs"
  54150. + finalize_deplibs="$deplib $finalize_deplibs"
  54151. + else
  54152. + compiler_flags="$compiler_flags $deplib"
  54153. + if test "$linkmode" = lib ; then
  54154. + case "$new_inherited_linker_flags " in
  54155. + *" $deplib "*) ;;
  54156. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  54157. + esac
  54158. + fi
  54159. + fi
  54160. + continue
  54161. + ;;
  54162. + -l*)
  54163. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  54164. + func_warning "\`-l' is ignored for archives/objects"
  54165. + continue
  54166. + fi
  54167. + func_stripname '-l' '' "$deplib"
  54168. + name=$func_stripname_result
  54169. + if test "$linkmode" = lib; then
  54170. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  54171. + else
  54172. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  54173. + fi
  54174. + for searchdir in $searchdirs; do
  54175. + for search_ext in .la $std_shrext .so .a; do
  54176. + # Search the libtool library
  54177. + lib="$searchdir/lib${name}${search_ext}"
  54178. + if test -f "$lib"; then
  54179. + if test "$search_ext" = ".la"; then
  54180. + found=yes
  54181. + else
  54182. + found=no
  54183. + fi
  54184. + break 2
  54185. + fi
  54186. + done
  54187. + done
  54188. + if test "$found" != yes; then
  54189. + # deplib doesn't seem to be a libtool library
  54190. + if test "$linkmode,$pass" = "prog,link"; then
  54191. + compile_deplibs="$deplib $compile_deplibs"
  54192. + finalize_deplibs="$deplib $finalize_deplibs"
  54193. + else
  54194. + deplibs="$deplib $deplibs"
  54195. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54196. + fi
  54197. + continue
  54198. + else # deplib is a libtool library
  54199. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  54200. + # We need to do some special things here, and not later.
  54201. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54202. + case " $predeps $postdeps " in
  54203. + *" $deplib "*)
  54204. + if func_lalib_p "$lib"; then
  54205. + library_names=
  54206. + old_library=
  54207. + func_source "$lib"
  54208. + for l in $old_library $library_names; do
  54209. + ll="$l"
  54210. + done
  54211. + if test "X$ll" = "X$old_library" ; then # only static version available
  54212. + found=no
  54213. + func_dirname "$lib" "" "."
  54214. + ladir="$func_dirname_result"
  54215. + lib=$ladir/$old_library
  54216. + if test "$linkmode,$pass" = "prog,link"; then
  54217. + compile_deplibs="$deplib $compile_deplibs"
  54218. + finalize_deplibs="$deplib $finalize_deplibs"
  54219. + else
  54220. + deplibs="$deplib $deplibs"
  54221. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54222. + fi
  54223. + continue
  54224. + fi
  54225. + fi
  54226. + ;;
  54227. + *) ;;
  54228. + esac
  54229. + fi
  54230. + fi
  54231. + ;; # -l
  54232. + *.ltframework)
  54233. + if test "$linkmode,$pass" = "prog,link"; then
  54234. + compile_deplibs="$deplib $compile_deplibs"
  54235. + finalize_deplibs="$deplib $finalize_deplibs"
  54236. + else
  54237. + deplibs="$deplib $deplibs"
  54238. + if test "$linkmode" = lib ; then
  54239. + case "$new_inherited_linker_flags " in
  54240. + *" $deplib "*) ;;
  54241. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  54242. + esac
  54243. + fi
  54244. + fi
  54245. + continue
  54246. + ;;
  54247. + -L*)
  54248. + case $linkmode in
  54249. + lib)
  54250. + deplibs="$deplib $deplibs"
  54251. + test "$pass" = conv && continue
  54252. + newdependency_libs="$deplib $newdependency_libs"
  54253. + func_stripname '-L' '' "$deplib"
  54254. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54255. + ;;
  54256. + prog)
  54257. + if test "$pass" = conv; then
  54258. + deplibs="$deplib $deplibs"
  54259. + continue
  54260. + fi
  54261. + if test "$pass" = scan; then
  54262. + deplibs="$deplib $deplibs"
  54263. + else
  54264. + compile_deplibs="$deplib $compile_deplibs"
  54265. + finalize_deplibs="$deplib $finalize_deplibs"
  54266. + fi
  54267. + func_stripname '-L' '' "$deplib"
  54268. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54269. + ;;
  54270. + *)
  54271. + func_warning "\`-L' is ignored for archives/objects"
  54272. + ;;
  54273. + esac # linkmode
  54274. + continue
  54275. + ;; # -L
  54276. + -R*)
  54277. + if test "$pass" = link; then
  54278. + func_stripname '-R' '' "$deplib"
  54279. + dir=$func_stripname_result
  54280. + # Make sure the xrpath contains only unique directories.
  54281. + case "$xrpath " in
  54282. + *" $dir "*) ;;
  54283. + *) xrpath="$xrpath $dir" ;;
  54284. + esac
  54285. + fi
  54286. + deplibs="$deplib $deplibs"
  54287. + continue
  54288. + ;;
  54289. + *.la) lib="$deplib" ;;
  54290. + *.$libext)
  54291. + if test "$pass" = conv; then
  54292. + deplibs="$deplib $deplibs"
  54293. + continue
  54294. + fi
  54295. + case $linkmode in
  54296. + lib)
  54297. + # Linking convenience modules into shared libraries is allowed,
  54298. + # but linking other static libraries is non-portable.
  54299. + case " $dlpreconveniencelibs " in
  54300. + *" $deplib "*) ;;
  54301. + *)
  54302. + valid_a_lib=no
  54303. + case $deplibs_check_method in
  54304. + match_pattern*)
  54305. + set dummy $deplibs_check_method; shift
  54306. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  54307. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  54308. + | $EGREP "$match_pattern_regex" > /dev/null; then
  54309. + valid_a_lib=yes
  54310. + fi
  54311. + ;;
  54312. + pass_all)
  54313. + valid_a_lib=yes
  54314. + ;;
  54315. + esac
  54316. + if test "$valid_a_lib" != yes; then
  54317. + $ECHO
  54318. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  54319. + $ECHO "*** I have the capability to make that library automatically link in when"
  54320. + $ECHO "*** you link to this library. But I can only do this if you have a"
  54321. + $ECHO "*** shared version of the library, which you do not appear to have"
  54322. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  54323. + $ECHO "*** that it is just a static archive that I should not use here."
  54324. + else
  54325. + $ECHO
  54326. + $ECHO "*** Warning: Linking the shared library $output against the"
  54327. + $ECHO "*** static library $deplib is not portable!"
  54328. + deplibs="$deplib $deplibs"
  54329. + fi
  54330. + ;;
  54331. + esac
  54332. + continue
  54333. + ;;
  54334. + prog)
  54335. + if test "$pass" != link; then
  54336. + deplibs="$deplib $deplibs"
  54337. + else
  54338. + compile_deplibs="$deplib $compile_deplibs"
  54339. + finalize_deplibs="$deplib $finalize_deplibs"
  54340. + fi
  54341. + continue
  54342. + ;;
  54343. + esac # linkmode
  54344. + ;; # *.$libext
  54345. + *.lo | *.$objext)
  54346. + if test "$pass" = conv; then
  54347. + deplibs="$deplib $deplibs"
  54348. + elif test "$linkmode" = prog; then
  54349. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  54350. + # If there is no dlopen support or we're linking statically,
  54351. + # we need to preload.
  54352. + newdlprefiles="$newdlprefiles $deplib"
  54353. + compile_deplibs="$deplib $compile_deplibs"
  54354. + finalize_deplibs="$deplib $finalize_deplibs"
  54355. + else
  54356. + newdlfiles="$newdlfiles $deplib"
  54357. + fi
  54358. + fi
  54359. + continue
  54360. + ;;
  54361. + %DEPLIBS%)
  54362. + alldeplibs=yes
  54363. + continue
  54364. + ;;
  54365. + esac # case $deplib
  54366. +
  54367. + if test "$found" = yes || test -f "$lib"; then :
  54368. + else
  54369. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  54370. + fi
  54371. +
  54372. + # Check to see that this really is a libtool archive.
  54373. + func_lalib_unsafe_p "$lib" \
  54374. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  54375. +
  54376. + func_dirname "$lib" "" "."
  54377. + ladir="$func_dirname_result"
  54378. +
  54379. + dlname=
  54380. + dlopen=
  54381. + dlpreopen=
  54382. + libdir=
  54383. + library_names=
  54384. + old_library=
  54385. + inherited_linker_flags=
  54386. + # If the library was installed with an old release of libtool,
  54387. + # it will not redefine variables installed, or shouldnotlink
  54388. + installed=yes
  54389. + shouldnotlink=no
  54390. + avoidtemprpath=
  54391. +
  54392. +
  54393. + # Read the .la file
  54394. + func_source "$lib"
  54395. +
  54396. + # Convert "-framework foo" to "foo.ltframework"
  54397. + if test -n "$inherited_linker_flags"; then
  54398. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  54399. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  54400. + case " $new_inherited_linker_flags " in
  54401. + *" $tmp_inherited_linker_flag "*) ;;
  54402. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  54403. + esac
  54404. + done
  54405. + fi
  54406. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54407. + if test "$linkmode,$pass" = "lib,link" ||
  54408. + test "$linkmode,$pass" = "prog,scan" ||
  54409. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  54410. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  54411. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  54412. + fi
  54413. +
  54414. + if test "$pass" = conv; then
  54415. + # Only check for convenience libraries
  54416. + deplibs="$lib $deplibs"
  54417. + if test -z "$libdir"; then
  54418. + if test -z "$old_library"; then
  54419. + func_fatal_error "cannot find name of link library for \`$lib'"
  54420. + fi
  54421. + # It is a libtool convenience library, so add in its objects.
  54422. + convenience="$convenience $ladir/$objdir/$old_library"
  54423. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  54424. + tmp_libs=
  54425. + for deplib in $dependency_libs; do
  54426. + deplibs="$deplib $deplibs"
  54427. + if $opt_duplicate_deps ; then
  54428. + case "$tmp_libs " in
  54429. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54430. + esac
  54431. + fi
  54432. + tmp_libs="$tmp_libs $deplib"
  54433. + done
  54434. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  54435. + func_fatal_error "\`$lib' is not a convenience library"
  54436. + fi
  54437. + continue
  54438. + fi # $pass = conv
  54439. +
  54440. +
  54441. + # Get the name of the library we link against.
  54442. + linklib=
  54443. + for l in $old_library $library_names; do
  54444. + linklib="$l"
  54445. + done
  54446. + if test -z "$linklib"; then
  54447. + func_fatal_error "cannot find name of link library for \`$lib'"
  54448. + fi
  54449. +
  54450. + # This library was specified with -dlopen.
  54451. + if test "$pass" = dlopen; then
  54452. + if test -z "$libdir"; then
  54453. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  54454. + fi
  54455. + if test -z "$dlname" ||
  54456. + test "$dlopen_support" != yes ||
  54457. + test "$build_libtool_libs" = no; then
  54458. + # If there is no dlname, no dlopen support or we're linking
  54459. + # statically, we need to preload. We also need to preload any
  54460. + # dependent libraries so libltdl's deplib preloader doesn't
  54461. + # bomb out in the load deplibs phase.
  54462. + dlprefiles="$dlprefiles $lib $dependency_libs"
  54463. + else
  54464. + newdlfiles="$newdlfiles $lib"
  54465. + fi
  54466. + continue
  54467. + fi # $pass = dlopen
  54468. +
  54469. + # We need an absolute path.
  54470. + case $ladir in
  54471. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  54472. + *)
  54473. + abs_ladir=`cd "$ladir" && pwd`
  54474. + if test -z "$abs_ladir"; then
  54475. + func_warning "cannot determine absolute directory name of \`$ladir'"
  54476. + func_warning "passing it literally to the linker, although it might fail"
  54477. + abs_ladir="$ladir"
  54478. + fi
  54479. + ;;
  54480. + esac
  54481. + func_basename "$lib"
  54482. + laname="$func_basename_result"
  54483. +
  54484. + # Find the relevant object directory and library name.
  54485. + if test "X$installed" = Xyes; then
  54486. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  54487. + func_warning "library \`$lib' was moved."
  54488. + dir="$ladir"
  54489. + absdir="$abs_ladir"
  54490. + libdir="$abs_ladir"
  54491. + else
  54492. + dir="$libdir"
  54493. + absdir="$libdir"
  54494. + fi
  54495. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  54496. + else
  54497. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  54498. + dir="$ladir"
  54499. + absdir="$abs_ladir"
  54500. + # Remove this search path later
  54501. + notinst_path="$notinst_path $abs_ladir"
  54502. + else
  54503. + dir="$ladir/$objdir"
  54504. + absdir="$abs_ladir/$objdir"
  54505. + # Remove this search path later
  54506. + notinst_path="$notinst_path $abs_ladir"
  54507. + fi
  54508. + fi # $installed = yes
  54509. + func_stripname 'lib' '.la' "$laname"
  54510. + name=$func_stripname_result
  54511. +
  54512. + # This library was specified with -dlpreopen.
  54513. + if test "$pass" = dlpreopen; then
  54514. + if test -z "$libdir" && test "$linkmode" = prog; then
  54515. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  54516. + fi
  54517. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  54518. + # are required to link).
  54519. + if test -n "$old_library"; then
  54520. + newdlprefiles="$newdlprefiles $dir/$old_library"
  54521. + # Keep a list of preopened convenience libraries to check
  54522. + # that they are being used correctly in the link pass.
  54523. + test -z "$libdir" && \
  54524. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  54525. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  54526. + elif test -n "$dlname"; then
  54527. + newdlprefiles="$newdlprefiles $dir/$dlname"
  54528. + else
  54529. + newdlprefiles="$newdlprefiles $dir/$linklib"
  54530. + fi
  54531. + fi # $pass = dlpreopen
  54532. +
  54533. + if test -z "$libdir"; then
  54534. + # Link the convenience library
  54535. + if test "$linkmode" = lib; then
  54536. + deplibs="$dir/$old_library $deplibs"
  54537. + elif test "$linkmode,$pass" = "prog,link"; then
  54538. + compile_deplibs="$dir/$old_library $compile_deplibs"
  54539. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  54540. + else
  54541. + deplibs="$lib $deplibs" # used for prog,scan pass
  54542. + fi
  54543. + continue
  54544. + fi
  54545. +
  54546. +
  54547. + if test "$linkmode" = prog && test "$pass" != link; then
  54548. + newlib_search_path="$newlib_search_path $ladir"
  54549. + deplibs="$lib $deplibs"
  54550. +
  54551. + linkalldeplibs=no
  54552. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  54553. + test "$build_libtool_libs" = no; then
  54554. + linkalldeplibs=yes
  54555. + fi
  54556. +
  54557. + tmp_libs=
  54558. + for deplib in $dependency_libs; do
  54559. + case $deplib in
  54560. + -L*) func_stripname '-L' '' "$deplib"
  54561. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54562. + ;;
  54563. + esac
  54564. + # Need to link against all dependency_libs?
  54565. + if test "$linkalldeplibs" = yes; then
  54566. + deplibs="$deplib $deplibs"
  54567. + else
  54568. + # Need to hardcode shared library paths
  54569. + # or/and link against static libraries
  54570. + newdependency_libs="$deplib $newdependency_libs"
  54571. + fi
  54572. + if $opt_duplicate_deps ; then
  54573. + case "$tmp_libs " in
  54574. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54575. + esac
  54576. + fi
  54577. + tmp_libs="$tmp_libs $deplib"
  54578. + done # for deplib
  54579. + continue
  54580. + fi # $linkmode = prog...
  54581. +
  54582. + if test "$linkmode,$pass" = "prog,link"; then
  54583. + if test -n "$library_names" &&
  54584. + { { test "$prefer_static_libs" = no ||
  54585. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  54586. + test -z "$old_library"; }; then
  54587. + # We need to hardcode the library path
  54588. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  54589. + # Make sure the rpath contains only unique directories.
  54590. + case "$temp_rpath:" in
  54591. + *"$absdir:"*) ;;
  54592. + *) temp_rpath="$temp_rpath$absdir:" ;;
  54593. + esac
  54594. + fi
  54595. +
  54596. + # Hardcode the library path.
  54597. + # Skip directories that are in the system default run-time
  54598. + # search path.
  54599. + case " $sys_lib_dlsearch_path " in
  54600. + *" $absdir "*) ;;
  54601. + *)
  54602. + case "$compile_rpath " in
  54603. + *" $absdir "*) ;;
  54604. + *) compile_rpath="$compile_rpath $absdir"
  54605. + esac
  54606. + ;;
  54607. + esac
  54608. + case " $sys_lib_dlsearch_path " in
  54609. + *" $libdir "*) ;;
  54610. + *)
  54611. + case "$finalize_rpath " in
  54612. + *" $libdir "*) ;;
  54613. + *) finalize_rpath="$finalize_rpath $libdir"
  54614. + esac
  54615. + ;;
  54616. + esac
  54617. + fi # $linkmode,$pass = prog,link...
  54618. +
  54619. + if test "$alldeplibs" = yes &&
  54620. + { test "$deplibs_check_method" = pass_all ||
  54621. + { test "$build_libtool_libs" = yes &&
  54622. + test -n "$library_names"; }; }; then
  54623. + # We only need to search for static libraries
  54624. + continue
  54625. + fi
  54626. + fi
  54627. +
  54628. + link_static=no # Whether the deplib will be linked statically
  54629. + use_static_libs=$prefer_static_libs
  54630. + if test "$use_static_libs" = built && test "$installed" = yes; then
  54631. + use_static_libs=no
  54632. + fi
  54633. + if test -n "$library_names" &&
  54634. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  54635. + case $host in
  54636. + *cygwin* | *mingw* | *cegcc*)
  54637. + # No point in relinking DLLs because paths are not encoded
  54638. + notinst_deplibs="$notinst_deplibs $lib"
  54639. + need_relink=no
  54640. + ;;
  54641. + *)
  54642. + if test "$installed" = no; then
  54643. + notinst_deplibs="$notinst_deplibs $lib"
  54644. + need_relink=yes
  54645. + fi
  54646. + ;;
  54647. + esac
  54648. + # This is a shared library
  54649. +
  54650. + # Warn about portability, can't link against -module's on some
  54651. + # systems (darwin). Don't bleat about dlopened modules though!
  54652. + dlopenmodule=""
  54653. + for dlpremoduletest in $dlprefiles; do
  54654. + if test "X$dlpremoduletest" = "X$lib"; then
  54655. + dlopenmodule="$dlpremoduletest"
  54656. + break
  54657. + fi
  54658. + done
  54659. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  54660. + $ECHO
  54661. + if test "$linkmode" = prog; then
  54662. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  54663. + else
  54664. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  54665. + fi
  54666. + $ECHO "*** $linklib is not portable!"
  54667. + fi
  54668. + if test "$linkmode" = lib &&
  54669. + test "$hardcode_into_libs" = yes; then
  54670. + # Hardcode the library path.
  54671. + # Skip directories that are in the system default run-time
  54672. + # search path.
  54673. + case " $sys_lib_dlsearch_path " in
  54674. + *" $absdir "*) ;;
  54675. + *)
  54676. + case "$compile_rpath " in
  54677. + *" $absdir "*) ;;
  54678. + *) compile_rpath="$compile_rpath $absdir"
  54679. + esac
  54680. + ;;
  54681. + esac
  54682. + case " $sys_lib_dlsearch_path " in
  54683. + *" $libdir "*) ;;
  54684. + *)
  54685. + case "$finalize_rpath " in
  54686. + *" $libdir "*) ;;
  54687. + *) finalize_rpath="$finalize_rpath $libdir"
  54688. + esac
  54689. + ;;
  54690. + esac
  54691. + fi
  54692. +
  54693. + if test -n "$old_archive_from_expsyms_cmds"; then
  54694. + # figure out the soname
  54695. + set dummy $library_names
  54696. + shift
  54697. + realname="$1"
  54698. + shift
  54699. + libname=`eval "\\$ECHO \"$libname_spec\""`
  54700. + # use dlname if we got it. it's perfectly good, no?
  54701. + if test -n "$dlname"; then
  54702. + soname="$dlname"
  54703. + elif test -n "$soname_spec"; then
  54704. + # bleh windows
  54705. + case $host in
  54706. + *cygwin* | mingw* | *cegcc*)
  54707. + func_arith $current - $age
  54708. + major=$func_arith_result
  54709. + versuffix="-$major"
  54710. + ;;
  54711. + esac
  54712. + eval soname=\"$soname_spec\"
  54713. + else
  54714. + soname="$realname"
  54715. + fi
  54716. +
  54717. + # Make a new name for the extract_expsyms_cmds to use
  54718. + soroot="$soname"
  54719. + func_basename "$soroot"
  54720. + soname="$func_basename_result"
  54721. + func_stripname 'lib' '.dll' "$soname"
  54722. + newlib=libimp-$func_stripname_result.a
  54723. +
  54724. + # If the library has no export list, then create one now
  54725. + if test -f "$output_objdir/$soname-def"; then :
  54726. + else
  54727. + func_verbose "extracting exported symbol list from \`$soname'"
  54728. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  54729. + fi
  54730. +
  54731. + # Create $newlib
  54732. + if test -f "$output_objdir/$newlib"; then :; else
  54733. + func_verbose "generating import library for \`$soname'"
  54734. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  54735. + fi
  54736. + # make sure the library variables are pointing to the new library
  54737. + dir=$output_objdir
  54738. + linklib=$newlib
  54739. + fi # test -n "$old_archive_from_expsyms_cmds"
  54740. +
  54741. + if test "$linkmode" = prog || test "$mode" != relink; then
  54742. + add_shlibpath=
  54743. + add_dir=
  54744. + add=
  54745. + lib_linked=yes
  54746. + case $hardcode_action in
  54747. + immediate | unsupported)
  54748. + if test "$hardcode_direct" = no; then
  54749. + add="$dir/$linklib"
  54750. + case $host in
  54751. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  54752. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  54753. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  54754. + *-*-unixware7*) add_dir="-L$dir" ;;
  54755. + *-*-darwin* )
  54756. + # if the lib is a (non-dlopened) module then we can not
  54757. + # link against it, someone is ignoring the earlier warnings
  54758. + if /usr/bin/file -L $add 2> /dev/null |
  54759. + $GREP ": [^:]* bundle" >/dev/null ; then
  54760. + if test "X$dlopenmodule" != "X$lib"; then
  54761. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  54762. + if test -z "$old_library" ; then
  54763. + $ECHO
  54764. + $ECHO "*** And there doesn't seem to be a static archive available"
  54765. + $ECHO "*** The link will probably fail, sorry"
  54766. + else
  54767. + add="$dir/$old_library"
  54768. + fi
  54769. + elif test -n "$old_library"; then
  54770. + add="$dir/$old_library"
  54771. + fi
  54772. + fi
  54773. + esac
  54774. + elif test "$hardcode_minus_L" = no; then
  54775. + case $host in
  54776. + *-*-sunos*) add_shlibpath="$dir" ;;
  54777. + esac
  54778. + add_dir="-L$dir"
  54779. + add="-l$name"
  54780. + elif test "$hardcode_shlibpath_var" = no; then
  54781. + add_shlibpath="$dir"
  54782. + add="-l$name"
  54783. + else
  54784. + lib_linked=no
  54785. + fi
  54786. + ;;
  54787. + relink)
  54788. + if test "$hardcode_direct" = yes &&
  54789. + test "$hardcode_direct_absolute" = no; then
  54790. + add="$dir/$linklib"
  54791. + elif test "$hardcode_minus_L" = yes; then
  54792. + add_dir="-L$dir"
  54793. + # Try looking first in the location we're being installed to.
  54794. + if test -n "$inst_prefix_dir"; then
  54795. + case $libdir in
  54796. + [\\/]*)
  54797. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54798. + ;;
  54799. + esac
  54800. + fi
  54801. + add="-l$name"
  54802. + elif test "$hardcode_shlibpath_var" = yes; then
  54803. + add_shlibpath="$dir"
  54804. + add="-l$name"
  54805. + else
  54806. + lib_linked=no
  54807. + fi
  54808. + ;;
  54809. + *) lib_linked=no ;;
  54810. + esac
  54811. +
  54812. + if test "$lib_linked" != yes; then
  54813. + func_fatal_configuration "unsupported hardcode properties"
  54814. + fi
  54815. +
  54816. + if test -n "$add_shlibpath"; then
  54817. + case :$compile_shlibpath: in
  54818. + *":$add_shlibpath:"*) ;;
  54819. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  54820. + esac
  54821. + fi
  54822. + if test "$linkmode" = prog; then
  54823. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  54824. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  54825. + else
  54826. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54827. + test -n "$add" && deplibs="$add $deplibs"
  54828. + if test "$hardcode_direct" != yes &&
  54829. + test "$hardcode_minus_L" != yes &&
  54830. + test "$hardcode_shlibpath_var" = yes; then
  54831. + case :$finalize_shlibpath: in
  54832. + *":$libdir:"*) ;;
  54833. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54834. + esac
  54835. + fi
  54836. + fi
  54837. + fi
  54838. +
  54839. + if test "$linkmode" = prog || test "$mode" = relink; then
  54840. + add_shlibpath=
  54841. + add_dir=
  54842. + add=
  54843. + # Finalize command for both is simple: just hardcode it.
  54844. + if test "$hardcode_direct" = yes &&
  54845. + test "$hardcode_direct_absolute" = no; then
  54846. + add="$libdir/$linklib"
  54847. + elif test "$hardcode_minus_L" = yes; then
  54848. + add_dir="-L$libdir"
  54849. + add="-l$name"
  54850. + elif test "$hardcode_shlibpath_var" = yes; then
  54851. + case :$finalize_shlibpath: in
  54852. + *":$libdir:"*) ;;
  54853. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54854. + esac
  54855. + add="-l$name"
  54856. + elif test "$hardcode_automatic" = yes; then
  54857. + if test -n "$inst_prefix_dir" &&
  54858. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  54859. + add="$inst_prefix_dir$libdir/$linklib"
  54860. + else
  54861. + add="$libdir/$linklib"
  54862. + fi
  54863. + else
  54864. + # We cannot seem to hardcode it, guess we'll fake it.
  54865. + add_dir="-L$libdir"
  54866. + # Try looking first in the location we're being installed to.
  54867. + if test -n "$inst_prefix_dir"; then
  54868. + case $libdir in
  54869. + [\\/]*)
  54870. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54871. + ;;
  54872. + esac
  54873. + fi
  54874. + add="-l$name"
  54875. + fi
  54876. +
  54877. + if test "$linkmode" = prog; then
  54878. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  54879. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  54880. + else
  54881. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54882. + test -n "$add" && deplibs="$add $deplibs"
  54883. + fi
  54884. + fi
  54885. + elif test "$linkmode" = prog; then
  54886. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  54887. + # is not unsupported. This is valid on all known static and
  54888. + # shared platforms.
  54889. + if test "$hardcode_direct" != unsupported; then
  54890. + test -n "$old_library" && linklib="$old_library"
  54891. + compile_deplibs="$dir/$linklib $compile_deplibs"
  54892. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  54893. + else
  54894. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  54895. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  54896. + fi
  54897. + elif test "$build_libtool_libs" = yes; then
  54898. + # Not a shared library
  54899. + if test "$deplibs_check_method" != pass_all; then
  54900. + # We're trying link a shared library against a static one
  54901. + # but the system doesn't support it.
  54902. +
  54903. + # Just print a warning and add the library to dependency_libs so
  54904. + # that the program can be linked against the static library.
  54905. + $ECHO
  54906. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  54907. + $ECHO "*** I have the capability to make that library automatically link in when"
  54908. + $ECHO "*** you link to this library. But I can only do this if you have a"
  54909. + $ECHO "*** shared version of the library, which you do not appear to have."
  54910. + if test "$module" = yes; then
  54911. + $ECHO "*** But as you try to build a module library, libtool will still create "
  54912. + $ECHO "*** a static module, that should work as long as the dlopening application"
  54913. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  54914. + if test -z "$global_symbol_pipe"; then
  54915. + $ECHO
  54916. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  54917. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  54918. + $ECHO "*** not find such a program. So, this module is probably useless."
  54919. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  54920. + fi
  54921. + if test "$build_old_libs" = no; then
  54922. + build_libtool_libs=module
  54923. + build_old_libs=yes
  54924. + else
  54925. + build_libtool_libs=no
  54926. + fi
  54927. + fi
  54928. + else
  54929. + deplibs="$dir/$old_library $deplibs"
  54930. + link_static=yes
  54931. + fi
  54932. + fi # link shared/static library?
  54933. +
  54934. + if test "$linkmode" = lib; then
  54935. + if test -n "$dependency_libs" &&
  54936. + { test "$hardcode_into_libs" != yes ||
  54937. + test "$build_old_libs" = yes ||
  54938. + test "$link_static" = yes; }; then
  54939. + # Extract -R from dependency_libs
  54940. + temp_deplibs=
  54941. + for libdir in $dependency_libs; do
  54942. + case $libdir in
  54943. + -R*) func_stripname '-R' '' "$libdir"
  54944. + temp_xrpath=$func_stripname_result
  54945. + case " $xrpath " in
  54946. + *" $temp_xrpath "*) ;;
  54947. + *) xrpath="$xrpath $temp_xrpath";;
  54948. + esac;;
  54949. + *) temp_deplibs="$temp_deplibs $libdir";;
  54950. + esac
  54951. + done
  54952. + dependency_libs="$temp_deplibs"
  54953. + fi
  54954. +
  54955. + newlib_search_path="$newlib_search_path $absdir"
  54956. + # Link against this library
  54957. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  54958. + # ... and its dependency_libs
  54959. + tmp_libs=
  54960. + for deplib in $dependency_libs; do
  54961. + newdependency_libs="$deplib $newdependency_libs"
  54962. + if $opt_duplicate_deps ; then
  54963. + case "$tmp_libs " in
  54964. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54965. + esac
  54966. + fi
  54967. + tmp_libs="$tmp_libs $deplib"
  54968. + done
  54969. +
  54970. + if test "$link_all_deplibs" != no; then
  54971. + # Add the search paths of all dependency libraries
  54972. + for deplib in $dependency_libs; do
  54973. + path=
  54974. + case $deplib in
  54975. + -L*) path="$deplib" ;;
  54976. + *.la)
  54977. + func_dirname "$deplib" "" "."
  54978. + dir="$func_dirname_result"
  54979. + # We need an absolute path.
  54980. + case $dir in
  54981. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  54982. + *)
  54983. + absdir=`cd "$dir" && pwd`
  54984. + if test -z "$absdir"; then
  54985. + func_warning "cannot determine absolute directory name of \`$dir'"
  54986. + absdir="$dir"
  54987. + fi
  54988. + ;;
  54989. + esac
  54990. + if $GREP "^installed=no" $deplib > /dev/null; then
  54991. + case $host in
  54992. + *-*-darwin*)
  54993. + depdepl=
  54994. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  54995. + if test -n "$deplibrary_names" ; then
  54996. + for tmp in $deplibrary_names ; do
  54997. + depdepl=$tmp
  54998. + done
  54999. + if test -f "$absdir/$objdir/$depdepl" ; then
  55000. + depdepl="$absdir/$objdir/$depdepl"
  55001. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  55002. + if test -z "$darwin_install_name"; then
  55003. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  55004. + fi
  55005. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  55006. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  55007. + path=
  55008. + fi
  55009. + fi
  55010. + ;;
  55011. + *)
  55012. + path="-L$absdir/$objdir"
  55013. + ;;
  55014. + esac
  55015. + else
  55016. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  55017. + test -z "$libdir" && \
  55018. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  55019. + test "$absdir" != "$libdir" && \
  55020. + func_warning "\`$deplib' seems to be moved"
  55021. +
  55022. + path="-L$absdir"
  55023. + fi
  55024. + ;;
  55025. + esac
  55026. + case " $deplibs " in
  55027. + *" $path "*) ;;
  55028. + *) deplibs="$path $deplibs" ;;
  55029. + esac
  55030. + done
  55031. + fi # link_all_deplibs != no
  55032. + fi # linkmode = lib
  55033. + done # for deplib in $libs
  55034. + if test "$pass" = link; then
  55035. + if test "$linkmode" = "prog"; then
  55036. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  55037. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  55038. + else
  55039. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55040. + fi
  55041. + fi
  55042. + dependency_libs="$newdependency_libs"
  55043. + if test "$pass" = dlpreopen; then
  55044. + # Link the dlpreopened libraries before other libraries
  55045. + for deplib in $save_deplibs; do
  55046. + deplibs="$deplib $deplibs"
  55047. + done
  55048. + fi
  55049. + if test "$pass" != dlopen; then
  55050. + if test "$pass" != conv; then
  55051. + # Make sure lib_search_path contains only unique directories.
  55052. + lib_search_path=
  55053. + for dir in $newlib_search_path; do
  55054. + case "$lib_search_path " in
  55055. + *" $dir "*) ;;
  55056. + *) lib_search_path="$lib_search_path $dir" ;;
  55057. + esac
  55058. + done
  55059. + newlib_search_path=
  55060. + fi
  55061. +
  55062. + if test "$linkmode,$pass" != "prog,link"; then
  55063. + vars="deplibs"
  55064. + else
  55065. + vars="compile_deplibs finalize_deplibs"
  55066. + fi
  55067. + for var in $vars dependency_libs; do
  55068. + # Add libraries to $var in reverse order
  55069. + eval tmp_libs=\"\$$var\"
  55070. + new_libs=
  55071. + for deplib in $tmp_libs; do
  55072. + # FIXME: Pedantically, this is the right thing to do, so
  55073. + # that some nasty dependency loop isn't accidentally
  55074. + # broken:
  55075. + #new_libs="$deplib $new_libs"
  55076. + # Pragmatically, this seems to cause very few problems in
  55077. + # practice:
  55078. + case $deplib in
  55079. + -L*) new_libs="$deplib $new_libs" ;;
  55080. + -R*) ;;
  55081. + *)
  55082. + # And here is the reason: when a library appears more
  55083. + # than once as an explicit dependence of a library, or
  55084. + # is implicitly linked in more than once by the
  55085. + # compiler, it is considered special, and multiple
  55086. + # occurrences thereof are not removed. Compare this
  55087. + # with having the same library being listed as a
  55088. + # dependency of multiple other libraries: in this case,
  55089. + # we know (pedantically, we assume) the library does not
  55090. + # need to be listed more than once, so we keep only the
  55091. + # last copy. This is not always right, but it is rare
  55092. + # enough that we require users that really mean to play
  55093. + # such unportable linking tricks to link the library
  55094. + # using -Wl,-lname, so that libtool does not consider it
  55095. + # for duplicate removal.
  55096. + case " $specialdeplibs " in
  55097. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  55098. + *)
  55099. + case " $new_libs " in
  55100. + *" $deplib "*) ;;
  55101. + *) new_libs="$deplib $new_libs" ;;
  55102. + esac
  55103. + ;;
  55104. + esac
  55105. + ;;
  55106. + esac
  55107. + done
  55108. + tmp_libs=
  55109. + for deplib in $new_libs; do
  55110. + case $deplib in
  55111. + -L*)
  55112. + case " $tmp_libs " in
  55113. + *" $deplib "*) ;;
  55114. + *) tmp_libs="$tmp_libs $deplib" ;;
  55115. + esac
  55116. + ;;
  55117. + *) tmp_libs="$tmp_libs $deplib" ;;
  55118. + esac
  55119. + done
  55120. + eval $var=\"$tmp_libs\"
  55121. + done # for var
  55122. + fi
  55123. + # Last step: remove runtime libs from dependency_libs
  55124. + # (they stay in deplibs)
  55125. + tmp_libs=
  55126. + for i in $dependency_libs ; do
  55127. + case " $predeps $postdeps $compiler_lib_search_path " in
  55128. + *" $i "*)
  55129. + i=""
  55130. + ;;
  55131. + esac
  55132. + if test -n "$i" ; then
  55133. + tmp_libs="$tmp_libs $i"
  55134. + fi
  55135. + done
  55136. + dependency_libs=$tmp_libs
  55137. + done # for pass
  55138. + if test "$linkmode" = prog; then
  55139. + dlfiles="$newdlfiles"
  55140. + fi
  55141. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  55142. + dlprefiles="$newdlprefiles"
  55143. + fi
  55144. +
  55145. + case $linkmode in
  55146. + oldlib)
  55147. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  55148. + func_warning "\`-dlopen' is ignored for archives"
  55149. + fi
  55150. +
  55151. + case " $deplibs" in
  55152. + *\ -l* | *\ -L*)
  55153. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  55154. + esac
  55155. +
  55156. + test -n "$rpath" && \
  55157. + func_warning "\`-rpath' is ignored for archives"
  55158. +
  55159. + test -n "$xrpath" && \
  55160. + func_warning "\`-R' is ignored for archives"
  55161. +
  55162. + test -n "$vinfo" && \
  55163. + func_warning "\`-version-info/-version-number' is ignored for archives"
  55164. +
  55165. + test -n "$release" && \
  55166. + func_warning "\`-release' is ignored for archives"
  55167. +
  55168. + test -n "$export_symbols$export_symbols_regex" && \
  55169. + func_warning "\`-export-symbols' is ignored for archives"
  55170. +
  55171. + # Now set the variables for building old libraries.
  55172. + build_libtool_libs=no
  55173. + oldlibs="$output"
  55174. + objs="$objs$old_deplibs"
  55175. + ;;
  55176. +
  55177. + lib)
  55178. + # Make sure we only generate libraries of the form `libNAME.la'.
  55179. + case $outputname in
  55180. + lib*)
  55181. + func_stripname 'lib' '.la' "$outputname"
  55182. + name=$func_stripname_result
  55183. + eval shared_ext=\"$shrext_cmds\"
  55184. + eval libname=\"$libname_spec\"
  55185. + ;;
  55186. + *)
  55187. + test "$module" = no && \
  55188. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  55189. +
  55190. + if test "$need_lib_prefix" != no; then
  55191. + # Add the "lib" prefix for modules if required
  55192. + func_stripname '' '.la' "$outputname"
  55193. + name=$func_stripname_result
  55194. + eval shared_ext=\"$shrext_cmds\"
  55195. + eval libname=\"$libname_spec\"
  55196. + else
  55197. + func_stripname '' '.la' "$outputname"
  55198. + libname=$func_stripname_result
  55199. + fi
  55200. + ;;
  55201. + esac
  55202. +
  55203. + if test -n "$objs"; then
  55204. + if test "$deplibs_check_method" != pass_all; then
  55205. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  55206. + else
  55207. + $ECHO
  55208. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  55209. + $ECHO "*** objects $objs is not portable!"
  55210. + libobjs="$libobjs $objs"
  55211. + fi
  55212. + fi
  55213. +
  55214. + test "$dlself" != no && \
  55215. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  55216. +
  55217. + set dummy $rpath
  55218. + shift
  55219. + test "$#" -gt 1 && \
  55220. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  55221. +
  55222. + install_libdir="$1"
  55223. +
  55224. + oldlibs=
  55225. + if test -z "$rpath"; then
  55226. + if test "$build_libtool_libs" = yes; then
  55227. + # Building a libtool convenience library.
  55228. + # Some compilers have problems with a `.al' extension so
  55229. + # convenience libraries should have the same extension an
  55230. + # archive normally would.
  55231. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  55232. + build_libtool_libs=convenience
  55233. + build_old_libs=yes
  55234. + fi
  55235. +
  55236. + test -n "$vinfo" && \
  55237. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  55238. +
  55239. + test -n "$release" && \
  55240. + func_warning "\`-release' is ignored for convenience libraries"
  55241. + else
  55242. +
  55243. + # Parse the version information argument.
  55244. + save_ifs="$IFS"; IFS=':'
  55245. + set dummy $vinfo 0 0 0
  55246. + shift
  55247. + IFS="$save_ifs"
  55248. +
  55249. + test -n "$7" && \
  55250. + func_fatal_help "too many parameters to \`-version-info'"
  55251. +
  55252. + # convert absolute version numbers to libtool ages
  55253. + # this retains compatibility with .la files and attempts
  55254. + # to make the code below a bit more comprehensible
  55255. +
  55256. + case $vinfo_number in
  55257. + yes)
  55258. + number_major="$1"
  55259. + number_minor="$2"
  55260. + number_revision="$3"
  55261. + #
  55262. + # There are really only two kinds -- those that
  55263. + # use the current revision as the major version
  55264. + # and those that subtract age and use age as
  55265. + # a minor version. But, then there is irix
  55266. + # which has an extra 1 added just for fun
  55267. + #
  55268. + case $version_type in
  55269. + darwin|linux|osf|windows|none)
  55270. + func_arith $number_major + $number_minor
  55271. + current=$func_arith_result
  55272. + age="$number_minor"
  55273. + revision="$number_revision"
  55274. + ;;
  55275. + freebsd-aout|freebsd-elf|sunos)
  55276. + current="$number_major"
  55277. + revision="$number_minor"
  55278. + age="0"
  55279. + ;;
  55280. + irix|nonstopux)
  55281. + func_arith $number_major + $number_minor
  55282. + current=$func_arith_result
  55283. + age="$number_minor"
  55284. + revision="$number_minor"
  55285. + lt_irix_increment=no
  55286. + ;;
  55287. + *)
  55288. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  55289. + ;;
  55290. + esac
  55291. + ;;
  55292. + no)
  55293. + current="$1"
  55294. + revision="$2"
  55295. + age="$3"
  55296. + ;;
  55297. + esac
  55298. +
  55299. + # Check that each of the things are valid numbers.
  55300. + case $current in
  55301. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  55302. + *)
  55303. + func_error "CURRENT \`$current' must be a nonnegative integer"
  55304. + func_fatal_error "\`$vinfo' is not valid version information"
  55305. + ;;
  55306. + esac
  55307. +
  55308. + case $revision in
  55309. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  55310. + *)
  55311. + func_error "REVISION \`$revision' must be a nonnegative integer"
  55312. + func_fatal_error "\`$vinfo' is not valid version information"
  55313. + ;;
  55314. + esac
  55315. +
  55316. + case $age in
  55317. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  55318. + *)
  55319. + func_error "AGE \`$age' must be a nonnegative integer"
  55320. + func_fatal_error "\`$vinfo' is not valid version information"
  55321. + ;;
  55322. + esac
  55323. +
  55324. + if test "$age" -gt "$current"; then
  55325. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  55326. + func_fatal_error "\`$vinfo' is not valid version information"
  55327. + fi
  55328. +
  55329. + # Calculate the version variables.
  55330. + major=
  55331. + versuffix=
  55332. + verstring=
  55333. + case $version_type in
  55334. + none) ;;
  55335. +
  55336. + darwin)
  55337. + # Like Linux, but with the current version available in
  55338. + # verstring for coding it into the library header
  55339. + func_arith $current - $age
  55340. + major=.$func_arith_result
  55341. + versuffix="$major.$age.$revision"
  55342. + # Darwin ld doesn't like 0 for these options...
  55343. + func_arith $current + 1
  55344. + minor_current=$func_arith_result
  55345. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  55346. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  55347. + ;;
  55348. +
  55349. + freebsd-aout)
  55350. + major=".$current"
  55351. + versuffix=".$current.$revision";
  55352. + ;;
  55353. +
  55354. + freebsd-elf)
  55355. + major=".$current"
  55356. + versuffix=".$current"
  55357. + ;;
  55358. +
  55359. + irix | nonstopux)
  55360. + if test "X$lt_irix_increment" = "Xno"; then
  55361. + func_arith $current - $age
  55362. + else
  55363. + func_arith $current - $age + 1
  55364. + fi
  55365. + major=$func_arith_result
  55366. +
  55367. + case $version_type in
  55368. + nonstopux) verstring_prefix=nonstopux ;;
  55369. + *) verstring_prefix=sgi ;;
  55370. + esac
  55371. + verstring="$verstring_prefix$major.$revision"
  55372. +
  55373. + # Add in all the interfaces that we are compatible with.
  55374. + loop=$revision
  55375. + while test "$loop" -ne 0; do
  55376. + func_arith $revision - $loop
  55377. + iface=$func_arith_result
  55378. + func_arith $loop - 1
  55379. + loop=$func_arith_result
  55380. + verstring="$verstring_prefix$major.$iface:$verstring"
  55381. + done
  55382. +
  55383. + # Before this point, $major must not contain `.'.
  55384. + major=.$major
  55385. + versuffix="$major.$revision"
  55386. + ;;
  55387. +
  55388. + linux)
  55389. + func_arith $current - $age
  55390. + major=.$func_arith_result
  55391. + versuffix="$major.$age.$revision"
  55392. + ;;
  55393. +
  55394. + osf)
  55395. + func_arith $current - $age
  55396. + major=.$func_arith_result
  55397. + versuffix=".$current.$age.$revision"
  55398. + verstring="$current.$age.$revision"
  55399. +
  55400. + # Add in all the interfaces that we are compatible with.
  55401. + loop=$age
  55402. + while test "$loop" -ne 0; do
  55403. + func_arith $current - $loop
  55404. + iface=$func_arith_result
  55405. + func_arith $loop - 1
  55406. + loop=$func_arith_result
  55407. + verstring="$verstring:${iface}.0"
  55408. + done
  55409. +
  55410. + # Make executables depend on our current version.
  55411. + verstring="$verstring:${current}.0"
  55412. + ;;
  55413. +
  55414. + qnx)
  55415. + major=".$current"
  55416. + versuffix=".$current"
  55417. + ;;
  55418. +
  55419. + sunos)
  55420. + major=".$current"
  55421. + versuffix=".$current.$revision"
  55422. + ;;
  55423. +
  55424. + windows)
  55425. + # Use '-' rather than '.', since we only want one
  55426. + # extension on DOS 8.3 filesystems.
  55427. + func_arith $current - $age
  55428. + major=$func_arith_result
  55429. + versuffix="-$major"
  55430. + ;;
  55431. +
  55432. + *)
  55433. + func_fatal_configuration "unknown library version type \`$version_type'"
  55434. + ;;
  55435. + esac
  55436. +
  55437. + # Clear the version info if we defaulted, and they specified a release.
  55438. + if test -z "$vinfo" && test -n "$release"; then
  55439. + major=
  55440. + case $version_type in
  55441. + darwin)
  55442. + # we can't check for "0.0" in archive_cmds due to quoting
  55443. + # problems, so we reset it completely
  55444. + verstring=
  55445. + ;;
  55446. + *)
  55447. + verstring="0.0"
  55448. + ;;
  55449. + esac
  55450. + if test "$need_version" = no; then
  55451. + versuffix=
  55452. + else
  55453. + versuffix=".0.0"
  55454. + fi
  55455. + fi
  55456. +
  55457. + # Remove version info from name if versioning should be avoided
  55458. + if test "$avoid_version" = yes && test "$need_version" = no; then
  55459. + major=
  55460. + versuffix=
  55461. + verstring=""
  55462. + fi
  55463. +
  55464. + # Check to see if the archive will have undefined symbols.
  55465. + if test "$allow_undefined" = yes; then
  55466. + if test "$allow_undefined_flag" = unsupported; then
  55467. + func_warning "undefined symbols not allowed in $host shared libraries"
  55468. + build_libtool_libs=no
  55469. + build_old_libs=yes
  55470. + fi
  55471. + else
  55472. + # Don't allow undefined symbols.
  55473. + allow_undefined_flag="$no_undefined_flag"
  55474. + fi
  55475. +
  55476. + fi
  55477. +
  55478. + func_generate_dlsyms "$libname" "$libname" "yes"
  55479. + libobjs="$libobjs $symfileobj"
  55480. + test "X$libobjs" = "X " && libobjs=
  55481. +
  55482. + if test "$mode" != relink; then
  55483. + # Remove our outputs, but don't remove object files since they
  55484. + # may have been created when compiling PIC objects.
  55485. + removelist=
  55486. + tempremovelist=`$ECHO "$output_objdir/*"`
  55487. + for p in $tempremovelist; do
  55488. + case $p in
  55489. + *.$objext | *.gcno)
  55490. + ;;
  55491. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  55492. + if test "X$precious_files_regex" != "X"; then
  55493. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  55494. + then
  55495. + continue
  55496. + fi
  55497. + fi
  55498. + removelist="$removelist $p"
  55499. + ;;
  55500. + *) ;;
  55501. + esac
  55502. + done
  55503. + test -n "$removelist" && \
  55504. + func_show_eval "${RM}r \$removelist"
  55505. + fi
  55506. +
  55507. + # Now set the variables for building old libraries.
  55508. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  55509. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  55510. +
  55511. + # Transform .lo files to .o files.
  55512. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  55513. + fi
  55514. +
  55515. + # Eliminate all temporary directories.
  55516. + #for path in $notinst_path; do
  55517. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  55518. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  55519. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  55520. + #done
  55521. +
  55522. + if test -n "$xrpath"; then
  55523. + # If the user specified any rpath flags, then add them.
  55524. + temp_xrpath=
  55525. + for libdir in $xrpath; do
  55526. + temp_xrpath="$temp_xrpath -R$libdir"
  55527. + case "$finalize_rpath " in
  55528. + *" $libdir "*) ;;
  55529. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  55530. + esac
  55531. + done
  55532. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  55533. + dependency_libs="$temp_xrpath $dependency_libs"
  55534. + fi
  55535. + fi
  55536. +
  55537. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  55538. + old_dlfiles="$dlfiles"
  55539. + dlfiles=
  55540. + for lib in $old_dlfiles; do
  55541. + case " $dlprefiles $dlfiles " in
  55542. + *" $lib "*) ;;
  55543. + *) dlfiles="$dlfiles $lib" ;;
  55544. + esac
  55545. + done
  55546. +
  55547. + # Make sure dlprefiles contains only unique files
  55548. + old_dlprefiles="$dlprefiles"
  55549. + dlprefiles=
  55550. + for lib in $old_dlprefiles; do
  55551. + case "$dlprefiles " in
  55552. + *" $lib "*) ;;
  55553. + *) dlprefiles="$dlprefiles $lib" ;;
  55554. + esac
  55555. + done
  55556. +
  55557. + if test "$build_libtool_libs" = yes; then
  55558. + if test -n "$rpath"; then
  55559. + case $host in
  55560. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  55561. + # these systems don't actually have a c library (as such)!
  55562. + ;;
  55563. + *-*-rhapsody* | *-*-darwin1.[012])
  55564. + # Rhapsody C library is in the System framework
  55565. + deplibs="$deplibs System.ltframework"
  55566. + ;;
  55567. + *-*-netbsd*)
  55568. + # Don't link with libc until the a.out ld.so is fixed.
  55569. + ;;
  55570. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55571. + # Do not include libc due to us having libc/libc_r.
  55572. + ;;
  55573. + *-*-sco3.2v5* | *-*-sco5v6*)
  55574. + # Causes problems with __ctype
  55575. + ;;
  55576. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55577. + # Compiler inserts libc in the correct place for threads to work
  55578. + ;;
  55579. + *)
  55580. + # Add libc to deplibs on all other systems if necessary.
  55581. + if test "$build_libtool_need_lc" = "yes"; then
  55582. + deplibs="$deplibs -lc"
  55583. + fi
  55584. + ;;
  55585. + esac
  55586. + fi
  55587. +
  55588. + # Transform deplibs into only deplibs that can be linked in shared.
  55589. + name_save=$name
  55590. + libname_save=$libname
  55591. + release_save=$release
  55592. + versuffix_save=$versuffix
  55593. + major_save=$major
  55594. + # I'm not sure if I'm treating the release correctly. I think
  55595. + # release should show up in the -l (ie -lgmp5) so we don't want to
  55596. + # add it in twice. Is that correct?
  55597. + release=""
  55598. + versuffix=""
  55599. + major=""
  55600. + newdeplibs=
  55601. + droppeddeps=no
  55602. + case $deplibs_check_method in
  55603. + pass_all)
  55604. + # Don't check for shared/static. Everything works.
  55605. + # This might be a little naive. We might want to check
  55606. + # whether the library exists or not. But this is on
  55607. + # osf3 & osf4 and I'm not really sure... Just
  55608. + # implementing what was already the behavior.
  55609. + newdeplibs=$deplibs
  55610. + ;;
  55611. + test_compile)
  55612. + # This code stresses the "libraries are programs" paradigm to its
  55613. + # limits. Maybe even breaks it. We compile a program, linking it
  55614. + # against the deplibs as a proxy for the library. Then we can check
  55615. + # whether they linked in statically or dynamically with ldd.
  55616. + $opt_dry_run || $RM conftest.c
  55617. + cat > conftest.c <<EOF
  55618. + int main() { return 0; }
  55619. +EOF
  55620. + $opt_dry_run || $RM conftest
  55621. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  55622. + ldd_output=`ldd conftest`
  55623. + for i in $deplibs; do
  55624. + case $i in
  55625. + -l*)
  55626. + func_stripname -l '' "$i"
  55627. + name=$func_stripname_result
  55628. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55629. + case " $predeps $postdeps " in
  55630. + *" $i "*)
  55631. + newdeplibs="$newdeplibs $i"
  55632. + i=""
  55633. + ;;
  55634. + esac
  55635. + fi
  55636. + if test -n "$i" ; then
  55637. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55638. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  55639. + set dummy $deplib_matches; shift
  55640. + deplib_match=$1
  55641. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55642. + newdeplibs="$newdeplibs $i"
  55643. + else
  55644. + droppeddeps=yes
  55645. + $ECHO
  55646. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  55647. + $ECHO "*** I have the capability to make that library automatically link in when"
  55648. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55649. + $ECHO "*** shared version of the library, which I believe you do not have"
  55650. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  55651. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  55652. + fi
  55653. + fi
  55654. + ;;
  55655. + *)
  55656. + newdeplibs="$newdeplibs $i"
  55657. + ;;
  55658. + esac
  55659. + done
  55660. + else
  55661. + # Error occurred in the first compile. Let's try to salvage
  55662. + # the situation: Compile a separate program for each library.
  55663. + for i in $deplibs; do
  55664. + case $i in
  55665. + -l*)
  55666. + func_stripname -l '' "$i"
  55667. + name=$func_stripname_result
  55668. + $opt_dry_run || $RM conftest
  55669. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  55670. + ldd_output=`ldd conftest`
  55671. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55672. + case " $predeps $postdeps " in
  55673. + *" $i "*)
  55674. + newdeplibs="$newdeplibs $i"
  55675. + i=""
  55676. + ;;
  55677. + esac
  55678. + fi
  55679. + if test -n "$i" ; then
  55680. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55681. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  55682. + set dummy $deplib_matches; shift
  55683. + deplib_match=$1
  55684. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55685. + newdeplibs="$newdeplibs $i"
  55686. + else
  55687. + droppeddeps=yes
  55688. + $ECHO
  55689. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  55690. + $ECHO "*** I have the capability to make that library automatically link in when"
  55691. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55692. + $ECHO "*** shared version of the library, which you do not appear to have"
  55693. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  55694. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  55695. + fi
  55696. + fi
  55697. + else
  55698. + droppeddeps=yes
  55699. + $ECHO
  55700. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  55701. + $ECHO "*** make it link in! You will probably need to install it or some"
  55702. + $ECHO "*** library that it depends on before this library will be fully"
  55703. + $ECHO "*** functional. Installing it before continuing would be even better."
  55704. + fi
  55705. + ;;
  55706. + *)
  55707. + newdeplibs="$newdeplibs $i"
  55708. + ;;
  55709. + esac
  55710. + done
  55711. + fi
  55712. + ;;
  55713. + file_magic*)
  55714. + set dummy $deplibs_check_method; shift
  55715. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55716. + for a_deplib in $deplibs; do
  55717. + case $a_deplib in
  55718. + -l*)
  55719. + func_stripname -l '' "$a_deplib"
  55720. + name=$func_stripname_result
  55721. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55722. + case " $predeps $postdeps " in
  55723. + *" $a_deplib "*)
  55724. + newdeplibs="$newdeplibs $a_deplib"
  55725. + a_deplib=""
  55726. + ;;
  55727. + esac
  55728. + fi
  55729. + if test -n "$a_deplib" ; then
  55730. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55731. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55732. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55733. + for potent_lib in $potential_libs; do
  55734. + # Follow soft links.
  55735. + if ls -lLd "$potent_lib" 2>/dev/null |
  55736. + $GREP " -> " >/dev/null; then
  55737. + continue
  55738. + fi
  55739. + # The statement above tries to avoid entering an
  55740. + # endless loop below, in case of cyclic links.
  55741. + # We might still enter an endless loop, since a link
  55742. + # loop can be closed while we follow links,
  55743. + # but so what?
  55744. + potlib="$potent_lib"
  55745. + while test -h "$potlib" 2>/dev/null; do
  55746. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  55747. + case $potliblink in
  55748. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  55749. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  55750. + esac
  55751. + done
  55752. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  55753. + $SED -e 10q |
  55754. + $EGREP "$file_magic_regex" > /dev/null; then
  55755. + newdeplibs="$newdeplibs $a_deplib"
  55756. + a_deplib=""
  55757. + break 2
  55758. + fi
  55759. + done
  55760. + done
  55761. + fi
  55762. + if test -n "$a_deplib" ; then
  55763. + droppeddeps=yes
  55764. + $ECHO
  55765. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  55766. + $ECHO "*** I have the capability to make that library automatically link in when"
  55767. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55768. + $ECHO "*** shared version of the library, which you do not appear to have"
  55769. + $ECHO "*** because I did check the linker path looking for a file starting"
  55770. + if test -z "$potlib" ; then
  55771. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  55772. + else
  55773. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  55774. + $ECHO "*** using a file magic. Last file checked: $potlib"
  55775. + fi
  55776. + fi
  55777. + ;;
  55778. + *)
  55779. + # Add a -L argument.
  55780. + newdeplibs="$newdeplibs $a_deplib"
  55781. + ;;
  55782. + esac
  55783. + done # Gone through all deplibs.
  55784. + ;;
  55785. + match_pattern*)
  55786. + set dummy $deplibs_check_method; shift
  55787. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55788. + for a_deplib in $deplibs; do
  55789. + case $a_deplib in
  55790. + -l*)
  55791. + func_stripname -l '' "$a_deplib"
  55792. + name=$func_stripname_result
  55793. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55794. + case " $predeps $postdeps " in
  55795. + *" $a_deplib "*)
  55796. + newdeplibs="$newdeplibs $a_deplib"
  55797. + a_deplib=""
  55798. + ;;
  55799. + esac
  55800. + fi
  55801. + if test -n "$a_deplib" ; then
  55802. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55803. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55804. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55805. + for potent_lib in $potential_libs; do
  55806. + potlib="$potent_lib" # see symlink-check above in file_magic test
  55807. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  55808. + $EGREP "$match_pattern_regex" > /dev/null; then
  55809. + newdeplibs="$newdeplibs $a_deplib"
  55810. + a_deplib=""
  55811. + break 2
  55812. + fi
  55813. + done
  55814. + done
  55815. + fi
  55816. + if test -n "$a_deplib" ; then
  55817. + droppeddeps=yes
  55818. + $ECHO
  55819. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  55820. + $ECHO "*** I have the capability to make that library automatically link in when"
  55821. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55822. + $ECHO "*** shared version of the library, which you do not appear to have"
  55823. + $ECHO "*** because I did check the linker path looking for a file starting"
  55824. + if test -z "$potlib" ; then
  55825. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  55826. + else
  55827. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  55828. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  55829. + fi
  55830. + fi
  55831. + ;;
  55832. + *)
  55833. + # Add a -L argument.
  55834. + newdeplibs="$newdeplibs $a_deplib"
  55835. + ;;
  55836. + esac
  55837. + done # Gone through all deplibs.
  55838. + ;;
  55839. + none | unknown | *)
  55840. + newdeplibs=""
  55841. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  55842. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  55843. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55844. + for i in $predeps $postdeps ; do
  55845. + # can't use Xsed below, because $i might contain '/'
  55846. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  55847. + done
  55848. + fi
  55849. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  55850. + $GREP . >/dev/null; then
  55851. + $ECHO
  55852. + if test "X$deplibs_check_method" = "Xnone"; then
  55853. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  55854. + else
  55855. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  55856. + fi
  55857. + $ECHO "*** All declared inter-library dependencies are being dropped."
  55858. + droppeddeps=yes
  55859. + fi
  55860. + ;;
  55861. + esac
  55862. + versuffix=$versuffix_save
  55863. + major=$major_save
  55864. + release=$release_save
  55865. + libname=$libname_save
  55866. + name=$name_save
  55867. +
  55868. + case $host in
  55869. + *-*-rhapsody* | *-*-darwin1.[012])
  55870. + # On Rhapsody replace the C library with the System framework
  55871. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  55872. + ;;
  55873. + esac
  55874. +
  55875. + if test "$droppeddeps" = yes; then
  55876. + if test "$module" = yes; then
  55877. + $ECHO
  55878. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  55879. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  55880. + $ECHO "*** a static module, that should work as long as the dlopening"
  55881. + $ECHO "*** application is linked with the -dlopen flag."
  55882. + if test -z "$global_symbol_pipe"; then
  55883. + $ECHO
  55884. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  55885. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55886. + $ECHO "*** not find such a program. So, this module is probably useless."
  55887. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  55888. + fi
  55889. + if test "$build_old_libs" = no; then
  55890. + oldlibs="$output_objdir/$libname.$libext"
  55891. + build_libtool_libs=module
  55892. + build_old_libs=yes
  55893. + else
  55894. + build_libtool_libs=no
  55895. + fi
  55896. + else
  55897. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  55898. + $ECHO "*** automatically added whenever a program is linked with this library"
  55899. + $ECHO "*** or is declared to -dlopen it."
  55900. +
  55901. + if test "$allow_undefined" = no; then
  55902. + $ECHO
  55903. + $ECHO "*** Since this library must not contain undefined symbols,"
  55904. + $ECHO "*** because either the platform does not support them or"
  55905. + $ECHO "*** it was explicitly requested with -no-undefined,"
  55906. + $ECHO "*** libtool will only create a static version of it."
  55907. + if test "$build_old_libs" = no; then
  55908. + oldlibs="$output_objdir/$libname.$libext"
  55909. + build_libtool_libs=module
  55910. + build_old_libs=yes
  55911. + else
  55912. + build_libtool_libs=no
  55913. + fi
  55914. + fi
  55915. + fi
  55916. + fi
  55917. + # Done checking deplibs!
  55918. + deplibs=$newdeplibs
  55919. + fi
  55920. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  55921. + case $host in
  55922. + *-*-darwin*)
  55923. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55924. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55925. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55926. + ;;
  55927. + esac
  55928. +
  55929. + # move library search paths that coincide with paths to not yet
  55930. + # installed libraries to the beginning of the library search list
  55931. + new_libs=
  55932. + for path in $notinst_path; do
  55933. + case " $new_libs " in
  55934. + *" -L$path/$objdir "*) ;;
  55935. + *)
  55936. + case " $deplibs " in
  55937. + *" -L$path/$objdir "*)
  55938. + new_libs="$new_libs -L$path/$objdir" ;;
  55939. + esac
  55940. + ;;
  55941. + esac
  55942. + done
  55943. + for deplib in $deplibs; do
  55944. + case $deplib in
  55945. + -L*)
  55946. + case " $new_libs " in
  55947. + *" $deplib "*) ;;
  55948. + *) new_libs="$new_libs $deplib" ;;
  55949. + esac
  55950. + ;;
  55951. + *) new_libs="$new_libs $deplib" ;;
  55952. + esac
  55953. + done
  55954. + deplibs="$new_libs"
  55955. +
  55956. + # All the library-specific variables (install_libdir is set above).
  55957. + library_names=
  55958. + old_library=
  55959. + dlname=
  55960. +
  55961. + # Test again, we may have decided not to build it any more
  55962. + if test "$build_libtool_libs" = yes; then
  55963. + if test "$hardcode_into_libs" = yes; then
  55964. + # Hardcode the library paths
  55965. + hardcode_libdirs=
  55966. + dep_rpath=
  55967. + rpath="$finalize_rpath"
  55968. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  55969. + for libdir in $rpath; do
  55970. + if test -n "$hardcode_libdir_flag_spec"; then
  55971. + if test -n "$hardcode_libdir_separator"; then
  55972. + if test -z "$hardcode_libdirs"; then
  55973. + hardcode_libdirs="$libdir"
  55974. + else
  55975. + # Just accumulate the unique libdirs.
  55976. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55977. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55978. + ;;
  55979. + *)
  55980. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55981. + ;;
  55982. + esac
  55983. + fi
  55984. + else
  55985. + eval flag=\"$hardcode_libdir_flag_spec\"
  55986. + dep_rpath="$dep_rpath $flag"
  55987. + fi
  55988. + elif test -n "$runpath_var"; then
  55989. + case "$perm_rpath " in
  55990. + *" $libdir "*) ;;
  55991. + *) perm_rpath="$perm_rpath $libdir" ;;
  55992. + esac
  55993. + fi
  55994. + done
  55995. + # Substitute the hardcoded libdirs into the rpath.
  55996. + if test -n "$hardcode_libdir_separator" &&
  55997. + test -n "$hardcode_libdirs"; then
  55998. + libdir="$hardcode_libdirs"
  55999. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  56000. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  56001. + else
  56002. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  56003. + fi
  56004. + fi
  56005. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  56006. + # We should set the runpath_var.
  56007. + rpath=
  56008. + for dir in $perm_rpath; do
  56009. + rpath="$rpath$dir:"
  56010. + done
  56011. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  56012. + fi
  56013. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  56014. + fi
  56015. - # Try to get the absolute directory name.
  56016. - absdir=\`cd \"\$thisdir\" && pwd\`
  56017. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  56018. -"
  56019. + shlibpath="$finalize_shlibpath"
  56020. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  56021. + if test -n "$shlibpath"; then
  56022. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  56023. + fi
  56024. - if test "$fast_install" = yes; then
  56025. - $echo >> $output "\
  56026. - program=lt-'$outputname'$exeext
  56027. - progdir=\"\$thisdir/$objdir\"
  56028. + # Get the real and link names of the library.
  56029. + eval shared_ext=\"$shrext_cmds\"
  56030. + eval library_names=\"$library_names_spec\"
  56031. + set dummy $library_names
  56032. + shift
  56033. + realname="$1"
  56034. + shift
  56035. - if test ! -f \"\$progdir/\$program\" || \\
  56036. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  56037. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  56038. + if test -n "$soname_spec"; then
  56039. + eval soname=\"$soname_spec\"
  56040. + else
  56041. + soname="$realname"
  56042. + fi
  56043. + if test -z "$dlname"; then
  56044. + dlname=$soname
  56045. + fi
  56046. - file=\"\$\$-\$program\"
  56047. + lib="$output_objdir/$realname"
  56048. + linknames=
  56049. + for link
  56050. + do
  56051. + linknames="$linknames $link"
  56052. + done
  56053. - if test ! -d \"\$progdir\"; then
  56054. - $mkdir \"\$progdir\"
  56055. - else
  56056. - $rm \"\$progdir/\$file\"
  56057. - fi"
  56058. + # Use standard objects if they are pic
  56059. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56060. + test "X$libobjs" = "X " && libobjs=
  56061. - $echo >> $output "\
  56062. + delfiles=
  56063. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56064. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  56065. + export_symbols="$output_objdir/$libname.uexp"
  56066. + delfiles="$delfiles $export_symbols"
  56067. + fi
  56068. +
  56069. + orig_export_symbols=
  56070. + case $host_os in
  56071. + cygwin* | mingw* | cegcc*)
  56072. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  56073. + # exporting using user supplied symfile
  56074. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  56075. + # and it's NOT already a .def file. Must figure out
  56076. + # which of the given symbols are data symbols and tag
  56077. + # them as such. So, trigger use of export_symbols_cmds.
  56078. + # export_symbols gets reassigned inside the "prepare
  56079. + # the list of exported symbols" if statement, so the
  56080. + # include_expsyms logic still works.
  56081. + orig_export_symbols="$export_symbols"
  56082. + export_symbols=
  56083. + always_export_symbols=yes
  56084. + fi
  56085. + fi
  56086. + ;;
  56087. + esac
  56088. - # relink executable if necessary
  56089. - if test -n \"\$relink_command\"; then
  56090. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  56091. - else
  56092. - $echo \"\$relink_command_output\" >&2
  56093. - $rm \"\$progdir/\$file\"
  56094. - exit $EXIT_FAILURE
  56095. - fi
  56096. - fi
  56097. + # Prepare the list of exported symbols
  56098. + if test -z "$export_symbols"; then
  56099. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  56100. + func_verbose "generating symbol list for \`$libname.la'"
  56101. + export_symbols="$output_objdir/$libname.exp"
  56102. + $opt_dry_run || $RM $export_symbols
  56103. + cmds=$export_symbols_cmds
  56104. + save_ifs="$IFS"; IFS='~'
  56105. + for cmd in $cmds; do
  56106. + IFS="$save_ifs"
  56107. + eval cmd=\"$cmd\"
  56108. + func_len " $cmd"
  56109. + len=$func_len_result
  56110. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56111. + func_show_eval "$cmd" 'exit $?'
  56112. + skipped_export=false
  56113. + else
  56114. + # The command line is too long to execute in one step.
  56115. + func_verbose "using reloadable object file for export list..."
  56116. + skipped_export=:
  56117. + # Break out early, otherwise skipped_export may be
  56118. + # set to false by a later but shorter cmd.
  56119. + break
  56120. + fi
  56121. + done
  56122. + IFS="$save_ifs"
  56123. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  56124. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  56125. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  56126. + fi
  56127. + fi
  56128. + fi
  56129. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  56130. - { $rm \"\$progdir/\$program\";
  56131. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  56132. - $rm \"\$progdir/\$file\"
  56133. - fi"
  56134. - else
  56135. - $echo >> $output "\
  56136. - program='$outputname'
  56137. - progdir=\"\$thisdir/$objdir\"
  56138. -"
  56139. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56140. + tmp_export_symbols="$export_symbols"
  56141. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  56142. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  56143. + fi
  56144. +
  56145. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  56146. + # The given exports_symbols file has to be filtered, so filter it.
  56147. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  56148. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  56149. + # 's' commands which not all seds can handle. GNU sed should be fine
  56150. + # though. Also, the filter scales superlinearly with the number of
  56151. + # global variables. join(1) would be nice here, but unfortunately
  56152. + # isn't a blessed tool.
  56153. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  56154. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  56155. + export_symbols=$output_objdir/$libname.def
  56156. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  56157. fi
  56158. - $echo >> $output "\
  56159. + tmp_deplibs=
  56160. + for test_deplib in $deplibs; do
  56161. + case " $convenience " in
  56162. + *" $test_deplib "*) ;;
  56163. + *)
  56164. + tmp_deplibs="$tmp_deplibs $test_deplib"
  56165. + ;;
  56166. + esac
  56167. + done
  56168. + deplibs="$tmp_deplibs"
  56169. - if test -f \"\$progdir/\$program\"; then"
  56170. + if test -n "$convenience"; then
  56171. + if test -n "$whole_archive_flag_spec" &&
  56172. + test "$compiler_needs_object" = yes &&
  56173. + test -z "$libobjs"; then
  56174. + # extract the archives, so we have objects to list.
  56175. + # TODO: could optimize this to just extract one archive.
  56176. + whole_archive_flag_spec=
  56177. + fi
  56178. + if test -n "$whole_archive_flag_spec"; then
  56179. + save_libobjs=$libobjs
  56180. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56181. + test "X$libobjs" = "X " && libobjs=
  56182. + else
  56183. + gentop="$output_objdir/${outputname}x"
  56184. + generated="$generated $gentop"
  56185. - # Export our shlibpath_var if we have one.
  56186. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  56187. - $echo >> $output "\
  56188. - # Add our own library path to $shlibpath_var
  56189. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  56190. + func_extract_archives $gentop $convenience
  56191. + libobjs="$libobjs $func_extract_archives_result"
  56192. + test "X$libobjs" = "X " && libobjs=
  56193. + fi
  56194. + fi
  56195. - # Some systems cannot cope with colon-terminated $shlibpath_var
  56196. - # The second colon is a workaround for a bug in BeOS R4 sed
  56197. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  56198. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  56199. + eval flag=\"$thread_safe_flag_spec\"
  56200. + linker_flags="$linker_flags $flag"
  56201. + fi
  56202. - export $shlibpath_var
  56203. -"
  56204. + # Make a backup of the uninstalled library when relinking
  56205. + if test "$mode" = relink; then
  56206. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  56207. fi
  56208. - # fixup the dll searchpath if we need to.
  56209. - if test -n "$dllsearchpath"; then
  56210. - $echo >> $output "\
  56211. - # Add the dll search path components to the executable PATH
  56212. - PATH=$dllsearchpath:\$PATH
  56213. -"
  56214. + # Do each of the archive commands.
  56215. + if test "$module" = yes && test -n "$module_cmds" ; then
  56216. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56217. + eval test_cmds=\"$module_expsym_cmds\"
  56218. + cmds=$module_expsym_cmds
  56219. + else
  56220. + eval test_cmds=\"$module_cmds\"
  56221. + cmds=$module_cmds
  56222. + fi
  56223. + else
  56224. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56225. + eval test_cmds=\"$archive_expsym_cmds\"
  56226. + cmds=$archive_expsym_cmds
  56227. + else
  56228. + eval test_cmds=\"$archive_cmds\"
  56229. + cmds=$archive_cmds
  56230. + fi
  56231. fi
  56232. - $echo >> $output "\
  56233. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56234. - # Run the actual program with our arguments.
  56235. -"
  56236. - case $host in
  56237. - # Backslashes separate directories on plain windows
  56238. - *-*-mingw | *-*-os2*)
  56239. - $echo >> $output "\
  56240. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  56241. -"
  56242. - ;;
  56243. + if test "X$skipped_export" != "X:" &&
  56244. + func_len " $test_cmds" &&
  56245. + len=$func_len_result &&
  56246. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56247. + :
  56248. + else
  56249. + # The command line is too long to link in one step, link piecewise
  56250. + # or, if using GNU ld and skipped_export is not :, use a linker
  56251. + # script.
  56252. - *)
  56253. - $echo >> $output "\
  56254. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  56255. -"
  56256. - ;;
  56257. - esac
  56258. - $echo >> $output "\
  56259. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  56260. - exit $EXIT_FAILURE
  56261. - fi
  56262. - else
  56263. - # The program doesn't exist.
  56264. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  56265. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  56266. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  56267. - exit $EXIT_FAILURE
  56268. - fi
  56269. -fi\
  56270. -"
  56271. - chmod +x $output
  56272. - fi
  56273. - exit $EXIT_SUCCESS
  56274. - ;;
  56275. - esac
  56276. + # Save the value of $output and $libobjs because we want to
  56277. + # use them later. If we have whole_archive_flag_spec, we
  56278. + # want to use save_libobjs as it was before
  56279. + # whole_archive_flag_spec was expanded, because we can't
  56280. + # assume the linker understands whole_archive_flag_spec.
  56281. + # This may have to be revisited, in case too many
  56282. + # convenience libraries get linked in and end up exceeding
  56283. + # the spec.
  56284. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  56285. + save_libobjs=$libobjs
  56286. + fi
  56287. + save_output=$output
  56288. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  56289. - # See if we need to build an old-fashioned archive.
  56290. - for oldlib in $oldlibs; do
  56291. + # Clear the reloadable object creation command queue and
  56292. + # initialize k to one.
  56293. + test_cmds=
  56294. + concat_cmds=
  56295. + objlist=
  56296. + last_robj=
  56297. + k=1
  56298. - if test "$build_libtool_libs" = convenience; then
  56299. - oldobjs="$libobjs_save"
  56300. - addlibs="$convenience"
  56301. - build_libtool_libs=no
  56302. - else
  56303. - if test "$build_libtool_libs" = module; then
  56304. - oldobjs="$libobjs_save"
  56305. - build_libtool_libs=no
  56306. - else
  56307. - oldobjs="$old_deplibs $non_pic_objects"
  56308. - fi
  56309. - addlibs="$old_convenience"
  56310. - fi
  56311. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  56312. + output=${output_objdir}/${output_la}.lnkscript
  56313. + func_verbose "creating GNU ld script: $output"
  56314. + $ECHO 'INPUT (' > $output
  56315. + for obj in $save_libobjs
  56316. + do
  56317. + $ECHO "$obj" >> $output
  56318. + done
  56319. + $ECHO ')' >> $output
  56320. + delfiles="$delfiles $output"
  56321. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  56322. + output=${output_objdir}/${output_la}.lnk
  56323. + func_verbose "creating linker input file list: $output"
  56324. + : > $output
  56325. + set x $save_libobjs
  56326. + shift
  56327. + firstobj=
  56328. + if test "$compiler_needs_object" = yes; then
  56329. + firstobj="$1 "
  56330. + shift
  56331. + fi
  56332. + for obj
  56333. + do
  56334. + $ECHO "$obj" >> $output
  56335. + done
  56336. + delfiles="$delfiles $output"
  56337. + output=$firstobj\"$file_list_spec$output\"
  56338. + else
  56339. + if test -n "$save_libobjs"; then
  56340. + func_verbose "creating reloadable object files..."
  56341. + output=$output_objdir/$output_la-${k}.$objext
  56342. + eval test_cmds=\"$reload_cmds\"
  56343. + func_len " $test_cmds"
  56344. + len0=$func_len_result
  56345. + len=$len0
  56346. +
  56347. + # Loop over the list of objects to be linked.
  56348. + for obj in $save_libobjs
  56349. + do
  56350. + func_len " $obj"
  56351. + func_arith $len + $func_len_result
  56352. + len=$func_arith_result
  56353. + if test "X$objlist" = X ||
  56354. + test "$len" -lt "$max_cmd_len"; then
  56355. + func_append objlist " $obj"
  56356. + else
  56357. + # The command $test_cmds is almost too long, add a
  56358. + # command to the queue.
  56359. + if test "$k" -eq 1 ; then
  56360. + # The first file doesn't have a previous command to add.
  56361. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  56362. + else
  56363. + # All subsequent reloadable object files will link in
  56364. + # the last one created.
  56365. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  56366. + fi
  56367. + last_robj=$output_objdir/$output_la-${k}.$objext
  56368. + func_arith $k + 1
  56369. + k=$func_arith_result
  56370. + output=$output_objdir/$output_la-${k}.$objext
  56371. + objlist=$obj
  56372. + func_len " $last_robj"
  56373. + func_arith $len0 + $func_len_result
  56374. + len=$func_arith_result
  56375. + fi
  56376. + done
  56377. + # Handle the remaining objects by creating one last
  56378. + # reloadable object file. All subsequent reloadable object
  56379. + # files will link in the last one created.
  56380. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56381. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  56382. + if test -n "$last_robj"; then
  56383. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  56384. + fi
  56385. + delfiles="$delfiles $output"
  56386. +
  56387. + else
  56388. + output=
  56389. + fi
  56390. - if test -n "$addlibs"; then
  56391. - gentop="$output_objdir/${outputname}x"
  56392. - generated="$generated $gentop"
  56393. + if ${skipped_export-false}; then
  56394. + func_verbose "generating symbol list for \`$libname.la'"
  56395. + export_symbols="$output_objdir/$libname.exp"
  56396. + $opt_dry_run || $RM $export_symbols
  56397. + libobjs=$output
  56398. + # Append the command to create the export file.
  56399. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56400. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  56401. + if test -n "$last_robj"; then
  56402. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  56403. + fi
  56404. + fi
  56405. - func_extract_archives $gentop $addlibs
  56406. - oldobjs="$oldobjs $func_extract_archives_result"
  56407. - fi
  56408. + test -n "$save_libobjs" &&
  56409. + func_verbose "creating a temporary reloadable object file: $output"
  56410. - # Do each command in the archive commands.
  56411. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  56412. - cmds=$old_archive_from_new_cmds
  56413. - else
  56414. - # POSIX demands no paths to be encoded in archives. We have
  56415. - # to avoid creating archives with duplicate basenames if we
  56416. - # might have to extract them afterwards, e.g., when creating a
  56417. - # static archive out of a convenience library, or when linking
  56418. - # the entirety of a libtool archive into another (currently
  56419. - # not supported by libtool).
  56420. - if (for obj in $oldobjs
  56421. - do
  56422. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  56423. - done | sort | sort -uc >/dev/null 2>&1); then
  56424. - :
  56425. - else
  56426. - $echo "copying selected object files to avoid basename conflicts..."
  56427. + # Loop through the commands generated above and execute them.
  56428. + save_ifs="$IFS"; IFS='~'
  56429. + for cmd in $concat_cmds; do
  56430. + IFS="$save_ifs"
  56431. + $opt_silent || {
  56432. + func_quote_for_expand "$cmd"
  56433. + eval "func_echo $func_quote_for_expand_result"
  56434. + }
  56435. + $opt_dry_run || eval "$cmd" || {
  56436. + lt_exit=$?
  56437. +
  56438. + # Restore the uninstalled library and exit
  56439. + if test "$mode" = relink; then
  56440. + ( cd "$output_objdir" && \
  56441. + $RM "${realname}T" && \
  56442. + $MV "${realname}U" "$realname" )
  56443. + fi
  56444. - if test -z "$gentop"; then
  56445. - gentop="$output_objdir/${outputname}x"
  56446. - generated="$generated $gentop"
  56447. + exit $lt_exit
  56448. + }
  56449. + done
  56450. + IFS="$save_ifs"
  56451. - $show "${rm}r $gentop"
  56452. - $run ${rm}r "$gentop"
  56453. - $show "$mkdir $gentop"
  56454. - $run $mkdir "$gentop"
  56455. - exit_status=$?
  56456. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  56457. - exit $exit_status
  56458. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  56459. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  56460. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  56461. fi
  56462. fi
  56463. - save_oldobjs=$oldobjs
  56464. - oldobjs=
  56465. - counter=1
  56466. - for obj in $save_oldobjs
  56467. - do
  56468. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  56469. - case " $oldobjs " in
  56470. - " ") oldobjs=$obj ;;
  56471. - *[\ /]"$objbase "*)
  56472. - while :; do
  56473. - # Make sure we don't pick an alternate name that also
  56474. - # overlaps.
  56475. - newobj=lt$counter-$objbase
  56476. - counter=`expr $counter + 1`
  56477. - case " $oldobjs " in
  56478. - *[\ /]"$newobj "*) ;;
  56479. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  56480. - esac
  56481. - done
  56482. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  56483. - $run ln "$obj" "$gentop/$newobj" ||
  56484. - $run cp "$obj" "$gentop/$newobj"
  56485. - oldobjs="$oldobjs $gentop/$newobj"
  56486. - ;;
  56487. - *) oldobjs="$oldobjs $obj" ;;
  56488. - esac
  56489. - done
  56490. - fi
  56491. + if ${skipped_export-false}; then
  56492. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56493. + tmp_export_symbols="$export_symbols"
  56494. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  56495. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  56496. + fi
  56497. +
  56498. + if test -n "$orig_export_symbols"; then
  56499. + # The given exports_symbols file has to be filtered, so filter it.
  56500. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  56501. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  56502. + # 's' commands which not all seds can handle. GNU sed should be fine
  56503. + # though. Also, the filter scales superlinearly with the number of
  56504. + # global variables. join(1) would be nice here, but unfortunately
  56505. + # isn't a blessed tool.
  56506. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  56507. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  56508. + export_symbols=$output_objdir/$libname.def
  56509. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  56510. + fi
  56511. + fi
  56512. - eval cmds=\"$old_archive_cmds\"
  56513. + libobjs=$output
  56514. + # Restore the value of output.
  56515. + output=$save_output
  56516. - if len=`expr "X$cmds" : ".*"` &&
  56517. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56518. - cmds=$old_archive_cmds
  56519. - else
  56520. - # the command line is too long to link in one step, link in parts
  56521. - $echo "using piecewise archive linking..."
  56522. - save_RANLIB=$RANLIB
  56523. - RANLIB=:
  56524. - objlist=
  56525. - concat_cmds=
  56526. - save_oldobjs=$oldobjs
  56527. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  56528. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56529. + test "X$libobjs" = "X " && libobjs=
  56530. + fi
  56531. + # Expand the library linking commands again to reset the
  56532. + # value of $libobjs for piecewise linking.
  56533. - # Is there a better way of finding the last object in the list?
  56534. - for obj in $save_oldobjs
  56535. - do
  56536. - last_oldobj=$obj
  56537. - done
  56538. - for obj in $save_oldobjs
  56539. - do
  56540. - oldobjs="$objlist $obj"
  56541. - objlist="$objlist $obj"
  56542. - eval test_cmds=\"$old_archive_cmds\"
  56543. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  56544. - test "$len" -le "$max_cmd_len"; then
  56545. - :
  56546. + # Do each of the archive commands.
  56547. + if test "$module" = yes && test -n "$module_cmds" ; then
  56548. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56549. + cmds=$module_expsym_cmds
  56550. else
  56551. - # the above command should be used before it gets too long
  56552. - oldobjs=$objlist
  56553. - if test "$obj" = "$last_oldobj" ; then
  56554. - RANLIB=$save_RANLIB
  56555. - fi
  56556. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56557. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  56558. - objlist=
  56559. + cmds=$module_cmds
  56560. fi
  56561. - done
  56562. - RANLIB=$save_RANLIB
  56563. - oldobjs=$objlist
  56564. - if test "X$oldobjs" = "X" ; then
  56565. - eval cmds=\"\$concat_cmds\"
  56566. else
  56567. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  56568. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56569. + cmds=$archive_expsym_cmds
  56570. + else
  56571. + cmds=$archive_cmds
  56572. + fi
  56573. fi
  56574. fi
  56575. - fi
  56576. - save_ifs="$IFS"; IFS='~'
  56577. - for cmd in $cmds; do
  56578. - eval cmd=\"$cmd\"
  56579. - IFS="$save_ifs"
  56580. - $show "$cmd"
  56581. - $run eval "$cmd" || exit $?
  56582. - done
  56583. - IFS="$save_ifs"
  56584. - done
  56585. - if test -n "$generated"; then
  56586. - $show "${rm}r$generated"
  56587. - $run ${rm}r$generated
  56588. - fi
  56589. + if test -n "$delfiles"; then
  56590. + # Append the command to remove temporary files to $cmds.
  56591. + eval cmds=\"\$cmds~\$RM $delfiles\"
  56592. + fi
  56593. - # Now create the libtool archive.
  56594. - case $output in
  56595. - *.la)
  56596. - old_library=
  56597. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  56598. - $show "creating $output"
  56599. + # Add any objects from preloaded convenience libraries
  56600. + if test -n "$dlprefiles"; then
  56601. + gentop="$output_objdir/${outputname}x"
  56602. + generated="$generated $gentop"
  56603. - # Preserve any variables that may affect compiler behavior
  56604. - for var in $variables_saved_for_relink; do
  56605. - if eval test -z \"\${$var+set}\"; then
  56606. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  56607. - elif eval var_value=\$$var; test -z "$var_value"; then
  56608. - relink_command="$var=; export $var; $relink_command"
  56609. - else
  56610. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  56611. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  56612. + func_extract_archives $gentop $dlprefiles
  56613. + libobjs="$libobjs $func_extract_archives_result"
  56614. + test "X$libobjs" = "X " && libobjs=
  56615. fi
  56616. - done
  56617. - # Quote the link command for shipping.
  56618. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  56619. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  56620. - if test "$hardcode_automatic" = yes ; then
  56621. - relink_command=
  56622. - fi
  56623. + save_ifs="$IFS"; IFS='~'
  56624. + for cmd in $cmds; do
  56625. + IFS="$save_ifs"
  56626. + eval cmd=\"$cmd\"
  56627. + $opt_silent || {
  56628. + func_quote_for_expand "$cmd"
  56629. + eval "func_echo $func_quote_for_expand_result"
  56630. + }
  56631. + $opt_dry_run || eval "$cmd" || {
  56632. + lt_exit=$?
  56633. - # Only create the output if not a dry run.
  56634. - if test -z "$run"; then
  56635. - for installed in no yes; do
  56636. - if test "$installed" = yes; then
  56637. - if test -z "$install_libdir"; then
  56638. - break
  56639. + # Restore the uninstalled library and exit
  56640. + if test "$mode" = relink; then
  56641. + ( cd "$output_objdir" && \
  56642. + $RM "${realname}T" && \
  56643. + $MV "${realname}U" "$realname" )
  56644. fi
  56645. - output="$output_objdir/$outputname"i
  56646. - # Replace all uninstalled libtool libraries with the installed ones
  56647. - newdependency_libs=
  56648. - for deplib in $dependency_libs; do
  56649. - case $deplib in
  56650. - *.la)
  56651. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  56652. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  56653. - if test -z "$libdir"; then
  56654. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  56655. - exit $EXIT_FAILURE
  56656. - fi
  56657. - newdependency_libs="$newdependency_libs $libdir/$name"
  56658. - ;;
  56659. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  56660. - esac
  56661. - done
  56662. - dependency_libs="$newdependency_libs"
  56663. - newdlfiles=
  56664. - for lib in $dlfiles; do
  56665. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  56666. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56667. - if test -z "$libdir"; then
  56668. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56669. - exit $EXIT_FAILURE
  56670. - fi
  56671. - newdlfiles="$newdlfiles $libdir/$name"
  56672. - done
  56673. - dlfiles="$newdlfiles"
  56674. - newdlprefiles=
  56675. - for lib in $dlprefiles; do
  56676. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  56677. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56678. - if test -z "$libdir"; then
  56679. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56680. - exit $EXIT_FAILURE
  56681. - fi
  56682. - newdlprefiles="$newdlprefiles $libdir/$name"
  56683. - done
  56684. - dlprefiles="$newdlprefiles"
  56685. - else
  56686. - newdlfiles=
  56687. - for lib in $dlfiles; do
  56688. - case $lib in
  56689. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56690. - *) abs=`pwd`"/$lib" ;;
  56691. - esac
  56692. - newdlfiles="$newdlfiles $abs"
  56693. - done
  56694. - dlfiles="$newdlfiles"
  56695. - newdlprefiles=
  56696. - for lib in $dlprefiles; do
  56697. - case $lib in
  56698. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56699. - *) abs=`pwd`"/$lib" ;;
  56700. - esac
  56701. - newdlprefiles="$newdlprefiles $abs"
  56702. - done
  56703. - dlprefiles="$newdlprefiles"
  56704. - fi
  56705. - $rm $output
  56706. - # place dlname in correct position for cygwin
  56707. - tdlname=$dlname
  56708. - case $host,$output,$installed,$module,$dlname in
  56709. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  56710. - esac
  56711. - $echo > $output "\
  56712. -# $outputname - a libtool library file
  56713. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56714. -#
  56715. -# Please DO NOT delete this file!
  56716. -# It is necessary for linking the library.
  56717. -
  56718. -# The name that we can dlopen(3).
  56719. -dlname='$tdlname'
  56720. -# Names of this library.
  56721. -library_names='$library_names'
  56722. -
  56723. -# The name of the static archive.
  56724. -old_library='$old_library'
  56725. -
  56726. -# Libraries that this one depends upon.
  56727. -dependency_libs='$dependency_libs'
  56728. -
  56729. -# Version information for $libname.
  56730. -current=$current
  56731. -age=$age
  56732. -revision=$revision
  56733. + exit $lt_exit
  56734. + }
  56735. + done
  56736. + IFS="$save_ifs"
  56737. -# Is this an already installed library?
  56738. -installed=$installed
  56739. + # Restore the uninstalled library and exit
  56740. + if test "$mode" = relink; then
  56741. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  56742. -# Should we warn about portability when linking against -modules?
  56743. -shouldnotlink=$module
  56744. + if test -n "$convenience"; then
  56745. + if test -z "$whole_archive_flag_spec"; then
  56746. + func_show_eval '${RM}r "$gentop"'
  56747. + fi
  56748. + fi
  56749. -# Files to dlopen/dlpreopen
  56750. -dlopen='$dlfiles'
  56751. -dlpreopen='$dlprefiles'
  56752. + exit $EXIT_SUCCESS
  56753. + fi
  56754. -# Directory that this library needs to be installed in:
  56755. -libdir='$install_libdir'"
  56756. - if test "$installed" = no && test "$need_relink" = yes; then
  56757. - $echo >> $output "\
  56758. -relink_command=\"$relink_command\""
  56759. + # Create links to the real library.
  56760. + for linkname in $linknames; do
  56761. + if test "$realname" != "$linkname"; then
  56762. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  56763. fi
  56764. done
  56765. - fi
  56766. -
  56767. - # Do a symbolic link so that the libtool archive can be found in
  56768. - # LD_LIBRARY_PATH before the program is installed.
  56769. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  56770. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  56771. - ;;
  56772. - esac
  56773. - exit $EXIT_SUCCESS
  56774. - ;;
  56775. -
  56776. - # libtool install mode
  56777. - install)
  56778. - modename="$modename: install"
  56779. -
  56780. - # There may be an optional sh(1) argument at the beginning of
  56781. - # install_prog (especially on Windows NT).
  56782. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  56783. - # Allow the use of GNU shtool's install command.
  56784. - $echo "X$nonopt" | grep shtool > /dev/null; then
  56785. - # Aesthetically quote it.
  56786. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  56787. - case $arg in
  56788. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56789. - arg="\"$arg\""
  56790. - ;;
  56791. - esac
  56792. - install_prog="$arg "
  56793. - arg="$1"
  56794. - shift
  56795. - else
  56796. - install_prog=
  56797. - arg=$nonopt
  56798. - fi
  56799. - # The real first argument should be the name of the installation program.
  56800. - # Aesthetically quote it.
  56801. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56802. - case $arg in
  56803. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56804. - arg="\"$arg\""
  56805. + # If -module or -export-dynamic was specified, set the dlname.
  56806. + if test "$module" = yes || test "$export_dynamic" = yes; then
  56807. + # On all known operating systems, these are identical.
  56808. + dlname="$soname"
  56809. + fi
  56810. + fi
  56811. ;;
  56812. - esac
  56813. - install_prog="$install_prog$arg"
  56814. - # We need to accept at least all the BSD install flags.
  56815. - dest=
  56816. - files=
  56817. - opts=
  56818. - prev=
  56819. - install_type=
  56820. - isdir=no
  56821. - stripme=
  56822. - for arg
  56823. - do
  56824. - if test -n "$dest"; then
  56825. - files="$files $dest"
  56826. - dest=$arg
  56827. - continue
  56828. + obj)
  56829. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56830. + func_warning "\`-dlopen' is ignored for objects"
  56831. fi
  56832. - case $arg in
  56833. - -d) isdir=yes ;;
  56834. - -f)
  56835. - case " $install_prog " in
  56836. - *[\\\ /]cp\ *) ;;
  56837. - *) prev=$arg ;;
  56838. - esac
  56839. - ;;
  56840. - -g | -m | -o) prev=$arg ;;
  56841. - -s)
  56842. - stripme=" -s"
  56843. - continue
  56844. - ;;
  56845. - -*)
  56846. + case " $deplibs" in
  56847. + *\ -l* | *\ -L*)
  56848. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  56849. + esac
  56850. +
  56851. + test -n "$rpath" && \
  56852. + func_warning "\`-rpath' is ignored for objects"
  56853. +
  56854. + test -n "$xrpath" && \
  56855. + func_warning "\`-R' is ignored for objects"
  56856. +
  56857. + test -n "$vinfo" && \
  56858. + func_warning "\`-version-info' is ignored for objects"
  56859. +
  56860. + test -n "$release" && \
  56861. + func_warning "\`-release' is ignored for objects"
  56862. +
  56863. + case $output in
  56864. + *.lo)
  56865. + test -n "$objs$old_deplibs" && \
  56866. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  56867. +
  56868. + libobj=$output
  56869. + func_lo2o "$libobj"
  56870. + obj=$func_lo2o_result
  56871. ;;
  56872. *)
  56873. - # If the previous option needed an argument, then skip it.
  56874. - if test -n "$prev"; then
  56875. - prev=
  56876. - else
  56877. - dest=$arg
  56878. - continue
  56879. - fi
  56880. + libobj=
  56881. + obj="$output"
  56882. ;;
  56883. esac
  56884. - # Aesthetically quote the argument.
  56885. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56886. - case $arg in
  56887. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56888. - arg="\"$arg\""
  56889. - ;;
  56890. - esac
  56891. - install_prog="$install_prog $arg"
  56892. - done
  56893. + # Delete the old objects.
  56894. + $opt_dry_run || $RM $obj $libobj
  56895. - if test -z "$install_prog"; then
  56896. - $echo "$modename: you must specify an install program" 1>&2
  56897. - $echo "$help" 1>&2
  56898. - exit $EXIT_FAILURE
  56899. - fi
  56900. + # Objects from convenience libraries. This assumes
  56901. + # single-version convenience libraries. Whenever we create
  56902. + # different ones for PIC/non-PIC, this we'll have to duplicate
  56903. + # the extraction.
  56904. + reload_conv_objs=
  56905. + gentop=
  56906. + # reload_cmds runs $LD directly, so let us get rid of
  56907. + # -Wl from whole_archive_flag_spec and hope we can get by with
  56908. + # turning comma into space..
  56909. + wl=
  56910. - if test -n "$prev"; then
  56911. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  56912. - $echo "$help" 1>&2
  56913. - exit $EXIT_FAILURE
  56914. - fi
  56915. + if test -n "$convenience"; then
  56916. + if test -n "$whole_archive_flag_spec"; then
  56917. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  56918. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  56919. + else
  56920. + gentop="$output_objdir/${obj}x"
  56921. + generated="$generated $gentop"
  56922. - if test -z "$files"; then
  56923. - if test -z "$dest"; then
  56924. - $echo "$modename: no file or destination specified" 1>&2
  56925. - else
  56926. - $echo "$modename: you must specify a destination" 1>&2
  56927. + func_extract_archives $gentop $convenience
  56928. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  56929. + fi
  56930. fi
  56931. - $echo "$help" 1>&2
  56932. - exit $EXIT_FAILURE
  56933. - fi
  56934. - # Strip any trailing slash from the destination.
  56935. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  56936. + # Create the old-style object.
  56937. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  56938. - # Check to see that the destination is a directory.
  56939. - test -d "$dest" && isdir=yes
  56940. - if test "$isdir" = yes; then
  56941. - destdir="$dest"
  56942. - destname=
  56943. - else
  56944. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  56945. - test "X$destdir" = "X$dest" && destdir=.
  56946. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  56947. + output="$obj"
  56948. + func_execute_cmds "$reload_cmds" 'exit $?'
  56949. - # Not a directory, so check to see that there is only one file specified.
  56950. - set dummy $files
  56951. - if test "$#" -gt 2; then
  56952. - $echo "$modename: \`$dest' is not a directory" 1>&2
  56953. - $echo "$help" 1>&2
  56954. - exit $EXIT_FAILURE
  56955. + # Exit if we aren't doing a library object file.
  56956. + if test -z "$libobj"; then
  56957. + if test -n "$gentop"; then
  56958. + func_show_eval '${RM}r "$gentop"'
  56959. + fi
  56960. +
  56961. + exit $EXIT_SUCCESS
  56962. fi
  56963. - fi
  56964. - case $destdir in
  56965. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  56966. - *)
  56967. - for file in $files; do
  56968. - case $file in
  56969. - *.lo) ;;
  56970. - *)
  56971. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  56972. - $echo "$help" 1>&2
  56973. - exit $EXIT_FAILURE
  56974. - ;;
  56975. - esac
  56976. - done
  56977. +
  56978. + if test "$build_libtool_libs" != yes; then
  56979. + if test -n "$gentop"; then
  56980. + func_show_eval '${RM}r "$gentop"'
  56981. + fi
  56982. +
  56983. + # Create an invalid libtool object if no PIC, so that we don't
  56984. + # accidentally link it into a program.
  56985. + # $show "echo timestamp > $libobj"
  56986. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  56987. + exit $EXIT_SUCCESS
  56988. + fi
  56989. +
  56990. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  56991. + # Only do commands if we really have different PIC objects.
  56992. + reload_objs="$libobjs $reload_conv_objs"
  56993. + output="$libobj"
  56994. + func_execute_cmds "$reload_cmds" 'exit $?'
  56995. + fi
  56996. +
  56997. + if test -n "$gentop"; then
  56998. + func_show_eval '${RM}r "$gentop"'
  56999. + fi
  57000. +
  57001. + exit $EXIT_SUCCESS
  57002. ;;
  57003. - esac
  57004. - # This variable tells wrapper scripts just to set variables rather
  57005. - # than running their programs.
  57006. - libtool_install_magic="$magic"
  57007. + prog)
  57008. + case $host in
  57009. + *cygwin*) func_stripname '' '.exe' "$output"
  57010. + output=$func_stripname_result.exe;;
  57011. + esac
  57012. + test -n "$vinfo" && \
  57013. + func_warning "\`-version-info' is ignored for programs"
  57014. - staticlibs=
  57015. - future_libdirs=
  57016. - current_libdirs=
  57017. - for file in $files; do
  57018. + test -n "$release" && \
  57019. + func_warning "\`-release' is ignored for programs"
  57020. - # Do each installation.
  57021. - case $file in
  57022. - *.$libext)
  57023. - # Do the static libraries later.
  57024. - staticlibs="$staticlibs $file"
  57025. + test "$preload" = yes \
  57026. + && test "$dlopen_support" = unknown \
  57027. + && test "$dlopen_self" = unknown \
  57028. + && test "$dlopen_self_static" = unknown && \
  57029. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  57030. +
  57031. + case $host in
  57032. + *-*-rhapsody* | *-*-darwin1.[012])
  57033. + # On Rhapsody replace the C library is the System framework
  57034. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  57035. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  57036. ;;
  57037. + esac
  57038. - *.la)
  57039. - # Check to see that this really is a libtool archive.
  57040. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  57041. - else
  57042. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  57043. - $echo "$help" 1>&2
  57044. - exit $EXIT_FAILURE
  57045. + case $host in
  57046. + *-*-darwin*)
  57047. + # Don't allow lazy linking, it breaks C++ global constructors
  57048. + # But is supposedly fixed on 10.4 or later (yay!).
  57049. + if test "$tagname" = CXX ; then
  57050. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  57051. + 10.[0123])
  57052. + compile_command="$compile_command ${wl}-bind_at_load"
  57053. + finalize_command="$finalize_command ${wl}-bind_at_load"
  57054. + ;;
  57055. + esac
  57056. fi
  57057. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  57058. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57059. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57060. + ;;
  57061. + esac
  57062. - library_names=
  57063. - old_library=
  57064. - relink_command=
  57065. - # If there is no directory component, then add one.
  57066. - case $file in
  57067. - */* | *\\*) . $file ;;
  57068. - *) . ./$file ;;
  57069. - esac
  57070. - # Add the libdir to current_libdirs if it is the destination.
  57071. - if test "X$destdir" = "X$libdir"; then
  57072. - case "$current_libdirs " in
  57073. - *" $libdir "*) ;;
  57074. - *) current_libdirs="$current_libdirs $libdir" ;;
  57075. + # move library search paths that coincide with paths to not yet
  57076. + # installed libraries to the beginning of the library search list
  57077. + new_libs=
  57078. + for path in $notinst_path; do
  57079. + case " $new_libs " in
  57080. + *" -L$path/$objdir "*) ;;
  57081. + *)
  57082. + case " $compile_deplibs " in
  57083. + *" -L$path/$objdir "*)
  57084. + new_libs="$new_libs -L$path/$objdir" ;;
  57085. esac
  57086. - else
  57087. - # Note the libdir as a future libdir.
  57088. - case "$future_libdirs " in
  57089. - *" $libdir "*) ;;
  57090. - *) future_libdirs="$future_libdirs $libdir" ;;
  57091. + ;;
  57092. + esac
  57093. + done
  57094. + for deplib in $compile_deplibs; do
  57095. + case $deplib in
  57096. + -L*)
  57097. + case " $new_libs " in
  57098. + *" $deplib "*) ;;
  57099. + *) new_libs="$new_libs $deplib" ;;
  57100. esac
  57101. - fi
  57102. + ;;
  57103. + *) new_libs="$new_libs $deplib" ;;
  57104. + esac
  57105. + done
  57106. + compile_deplibs="$new_libs"
  57107. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  57108. - test "X$dir" = "X$file/" && dir=
  57109. - dir="$dir$objdir"
  57110. - if test -n "$relink_command"; then
  57111. - # Determine the prefix the user has applied to our future dir.
  57112. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  57113. + compile_command="$compile_command $compile_deplibs"
  57114. + finalize_command="$finalize_command $finalize_deplibs"
  57115. - # Don't allow the user to place us outside of our expected
  57116. - # location b/c this prevents finding dependent libraries that
  57117. - # are installed to the same prefix.
  57118. - # At present, this check doesn't affect windows .dll's that
  57119. - # are installed into $libdir/../bin (currently, that works fine)
  57120. - # but it's something to keep an eye on.
  57121. - if test "$inst_prefix_dir" = "$destdir"; then
  57122. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  57123. - exit $EXIT_FAILURE
  57124. - fi
  57125. + if test -n "$rpath$xrpath"; then
  57126. + # If the user specified any rpath flags, then add them.
  57127. + for libdir in $rpath $xrpath; do
  57128. + # This is the magic to use -rpath.
  57129. + case "$finalize_rpath " in
  57130. + *" $libdir "*) ;;
  57131. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  57132. + esac
  57133. + done
  57134. + fi
  57135. - if test -n "$inst_prefix_dir"; then
  57136. - # Stick the inst_prefix_dir data into the link command.
  57137. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  57138. + # Now hardcode the library paths
  57139. + rpath=
  57140. + hardcode_libdirs=
  57141. + for libdir in $compile_rpath $finalize_rpath; do
  57142. + if test -n "$hardcode_libdir_flag_spec"; then
  57143. + if test -n "$hardcode_libdir_separator"; then
  57144. + if test -z "$hardcode_libdirs"; then
  57145. + hardcode_libdirs="$libdir"
  57146. + else
  57147. + # Just accumulate the unique libdirs.
  57148. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57149. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57150. + ;;
  57151. + *)
  57152. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57153. + ;;
  57154. + esac
  57155. + fi
  57156. else
  57157. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  57158. + eval flag=\"$hardcode_libdir_flag_spec\"
  57159. + rpath="$rpath $flag"
  57160. fi
  57161. + elif test -n "$runpath_var"; then
  57162. + case "$perm_rpath " in
  57163. + *" $libdir "*) ;;
  57164. + *) perm_rpath="$perm_rpath $libdir" ;;
  57165. + esac
  57166. + fi
  57167. + case $host in
  57168. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  57169. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  57170. + case :$dllsearchpath: in
  57171. + *":$libdir:"*) ;;
  57172. + ::) dllsearchpath=$libdir;;
  57173. + *) dllsearchpath="$dllsearchpath:$libdir";;
  57174. + esac
  57175. + case :$dllsearchpath: in
  57176. + *":$testbindir:"*) ;;
  57177. + ::) dllsearchpath=$testbindir;;
  57178. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  57179. + esac
  57180. + ;;
  57181. + esac
  57182. + done
  57183. + # Substitute the hardcoded libdirs into the rpath.
  57184. + if test -n "$hardcode_libdir_separator" &&
  57185. + test -n "$hardcode_libdirs"; then
  57186. + libdir="$hardcode_libdirs"
  57187. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57188. + fi
  57189. + compile_rpath="$rpath"
  57190. - $echo "$modename: warning: relinking \`$file'" 1>&2
  57191. - $show "$relink_command"
  57192. - if $run eval "$relink_command"; then :
  57193. + rpath=
  57194. + hardcode_libdirs=
  57195. + for libdir in $finalize_rpath; do
  57196. + if test -n "$hardcode_libdir_flag_spec"; then
  57197. + if test -n "$hardcode_libdir_separator"; then
  57198. + if test -z "$hardcode_libdirs"; then
  57199. + hardcode_libdirs="$libdir"
  57200. + else
  57201. + # Just accumulate the unique libdirs.
  57202. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57203. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57204. + ;;
  57205. + *)
  57206. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57207. + ;;
  57208. + esac
  57209. + fi
  57210. else
  57211. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  57212. - exit $EXIT_FAILURE
  57213. + eval flag=\"$hardcode_libdir_flag_spec\"
  57214. + rpath="$rpath $flag"
  57215. fi
  57216. + elif test -n "$runpath_var"; then
  57217. + case "$finalize_perm_rpath " in
  57218. + *" $libdir "*) ;;
  57219. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  57220. + esac
  57221. fi
  57222. + done
  57223. + # Substitute the hardcoded libdirs into the rpath.
  57224. + if test -n "$hardcode_libdir_separator" &&
  57225. + test -n "$hardcode_libdirs"; then
  57226. + libdir="$hardcode_libdirs"
  57227. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57228. + fi
  57229. + finalize_rpath="$rpath"
  57230. - # See the names of the shared library.
  57231. - set dummy $library_names
  57232. - if test -n "$2"; then
  57233. - realname="$2"
  57234. - shift
  57235. - shift
  57236. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  57237. + # Transform all the library objects into standard objects.
  57238. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57239. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57240. + fi
  57241. - srcname="$realname"
  57242. - test -n "$relink_command" && srcname="$realname"T
  57243. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  57244. - # Install the shared library and build the symlinks.
  57245. - $show "$install_prog $dir/$srcname $destdir/$realname"
  57246. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  57247. - if test -n "$stripme" && test -n "$striplib"; then
  57248. - $show "$striplib $destdir/$realname"
  57249. - $run eval "$striplib $destdir/$realname" || exit $?
  57250. - fi
  57251. + # template prelinking step
  57252. + if test -n "$prelink_cmds"; then
  57253. + func_execute_cmds "$prelink_cmds" 'exit $?'
  57254. + fi
  57255. - if test "$#" -gt 0; then
  57256. - # Delete the old symlinks, and create new ones.
  57257. - # Try `ln -sf' first, because the `ln' binary might depend on
  57258. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  57259. - # so we also need to try rm && ln -s.
  57260. - for linkname
  57261. - do
  57262. - if test "$linkname" != "$realname"; then
  57263. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57264. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57265. - fi
  57266. - done
  57267. - fi
  57268. + wrappers_required=yes
  57269. + case $host in
  57270. + *cygwin* | *mingw* )
  57271. + if test "$build_libtool_libs" != yes; then
  57272. + wrappers_required=no
  57273. + fi
  57274. + ;;
  57275. + *cegcc)
  57276. + # Disable wrappers for cegcc, we are cross compiling anyway.
  57277. + wrappers_required=no
  57278. + ;;
  57279. + *)
  57280. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  57281. + wrappers_required=no
  57282. + fi
  57283. + ;;
  57284. + esac
  57285. + if test "$wrappers_required" = no; then
  57286. + # Replace the output file specification.
  57287. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57288. + link_command="$compile_command$compile_rpath"
  57289. - # Do each command in the postinstall commands.
  57290. - lib="$destdir/$realname"
  57291. - cmds=$postinstall_cmds
  57292. - save_ifs="$IFS"; IFS='~'
  57293. - for cmd in $cmds; do
  57294. - IFS="$save_ifs"
  57295. - eval cmd=\"$cmd\"
  57296. - $show "$cmd"
  57297. - $run eval "$cmd" || {
  57298. - lt_exit=$?
  57299. -
  57300. - # Restore the uninstalled library and exit
  57301. - if test "$mode" = relink; then
  57302. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  57303. - fi
  57304. + # We have no uninstalled library dependencies, so finalize right now.
  57305. + exit_status=0
  57306. + func_show_eval "$link_command" 'exit_status=$?'
  57307. - exit $lt_exit
  57308. - }
  57309. - done
  57310. - IFS="$save_ifs"
  57311. + # Delete the generated files.
  57312. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  57313. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  57314. fi
  57315. - # Install the pseudo-library for information purposes.
  57316. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57317. - instname="$dir/$name"i
  57318. - $show "$install_prog $instname $destdir/$name"
  57319. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  57320. -
  57321. - # Maybe install the static library, too.
  57322. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  57323. - ;;
  57324. + exit $exit_status
  57325. + fi
  57326. - *.lo)
  57327. - # Install (i.e. copy) a libtool object.
  57328. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  57329. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  57330. + fi
  57331. + if test -n "$finalize_shlibpath"; then
  57332. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  57333. + fi
  57334. - # Figure out destination file name, if it wasn't already specified.
  57335. - if test -n "$destname"; then
  57336. - destfile="$destdir/$destname"
  57337. - else
  57338. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57339. - destfile="$destdir/$destfile"
  57340. + compile_var=
  57341. + finalize_var=
  57342. + if test -n "$runpath_var"; then
  57343. + if test -n "$perm_rpath"; then
  57344. + # We should set the runpath_var.
  57345. + rpath=
  57346. + for dir in $perm_rpath; do
  57347. + rpath="$rpath$dir:"
  57348. + done
  57349. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57350. fi
  57351. -
  57352. - # Deduce the name of the destination old-style object file.
  57353. - case $destfile in
  57354. - *.lo)
  57355. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  57356. - ;;
  57357. - *.$objext)
  57358. - staticdest="$destfile"
  57359. - destfile=
  57360. - ;;
  57361. - *)
  57362. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  57363. - $echo "$help" 1>&2
  57364. - exit $EXIT_FAILURE
  57365. - ;;
  57366. - esac
  57367. -
  57368. - # Install the libtool object if requested.
  57369. - if test -n "$destfile"; then
  57370. - $show "$install_prog $file $destfile"
  57371. - $run eval "$install_prog $file $destfile" || exit $?
  57372. + if test -n "$finalize_perm_rpath"; then
  57373. + # We should set the runpath_var.
  57374. + rpath=
  57375. + for dir in $finalize_perm_rpath; do
  57376. + rpath="$rpath$dir:"
  57377. + done
  57378. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57379. fi
  57380. + fi
  57381. - # Install the old object if enabled.
  57382. - if test "$build_old_libs" = yes; then
  57383. - # Deduce the name of the old-style object file.
  57384. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  57385. -
  57386. - $show "$install_prog $staticobj $staticdest"
  57387. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  57388. - fi
  57389. + if test "$no_install" = yes; then
  57390. + # We don't need to create a wrapper script.
  57391. + link_command="$compile_var$compile_command$compile_rpath"
  57392. + # Replace the output file specification.
  57393. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57394. + # Delete the old output file.
  57395. + $opt_dry_run || $RM $output
  57396. + # Link the executable and exit
  57397. + func_show_eval "$link_command" 'exit $?'
  57398. exit $EXIT_SUCCESS
  57399. - ;;
  57400. + fi
  57401. - *)
  57402. - # Figure out destination file name, if it wasn't already specified.
  57403. - if test -n "$destname"; then
  57404. - destfile="$destdir/$destname"
  57405. + if test "$hardcode_action" = relink; then
  57406. + # Fast installation is not supported
  57407. + link_command="$compile_var$compile_command$compile_rpath"
  57408. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  57409. +
  57410. + func_warning "this platform does not like uninstalled shared libraries"
  57411. + func_warning "\`$output' will be relinked during installation"
  57412. + else
  57413. + if test "$fast_install" != no; then
  57414. + link_command="$finalize_var$compile_command$finalize_rpath"
  57415. + if test "$fast_install" = yes; then
  57416. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  57417. + else
  57418. + # fast_install is set to needless
  57419. + relink_command=
  57420. + fi
  57421. else
  57422. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57423. - destfile="$destdir/$destfile"
  57424. + link_command="$compile_var$compile_command$compile_rpath"
  57425. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  57426. fi
  57427. + fi
  57428. - # If the file is missing, and there is a .exe on the end, strip it
  57429. - # because it is most likely a libtool script we actually want to
  57430. - # install
  57431. - stripped_ext=""
  57432. - case $file in
  57433. - *.exe)
  57434. - if test ! -f "$file"; then
  57435. - file=`$echo $file|${SED} 's,.exe$,,'`
  57436. - stripped_ext=".exe"
  57437. - fi
  57438. - ;;
  57439. - esac
  57440. -
  57441. - # Do a test to see if this is really a libtool program.
  57442. - case $host in
  57443. - *cygwin*|*mingw*)
  57444. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  57445. - ;;
  57446. - *)
  57447. - wrapper=$file
  57448. - ;;
  57449. - esac
  57450. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  57451. - notinst_deplibs=
  57452. - relink_command=
  57453. -
  57454. - # Note that it is not necessary on cygwin/mingw to append a dot to
  57455. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  57456. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  57457. - # `FILE.' does not work on cygwin managed mounts.
  57458. - #
  57459. - # If there is no directory component, then add one.
  57460. - case $wrapper in
  57461. - */* | *\\*) . ${wrapper} ;;
  57462. - *) . ./${wrapper} ;;
  57463. - esac
  57464. -
  57465. - # Check the variables that should have been set.
  57466. - if test -z "$notinst_deplibs"; then
  57467. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  57468. - exit $EXIT_FAILURE
  57469. - fi
  57470. + # Replace the output file specification.
  57471. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  57472. - finalize=yes
  57473. - for lib in $notinst_deplibs; do
  57474. - # Check to see that each library is installed.
  57475. - libdir=
  57476. - if test -f "$lib"; then
  57477. - # If there is no directory component, then add one.
  57478. - case $lib in
  57479. - */* | *\\*) . $lib ;;
  57480. - *) . ./$lib ;;
  57481. - esac
  57482. - fi
  57483. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  57484. - if test -n "$libdir" && test ! -f "$libfile"; then
  57485. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  57486. - finalize=no
  57487. - fi
  57488. - done
  57489. + # Delete the old output files.
  57490. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  57491. - relink_command=
  57492. - # Note that it is not necessary on cygwin/mingw to append a dot to
  57493. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  57494. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  57495. - # `FILE.' does not work on cygwin managed mounts.
  57496. - #
  57497. - # If there is no directory component, then add one.
  57498. - case $wrapper in
  57499. - */* | *\\*) . ${wrapper} ;;
  57500. - *) . ./${wrapper} ;;
  57501. - esac
  57502. + func_show_eval "$link_command" 'exit $?'
  57503. - outputname=
  57504. - if test "$fast_install" = no && test -n "$relink_command"; then
  57505. - if test "$finalize" = yes && test -z "$run"; then
  57506. - tmpdir=`func_mktempdir`
  57507. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  57508. - outputname="$tmpdir/$file"
  57509. - # Replace the output file specification.
  57510. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  57511. + # Now create the wrapper script.
  57512. + func_verbose "creating $output"
  57513. - $show "$relink_command"
  57514. - if $run eval "$relink_command"; then :
  57515. - else
  57516. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  57517. - ${rm}r "$tmpdir"
  57518. - continue
  57519. - fi
  57520. - file="$outputname"
  57521. - else
  57522. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  57523. - fi
  57524. + # Quote the relink command for shipping.
  57525. + if test -n "$relink_command"; then
  57526. + # Preserve any variables that may affect compiler behavior
  57527. + for var in $variables_saved_for_relink; do
  57528. + if eval test -z \"\${$var+set}\"; then
  57529. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  57530. + elif eval var_value=\$$var; test -z "$var_value"; then
  57531. + relink_command="$var=; export $var; $relink_command"
  57532. else
  57533. - # Install the binary that we compiled earlier.
  57534. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  57535. + func_quote_for_eval "$var_value"
  57536. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  57537. fi
  57538. - fi
  57539. + done
  57540. + relink_command="(cd `pwd`; $relink_command)"
  57541. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57542. + fi
  57543. - # remove .exe since cygwin /usr/bin/install will append another
  57544. - # one anyway
  57545. - case $install_prog,$host in
  57546. - */usr/bin/install*,*cygwin*)
  57547. - case $file:$destfile in
  57548. - *.exe:*.exe)
  57549. - # this is ok
  57550. - ;;
  57551. - *.exe:*)
  57552. - destfile=$destfile.exe
  57553. - ;;
  57554. - *:*.exe)
  57555. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  57556. - ;;
  57557. - esac
  57558. - ;;
  57559. + # Quote $ECHO for shipping.
  57560. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  57561. + case $progpath in
  57562. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  57563. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  57564. + esac
  57565. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  57566. + else
  57567. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  57568. + fi
  57569. +
  57570. + # Only actually do things if not in dry run mode.
  57571. + $opt_dry_run || {
  57572. + # win32 will think the script is a binary if it has
  57573. + # a .exe suffix, so we strip it off here.
  57574. + case $output in
  57575. + *.exe) func_stripname '' '.exe' "$output"
  57576. + output=$func_stripname_result ;;
  57577. esac
  57578. - $show "$install_prog$stripme $file $destfile"
  57579. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  57580. - test -n "$outputname" && ${rm}r "$tmpdir"
  57581. - ;;
  57582. - esac
  57583. - done
  57584. + # test for cygwin because mv fails w/o .exe extensions
  57585. + case $host in
  57586. + *cygwin*)
  57587. + exeext=.exe
  57588. + func_stripname '' '.exe' "$outputname"
  57589. + outputname=$func_stripname_result ;;
  57590. + *) exeext= ;;
  57591. + esac
  57592. + case $host in
  57593. + *cygwin* | *mingw* )
  57594. + func_dirname_and_basename "$output" "" "."
  57595. + output_name=$func_basename_result
  57596. + output_path=$func_dirname_result
  57597. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  57598. + cwrapper="$output_path/$output_name.exe"
  57599. + $RM $cwrappersource $cwrapper
  57600. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  57601. +
  57602. + func_emit_cwrapperexe_src > $cwrappersource
  57603. +
  57604. + # The wrapper executable is built using the $host compiler,
  57605. + # because it contains $host paths and files. If cross-
  57606. + # compiling, it, like the target executable, must be
  57607. + # executed on the $host or under an emulation environment.
  57608. + $opt_dry_run || {
  57609. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  57610. + $STRIP $cwrapper
  57611. + }
  57612. - for file in $staticlibs; do
  57613. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57614. + # Now, create the wrapper script for func_source use:
  57615. + func_ltwrapper_scriptname $cwrapper
  57616. + $RM $func_ltwrapper_scriptname_result
  57617. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  57618. + $opt_dry_run || {
  57619. + # note: this script will not be executed, so do not chmod.
  57620. + if test "x$build" = "x$host" ; then
  57621. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  57622. + else
  57623. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  57624. + fi
  57625. + }
  57626. + ;;
  57627. + * )
  57628. + $RM $output
  57629. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  57630. - # Set up the ranlib parameters.
  57631. - oldlib="$destdir/$name"
  57632. + func_emit_wrapper no > $output
  57633. + chmod +x $output
  57634. + ;;
  57635. + esac
  57636. + }
  57637. + exit $EXIT_SUCCESS
  57638. + ;;
  57639. + esac
  57640. - $show "$install_prog $file $oldlib"
  57641. - $run eval "$install_prog \$file \$oldlib" || exit $?
  57642. + # See if we need to build an old-fashioned archive.
  57643. + for oldlib in $oldlibs; do
  57644. - if test -n "$stripme" && test -n "$old_striplib"; then
  57645. - $show "$old_striplib $oldlib"
  57646. - $run eval "$old_striplib $oldlib" || exit $?
  57647. + if test "$build_libtool_libs" = convenience; then
  57648. + oldobjs="$libobjs_save $symfileobj"
  57649. + addlibs="$convenience"
  57650. + build_libtool_libs=no
  57651. + else
  57652. + if test "$build_libtool_libs" = module; then
  57653. + oldobjs="$libobjs_save"
  57654. + build_libtool_libs=no
  57655. + else
  57656. + oldobjs="$old_deplibs $non_pic_objects"
  57657. + if test "$preload" = yes && test -f "$symfileobj"; then
  57658. + oldobjs="$oldobjs $symfileobj"
  57659. + fi
  57660. + fi
  57661. + addlibs="$old_convenience"
  57662. fi
  57663. - # Do each command in the postinstall commands.
  57664. - cmds=$old_postinstall_cmds
  57665. - save_ifs="$IFS"; IFS='~'
  57666. - for cmd in $cmds; do
  57667. - IFS="$save_ifs"
  57668. - eval cmd=\"$cmd\"
  57669. - $show "$cmd"
  57670. - $run eval "$cmd" || exit $?
  57671. - done
  57672. - IFS="$save_ifs"
  57673. - done
  57674. + if test -n "$addlibs"; then
  57675. + gentop="$output_objdir/${outputname}x"
  57676. + generated="$generated $gentop"
  57677. - if test -n "$future_libdirs"; then
  57678. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  57679. - fi
  57680. + func_extract_archives $gentop $addlibs
  57681. + oldobjs="$oldobjs $func_extract_archives_result"
  57682. + fi
  57683. - if test -n "$current_libdirs"; then
  57684. - # Maybe just do a dry run.
  57685. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  57686. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  57687. - else
  57688. - exit $EXIT_SUCCESS
  57689. - fi
  57690. - ;;
  57691. + # Do each command in the archive commands.
  57692. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  57693. + cmds=$old_archive_from_new_cmds
  57694. + else
  57695. - # libtool finish mode
  57696. - finish)
  57697. - modename="$modename: finish"
  57698. - libdirs="$nonopt"
  57699. - admincmds=
  57700. + # Add any objects from preloaded convenience libraries
  57701. + if test -n "$dlprefiles"; then
  57702. + gentop="$output_objdir/${outputname}x"
  57703. + generated="$generated $gentop"
  57704. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  57705. - for dir
  57706. - do
  57707. - libdirs="$libdirs $dir"
  57708. - done
  57709. + func_extract_archives $gentop $dlprefiles
  57710. + oldobjs="$oldobjs $func_extract_archives_result"
  57711. + fi
  57712. - for libdir in $libdirs; do
  57713. - if test -n "$finish_cmds"; then
  57714. - # Do each command in the finish commands.
  57715. - cmds=$finish_cmds
  57716. - save_ifs="$IFS"; IFS='~'
  57717. - for cmd in $cmds; do
  57718. - IFS="$save_ifs"
  57719. - eval cmd=\"$cmd\"
  57720. - $show "$cmd"
  57721. - $run eval "$cmd" || admincmds="$admincmds
  57722. - $cmd"
  57723. + # POSIX demands no paths to be encoded in archives. We have
  57724. + # to avoid creating archives with duplicate basenames if we
  57725. + # might have to extract them afterwards, e.g., when creating a
  57726. + # static archive out of a convenience library, or when linking
  57727. + # the entirety of a libtool archive into another (currently
  57728. + # not supported by libtool).
  57729. + if (for obj in $oldobjs
  57730. + do
  57731. + func_basename "$obj"
  57732. + $ECHO "$func_basename_result"
  57733. + done | sort | sort -uc >/dev/null 2>&1); then
  57734. + :
  57735. + else
  57736. + $ECHO "copying selected object files to avoid basename conflicts..."
  57737. + gentop="$output_objdir/${outputname}x"
  57738. + generated="$generated $gentop"
  57739. + func_mkdir_p "$gentop"
  57740. + save_oldobjs=$oldobjs
  57741. + oldobjs=
  57742. + counter=1
  57743. + for obj in $save_oldobjs
  57744. + do
  57745. + func_basename "$obj"
  57746. + objbase="$func_basename_result"
  57747. + case " $oldobjs " in
  57748. + " ") oldobjs=$obj ;;
  57749. + *[\ /]"$objbase "*)
  57750. + while :; do
  57751. + # Make sure we don't pick an alternate name that also
  57752. + # overlaps.
  57753. + newobj=lt$counter-$objbase
  57754. + func_arith $counter + 1
  57755. + counter=$func_arith_result
  57756. + case " $oldobjs " in
  57757. + *[\ /]"$newobj "*) ;;
  57758. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  57759. + esac
  57760. + done
  57761. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  57762. + oldobjs="$oldobjs $gentop/$newobj"
  57763. + ;;
  57764. + *) oldobjs="$oldobjs $obj" ;;
  57765. + esac
  57766. done
  57767. - IFS="$save_ifs"
  57768. - fi
  57769. - if test -n "$finish_eval"; then
  57770. - # Do the single finish_eval.
  57771. - eval cmds=\"$finish_eval\"
  57772. - $run eval "$cmds" || admincmds="$admincmds
  57773. - $cmds"
  57774. fi
  57775. - done
  57776. - fi
  57777. -
  57778. - # Exit here if they wanted silent mode.
  57779. - test "$show" = : && exit $EXIT_SUCCESS
  57780. + eval cmds=\"$old_archive_cmds\"
  57781. - $echo "X----------------------------------------------------------------------" | $Xsed
  57782. - $echo "Libraries have been installed in:"
  57783. - for libdir in $libdirs; do
  57784. - $echo " $libdir"
  57785. + func_len " $cmds"
  57786. + len=$func_len_result
  57787. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57788. + cmds=$old_archive_cmds
  57789. + else
  57790. + # the command line is too long to link in one step, link in parts
  57791. + func_verbose "using piecewise archive linking..."
  57792. + save_RANLIB=$RANLIB
  57793. + RANLIB=:
  57794. + objlist=
  57795. + concat_cmds=
  57796. + save_oldobjs=$oldobjs
  57797. + oldobjs=
  57798. + # Is there a better way of finding the last object in the list?
  57799. + for obj in $save_oldobjs
  57800. + do
  57801. + last_oldobj=$obj
  57802. + done
  57803. + eval test_cmds=\"$old_archive_cmds\"
  57804. + func_len " $test_cmds"
  57805. + len0=$func_len_result
  57806. + len=$len0
  57807. + for obj in $save_oldobjs
  57808. + do
  57809. + func_len " $obj"
  57810. + func_arith $len + $func_len_result
  57811. + len=$func_arith_result
  57812. + func_append objlist " $obj"
  57813. + if test "$len" -lt "$max_cmd_len"; then
  57814. + :
  57815. + else
  57816. + # the above command should be used before it gets too long
  57817. + oldobjs=$objlist
  57818. + if test "$obj" = "$last_oldobj" ; then
  57819. + RANLIB=$save_RANLIB
  57820. + fi
  57821. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57822. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  57823. + objlist=
  57824. + len=$len0
  57825. + fi
  57826. + done
  57827. + RANLIB=$save_RANLIB
  57828. + oldobjs=$objlist
  57829. + if test "X$oldobjs" = "X" ; then
  57830. + eval cmds=\"\$concat_cmds\"
  57831. + else
  57832. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  57833. + fi
  57834. + fi
  57835. + fi
  57836. + func_execute_cmds "$cmds" 'exit $?'
  57837. done
  57838. - $echo
  57839. - $echo "If you ever happen to want to link against installed libraries"
  57840. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  57841. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  57842. - $echo "flag during linking and do at least one of the following:"
  57843. - if test -n "$shlibpath_var"; then
  57844. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  57845. - $echo " during execution"
  57846. - fi
  57847. - if test -n "$runpath_var"; then
  57848. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  57849. - $echo " during linking"
  57850. - fi
  57851. - if test -n "$hardcode_libdir_flag_spec"; then
  57852. - libdir=LIBDIR
  57853. - eval flag=\"$hardcode_libdir_flag_spec\"
  57854. -
  57855. - $echo " - use the \`$flag' linker flag"
  57856. - fi
  57857. - if test -n "$admincmds"; then
  57858. - $echo " - have your system administrator run these commands:$admincmds"
  57859. - fi
  57860. - if test -f /etc/ld.so.conf; then
  57861. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  57862. - fi
  57863. - $echo
  57864. - $echo "See any operating system documentation about shared libraries for"
  57865. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  57866. - $echo "X----------------------------------------------------------------------" | $Xsed
  57867. - exit $EXIT_SUCCESS
  57868. - ;;
  57869. - # libtool execute mode
  57870. - execute)
  57871. - modename="$modename: execute"
  57872. + test -n "$generated" && \
  57873. + func_show_eval "${RM}r$generated"
  57874. - # The first argument is the command name.
  57875. - cmd="$nonopt"
  57876. - if test -z "$cmd"; then
  57877. - $echo "$modename: you must specify a COMMAND" 1>&2
  57878. - $echo "$help"
  57879. - exit $EXIT_FAILURE
  57880. - fi
  57881. -
  57882. - # Handle -dlopen flags immediately.
  57883. - for file in $execute_dlfiles; do
  57884. - if test ! -f "$file"; then
  57885. - $echo "$modename: \`$file' is not a file" 1>&2
  57886. - $echo "$help" 1>&2
  57887. - exit $EXIT_FAILURE
  57888. - fi
  57889. + # Now create the libtool archive.
  57890. + case $output in
  57891. + *.la)
  57892. + old_library=
  57893. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  57894. + func_verbose "creating $output"
  57895. - dir=
  57896. - case $file in
  57897. - *.la)
  57898. - # Check to see that this really is a libtool archive.
  57899. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  57900. + # Preserve any variables that may affect compiler behavior
  57901. + for var in $variables_saved_for_relink; do
  57902. + if eval test -z \"\${$var+set}\"; then
  57903. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  57904. + elif eval var_value=\$$var; test -z "$var_value"; then
  57905. + relink_command="$var=; export $var; $relink_command"
  57906. else
  57907. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57908. - $echo "$help" 1>&2
  57909. - exit $EXIT_FAILURE
  57910. + func_quote_for_eval "$var_value"
  57911. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  57912. fi
  57913. + done
  57914. + # Quote the link command for shipping.
  57915. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  57916. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57917. + if test "$hardcode_automatic" = yes ; then
  57918. + relink_command=
  57919. + fi
  57920. - # Read the libtool library.
  57921. - dlname=
  57922. - library_names=
  57923. + # Only create the output if not a dry run.
  57924. + $opt_dry_run || {
  57925. + for installed in no yes; do
  57926. + if test "$installed" = yes; then
  57927. + if test -z "$install_libdir"; then
  57928. + break
  57929. + fi
  57930. + output="$output_objdir/$outputname"i
  57931. + # Replace all uninstalled libtool libraries with the installed ones
  57932. + newdependency_libs=
  57933. + for deplib in $dependency_libs; do
  57934. + case $deplib in
  57935. + *.la)
  57936. + func_basename "$deplib"
  57937. + name="$func_basename_result"
  57938. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57939. + test -z "$libdir" && \
  57940. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57941. + newdependency_libs="$newdependency_libs $libdir/$name"
  57942. + ;;
  57943. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  57944. + esac
  57945. + done
  57946. + dependency_libs="$newdependency_libs"
  57947. + newdlfiles=
  57948. +
  57949. + for lib in $dlfiles; do
  57950. + case $lib in
  57951. + *.la)
  57952. + func_basename "$lib"
  57953. + name="$func_basename_result"
  57954. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57955. + test -z "$libdir" && \
  57956. + func_fatal_error "\`$lib' is not a valid libtool archive"
  57957. + newdlfiles="$newdlfiles $libdir/$name"
  57958. + ;;
  57959. + *) newdlfiles="$newdlfiles $lib" ;;
  57960. + esac
  57961. + done
  57962. + dlfiles="$newdlfiles"
  57963. + newdlprefiles=
  57964. + for lib in $dlprefiles; do
  57965. + case $lib in
  57966. + *.la)
  57967. + # Only pass preopened files to the pseudo-archive (for
  57968. + # eventual linking with the app. that links it) if we
  57969. + # didn't already link the preopened objects directly into
  57970. + # the library:
  57971. + func_basename "$lib"
  57972. + name="$func_basename_result"
  57973. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57974. + test -z "$libdir" && \
  57975. + func_fatal_error "\`$lib' is not a valid libtool archive"
  57976. + newdlprefiles="$newdlprefiles $libdir/$name"
  57977. + ;;
  57978. + esac
  57979. + done
  57980. + dlprefiles="$newdlprefiles"
  57981. + else
  57982. + newdlfiles=
  57983. + for lib in $dlfiles; do
  57984. + case $lib in
  57985. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57986. + *) abs=`pwd`"/$lib" ;;
  57987. + esac
  57988. + newdlfiles="$newdlfiles $abs"
  57989. + done
  57990. + dlfiles="$newdlfiles"
  57991. + newdlprefiles=
  57992. + for lib in $dlprefiles; do
  57993. + case $lib in
  57994. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57995. + *) abs=`pwd`"/$lib" ;;
  57996. + esac
  57997. + newdlprefiles="$newdlprefiles $abs"
  57998. + done
  57999. + dlprefiles="$newdlprefiles"
  58000. + fi
  58001. + $RM $output
  58002. + # place dlname in correct position for cygwin
  58003. + tdlname=$dlname
  58004. + case $host,$output,$installed,$module,$dlname in
  58005. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  58006. + esac
  58007. + $ECHO > $output "\
  58008. +# $outputname - a libtool library file
  58009. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  58010. +#
  58011. +# Please DO NOT delete this file!
  58012. +# It is necessary for linking the library.
  58013. - # If there is no directory component, then add one.
  58014. - case $file in
  58015. - */* | *\\*) . $file ;;
  58016. - *) . ./$file ;;
  58017. - esac
  58018. +# The name that we can dlopen(3).
  58019. +dlname='$tdlname'
  58020. - # Skip this library if it cannot be dlopened.
  58021. - if test -z "$dlname"; then
  58022. - # Warn if it was a shared library.
  58023. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  58024. - continue
  58025. - fi
  58026. +# Names of this library.
  58027. +library_names='$library_names'
  58028. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58029. - test "X$dir" = "X$file" && dir=.
  58030. +# The name of the static archive.
  58031. +old_library='$old_library'
  58032. - if test -f "$dir/$objdir/$dlname"; then
  58033. - dir="$dir/$objdir"
  58034. - else
  58035. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  58036. - exit $EXIT_FAILURE
  58037. - fi
  58038. - ;;
  58039. +# Linker flags that can not go in dependency_libs.
  58040. +inherited_linker_flags='$new_inherited_linker_flags'
  58041. - *.lo)
  58042. - # Just add the directory containing the .lo file.
  58043. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58044. - test "X$dir" = "X$file" && dir=.
  58045. - ;;
  58046. +# Libraries that this one depends upon.
  58047. +dependency_libs='$dependency_libs'
  58048. - *)
  58049. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  58050. - continue
  58051. - ;;
  58052. - esac
  58053. +# Names of additional weak libraries provided by this library
  58054. +weak_library_names='$weak_libs'
  58055. - # Get the absolute pathname.
  58056. - absdir=`cd "$dir" && pwd`
  58057. - test -n "$absdir" && dir="$absdir"
  58058. +# Version information for $libname.
  58059. +current=$current
  58060. +age=$age
  58061. +revision=$revision
  58062. - # Now add the directory to shlibpath_var.
  58063. - if eval "test -z \"\$$shlibpath_var\""; then
  58064. - eval "$shlibpath_var=\"\$dir\""
  58065. - else
  58066. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  58067. - fi
  58068. - done
  58069. +# Is this an already installed library?
  58070. +installed=$installed
  58071. - # This variable tells wrapper scripts just to set shlibpath_var
  58072. - # rather than running their programs.
  58073. - libtool_execute_magic="$magic"
  58074. +# Should we warn about portability when linking against -modules?
  58075. +shouldnotlink=$module
  58076. - # Check if any of the arguments is a wrapper script.
  58077. - args=
  58078. - for file
  58079. - do
  58080. - case $file in
  58081. - -*) ;;
  58082. - *)
  58083. - # Do a test to see if this is really a libtool program.
  58084. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58085. - # If there is no directory component, then add one.
  58086. - case $file in
  58087. - */* | *\\*) . $file ;;
  58088. - *) . ./$file ;;
  58089. - esac
  58090. +# Files to dlopen/dlpreopen
  58091. +dlopen='$dlfiles'
  58092. +dlpreopen='$dlprefiles'
  58093. - # Transform arg to wrapped name.
  58094. - file="$progdir/$program"
  58095. - fi
  58096. - ;;
  58097. - esac
  58098. - # Quote arguments (to preserve shell metacharacters).
  58099. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  58100. - args="$args \"$file\""
  58101. - done
  58102. +# Directory that this library needs to be installed in:
  58103. +libdir='$install_libdir'"
  58104. + if test "$installed" = no && test "$need_relink" = yes; then
  58105. + $ECHO >> $output "\
  58106. +relink_command=\"$relink_command\""
  58107. + fi
  58108. + done
  58109. + }
  58110. - if test -z "$run"; then
  58111. - if test -n "$shlibpath_var"; then
  58112. - # Export the shlibpath_var.
  58113. - eval "export $shlibpath_var"
  58114. - fi
  58115. + # Do a symbolic link so that the libtool archive can be found in
  58116. + # LD_LIBRARY_PATH before the program is installed.
  58117. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  58118. + ;;
  58119. + esac
  58120. + exit $EXIT_SUCCESS
  58121. +}
  58122. - # Restore saved environment variables
  58123. - if test "${save_LC_ALL+set}" = set; then
  58124. - LC_ALL="$save_LC_ALL"; export LC_ALL
  58125. - fi
  58126. - if test "${save_LANG+set}" = set; then
  58127. - LANG="$save_LANG"; export LANG
  58128. - fi
  58129. +{ test "$mode" = link || test "$mode" = relink; } &&
  58130. + func_mode_link ${1+"$@"}
  58131. - # Now prepare to actually exec the command.
  58132. - exec_cmd="\$cmd$args"
  58133. - else
  58134. - # Display what would be done.
  58135. - if test -n "$shlibpath_var"; then
  58136. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  58137. - $echo "export $shlibpath_var"
  58138. - fi
  58139. - $echo "$cmd$args"
  58140. - exit $EXIT_SUCCESS
  58141. - fi
  58142. - ;;
  58143. - # libtool clean and uninstall mode
  58144. - clean | uninstall)
  58145. - modename="$modename: $mode"
  58146. - rm="$nonopt"
  58147. +# func_mode_uninstall arg...
  58148. +func_mode_uninstall ()
  58149. +{
  58150. + $opt_debug
  58151. + RM="$nonopt"
  58152. files=
  58153. rmforce=
  58154. exit_status=0
  58155. @@ -6456,30 +8209,28 @@
  58156. for arg
  58157. do
  58158. case $arg in
  58159. - -f) rm="$rm $arg"; rmforce=yes ;;
  58160. - -*) rm="$rm $arg" ;;
  58161. + -f) RM="$RM $arg"; rmforce=yes ;;
  58162. + -*) RM="$RM $arg" ;;
  58163. *) files="$files $arg" ;;
  58164. esac
  58165. done
  58166. - if test -z "$rm"; then
  58167. - $echo "$modename: you must specify an RM program" 1>&2
  58168. - $echo "$help" 1>&2
  58169. - exit $EXIT_FAILURE
  58170. - fi
  58171. + test -z "$RM" && \
  58172. + func_fatal_help "you must specify an RM program"
  58173. rmdirs=
  58174. origobjdir="$objdir"
  58175. for file in $files; do
  58176. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58177. - if test "X$dir" = "X$file"; then
  58178. - dir=.
  58179. + func_dirname "$file" "" "."
  58180. + dir="$func_dirname_result"
  58181. + if test "X$dir" = X.; then
  58182. objdir="$origobjdir"
  58183. else
  58184. objdir="$dir/$origobjdir"
  58185. fi
  58186. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58187. + func_basename "$file"
  58188. + name="$func_basename_result"
  58189. test "$mode" = uninstall && objdir="$dir"
  58190. # Remember objdir for removal later, being careful to avoid duplicates
  58191. @@ -6491,9 +8242,9 @@
  58192. fi
  58193. # Don't error if the file doesn't exist and rm -f was used.
  58194. - if (test -L "$file") >/dev/null 2>&1 \
  58195. - || (test -h "$file") >/dev/null 2>&1 \
  58196. - || test -f "$file"; then
  58197. + if { test -L "$file"; } >/dev/null 2>&1 ||
  58198. + { test -h "$file"; } >/dev/null 2>&1 ||
  58199. + test -f "$file"; then
  58200. :
  58201. elif test -d "$file"; then
  58202. exit_status=1
  58203. @@ -6507,8 +8258,8 @@
  58204. case $name in
  58205. *.la)
  58206. # Possibly a libtool archive, so verify it.
  58207. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58208. - . $dir/$name
  58209. + if func_lalib_p "$file"; then
  58210. + func_source $dir/$name
  58211. # Delete the libtool libraries and symlinks.
  58212. for n in $library_names; do
  58213. @@ -6523,39 +8274,17 @@
  58214. *" $dlname "*) ;;
  58215. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  58216. esac
  58217. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58218. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58219. ;;
  58220. uninstall)
  58221. if test -n "$library_names"; then
  58222. # Do each command in the postuninstall commands.
  58223. - cmds=$postuninstall_cmds
  58224. - save_ifs="$IFS"; IFS='~'
  58225. - for cmd in $cmds; do
  58226. - IFS="$save_ifs"
  58227. - eval cmd=\"$cmd\"
  58228. - $show "$cmd"
  58229. - $run eval "$cmd"
  58230. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58231. - exit_status=1
  58232. - fi
  58233. - done
  58234. - IFS="$save_ifs"
  58235. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58236. fi
  58237. if test -n "$old_library"; then
  58238. # Do each command in the old_postuninstall commands.
  58239. - cmds=$old_postuninstall_cmds
  58240. - save_ifs="$IFS"; IFS='~'
  58241. - for cmd in $cmds; do
  58242. - IFS="$save_ifs"
  58243. - eval cmd=\"$cmd\"
  58244. - $show "$cmd"
  58245. - $run eval "$cmd"
  58246. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58247. - exit_status=1
  58248. - fi
  58249. - done
  58250. - IFS="$save_ifs"
  58251. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58252. fi
  58253. # FIXME: should reinstall the best remaining shared library.
  58254. ;;
  58255. @@ -6565,20 +8294,20 @@
  58256. *.lo)
  58257. # Possibly a libtool object, so verify it.
  58258. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58259. + if func_lalib_p "$file"; then
  58260. # Read the .lo file
  58261. - . $dir/$name
  58262. + func_source $dir/$name
  58263. # Add PIC object to the list of files to remove.
  58264. - if test -n "$pic_object" \
  58265. - && test "$pic_object" != none; then
  58266. + if test -n "$pic_object" &&
  58267. + test "$pic_object" != none; then
  58268. rmfiles="$rmfiles $dir/$pic_object"
  58269. fi
  58270. # Add non-PIC object to the list of files to remove.
  58271. - if test -n "$non_pic_object" \
  58272. - && test "$non_pic_object" != none; then
  58273. + if test -n "$non_pic_object" &&
  58274. + test "$non_pic_object" != none; then
  58275. rmfiles="$rmfiles $dir/$non_pic_object"
  58276. fi
  58277. fi
  58278. @@ -6589,17 +8318,26 @@
  58279. noexename=$name
  58280. case $file in
  58281. *.exe)
  58282. - file=`$echo $file|${SED} 's,.exe$,,'`
  58283. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  58284. + func_stripname '' '.exe' "$file"
  58285. + file=$func_stripname_result
  58286. + func_stripname '' '.exe' "$name"
  58287. + noexename=$func_stripname_result
  58288. # $file with .exe has already been added to rmfiles,
  58289. # add $file without .exe
  58290. rmfiles="$rmfiles $file"
  58291. ;;
  58292. esac
  58293. # Do a test to see if this is a libtool program.
  58294. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58295. - relink_command=
  58296. - . $dir/$noexename
  58297. + if func_ltwrapper_p "$file"; then
  58298. + if func_ltwrapper_executable_p "$file"; then
  58299. + func_ltwrapper_scriptname "$file"
  58300. + relink_command=
  58301. + func_source $func_ltwrapper_scriptname_result
  58302. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  58303. + else
  58304. + relink_command=
  58305. + func_source $dir/$noexename
  58306. + fi
  58307. # note $name still contains .exe if it was in $file originally
  58308. # as does the version of $file that was added into $rmfiles
  58309. @@ -6614,237 +8352,38 @@
  58310. fi
  58311. ;;
  58312. esac
  58313. - $show "$rm $rmfiles"
  58314. - $run $rm $rmfiles || exit_status=1
  58315. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  58316. done
  58317. objdir="$origobjdir"
  58318. # Try to remove the ${objdir}s in the directories where we deleted files
  58319. for dir in $rmdirs; do
  58320. if test -d "$dir"; then
  58321. - $show "rmdir $dir"
  58322. - $run rmdir $dir >/dev/null 2>&1
  58323. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  58324. fi
  58325. done
  58326. exit $exit_status
  58327. - ;;
  58328. +}
  58329. - "")
  58330. - $echo "$modename: you must specify a MODE" 1>&2
  58331. - $echo "$generic_help" 1>&2
  58332. - exit $EXIT_FAILURE
  58333. - ;;
  58334. - esac
  58335. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  58336. + func_mode_uninstall ${1+"$@"}
  58337. - if test -z "$exec_cmd"; then
  58338. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  58339. - $echo "$generic_help" 1>&2
  58340. - exit $EXIT_FAILURE
  58341. - fi
  58342. -fi # test -z "$show_help"
  58343. +test -z "$mode" && {
  58344. + help="$generic_help"
  58345. + func_fatal_help "you must specify a MODE"
  58346. +}
  58347. +
  58348. +test -z "$exec_cmd" && \
  58349. + func_fatal_help "invalid operation mode \`$mode'"
  58350. if test -n "$exec_cmd"; then
  58351. - eval exec $exec_cmd
  58352. + eval exec "$exec_cmd"
  58353. exit $EXIT_FAILURE
  58354. fi
  58355. -# We need to display help for each of the modes.
  58356. -case $mode in
  58357. -"") $echo \
  58358. -"Usage: $modename [OPTION]... [MODE-ARG]...
  58359. -
  58360. -Provide generalized library-building support services.
  58361. -
  58362. - --config show all configuration variables
  58363. - --debug enable verbose shell tracing
  58364. --n, --dry-run display commands without modifying any files
  58365. - --features display basic configuration information and exit
  58366. - --finish same as \`--mode=finish'
  58367. - --help display this help message and exit
  58368. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  58369. - --quiet same as \`--silent'
  58370. - --silent don't print informational messages
  58371. - --tag=TAG use configuration variables from tag TAG
  58372. - --version print version information
  58373. -
  58374. -MODE must be one of the following:
  58375. -
  58376. - clean remove files from the build directory
  58377. - compile compile a source file into a libtool object
  58378. - execute automatically set library path, then run a program
  58379. - finish complete the installation of libtool libraries
  58380. - install install libraries or executables
  58381. - link create a library or an executable
  58382. - uninstall remove libraries from an installed directory
  58383. -
  58384. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  58385. -a more detailed description of MODE.
  58386. -
  58387. -Report bugs to <bug-libtool@gnu.org>."
  58388. - exit $EXIT_SUCCESS
  58389. - ;;
  58390. -
  58391. -clean)
  58392. - $echo \
  58393. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  58394. -
  58395. -Remove files from the build directory.
  58396. -
  58397. -RM is the name of the program to use to delete files associated with each FILE
  58398. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  58399. -to RM.
  58400. -
  58401. -If FILE is a libtool library, object or program, all the files associated
  58402. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  58403. - ;;
  58404. -
  58405. -compile)
  58406. - $echo \
  58407. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  58408. -
  58409. -Compile a source file into a libtool library object.
  58410. -
  58411. -This mode accepts the following additional options:
  58412. -
  58413. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  58414. - -prefer-pic try to building PIC objects only
  58415. - -prefer-non-pic try to building non-PIC objects only
  58416. - -static always build a \`.o' file suitable for static linking
  58417. -
  58418. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  58419. -from the given SOURCEFILE.
  58420. -
  58421. -The output file name is determined by removing the directory component from
  58422. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  58423. -library object suffix, \`.lo'."
  58424. - ;;
  58425. -
  58426. -execute)
  58427. - $echo \
  58428. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  58429. -
  58430. -Automatically set library path, then run a program.
  58431. -
  58432. -This mode accepts the following additional options:
  58433. -
  58434. - -dlopen FILE add the directory containing FILE to the library path
  58435. -
  58436. -This mode sets the library path environment variable according to \`-dlopen'
  58437. -flags.
  58438. -
  58439. -If any of the ARGS are libtool executable wrappers, then they are translated
  58440. -into their corresponding uninstalled binary, and any of their required library
  58441. -directories are added to the library path.
  58442. -
  58443. -Then, COMMAND is executed, with ARGS as arguments."
  58444. - ;;
  58445. -
  58446. -finish)
  58447. - $echo \
  58448. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  58449. -
  58450. -Complete the installation of libtool libraries.
  58451. -
  58452. -Each LIBDIR is a directory that contains libtool libraries.
  58453. -
  58454. -The commands that this mode executes may require superuser privileges. Use
  58455. -the \`--dry-run' option if you just want to see what would be executed."
  58456. - ;;
  58457. -
  58458. -install)
  58459. - $echo \
  58460. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  58461. -
  58462. -Install executables or libraries.
  58463. -
  58464. -INSTALL-COMMAND is the installation command. The first component should be
  58465. -either the \`install' or \`cp' program.
  58466. -
  58467. -The rest of the components are interpreted as arguments to that command (only
  58468. -BSD-compatible install options are recognized)."
  58469. - ;;
  58470. -
  58471. -link)
  58472. - $echo \
  58473. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  58474. -
  58475. -Link object files or libraries together to form another library, or to
  58476. -create an executable program.
  58477. -
  58478. -LINK-COMMAND is a command using the C compiler that you would use to create
  58479. -a program from several object files.
  58480. -
  58481. -The following components of LINK-COMMAND are treated specially:
  58482. -
  58483. - -all-static do not do any dynamic linking at all
  58484. - -avoid-version do not add a version suffix if possible
  58485. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  58486. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  58487. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  58488. - -export-symbols SYMFILE
  58489. - try to export only the symbols listed in SYMFILE
  58490. - -export-symbols-regex REGEX
  58491. - try to export only the symbols matching REGEX
  58492. - -LLIBDIR search LIBDIR for required installed libraries
  58493. - -lNAME OUTPUT-FILE requires the installed library libNAME
  58494. - -module build a library that can dlopened
  58495. - -no-fast-install disable the fast-install mode
  58496. - -no-install link a not-installable executable
  58497. - -no-undefined declare that a library does not refer to external symbols
  58498. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  58499. - -objectlist FILE Use a list of object files found in FILE to specify objects
  58500. - -precious-files-regex REGEX
  58501. - don't remove output files matching REGEX
  58502. - -release RELEASE specify package release information
  58503. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  58504. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  58505. - -static do not do any dynamic linking of libtool libraries
  58506. - -version-info CURRENT[:REVISION[:AGE]]
  58507. - specify library version info [each variable defaults to 0]
  58508. -
  58509. -All other options (arguments beginning with \`-') are ignored.
  58510. -
  58511. -Every other argument is treated as a filename. Files ending in \`.la' are
  58512. -treated as uninstalled libtool libraries, other files are standard or library
  58513. -object files.
  58514. -
  58515. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  58516. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  58517. -required, except when creating a convenience library.
  58518. -
  58519. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  58520. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  58521. -
  58522. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  58523. -is created, otherwise an executable program is created."
  58524. - ;;
  58525. -
  58526. -uninstall)
  58527. - $echo \
  58528. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  58529. -
  58530. -Remove libraries from an installation directory.
  58531. -
  58532. -RM is the name of the program to use to delete files associated with each FILE
  58533. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  58534. -to RM.
  58535. +exit $exit_status
  58536. -If FILE is a libtool library, all the files associated with it are deleted.
  58537. -Otherwise, only FILE itself is deleted using RM."
  58538. - ;;
  58539. -
  58540. -*)
  58541. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  58542. - $echo "$help" 1>&2
  58543. - exit $EXIT_FAILURE
  58544. - ;;
  58545. -esac
  58546. -
  58547. -$echo
  58548. -$echo "Try \`$modename --help' for more information about other modes."
  58549. -
  58550. -exit $?
  58551. # The TAGs below are defined such that we never get into a situation
  58552. # in which we disable both kinds of libraries. Given conflicting
  58553. @@ -6858,14 +8397,17 @@
  58554. # configuration. But we'll never go from static-only to shared-only.
  58555. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  58556. -disable_libs=shared
  58557. +build_libtool_libs=no
  58558. +build_old_libs=yes
  58559. # ### END LIBTOOL TAG CONFIG: disable-shared
  58560. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  58561. -disable_libs=static
  58562. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  58563. # ### END LIBTOOL TAG CONFIG: disable-static
  58564. # Local Variables:
  58565. # mode:shell-script
  58566. # sh-indentation:2
  58567. # End:
  58568. +# vi:sw=2
  58569. +
  58570. diff -Nur libXft-2.1.9.orig/Makefile.in libXft-2.1.9/Makefile.in
  58571. --- libXft-2.1.9.orig/Makefile.in 2006-06-03 12:33:30.000000000 +0200
  58572. +++ libXft-2.1.9/Makefile.in 2011-02-16 21:01:10.743563034 +0100
  58573. @@ -1,8 +1,9 @@
  58574. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  58575. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  58576. # @configure_input@
  58577. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  58578. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  58579. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  58580. +# Inc.
  58581. # This Makefile.in is free software; the Free Software Foundation
  58582. # gives unlimited permission to copy and/or distribute it,
  58583. # with or without modifications, as long as this notice is preserved.
  58584. @@ -38,15 +39,12 @@
  58585. # PERFORMANCE OF THIS SOFTWARE.
  58586. -srcdir = @srcdir@
  58587. -top_srcdir = @top_srcdir@
  58588. VPATH = @srcdir@
  58589. pkgdatadir = $(datadir)/@PACKAGE@
  58590. -pkglibdir = $(libdir)/@PACKAGE@
  58591. pkgincludedir = $(includedir)/@PACKAGE@
  58592. -top_builddir = .
  58593. +pkglibdir = $(libdir)/@PACKAGE@
  58594. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  58595. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  58596. -INSTALL = @INSTALL@
  58597. install_sh_DATA = $(install_sh) -c -m 644
  58598. install_sh_PROGRAM = $(install_sh) -c
  58599. install_sh_SCRIPT = $(install_sh) -c
  58600. @@ -60,40 +58,60 @@
  58601. POST_UNINSTALL = :
  58602. build_triplet = @build@
  58603. host_triplet = @host@
  58604. +subdir = .
  58605. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  58606. $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  58607. $(srcdir)/xft-config.in $(srcdir)/xft.pc.in \
  58608. $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
  58609. config.guess config.sub depcomp install-sh ltmain.sh missing
  58610. -subdir = .
  58611. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  58612. am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  58613. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  58614. $(ACLOCAL_M4)
  58615. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  58616. - configure.lineno configure.status.lineno
  58617. + configure.lineno config.status.lineno
  58618. mkinstalldirs = $(install_sh) -d
  58619. CONFIG_HEADER = config.h
  58620. CONFIG_CLEAN_FILES = xft.pc xft-config
  58621. +CONFIG_CLEAN_VPATH_FILES =
  58622. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  58623. +am__vpath_adj = case $$p in \
  58624. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  58625. + *) f=$$p;; \
  58626. + esac;
  58627. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  58628. +am__install_max = 40
  58629. +am__nobase_strip_setup = \
  58630. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  58631. +am__nobase_strip = \
  58632. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  58633. +am__nobase_list = $(am__nobase_strip_setup); \
  58634. + for p in $$list; do echo "$$p $$p"; done | \
  58635. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  58636. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  58637. + if (++n[$$2] == $(am__install_max)) \
  58638. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  58639. + END { for (dir in files) print dir, files[dir] }'
  58640. +am__base_list = \
  58641. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  58642. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  58643. am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"
  58644. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  58645. SCRIPTS = $(bin_SCRIPTS)
  58646. SOURCES =
  58647. DIST_SOURCES =
  58648. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  58649. html-recursive info-recursive install-data-recursive \
  58650. - install-exec-recursive install-info-recursive \
  58651. - install-recursive installcheck-recursive installdirs-recursive \
  58652. - pdf-recursive ps-recursive uninstall-info-recursive \
  58653. - uninstall-recursive
  58654. -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  58655. -am__vpath_adj = case $$p in \
  58656. - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  58657. - *) f=$$p;; \
  58658. - esac;
  58659. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  58660. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  58661. + install-dvi-recursive install-exec-recursive \
  58662. + install-html-recursive install-info-recursive \
  58663. + install-pdf-recursive install-ps-recursive install-recursive \
  58664. + installcheck-recursive installdirs-recursive pdf-recursive \
  58665. + ps-recursive uninstall-recursive
  58666. DATA = $(pkgconfig_DATA)
  58667. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  58668. + distclean-recursive maintainer-clean-recursive
  58669. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  58670. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  58671. + distdir dist dist-all distcheck
  58672. ETAGS = etags
  58673. CTAGS = ctags
  58674. DIST_SUBDIRS = $(SUBDIRS)
  58675. @@ -101,16 +119,39 @@
  58676. distdir = $(PACKAGE)-$(VERSION)
  58677. top_distdir = $(distdir)
  58678. am__remove_distdir = \
  58679. - { test ! -d $(distdir) \
  58680. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  58681. - && rm -fr $(distdir); }; }
  58682. + { test ! -d "$(distdir)" \
  58683. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  58684. + && rm -fr "$(distdir)"; }; }
  58685. +am__relativize = \
  58686. + dir0=`pwd`; \
  58687. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  58688. + sed_rest='s,^[^/]*/*,,'; \
  58689. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  58690. + sed_butlast='s,/*[^/]*$$,,'; \
  58691. + while test -n "$$dir1"; do \
  58692. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  58693. + if test "$$first" != "."; then \
  58694. + if test "$$first" = ".."; then \
  58695. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  58696. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  58697. + else \
  58698. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  58699. + if test "$$first2" = "$$first"; then \
  58700. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  58701. + else \
  58702. + dir2="../$$dir2"; \
  58703. + fi; \
  58704. + dir0="$$dir0"/"$$first"; \
  58705. + fi; \
  58706. + fi; \
  58707. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  58708. + done; \
  58709. + reldir="$$dir2"
  58710. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  58711. GZIP_ENV = --best
  58712. distuninstallcheck_listfiles = find . -type f -print
  58713. distcleancheck_listfiles = find . -type f -print
  58714. ACLOCAL = @ACLOCAL@
  58715. -AMDEP_FALSE = @AMDEP_FALSE@
  58716. -AMDEP_TRUE = @AMDEP_TRUE@
  58717. AMTAR = @AMTAR@
  58718. AR = @AR@
  58719. AUTOCONF = @AUTOCONF@
  58720. @@ -122,67 +163,69 @@
  58721. CFLAGS = @CFLAGS@
  58722. CPP = @CPP@
  58723. CPPFLAGS = @CPPFLAGS@
  58724. -CXX = @CXX@
  58725. -CXXCPP = @CXXCPP@
  58726. -CXXDEPMODE = @CXXDEPMODE@
  58727. -CXXFLAGS = @CXXFLAGS@
  58728. CYGPATH_W = @CYGPATH_W@
  58729. DEFS = @DEFS@
  58730. DEPDIR = @DEPDIR@
  58731. -ECHO = @ECHO@
  58732. +DSYMUTIL = @DSYMUTIL@
  58733. +DUMPBIN = @DUMPBIN@
  58734. ECHO_C = @ECHO_C@
  58735. ECHO_N = @ECHO_N@
  58736. ECHO_T = @ECHO_T@
  58737. EGREP = @EGREP@
  58738. EXEEXT = @EXEEXT@
  58739. -F77 = @F77@
  58740. -FFLAGS = @FFLAGS@
  58741. +FGREP = @FGREP@
  58742. FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
  58743. FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
  58744. FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
  58745. FREETYPE_LIBS = @FREETYPE_LIBS@
  58746. +GREP = @GREP@
  58747. +INSTALL = @INSTALL@
  58748. INSTALL_DATA = @INSTALL_DATA@
  58749. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  58750. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  58751. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  58752. +LD = @LD@
  58753. LDFLAGS = @LDFLAGS@
  58754. LIBOBJS = @LIBOBJS@
  58755. LIBS = @LIBS@
  58756. LIBTOOL = @LIBTOOL@
  58757. +LIPO = @LIPO@
  58758. LN_S = @LN_S@
  58759. LTLIBOBJS = @LTLIBOBJS@
  58760. MAINT = @MAINT@
  58761. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  58762. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  58763. MAKEINFO = @MAKEINFO@
  58764. +MKDIR_P = @MKDIR_P@
  58765. +NM = @NM@
  58766. +NMEDIT = @NMEDIT@
  58767. +OBJDUMP = @OBJDUMP@
  58768. OBJEXT = @OBJEXT@
  58769. +OTOOL = @OTOOL@
  58770. +OTOOL64 = @OTOOL64@
  58771. PACKAGE = @PACKAGE@
  58772. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  58773. PACKAGE_NAME = @PACKAGE_NAME@
  58774. PACKAGE_STRING = @PACKAGE_STRING@
  58775. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  58776. +PACKAGE_URL = @PACKAGE_URL@
  58777. PACKAGE_VERSION = @PACKAGE_VERSION@
  58778. PATH_SEPARATOR = @PATH_SEPARATOR@
  58779. PKG_CONFIG = @PKG_CONFIG@
  58780. RANLIB = @RANLIB@
  58781. +SED = @SED@
  58782. SET_MAKE = @SET_MAKE@
  58783. SHELL = @SHELL@
  58784. STRIP = @STRIP@
  58785. VERSION = @VERSION@
  58786. WARN_CFLAGS = @WARN_CFLAGS@
  58787. +XMKMF = @XMKMF@
  58788. XRENDER_CFLAGS = @XRENDER_CFLAGS@
  58789. XRENDER_LIBS = @XRENDER_LIBS@
  58790. -ac_ct_AR = @ac_ct_AR@
  58791. +abs_builddir = @abs_builddir@
  58792. +abs_srcdir = @abs_srcdir@
  58793. +abs_top_builddir = @abs_top_builddir@
  58794. +abs_top_srcdir = @abs_top_srcdir@
  58795. ac_ct_CC = @ac_ct_CC@
  58796. -ac_ct_CXX = @ac_ct_CXX@
  58797. -ac_ct_F77 = @ac_ct_F77@
  58798. -ac_ct_RANLIB = @ac_ct_RANLIB@
  58799. -ac_ct_STRIP = @ac_ct_STRIP@
  58800. -ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
  58801. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  58802. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  58803. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  58804. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  58805. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  58806. am__include = @am__include@
  58807. am__leading_dot = @am__leading_dot@
  58808. am__quote = @am__quote@
  58809. @@ -194,7 +237,11 @@
  58810. build_cpu = @build_cpu@
  58811. build_os = @build_os@
  58812. build_vendor = @build_vendor@
  58813. +builddir = @builddir@
  58814. datadir = @datadir@
  58815. +datarootdir = @datarootdir@
  58816. +docdir = @docdir@
  58817. +dvidir = @dvidir@
  58818. exec_prefix = @exec_prefix@
  58819. ft_config = @ft_config@
  58820. host = @host@
  58821. @@ -202,21 +249,30 @@
  58822. host_cpu = @host_cpu@
  58823. host_os = @host_os@
  58824. host_vendor = @host_vendor@
  58825. +htmldir = @htmldir@
  58826. includedir = @includedir@
  58827. infodir = @infodir@
  58828. install_sh = @install_sh@
  58829. libdir = @libdir@
  58830. libexecdir = @libexecdir@
  58831. +localedir = @localedir@
  58832. localstatedir = @localstatedir@
  58833. +lt_ECHO = @lt_ECHO@
  58834. mandir = @mandir@
  58835. mkdir_p = @mkdir_p@
  58836. oldincludedir = @oldincludedir@
  58837. +pdfdir = @pdfdir@
  58838. prefix = @prefix@
  58839. program_transform_name = @program_transform_name@
  58840. +psdir = @psdir@
  58841. sbindir = @sbindir@
  58842. sharedstatedir = @sharedstatedir@
  58843. +srcdir = @srcdir@
  58844. sysconfdir = @sysconfdir@
  58845. target_alias = @target_alias@
  58846. +top_build_prefix = @top_build_prefix@
  58847. +top_builddir = @top_builddir@
  58848. +top_srcdir = @top_srcdir@
  58849. SUBDIRS = man src
  58850. bin_SCRIPTS = xft-config
  58851. pkgconfigdir = $(libdir)/pkgconfig
  58852. @@ -233,15 +289,15 @@
  58853. @for dep in $?; do \
  58854. case '$(am__configure_deps)' in \
  58855. *$$dep*) \
  58856. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  58857. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  58858. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  58859. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  58860. && exit 0; \
  58861. exit 1;; \
  58862. esac; \
  58863. done; \
  58864. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  58865. - cd $(top_srcdir) && \
  58866. - $(AUTOMAKE) --gnu Makefile
  58867. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  58868. + $(am__cd) $(top_srcdir) && \
  58869. + $(AUTOMAKE) --gnu Makefile
  58870. .PRECIOUS: Makefile
  58871. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  58872. @case '$?' in \
  58873. @@ -257,21 +313,22 @@
  58874. $(SHELL) ./config.status --recheck
  58875. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  58876. - cd $(srcdir) && $(AUTOCONF)
  58877. + $(am__cd) $(srcdir) && $(AUTOCONF)
  58878. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  58879. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  58880. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  58881. +$(am__aclocal_m4_deps):
  58882. config.h: stamp-h1
  58883. @if test ! -f $@; then \
  58884. rm -f stamp-h1; \
  58885. - $(MAKE) stamp-h1; \
  58886. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  58887. else :; fi
  58888. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  58889. @rm -f stamp-h1
  58890. cd $(top_builddir) && $(SHELL) ./config.status config.h
  58891. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  58892. - cd $(top_srcdir) && $(AUTOHEADER)
  58893. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  58894. rm -f stamp-h1
  58895. touch $@
  58896. @@ -283,23 +340,38 @@
  58897. cd $(top_builddir) && $(SHELL) ./config.status $@
  58898. install-binSCRIPTS: $(bin_SCRIPTS)
  58899. @$(NORMAL_INSTALL)
  58900. - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  58901. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  58902. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  58903. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  58904. + for p in $$list; do \
  58905. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  58906. - if test -f $$d$$p; then \
  58907. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  58908. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  58909. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  58910. - else :; fi; \
  58911. - done
  58912. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  58913. + done | \
  58914. + sed -e 'p;s,.*/,,;n' \
  58915. + -e 'h;s|.*|.|' \
  58916. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  58917. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  58918. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  58919. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  58920. + if (++n[d] == $(am__install_max)) { \
  58921. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  58922. + else { print "f", d "/" $$4, $$1 } } \
  58923. + END { for (d in files) print "f", d, files[d] }' | \
  58924. + while read type dir files; do \
  58925. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  58926. + test -z "$$files" || { \
  58927. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  58928. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  58929. + } \
  58930. + ; done
  58931. uninstall-binSCRIPTS:
  58932. @$(NORMAL_UNINSTALL)
  58933. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  58934. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  58935. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  58936. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  58937. - done
  58938. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  58939. + files=`for p in $$list; do echo "$$p"; done | \
  58940. + sed -e 's,.*/,,;$(transform)'`; \
  58941. + test -n "$$list" || exit 0; \
  58942. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  58943. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  58944. mostlyclean-libtool:
  58945. -rm -f *.lo
  58946. @@ -308,25 +380,27 @@
  58947. -rm -rf .libs _libs
  58948. distclean-libtool:
  58949. - -rm -f libtool
  58950. -uninstall-info-am:
  58951. + -rm -f libtool config.lt
  58952. install-pkgconfigDATA: $(pkgconfig_DATA)
  58953. @$(NORMAL_INSTALL)
  58954. - test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
  58955. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  58956. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  58957. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  58958. + for p in $$list; do \
  58959. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  58960. - f=$(am__strip_dir) \
  58961. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  58962. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  58963. + echo "$$d$$p"; \
  58964. + done | $(am__base_list) | \
  58965. + while read files; do \
  58966. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  58967. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  58968. done
  58969. uninstall-pkgconfigDATA:
  58970. @$(NORMAL_UNINSTALL)
  58971. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  58972. - f=$(am__strip_dir) \
  58973. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  58974. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  58975. - done
  58976. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  58977. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  58978. + test -n "$$files" || exit 0; \
  58979. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  58980. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  58981. # This directory's subdirectories are mostly independent; you can cd
  58982. # into them and run `make' without going through this Makefile.
  58983. @@ -335,7 +409,7 @@
  58984. # (which will cause the Makefiles to be regenerated when you run `make');
  58985. # (2) otherwise, pass the desired values on the `make' command line.
  58986. $(RECURSIVE_TARGETS):
  58987. - @failcom='exit 1'; \
  58988. + @fail= failcom='exit 1'; \
  58989. for f in x $$MAKEFLAGS; do \
  58990. case $$f in \
  58991. *=* | --[!k]*);; \
  58992. @@ -352,16 +426,15 @@
  58993. else \
  58994. local_target="$$target"; \
  58995. fi; \
  58996. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  58997. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  58998. || eval $$failcom; \
  58999. done; \
  59000. if test "$$dot_seen" = "no"; then \
  59001. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  59002. fi; test -z "$$fail"
  59003. -mostlyclean-recursive clean-recursive distclean-recursive \
  59004. -maintainer-clean-recursive:
  59005. - @failcom='exit 1'; \
  59006. +$(RECURSIVE_CLEAN_TARGETS):
  59007. + @fail= failcom='exit 1'; \
  59008. for f in x $$MAKEFLAGS; do \
  59009. case $$f in \
  59010. *=* | --[!k]*);; \
  59011. @@ -387,16 +460,16 @@
  59012. else \
  59013. local_target="$$target"; \
  59014. fi; \
  59015. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59016. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59017. || eval $$failcom; \
  59018. done && test -z "$$fail"
  59019. tags-recursive:
  59020. list='$(SUBDIRS)'; for subdir in $$list; do \
  59021. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59022. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59023. done
  59024. ctags-recursive:
  59025. list='$(SUBDIRS)'; for subdir in $$list; do \
  59026. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59027. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59028. done
  59029. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  59030. @@ -404,14 +477,14 @@
  59031. unique=`for i in $$list; do \
  59032. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59033. done | \
  59034. - $(AWK) ' { files[$$0] = 1; } \
  59035. - END { for (i in files) print i; }'`; \
  59036. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59037. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59038. mkid -fID $$unique
  59039. tags: TAGS
  59040. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59041. $(TAGS_FILES) $(LISP)
  59042. - tags=; \
  59043. + set x; \
  59044. here=`pwd`; \
  59045. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  59046. include_option=--etags-include; \
  59047. @@ -423,93 +496,114 @@
  59048. list='$(SUBDIRS)'; for subdir in $$list; do \
  59049. if test "$$subdir" = .; then :; else \
  59050. test ! -f $$subdir/TAGS || \
  59051. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  59052. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  59053. fi; \
  59054. done; \
  59055. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59056. unique=`for i in $$list; do \
  59057. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59058. done | \
  59059. - $(AWK) ' { files[$$0] = 1; } \
  59060. - END { for (i in files) print i; }'`; \
  59061. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  59062. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59063. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59064. + shift; \
  59065. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  59066. test -n "$$unique" || unique=$$empty_fix; \
  59067. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59068. - $$tags $$unique; \
  59069. + if test $$# -gt 0; then \
  59070. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59071. + "$$@" $$unique; \
  59072. + else \
  59073. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59074. + $$unique; \
  59075. + fi; \
  59076. fi
  59077. ctags: CTAGS
  59078. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59079. $(TAGS_FILES) $(LISP)
  59080. - tags=; \
  59081. - here=`pwd`; \
  59082. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59083. unique=`for i in $$list; do \
  59084. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59085. done | \
  59086. - $(AWK) ' { files[$$0] = 1; } \
  59087. - END { for (i in files) print i; }'`; \
  59088. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  59089. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59090. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59091. + test -z "$(CTAGS_ARGS)$$unique" \
  59092. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  59093. - $$tags $$unique
  59094. + $$unique
  59095. GTAGS:
  59096. here=`$(am__cd) $(top_builddir) && pwd` \
  59097. - && cd $(top_srcdir) \
  59098. - && gtags -i $(GTAGS_ARGS) $$here
  59099. + && $(am__cd) $(top_srcdir) \
  59100. + && gtags -i $(GTAGS_ARGS) "$$here"
  59101. distclean-tags:
  59102. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  59103. distdir: $(DISTFILES)
  59104. $(am__remove_distdir)
  59105. - mkdir $(distdir)
  59106. - $(mkdir_p) $(distdir)/. $(distdir)/man
  59107. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  59108. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  59109. - list='$(DISTFILES)'; for file in $$list; do \
  59110. - case $$file in \
  59111. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  59112. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  59113. - esac; \
  59114. + test -d "$(distdir)" || mkdir "$(distdir)"
  59115. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59116. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59117. + list='$(DISTFILES)'; \
  59118. + dist_files=`for file in $$list; do echo $$file; done | \
  59119. + sed -e "s|^$$srcdirstrip/||;t" \
  59120. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  59121. + case $$dist_files in \
  59122. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  59123. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  59124. + sort -u` ;; \
  59125. + esac; \
  59126. + for file in $$dist_files; do \
  59127. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  59128. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  59129. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  59130. - dir="/$$dir"; \
  59131. - $(mkdir_p) "$(distdir)$$dir"; \
  59132. - else \
  59133. - dir=''; \
  59134. - fi; \
  59135. if test -d $$d/$$file; then \
  59136. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  59137. + if test -d "$(distdir)/$$file"; then \
  59138. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59139. + fi; \
  59140. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  59141. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  59142. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  59143. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59144. fi; \
  59145. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  59146. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  59147. else \
  59148. - test -f $(distdir)/$$file \
  59149. - || cp -p $$d/$$file $(distdir)/$$file \
  59150. + test -f "$(distdir)/$$file" \
  59151. + || cp -p $$d/$$file "$(distdir)/$$file" \
  59152. || exit 1; \
  59153. fi; \
  59154. done
  59155. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59156. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59157. if test "$$subdir" = .; then :; else \
  59158. test -d "$(distdir)/$$subdir" \
  59159. - || $(mkdir_p) "$(distdir)/$$subdir" \
  59160. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  59161. || exit 1; \
  59162. - distdir=`$(am__cd) $(distdir) && pwd`; \
  59163. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  59164. - (cd $$subdir && \
  59165. + fi; \
  59166. + done
  59167. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59168. + if test "$$subdir" = .; then :; else \
  59169. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  59170. + $(am__relativize); \
  59171. + new_distdir=$$reldir; \
  59172. + dir1=$$subdir; dir2="$(top_distdir)"; \
  59173. + $(am__relativize); \
  59174. + new_top_distdir=$$reldir; \
  59175. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  59176. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  59177. + ($(am__cd) $$subdir && \
  59178. $(MAKE) $(AM_MAKEFLAGS) \
  59179. - top_distdir="$$top_distdir" \
  59180. - distdir="$$distdir/$$subdir" \
  59181. + top_distdir="$$new_top_distdir" \
  59182. + distdir="$$new_distdir" \
  59183. + am__remove_distdir=: \
  59184. + am__skip_length_check=: \
  59185. + am__skip_mode_fix=: \
  59186. distdir) \
  59187. || exit 1; \
  59188. fi; \
  59189. done
  59190. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  59191. + -test -n "$(am__skip_mode_fix)" \
  59192. + || find "$(distdir)" -type d ! -perm -755 \
  59193. + -exec chmod u+rwx,go+rx {} \; -o \
  59194. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  59195. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  59196. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  59197. - || chmod -R a+r $(distdir)
  59198. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  59199. + || chmod -R a+r "$(distdir)"
  59200. dist-gzip: distdir
  59201. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  59202. $(am__remove_distdir)
  59203. @@ -517,6 +611,14 @@
  59204. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  59205. $(am__remove_distdir)
  59206. +dist-lzma: distdir
  59207. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  59208. + $(am__remove_distdir)
  59209. +
  59210. +dist-xz: distdir
  59211. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  59212. + $(am__remove_distdir)
  59213. +
  59214. dist-tarZ: distdir
  59215. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  59216. $(am__remove_distdir)
  59217. @@ -541,13 +643,17 @@
  59218. distcheck: dist
  59219. case '$(DIST_ARCHIVES)' in \
  59220. *.tar.gz*) \
  59221. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  59222. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  59223. *.tar.bz2*) \
  59224. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  59225. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  59226. + *.tar.lzma*) \
  59227. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  59228. + *.tar.xz*) \
  59229. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  59230. *.tar.Z*) \
  59231. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  59232. *.shar.gz*) \
  59233. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  59234. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  59235. *.zip*) \
  59236. unzip $(distdir).zip ;;\
  59237. esac
  59238. @@ -555,9 +661,11 @@
  59239. mkdir $(distdir)/_build
  59240. mkdir $(distdir)/_inst
  59241. chmod a-w $(distdir)
  59242. + test -d $(distdir)/_build || exit 0; \
  59243. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  59244. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  59245. - && cd $(distdir)/_build \
  59246. + && am__cwd=`pwd` \
  59247. + && $(am__cd) $(distdir)/_build \
  59248. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  59249. $(DISTCHECK_CONFIGURE_FLAGS) \
  59250. && $(MAKE) $(AM_MAKEFLAGS) \
  59251. @@ -579,13 +687,15 @@
  59252. && rm -rf "$$dc_destdir" \
  59253. && $(MAKE) $(AM_MAKEFLAGS) dist \
  59254. && rm -rf $(DIST_ARCHIVES) \
  59255. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  59256. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  59257. + && cd "$$am__cwd" \
  59258. + || exit 1
  59259. $(am__remove_distdir)
  59260. @(echo "$(distdir) archives ready for distribution: "; \
  59261. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  59262. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  59263. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  59264. distuninstallcheck:
  59265. - @cd $(distuninstallcheck_dir) \
  59266. + @$(am__cd) '$(distuninstallcheck_dir)' \
  59267. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  59268. || { echo "ERROR: files left after uninstall:" ; \
  59269. if test -n "$(DESTDIR)"; then \
  59270. @@ -608,7 +718,7 @@
  59271. installdirs: installdirs-recursive
  59272. installdirs-am:
  59273. for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \
  59274. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  59275. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  59276. done
  59277. install: install-recursive
  59278. install-exec: install-exec-recursive
  59279. @@ -631,6 +741,7 @@
  59280. distclean-generic:
  59281. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  59282. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  59283. maintainer-clean-generic:
  59284. @echo "This command is intended for maintainers to use"
  59285. @@ -651,18 +762,38 @@
  59286. html: html-recursive
  59287. +html-am:
  59288. +
  59289. info: info-recursive
  59290. info-am:
  59291. install-data-am: install-pkgconfigDATA
  59292. +install-dvi: install-dvi-recursive
  59293. +
  59294. +install-dvi-am:
  59295. +
  59296. install-exec-am: install-binSCRIPTS
  59297. +install-html: install-html-recursive
  59298. +
  59299. +install-html-am:
  59300. +
  59301. install-info: install-info-recursive
  59302. +install-info-am:
  59303. +
  59304. install-man:
  59305. +install-pdf: install-pdf-recursive
  59306. +
  59307. +install-pdf-am:
  59308. +
  59309. +install-ps: install-ps-recursive
  59310. +
  59311. +install-ps-am:
  59312. +
  59313. installcheck-am:
  59314. maintainer-clean: maintainer-clean-recursive
  59315. @@ -683,27 +814,29 @@
  59316. ps-am:
  59317. -uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
  59318. - uninstall-pkgconfigDATA
  59319. +uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
  59320. -uninstall-info: uninstall-info-recursive
  59321. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  59322. + ctags-recursive install-am install-strip tags-recursive
  59323. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  59324. - check-am clean clean-generic clean-libtool clean-recursive \
  59325. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  59326. - dist-shar dist-tarZ dist-zip distcheck distclean \
  59327. - distclean-generic distclean-hdr distclean-libtool \
  59328. - distclean-recursive distclean-tags distcleancheck distdir \
  59329. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  59330. + all all-am am--refresh check check-am clean clean-generic \
  59331. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  59332. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  59333. + distcheck distclean distclean-generic distclean-hdr \
  59334. + distclean-libtool distclean-tags distcleancheck distdir \
  59335. distuninstallcheck dvi dvi-am html html-am info info-am \
  59336. install install-am install-binSCRIPTS install-data \
  59337. - install-data-am install-exec install-exec-am install-info \
  59338. - install-info-am install-man install-pkgconfigDATA \
  59339. - install-strip installcheck installcheck-am installdirs \
  59340. - installdirs-am maintainer-clean maintainer-clean-generic \
  59341. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  59342. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  59343. + install-data-am install-dvi install-dvi-am install-exec \
  59344. + install-exec-am install-html install-html-am install-info \
  59345. + install-info-am install-man install-pdf install-pdf-am \
  59346. + install-pkgconfigDATA install-ps install-ps-am install-strip \
  59347. + installcheck installcheck-am installdirs installdirs-am \
  59348. + maintainer-clean maintainer-clean-generic mostlyclean \
  59349. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  59350. tags tags-recursive uninstall uninstall-am \
  59351. - uninstall-binSCRIPTS uninstall-info-am uninstall-pkgconfigDATA
  59352. + uninstall-binSCRIPTS uninstall-pkgconfigDATA
  59353. +
  59354. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  59355. # Otherwise a system limit (for SysV at least) may be exceeded.
  59356. diff -Nur libXft-2.1.9.orig/man/Makefile.in libXft-2.1.9/man/Makefile.in
  59357. --- libXft-2.1.9.orig/man/Makefile.in 2006-06-03 12:33:30.000000000 +0200
  59358. +++ libXft-2.1.9/man/Makefile.in 2011-02-16 21:01:10.643562917 +0100
  59359. @@ -1,8 +1,9 @@
  59360. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  59361. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  59362. # @configure_input@
  59363. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  59364. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  59365. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  59366. +# Inc.
  59367. # This Makefile.in is free software; the Free Software Foundation
  59368. # gives unlimited permission to copy and/or distribute it,
  59369. # with or without modifications, as long as this notice is preserved.
  59370. @@ -13,15 +14,12 @@
  59371. # PARTICULAR PURPOSE.
  59372. @SET_MAKE@
  59373. -srcdir = @srcdir@
  59374. -top_srcdir = @top_srcdir@
  59375. VPATH = @srcdir@
  59376. pkgdatadir = $(datadir)/@PACKAGE@
  59377. -pkglibdir = $(libdir)/@PACKAGE@
  59378. pkgincludedir = $(includedir)/@PACKAGE@
  59379. -top_builddir = ..
  59380. +pkglibdir = $(libdir)/@PACKAGE@
  59381. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  59382. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  59383. -INSTALL = @INSTALL@
  59384. install_sh_DATA = $(install_sh) -c -m 644
  59385. install_sh_PROGRAM = $(install_sh) -c
  59386. install_sh_SCRIPT = $(install_sh) -c
  59387. @@ -46,8 +44,30 @@
  59388. mkinstalldirs = $(install_sh) -d
  59389. CONFIG_HEADER = $(top_builddir)/config.h
  59390. CONFIG_CLEAN_FILES = xft-config.1 Xft.3
  59391. +CONFIG_CLEAN_VPATH_FILES =
  59392. SOURCES =
  59393. DIST_SOURCES =
  59394. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  59395. +am__vpath_adj = case $$p in \
  59396. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  59397. + *) f=$$p;; \
  59398. + esac;
  59399. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  59400. +am__install_max = 40
  59401. +am__nobase_strip_setup = \
  59402. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  59403. +am__nobase_strip = \
  59404. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  59405. +am__nobase_list = $(am__nobase_strip_setup); \
  59406. + for p in $$list; do echo "$$p $$p"; done | \
  59407. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  59408. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  59409. + if (++n[$$2] == $(am__install_max)) \
  59410. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  59411. + END { for (dir in files) print dir, files[dir] }'
  59412. +am__base_list = \
  59413. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  59414. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  59415. man1dir = $(mandir)/man1
  59416. am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)"
  59417. man3dir = $(mandir)/man3
  59418. @@ -55,8 +75,6 @@
  59419. MANS = $(dist_man_MANS)
  59420. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  59421. ACLOCAL = @ACLOCAL@
  59422. -AMDEP_FALSE = @AMDEP_FALSE@
  59423. -AMDEP_TRUE = @AMDEP_TRUE@
  59424. AMTAR = @AMTAR@
  59425. AR = @AR@
  59426. AUTOCONF = @AUTOCONF@
  59427. @@ -68,67 +86,69 @@
  59428. CFLAGS = @CFLAGS@
  59429. CPP = @CPP@
  59430. CPPFLAGS = @CPPFLAGS@
  59431. -CXX = @CXX@
  59432. -CXXCPP = @CXXCPP@
  59433. -CXXDEPMODE = @CXXDEPMODE@
  59434. -CXXFLAGS = @CXXFLAGS@
  59435. CYGPATH_W = @CYGPATH_W@
  59436. DEFS = @DEFS@
  59437. DEPDIR = @DEPDIR@
  59438. -ECHO = @ECHO@
  59439. +DSYMUTIL = @DSYMUTIL@
  59440. +DUMPBIN = @DUMPBIN@
  59441. ECHO_C = @ECHO_C@
  59442. ECHO_N = @ECHO_N@
  59443. ECHO_T = @ECHO_T@
  59444. EGREP = @EGREP@
  59445. EXEEXT = @EXEEXT@
  59446. -F77 = @F77@
  59447. -FFLAGS = @FFLAGS@
  59448. +FGREP = @FGREP@
  59449. FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
  59450. FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
  59451. FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
  59452. FREETYPE_LIBS = @FREETYPE_LIBS@
  59453. +GREP = @GREP@
  59454. +INSTALL = @INSTALL@
  59455. INSTALL_DATA = @INSTALL_DATA@
  59456. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  59457. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  59458. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  59459. +LD = @LD@
  59460. LDFLAGS = @LDFLAGS@
  59461. LIBOBJS = @LIBOBJS@
  59462. LIBS = @LIBS@
  59463. LIBTOOL = @LIBTOOL@
  59464. +LIPO = @LIPO@
  59465. LN_S = @LN_S@
  59466. LTLIBOBJS = @LTLIBOBJS@
  59467. MAINT = @MAINT@
  59468. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  59469. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  59470. MAKEINFO = @MAKEINFO@
  59471. +MKDIR_P = @MKDIR_P@
  59472. +NM = @NM@
  59473. +NMEDIT = @NMEDIT@
  59474. +OBJDUMP = @OBJDUMP@
  59475. OBJEXT = @OBJEXT@
  59476. +OTOOL = @OTOOL@
  59477. +OTOOL64 = @OTOOL64@
  59478. PACKAGE = @PACKAGE@
  59479. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  59480. PACKAGE_NAME = @PACKAGE_NAME@
  59481. PACKAGE_STRING = @PACKAGE_STRING@
  59482. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  59483. +PACKAGE_URL = @PACKAGE_URL@
  59484. PACKAGE_VERSION = @PACKAGE_VERSION@
  59485. PATH_SEPARATOR = @PATH_SEPARATOR@
  59486. PKG_CONFIG = @PKG_CONFIG@
  59487. RANLIB = @RANLIB@
  59488. +SED = @SED@
  59489. SET_MAKE = @SET_MAKE@
  59490. SHELL = @SHELL@
  59491. STRIP = @STRIP@
  59492. VERSION = @VERSION@
  59493. WARN_CFLAGS = @WARN_CFLAGS@
  59494. +XMKMF = @XMKMF@
  59495. XRENDER_CFLAGS = @XRENDER_CFLAGS@
  59496. XRENDER_LIBS = @XRENDER_LIBS@
  59497. -ac_ct_AR = @ac_ct_AR@
  59498. +abs_builddir = @abs_builddir@
  59499. +abs_srcdir = @abs_srcdir@
  59500. +abs_top_builddir = @abs_top_builddir@
  59501. +abs_top_srcdir = @abs_top_srcdir@
  59502. ac_ct_CC = @ac_ct_CC@
  59503. -ac_ct_CXX = @ac_ct_CXX@
  59504. -ac_ct_F77 = @ac_ct_F77@
  59505. -ac_ct_RANLIB = @ac_ct_RANLIB@
  59506. -ac_ct_STRIP = @ac_ct_STRIP@
  59507. -ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
  59508. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  59509. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  59510. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  59511. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  59512. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  59513. am__include = @am__include@
  59514. am__leading_dot = @am__leading_dot@
  59515. am__quote = @am__quote@
  59516. @@ -140,7 +160,11 @@
  59517. build_cpu = @build_cpu@
  59518. build_os = @build_os@
  59519. build_vendor = @build_vendor@
  59520. +builddir = @builddir@
  59521. datadir = @datadir@
  59522. +datarootdir = @datarootdir@
  59523. +docdir = @docdir@
  59524. +dvidir = @dvidir@
  59525. exec_prefix = @exec_prefix@
  59526. ft_config = @ft_config@
  59527. host = @host@
  59528. @@ -148,21 +172,30 @@
  59529. host_cpu = @host_cpu@
  59530. host_os = @host_os@
  59531. host_vendor = @host_vendor@
  59532. +htmldir = @htmldir@
  59533. includedir = @includedir@
  59534. infodir = @infodir@
  59535. install_sh = @install_sh@
  59536. libdir = @libdir@
  59537. libexecdir = @libexecdir@
  59538. +localedir = @localedir@
  59539. localstatedir = @localstatedir@
  59540. +lt_ECHO = @lt_ECHO@
  59541. mandir = @mandir@
  59542. mkdir_p = @mkdir_p@
  59543. oldincludedir = @oldincludedir@
  59544. +pdfdir = @pdfdir@
  59545. prefix = @prefix@
  59546. program_transform_name = @program_transform_name@
  59547. +psdir = @psdir@
  59548. sbindir = @sbindir@
  59549. sharedstatedir = @sharedstatedir@
  59550. +srcdir = @srcdir@
  59551. sysconfdir = @sysconfdir@
  59552. target_alias = @target_alias@
  59553. +top_build_prefix = @top_build_prefix@
  59554. +top_builddir = @top_builddir@
  59555. +top_srcdir = @top_srcdir@
  59556. dist_man_MANS = Xft.3 xft-config.1
  59557. EXTRA_DIST = xft-config.1.in Xft.3.in
  59558. all: all-am
  59559. @@ -172,14 +205,14 @@
  59560. @for dep in $?; do \
  59561. case '$(am__configure_deps)' in \
  59562. *$$dep*) \
  59563. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  59564. - && exit 0; \
  59565. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  59566. + && { if test -f $@; then exit 0; else break; fi; }; \
  59567. exit 1;; \
  59568. esac; \
  59569. done; \
  59570. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
  59571. - cd $(top_srcdir) && \
  59572. - $(AUTOMAKE) --gnu man/Makefile
  59573. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
  59574. + $(am__cd) $(top_srcdir) && \
  59575. + $(AUTOMAKE) --gnu man/Makefile
  59576. .PRECIOUS: Makefile
  59577. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  59578. @case '$?' in \
  59579. @@ -197,6 +230,7 @@
  59580. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  59581. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  59582. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  59583. +$(am__aclocal_m4_deps):
  59584. xft-config.1: $(top_builddir)/config.status $(srcdir)/xft-config.1.in
  59585. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  59586. Xft.3: $(top_builddir)/config.status $(srcdir)/Xft.3.in
  59587. @@ -207,100 +241,82 @@
  59588. clean-libtool:
  59589. -rm -rf .libs _libs
  59590. -
  59591. -distclean-libtool:
  59592. - -rm -f libtool
  59593. -uninstall-info-am:
  59594. -install-man1: $(man1_MANS) $(man_MANS)
  59595. +install-man1: $(dist_man_MANS)
  59596. @$(NORMAL_INSTALL)
  59597. - test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
  59598. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  59599. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59600. - for i in $$l2; do \
  59601. - case "$$i" in \
  59602. - *.1*) list="$$list $$i" ;; \
  59603. - esac; \
  59604. + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
  59605. + @list=''; test -n "$(man1dir)" || exit 0; \
  59606. + { for i in $$list; do echo "$$i"; done; \
  59607. + l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59608. + sed -n '/\.1[a-z]*$$/p'; \
  59609. + } | while read p; do \
  59610. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  59611. + echo "$$d$$p"; echo "$$p"; \
  59612. + done | \
  59613. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  59614. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  59615. + sed 'N;N;s,\n, ,g' | { \
  59616. + list=; while read file base inst; do \
  59617. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  59618. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  59619. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
  59620. + fi; \
  59621. done; \
  59622. - for i in $$list; do \
  59623. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  59624. - else file=$$i; fi; \
  59625. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59626. - case "$$ext" in \
  59627. - 1*) ;; \
  59628. - *) ext='1' ;; \
  59629. - esac; \
  59630. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59631. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59632. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59633. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  59634. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
  59635. - done
  59636. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  59637. + while read files; do \
  59638. + test -z "$$files" || { \
  59639. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
  59640. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
  59641. + done; }
  59642. +
  59643. uninstall-man1:
  59644. @$(NORMAL_UNINSTALL)
  59645. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  59646. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59647. - for i in $$l2; do \
  59648. - case "$$i" in \
  59649. - *.1*) list="$$list $$i" ;; \
  59650. - esac; \
  59651. - done; \
  59652. - for i in $$list; do \
  59653. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59654. - case "$$ext" in \
  59655. - 1*) ;; \
  59656. - *) ext='1' ;; \
  59657. - esac; \
  59658. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59659. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59660. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59661. - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
  59662. - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
  59663. - done
  59664. -install-man3: $(man3_MANS) $(man_MANS)
  59665. + @list=''; test -n "$(man1dir)" || exit 0; \
  59666. + files=`{ for i in $$list; do echo "$$i"; done; \
  59667. + l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59668. + sed -n '/\.1[a-z]*$$/p'; \
  59669. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  59670. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  59671. + test -z "$$files" || { \
  59672. + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
  59673. + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
  59674. +install-man3: $(dist_man_MANS)
  59675. @$(NORMAL_INSTALL)
  59676. - test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
  59677. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  59678. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59679. - for i in $$l2; do \
  59680. - case "$$i" in \
  59681. - *.3*) list="$$list $$i" ;; \
  59682. - esac; \
  59683. + test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  59684. + @list=''; test -n "$(man3dir)" || exit 0; \
  59685. + { for i in $$list; do echo "$$i"; done; \
  59686. + l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59687. + sed -n '/\.3[a-z]*$$/p'; \
  59688. + } | while read p; do \
  59689. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  59690. + echo "$$d$$p"; echo "$$p"; \
  59691. + done | \
  59692. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  59693. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  59694. + sed 'N;N;s,\n, ,g' | { \
  59695. + list=; while read file base inst; do \
  59696. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  59697. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  59698. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  59699. + fi; \
  59700. done; \
  59701. - for i in $$list; do \
  59702. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  59703. - else file=$$i; fi; \
  59704. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59705. - case "$$ext" in \
  59706. - 3*) ;; \
  59707. - *) ext='3' ;; \
  59708. - esac; \
  59709. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59710. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59711. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59712. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  59713. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  59714. - done
  59715. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  59716. + while read files; do \
  59717. + test -z "$$files" || { \
  59718. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  59719. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  59720. + done; }
  59721. +
  59722. uninstall-man3:
  59723. @$(NORMAL_UNINSTALL)
  59724. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  59725. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59726. - for i in $$l2; do \
  59727. - case "$$i" in \
  59728. - *.3*) list="$$list $$i" ;; \
  59729. - esac; \
  59730. - done; \
  59731. - for i in $$list; do \
  59732. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59733. - case "$$ext" in \
  59734. - 3*) ;; \
  59735. - *) ext='3' ;; \
  59736. - esac; \
  59737. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59738. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59739. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59740. - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  59741. - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  59742. - done
  59743. + @list=''; test -n "$(man3dir)" || exit 0; \
  59744. + files=`{ for i in $$list; do echo "$$i"; done; \
  59745. + l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59746. + sed -n '/\.3[a-z]*$$/p'; \
  59747. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  59748. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  59749. + test -z "$$files" || { \
  59750. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  59751. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  59752. tags: TAGS
  59753. TAGS:
  59754. @@ -309,29 +325,45 @@
  59755. distdir: $(DISTFILES)
  59756. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  59757. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  59758. - list='$(DISTFILES)'; for file in $$list; do \
  59759. - case $$file in \
  59760. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  59761. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  59762. - esac; \
  59763. + @list='$(MANS)'; if test -n "$$list"; then \
  59764. + list=`for p in $$list; do \
  59765. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  59766. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  59767. + if test -n "$$list" && \
  59768. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  59769. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  59770. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  59771. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  59772. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  59773. + exit 1; \
  59774. + else :; fi; \
  59775. + else :; fi
  59776. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59777. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59778. + list='$(DISTFILES)'; \
  59779. + dist_files=`for file in $$list; do echo $$file; done | \
  59780. + sed -e "s|^$$srcdirstrip/||;t" \
  59781. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  59782. + case $$dist_files in \
  59783. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  59784. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  59785. + sort -u` ;; \
  59786. + esac; \
  59787. + for file in $$dist_files; do \
  59788. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  59789. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  59790. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  59791. - dir="/$$dir"; \
  59792. - $(mkdir_p) "$(distdir)$$dir"; \
  59793. - else \
  59794. - dir=''; \
  59795. - fi; \
  59796. if test -d $$d/$$file; then \
  59797. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  59798. + if test -d "$(distdir)/$$file"; then \
  59799. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59800. + fi; \
  59801. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  59802. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  59803. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  59804. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59805. fi; \
  59806. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  59807. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  59808. else \
  59809. - test -f $(distdir)/$$file \
  59810. - || cp -p $$d/$$file $(distdir)/$$file \
  59811. + test -f "$(distdir)/$$file" \
  59812. + || cp -p $$d/$$file "$(distdir)/$$file" \
  59813. || exit 1; \
  59814. fi; \
  59815. done
  59816. @@ -340,7 +372,7 @@
  59817. all-am: Makefile $(MANS)
  59818. installdirs:
  59819. for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)"; do \
  59820. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  59821. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  59822. done
  59823. install: install-am
  59824. install-exec: install-exec-am
  59825. @@ -362,6 +394,7 @@
  59826. distclean-generic:
  59827. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  59828. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  59829. maintainer-clean-generic:
  59830. @echo "This command is intended for maintainers to use"
  59831. @@ -372,7 +405,7 @@
  59832. distclean: distclean-am
  59833. -rm -f Makefile
  59834. -distclean-am: clean-am distclean-generic distclean-libtool
  59835. +distclean-am: clean-am distclean-generic
  59836. dvi: dvi-am
  59837. @@ -380,18 +413,38 @@
  59838. html: html-am
  59839. +html-am:
  59840. +
  59841. info: info-am
  59842. info-am:
  59843. install-data-am: install-man
  59844. +install-dvi: install-dvi-am
  59845. +
  59846. +install-dvi-am:
  59847. +
  59848. install-exec-am:
  59849. +install-html: install-html-am
  59850. +
  59851. +install-html-am:
  59852. +
  59853. install-info: install-info-am
  59854. +install-info-am:
  59855. +
  59856. install-man: install-man1 install-man3
  59857. +install-pdf: install-pdf-am
  59858. +
  59859. +install-pdf-am:
  59860. +
  59861. +install-ps: install-ps-am
  59862. +
  59863. +install-ps-am:
  59864. +
  59865. installcheck-am:
  59866. maintainer-clean: maintainer-clean-am
  59867. @@ -410,20 +463,25 @@
  59868. ps-am:
  59869. -uninstall-am: uninstall-info-am uninstall-man
  59870. +uninstall-am: uninstall-man
  59871. uninstall-man: uninstall-man1 uninstall-man3
  59872. +.MAKE: install-am install-strip
  59873. +
  59874. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  59875. distclean distclean-generic distclean-libtool distdir dvi \
  59876. dvi-am html html-am info info-am install install-am \
  59877. - install-data install-data-am install-exec install-exec-am \
  59878. + install-data install-data-am install-dvi install-dvi-am \
  59879. + install-exec install-exec-am install-html install-html-am \
  59880. install-info install-info-am install-man install-man1 \
  59881. - install-man3 install-strip installcheck installcheck-am \
  59882. + install-man3 install-pdf install-pdf-am install-ps \
  59883. + install-ps-am install-strip installcheck installcheck-am \
  59884. installdirs maintainer-clean maintainer-clean-generic \
  59885. mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  59886. - ps ps-am uninstall uninstall-am uninstall-info-am \
  59887. - uninstall-man uninstall-man1 uninstall-man3
  59888. + ps ps-am uninstall uninstall-am uninstall-man uninstall-man1 \
  59889. + uninstall-man3
  59890. +
  59891. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  59892. # Otherwise a system limit (for SysV at least) may be exceeded.
  59893. diff -Nur libXft-2.1.9.orig/missing libXft-2.1.9/missing
  59894. --- libXft-2.1.9.orig/missing 2006-06-03 12:33:30.000000000 +0200
  59895. +++ libXft-2.1.9/missing 2011-02-16 21:01:10.593554810 +0100
  59896. @@ -1,10 +1,10 @@
  59897. #! /bin/sh
  59898. # Common stub for a few missing GNU programs while installing.
  59899. -scriptversion=2005-06-08.21
  59900. +scriptversion=2009-04-28.21; # UTC
  59901. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
  59902. -# Free Software Foundation, Inc.
  59903. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  59904. +# 2008, 2009 Free Software Foundation, Inc.
  59905. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  59906. # This program is free software; you can redistribute it and/or modify
  59907. @@ -18,9 +18,7 @@
  59908. # GNU General Public License for more details.
  59909. # You should have received a copy of the GNU General Public License
  59910. -# along with this program; if not, write to the Free Software
  59911. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  59912. -# 02110-1301, USA.
  59913. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  59914. # As a special exception to the GNU General Public License, if you
  59915. # distribute this file as part of a program that contains a
  59916. @@ -33,6 +31,8 @@
  59917. fi
  59918. run=:
  59919. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  59920. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  59921. # In the cases where this matters, `missing' is being run in the
  59922. # srcdir already.
  59923. @@ -44,7 +44,7 @@
  59924. msg="missing on your system"
  59925. -case "$1" in
  59926. +case $1 in
  59927. --run)
  59928. # Try to run requested program, and just exit if it succeeds.
  59929. run=
  59930. @@ -77,6 +77,7 @@
  59931. aclocal touch file \`aclocal.m4'
  59932. autoconf touch file \`configure'
  59933. autoheader touch file \`config.h.in'
  59934. + autom4te touch the output file, or create a stub one
  59935. automake touch all \`Makefile.in' files
  59936. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  59937. flex create \`lex.yy.c', if possible, from existing .c
  59938. @@ -86,6 +87,9 @@
  59939. tar try tar, gnutar, gtar, then tar without non-portable flags
  59940. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  59941. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  59942. +\`g' are ignored when checking the name.
  59943. +
  59944. Send bug reports to <bug-automake@gnu.org>."
  59945. exit $?
  59946. ;;
  59947. @@ -103,15 +107,22 @@
  59948. esac
  59949. +# normalize program name to check for.
  59950. +program=`echo "$1" | sed '
  59951. + s/^gnu-//; t
  59952. + s/^gnu//; t
  59953. + s/^g//; t'`
  59954. +
  59955. # Now exit if we have it, but it failed. Also exit now if we
  59956. # don't have it and --version was passed (most likely to detect
  59957. -# the program).
  59958. -case "$1" in
  59959. - lex|yacc)
  59960. +# the program). This is about non-GNU programs, so use $1 not
  59961. +# $program.
  59962. +case $1 in
  59963. + lex*|yacc*)
  59964. # Not GNU programs, they don't have --version.
  59965. ;;
  59966. - tar)
  59967. + tar*)
  59968. if test -n "$run"; then
  59969. echo 1>&2 "ERROR: \`tar' requires --run"
  59970. exit 1
  59971. @@ -135,7 +146,7 @@
  59972. # If it does not exist, or fails to run (possibly an outdated version),
  59973. # try to emulate it.
  59974. -case "$1" in
  59975. +case $program in
  59976. aclocal*)
  59977. echo 1>&2 "\
  59978. WARNING: \`$1' is $msg. You should only need it if
  59979. @@ -145,7 +156,7 @@
  59980. touch aclocal.m4
  59981. ;;
  59982. - autoconf)
  59983. + autoconf*)
  59984. echo 1>&2 "\
  59985. WARNING: \`$1' is $msg. You should only need it if
  59986. you modified \`${configure_ac}'. You might want to install the
  59987. @@ -154,7 +165,7 @@
  59988. touch configure
  59989. ;;
  59990. - autoheader)
  59991. + autoheader*)
  59992. echo 1>&2 "\
  59993. WARNING: \`$1' is $msg. You should only need it if
  59994. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  59995. @@ -164,7 +175,7 @@
  59996. test -z "$files" && files="config.h"
  59997. touch_files=
  59998. for f in $files; do
  59999. - case "$f" in
  60000. + case $f in
  60001. *:*) touch_files="$touch_files "`echo "$f" |
  60002. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  60003. *) touch_files="$touch_files $f.in";;
  60004. @@ -184,7 +195,7 @@
  60005. while read f; do touch "$f"; done
  60006. ;;
  60007. - autom4te)
  60008. + autom4te*)
  60009. echo 1>&2 "\
  60010. WARNING: \`$1' is needed, but is $msg.
  60011. You might have modified some files without having the
  60012. @@ -192,8 +203,8 @@
  60013. You can get \`$1' as part of \`Autoconf' from any GNU
  60014. archive site."
  60015. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  60016. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  60017. + file=`echo "$*" | sed -n "$sed_output"`
  60018. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60019. if test -f "$file"; then
  60020. touch $file
  60021. else
  60022. @@ -207,80 +218,78 @@
  60023. fi
  60024. ;;
  60025. - bison|yacc)
  60026. + bison*|yacc*)
  60027. echo 1>&2 "\
  60028. WARNING: \`$1' $msg. You should only need it if
  60029. you modified a \`.y' file. You may need the \`Bison' package
  60030. in order for those modifications to take effect. You can get
  60031. \`Bison' from any GNU archive site."
  60032. rm -f y.tab.c y.tab.h
  60033. - if [ $# -ne 1 ]; then
  60034. + if test $# -ne 1; then
  60035. eval LASTARG="\${$#}"
  60036. - case "$LASTARG" in
  60037. + case $LASTARG in
  60038. *.y)
  60039. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  60040. - if [ -f "$SRCFILE" ]; then
  60041. + if test -f "$SRCFILE"; then
  60042. cp "$SRCFILE" y.tab.c
  60043. fi
  60044. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  60045. - if [ -f "$SRCFILE" ]; then
  60046. + if test -f "$SRCFILE"; then
  60047. cp "$SRCFILE" y.tab.h
  60048. fi
  60049. ;;
  60050. esac
  60051. fi
  60052. - if [ ! -f y.tab.h ]; then
  60053. + if test ! -f y.tab.h; then
  60054. echo >y.tab.h
  60055. fi
  60056. - if [ ! -f y.tab.c ]; then
  60057. + if test ! -f y.tab.c; then
  60058. echo 'main() { return 0; }' >y.tab.c
  60059. fi
  60060. ;;
  60061. - lex|flex)
  60062. + lex*|flex*)
  60063. echo 1>&2 "\
  60064. WARNING: \`$1' is $msg. You should only need it if
  60065. you modified a \`.l' file. You may need the \`Flex' package
  60066. in order for those modifications to take effect. You can get
  60067. \`Flex' from any GNU archive site."
  60068. rm -f lex.yy.c
  60069. - if [ $# -ne 1 ]; then
  60070. + if test $# -ne 1; then
  60071. eval LASTARG="\${$#}"
  60072. - case "$LASTARG" in
  60073. + case $LASTARG in
  60074. *.l)
  60075. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  60076. - if [ -f "$SRCFILE" ]; then
  60077. + if test -f "$SRCFILE"; then
  60078. cp "$SRCFILE" lex.yy.c
  60079. fi
  60080. ;;
  60081. esac
  60082. fi
  60083. - if [ ! -f lex.yy.c ]; then
  60084. + if test ! -f lex.yy.c; then
  60085. echo 'main() { return 0; }' >lex.yy.c
  60086. fi
  60087. ;;
  60088. - help2man)
  60089. + help2man*)
  60090. echo 1>&2 "\
  60091. WARNING: \`$1' is $msg. You should only need it if
  60092. you modified a dependency of a manual page. You may need the
  60093. \`Help2man' package in order for those modifications to take
  60094. effect. You can get \`Help2man' from any GNU archive site."
  60095. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  60096. - if test -z "$file"; then
  60097. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  60098. - fi
  60099. - if [ -f "$file" ]; then
  60100. + file=`echo "$*" | sed -n "$sed_output"`
  60101. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60102. + if test -f "$file"; then
  60103. touch $file
  60104. else
  60105. test -z "$file" || exec >$file
  60106. echo ".ab help2man is required to generate this page"
  60107. - exit 1
  60108. + exit $?
  60109. fi
  60110. ;;
  60111. - makeinfo)
  60112. + makeinfo*)
  60113. echo 1>&2 "\
  60114. WARNING: \`$1' is $msg. You should only need it if
  60115. you modified a \`.texi' or \`.texinfo' file, or any other file
  60116. @@ -289,11 +298,17 @@
  60117. DU, IRIX). You might want to install the \`Texinfo' package or
  60118. the \`GNU make' package. Grab either from any GNU archive site."
  60119. # The file to touch is that specified with -o ...
  60120. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  60121. + file=`echo "$*" | sed -n "$sed_output"`
  60122. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60123. if test -z "$file"; then
  60124. # ... or it is the one specified with @setfilename ...
  60125. infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  60126. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  60127. + file=`sed -n '
  60128. + /^@setfilename/{
  60129. + s/.* \([^ ]*\) *$/\1/
  60130. + p
  60131. + q
  60132. + }' $infile`
  60133. # ... or it is derived from the source name (dir/f.texi becomes f.info)
  60134. test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  60135. fi
  60136. @@ -303,7 +318,7 @@
  60137. touch $file
  60138. ;;
  60139. - tar)
  60140. + tar*)
  60141. shift
  60142. # We have already tried tar in the generic part.
  60143. @@ -317,13 +332,13 @@
  60144. fi
  60145. firstarg="$1"
  60146. if shift; then
  60147. - case "$firstarg" in
  60148. + case $firstarg in
  60149. *o*)
  60150. firstarg=`echo "$firstarg" | sed s/o//`
  60151. tar "$firstarg" "$@" && exit 0
  60152. ;;
  60153. esac
  60154. - case "$firstarg" in
  60155. + case $firstarg in
  60156. *h*)
  60157. firstarg=`echo "$firstarg" | sed s/h//`
  60158. tar "$firstarg" "$@" && exit 0
  60159. @@ -356,5 +371,6 @@
  60160. # eval: (add-hook 'write-file-hooks 'time-stamp)
  60161. # time-stamp-start: "scriptversion="
  60162. # time-stamp-format: "%:y-%02m-%02d.%02H"
  60163. -# time-stamp-end: "$"
  60164. +# time-stamp-time-zone: "UTC"
  60165. +# time-stamp-end: "; # UTC"
  60166. # End:
  60167. diff -Nur libXft-2.1.9.orig/src/Makefile.in libXft-2.1.9/src/Makefile.in
  60168. --- libXft-2.1.9.orig/src/Makefile.in 2006-06-03 12:33:30.000000000 +0200
  60169. +++ libXft-2.1.9/src/Makefile.in 2011-02-16 21:01:10.693562975 +0100
  60170. @@ -1,8 +1,9 @@
  60171. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  60172. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60173. # @configure_input@
  60174. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60175. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  60176. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60177. +# Inc.
  60178. # This Makefile.in is free software; the Free Software Foundation
  60179. # gives unlimited permission to copy and/or distribute it,
  60180. # with or without modifications, as long as this notice is preserved.
  60181. @@ -15,15 +16,12 @@
  60182. @SET_MAKE@
  60183. -srcdir = @srcdir@
  60184. -top_srcdir = @top_srcdir@
  60185. VPATH = @srcdir@
  60186. pkgdatadir = $(datadir)/@PACKAGE@
  60187. -pkglibdir = $(libdir)/@PACKAGE@
  60188. pkgincludedir = $(includedir)/@PACKAGE@
  60189. -top_builddir = ..
  60190. +pkglibdir = $(libdir)/@PACKAGE@
  60191. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60192. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60193. -INSTALL = @INSTALL@
  60194. install_sh_DATA = $(install_sh) -c -m 644
  60195. install_sh_PROGRAM = $(install_sh) -c
  60196. install_sh_SCRIPT = $(install_sh) -c
  60197. @@ -47,15 +45,30 @@
  60198. mkinstalldirs = $(install_sh) -d
  60199. CONFIG_HEADER = $(top_builddir)/config.h
  60200. CONFIG_CLEAN_FILES =
  60201. +CONFIG_CLEAN_VPATH_FILES =
  60202. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  60203. am__vpath_adj = case $$p in \
  60204. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  60205. *) f=$$p;; \
  60206. esac;
  60207. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  60208. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  60209. +am__install_max = 40
  60210. +am__nobase_strip_setup = \
  60211. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  60212. +am__nobase_strip = \
  60213. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  60214. +am__nobase_list = $(am__nobase_strip_setup); \
  60215. + for p in $$list; do echo "$$p $$p"; done | \
  60216. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  60217. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  60218. + if (++n[$$2] == $(am__install_max)) \
  60219. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  60220. + END { for (dir in files) print dir, files[dir] }'
  60221. +am__base_list = \
  60222. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  60223. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  60224. am__installdirs = "$(DESTDIR)$(libdir)" \
  60225. "$(DESTDIR)$(libXftincludedir)"
  60226. -libLTLIBRARIES_INSTALL = $(INSTALL)
  60227. LTLIBRARIES = $(lib_LTLIBRARIES)
  60228. libXft_la_DEPENDENCIES =
  60229. am_libXft_la_OBJECTS = xftcolor.lo xftcore.lo xftdbg.lo xftdpy.lo \
  60230. @@ -63,27 +76,29 @@
  60231. xftinit.lo xftlist.lo xftname.lo xftrender.lo xftstr.lo \
  60232. xftswap.lo xftxlfd.lo
  60233. libXft_la_OBJECTS = $(am_libXft_la_OBJECTS)
  60234. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  60235. +libXft_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  60236. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  60237. + $(libXft_la_LDFLAGS) $(LDFLAGS) -o $@
  60238. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  60239. depcomp = $(SHELL) $(top_srcdir)/depcomp
  60240. am__depfiles_maybe = depfiles
  60241. +am__mv = mv -f
  60242. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  60243. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60244. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  60245. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  60246. - $(AM_CFLAGS) $(CFLAGS)
  60247. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60248. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  60249. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60250. CCLD = $(CC)
  60251. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  60252. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  60253. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60254. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  60255. + $(LDFLAGS) -o $@
  60256. SOURCES = $(libXft_la_SOURCES)
  60257. DIST_SOURCES = $(libXft_la_SOURCES)
  60258. -libXftincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  60259. HEADERS = $(libXftinclude_HEADERS)
  60260. ETAGS = etags
  60261. CTAGS = ctags
  60262. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  60263. ACLOCAL = @ACLOCAL@
  60264. -AMDEP_FALSE = @AMDEP_FALSE@
  60265. -AMDEP_TRUE = @AMDEP_TRUE@
  60266. AMTAR = @AMTAR@
  60267. AR = @AR@
  60268. AUTOCONF = @AUTOCONF@
  60269. @@ -95,67 +110,69 @@
  60270. CFLAGS = @CFLAGS@
  60271. CPP = @CPP@
  60272. CPPFLAGS = @CPPFLAGS@
  60273. -CXX = @CXX@
  60274. -CXXCPP = @CXXCPP@
  60275. -CXXDEPMODE = @CXXDEPMODE@
  60276. -CXXFLAGS = @CXXFLAGS@
  60277. CYGPATH_W = @CYGPATH_W@
  60278. DEFS = @DEFS@
  60279. DEPDIR = @DEPDIR@
  60280. -ECHO = @ECHO@
  60281. +DSYMUTIL = @DSYMUTIL@
  60282. +DUMPBIN = @DUMPBIN@
  60283. ECHO_C = @ECHO_C@
  60284. ECHO_N = @ECHO_N@
  60285. ECHO_T = @ECHO_T@
  60286. EGREP = @EGREP@
  60287. EXEEXT = @EXEEXT@
  60288. -F77 = @F77@
  60289. -FFLAGS = @FFLAGS@
  60290. +FGREP = @FGREP@
  60291. FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
  60292. FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
  60293. FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
  60294. FREETYPE_LIBS = @FREETYPE_LIBS@
  60295. +GREP = @GREP@
  60296. +INSTALL = @INSTALL@
  60297. INSTALL_DATA = @INSTALL_DATA@
  60298. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  60299. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  60300. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  60301. +LD = @LD@
  60302. LDFLAGS = @LDFLAGS@
  60303. LIBOBJS = @LIBOBJS@
  60304. LIBS = @LIBS@
  60305. LIBTOOL = @LIBTOOL@
  60306. +LIPO = @LIPO@
  60307. LN_S = @LN_S@
  60308. LTLIBOBJS = @LTLIBOBJS@
  60309. MAINT = @MAINT@
  60310. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  60311. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  60312. MAKEINFO = @MAKEINFO@
  60313. +MKDIR_P = @MKDIR_P@
  60314. +NM = @NM@
  60315. +NMEDIT = @NMEDIT@
  60316. +OBJDUMP = @OBJDUMP@
  60317. OBJEXT = @OBJEXT@
  60318. +OTOOL = @OTOOL@
  60319. +OTOOL64 = @OTOOL64@
  60320. PACKAGE = @PACKAGE@
  60321. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  60322. PACKAGE_NAME = @PACKAGE_NAME@
  60323. PACKAGE_STRING = @PACKAGE_STRING@
  60324. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  60325. +PACKAGE_URL = @PACKAGE_URL@
  60326. PACKAGE_VERSION = @PACKAGE_VERSION@
  60327. PATH_SEPARATOR = @PATH_SEPARATOR@
  60328. PKG_CONFIG = @PKG_CONFIG@
  60329. RANLIB = @RANLIB@
  60330. +SED = @SED@
  60331. SET_MAKE = @SET_MAKE@
  60332. SHELL = @SHELL@
  60333. STRIP = @STRIP@
  60334. VERSION = @VERSION@
  60335. WARN_CFLAGS = @WARN_CFLAGS@
  60336. +XMKMF = @XMKMF@
  60337. XRENDER_CFLAGS = @XRENDER_CFLAGS@
  60338. XRENDER_LIBS = @XRENDER_LIBS@
  60339. -ac_ct_AR = @ac_ct_AR@
  60340. +abs_builddir = @abs_builddir@
  60341. +abs_srcdir = @abs_srcdir@
  60342. +abs_top_builddir = @abs_top_builddir@
  60343. +abs_top_srcdir = @abs_top_srcdir@
  60344. ac_ct_CC = @ac_ct_CC@
  60345. -ac_ct_CXX = @ac_ct_CXX@
  60346. -ac_ct_F77 = @ac_ct_F77@
  60347. -ac_ct_RANLIB = @ac_ct_RANLIB@
  60348. -ac_ct_STRIP = @ac_ct_STRIP@
  60349. -ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
  60350. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  60351. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  60352. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  60353. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  60354. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  60355. am__include = @am__include@
  60356. am__leading_dot = @am__leading_dot@
  60357. am__quote = @am__quote@
  60358. @@ -167,7 +184,11 @@
  60359. build_cpu = @build_cpu@
  60360. build_os = @build_os@
  60361. build_vendor = @build_vendor@
  60362. +builddir = @builddir@
  60363. datadir = @datadir@
  60364. +datarootdir = @datarootdir@
  60365. +docdir = @docdir@
  60366. +dvidir = @dvidir@
  60367. exec_prefix = @exec_prefix@
  60368. ft_config = @ft_config@
  60369. host = @host@
  60370. @@ -175,21 +196,30 @@
  60371. host_cpu = @host_cpu@
  60372. host_os = @host_os@
  60373. host_vendor = @host_vendor@
  60374. +htmldir = @htmldir@
  60375. includedir = @includedir@
  60376. infodir = @infodir@
  60377. install_sh = @install_sh@
  60378. libdir = @libdir@
  60379. libexecdir = @libexecdir@
  60380. +localedir = @localedir@
  60381. localstatedir = @localstatedir@
  60382. +lt_ECHO = @lt_ECHO@
  60383. mandir = @mandir@
  60384. mkdir_p = @mkdir_p@
  60385. oldincludedir = @oldincludedir@
  60386. +pdfdir = @pdfdir@
  60387. prefix = @prefix@
  60388. program_transform_name = @program_transform_name@
  60389. +psdir = @psdir@
  60390. sbindir = @sbindir@
  60391. sharedstatedir = @sharedstatedir@
  60392. +srcdir = @srcdir@
  60393. sysconfdir = @sysconfdir@
  60394. target_alias = @target_alias@
  60395. +top_build_prefix = @top_build_prefix@
  60396. +top_builddir = @top_builddir@
  60397. +top_srcdir = @top_srcdir@
  60398. AM_CFLAGS = $(FONTCONFIG_CFLAGS) $(FREETYPE_CFLAGS) $(XRENDER_CFLAGS) \
  60399. $(WARN_CFLAGS) -I$(top_srcdir)/include/X11/Xft
  60400. @@ -229,14 +259,14 @@
  60401. @for dep in $?; do \
  60402. case '$(am__configure_deps)' in \
  60403. *$$dep*) \
  60404. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  60405. - && exit 0; \
  60406. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  60407. + && { if test -f $@; then exit 0; else break; fi; }; \
  60408. exit 1;; \
  60409. esac; \
  60410. done; \
  60411. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  60412. - cd $(top_srcdir) && \
  60413. - $(AUTOMAKE) --gnu src/Makefile
  60414. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  60415. + $(am__cd) $(top_srcdir) && \
  60416. + $(AUTOMAKE) --gnu src/Makefile
  60417. .PRECIOUS: Makefile
  60418. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  60419. @case '$?' in \
  60420. @@ -254,23 +284,28 @@
  60421. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60422. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  60423. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60424. +$(am__aclocal_m4_deps):
  60425. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  60426. @$(NORMAL_INSTALL)
  60427. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  60428. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  60429. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  60430. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  60431. + list2=; for p in $$list; do \
  60432. if test -f $$p; then \
  60433. - f=$(am__strip_dir) \
  60434. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  60435. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  60436. + list2="$$list2 $$p"; \
  60437. else :; fi; \
  60438. - done
  60439. + done; \
  60440. + test -z "$$list2" || { \
  60441. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  60442. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  60443. + }
  60444. uninstall-libLTLIBRARIES:
  60445. @$(NORMAL_UNINSTALL)
  60446. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  60447. - p=$(am__strip_dir) \
  60448. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  60449. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  60450. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  60451. + for p in $$list; do \
  60452. + $(am__strip_dir) \
  60453. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  60454. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  60455. done
  60456. clean-libLTLIBRARIES:
  60457. @@ -282,7 +317,7 @@
  60458. rm -f "$${dir}/so_locations"; \
  60459. done
  60460. libXft.la: $(libXft_la_OBJECTS) $(libXft_la_DEPENDENCIES)
  60461. - $(LINK) -rpath $(libdir) $(libXft_la_LDFLAGS) $(libXft_la_OBJECTS) $(libXft_la_LIBADD) $(LIBS)
  60462. + $(libXft_la_LINK) -rpath $(libdir) $(libXft_la_OBJECTS) $(libXft_la_LIBADD) $(LIBS)
  60463. mostlyclean-compile:
  60464. -rm -f *.$(OBJEXT)
  60465. @@ -308,22 +343,22 @@
  60466. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xftxlfd.Plo@am__quote@
  60467. .c.o:
  60468. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  60469. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  60470. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  60471. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  60472. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  60473. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  60474. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  60475. .c.obj:
  60476. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  60477. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  60478. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  60479. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  60480. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  60481. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  60482. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  60483. .c.lo:
  60484. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  60485. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  60486. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  60487. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  60488. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  60489. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  60490. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  60491. @@ -333,101 +368,106 @@
  60492. clean-libtool:
  60493. -rm -rf .libs _libs
  60494. -
  60495. -distclean-libtool:
  60496. - -rm -f libtool
  60497. -uninstall-info-am:
  60498. install-libXftincludeHEADERS: $(libXftinclude_HEADERS)
  60499. @$(NORMAL_INSTALL)
  60500. - test -z "$(libXftincludedir)" || $(mkdir_p) "$(DESTDIR)$(libXftincludedir)"
  60501. - @list='$(libXftinclude_HEADERS)'; for p in $$list; do \
  60502. + test -z "$(libXftincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libXftincludedir)"
  60503. + @list='$(libXftinclude_HEADERS)'; test -n "$(libXftincludedir)" || list=; \
  60504. + for p in $$list; do \
  60505. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  60506. - f=$(am__strip_dir) \
  60507. - echo " $(libXftincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libXftincludedir)/$$f'"; \
  60508. - $(libXftincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libXftincludedir)/$$f"; \
  60509. + echo "$$d$$p"; \
  60510. + done | $(am__base_list) | \
  60511. + while read files; do \
  60512. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libXftincludedir)'"; \
  60513. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libXftincludedir)" || exit $$?; \
  60514. done
  60515. uninstall-libXftincludeHEADERS:
  60516. @$(NORMAL_UNINSTALL)
  60517. - @list='$(libXftinclude_HEADERS)'; for p in $$list; do \
  60518. - f=$(am__strip_dir) \
  60519. - echo " rm -f '$(DESTDIR)$(libXftincludedir)/$$f'"; \
  60520. - rm -f "$(DESTDIR)$(libXftincludedir)/$$f"; \
  60521. - done
  60522. + @list='$(libXftinclude_HEADERS)'; test -n "$(libXftincludedir)" || list=; \
  60523. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  60524. + test -n "$$files" || exit 0; \
  60525. + echo " ( cd '$(DESTDIR)$(libXftincludedir)' && rm -f" $$files ")"; \
  60526. + cd "$(DESTDIR)$(libXftincludedir)" && rm -f $$files
  60527. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  60528. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60529. unique=`for i in $$list; do \
  60530. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60531. done | \
  60532. - $(AWK) ' { files[$$0] = 1; } \
  60533. - END { for (i in files) print i; }'`; \
  60534. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60535. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60536. mkid -fID $$unique
  60537. tags: TAGS
  60538. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60539. $(TAGS_FILES) $(LISP)
  60540. - tags=; \
  60541. + set x; \
  60542. here=`pwd`; \
  60543. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60544. unique=`for i in $$list; do \
  60545. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60546. done | \
  60547. - $(AWK) ' { files[$$0] = 1; } \
  60548. - END { for (i in files) print i; }'`; \
  60549. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  60550. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60551. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60552. + shift; \
  60553. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  60554. test -n "$$unique" || unique=$$empty_fix; \
  60555. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60556. - $$tags $$unique; \
  60557. + if test $$# -gt 0; then \
  60558. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60559. + "$$@" $$unique; \
  60560. + else \
  60561. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60562. + $$unique; \
  60563. + fi; \
  60564. fi
  60565. ctags: CTAGS
  60566. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60567. $(TAGS_FILES) $(LISP)
  60568. - tags=; \
  60569. - here=`pwd`; \
  60570. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60571. unique=`for i in $$list; do \
  60572. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60573. done | \
  60574. - $(AWK) ' { files[$$0] = 1; } \
  60575. - END { for (i in files) print i; }'`; \
  60576. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  60577. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60578. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60579. + test -z "$(CTAGS_ARGS)$$unique" \
  60580. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  60581. - $$tags $$unique
  60582. + $$unique
  60583. GTAGS:
  60584. here=`$(am__cd) $(top_builddir) && pwd` \
  60585. - && cd $(top_srcdir) \
  60586. - && gtags -i $(GTAGS_ARGS) $$here
  60587. + && $(am__cd) $(top_srcdir) \
  60588. + && gtags -i $(GTAGS_ARGS) "$$here"
  60589. distclean-tags:
  60590. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  60591. distdir: $(DISTFILES)
  60592. - $(mkdir_p) $(distdir)/../include/X11/Xft
  60593. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  60594. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  60595. - list='$(DISTFILES)'; for file in $$list; do \
  60596. - case $$file in \
  60597. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  60598. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  60599. - esac; \
  60600. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  60601. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  60602. + list='$(DISTFILES)'; \
  60603. + dist_files=`for file in $$list; do echo $$file; done | \
  60604. + sed -e "s|^$$srcdirstrip/||;t" \
  60605. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  60606. + case $$dist_files in \
  60607. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  60608. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  60609. + sort -u` ;; \
  60610. + esac; \
  60611. + for file in $$dist_files; do \
  60612. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  60613. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  60614. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  60615. - dir="/$$dir"; \
  60616. - $(mkdir_p) "$(distdir)$$dir"; \
  60617. - else \
  60618. - dir=''; \
  60619. - fi; \
  60620. if test -d $$d/$$file; then \
  60621. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  60622. + if test -d "$(distdir)/$$file"; then \
  60623. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  60624. + fi; \
  60625. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  60626. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  60627. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  60628. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  60629. fi; \
  60630. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  60631. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  60632. else \
  60633. - test -f $(distdir)/$$file \
  60634. - || cp -p $$d/$$file $(distdir)/$$file \
  60635. + test -f "$(distdir)/$$file" \
  60636. + || cp -p $$d/$$file "$(distdir)/$$file" \
  60637. || exit 1; \
  60638. fi; \
  60639. done
  60640. @@ -436,7 +476,7 @@
  60641. all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  60642. installdirs:
  60643. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libXftincludedir)"; do \
  60644. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  60645. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  60646. done
  60647. install: install-am
  60648. install-exec: install-exec-am
  60649. @@ -458,6 +498,7 @@
  60650. distclean-generic:
  60651. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  60652. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  60653. maintainer-clean-generic:
  60654. @echo "This command is intended for maintainers to use"
  60655. @@ -471,7 +512,7 @@
  60656. -rm -rf ./$(DEPDIR)
  60657. -rm -f Makefile
  60658. distclean-am: clean-am distclean-compile distclean-generic \
  60659. - distclean-libtool distclean-tags
  60660. + distclean-tags
  60661. dvi: dvi-am
  60662. @@ -479,18 +520,38 @@
  60663. html: html-am
  60664. +html-am:
  60665. +
  60666. info: info-am
  60667. info-am:
  60668. install-data-am: install-libXftincludeHEADERS
  60669. +install-dvi: install-dvi-am
  60670. +
  60671. +install-dvi-am:
  60672. +
  60673. install-exec-am: install-libLTLIBRARIES
  60674. +install-html: install-html-am
  60675. +
  60676. +install-html-am:
  60677. +
  60678. install-info: install-info-am
  60679. +install-info-am:
  60680. +
  60681. install-man:
  60682. +install-pdf: install-pdf-am
  60683. +
  60684. +install-pdf-am:
  60685. +
  60686. +install-ps: install-ps-am
  60687. +
  60688. +install-ps-am:
  60689. +
  60690. installcheck-am:
  60691. maintainer-clean: maintainer-clean-am
  60692. @@ -511,23 +572,27 @@
  60693. ps-am:
  60694. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  60695. - uninstall-libXftincludeHEADERS
  60696. +uninstall-am: uninstall-libLTLIBRARIES uninstall-libXftincludeHEADERS
  60697. +
  60698. +.MAKE: install-am install-strip
  60699. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  60700. clean-libLTLIBRARIES clean-libtool ctags distclean \
  60701. distclean-compile distclean-generic distclean-libtool \
  60702. distclean-tags distdir dvi dvi-am html html-am info info-am \
  60703. - install install-am install-data install-data-am install-exec \
  60704. - install-exec-am install-info install-info-am \
  60705. + install install-am install-data install-data-am install-dvi \
  60706. + install-dvi-am install-exec install-exec-am install-html \
  60707. + install-html-am install-info install-info-am \
  60708. install-libLTLIBRARIES install-libXftincludeHEADERS \
  60709. - install-man install-strip installcheck installcheck-am \
  60710. + install-man install-pdf install-pdf-am install-ps \
  60711. + install-ps-am install-strip installcheck installcheck-am \
  60712. installdirs maintainer-clean maintainer-clean-generic \
  60713. mostlyclean mostlyclean-compile mostlyclean-generic \
  60714. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  60715. - uninstall-am uninstall-info-am uninstall-libLTLIBRARIES \
  60716. + uninstall-am uninstall-libLTLIBRARIES \
  60717. uninstall-libXftincludeHEADERS
  60718. +
  60719. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  60720. # Otherwise a system limit (for SysV at least) may be exceeded.
  60721. .NOEXPORT: