autotool.patch 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239
  1. diff -Nur libvorbisidec-1.0.2+svn15687.orig/aclocal.m4 libvorbisidec-1.0.2+svn15687/aclocal.m4
  2. --- libvorbisidec-1.0.2+svn15687.orig/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
  3. +++ libvorbisidec-1.0.2+svn15687/aclocal.m4 2010-02-18 19:56:27.748858388 +0100
  4. @@ -0,0 +1,8929 @@
  5. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  6. +
  7. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  9. +# This file is free software; the Free Software Foundation
  10. +# gives unlimited permission to copy and/or distribute it,
  11. +# with or without modifications, as long as this notice is preserved.
  12. +
  13. +# This program is distributed in the hope that it will be useful,
  14. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  15. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  16. +# PARTICULAR PURPOSE.
  17. +
  18. +m4_ifndef([AC_AUTOCONF_VERSION],
  19. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  21. +[m4_warning([this file was generated for autoconf 2.65.
  22. +You have another version of autoconf. It may work, but is not guaranteed to.
  23. +If you have problems, you may need to regenerate the build system entirely.
  24. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  25. +
  26. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  27. +#
  28. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  29. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  30. +# Written by Gordon Matzigkeit, 1996
  31. +#
  32. +# This file is free software; the Free Software Foundation gives
  33. +# unlimited permission to copy and/or distribute it, with or without
  34. +# modifications, as long as this notice is preserved.
  35. +
  36. +m4_define([_LT_COPYING], [dnl
  37. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  38. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  39. +# Written by Gordon Matzigkeit, 1996
  40. +#
  41. +# This file is part of GNU Libtool.
  42. +#
  43. +# GNU Libtool is free software; you can redistribute it and/or
  44. +# modify it under the terms of the GNU General Public License as
  45. +# published by the Free Software Foundation; either version 2 of
  46. +# the License, or (at your option) any later version.
  47. +#
  48. +# As a special exception to the GNU General Public License,
  49. +# if you distribute this file as part of a program or library that
  50. +# is built using GNU Libtool, you may include this file under the
  51. +# same distribution terms that you use for the rest of that program.
  52. +#
  53. +# GNU Libtool is distributed in the hope that it will be useful,
  54. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  55. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  56. +# GNU General Public License for more details.
  57. +#
  58. +# You should have received a copy of the GNU General Public License
  59. +# along with GNU Libtool; see the file COPYING. If not, a copy
  60. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  61. +# obtained by writing to the Free Software Foundation, Inc.,
  62. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  63. +])
  64. +
  65. +# serial 56 LT_INIT
  66. +
  67. +
  68. +# LT_PREREQ(VERSION)
  69. +# ------------------
  70. +# Complain and exit if this libtool version is less that VERSION.
  71. +m4_defun([LT_PREREQ],
  72. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  73. + [m4_default([$3],
  74. + [m4_fatal([Libtool version $1 or higher is required],
  75. + 63)])],
  76. + [$2])])
  77. +
  78. +
  79. +# _LT_CHECK_BUILDDIR
  80. +# ------------------
  81. +# Complain if the absolute build directory name contains unusual characters
  82. +m4_defun([_LT_CHECK_BUILDDIR],
  83. +[case `pwd` in
  84. + *\ * | *\ *)
  85. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  86. +esac
  87. +])
  88. +
  89. +
  90. +# LT_INIT([OPTIONS])
  91. +# ------------------
  92. +AC_DEFUN([LT_INIT],
  93. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  94. +AC_BEFORE([$0], [LT_LANG])dnl
  95. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  96. +AC_BEFORE([$0], [LTDL_INIT])dnl
  97. +m4_require([_LT_CHECK_BUILDDIR])dnl
  98. +
  99. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  100. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  101. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  102. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  103. +dnl unless we require an AC_DEFUNed macro:
  104. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  105. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  106. +AC_REQUIRE([LTVERSION_VERSION])dnl
  107. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  108. +m4_require([_LT_PROG_LTMAIN])dnl
  109. +
  110. +dnl Parse OPTIONS
  111. +_LT_SET_OPTIONS([$0], [$1])
  112. +
  113. +# This can be used to rebuild libtool when needed
  114. +LIBTOOL_DEPS="$ltmain"
  115. +
  116. +# Always use our own libtool.
  117. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  118. +AC_SUBST(LIBTOOL)dnl
  119. +
  120. +_LT_SETUP
  121. +
  122. +# Only expand once:
  123. +m4_define([LT_INIT])
  124. +])# LT_INIT
  125. +
  126. +# Old names:
  127. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  128. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  129. +dnl aclocal-1.4 backwards compatibility:
  130. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  131. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  132. +
  133. +
  134. +# _LT_CC_BASENAME(CC)
  135. +# -------------------
  136. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  137. +m4_defun([_LT_CC_BASENAME],
  138. +[for cc_temp in $1""; do
  139. + case $cc_temp in
  140. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  141. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  142. + \-*) ;;
  143. + *) break;;
  144. + esac
  145. +done
  146. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  147. +])
  148. +
  149. +
  150. +# _LT_FILEUTILS_DEFAULTS
  151. +# ----------------------
  152. +# It is okay to use these file commands and assume they have been set
  153. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  154. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  155. +[: ${CP="cp -f"}
  156. +: ${MV="mv -f"}
  157. +: ${RM="rm -f"}
  158. +])# _LT_FILEUTILS_DEFAULTS
  159. +
  160. +
  161. +# _LT_SETUP
  162. +# ---------
  163. +m4_defun([_LT_SETUP],
  164. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  165. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  166. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  167. +_LT_DECL([], [host], [0])dnl
  168. +_LT_DECL([], [host_os], [0])dnl
  169. +dnl
  170. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  171. +_LT_DECL([], [build], [0])dnl
  172. +_LT_DECL([], [build_os], [0])dnl
  173. +dnl
  174. +AC_REQUIRE([AC_PROG_CC])dnl
  175. +AC_REQUIRE([LT_PATH_LD])dnl
  176. +AC_REQUIRE([LT_PATH_NM])dnl
  177. +dnl
  178. +AC_REQUIRE([AC_PROG_LN_S])dnl
  179. +test -z "$LN_S" && LN_S="ln -s"
  180. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  181. +dnl
  182. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  183. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  184. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  185. +dnl
  186. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  187. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  188. +m4_require([_LT_CMD_RELOAD])dnl
  189. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  190. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  191. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  192. +
  193. +_LT_CONFIG_LIBTOOL_INIT([
  194. +# See if we are running on zsh, and set the options which allow our
  195. +# commands through without removal of \ escapes INIT.
  196. +if test -n "\${ZSH_VERSION+set}" ; then
  197. + setopt NO_GLOB_SUBST
  198. +fi
  199. +])
  200. +if test -n "${ZSH_VERSION+set}" ; then
  201. + setopt NO_GLOB_SUBST
  202. +fi
  203. +
  204. +_LT_CHECK_OBJDIR
  205. +
  206. +m4_require([_LT_TAG_COMPILER])dnl
  207. +_LT_PROG_ECHO_BACKSLASH
  208. +
  209. +case $host_os in
  210. +aix3*)
  211. + # AIX sometimes has problems with the GCC collect2 program. For some
  212. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  213. + # vanish in a puff of smoke.
  214. + if test "X${COLLECT_NAMES+set}" != Xset; then
  215. + COLLECT_NAMES=
  216. + export COLLECT_NAMES
  217. + fi
  218. + ;;
  219. +esac
  220. +
  221. +# Sed substitution that helps us do robust quoting. It backslashifies
  222. +# metacharacters that are still active within double-quoted strings.
  223. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  224. +
  225. +# Same as above, but do not quote variable references.
  226. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  227. +
  228. +# Sed substitution to delay expansion of an escaped shell variable in a
  229. +# double_quote_subst'ed string.
  230. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  231. +
  232. +# Sed substitution to delay expansion of an escaped single quote.
  233. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  234. +
  235. +# Sed substitution to avoid accidental globbing in evaled expressions
  236. +no_glob_subst='s/\*/\\\*/g'
  237. +
  238. +# Global variables:
  239. +ofile=libtool
  240. +can_build_shared=yes
  241. +
  242. +# All known linkers require a `.a' archive for static linking (except MSVC,
  243. +# which needs '.lib').
  244. +libext=a
  245. +
  246. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  247. +
  248. +old_CC="$CC"
  249. +old_CFLAGS="$CFLAGS"
  250. +
  251. +# Set sane defaults for various variables
  252. +test -z "$CC" && CC=cc
  253. +test -z "$LTCC" && LTCC=$CC
  254. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  255. +test -z "$LD" && LD=ld
  256. +test -z "$ac_objext" && ac_objext=o
  257. +
  258. +_LT_CC_BASENAME([$compiler])
  259. +
  260. +# Only perform the check for file, if the check method requires it
  261. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  262. +case $deplibs_check_method in
  263. +file_magic*)
  264. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  265. + _LT_PATH_MAGIC
  266. + fi
  267. + ;;
  268. +esac
  269. +
  270. +# Use C for the default configuration in the libtool script
  271. +LT_SUPPORTED_TAG([CC])
  272. +_LT_LANG_C_CONFIG
  273. +_LT_LANG_DEFAULT_CONFIG
  274. +_LT_CONFIG_COMMANDS
  275. +])# _LT_SETUP
  276. +
  277. +
  278. +# _LT_PROG_LTMAIN
  279. +# ---------------
  280. +# Note that this code is called both from `configure', and `config.status'
  281. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  282. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  283. +# so we pass a copy along to make sure it has a sensible value anyway.
  284. +m4_defun([_LT_PROG_LTMAIN],
  285. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  286. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  287. +ltmain="$ac_aux_dir/ltmain.sh"
  288. +])# _LT_PROG_LTMAIN
  289. +
  290. +
  291. +
  292. +# So that we can recreate a full libtool script including additional
  293. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  294. +# in macros and then make a single call at the end using the `libtool'
  295. +# label.
  296. +
  297. +
  298. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  299. +# ----------------------------------------
  300. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  301. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  302. +[m4_ifval([$1],
  303. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  304. + [$1
  305. +])])])
  306. +
  307. +# Initialize.
  308. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  309. +
  310. +
  311. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  312. +# ------------------------------
  313. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  314. +m4_define([_LT_CONFIG_LIBTOOL],
  315. +[m4_ifval([$1],
  316. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  317. + [$1
  318. +])])])
  319. +
  320. +# Initialize.
  321. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  322. +
  323. +
  324. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  325. +# -----------------------------------------------------
  326. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  327. +[_LT_CONFIG_LIBTOOL([$1])
  328. +_LT_CONFIG_LIBTOOL_INIT([$2])
  329. +])
  330. +
  331. +
  332. +# _LT_FORMAT_COMMENT([COMMENT])
  333. +# -----------------------------
  334. +# Add leading comment marks to the start of each line, and a trailing
  335. +# full-stop to the whole comment if one is not present already.
  336. +m4_define([_LT_FORMAT_COMMENT],
  337. +[m4_ifval([$1], [
  338. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  339. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  340. +)])
  341. +
  342. +
  343. +
  344. +
  345. +
  346. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  347. +# -------------------------------------------------------------------
  348. +# CONFIGNAME is the name given to the value in the libtool script.
  349. +# VARNAME is the (base) name used in the configure script.
  350. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  351. +# VARNAME. Any other value will be used directly.
  352. +m4_define([_LT_DECL],
  353. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  354. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  355. + [m4_ifval([$1], [$1], [$2])])
  356. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  357. + m4_ifval([$4],
  358. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  359. + lt_dict_add_subkey([lt_decl_dict], [$2],
  360. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  361. +])
  362. +
  363. +
  364. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  365. +# --------------------------------------------------------
  366. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  367. +
  368. +
  369. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  370. +# ------------------------------------------------
  371. +m4_define([lt_decl_tag_varnames],
  372. +[_lt_decl_filter([tagged?], [yes], $@)])
  373. +
  374. +
  375. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  376. +# ---------------------------------------------------------
  377. +m4_define([_lt_decl_filter],
  378. +[m4_case([$#],
  379. + [0], [m4_fatal([$0: too few arguments: $#])],
  380. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  381. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  382. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  383. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  384. +])
  385. +
  386. +
  387. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  388. +# --------------------------------------------------
  389. +m4_define([lt_decl_quote_varnames],
  390. +[_lt_decl_filter([value], [1], $@)])
  391. +
  392. +
  393. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  394. +# ---------------------------------------------------
  395. +m4_define([lt_decl_dquote_varnames],
  396. +[_lt_decl_filter([value], [2], $@)])
  397. +
  398. +
  399. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  400. +# ---------------------------------------------------
  401. +m4_define([lt_decl_varnames_tagged],
  402. +[m4_assert([$# <= 2])dnl
  403. +_$0(m4_quote(m4_default([$1], [[, ]])),
  404. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  405. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  406. +m4_define([_lt_decl_varnames_tagged],
  407. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  408. +
  409. +
  410. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  411. +# ------------------------------------------------
  412. +m4_define([lt_decl_all_varnames],
  413. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  414. + m4_if([$2], [],
  415. + m4_quote(lt_decl_varnames),
  416. + m4_quote(m4_shift($@))))[]dnl
  417. +])
  418. +m4_define([_lt_decl_all_varnames],
  419. +[lt_join($@, lt_decl_varnames_tagged([$1],
  420. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  421. +])
  422. +
  423. +
  424. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  425. +# ------------------------------------
  426. +# Quote a variable value, and forward it to `config.status' so that its
  427. +# declaration there will have the same value as in `configure'. VARNAME
  428. +# must have a single quote delimited value for this to work.
  429. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  430. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  431. +
  432. +
  433. +# _LT_CONFIG_STATUS_DECLARATIONS
  434. +# ------------------------------
  435. +# We delimit libtool config variables with single quotes, so when
  436. +# we write them to config.status, we have to be sure to quote all
  437. +# embedded single quotes properly. In configure, this macro expands
  438. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  439. +#
  440. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  441. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  442. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  443. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  444. +
  445. +
  446. +# _LT_LIBTOOL_TAGS
  447. +# ----------------
  448. +# Output comment and list of tags supported by the script
  449. +m4_defun([_LT_LIBTOOL_TAGS],
  450. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  451. +available_tags="_LT_TAGS"dnl
  452. +])
  453. +
  454. +
  455. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  456. +# -----------------------------------
  457. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  458. +# expand to a commented shell variable setting:
  459. +#
  460. +# # Some comment about what VAR is for.
  461. +# visible_name=$lt_internal_name
  462. +m4_define([_LT_LIBTOOL_DECLARE],
  463. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  464. + [description])))[]dnl
  465. +m4_pushdef([_libtool_name],
  466. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  467. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  468. + [0], [_libtool_name=[$]$1],
  469. + [1], [_libtool_name=$lt_[]$1],
  470. + [2], [_libtool_name=$lt_[]$1],
  471. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  472. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  473. +])
  474. +
  475. +
  476. +# _LT_LIBTOOL_CONFIG_VARS
  477. +# -----------------------
  478. +# Produce commented declarations of non-tagged libtool config variables
  479. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  480. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  481. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  482. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  483. +[m4_foreach([_lt_var],
  484. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  485. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  486. +
  487. +
  488. +# _LT_LIBTOOL_TAG_VARS(TAG)
  489. +# -------------------------
  490. +m4_define([_LT_LIBTOOL_TAG_VARS],
  491. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  492. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  493. +
  494. +
  495. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  496. +# ------------------------------
  497. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  498. +
  499. +
  500. +# _LT_CONFIG_COMMANDS
  501. +# -------------------
  502. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  503. +# variables for single and double quote escaping we saved from calls
  504. +# to _LT_DECL, we can put quote escaped variables declarations
  505. +# into `config.status', and then the shell code to quote escape them in
  506. +# for loops in `config.status'. Finally, any additional code accumulated
  507. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  508. +m4_defun([_LT_CONFIG_COMMANDS],
  509. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  510. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  511. + dnl instead of duplicating it all over again into config.status,
  512. + dnl then we will have config.status run $CONFIG_LT later, so it
  513. + dnl needs to know what name is stored there:
  514. + [AC_CONFIG_COMMANDS([libtool],
  515. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  516. + dnl If the libtool generation code is destined for config.status,
  517. + dnl expand the accumulated commands and init code now:
  518. + [AC_CONFIG_COMMANDS([libtool],
  519. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  520. +])#_LT_CONFIG_COMMANDS
  521. +
  522. +
  523. +# Initialize.
  524. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  525. +[
  526. +
  527. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  528. +# if CDPATH is set.
  529. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. +
  531. +sed_quote_subst='$sed_quote_subst'
  532. +double_quote_subst='$double_quote_subst'
  533. +delay_variable_subst='$delay_variable_subst'
  534. +_LT_CONFIG_STATUS_DECLARATIONS
  535. +LTCC='$LTCC'
  536. +LTCFLAGS='$LTCFLAGS'
  537. +compiler='$compiler_DEFAULT'
  538. +
  539. +# Quote evaled strings.
  540. +for var in lt_decl_all_varnames([[ \
  541. +]], lt_decl_quote_varnames); do
  542. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  543. + *[[\\\\\\\`\\"\\\$]]*)
  544. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  545. + ;;
  546. + *)
  547. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  548. + ;;
  549. + esac
  550. +done
  551. +
  552. +# Double-quote double-evaled strings.
  553. +for var in lt_decl_all_varnames([[ \
  554. +]], lt_decl_dquote_varnames); do
  555. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  556. + *[[\\\\\\\`\\"\\\$]]*)
  557. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  558. + ;;
  559. + *)
  560. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  561. + ;;
  562. + esac
  563. +done
  564. +
  565. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  566. +case \$lt_ECHO in
  567. +*'\\\[$]0 --fallback-echo"')dnl "
  568. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  569. + ;;
  570. +esac
  571. +
  572. +_LT_OUTPUT_LIBTOOL_INIT
  573. +])
  574. +
  575. +
  576. +# LT_OUTPUT
  577. +# ---------
  578. +# This macro allows early generation of the libtool script (before
  579. +# AC_OUTPUT is called), incase it is used in configure for compilation
  580. +# tests.
  581. +AC_DEFUN([LT_OUTPUT],
  582. +[: ${CONFIG_LT=./config.lt}
  583. +AC_MSG_NOTICE([creating $CONFIG_LT])
  584. +cat >"$CONFIG_LT" <<_LTEOF
  585. +#! $SHELL
  586. +# Generated by $as_me.
  587. +# Run this file to recreate a libtool stub with the current configuration.
  588. +
  589. +lt_cl_silent=false
  590. +SHELL=\${CONFIG_SHELL-$SHELL}
  591. +_LTEOF
  592. +
  593. +cat >>"$CONFIG_LT" <<\_LTEOF
  594. +AS_SHELL_SANITIZE
  595. +_AS_PREPARE
  596. +
  597. +exec AS_MESSAGE_FD>&1
  598. +exec AS_MESSAGE_LOG_FD>>config.log
  599. +{
  600. + echo
  601. + AS_BOX([Running $as_me.])
  602. +} >&AS_MESSAGE_LOG_FD
  603. +
  604. +lt_cl_help="\
  605. +\`$as_me' creates a local libtool stub from the current configuration,
  606. +for use in further configure time tests before the real libtool is
  607. +generated.
  608. +
  609. +Usage: $[0] [[OPTIONS]]
  610. +
  611. + -h, --help print this help, then exit
  612. + -V, --version print version number, then exit
  613. + -q, --quiet do not print progress messages
  614. + -d, --debug don't remove temporary files
  615. +
  616. +Report bugs to <bug-libtool@gnu.org>."
  617. +
  618. +lt_cl_version="\
  619. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  620. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  621. +configured by $[0], generated by m4_PACKAGE_STRING.
  622. +
  623. +Copyright (C) 2008 Free Software Foundation, Inc.
  624. +This config.lt script is free software; the Free Software Foundation
  625. +gives unlimited permision to copy, distribute and modify it."
  626. +
  627. +while test $[#] != 0
  628. +do
  629. + case $[1] in
  630. + --version | --v* | -V )
  631. + echo "$lt_cl_version"; exit 0 ;;
  632. + --help | --h* | -h )
  633. + echo "$lt_cl_help"; exit 0 ;;
  634. + --debug | --d* | -d )
  635. + debug=: ;;
  636. + --quiet | --q* | --silent | --s* | -q )
  637. + lt_cl_silent=: ;;
  638. +
  639. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  640. +Try \`$[0] --help' for more information.]) ;;
  641. +
  642. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  643. +Try \`$[0] --help' for more information.]) ;;
  644. + esac
  645. + shift
  646. +done
  647. +
  648. +if $lt_cl_silent; then
  649. + exec AS_MESSAGE_FD>/dev/null
  650. +fi
  651. +_LTEOF
  652. +
  653. +cat >>"$CONFIG_LT" <<_LTEOF
  654. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  655. +_LTEOF
  656. +
  657. +cat >>"$CONFIG_LT" <<\_LTEOF
  658. +AC_MSG_NOTICE([creating $ofile])
  659. +_LT_OUTPUT_LIBTOOL_COMMANDS
  660. +AS_EXIT(0)
  661. +_LTEOF
  662. +chmod +x "$CONFIG_LT"
  663. +
  664. +# configure is writing to config.log, but config.lt does its own redirection,
  665. +# appending to config.log, which fails on DOS, as config.log is still kept
  666. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  667. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  668. +if test "$no_create" != yes; then
  669. + lt_cl_success=:
  670. + test "$silent" = yes &&
  671. + lt_config_lt_args="$lt_config_lt_args --quiet"
  672. + exec AS_MESSAGE_LOG_FD>/dev/null
  673. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  674. + exec AS_MESSAGE_LOG_FD>>config.log
  675. + $lt_cl_success || AS_EXIT(1)
  676. +fi
  677. +])# LT_OUTPUT
  678. +
  679. +
  680. +# _LT_CONFIG(TAG)
  681. +# ---------------
  682. +# If TAG is the built-in tag, create an initial libtool script with a
  683. +# default configuration from the untagged config vars. Otherwise add code
  684. +# to config.status for appending the configuration named by TAG from the
  685. +# matching tagged config vars.
  686. +m4_defun([_LT_CONFIG],
  687. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  688. +_LT_CONFIG_SAVE_COMMANDS([
  689. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  690. + m4_if(_LT_TAG, [C], [
  691. + # See if we are running on zsh, and set the options which allow our
  692. + # commands through without removal of \ escapes.
  693. + if test -n "${ZSH_VERSION+set}" ; then
  694. + setopt NO_GLOB_SUBST
  695. + fi
  696. +
  697. + cfgfile="${ofile}T"
  698. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  699. + $RM "$cfgfile"
  700. +
  701. + cat <<_LT_EOF >> "$cfgfile"
  702. +#! $SHELL
  703. +
  704. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  705. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  706. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  707. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  708. +#
  709. +_LT_COPYING
  710. +_LT_LIBTOOL_TAGS
  711. +
  712. +# ### BEGIN LIBTOOL CONFIG
  713. +_LT_LIBTOOL_CONFIG_VARS
  714. +_LT_LIBTOOL_TAG_VARS
  715. +# ### END LIBTOOL CONFIG
  716. +
  717. +_LT_EOF
  718. +
  719. + case $host_os in
  720. + aix3*)
  721. + cat <<\_LT_EOF >> "$cfgfile"
  722. +# AIX sometimes has problems with the GCC collect2 program. For some
  723. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  724. +# vanish in a puff of smoke.
  725. +if test "X${COLLECT_NAMES+set}" != Xset; then
  726. + COLLECT_NAMES=
  727. + export COLLECT_NAMES
  728. +fi
  729. +_LT_EOF
  730. + ;;
  731. + esac
  732. +
  733. + _LT_PROG_LTMAIN
  734. +
  735. + # We use sed instead of cat because bash on DJGPP gets confused if
  736. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  737. + # text mode, it properly converts lines to CR/LF. This bash problem
  738. + # is reportedly fixed, but why not run on old versions too?
  739. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  740. + || (rm -f "$cfgfile"; exit 1)
  741. +
  742. + _LT_PROG_XSI_SHELLFNS
  743. +
  744. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  745. + || (rm -f "$cfgfile"; exit 1)
  746. +
  747. + mv -f "$cfgfile" "$ofile" ||
  748. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  749. + chmod +x "$ofile"
  750. +],
  751. +[cat <<_LT_EOF >> "$ofile"
  752. +
  753. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  754. +dnl in a comment (ie after a #).
  755. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  756. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  757. +# ### END LIBTOOL TAG CONFIG: $1
  758. +_LT_EOF
  759. +])dnl /m4_if
  760. +],
  761. +[m4_if([$1], [], [
  762. + PACKAGE='$PACKAGE'
  763. + VERSION='$VERSION'
  764. + TIMESTAMP='$TIMESTAMP'
  765. + RM='$RM'
  766. + ofile='$ofile'], [])
  767. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  768. +])# _LT_CONFIG
  769. +
  770. +
  771. +# LT_SUPPORTED_TAG(TAG)
  772. +# ---------------------
  773. +# Trace this macro to discover what tags are supported by the libtool
  774. +# --tag option, using:
  775. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  776. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  777. +
  778. +
  779. +# C support is built-in for now
  780. +m4_define([_LT_LANG_C_enabled], [])
  781. +m4_define([_LT_TAGS], [])
  782. +
  783. +
  784. +# LT_LANG(LANG)
  785. +# -------------
  786. +# Enable libtool support for the given language if not already enabled.
  787. +AC_DEFUN([LT_LANG],
  788. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  789. +m4_case([$1],
  790. + [C], [_LT_LANG(C)],
  791. + [C++], [_LT_LANG(CXX)],
  792. + [Java], [_LT_LANG(GCJ)],
  793. + [Fortran 77], [_LT_LANG(F77)],
  794. + [Fortran], [_LT_LANG(FC)],
  795. + [Windows Resource], [_LT_LANG(RC)],
  796. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  797. + [_LT_LANG($1)],
  798. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  799. +])# LT_LANG
  800. +
  801. +
  802. +# _LT_LANG(LANGNAME)
  803. +# ------------------
  804. +m4_defun([_LT_LANG],
  805. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  806. + [LT_SUPPORTED_TAG([$1])dnl
  807. + m4_append([_LT_TAGS], [$1 ])dnl
  808. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  809. + _LT_LANG_$1_CONFIG($1)])dnl
  810. +])# _LT_LANG
  811. +
  812. +
  813. +# _LT_LANG_DEFAULT_CONFIG
  814. +# -----------------------
  815. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  816. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  817. + [LT_LANG(CXX)],
  818. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  819. +
  820. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  821. + [LT_LANG(F77)],
  822. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  823. +
  824. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  825. + [LT_LANG(FC)],
  826. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  827. +
  828. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  829. +dnl pulling things in needlessly.
  830. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  831. + [LT_LANG(GCJ)],
  832. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  833. + [LT_LANG(GCJ)],
  834. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  835. + [LT_LANG(GCJ)],
  836. + [m4_ifdef([AC_PROG_GCJ],
  837. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  838. + m4_ifdef([A][M_PROG_GCJ],
  839. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  840. + m4_ifdef([LT_PROG_GCJ],
  841. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  842. +
  843. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  844. + [LT_LANG(RC)],
  845. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  846. +])# _LT_LANG_DEFAULT_CONFIG
  847. +
  848. +# Obsolete macros:
  849. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  850. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  851. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  852. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  853. +dnl aclocal-1.4 backwards compatibility:
  854. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  855. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  856. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  857. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  858. +
  859. +
  860. +# _LT_TAG_COMPILER
  861. +# ----------------
  862. +m4_defun([_LT_TAG_COMPILER],
  863. +[AC_REQUIRE([AC_PROG_CC])dnl
  864. +
  865. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  866. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  867. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  868. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  869. +
  870. +# If no C compiler was specified, use CC.
  871. +LTCC=${LTCC-"$CC"}
  872. +
  873. +# If no C compiler flags were specified, use CFLAGS.
  874. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  875. +
  876. +# Allow CC to be a program name with arguments.
  877. +compiler=$CC
  878. +])# _LT_TAG_COMPILER
  879. +
  880. +
  881. +# _LT_COMPILER_BOILERPLATE
  882. +# ------------------------
  883. +# Check for compiler boilerplate output or warnings with
  884. +# the simple compiler test code.
  885. +m4_defun([_LT_COMPILER_BOILERPLATE],
  886. +[m4_require([_LT_DECL_SED])dnl
  887. +ac_outfile=conftest.$ac_objext
  888. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  889. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  890. +_lt_compiler_boilerplate=`cat conftest.err`
  891. +$RM conftest*
  892. +])# _LT_COMPILER_BOILERPLATE
  893. +
  894. +
  895. +# _LT_LINKER_BOILERPLATE
  896. +# ----------------------
  897. +# Check for linker boilerplate output or warnings with
  898. +# the simple link test code.
  899. +m4_defun([_LT_LINKER_BOILERPLATE],
  900. +[m4_require([_LT_DECL_SED])dnl
  901. +ac_outfile=conftest.$ac_objext
  902. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  903. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  904. +_lt_linker_boilerplate=`cat conftest.err`
  905. +$RM -r conftest*
  906. +])# _LT_LINKER_BOILERPLATE
  907. +
  908. +# _LT_REQUIRED_DARWIN_CHECKS
  909. +# -------------------------
  910. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  911. + case $host_os in
  912. + rhapsody* | darwin*)
  913. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  914. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  915. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  916. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  917. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  918. + _LT_DECL([], [DSYMUTIL], [1],
  919. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  920. + _LT_DECL([], [NMEDIT], [1],
  921. + [Tool to change global to local symbols on Mac OS X])
  922. + _LT_DECL([], [LIPO], [1],
  923. + [Tool to manipulate fat objects and archives on Mac OS X])
  924. + _LT_DECL([], [OTOOL], [1],
  925. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  926. + _LT_DECL([], [OTOOL64], [1],
  927. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  928. +
  929. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  930. + [lt_cv_apple_cc_single_mod=no
  931. + if test -z "${LT_MULTI_MODULE}"; then
  932. + # By default we will add the -single_module flag. You can override
  933. + # by either setting the environment variable LT_MULTI_MODULE
  934. + # non-empty at configure time, or by adding -multi_module to the
  935. + # link flags.
  936. + rm -rf libconftest.dylib*
  937. + echo "int foo(void){return 1;}" > conftest.c
  938. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  939. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  940. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  941. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  942. + _lt_result=$?
  943. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  944. + lt_cv_apple_cc_single_mod=yes
  945. + else
  946. + cat conftest.err >&AS_MESSAGE_LOG_FD
  947. + fi
  948. + rm -rf libconftest.dylib*
  949. + rm -f conftest.*
  950. + fi])
  951. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  952. + [lt_cv_ld_exported_symbols_list],
  953. + [lt_cv_ld_exported_symbols_list=no
  954. + save_LDFLAGS=$LDFLAGS
  955. + echo "_main" > conftest.sym
  956. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  957. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  958. + [lt_cv_ld_exported_symbols_list=yes],
  959. + [lt_cv_ld_exported_symbols_list=no])
  960. + LDFLAGS="$save_LDFLAGS"
  961. + ])
  962. + case $host_os in
  963. + rhapsody* | darwin1.[[012]])
  964. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  965. + darwin1.*)
  966. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  967. + darwin*) # darwin 5.x on
  968. + # if running on 10.5 or later, the deployment target defaults
  969. + # to the OS version, if on x86, and 10.4, the deployment
  970. + # target defaults to 10.4. Don't you love it?
  971. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  972. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  973. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  974. + 10.[[012]]*)
  975. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  976. + 10.*)
  977. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  978. + esac
  979. + ;;
  980. + esac
  981. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  982. + _lt_dar_single_mod='$single_module'
  983. + fi
  984. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  985. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  986. + else
  987. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  988. + fi
  989. + if test "$DSYMUTIL" != ":"; then
  990. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  991. + else
  992. + _lt_dsymutil=
  993. + fi
  994. + ;;
  995. + esac
  996. +])
  997. +
  998. +
  999. +# _LT_DARWIN_LINKER_FEATURES
  1000. +# --------------------------
  1001. +# Checks for linker and compiler features on darwin
  1002. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1003. +[
  1004. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1005. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1006. + _LT_TAGVAR(hardcode_direct, $1)=no
  1007. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1008. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1009. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1010. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1011. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1012. + case $cc_basename in
  1013. + ifort*) _lt_dar_can_shared=yes ;;
  1014. + *) _lt_dar_can_shared=$GCC ;;
  1015. + esac
  1016. + if test "$_lt_dar_can_shared" = "yes"; then
  1017. + output_verbose_link_cmd=echo
  1018. + _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}"
  1019. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1020. + _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}"
  1021. + _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}"
  1022. + m4_if([$1], [CXX],
  1023. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1024. + _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}"
  1025. + _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}"
  1026. + fi
  1027. +],[])
  1028. + else
  1029. + _LT_TAGVAR(ld_shlibs, $1)=no
  1030. + fi
  1031. +])
  1032. +
  1033. +# _LT_SYS_MODULE_PATH_AIX
  1034. +# -----------------------
  1035. +# Links a minimal program and checks the executable
  1036. +# for the system default hardcoded library path. In most cases,
  1037. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1038. +# the location of the communication and MPI libs are included too.
  1039. +# If we don't find anything, use the default library path according
  1040. +# to the aix ld manual.
  1041. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1042. +[m4_require([_LT_DECL_SED])dnl
  1043. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1044. +lt_aix_libpath_sed='
  1045. + /Import File Strings/,/^$/ {
  1046. + /^0/ {
  1047. + s/^0 *\(.*\)$/\1/
  1048. + p
  1049. + }
  1050. + }'
  1051. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1052. +# Check for a 64-bit object if we didn't find anything.
  1053. +if test -z "$aix_libpath"; then
  1054. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1055. +fi],[])
  1056. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1057. +])# _LT_SYS_MODULE_PATH_AIX
  1058. +
  1059. +
  1060. +# _LT_SHELL_INIT(ARG)
  1061. +# -------------------
  1062. +m4_define([_LT_SHELL_INIT],
  1063. +[ifdef([AC_DIVERSION_NOTICE],
  1064. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1065. + [AC_DIVERT_PUSH(NOTICE)])
  1066. +$1
  1067. +AC_DIVERT_POP
  1068. +])# _LT_SHELL_INIT
  1069. +
  1070. +
  1071. +# _LT_PROG_ECHO_BACKSLASH
  1072. +# -----------------------
  1073. +# Add some code to the start of the generated configure script which
  1074. +# will find an echo command which doesn't interpret backslashes.
  1075. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1076. +[_LT_SHELL_INIT([
  1077. +# Check that we are running under the correct shell.
  1078. +SHELL=${CONFIG_SHELL-/bin/sh}
  1079. +
  1080. +case X$lt_ECHO in
  1081. +X*--fallback-echo)
  1082. + # Remove one level of quotation (which was required for Make).
  1083. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1084. + ;;
  1085. +esac
  1086. +
  1087. +ECHO=${lt_ECHO-echo}
  1088. +if test "X[$]1" = X--no-reexec; then
  1089. + # Discard the --no-reexec flag, and continue.
  1090. + shift
  1091. +elif test "X[$]1" = X--fallback-echo; then
  1092. + # Avoid inline document here, it may be left over
  1093. + :
  1094. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1095. + # Yippee, $ECHO works!
  1096. + :
  1097. +else
  1098. + # Restart under the correct shell.
  1099. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1100. +fi
  1101. +
  1102. +if test "X[$]1" = X--fallback-echo; then
  1103. + # used as fallback echo
  1104. + shift
  1105. + cat <<_LT_EOF
  1106. +[$]*
  1107. +_LT_EOF
  1108. + exit 0
  1109. +fi
  1110. +
  1111. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1112. +# if CDPATH is set.
  1113. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1114. +
  1115. +if test -z "$lt_ECHO"; then
  1116. + if test "X${echo_test_string+set}" != Xset; then
  1117. + # find a string as large as possible, as long as the shell can cope with it
  1118. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1119. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1120. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1121. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1122. + then
  1123. + break
  1124. + fi
  1125. + done
  1126. + fi
  1127. +
  1128. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1129. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1130. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1131. + :
  1132. + else
  1133. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1134. + # backslashes. This makes it impossible to quote backslashes using
  1135. + # echo "$something" | sed 's/\\/\\\\/g'
  1136. + #
  1137. + # So, first we look for a working echo in the user's PATH.
  1138. +
  1139. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1140. + for dir in $PATH /usr/ucb; do
  1141. + IFS="$lt_save_ifs"
  1142. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1143. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1144. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1145. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1146. + ECHO="$dir/echo"
  1147. + break
  1148. + fi
  1149. + done
  1150. + IFS="$lt_save_ifs"
  1151. +
  1152. + if test "X$ECHO" = Xecho; then
  1153. + # We didn't find a better echo, so look for alternatives.
  1154. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1155. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1156. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1157. + # This shell has a builtin print -r that does the trick.
  1158. + ECHO='print -r'
  1159. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1160. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1161. + # If we have ksh, try running configure again with it.
  1162. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1163. + export ORIGINAL_CONFIG_SHELL
  1164. + CONFIG_SHELL=/bin/ksh
  1165. + export CONFIG_SHELL
  1166. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1167. + else
  1168. + # Try using printf.
  1169. + ECHO='printf %s\n'
  1170. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1171. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1172. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1173. + # Cool, printf works
  1174. + :
  1175. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1176. + test "X$echo_testing_string" = 'X\t' &&
  1177. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1178. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1179. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1180. + export CONFIG_SHELL
  1181. + SHELL="$CONFIG_SHELL"
  1182. + export SHELL
  1183. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1184. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1185. + test "X$echo_testing_string" = 'X\t' &&
  1186. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1187. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1188. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1189. + else
  1190. + # maybe with a smaller string...
  1191. + prev=:
  1192. +
  1193. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1194. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1195. + then
  1196. + break
  1197. + fi
  1198. + prev="$cmd"
  1199. + done
  1200. +
  1201. + if test "$prev" != 'sed 50q "[$]0"'; then
  1202. + echo_test_string=`eval $prev`
  1203. + export echo_test_string
  1204. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1205. + else
  1206. + # Oops. We lost completely, so just stick with echo.
  1207. + ECHO=echo
  1208. + fi
  1209. + fi
  1210. + fi
  1211. + fi
  1212. + fi
  1213. +fi
  1214. +
  1215. +# Copy echo and quote the copy suitably for passing to libtool from
  1216. +# the Makefile, instead of quoting the original, which is used later.
  1217. +lt_ECHO=$ECHO
  1218. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1219. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1220. +fi
  1221. +
  1222. +AC_SUBST(lt_ECHO)
  1223. +])
  1224. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1225. +_LT_DECL([], [ECHO], [1],
  1226. + [An echo program that does not interpret backslashes])
  1227. +])# _LT_PROG_ECHO_BACKSLASH
  1228. +
  1229. +
  1230. +# _LT_ENABLE_LOCK
  1231. +# ---------------
  1232. +m4_defun([_LT_ENABLE_LOCK],
  1233. +[AC_ARG_ENABLE([libtool-lock],
  1234. + [AS_HELP_STRING([--disable-libtool-lock],
  1235. + [avoid locking (might break parallel builds)])])
  1236. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1237. +
  1238. +# Some flags need to be propagated to the compiler or linker for good
  1239. +# libtool support.
  1240. +case $host in
  1241. +ia64-*-hpux*)
  1242. + # Find out which ABI we are using.
  1243. + echo 'int i;' > conftest.$ac_ext
  1244. + if AC_TRY_EVAL(ac_compile); then
  1245. + case `/usr/bin/file conftest.$ac_objext` in
  1246. + *ELF-32*)
  1247. + HPUX_IA64_MODE="32"
  1248. + ;;
  1249. + *ELF-64*)
  1250. + HPUX_IA64_MODE="64"
  1251. + ;;
  1252. + esac
  1253. + fi
  1254. + rm -rf conftest*
  1255. + ;;
  1256. +*-*-irix6*)
  1257. + # Find out which ABI we are using.
  1258. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1259. + if AC_TRY_EVAL(ac_compile); then
  1260. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1261. + case `/usr/bin/file conftest.$ac_objext` in
  1262. + *32-bit*)
  1263. + LD="${LD-ld} -melf32bsmip"
  1264. + ;;
  1265. + *N32*)
  1266. + LD="${LD-ld} -melf32bmipn32"
  1267. + ;;
  1268. + *64-bit*)
  1269. + LD="${LD-ld} -melf64bmip"
  1270. + ;;
  1271. + esac
  1272. + else
  1273. + case `/usr/bin/file conftest.$ac_objext` in
  1274. + *32-bit*)
  1275. + LD="${LD-ld} -32"
  1276. + ;;
  1277. + *N32*)
  1278. + LD="${LD-ld} -n32"
  1279. + ;;
  1280. + *64-bit*)
  1281. + LD="${LD-ld} -64"
  1282. + ;;
  1283. + esac
  1284. + fi
  1285. + fi
  1286. + rm -rf conftest*
  1287. + ;;
  1288. +
  1289. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1290. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1291. + # Find out which ABI we are using.
  1292. + echo 'int i;' > conftest.$ac_ext
  1293. + if AC_TRY_EVAL(ac_compile); then
  1294. + case `/usr/bin/file conftest.o` in
  1295. + *32-bit*)
  1296. + case $host in
  1297. + x86_64-*kfreebsd*-gnu)
  1298. + LD="${LD-ld} -m elf_i386_fbsd"
  1299. + ;;
  1300. + x86_64-*linux*)
  1301. + LD="${LD-ld} -m elf_i386"
  1302. + ;;
  1303. + ppc64-*linux*|powerpc64-*linux*)
  1304. + LD="${LD-ld} -m elf32ppclinux"
  1305. + ;;
  1306. + s390x-*linux*)
  1307. + LD="${LD-ld} -m elf_s390"
  1308. + ;;
  1309. + sparc64-*linux*)
  1310. + LD="${LD-ld} -m elf32_sparc"
  1311. + ;;
  1312. + esac
  1313. + ;;
  1314. + *64-bit*)
  1315. + case $host in
  1316. + x86_64-*kfreebsd*-gnu)
  1317. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1318. + ;;
  1319. + x86_64-*linux*)
  1320. + LD="${LD-ld} -m elf_x86_64"
  1321. + ;;
  1322. + ppc*-*linux*|powerpc*-*linux*)
  1323. + LD="${LD-ld} -m elf64ppc"
  1324. + ;;
  1325. + s390*-*linux*|s390*-*tpf*)
  1326. + LD="${LD-ld} -m elf64_s390"
  1327. + ;;
  1328. + sparc*-*linux*)
  1329. + LD="${LD-ld} -m elf64_sparc"
  1330. + ;;
  1331. + esac
  1332. + ;;
  1333. + esac
  1334. + fi
  1335. + rm -rf conftest*
  1336. + ;;
  1337. +
  1338. +*-*-sco3.2v5*)
  1339. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1340. + SAVE_CFLAGS="$CFLAGS"
  1341. + CFLAGS="$CFLAGS -belf"
  1342. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1343. + [AC_LANG_PUSH(C)
  1344. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1345. + AC_LANG_POP])
  1346. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1347. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1348. + CFLAGS="$SAVE_CFLAGS"
  1349. + fi
  1350. + ;;
  1351. +sparc*-*solaris*)
  1352. + # Find out which ABI we are using.
  1353. + echo 'int i;' > conftest.$ac_ext
  1354. + if AC_TRY_EVAL(ac_compile); then
  1355. + case `/usr/bin/file conftest.o` in
  1356. + *64-bit*)
  1357. + case $lt_cv_prog_gnu_ld in
  1358. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1359. + *)
  1360. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1361. + LD="${LD-ld} -64"
  1362. + fi
  1363. + ;;
  1364. + esac
  1365. + ;;
  1366. + esac
  1367. + fi
  1368. + rm -rf conftest*
  1369. + ;;
  1370. +esac
  1371. +
  1372. +need_locks="$enable_libtool_lock"
  1373. +])# _LT_ENABLE_LOCK
  1374. +
  1375. +
  1376. +# _LT_CMD_OLD_ARCHIVE
  1377. +# -------------------
  1378. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1379. +[AC_CHECK_TOOL(AR, ar, false)
  1380. +test -z "$AR" && AR=ar
  1381. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1382. +_LT_DECL([], [AR], [1], [The archiver])
  1383. +_LT_DECL([], [AR_FLAGS], [1])
  1384. +
  1385. +AC_CHECK_TOOL(STRIP, strip, :)
  1386. +test -z "$STRIP" && STRIP=:
  1387. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1388. +
  1389. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1390. +test -z "$RANLIB" && RANLIB=:
  1391. +_LT_DECL([], [RANLIB], [1],
  1392. + [Commands used to install an old-style archive])
  1393. +
  1394. +# Determine commands to create old-style static archives.
  1395. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1396. +old_postinstall_cmds='chmod 644 $oldlib'
  1397. +old_postuninstall_cmds=
  1398. +
  1399. +if test -n "$RANLIB"; then
  1400. + case $host_os in
  1401. + openbsd*)
  1402. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1403. + ;;
  1404. + *)
  1405. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1406. + ;;
  1407. + esac
  1408. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1409. +fi
  1410. +_LT_DECL([], [old_postinstall_cmds], [2])
  1411. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1412. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1413. + [Commands used to build an old-style archive])
  1414. +])# _LT_CMD_OLD_ARCHIVE
  1415. +
  1416. +
  1417. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1418. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1419. +# ----------------------------------------------------------------
  1420. +# Check whether the given compiler option works
  1421. +AC_DEFUN([_LT_COMPILER_OPTION],
  1422. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1423. +m4_require([_LT_DECL_SED])dnl
  1424. +AC_CACHE_CHECK([$1], [$2],
  1425. + [$2=no
  1426. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1427. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1428. + lt_compiler_flag="$3"
  1429. + # Insert the option either (1) after the last *FLAGS variable, or
  1430. + # (2) before a word containing "conftest.", or (3) at the end.
  1431. + # Note that $ac_compile itself does not contain backslashes and begins
  1432. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1433. + # The option is referenced via a variable to avoid confusing sed.
  1434. + lt_compile=`echo "$ac_compile" | $SED \
  1435. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1436. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1437. + -e 's:$: $lt_compiler_flag:'`
  1438. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1439. + (eval "$lt_compile" 2>conftest.err)
  1440. + ac_status=$?
  1441. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1442. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1443. + if (exit $ac_status) && test -s "$ac_outfile"; then
  1444. + # The compiler can only warn and ignore the option if not recognized
  1445. + # So say no if there are warnings other than the usual output.
  1446. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1447. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1448. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1449. + $2=yes
  1450. + fi
  1451. + fi
  1452. + $RM conftest*
  1453. +])
  1454. +
  1455. +if test x"[$]$2" = xyes; then
  1456. + m4_if([$5], , :, [$5])
  1457. +else
  1458. + m4_if([$6], , :, [$6])
  1459. +fi
  1460. +])# _LT_COMPILER_OPTION
  1461. +
  1462. +# Old name:
  1463. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1464. +dnl aclocal-1.4 backwards compatibility:
  1465. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1466. +
  1467. +
  1468. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1469. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1470. +# ----------------------------------------------------
  1471. +# Check whether the given linker option works
  1472. +AC_DEFUN([_LT_LINKER_OPTION],
  1473. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1474. +m4_require([_LT_DECL_SED])dnl
  1475. +AC_CACHE_CHECK([$1], [$2],
  1476. + [$2=no
  1477. + save_LDFLAGS="$LDFLAGS"
  1478. + LDFLAGS="$LDFLAGS $3"
  1479. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1480. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1481. + # The linker can only warn and ignore the option if not recognized
  1482. + # So say no if there are warnings
  1483. + if test -s conftest.err; then
  1484. + # Append any errors to the config.log.
  1485. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1486. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1487. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1488. + if diff conftest.exp conftest.er2 >/dev/null; then
  1489. + $2=yes
  1490. + fi
  1491. + else
  1492. + $2=yes
  1493. + fi
  1494. + fi
  1495. + $RM -r conftest*
  1496. + LDFLAGS="$save_LDFLAGS"
  1497. +])
  1498. +
  1499. +if test x"[$]$2" = xyes; then
  1500. + m4_if([$4], , :, [$4])
  1501. +else
  1502. + m4_if([$5], , :, [$5])
  1503. +fi
  1504. +])# _LT_LINKER_OPTION
  1505. +
  1506. +# Old name:
  1507. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1508. +dnl aclocal-1.4 backwards compatibility:
  1509. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1510. +
  1511. +
  1512. +# LT_CMD_MAX_LEN
  1513. +#---------------
  1514. +AC_DEFUN([LT_CMD_MAX_LEN],
  1515. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1516. +# find the maximum length of command line arguments
  1517. +AC_MSG_CHECKING([the maximum length of command line arguments])
  1518. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1519. + i=0
  1520. + teststring="ABCD"
  1521. +
  1522. + case $build_os in
  1523. + msdosdjgpp*)
  1524. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  1525. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  1526. + # during glob expansion). Even if it were fixed, the result of this
  1527. + # check would be larger than it should be.
  1528. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1529. + ;;
  1530. +
  1531. + gnu*)
  1532. + # Under GNU Hurd, this test is not required because there is
  1533. + # no limit to the length of command line arguments.
  1534. + # Libtool will interpret -1 as no limit whatsoever
  1535. + lt_cv_sys_max_cmd_len=-1;
  1536. + ;;
  1537. +
  1538. + cygwin* | mingw* | cegcc*)
  1539. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  1540. + # about 5 minutes as the teststring grows exponentially.
  1541. + # Worse, since 9x/ME are not pre-emptively multitasking,
  1542. + # you end up with a "frozen" computer, even though with patience
  1543. + # the test eventually succeeds (with a max line length of 256k).
  1544. + # Instead, let's just punt: use the minimum linelength reported by
  1545. + # all of the supported platforms: 8192 (on NT/2K/XP).
  1546. + lt_cv_sys_max_cmd_len=8192;
  1547. + ;;
  1548. +
  1549. + amigaos*)
  1550. + # On AmigaOS with pdksh, this test takes hours, literally.
  1551. + # So we just punt and use a minimum line length of 8192.
  1552. + lt_cv_sys_max_cmd_len=8192;
  1553. + ;;
  1554. +
  1555. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1556. + # This has been around since 386BSD, at least. Likely further.
  1557. + if test -x /sbin/sysctl; then
  1558. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1559. + elif test -x /usr/sbin/sysctl; then
  1560. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1561. + else
  1562. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1563. + fi
  1564. + # And add a safety zone
  1565. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1566. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1567. + ;;
  1568. +
  1569. + interix*)
  1570. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1571. + lt_cv_sys_max_cmd_len=196608
  1572. + ;;
  1573. +
  1574. + osf*)
  1575. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1576. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1577. + # nice to cause kernel panics so lets avoid the loop below.
  1578. + # First set a reasonable default.
  1579. + lt_cv_sys_max_cmd_len=16384
  1580. + #
  1581. + if test -x /sbin/sysconfig; then
  1582. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1583. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1584. + esac
  1585. + fi
  1586. + ;;
  1587. + sco3.2v5*)
  1588. + lt_cv_sys_max_cmd_len=102400
  1589. + ;;
  1590. + sysv5* | sco5v6* | sysv4.2uw2*)
  1591. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1592. + if test -n "$kargmax"; then
  1593. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1594. + else
  1595. + lt_cv_sys_max_cmd_len=32768
  1596. + fi
  1597. + ;;
  1598. + *)
  1599. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1600. + if test -n "$lt_cv_sys_max_cmd_len"; then
  1601. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1602. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1603. + else
  1604. + # Make teststring a little bigger before we do anything with it.
  1605. + # a 1K string should be a reasonable start.
  1606. + for i in 1 2 3 4 5 6 7 8 ; do
  1607. + teststring=$teststring$teststring
  1608. + done
  1609. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1610. + # If test is not a shell built-in, we'll probably end up computing a
  1611. + # maximum length that is only half of the actual maximum length, but
  1612. + # we can't tell.
  1613. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1614. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1615. + test $i != 17 # 1/2 MB should be enough
  1616. + do
  1617. + i=`expr $i + 1`
  1618. + teststring=$teststring$teststring
  1619. + done
  1620. + # Only check the string length outside the loop.
  1621. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1622. + teststring=
  1623. + # Add a significant safety factor because C++ compilers can tack on
  1624. + # massive amounts of additional arguments before passing them to the
  1625. + # linker. It appears as though 1/2 is a usable value.
  1626. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1627. + fi
  1628. + ;;
  1629. + esac
  1630. +])
  1631. +if test -n $lt_cv_sys_max_cmd_len ; then
  1632. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1633. +else
  1634. + AC_MSG_RESULT(none)
  1635. +fi
  1636. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1637. +_LT_DECL([], [max_cmd_len], [0],
  1638. + [What is the maximum length of a command?])
  1639. +])# LT_CMD_MAX_LEN
  1640. +
  1641. +# Old name:
  1642. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1643. +dnl aclocal-1.4 backwards compatibility:
  1644. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1645. +
  1646. +
  1647. +# _LT_HEADER_DLFCN
  1648. +# ----------------
  1649. +m4_defun([_LT_HEADER_DLFCN],
  1650. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1651. +])# _LT_HEADER_DLFCN
  1652. +
  1653. +
  1654. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1655. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1656. +# ----------------------------------------------------------------
  1657. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1658. +[m4_require([_LT_HEADER_DLFCN])dnl
  1659. +if test "$cross_compiling" = yes; then :
  1660. + [$4]
  1661. +else
  1662. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1663. + lt_status=$lt_dlunknown
  1664. + cat > conftest.$ac_ext <<_LT_EOF
  1665. +[#line __oline__ "configure"
  1666. +#include "confdefs.h"
  1667. +
  1668. +#if HAVE_DLFCN_H
  1669. +#include <dlfcn.h>
  1670. +#endif
  1671. +
  1672. +#include <stdio.h>
  1673. +
  1674. +#ifdef RTLD_GLOBAL
  1675. +# define LT_DLGLOBAL RTLD_GLOBAL
  1676. +#else
  1677. +# ifdef DL_GLOBAL
  1678. +# define LT_DLGLOBAL DL_GLOBAL
  1679. +# else
  1680. +# define LT_DLGLOBAL 0
  1681. +# endif
  1682. +#endif
  1683. +
  1684. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1685. + find out it does not work in some platform. */
  1686. +#ifndef LT_DLLAZY_OR_NOW
  1687. +# ifdef RTLD_LAZY
  1688. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1689. +# else
  1690. +# ifdef DL_LAZY
  1691. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1692. +# else
  1693. +# ifdef RTLD_NOW
  1694. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  1695. +# else
  1696. +# ifdef DL_NOW
  1697. +# define LT_DLLAZY_OR_NOW DL_NOW
  1698. +# else
  1699. +# define LT_DLLAZY_OR_NOW 0
  1700. +# endif
  1701. +# endif
  1702. +# endif
  1703. +# endif
  1704. +#endif
  1705. +
  1706. +void fnord() { int i=42;}
  1707. +int main ()
  1708. +{
  1709. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1710. + int status = $lt_dlunknown;
  1711. +
  1712. + if (self)
  1713. + {
  1714. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1715. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1716. + /* dlclose (self); */
  1717. + }
  1718. + else
  1719. + puts (dlerror ());
  1720. +
  1721. + return status;
  1722. +}]
  1723. +_LT_EOF
  1724. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1725. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1726. + lt_status=$?
  1727. + case x$lt_status in
  1728. + x$lt_dlno_uscore) $1 ;;
  1729. + x$lt_dlneed_uscore) $2 ;;
  1730. + x$lt_dlunknown|x*) $3 ;;
  1731. + esac
  1732. + else :
  1733. + # compilation failed
  1734. + $3
  1735. + fi
  1736. +fi
  1737. +rm -fr conftest*
  1738. +])# _LT_TRY_DLOPEN_SELF
  1739. +
  1740. +
  1741. +# LT_SYS_DLOPEN_SELF
  1742. +# ------------------
  1743. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1744. +[m4_require([_LT_HEADER_DLFCN])dnl
  1745. +if test "x$enable_dlopen" != xyes; then
  1746. + enable_dlopen=unknown
  1747. + enable_dlopen_self=unknown
  1748. + enable_dlopen_self_static=unknown
  1749. +else
  1750. + lt_cv_dlopen=no
  1751. + lt_cv_dlopen_libs=
  1752. +
  1753. + case $host_os in
  1754. + beos*)
  1755. + lt_cv_dlopen="load_add_on"
  1756. + lt_cv_dlopen_libs=
  1757. + lt_cv_dlopen_self=yes
  1758. + ;;
  1759. +
  1760. + mingw* | pw32* | cegcc*)
  1761. + lt_cv_dlopen="LoadLibrary"
  1762. + lt_cv_dlopen_libs=
  1763. + ;;
  1764. +
  1765. + cygwin*)
  1766. + lt_cv_dlopen="dlopen"
  1767. + lt_cv_dlopen_libs=
  1768. + ;;
  1769. +
  1770. + darwin*)
  1771. + # if libdl is installed we need to link against it
  1772. + AC_CHECK_LIB([dl], [dlopen],
  1773. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1774. + lt_cv_dlopen="dyld"
  1775. + lt_cv_dlopen_libs=
  1776. + lt_cv_dlopen_self=yes
  1777. + ])
  1778. + ;;
  1779. +
  1780. + *)
  1781. + AC_CHECK_FUNC([shl_load],
  1782. + [lt_cv_dlopen="shl_load"],
  1783. + [AC_CHECK_LIB([dld], [shl_load],
  1784. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1785. + [AC_CHECK_FUNC([dlopen],
  1786. + [lt_cv_dlopen="dlopen"],
  1787. + [AC_CHECK_LIB([dl], [dlopen],
  1788. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1789. + [AC_CHECK_LIB([svld], [dlopen],
  1790. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1791. + [AC_CHECK_LIB([dld], [dld_link],
  1792. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1793. + ])
  1794. + ])
  1795. + ])
  1796. + ])
  1797. + ])
  1798. + ;;
  1799. + esac
  1800. +
  1801. + if test "x$lt_cv_dlopen" != xno; then
  1802. + enable_dlopen=yes
  1803. + else
  1804. + enable_dlopen=no
  1805. + fi
  1806. +
  1807. + case $lt_cv_dlopen in
  1808. + dlopen)
  1809. + save_CPPFLAGS="$CPPFLAGS"
  1810. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1811. +
  1812. + save_LDFLAGS="$LDFLAGS"
  1813. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1814. +
  1815. + save_LIBS="$LIBS"
  1816. + LIBS="$lt_cv_dlopen_libs $LIBS"
  1817. +
  1818. + AC_CACHE_CHECK([whether a program can dlopen itself],
  1819. + lt_cv_dlopen_self, [dnl
  1820. + _LT_TRY_DLOPEN_SELF(
  1821. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1822. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1823. + ])
  1824. +
  1825. + if test "x$lt_cv_dlopen_self" = xyes; then
  1826. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1827. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1828. + lt_cv_dlopen_self_static, [dnl
  1829. + _LT_TRY_DLOPEN_SELF(
  1830. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1831. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1832. + ])
  1833. + fi
  1834. +
  1835. + CPPFLAGS="$save_CPPFLAGS"
  1836. + LDFLAGS="$save_LDFLAGS"
  1837. + LIBS="$save_LIBS"
  1838. + ;;
  1839. + esac
  1840. +
  1841. + case $lt_cv_dlopen_self in
  1842. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1843. + *) enable_dlopen_self=unknown ;;
  1844. + esac
  1845. +
  1846. + case $lt_cv_dlopen_self_static in
  1847. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1848. + *) enable_dlopen_self_static=unknown ;;
  1849. + esac
  1850. +fi
  1851. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1852. + [Whether dlopen is supported])
  1853. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1854. + [Whether dlopen of programs is supported])
  1855. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1856. + [Whether dlopen of statically linked programs is supported])
  1857. +])# LT_SYS_DLOPEN_SELF
  1858. +
  1859. +# Old name:
  1860. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1861. +dnl aclocal-1.4 backwards compatibility:
  1862. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1863. +
  1864. +
  1865. +# _LT_COMPILER_C_O([TAGNAME])
  1866. +# ---------------------------
  1867. +# Check to see if options -c and -o are simultaneously supported by compiler.
  1868. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1869. +m4_defun([_LT_COMPILER_C_O],
  1870. +[m4_require([_LT_DECL_SED])dnl
  1871. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1872. +m4_require([_LT_TAG_COMPILER])dnl
  1873. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1874. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1875. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1876. + $RM -r conftest 2>/dev/null
  1877. + mkdir conftest
  1878. + cd conftest
  1879. + mkdir out
  1880. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1881. +
  1882. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  1883. + # Insert the option either (1) after the last *FLAGS variable, or
  1884. + # (2) before a word containing "conftest.", or (3) at the end.
  1885. + # Note that $ac_compile itself does not contain backslashes and begins
  1886. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1887. + lt_compile=`echo "$ac_compile" | $SED \
  1888. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1889. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1890. + -e 's:$: $lt_compiler_flag:'`
  1891. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1892. + (eval "$lt_compile" 2>out/conftest.err)
  1893. + ac_status=$?
  1894. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1895. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1896. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1897. + then
  1898. + # The compiler can only warn and ignore the option if not recognized
  1899. + # So say no if there are warnings
  1900. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1901. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1902. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1903. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1904. + fi
  1905. + fi
  1906. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1907. + $RM conftest*
  1908. + # SGI C++ compiler will create directory out/ii_files/ for
  1909. + # template instantiation
  1910. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1911. + $RM out/* && rmdir out
  1912. + cd ..
  1913. + $RM -r conftest
  1914. + $RM conftest*
  1915. +])
  1916. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1917. + [Does compiler simultaneously support -c and -o options?])
  1918. +])# _LT_COMPILER_C_O
  1919. +
  1920. +
  1921. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1922. +# ----------------------------------
  1923. +# Check to see if we can do hard links to lock some files if needed
  1924. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  1925. +[m4_require([_LT_ENABLE_LOCK])dnl
  1926. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1927. +_LT_COMPILER_C_O([$1])
  1928. +
  1929. +hard_links="nottested"
  1930. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1931. + # do not overwrite the value of need_locks provided by the user
  1932. + AC_MSG_CHECKING([if we can lock with hard links])
  1933. + hard_links=yes
  1934. + $RM conftest*
  1935. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1936. + touch conftest.a
  1937. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1938. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1939. + AC_MSG_RESULT([$hard_links])
  1940. + if test "$hard_links" = no; then
  1941. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1942. + need_locks=warn
  1943. + fi
  1944. +else
  1945. + need_locks=no
  1946. +fi
  1947. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1948. +])# _LT_COMPILER_FILE_LOCKS
  1949. +
  1950. +
  1951. +# _LT_CHECK_OBJDIR
  1952. +# ----------------
  1953. +m4_defun([_LT_CHECK_OBJDIR],
  1954. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1955. +[rm -f .libs 2>/dev/null
  1956. +mkdir .libs 2>/dev/null
  1957. +if test -d .libs; then
  1958. + lt_cv_objdir=.libs
  1959. +else
  1960. + # MS-DOS does not allow filenames that begin with a dot.
  1961. + lt_cv_objdir=_libs
  1962. +fi
  1963. +rmdir .libs 2>/dev/null])
  1964. +objdir=$lt_cv_objdir
  1965. +_LT_DECL([], [objdir], [0],
  1966. + [The name of the directory that contains temporary libtool files])dnl
  1967. +m4_pattern_allow([LT_OBJDIR])dnl
  1968. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1969. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1970. +])# _LT_CHECK_OBJDIR
  1971. +
  1972. +
  1973. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1974. +# --------------------------------------
  1975. +# Check hardcoding attributes.
  1976. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1977. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1978. +_LT_TAGVAR(hardcode_action, $1)=
  1979. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1980. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1981. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1982. +
  1983. + # We can hardcode non-existent directories.
  1984. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1985. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1986. + # have to relink, otherwise we might link with an installed library
  1987. + # when we should be linking with a yet-to-be-installed one
  1988. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1989. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1990. + # Linking always hardcodes the temporary library directory.
  1991. + _LT_TAGVAR(hardcode_action, $1)=relink
  1992. + else
  1993. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1994. + _LT_TAGVAR(hardcode_action, $1)=immediate
  1995. + fi
  1996. +else
  1997. + # We cannot hardcode anything, or else we can only hardcode existing
  1998. + # directories.
  1999. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2000. +fi
  2001. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2002. +
  2003. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2004. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2005. + # Fast installation is not supported
  2006. + enable_fast_install=no
  2007. +elif test "$shlibpath_overrides_runpath" = yes ||
  2008. + test "$enable_shared" = no; then
  2009. + # Fast installation is not necessary
  2010. + enable_fast_install=needless
  2011. +fi
  2012. +_LT_TAGDECL([], [hardcode_action], [0],
  2013. + [How to hardcode a shared library path into an executable])
  2014. +])# _LT_LINKER_HARDCODE_LIBPATH
  2015. +
  2016. +
  2017. +# _LT_CMD_STRIPLIB
  2018. +# ----------------
  2019. +m4_defun([_LT_CMD_STRIPLIB],
  2020. +[m4_require([_LT_DECL_EGREP])
  2021. +striplib=
  2022. +old_striplib=
  2023. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2024. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2025. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2026. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2027. + AC_MSG_RESULT([yes])
  2028. +else
  2029. +# FIXME - insert some real tests, host_os isn't really good enough
  2030. + case $host_os in
  2031. + darwin*)
  2032. + if test -n "$STRIP" ; then
  2033. + striplib="$STRIP -x"
  2034. + old_striplib="$STRIP -S"
  2035. + AC_MSG_RESULT([yes])
  2036. + else
  2037. + AC_MSG_RESULT([no])
  2038. + fi
  2039. + ;;
  2040. + *)
  2041. + AC_MSG_RESULT([no])
  2042. + ;;
  2043. + esac
  2044. +fi
  2045. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2046. +_LT_DECL([], [striplib], [1])
  2047. +])# _LT_CMD_STRIPLIB
  2048. +
  2049. +
  2050. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2051. +# -----------------------------
  2052. +# PORTME Fill in your ld.so characteristics
  2053. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2054. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2055. +m4_require([_LT_DECL_EGREP])dnl
  2056. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2057. +m4_require([_LT_DECL_OBJDUMP])dnl
  2058. +m4_require([_LT_DECL_SED])dnl
  2059. +AC_MSG_CHECKING([dynamic linker characteristics])
  2060. +m4_if([$1],
  2061. + [], [
  2062. +if test "$GCC" = yes; then
  2063. + case $host_os in
  2064. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2065. + *) lt_awk_arg="/^libraries:/" ;;
  2066. + esac
  2067. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2068. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2069. + # if the path contains ";" then we assume it to be the separator
  2070. + # otherwise default to the standard path separator (i.e. ":") - it is
  2071. + # assumed that no part of a normal pathname contains ";" but that should
  2072. + # okay in the real world where ";" in dirpaths is itself problematic.
  2073. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2074. + else
  2075. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2076. + fi
  2077. + # Ok, now we have the path, separated by spaces, we can step through it
  2078. + # and add multilib dir if necessary.
  2079. + lt_tmp_lt_search_path_spec=
  2080. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2081. + for lt_sys_path in $lt_search_path_spec; do
  2082. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2083. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2084. + else
  2085. + test -d "$lt_sys_path" && \
  2086. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2087. + fi
  2088. + done
  2089. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2090. +BEGIN {RS=" "; FS="/|\n";} {
  2091. + lt_foo="";
  2092. + lt_count=0;
  2093. + for (lt_i = NF; lt_i > 0; lt_i--) {
  2094. + if ($lt_i != "" && $lt_i != ".") {
  2095. + if ($lt_i == "..") {
  2096. + lt_count++;
  2097. + } else {
  2098. + if (lt_count == 0) {
  2099. + lt_foo="/" $lt_i lt_foo;
  2100. + } else {
  2101. + lt_count--;
  2102. + }
  2103. + }
  2104. + }
  2105. + }
  2106. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2107. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2108. +}'`
  2109. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2110. +else
  2111. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2112. +fi])
  2113. +library_names_spec=
  2114. +libname_spec='lib$name'
  2115. +soname_spec=
  2116. +shrext_cmds=".so"
  2117. +postinstall_cmds=
  2118. +postuninstall_cmds=
  2119. +finish_cmds=
  2120. +finish_eval=
  2121. +shlibpath_var=
  2122. +shlibpath_overrides_runpath=unknown
  2123. +version_type=none
  2124. +dynamic_linker="$host_os ld.so"
  2125. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2126. +need_lib_prefix=unknown
  2127. +hardcode_into_libs=no
  2128. +
  2129. +# when you set need_version to no, make sure it does not cause -set_version
  2130. +# flags to be left without arguments
  2131. +need_version=unknown
  2132. +
  2133. +case $host_os in
  2134. +aix3*)
  2135. + version_type=linux
  2136. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2137. + shlibpath_var=LIBPATH
  2138. +
  2139. + # AIX 3 has no versioning support, so we append a major version to the name.
  2140. + soname_spec='${libname}${release}${shared_ext}$major'
  2141. + ;;
  2142. +
  2143. +aix[[4-9]]*)
  2144. + version_type=linux
  2145. + need_lib_prefix=no
  2146. + need_version=no
  2147. + hardcode_into_libs=yes
  2148. + if test "$host_cpu" = ia64; then
  2149. + # AIX 5 supports IA64
  2150. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2151. + shlibpath_var=LD_LIBRARY_PATH
  2152. + else
  2153. + # With GCC up to 2.95.x, collect2 would create an import file
  2154. + # for dependence libraries. The import file would start with
  2155. + # the line `#! .'. This would cause the generated library to
  2156. + # depend on `.', always an invalid library. This was fixed in
  2157. + # development snapshots of GCC prior to 3.0.
  2158. + case $host_os in
  2159. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2160. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2161. + echo ' yes '
  2162. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2163. + :
  2164. + else
  2165. + can_build_shared=no
  2166. + fi
  2167. + ;;
  2168. + esac
  2169. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2170. + # soname into executable. Probably we can add versioning support to
  2171. + # collect2, so additional links can be useful in future.
  2172. + if test "$aix_use_runtimelinking" = yes; then
  2173. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2174. + # instead of lib<name>.a to let people know that these are not
  2175. + # typical AIX shared libraries.
  2176. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2177. + else
  2178. + # We preserve .a as extension for shared libraries through AIX4.2
  2179. + # and later when we are not doing run time linking.
  2180. + library_names_spec='${libname}${release}.a $libname.a'
  2181. + soname_spec='${libname}${release}${shared_ext}$major'
  2182. + fi
  2183. + shlibpath_var=LIBPATH
  2184. + fi
  2185. + ;;
  2186. +
  2187. +amigaos*)
  2188. + case $host_cpu in
  2189. + powerpc)
  2190. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2191. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2192. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2193. + ;;
  2194. + m68k)
  2195. + library_names_spec='$libname.ixlibrary $libname.a'
  2196. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2197. + 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'
  2198. + ;;
  2199. + esac
  2200. + ;;
  2201. +
  2202. +beos*)
  2203. + library_names_spec='${libname}${shared_ext}'
  2204. + dynamic_linker="$host_os ld.so"
  2205. + shlibpath_var=LIBRARY_PATH
  2206. + ;;
  2207. +
  2208. +bsdi[[45]]*)
  2209. + version_type=linux
  2210. + need_version=no
  2211. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2212. + soname_spec='${libname}${release}${shared_ext}$major'
  2213. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2214. + shlibpath_var=LD_LIBRARY_PATH
  2215. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2216. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2217. + # the default ld.so.conf also contains /usr/contrib/lib and
  2218. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2219. + # libtool to hard-code these into programs
  2220. + ;;
  2221. +
  2222. +cygwin* | mingw* | pw32* | cegcc*)
  2223. + version_type=windows
  2224. + shrext_cmds=".dll"
  2225. + need_version=no
  2226. + need_lib_prefix=no
  2227. +
  2228. + case $GCC,$host_os in
  2229. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2230. + library_names_spec='$libname.dll.a'
  2231. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2232. + postinstall_cmds='base_file=`basename \${file}`~
  2233. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2234. + dldir=$destdir/`dirname \$dlpath`~
  2235. + test -d \$dldir || mkdir -p \$dldir~
  2236. + $install_prog $dir/$dlname \$dldir/$dlname~
  2237. + chmod a+x \$dldir/$dlname~
  2238. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2239. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2240. + fi'
  2241. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2242. + dlpath=$dir/\$dldll~
  2243. + $RM \$dlpath'
  2244. + shlibpath_overrides_runpath=yes
  2245. +
  2246. + case $host_os in
  2247. + cygwin*)
  2248. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2249. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2250. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2251. + ;;
  2252. + mingw* | cegcc*)
  2253. + # MinGW DLLs use traditional 'lib' prefix
  2254. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2255. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2256. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2257. + # It is most probably a Windows format PATH printed by
  2258. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2259. + # path with ; separators, and with drive letters. We can handle the
  2260. + # drive letters (cygwin fileutils understands them), so leave them,
  2261. + # especially as we might pass files found there to a mingw objdump,
  2262. + # which wouldn't understand a cygwinified path. Ahh.
  2263. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2264. + else
  2265. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2266. + fi
  2267. + ;;
  2268. + pw32*)
  2269. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  2270. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2271. + ;;
  2272. + esac
  2273. + ;;
  2274. +
  2275. + *)
  2276. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2277. + ;;
  2278. + esac
  2279. + dynamic_linker='Win32 ld.exe'
  2280. + # FIXME: first we should search . and the directory the executable is in
  2281. + shlibpath_var=PATH
  2282. + ;;
  2283. +
  2284. +darwin* | rhapsody*)
  2285. + dynamic_linker="$host_os dyld"
  2286. + version_type=darwin
  2287. + need_lib_prefix=no
  2288. + need_version=no
  2289. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2290. + soname_spec='${libname}${release}${major}$shared_ext'
  2291. + shlibpath_overrides_runpath=yes
  2292. + shlibpath_var=DYLD_LIBRARY_PATH
  2293. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2294. +m4_if([$1], [],[
  2295. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2296. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2297. + ;;
  2298. +
  2299. +dgux*)
  2300. + version_type=linux
  2301. + need_lib_prefix=no
  2302. + need_version=no
  2303. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2304. + soname_spec='${libname}${release}${shared_ext}$major'
  2305. + shlibpath_var=LD_LIBRARY_PATH
  2306. + ;;
  2307. +
  2308. +freebsd1*)
  2309. + dynamic_linker=no
  2310. + ;;
  2311. +
  2312. +freebsd* | dragonfly*)
  2313. + # DragonFly does not have aout. When/if they implement a new
  2314. + # versioning mechanism, adjust this.
  2315. + if test -x /usr/bin/objformat; then
  2316. + objformat=`/usr/bin/objformat`
  2317. + else
  2318. + case $host_os in
  2319. + freebsd[[123]]*) objformat=aout ;;
  2320. + *) objformat=elf ;;
  2321. + esac
  2322. + fi
  2323. + version_type=freebsd-$objformat
  2324. + case $version_type in
  2325. + freebsd-elf*)
  2326. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2327. + need_version=no
  2328. + need_lib_prefix=no
  2329. + ;;
  2330. + freebsd-*)
  2331. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2332. + need_version=yes
  2333. + ;;
  2334. + esac
  2335. + shlibpath_var=LD_LIBRARY_PATH
  2336. + case $host_os in
  2337. + freebsd2*)
  2338. + shlibpath_overrides_runpath=yes
  2339. + ;;
  2340. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2341. + shlibpath_overrides_runpath=yes
  2342. + hardcode_into_libs=yes
  2343. + ;;
  2344. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2345. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2346. + shlibpath_overrides_runpath=no
  2347. + hardcode_into_libs=yes
  2348. + ;;
  2349. + *) # from 4.6 on, and DragonFly
  2350. + shlibpath_overrides_runpath=yes
  2351. + hardcode_into_libs=yes
  2352. + ;;
  2353. + esac
  2354. + ;;
  2355. +
  2356. +gnu*)
  2357. + version_type=linux
  2358. + need_lib_prefix=no
  2359. + need_version=no
  2360. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2361. + soname_spec='${libname}${release}${shared_ext}$major'
  2362. + shlibpath_var=LD_LIBRARY_PATH
  2363. + hardcode_into_libs=yes
  2364. + ;;
  2365. +
  2366. +hpux9* | hpux10* | hpux11*)
  2367. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2368. + # link against other versions.
  2369. + version_type=sunos
  2370. + need_lib_prefix=no
  2371. + need_version=no
  2372. + case $host_cpu in
  2373. + ia64*)
  2374. + shrext_cmds='.so'
  2375. + hardcode_into_libs=yes
  2376. + dynamic_linker="$host_os dld.so"
  2377. + shlibpath_var=LD_LIBRARY_PATH
  2378. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2379. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2380. + soname_spec='${libname}${release}${shared_ext}$major'
  2381. + if test "X$HPUX_IA64_MODE" = X32; then
  2382. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2383. + else
  2384. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2385. + fi
  2386. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2387. + ;;
  2388. + hppa*64*)
  2389. + shrext_cmds='.sl'
  2390. + hardcode_into_libs=yes
  2391. + dynamic_linker="$host_os dld.sl"
  2392. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2393. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2394. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2395. + soname_spec='${libname}${release}${shared_ext}$major'
  2396. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2397. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2398. + ;;
  2399. + *)
  2400. + shrext_cmds='.sl'
  2401. + dynamic_linker="$host_os dld.sl"
  2402. + shlibpath_var=SHLIB_PATH
  2403. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2404. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2405. + soname_spec='${libname}${release}${shared_ext}$major'
  2406. + ;;
  2407. + esac
  2408. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2409. + postinstall_cmds='chmod 555 $lib'
  2410. + ;;
  2411. +
  2412. +interix[[3-9]]*)
  2413. + version_type=linux
  2414. + need_lib_prefix=no
  2415. + need_version=no
  2416. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2417. + soname_spec='${libname}${release}${shared_ext}$major'
  2418. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2419. + shlibpath_var=LD_LIBRARY_PATH
  2420. + shlibpath_overrides_runpath=no
  2421. + hardcode_into_libs=yes
  2422. + ;;
  2423. +
  2424. +irix5* | irix6* | nonstopux*)
  2425. + case $host_os in
  2426. + nonstopux*) version_type=nonstopux ;;
  2427. + *)
  2428. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2429. + version_type=linux
  2430. + else
  2431. + version_type=irix
  2432. + fi ;;
  2433. + esac
  2434. + need_lib_prefix=no
  2435. + need_version=no
  2436. + soname_spec='${libname}${release}${shared_ext}$major'
  2437. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2438. + case $host_os in
  2439. + irix5* | nonstopux*)
  2440. + libsuff= shlibsuff=
  2441. + ;;
  2442. + *)
  2443. + case $LD in # libtool.m4 will add one of these switches to LD
  2444. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2445. + libsuff= shlibsuff= libmagic=32-bit;;
  2446. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2447. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  2448. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2449. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2450. + *) libsuff= shlibsuff= libmagic=never-match;;
  2451. + esac
  2452. + ;;
  2453. + esac
  2454. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2455. + shlibpath_overrides_runpath=no
  2456. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2457. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2458. + hardcode_into_libs=yes
  2459. + ;;
  2460. +
  2461. +# No shared lib support for Linux oldld, aout, or coff.
  2462. +linux*oldld* | linux*aout* | linux*coff*)
  2463. + dynamic_linker=no
  2464. + ;;
  2465. +
  2466. +# This must be Linux ELF.
  2467. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2468. + version_type=linux
  2469. + need_lib_prefix=no
  2470. + need_version=no
  2471. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2472. + soname_spec='${libname}${release}${shared_ext}$major'
  2473. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2474. + shlibpath_var=LD_LIBRARY_PATH
  2475. + shlibpath_overrides_runpath=no
  2476. + # Some binutils ld are patched to set DT_RUNPATH
  2477. + save_LDFLAGS=$LDFLAGS
  2478. + save_libdir=$libdir
  2479. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2480. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2481. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2482. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2483. + [shlibpath_overrides_runpath=yes])])
  2484. + LDFLAGS=$save_LDFLAGS
  2485. + libdir=$save_libdir
  2486. +
  2487. + # This implies no fast_install, which is unacceptable.
  2488. + # Some rework will be needed to allow for fast_install
  2489. + # before this can be enabled.
  2490. + hardcode_into_libs=yes
  2491. +
  2492. + # Append ld.so.conf contents to the search path
  2493. + if test -f /etc/ld.so.conf; then
  2494. + 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' ' '`
  2495. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2496. + fi
  2497. +
  2498. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2499. + # powerpc, because MkLinux only supported shared libraries with the
  2500. + # GNU dynamic linker. Since this was broken with cross compilers,
  2501. + # most powerpc-linux boxes support dynamic linking these days and
  2502. + # people can always --disable-shared, the test was removed, and we
  2503. + # assume the GNU/Linux dynamic linker is in use.
  2504. + dynamic_linker='GNU/Linux ld.so'
  2505. + ;;
  2506. +
  2507. +netbsdelf*-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='NetBSD ld.elf_so'
  2517. + ;;
  2518. +
  2519. +netbsd*)
  2520. + version_type=sunos
  2521. + need_lib_prefix=no
  2522. + need_version=no
  2523. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2524. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2525. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2526. + dynamic_linker='NetBSD (a.out) ld.so'
  2527. + else
  2528. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2529. + soname_spec='${libname}${release}${shared_ext}$major'
  2530. + dynamic_linker='NetBSD ld.elf_so'
  2531. + fi
  2532. + shlibpath_var=LD_LIBRARY_PATH
  2533. + shlibpath_overrides_runpath=yes
  2534. + hardcode_into_libs=yes
  2535. + ;;
  2536. +
  2537. +newsos6)
  2538. + version_type=linux
  2539. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2540. + shlibpath_var=LD_LIBRARY_PATH
  2541. + shlibpath_overrides_runpath=yes
  2542. + ;;
  2543. +
  2544. +*nto* | *qnx*)
  2545. + version_type=qnx
  2546. + need_lib_prefix=no
  2547. + need_version=no
  2548. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2549. + soname_spec='${libname}${release}${shared_ext}$major'
  2550. + shlibpath_var=LD_LIBRARY_PATH
  2551. + shlibpath_overrides_runpath=no
  2552. + hardcode_into_libs=yes
  2553. + dynamic_linker='ldqnx.so'
  2554. + ;;
  2555. +
  2556. +openbsd*)
  2557. + version_type=sunos
  2558. + sys_lib_dlsearch_path_spec="/usr/lib"
  2559. + need_lib_prefix=no
  2560. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2561. + case $host_os in
  2562. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2563. + *) need_version=no ;;
  2564. + esac
  2565. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2566. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2567. + shlibpath_var=LD_LIBRARY_PATH
  2568. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2569. + case $host_os in
  2570. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2571. + shlibpath_overrides_runpath=no
  2572. + ;;
  2573. + *)
  2574. + shlibpath_overrides_runpath=yes
  2575. + ;;
  2576. + esac
  2577. + else
  2578. + shlibpath_overrides_runpath=yes
  2579. + fi
  2580. + ;;
  2581. +
  2582. +os2*)
  2583. + libname_spec='$name'
  2584. + shrext_cmds=".dll"
  2585. + need_lib_prefix=no
  2586. + library_names_spec='$libname${shared_ext} $libname.a'
  2587. + dynamic_linker='OS/2 ld.exe'
  2588. + shlibpath_var=LIBPATH
  2589. + ;;
  2590. +
  2591. +osf3* | osf4* | osf5*)
  2592. + version_type=osf
  2593. + need_lib_prefix=no
  2594. + need_version=no
  2595. + soname_spec='${libname}${release}${shared_ext}$major'
  2596. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2597. + shlibpath_var=LD_LIBRARY_PATH
  2598. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2599. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2600. + ;;
  2601. +
  2602. +rdos*)
  2603. + dynamic_linker=no
  2604. + ;;
  2605. +
  2606. +solaris*)
  2607. + version_type=linux
  2608. + need_lib_prefix=no
  2609. + need_version=no
  2610. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2611. + soname_spec='${libname}${release}${shared_ext}$major'
  2612. + shlibpath_var=LD_LIBRARY_PATH
  2613. + shlibpath_overrides_runpath=yes
  2614. + hardcode_into_libs=yes
  2615. + # ldd complains unless libraries are executable
  2616. + postinstall_cmds='chmod +x $lib'
  2617. + ;;
  2618. +
  2619. +sunos4*)
  2620. + version_type=sunos
  2621. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2622. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2623. + shlibpath_var=LD_LIBRARY_PATH
  2624. + shlibpath_overrides_runpath=yes
  2625. + if test "$with_gnu_ld" = yes; then
  2626. + need_lib_prefix=no
  2627. + fi
  2628. + need_version=yes
  2629. + ;;
  2630. +
  2631. +sysv4 | sysv4.3*)
  2632. + version_type=linux
  2633. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2634. + soname_spec='${libname}${release}${shared_ext}$major'
  2635. + shlibpath_var=LD_LIBRARY_PATH
  2636. + case $host_vendor in
  2637. + sni)
  2638. + shlibpath_overrides_runpath=no
  2639. + need_lib_prefix=no
  2640. + runpath_var=LD_RUN_PATH
  2641. + ;;
  2642. + siemens)
  2643. + need_lib_prefix=no
  2644. + ;;
  2645. + motorola)
  2646. + need_lib_prefix=no
  2647. + need_version=no
  2648. + shlibpath_overrides_runpath=no
  2649. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2650. + ;;
  2651. + esac
  2652. + ;;
  2653. +
  2654. +sysv4*MP*)
  2655. + if test -d /usr/nec ;then
  2656. + version_type=linux
  2657. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2658. + soname_spec='$libname${shared_ext}.$major'
  2659. + shlibpath_var=LD_LIBRARY_PATH
  2660. + fi
  2661. + ;;
  2662. +
  2663. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2664. + version_type=freebsd-elf
  2665. + need_lib_prefix=no
  2666. + need_version=no
  2667. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2668. + soname_spec='${libname}${release}${shared_ext}$major'
  2669. + shlibpath_var=LD_LIBRARY_PATH
  2670. + shlibpath_overrides_runpath=yes
  2671. + hardcode_into_libs=yes
  2672. + if test "$with_gnu_ld" = yes; then
  2673. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2674. + else
  2675. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2676. + case $host_os in
  2677. + sco3.2v5*)
  2678. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2679. + ;;
  2680. + esac
  2681. + fi
  2682. + sys_lib_dlsearch_path_spec='/usr/lib'
  2683. + ;;
  2684. +
  2685. +tpf*)
  2686. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2687. + version_type=linux
  2688. + need_lib_prefix=no
  2689. + need_version=no
  2690. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2691. + shlibpath_var=LD_LIBRARY_PATH
  2692. + shlibpath_overrides_runpath=no
  2693. + hardcode_into_libs=yes
  2694. + ;;
  2695. +
  2696. +uts4*)
  2697. + version_type=linux
  2698. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2699. + soname_spec='${libname}${release}${shared_ext}$major'
  2700. + shlibpath_var=LD_LIBRARY_PATH
  2701. + ;;
  2702. +
  2703. +*)
  2704. + dynamic_linker=no
  2705. + ;;
  2706. +esac
  2707. +AC_MSG_RESULT([$dynamic_linker])
  2708. +test "$dynamic_linker" = no && can_build_shared=no
  2709. +
  2710. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2711. +if test "$GCC" = yes; then
  2712. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2713. +fi
  2714. +
  2715. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2716. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2717. +fi
  2718. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2719. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2720. +fi
  2721. +
  2722. +_LT_DECL([], [variables_saved_for_relink], [1],
  2723. + [Variables whose values should be saved in libtool wrapper scripts and
  2724. + restored at link time])
  2725. +_LT_DECL([], [need_lib_prefix], [0],
  2726. + [Do we need the "lib" prefix for modules?])
  2727. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2728. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2729. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2730. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2731. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2732. + [Is shlibpath searched before the hard-coded library search path?])
  2733. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2734. +_LT_DECL([], [library_names_spec], [1],
  2735. + [[List of archive names. First name is the real one, the rest are links.
  2736. + The last name is the one that the linker finds with -lNAME]])
  2737. +_LT_DECL([], [soname_spec], [1],
  2738. + [[The coded name of the library, if different from the real name]])
  2739. +_LT_DECL([], [postinstall_cmds], [2],
  2740. + [Command to use after installation of a shared archive])
  2741. +_LT_DECL([], [postuninstall_cmds], [2],
  2742. + [Command to use after uninstallation of a shared archive])
  2743. +_LT_DECL([], [finish_cmds], [2],
  2744. + [Commands used to finish a libtool library installation in a directory])
  2745. +_LT_DECL([], [finish_eval], [1],
  2746. + [[As "finish_cmds", except a single script fragment to be evaled but
  2747. + not shown]])
  2748. +_LT_DECL([], [hardcode_into_libs], [0],
  2749. + [Whether we should hardcode library paths into libraries])
  2750. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2751. + [Compile-time system search path for libraries])
  2752. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2753. + [Run-time system search path for libraries])
  2754. +])# _LT_SYS_DYNAMIC_LINKER
  2755. +
  2756. +
  2757. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2758. +# --------------------------
  2759. +# find a file program which can recognize shared library
  2760. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2761. +[m4_require([_LT_DECL_EGREP])dnl
  2762. +AC_MSG_CHECKING([for $1])
  2763. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2764. +[case $MAGIC_CMD in
  2765. +[[\\/*] | ?:[\\/]*])
  2766. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2767. + ;;
  2768. +*)
  2769. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  2770. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2771. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  2772. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  2773. +dnl not every word. This closes a longstanding sh security hole.
  2774. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2775. + for ac_dir in $ac_dummy; do
  2776. + IFS="$lt_save_ifs"
  2777. + test -z "$ac_dir" && ac_dir=.
  2778. + if test -f $ac_dir/$1; then
  2779. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2780. + if test -n "$file_magic_test_file"; then
  2781. + case $deplibs_check_method in
  2782. + "file_magic "*)
  2783. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2784. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2785. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2786. + $EGREP "$file_magic_regex" > /dev/null; then
  2787. + :
  2788. + else
  2789. + cat <<_LT_EOF 1>&2
  2790. +
  2791. +*** Warning: the command libtool uses to detect shared libraries,
  2792. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  2793. +*** The result is that libtool may fail to recognize shared libraries
  2794. +*** as such. This will affect the creation of libtool libraries that
  2795. +*** depend on shared libraries, but programs linked with such libtool
  2796. +*** libraries will work regardless of this problem. Nevertheless, you
  2797. +*** may want to report the problem to your system manager and/or to
  2798. +*** bug-libtool@gnu.org
  2799. +
  2800. +_LT_EOF
  2801. + fi ;;
  2802. + esac
  2803. + fi
  2804. + break
  2805. + fi
  2806. + done
  2807. + IFS="$lt_save_ifs"
  2808. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  2809. + ;;
  2810. +esac])
  2811. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2812. +if test -n "$MAGIC_CMD"; then
  2813. + AC_MSG_RESULT($MAGIC_CMD)
  2814. +else
  2815. + AC_MSG_RESULT(no)
  2816. +fi
  2817. +_LT_DECL([], [MAGIC_CMD], [0],
  2818. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2819. +])# _LT_PATH_TOOL_PREFIX
  2820. +
  2821. +# Old name:
  2822. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2823. +dnl aclocal-1.4 backwards compatibility:
  2824. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2825. +
  2826. +
  2827. +# _LT_PATH_MAGIC
  2828. +# --------------
  2829. +# find a file program which can recognize a shared library
  2830. +m4_defun([_LT_PATH_MAGIC],
  2831. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2832. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  2833. + if test -n "$ac_tool_prefix"; then
  2834. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2835. + else
  2836. + MAGIC_CMD=:
  2837. + fi
  2838. +fi
  2839. +])# _LT_PATH_MAGIC
  2840. +
  2841. +
  2842. +# LT_PATH_LD
  2843. +# ----------
  2844. +# find the pathname to the GNU or non-GNU linker
  2845. +AC_DEFUN([LT_PATH_LD],
  2846. +[AC_REQUIRE([AC_PROG_CC])dnl
  2847. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2848. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2849. +m4_require([_LT_DECL_SED])dnl
  2850. +m4_require([_LT_DECL_EGREP])dnl
  2851. +
  2852. +AC_ARG_WITH([gnu-ld],
  2853. + [AS_HELP_STRING([--with-gnu-ld],
  2854. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2855. + [test "$withval" = no || with_gnu_ld=yes],
  2856. + [with_gnu_ld=no])dnl
  2857. +
  2858. +ac_prog=ld
  2859. +if test "$GCC" = yes; then
  2860. + # Check if gcc -print-prog-name=ld gives a path.
  2861. + AC_MSG_CHECKING([for ld used by $CC])
  2862. + case $host in
  2863. + *-*-mingw*)
  2864. + # gcc leaves a trailing carriage return which upsets mingw
  2865. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2866. + *)
  2867. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2868. + esac
  2869. + case $ac_prog in
  2870. + # Accept absolute paths.
  2871. + [[\\/]]* | ?:[[\\/]]*)
  2872. + re_direlt='/[[^/]][[^/]]*/\.\./'
  2873. + # Canonicalize the pathname of ld
  2874. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2875. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2876. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2877. + done
  2878. + test -z "$LD" && LD="$ac_prog"
  2879. + ;;
  2880. + "")
  2881. + # If it fails, then pretend we aren't using GCC.
  2882. + ac_prog=ld
  2883. + ;;
  2884. + *)
  2885. + # If it is relative, then search for the first ld in PATH.
  2886. + with_gnu_ld=unknown
  2887. + ;;
  2888. + esac
  2889. +elif test "$with_gnu_ld" = yes; then
  2890. + AC_MSG_CHECKING([for GNU ld])
  2891. +else
  2892. + AC_MSG_CHECKING([for non-GNU ld])
  2893. +fi
  2894. +AC_CACHE_VAL(lt_cv_path_LD,
  2895. +[if test -z "$LD"; then
  2896. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2897. + for ac_dir in $PATH; do
  2898. + IFS="$lt_save_ifs"
  2899. + test -z "$ac_dir" && ac_dir=.
  2900. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2901. + lt_cv_path_LD="$ac_dir/$ac_prog"
  2902. + # Check to see if the program is GNU ld. I'd rather use --version,
  2903. + # but apparently some variants of GNU ld only accept -v.
  2904. + # Break only if it was the GNU/non-GNU ld that we prefer.
  2905. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2906. + *GNU* | *'with BFD'*)
  2907. + test "$with_gnu_ld" != no && break
  2908. + ;;
  2909. + *)
  2910. + test "$with_gnu_ld" != yes && break
  2911. + ;;
  2912. + esac
  2913. + fi
  2914. + done
  2915. + IFS="$lt_save_ifs"
  2916. +else
  2917. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2918. +fi])
  2919. +LD="$lt_cv_path_LD"
  2920. +if test -n "$LD"; then
  2921. + AC_MSG_RESULT($LD)
  2922. +else
  2923. + AC_MSG_RESULT(no)
  2924. +fi
  2925. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2926. +_LT_PATH_LD_GNU
  2927. +AC_SUBST([LD])
  2928. +
  2929. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2930. +])# LT_PATH_LD
  2931. +
  2932. +# Old names:
  2933. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2934. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2935. +dnl aclocal-1.4 backwards compatibility:
  2936. +dnl AC_DEFUN([AM_PROG_LD], [])
  2937. +dnl AC_DEFUN([AC_PROG_LD], [])
  2938. +
  2939. +
  2940. +# _LT_PATH_LD_GNU
  2941. +#- --------------
  2942. +m4_defun([_LT_PATH_LD_GNU],
  2943. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2944. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2945. +case `$LD -v 2>&1 </dev/null` in
  2946. +*GNU* | *'with BFD'*)
  2947. + lt_cv_prog_gnu_ld=yes
  2948. + ;;
  2949. +*)
  2950. + lt_cv_prog_gnu_ld=no
  2951. + ;;
  2952. +esac])
  2953. +with_gnu_ld=$lt_cv_prog_gnu_ld
  2954. +])# _LT_PATH_LD_GNU
  2955. +
  2956. +
  2957. +# _LT_CMD_RELOAD
  2958. +# --------------
  2959. +# find reload flag for linker
  2960. +# -- PORTME Some linkers may need a different reload flag.
  2961. +m4_defun([_LT_CMD_RELOAD],
  2962. +[AC_CACHE_CHECK([for $LD option to reload object files],
  2963. + lt_cv_ld_reload_flag,
  2964. + [lt_cv_ld_reload_flag='-r'])
  2965. +reload_flag=$lt_cv_ld_reload_flag
  2966. +case $reload_flag in
  2967. +"" | " "*) ;;
  2968. +*) reload_flag=" $reload_flag" ;;
  2969. +esac
  2970. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2971. +case $host_os in
  2972. + darwin*)
  2973. + if test "$GCC" = yes; then
  2974. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2975. + else
  2976. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2977. + fi
  2978. + ;;
  2979. +esac
  2980. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2981. +_LT_DECL([], [reload_cmds], [2])dnl
  2982. +])# _LT_CMD_RELOAD
  2983. +
  2984. +
  2985. +# _LT_CHECK_MAGIC_METHOD
  2986. +# ----------------------
  2987. +# how to check for library dependencies
  2988. +# -- PORTME fill in with the dynamic library characteristics
  2989. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  2990. +[m4_require([_LT_DECL_EGREP])
  2991. +m4_require([_LT_DECL_OBJDUMP])
  2992. +AC_CACHE_CHECK([how to recognize dependent libraries],
  2993. +lt_cv_deplibs_check_method,
  2994. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  2995. +lt_cv_file_magic_test_file=
  2996. +lt_cv_deplibs_check_method='unknown'
  2997. +# Need to set the preceding variable on all platforms that support
  2998. +# interlibrary dependencies.
  2999. +# 'none' -- dependencies not supported.
  3000. +# `unknown' -- same as none, but documents that we really don't know.
  3001. +# 'pass_all' -- all dependencies passed with no checks.
  3002. +# 'test_compile' -- check by making test program.
  3003. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3004. +# which responds to the $file_magic_cmd with a given extended regex.
  3005. +# If you have `file' or equivalent on your system and you're not sure
  3006. +# whether `pass_all' will *always* work, you probably want this one.
  3007. +
  3008. +case $host_os in
  3009. +aix[[4-9]]*)
  3010. + lt_cv_deplibs_check_method=pass_all
  3011. + ;;
  3012. +
  3013. +beos*)
  3014. + lt_cv_deplibs_check_method=pass_all
  3015. + ;;
  3016. +
  3017. +bsdi[[45]]*)
  3018. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3019. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3020. + lt_cv_file_magic_test_file=/shlib/libc.so
  3021. + ;;
  3022. +
  3023. +cygwin*)
  3024. + # func_win32_libid is a shell function defined in ltmain.sh
  3025. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3026. + lt_cv_file_magic_cmd='func_win32_libid'
  3027. + ;;
  3028. +
  3029. +mingw* | pw32*)
  3030. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3031. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3032. + # unless we find 'file', for example because we are cross-compiling.
  3033. + if ( file / ) >/dev/null 2>&1; then
  3034. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3035. + lt_cv_file_magic_cmd='func_win32_libid'
  3036. + else
  3037. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3038. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3039. + fi
  3040. + ;;
  3041. +
  3042. +cegcc)
  3043. + # use the weaker test based on 'objdump'. See mingw*.
  3044. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3045. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3046. + ;;
  3047. +
  3048. +darwin* | rhapsody*)
  3049. + lt_cv_deplibs_check_method=pass_all
  3050. + ;;
  3051. +
  3052. +freebsd* | dragonfly*)
  3053. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3054. + case $host_cpu in
  3055. + i*86 )
  3056. + # Not sure whether the presence of OpenBSD here was a mistake.
  3057. + # Let's accept both of them until this is cleared up.
  3058. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3059. + lt_cv_file_magic_cmd=/usr/bin/file
  3060. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3061. + ;;
  3062. + esac
  3063. + else
  3064. + lt_cv_deplibs_check_method=pass_all
  3065. + fi
  3066. + ;;
  3067. +
  3068. +gnu*)
  3069. + lt_cv_deplibs_check_method=pass_all
  3070. + ;;
  3071. +
  3072. +hpux10.20* | hpux11*)
  3073. + lt_cv_file_magic_cmd=/usr/bin/file
  3074. + case $host_cpu in
  3075. + ia64*)
  3076. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3077. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3078. + ;;
  3079. + hppa*64*)
  3080. + [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]']
  3081. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3082. + ;;
  3083. + *)
  3084. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3085. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3086. + ;;
  3087. + esac
  3088. + ;;
  3089. +
  3090. +interix[[3-9]]*)
  3091. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3092. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3093. + ;;
  3094. +
  3095. +irix5* | irix6* | nonstopux*)
  3096. + case $LD in
  3097. + *-32|*"-32 ") libmagic=32-bit;;
  3098. + *-n32|*"-n32 ") libmagic=N32;;
  3099. + *-64|*"-64 ") libmagic=64-bit;;
  3100. + *) libmagic=never-match;;
  3101. + esac
  3102. + lt_cv_deplibs_check_method=pass_all
  3103. + ;;
  3104. +
  3105. +# This must be Linux ELF.
  3106. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3107. + lt_cv_deplibs_check_method=pass_all
  3108. + ;;
  3109. +
  3110. +netbsd* | netbsdelf*-gnu)
  3111. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3112. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3113. + else
  3114. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3115. + fi
  3116. + ;;
  3117. +
  3118. +newos6*)
  3119. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3120. + lt_cv_file_magic_cmd=/usr/bin/file
  3121. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3122. + ;;
  3123. +
  3124. +*nto* | *qnx*)
  3125. + lt_cv_deplibs_check_method=pass_all
  3126. + ;;
  3127. +
  3128. +openbsd*)
  3129. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3130. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3131. + else
  3132. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3133. + fi
  3134. + ;;
  3135. +
  3136. +osf3* | osf4* | osf5*)
  3137. + lt_cv_deplibs_check_method=pass_all
  3138. + ;;
  3139. +
  3140. +rdos*)
  3141. + lt_cv_deplibs_check_method=pass_all
  3142. + ;;
  3143. +
  3144. +solaris*)
  3145. + lt_cv_deplibs_check_method=pass_all
  3146. + ;;
  3147. +
  3148. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3149. + lt_cv_deplibs_check_method=pass_all
  3150. + ;;
  3151. +
  3152. +sysv4 | sysv4.3*)
  3153. + case $host_vendor in
  3154. + motorola)
  3155. + 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]]'
  3156. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3157. + ;;
  3158. + ncr)
  3159. + lt_cv_deplibs_check_method=pass_all
  3160. + ;;
  3161. + sequent)
  3162. + lt_cv_file_magic_cmd='/bin/file'
  3163. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3164. + ;;
  3165. + sni)
  3166. + lt_cv_file_magic_cmd='/bin/file'
  3167. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3168. + lt_cv_file_magic_test_file=/lib/libc.so
  3169. + ;;
  3170. + siemens)
  3171. + lt_cv_deplibs_check_method=pass_all
  3172. + ;;
  3173. + pc)
  3174. + lt_cv_deplibs_check_method=pass_all
  3175. + ;;
  3176. + esac
  3177. + ;;
  3178. +
  3179. +tpf*)
  3180. + lt_cv_deplibs_check_method=pass_all
  3181. + ;;
  3182. +esac
  3183. +])
  3184. +file_magic_cmd=$lt_cv_file_magic_cmd
  3185. +deplibs_check_method=$lt_cv_deplibs_check_method
  3186. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3187. +
  3188. +_LT_DECL([], [deplibs_check_method], [1],
  3189. + [Method to check whether dependent libraries are shared objects])
  3190. +_LT_DECL([], [file_magic_cmd], [1],
  3191. + [Command to use when deplibs_check_method == "file_magic"])
  3192. +])# _LT_CHECK_MAGIC_METHOD
  3193. +
  3194. +
  3195. +# LT_PATH_NM
  3196. +# ----------
  3197. +# find the pathname to a BSD- or MS-compatible name lister
  3198. +AC_DEFUN([LT_PATH_NM],
  3199. +[AC_REQUIRE([AC_PROG_CC])dnl
  3200. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3201. +[if test -n "$NM"; then
  3202. + # Let the user override the test.
  3203. + lt_cv_path_NM="$NM"
  3204. +else
  3205. + lt_nm_to_check="${ac_tool_prefix}nm"
  3206. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3207. + lt_nm_to_check="$lt_nm_to_check nm"
  3208. + fi
  3209. + for lt_tmp_nm in $lt_nm_to_check; do
  3210. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3211. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3212. + IFS="$lt_save_ifs"
  3213. + test -z "$ac_dir" && ac_dir=.
  3214. + tmp_nm="$ac_dir/$lt_tmp_nm"
  3215. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3216. + # Check to see if the nm accepts a BSD-compat flag.
  3217. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3218. + # nm: unknown option "B" ignored
  3219. + # Tru64's nm complains that /dev/null is an invalid object file
  3220. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3221. + */dev/null* | *'Invalid file or object type'*)
  3222. + lt_cv_path_NM="$tmp_nm -B"
  3223. + break
  3224. + ;;
  3225. + *)
  3226. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3227. + */dev/null*)
  3228. + lt_cv_path_NM="$tmp_nm -p"
  3229. + break
  3230. + ;;
  3231. + *)
  3232. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3233. + continue # so that we can try to find one that supports BSD flags
  3234. + ;;
  3235. + esac
  3236. + ;;
  3237. + esac
  3238. + fi
  3239. + done
  3240. + IFS="$lt_save_ifs"
  3241. + done
  3242. + : ${lt_cv_path_NM=no}
  3243. +fi])
  3244. +if test "$lt_cv_path_NM" != "no"; then
  3245. + NM="$lt_cv_path_NM"
  3246. +else
  3247. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3248. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3249. + AC_SUBST([DUMPBIN])
  3250. + if test "$DUMPBIN" != ":"; then
  3251. + NM="$DUMPBIN"
  3252. + fi
  3253. +fi
  3254. +test -z "$NM" && NM=nm
  3255. +AC_SUBST([NM])
  3256. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3257. +
  3258. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3259. + [lt_cv_nm_interface="BSD nm"
  3260. + echo "int some_variable = 0;" > conftest.$ac_ext
  3261. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3262. + (eval "$ac_compile" 2>conftest.err)
  3263. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3264. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3265. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3266. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3267. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3268. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3269. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3270. + lt_cv_nm_interface="MS dumpbin"
  3271. + fi
  3272. + rm -f conftest*])
  3273. +])# LT_PATH_NM
  3274. +
  3275. +# Old names:
  3276. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3277. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3278. +dnl aclocal-1.4 backwards compatibility:
  3279. +dnl AC_DEFUN([AM_PROG_NM], [])
  3280. +dnl AC_DEFUN([AC_PROG_NM], [])
  3281. +
  3282. +
  3283. +# LT_LIB_M
  3284. +# --------
  3285. +# check for math library
  3286. +AC_DEFUN([LT_LIB_M],
  3287. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3288. +LIBM=
  3289. +case $host in
  3290. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3291. + # These system don't have libm, or don't need it
  3292. + ;;
  3293. +*-ncr-sysv4.3*)
  3294. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3295. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3296. + ;;
  3297. +*)
  3298. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  3299. + ;;
  3300. +esac
  3301. +AC_SUBST([LIBM])
  3302. +])# LT_LIB_M
  3303. +
  3304. +# Old name:
  3305. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3306. +dnl aclocal-1.4 backwards compatibility:
  3307. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3308. +
  3309. +
  3310. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3311. +# -------------------------------
  3312. +m4_defun([_LT_COMPILER_NO_RTTI],
  3313. +[m4_require([_LT_TAG_COMPILER])dnl
  3314. +
  3315. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3316. +
  3317. +if test "$GCC" = yes; then
  3318. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3319. +
  3320. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3321. + lt_cv_prog_compiler_rtti_exceptions,
  3322. + [-fno-rtti -fno-exceptions], [],
  3323. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3324. +fi
  3325. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3326. + [Compiler flag to turn off builtin functions])
  3327. +])# _LT_COMPILER_NO_RTTI
  3328. +
  3329. +
  3330. +# _LT_CMD_GLOBAL_SYMBOLS
  3331. +# ----------------------
  3332. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3333. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3334. +AC_REQUIRE([AC_PROG_CC])dnl
  3335. +AC_REQUIRE([LT_PATH_NM])dnl
  3336. +AC_REQUIRE([LT_PATH_LD])dnl
  3337. +m4_require([_LT_DECL_SED])dnl
  3338. +m4_require([_LT_DECL_EGREP])dnl
  3339. +m4_require([_LT_TAG_COMPILER])dnl
  3340. +
  3341. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3342. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3343. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3344. +[
  3345. +# These are sane defaults that work on at least a few old systems.
  3346. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3347. +
  3348. +# Character class describing NM global symbol codes.
  3349. +symcode='[[BCDEGRST]]'
  3350. +
  3351. +# Regexp to match symbols that can be accessed directly from C.
  3352. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3353. +
  3354. +# Define system-specific variables.
  3355. +case $host_os in
  3356. +aix*)
  3357. + symcode='[[BCDT]]'
  3358. + ;;
  3359. +cygwin* | mingw* | pw32* | cegcc*)
  3360. + symcode='[[ABCDGISTW]]'
  3361. + ;;
  3362. +hpux*)
  3363. + if test "$host_cpu" = ia64; then
  3364. + symcode='[[ABCDEGRST]]'
  3365. + fi
  3366. + ;;
  3367. +irix* | nonstopux*)
  3368. + symcode='[[BCDEGRST]]'
  3369. + ;;
  3370. +osf*)
  3371. + symcode='[[BCDEGQRST]]'
  3372. + ;;
  3373. +solaris*)
  3374. + symcode='[[BDRT]]'
  3375. + ;;
  3376. +sco3.2v5*)
  3377. + symcode='[[DT]]'
  3378. + ;;
  3379. +sysv4.2uw2*)
  3380. + symcode='[[DT]]'
  3381. + ;;
  3382. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3383. + symcode='[[ABDT]]'
  3384. + ;;
  3385. +sysv4)
  3386. + symcode='[[DFNSTU]]'
  3387. + ;;
  3388. +esac
  3389. +
  3390. +# If we're using GNU nm, then use its standard symbol codes.
  3391. +case `$NM -V 2>&1` in
  3392. +*GNU* | *'with BFD'*)
  3393. + symcode='[[ABCDGIRSTW]]' ;;
  3394. +esac
  3395. +
  3396. +# Transform an extracted symbol line into a proper C declaration.
  3397. +# Some systems (esp. on ia64) link data and code symbols differently,
  3398. +# so use this general approach.
  3399. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3400. +
  3401. +# Transform an extracted symbol line into symbol name and symbol address
  3402. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3403. +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'"
  3404. +
  3405. +# Handle CRLF in mingw tool chain
  3406. +opt_cr=
  3407. +case $build_os in
  3408. +mingw*)
  3409. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3410. + ;;
  3411. +esac
  3412. +
  3413. +# Try without a prefix underscore, then with it.
  3414. +for ac_symprfx in "" "_"; do
  3415. +
  3416. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3417. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3418. +
  3419. + # Write the raw and C identifiers.
  3420. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3421. + # Fake it for dumpbin and say T for any non-static function
  3422. + # and D for any global variable.
  3423. + # Also find C++ and __fastcall symbols from MSVC++,
  3424. + # which start with @ or ?.
  3425. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3426. +" {last_section=section; section=\$ 3};"\
  3427. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3428. +" \$ 0!~/External *\|/{next};"\
  3429. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3430. +" {if(hide[section]) next};"\
  3431. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3432. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3433. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3434. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3435. +" ' prfx=^$ac_symprfx]"
  3436. + else
  3437. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3438. + fi
  3439. +
  3440. + # Check to see that the pipe works correctly.
  3441. + pipe_works=no
  3442. +
  3443. + rm -f conftest*
  3444. + cat > conftest.$ac_ext <<_LT_EOF
  3445. +#ifdef __cplusplus
  3446. +extern "C" {
  3447. +#endif
  3448. +char nm_test_var;
  3449. +void nm_test_func(void);
  3450. +void nm_test_func(void){}
  3451. +#ifdef __cplusplus
  3452. +}
  3453. +#endif
  3454. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3455. +_LT_EOF
  3456. +
  3457. + if AC_TRY_EVAL(ac_compile); then
  3458. + # Now try to grab the symbols.
  3459. + nlist=conftest.nm
  3460. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3461. + # Try sorting and uniquifying the output.
  3462. + if sort "$nlist" | uniq > "$nlist"T; then
  3463. + mv -f "$nlist"T "$nlist"
  3464. + else
  3465. + rm -f "$nlist"T
  3466. + fi
  3467. +
  3468. + # Make sure that we snagged all the symbols we need.
  3469. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3470. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3471. + cat <<_LT_EOF > conftest.$ac_ext
  3472. +#ifdef __cplusplus
  3473. +extern "C" {
  3474. +#endif
  3475. +
  3476. +_LT_EOF
  3477. + # Now generate the symbol file.
  3478. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3479. +
  3480. + cat <<_LT_EOF >> conftest.$ac_ext
  3481. +
  3482. +/* The mapping between symbol names and symbols. */
  3483. +const struct {
  3484. + const char *name;
  3485. + void *address;
  3486. +}
  3487. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3488. +{
  3489. + { "@PROGRAM@", (void *) 0 },
  3490. +_LT_EOF
  3491. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3492. + cat <<\_LT_EOF >> conftest.$ac_ext
  3493. + {0, (void *) 0}
  3494. +};
  3495. +
  3496. +/* This works around a problem in FreeBSD linker */
  3497. +#ifdef FREEBSD_WORKAROUND
  3498. +static const void *lt_preloaded_setup() {
  3499. + return lt__PROGRAM__LTX_preloaded_symbols;
  3500. +}
  3501. +#endif
  3502. +
  3503. +#ifdef __cplusplus
  3504. +}
  3505. +#endif
  3506. +_LT_EOF
  3507. + # Now try linking the two files.
  3508. + mv conftest.$ac_objext conftstm.$ac_objext
  3509. + lt_save_LIBS="$LIBS"
  3510. + lt_save_CFLAGS="$CFLAGS"
  3511. + LIBS="conftstm.$ac_objext"
  3512. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3513. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3514. + pipe_works=yes
  3515. + fi
  3516. + LIBS="$lt_save_LIBS"
  3517. + CFLAGS="$lt_save_CFLAGS"
  3518. + else
  3519. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3520. + fi
  3521. + else
  3522. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3523. + fi
  3524. + else
  3525. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3526. + fi
  3527. + else
  3528. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3529. + cat conftest.$ac_ext >&5
  3530. + fi
  3531. + rm -rf conftest* conftst*
  3532. +
  3533. + # Do not use the global_symbol_pipe unless it works.
  3534. + if test "$pipe_works" = yes; then
  3535. + break
  3536. + else
  3537. + lt_cv_sys_global_symbol_pipe=
  3538. + fi
  3539. +done
  3540. +])
  3541. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3542. + lt_cv_sys_global_symbol_to_cdecl=
  3543. +fi
  3544. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3545. + AC_MSG_RESULT(failed)
  3546. +else
  3547. + AC_MSG_RESULT(ok)
  3548. +fi
  3549. +
  3550. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3551. + [Take the output of nm and produce a listing of raw symbols and C names])
  3552. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3553. + [Transform the output of nm in a proper C declaration])
  3554. +_LT_DECL([global_symbol_to_c_name_address],
  3555. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3556. + [Transform the output of nm in a C name address pair])
  3557. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3558. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3559. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3560. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3561. +
  3562. +
  3563. +# _LT_COMPILER_PIC([TAGNAME])
  3564. +# ---------------------------
  3565. +m4_defun([_LT_COMPILER_PIC],
  3566. +[m4_require([_LT_TAG_COMPILER])dnl
  3567. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3568. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3569. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3570. +
  3571. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3572. +m4_if([$1], [CXX], [
  3573. + # C++ specific cases for pic, static, wl, etc.
  3574. + if test "$GXX" = yes; then
  3575. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3576. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3577. +
  3578. + case $host_os in
  3579. + aix*)
  3580. + # All AIX code is PIC.
  3581. + if test "$host_cpu" = ia64; then
  3582. + # AIX 5 now supports IA64 processor
  3583. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3584. + fi
  3585. + ;;
  3586. +
  3587. + amigaos*)
  3588. + case $host_cpu in
  3589. + powerpc)
  3590. + # see comment about AmigaOS4 .so support
  3591. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3592. + ;;
  3593. + m68k)
  3594. + # FIXME: we need at least 68020 code to build shared libraries, but
  3595. + # adding the `-m68020' flag to GCC prevents building anything better,
  3596. + # like `-m68040'.
  3597. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3598. + ;;
  3599. + esac
  3600. + ;;
  3601. +
  3602. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3603. + # PIC is the default for these OSes.
  3604. + ;;
  3605. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  3606. + # This hack is so that the source file can tell whether it is being
  3607. + # built for inclusion in a dll (and should export symbols for example).
  3608. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3609. + # (--disable-auto-import) libraries
  3610. + m4_if([$1], [GCJ], [],
  3611. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3612. + ;;
  3613. + darwin* | rhapsody*)
  3614. + # PIC is the default on this platform
  3615. + # Common symbols not allowed in MH_DYLIB files
  3616. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3617. + ;;
  3618. + *djgpp*)
  3619. + # DJGPP does not support shared libraries at all
  3620. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3621. + ;;
  3622. + interix[[3-9]]*)
  3623. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3624. + # Instead, we relocate shared libraries at runtime.
  3625. + ;;
  3626. + sysv4*MP*)
  3627. + if test -d /usr/nec; then
  3628. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3629. + fi
  3630. + ;;
  3631. + hpux*)
  3632. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3633. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3634. + # sets the default TLS model and affects inlining.
  3635. + case $host_cpu in
  3636. + hppa*64*)
  3637. + ;;
  3638. + *)
  3639. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3640. + ;;
  3641. + esac
  3642. + ;;
  3643. + *qnx* | *nto*)
  3644. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3645. + # it will coredump.
  3646. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3647. + ;;
  3648. + *)
  3649. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3650. + ;;
  3651. + esac
  3652. + else
  3653. + case $host_os in
  3654. + aix[[4-9]]*)
  3655. + # All AIX code is PIC.
  3656. + if test "$host_cpu" = ia64; then
  3657. + # AIX 5 now supports IA64 processor
  3658. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3659. + else
  3660. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3661. + fi
  3662. + ;;
  3663. + chorus*)
  3664. + case $cc_basename in
  3665. + cxch68*)
  3666. + # Green Hills C++ Compiler
  3667. + # _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"
  3668. + ;;
  3669. + esac
  3670. + ;;
  3671. + dgux*)
  3672. + case $cc_basename in
  3673. + ec++*)
  3674. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3675. + ;;
  3676. + ghcx*)
  3677. + # Green Hills C++ Compiler
  3678. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3679. + ;;
  3680. + *)
  3681. + ;;
  3682. + esac
  3683. + ;;
  3684. + freebsd* | dragonfly*)
  3685. + # FreeBSD uses GNU C++
  3686. + ;;
  3687. + hpux9* | hpux10* | hpux11*)
  3688. + case $cc_basename in
  3689. + CC*)
  3690. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3691. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3692. + if test "$host_cpu" != ia64; then
  3693. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3694. + fi
  3695. + ;;
  3696. + aCC*)
  3697. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3698. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3699. + case $host_cpu in
  3700. + hppa*64*|ia64*)
  3701. + # +Z the default
  3702. + ;;
  3703. + *)
  3704. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3705. + ;;
  3706. + esac
  3707. + ;;
  3708. + *)
  3709. + ;;
  3710. + esac
  3711. + ;;
  3712. + interix*)
  3713. + # This is c89, which is MS Visual C++ (no shared libs)
  3714. + # Anyone wants to do a port?
  3715. + ;;
  3716. + irix5* | irix6* | nonstopux*)
  3717. + case $cc_basename in
  3718. + CC*)
  3719. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3720. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3721. + # CC pic flag -KPIC is the default.
  3722. + ;;
  3723. + *)
  3724. + ;;
  3725. + esac
  3726. + ;;
  3727. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3728. + case $cc_basename in
  3729. + KCC*)
  3730. + # KAI C++ Compiler
  3731. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3732. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3733. + ;;
  3734. + ecpc* )
  3735. + # old Intel C++ for x86_64 which still supported -KPIC.
  3736. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3737. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3738. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3739. + ;;
  3740. + icpc* )
  3741. + # Intel C++, used to be incompatible with GCC.
  3742. + # ICC 10 doesn't accept -KPIC any more.
  3743. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3744. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3745. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3746. + ;;
  3747. + pgCC* | pgcpp*)
  3748. + # Portland Group C++ compiler
  3749. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3750. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3751. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3752. + ;;
  3753. + cxx*)
  3754. + # Compaq C++
  3755. + # Make sure the PIC flag is empty. It appears that all Alpha
  3756. + # Linux and Compaq Tru64 Unix objects are PIC.
  3757. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3758. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3759. + ;;
  3760. + xlc* | xlC*)
  3761. + # IBM XL 8.0 on PPC
  3762. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3763. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3764. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3765. + ;;
  3766. + *)
  3767. + case `$CC -V 2>&1 | sed 5q` in
  3768. + *Sun\ C*)
  3769. + # Sun C++ 5.9
  3770. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3771. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3772. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3773. + ;;
  3774. + esac
  3775. + ;;
  3776. + esac
  3777. + ;;
  3778. + lynxos*)
  3779. + ;;
  3780. + m88k*)
  3781. + ;;
  3782. + mvs*)
  3783. + case $cc_basename in
  3784. + cxx*)
  3785. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3786. + ;;
  3787. + *)
  3788. + ;;
  3789. + esac
  3790. + ;;
  3791. + netbsd* | netbsdelf*-gnu)
  3792. + ;;
  3793. + *qnx* | *nto*)
  3794. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3795. + # it will coredump.
  3796. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3797. + ;;
  3798. + osf3* | osf4* | osf5*)
  3799. + case $cc_basename in
  3800. + KCC*)
  3801. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3802. + ;;
  3803. + RCC*)
  3804. + # Rational C++ 2.4.1
  3805. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3806. + ;;
  3807. + cxx*)
  3808. + # Digital/Compaq C++
  3809. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3810. + # Make sure the PIC flag is empty. It appears that all Alpha
  3811. + # Linux and Compaq Tru64 Unix objects are PIC.
  3812. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3813. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3814. + ;;
  3815. + *)
  3816. + ;;
  3817. + esac
  3818. + ;;
  3819. + psos*)
  3820. + ;;
  3821. + solaris*)
  3822. + case $cc_basename in
  3823. + CC*)
  3824. + # Sun C++ 4.2, 5.x and Centerline C++
  3825. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3826. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3827. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3828. + ;;
  3829. + gcx*)
  3830. + # Green Hills C++ Compiler
  3831. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3832. + ;;
  3833. + *)
  3834. + ;;
  3835. + esac
  3836. + ;;
  3837. + sunos4*)
  3838. + case $cc_basename in
  3839. + CC*)
  3840. + # Sun C++ 4.x
  3841. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3842. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3843. + ;;
  3844. + lcc*)
  3845. + # Lucid
  3846. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3847. + ;;
  3848. + *)
  3849. + ;;
  3850. + esac
  3851. + ;;
  3852. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3853. + case $cc_basename in
  3854. + CC*)
  3855. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3856. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3857. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3858. + ;;
  3859. + esac
  3860. + ;;
  3861. + tandem*)
  3862. + case $cc_basename in
  3863. + NCC*)
  3864. + # NonStop-UX NCC 3.20
  3865. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3866. + ;;
  3867. + *)
  3868. + ;;
  3869. + esac
  3870. + ;;
  3871. + vxworks*)
  3872. + ;;
  3873. + *)
  3874. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3875. + ;;
  3876. + esac
  3877. + fi
  3878. +],
  3879. +[
  3880. + if test "$GCC" = yes; then
  3881. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3882. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3883. +
  3884. + case $host_os in
  3885. + aix*)
  3886. + # All AIX code is PIC.
  3887. + if test "$host_cpu" = ia64; then
  3888. + # AIX 5 now supports IA64 processor
  3889. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3890. + fi
  3891. + ;;
  3892. +
  3893. + amigaos*)
  3894. + case $host_cpu in
  3895. + powerpc)
  3896. + # see comment about AmigaOS4 .so support
  3897. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3898. + ;;
  3899. + m68k)
  3900. + # FIXME: we need at least 68020 code to build shared libraries, but
  3901. + # adding the `-m68020' flag to GCC prevents building anything better,
  3902. + # like `-m68040'.
  3903. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3904. + ;;
  3905. + esac
  3906. + ;;
  3907. +
  3908. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3909. + # PIC is the default for these OSes.
  3910. + ;;
  3911. +
  3912. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  3913. + # This hack is so that the source file can tell whether it is being
  3914. + # built for inclusion in a dll (and should export symbols for example).
  3915. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3916. + # (--disable-auto-import) libraries
  3917. + m4_if([$1], [GCJ], [],
  3918. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3919. + ;;
  3920. +
  3921. + darwin* | rhapsody*)
  3922. + # PIC is the default on this platform
  3923. + # Common symbols not allowed in MH_DYLIB files
  3924. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3925. + ;;
  3926. +
  3927. + hpux*)
  3928. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3929. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3930. + # sets the default TLS model and affects inlining.
  3931. + case $host_cpu in
  3932. + hppa*64*)
  3933. + # +Z the default
  3934. + ;;
  3935. + *)
  3936. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3937. + ;;
  3938. + esac
  3939. + ;;
  3940. +
  3941. + interix[[3-9]]*)
  3942. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3943. + # Instead, we relocate shared libraries at runtime.
  3944. + ;;
  3945. +
  3946. + msdosdjgpp*)
  3947. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  3948. + # on systems that don't support them.
  3949. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3950. + enable_shared=no
  3951. + ;;
  3952. +
  3953. + *nto* | *qnx*)
  3954. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3955. + # it will coredump.
  3956. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3957. + ;;
  3958. +
  3959. + sysv4*MP*)
  3960. + if test -d /usr/nec; then
  3961. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3962. + fi
  3963. + ;;
  3964. +
  3965. + *)
  3966. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3967. + ;;
  3968. + esac
  3969. + else
  3970. + # PORTME Check for flag to pass linker flags through the system compiler.
  3971. + case $host_os in
  3972. + aix*)
  3973. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3974. + if test "$host_cpu" = ia64; then
  3975. + # AIX 5 now supports IA64 processor
  3976. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3977. + else
  3978. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3979. + fi
  3980. + ;;
  3981. +
  3982. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  3983. + # This hack is so that the source file can tell whether it is being
  3984. + # built for inclusion in a dll (and should export symbols for example).
  3985. + m4_if([$1], [GCJ], [],
  3986. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3987. + ;;
  3988. +
  3989. + hpux9* | hpux10* | hpux11*)
  3990. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3991. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3992. + # not for PA HP-UX.
  3993. + case $host_cpu in
  3994. + hppa*64*|ia64*)
  3995. + # +Z the default
  3996. + ;;
  3997. + *)
  3998. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3999. + ;;
  4000. + esac
  4001. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4002. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4003. + ;;
  4004. +
  4005. + irix5* | irix6* | nonstopux*)
  4006. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4007. + # PIC (with -KPIC) is the default.
  4008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4009. + ;;
  4010. +
  4011. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4012. + case $cc_basename in
  4013. + # old Intel for x86_64 which still supported -KPIC.
  4014. + ecc*)
  4015. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4016. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4017. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4018. + ;;
  4019. + # icc used to be incompatible with GCC.
  4020. + # ICC 10 doesn't accept -KPIC any more.
  4021. + icc* | ifort*)
  4022. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4023. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4024. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4025. + ;;
  4026. + # Lahey Fortran 8.1.
  4027. + lf95*)
  4028. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4029. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4030. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4031. + ;;
  4032. + pgcc* | pgf77* | pgf90* | pgf95*)
  4033. + # Portland Group compilers (*not* the Pentium gcc compiler,
  4034. + # which looks to be a dead project)
  4035. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4036. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4037. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4038. + ;;
  4039. + ccc*)
  4040. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4041. + # All Alpha code is PIC.
  4042. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4043. + ;;
  4044. + xl*)
  4045. + # IBM XL C 8.0/Fortran 10.1 on PPC
  4046. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4047. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4048. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4049. + ;;
  4050. + *)
  4051. + case `$CC -V 2>&1 | sed 5q` in
  4052. + *Sun\ C*)
  4053. + # Sun C 5.9
  4054. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4055. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4056. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4057. + ;;
  4058. + *Sun\ F*)
  4059. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4060. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4061. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4062. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4063. + ;;
  4064. + esac
  4065. + ;;
  4066. + esac
  4067. + ;;
  4068. +
  4069. + newsos6)
  4070. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4071. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4072. + ;;
  4073. +
  4074. + *nto* | *qnx*)
  4075. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4076. + # it will coredump.
  4077. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4078. + ;;
  4079. +
  4080. + osf3* | osf4* | osf5*)
  4081. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4082. + # All OSF/1 code is PIC.
  4083. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4084. + ;;
  4085. +
  4086. + rdos*)
  4087. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4088. + ;;
  4089. +
  4090. + solaris*)
  4091. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4092. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4093. + case $cc_basename in
  4094. + f77* | f90* | f95*)
  4095. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4096. + *)
  4097. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4098. + esac
  4099. + ;;
  4100. +
  4101. + sunos4*)
  4102. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4103. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4104. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4105. + ;;
  4106. +
  4107. + sysv4 | sysv4.2uw2* | sysv4.3*)
  4108. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4109. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4110. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4111. + ;;
  4112. +
  4113. + sysv4*MP*)
  4114. + if test -d /usr/nec ;then
  4115. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4116. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4117. + fi
  4118. + ;;
  4119. +
  4120. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4121. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4122. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4123. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4124. + ;;
  4125. +
  4126. + unicos*)
  4127. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4128. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4129. + ;;
  4130. +
  4131. + uts4*)
  4132. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4133. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4134. + ;;
  4135. +
  4136. + *)
  4137. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4138. + ;;
  4139. + esac
  4140. + fi
  4141. +])
  4142. +case $host_os in
  4143. + # For platforms which do not support PIC, -DPIC is meaningless:
  4144. + *djgpp*)
  4145. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4146. + ;;
  4147. + *)
  4148. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4149. + ;;
  4150. +esac
  4151. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4152. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4153. + [How to pass a linker flag through the compiler])
  4154. +
  4155. +#
  4156. +# Check to make sure the PIC flag actually works.
  4157. +#
  4158. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4159. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4160. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4161. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4162. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4163. + "" | " "*) ;;
  4164. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4165. + esac],
  4166. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4167. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4168. +fi
  4169. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4170. + [Additional compiler flags for building library objects])
  4171. +
  4172. +#
  4173. +# Check to make sure the static flag actually works.
  4174. +#
  4175. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4176. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4177. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4178. + $lt_tmp_static_flag,
  4179. + [],
  4180. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4181. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4182. + [Compiler flag to prevent dynamic linking])
  4183. +])# _LT_COMPILER_PIC
  4184. +
  4185. +
  4186. +# _LT_LINKER_SHLIBS([TAGNAME])
  4187. +# ----------------------------
  4188. +# See if the linker supports building shared libraries.
  4189. +m4_defun([_LT_LINKER_SHLIBS],
  4190. +[AC_REQUIRE([LT_PATH_LD])dnl
  4191. +AC_REQUIRE([LT_PATH_NM])dnl
  4192. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4193. +m4_require([_LT_DECL_EGREP])dnl
  4194. +m4_require([_LT_DECL_SED])dnl
  4195. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4196. +m4_require([_LT_TAG_COMPILER])dnl
  4197. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4198. +m4_if([$1], [CXX], [
  4199. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4200. + case $host_os in
  4201. + aix[[4-9]]*)
  4202. + # If we're using GNU nm, then we don't want the "-C" option.
  4203. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4204. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4205. + _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'
  4206. + else
  4207. + _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'
  4208. + fi
  4209. + ;;
  4210. + pw32*)
  4211. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4212. + ;;
  4213. + cygwin* | mingw* | cegcc*)
  4214. + _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'
  4215. + ;;
  4216. + linux* | k*bsd*-gnu)
  4217. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4218. + ;;
  4219. + *)
  4220. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4221. + ;;
  4222. + esac
  4223. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4224. +], [
  4225. + runpath_var=
  4226. + _LT_TAGVAR(allow_undefined_flag, $1)=
  4227. + _LT_TAGVAR(always_export_symbols, $1)=no
  4228. + _LT_TAGVAR(archive_cmds, $1)=
  4229. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  4230. + _LT_TAGVAR(compiler_needs_object, $1)=no
  4231. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4232. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4233. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4234. + _LT_TAGVAR(hardcode_automatic, $1)=no
  4235. + _LT_TAGVAR(hardcode_direct, $1)=no
  4236. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4237. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4238. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4239. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4240. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  4241. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4242. + _LT_TAGVAR(inherit_rpath, $1)=no
  4243. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4244. + _LT_TAGVAR(module_cmds, $1)=
  4245. + _LT_TAGVAR(module_expsym_cmds, $1)=
  4246. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4247. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4248. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4249. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4250. + # include_expsyms should be a list of space-separated symbols to be *always*
  4251. + # included in the symbol list
  4252. + _LT_TAGVAR(include_expsyms, $1)=
  4253. + # exclude_expsyms can be an extended regexp of symbols to exclude
  4254. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4255. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4256. + # as well as any symbol that contains `d'.
  4257. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4258. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4259. + # platforms (ab)use it in PIC code, but their linkers get confused if
  4260. + # the symbol is explicitly referenced. Since portable code cannot
  4261. + # rely on this symbol name, it's probably fine to never include it in
  4262. + # preloaded symbol tables.
  4263. + # Exclude shared library initialization/finalization symbols.
  4264. +dnl Note also adjust exclude_expsyms for C++ above.
  4265. + extract_expsyms_cmds=
  4266. +
  4267. + case $host_os in
  4268. + cygwin* | mingw* | pw32* | cegcc*)
  4269. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4270. + # When not using gcc, we currently assume that we are using
  4271. + # Microsoft Visual C++.
  4272. + if test "$GCC" != yes; then
  4273. + with_gnu_ld=no
  4274. + fi
  4275. + ;;
  4276. + interix*)
  4277. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  4278. + with_gnu_ld=yes
  4279. + ;;
  4280. + openbsd*)
  4281. + with_gnu_ld=no
  4282. + ;;
  4283. + linux* | k*bsd*-gnu)
  4284. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4285. + ;;
  4286. + esac
  4287. +
  4288. + _LT_TAGVAR(ld_shlibs, $1)=yes
  4289. + if test "$with_gnu_ld" = yes; then
  4290. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4291. + wlarc='${wl}'
  4292. +
  4293. + # Set some defaults for GNU ld with shared library support. These
  4294. + # are reset later if shared libraries are not supported. Putting them
  4295. + # here allows them to be overridden if necessary.
  4296. + runpath_var=LD_RUN_PATH
  4297. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4298. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4299. + # ancient GNU ld didn't support --whole-archive et. al.
  4300. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4301. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4302. + else
  4303. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4304. + fi
  4305. + supports_anon_versioning=no
  4306. + case `$LD -v 2>&1` in
  4307. + *GNU\ gold*) supports_anon_versioning=yes ;;
  4308. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4309. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4310. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4311. + *\ 2.11.*) ;; # other 2.11 versions
  4312. + *) supports_anon_versioning=yes ;;
  4313. + esac
  4314. +
  4315. + # See if GNU ld supports shared libraries.
  4316. + case $host_os in
  4317. + aix[[3-9]]*)
  4318. + # On AIX/PPC, the GNU linker is very broken
  4319. + if test "$host_cpu" != ia64; then
  4320. + _LT_TAGVAR(ld_shlibs, $1)=no
  4321. + cat <<_LT_EOF 1>&2
  4322. +
  4323. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4324. +*** to be unable to reliably create shared libraries on AIX.
  4325. +*** Therefore, libtool is disabling shared libraries support. If you
  4326. +*** really care for shared libraries, you may want to modify your PATH
  4327. +*** so that a non-GNU linker is found, and then restart.
  4328. +
  4329. +_LT_EOF
  4330. + fi
  4331. + ;;
  4332. +
  4333. + amigaos*)
  4334. + case $host_cpu in
  4335. + powerpc)
  4336. + # see comment about AmigaOS4 .so support
  4337. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4338. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4339. + ;;
  4340. + m68k)
  4341. + _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)'
  4342. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4343. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4344. + ;;
  4345. + esac
  4346. + ;;
  4347. +
  4348. + beos*)
  4349. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4350. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4351. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4352. + # support --undefined. This deserves some investigation. FIXME
  4353. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4354. + else
  4355. + _LT_TAGVAR(ld_shlibs, $1)=no
  4356. + fi
  4357. + ;;
  4358. +
  4359. + cygwin* | mingw* | pw32* | cegcc*)
  4360. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4361. + # as there is no search path for DLLs.
  4362. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4363. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4364. + _LT_TAGVAR(always_export_symbols, $1)=no
  4365. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4366. + _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'
  4367. +
  4368. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4369. + _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'
  4370. + # If the export-symbols file already is a .def file (1st line
  4371. + # is EXPORTS), use it as is; otherwise, prepend...
  4372. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4373. + cp $export_symbols $output_objdir/$soname.def;
  4374. + else
  4375. + echo EXPORTS > $output_objdir/$soname.def;
  4376. + cat $export_symbols >> $output_objdir/$soname.def;
  4377. + fi~
  4378. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4379. + else
  4380. + _LT_TAGVAR(ld_shlibs, $1)=no
  4381. + fi
  4382. + ;;
  4383. +
  4384. + interix[[3-9]]*)
  4385. + _LT_TAGVAR(hardcode_direct, $1)=no
  4386. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4387. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4388. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4389. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4390. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  4391. + # default) and relocated if they conflict, which is a slow very memory
  4392. + # consuming and fragmenting process. To avoid this, we pick a random,
  4393. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4394. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4395. + _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'
  4396. + _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'
  4397. + ;;
  4398. +
  4399. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4400. + tmp_diet=no
  4401. + if test "$host_os" = linux-dietlibc; then
  4402. + case $cc_basename in
  4403. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4404. + esac
  4405. + fi
  4406. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4407. + && test "$tmp_diet" = no
  4408. + then
  4409. + tmp_addflag=
  4410. + tmp_sharedflag='-shared'
  4411. + case $cc_basename,$host_cpu in
  4412. + pgcc*) # Portland Group C compiler
  4413. + _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'
  4414. + tmp_addflag=' $pic_flag'
  4415. + ;;
  4416. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  4417. + _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'
  4418. + tmp_addflag=' $pic_flag -Mnomain' ;;
  4419. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4420. + tmp_addflag=' -i_dynamic' ;;
  4421. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4422. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  4423. + ifc* | ifort*) # Intel Fortran compiler
  4424. + tmp_addflag=' -nofor_main' ;;
  4425. + lf95*) # Lahey Fortran 8.1
  4426. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4427. + tmp_sharedflag='--shared' ;;
  4428. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4429. + tmp_sharedflag='-qmkshrobj'
  4430. + tmp_addflag= ;;
  4431. + esac
  4432. + case `$CC -V 2>&1 | sed 5q` in
  4433. + *Sun\ C*) # Sun C 5.9
  4434. + _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'
  4435. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  4436. + tmp_sharedflag='-G' ;;
  4437. + *Sun\ F*) # Sun Fortran 8.3
  4438. + tmp_sharedflag='-G' ;;
  4439. + esac
  4440. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4441. +
  4442. + if test "x$supports_anon_versioning" = xyes; then
  4443. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4444. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4445. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4446. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4447. + fi
  4448. +
  4449. + case $cc_basename in
  4450. + xlf*)
  4451. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4452. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4453. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4454. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4455. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  4456. + if test "x$supports_anon_versioning" = xyes; then
  4457. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4458. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4459. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4460. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4461. + fi
  4462. + ;;
  4463. + esac
  4464. + else
  4465. + _LT_TAGVAR(ld_shlibs, $1)=no
  4466. + fi
  4467. + ;;
  4468. +
  4469. + netbsd* | netbsdelf*-gnu)
  4470. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4471. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4472. + wlarc=
  4473. + else
  4474. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4475. + _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'
  4476. + fi
  4477. + ;;
  4478. +
  4479. + solaris*)
  4480. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4481. + _LT_TAGVAR(ld_shlibs, $1)=no
  4482. + cat <<_LT_EOF 1>&2
  4483. +
  4484. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4485. +*** create shared libraries on Solaris systems. Therefore, libtool
  4486. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4487. +*** binutils to release 2.9.1 or newer. Another option is to modify
  4488. +*** your PATH or compiler configuration so that the native linker is
  4489. +*** used, and then restart.
  4490. +
  4491. +_LT_EOF
  4492. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4493. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4494. + _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'
  4495. + else
  4496. + _LT_TAGVAR(ld_shlibs, $1)=no
  4497. + fi
  4498. + ;;
  4499. +
  4500. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4501. + case `$LD -v 2>&1` in
  4502. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4503. + _LT_TAGVAR(ld_shlibs, $1)=no
  4504. + cat <<_LT_EOF 1>&2
  4505. +
  4506. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4507. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  4508. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4509. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4510. +*** your PATH or compiler configuration so that the native linker is
  4511. +*** used, and then restart.
  4512. +
  4513. +_LT_EOF
  4514. + ;;
  4515. + *)
  4516. + # For security reasons, it is highly recommended that you always
  4517. + # use absolute paths for naming shared libraries, and exclude the
  4518. + # DT_RUNPATH tag from executables and libraries. But doing so
  4519. + # requires that you compile everything twice, which is a pain.
  4520. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4521. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4522. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4523. + _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'
  4524. + else
  4525. + _LT_TAGVAR(ld_shlibs, $1)=no
  4526. + fi
  4527. + ;;
  4528. + esac
  4529. + ;;
  4530. +
  4531. + sunos4*)
  4532. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4533. + wlarc=
  4534. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4535. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4536. + ;;
  4537. +
  4538. + *)
  4539. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4540. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4541. + _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'
  4542. + else
  4543. + _LT_TAGVAR(ld_shlibs, $1)=no
  4544. + fi
  4545. + ;;
  4546. + esac
  4547. +
  4548. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4549. + runpath_var=
  4550. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4551. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4552. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4553. + fi
  4554. + else
  4555. + # PORTME fill in a description of your system's linker (not GNU ld)
  4556. + case $host_os in
  4557. + aix3*)
  4558. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4559. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4560. + _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'
  4561. + # Note: this linker hardcodes the directories in LIBPATH if there
  4562. + # are no directories specified by -L.
  4563. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4564. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4565. + # Neither direct hardcoding nor static linking is supported with a
  4566. + # broken collect2.
  4567. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4568. + fi
  4569. + ;;
  4570. +
  4571. + aix[[4-9]]*)
  4572. + if test "$host_cpu" = ia64; then
  4573. + # On IA64, the linker does run time linking by default, so we don't
  4574. + # have to do anything special.
  4575. + aix_use_runtimelinking=no
  4576. + exp_sym_flag='-Bexport'
  4577. + no_entry_flag=""
  4578. + else
  4579. + # If we're using GNU nm, then we don't want the "-C" option.
  4580. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4581. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4582. + _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'
  4583. + else
  4584. + _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'
  4585. + fi
  4586. + aix_use_runtimelinking=no
  4587. +
  4588. + # Test if we are trying to use run time linking or normal
  4589. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4590. + # need to do runtime linking.
  4591. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4592. + for ld_flag in $LDFLAGS; do
  4593. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4594. + aix_use_runtimelinking=yes
  4595. + break
  4596. + fi
  4597. + done
  4598. + ;;
  4599. + esac
  4600. +
  4601. + exp_sym_flag='-bexport'
  4602. + no_entry_flag='-bnoentry'
  4603. + fi
  4604. +
  4605. + # When large executables or shared objects are built, AIX ld can
  4606. + # have problems creating the table of contents. If linking a library
  4607. + # or program results in "error TOC overflow" add -mminimal-toc to
  4608. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4609. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4610. +
  4611. + _LT_TAGVAR(archive_cmds, $1)=''
  4612. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4613. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4614. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4615. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  4616. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4617. +
  4618. + if test "$GCC" = yes; then
  4619. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4620. + # We only want to do this on AIX 4.2 and lower, the check
  4621. + # below for broken collect2 doesn't work under 4.3+
  4622. + collect2name=`${CC} -print-prog-name=collect2`
  4623. + if test -f "$collect2name" &&
  4624. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4625. + then
  4626. + # We have reworked collect2
  4627. + :
  4628. + else
  4629. + # We have old collect2
  4630. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4631. + # It fails to find uninstalled libraries when the uninstalled
  4632. + # path is not listed in the libpath. Setting hardcode_minus_L
  4633. + # to unsupported forces relinking
  4634. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4635. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4636. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4637. + fi
  4638. + ;;
  4639. + esac
  4640. + shared_flag='-shared'
  4641. + if test "$aix_use_runtimelinking" = yes; then
  4642. + shared_flag="$shared_flag "'${wl}-G'
  4643. + fi
  4644. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4645. + else
  4646. + # not using gcc
  4647. + if test "$host_cpu" = ia64; then
  4648. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4649. + # chokes on -Wl,-G. The following line is correct:
  4650. + shared_flag='-G'
  4651. + else
  4652. + if test "$aix_use_runtimelinking" = yes; then
  4653. + shared_flag='${wl}-G'
  4654. + else
  4655. + shared_flag='${wl}-bM:SRE'
  4656. + fi
  4657. + fi
  4658. + fi
  4659. +
  4660. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4661. + # It seems that -bexpall does not export symbols beginning with
  4662. + # underscore (_), so it is better to generate a list of symbols to export.
  4663. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4664. + if test "$aix_use_runtimelinking" = yes; then
  4665. + # Warning - without using the other runtime loading flags (-brtl),
  4666. + # -berok will link without error, but may produce a broken library.
  4667. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4668. + # Determine the default libpath from the value encoded in an
  4669. + # empty executable.
  4670. + _LT_SYS_MODULE_PATH_AIX
  4671. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4672. + _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"
  4673. + else
  4674. + if test "$host_cpu" = ia64; then
  4675. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4676. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4677. + _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"
  4678. + else
  4679. + # Determine the default libpath from the value encoded in an
  4680. + # empty executable.
  4681. + _LT_SYS_MODULE_PATH_AIX
  4682. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4683. + # Warning - without using the other run time loading flags,
  4684. + # -berok will link without error, but may produce a broken library.
  4685. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4686. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4687. + # Exported symbols can be pulled into shared objects from archives
  4688. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4689. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4690. + # This is similar to how AIX traditionally builds its shared libraries.
  4691. + _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'
  4692. + fi
  4693. + fi
  4694. + ;;
  4695. +
  4696. + amigaos*)
  4697. + case $host_cpu in
  4698. + powerpc)
  4699. + # see comment about AmigaOS4 .so support
  4700. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4701. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4702. + ;;
  4703. + m68k)
  4704. + _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)'
  4705. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4706. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4707. + ;;
  4708. + esac
  4709. + ;;
  4710. +
  4711. + bsdi[[45]]*)
  4712. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4713. + ;;
  4714. +
  4715. + cygwin* | mingw* | pw32* | cegcc*)
  4716. + # When not using gcc, we currently assume that we are using
  4717. + # Microsoft Visual C++.
  4718. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  4719. + # no search path for DLLs.
  4720. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4721. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4722. + # Tell ltmain to make .lib files, not .a files.
  4723. + libext=lib
  4724. + # Tell ltmain to make .dll files, not .so files.
  4725. + shrext_cmds=".dll"
  4726. + # FIXME: Setting linknames here is a bad hack.
  4727. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4728. + # The linker will automatically build a .lib file if we build a DLL.
  4729. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4730. + # FIXME: Should let the user specify the lib program.
  4731. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4732. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4733. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4734. + ;;
  4735. +
  4736. + darwin* | rhapsody*)
  4737. + _LT_DARWIN_LINKER_FEATURES($1)
  4738. + ;;
  4739. +
  4740. + dgux*)
  4741. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4742. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4743. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4744. + ;;
  4745. +
  4746. + freebsd1*)
  4747. + _LT_TAGVAR(ld_shlibs, $1)=no
  4748. + ;;
  4749. +
  4750. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4751. + # support. Future versions do this automatically, but an explicit c++rt0.o
  4752. + # does not break anything, and helps significantly (at the cost of a little
  4753. + # extra space).
  4754. + freebsd2.2*)
  4755. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4756. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4757. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4758. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4759. + ;;
  4760. +
  4761. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4762. + freebsd2*)
  4763. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4764. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4765. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4766. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4767. + ;;
  4768. +
  4769. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4770. + freebsd* | dragonfly*)
  4771. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4772. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4773. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4774. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4775. + ;;
  4776. +
  4777. + hpux9*)
  4778. + if test "$GCC" = yes; then
  4779. + _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'
  4780. + else
  4781. + _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'
  4782. + fi
  4783. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4784. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4785. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4786. +
  4787. + # hardcode_minus_L: Not really in the search PATH,
  4788. + # but as the default location of the library.
  4789. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4790. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4791. + ;;
  4792. +
  4793. + hpux10*)
  4794. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4795. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4796. + else
  4797. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4798. + fi
  4799. + if test "$with_gnu_ld" = no; then
  4800. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4801. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4802. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4803. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4804. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4805. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4806. + # hardcode_minus_L: Not really in the search PATH,
  4807. + # but as the default location of the library.
  4808. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4809. + fi
  4810. + ;;
  4811. +
  4812. + hpux11*)
  4813. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4814. + case $host_cpu in
  4815. + hppa*64*)
  4816. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4817. + ;;
  4818. + ia64*)
  4819. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4820. + ;;
  4821. + *)
  4822. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4823. + ;;
  4824. + esac
  4825. + else
  4826. + case $host_cpu in
  4827. + hppa*64*)
  4828. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4829. + ;;
  4830. + ia64*)
  4831. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4832. + ;;
  4833. + *)
  4834. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4835. + ;;
  4836. + esac
  4837. + fi
  4838. + if test "$with_gnu_ld" = no; then
  4839. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4840. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4841. +
  4842. + case $host_cpu in
  4843. + hppa*64*|ia64*)
  4844. + _LT_TAGVAR(hardcode_direct, $1)=no
  4845. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4846. + ;;
  4847. + *)
  4848. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4849. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4850. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4851. +
  4852. + # hardcode_minus_L: Not really in the search PATH,
  4853. + # but as the default location of the library.
  4854. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4855. + ;;
  4856. + esac
  4857. + fi
  4858. + ;;
  4859. +
  4860. + irix5* | irix6* | nonstopux*)
  4861. + if test "$GCC" = yes; then
  4862. + _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'
  4863. + # Try to use the -exported_symbol ld option, if it does not
  4864. + # work, assume that -exports_file does not work either and
  4865. + # implicitly export all symbols.
  4866. + save_LDFLAGS="$LDFLAGS"
  4867. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4868. + AC_LINK_IFELSE(int foo(void) {},
  4869. + _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'
  4870. + )
  4871. + LDFLAGS="$save_LDFLAGS"
  4872. + else
  4873. + _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'
  4874. + _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'
  4875. + fi
  4876. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4877. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4878. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4879. + _LT_TAGVAR(inherit_rpath, $1)=yes
  4880. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  4881. + ;;
  4882. +
  4883. + netbsd* | netbsdelf*-gnu)
  4884. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4885. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4886. + else
  4887. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4888. + fi
  4889. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4890. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4891. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4892. + ;;
  4893. +
  4894. + newsos6)
  4895. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4896. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4897. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4898. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4899. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4900. + ;;
  4901. +
  4902. + *nto* | *qnx*)
  4903. + ;;
  4904. +
  4905. + openbsd*)
  4906. + if test -f /usr/libexec/ld.so; then
  4907. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4908. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4909. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4910. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4911. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4912. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4913. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4914. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4915. + else
  4916. + case $host_os in
  4917. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4918. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4919. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4920. + ;;
  4921. + *)
  4922. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4923. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4924. + ;;
  4925. + esac
  4926. + fi
  4927. + else
  4928. + _LT_TAGVAR(ld_shlibs, $1)=no
  4929. + fi
  4930. + ;;
  4931. +
  4932. + os2*)
  4933. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4934. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4935. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4936. + _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'
  4937. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4938. + ;;
  4939. +
  4940. + osf3*)
  4941. + if test "$GCC" = yes; then
  4942. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4943. + _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'
  4944. + else
  4945. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4946. + _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'
  4947. + fi
  4948. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4949. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4950. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4951. + ;;
  4952. +
  4953. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  4954. + if test "$GCC" = yes; then
  4955. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4956. + _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'
  4957. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4958. + else
  4959. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4960. + _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'
  4961. + _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~
  4962. + $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'
  4963. +
  4964. + # Both c and cxx compiler support -rpath directly
  4965. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4966. + fi
  4967. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4968. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4969. + ;;
  4970. +
  4971. + solaris*)
  4972. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4973. + if test "$GCC" = yes; then
  4974. + wlarc='${wl}'
  4975. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4976. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4977. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4978. + else
  4979. + case `$CC -V 2>&1` in
  4980. + *"Compilers 5.0"*)
  4981. + wlarc=''
  4982. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4983. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4984. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4985. + ;;
  4986. + *)
  4987. + wlarc='${wl}'
  4988. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4989. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4990. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4991. + ;;
  4992. + esac
  4993. + fi
  4994. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4995. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4996. + case $host_os in
  4997. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4998. + *)
  4999. + # The compiler driver will combine and reorder linker options,
  5000. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  5001. + # but is careful enough not to reorder.
  5002. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5003. + if test "$GCC" = yes; then
  5004. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5005. + else
  5006. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5007. + fi
  5008. + ;;
  5009. + esac
  5010. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5011. + ;;
  5012. +
  5013. + sunos4*)
  5014. + if test "x$host_vendor" = xsequent; then
  5015. + # Use $CC to link under sequent, because it throws in some extra .o
  5016. + # files that make .init and .fini sections work.
  5017. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5018. + else
  5019. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5020. + fi
  5021. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5022. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5023. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5024. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5025. + ;;
  5026. +
  5027. + sysv4)
  5028. + case $host_vendor in
  5029. + sni)
  5030. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5031. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5032. + ;;
  5033. + siemens)
  5034. + ## LD is ld it makes a PLAMLIB
  5035. + ## CC just makes a GrossModule.
  5036. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5037. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5038. + _LT_TAGVAR(hardcode_direct, $1)=no
  5039. + ;;
  5040. + motorola)
  5041. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5042. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5043. + ;;
  5044. + esac
  5045. + runpath_var='LD_RUN_PATH'
  5046. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5047. + ;;
  5048. +
  5049. + sysv4.3*)
  5050. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5051. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5052. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5053. + ;;
  5054. +
  5055. + sysv4*MP*)
  5056. + if test -d /usr/nec; then
  5057. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5058. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5059. + runpath_var=LD_RUN_PATH
  5060. + hardcode_runpath_var=yes
  5061. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5062. + fi
  5063. + ;;
  5064. +
  5065. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5066. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5067. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5069. + runpath_var='LD_RUN_PATH'
  5070. +
  5071. + if test "$GCC" = yes; then
  5072. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5073. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5074. + else
  5075. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5076. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5077. + fi
  5078. + ;;
  5079. +
  5080. + sysv5* | sco3.2v5* | sco5v6*)
  5081. + # Note: We can NOT use -z defs as we might desire, because we do not
  5082. + # link with -lc, and that would cause any symbols used from libc to
  5083. + # always be unresolved, which means just about no library would
  5084. + # ever link correctly. If we're not using GNU ld we use -z text
  5085. + # though, which does catch some bad symbols but isn't as heavy-handed
  5086. + # as -z defs.
  5087. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5088. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5089. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5090. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5091. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5092. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5093. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5094. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5095. + runpath_var='LD_RUN_PATH'
  5096. +
  5097. + if test "$GCC" = yes; then
  5098. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5099. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5100. + else
  5101. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5102. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5103. + fi
  5104. + ;;
  5105. +
  5106. + uts4*)
  5107. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5108. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5109. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5110. + ;;
  5111. +
  5112. + *)
  5113. + _LT_TAGVAR(ld_shlibs, $1)=no
  5114. + ;;
  5115. + esac
  5116. +
  5117. + if test x$host_vendor = xsni; then
  5118. + case $host in
  5119. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5120. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5121. + ;;
  5122. + esac
  5123. + fi
  5124. + fi
  5125. +])
  5126. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5127. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5128. +
  5129. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5130. +
  5131. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5132. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5133. +_LT_DECL([], [extract_expsyms_cmds], [2],
  5134. + [The commands to extract the exported symbol list from a shared archive])
  5135. +
  5136. +#
  5137. +# Do we need to explicitly link libc?
  5138. +#
  5139. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5140. +x|xyes)
  5141. + # Assume -lc should be added
  5142. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5143. +
  5144. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  5145. + case $_LT_TAGVAR(archive_cmds, $1) in
  5146. + *'~'*)
  5147. + # FIXME: we may have to deal with multi-command sequences.
  5148. + ;;
  5149. + '$CC '*)
  5150. + # Test whether the compiler implicitly links with -lc since on some
  5151. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5152. + # to ld, don't add -lc before -lgcc.
  5153. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5154. + $RM conftest*
  5155. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5156. +
  5157. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5158. + soname=conftest
  5159. + lib=conftest
  5160. + libobjs=conftest.$ac_objext
  5161. + deplibs=
  5162. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5163. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5164. + compiler_flags=-v
  5165. + linker_flags=-v
  5166. + verstring=
  5167. + output_objdir=.
  5168. + libname=conftest
  5169. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5170. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5171. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5172. + then
  5173. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5174. + else
  5175. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5176. + fi
  5177. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5178. + else
  5179. + cat conftest.err 1>&5
  5180. + fi
  5181. + $RM conftest*
  5182. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  5183. + ;;
  5184. + esac
  5185. + fi
  5186. + ;;
  5187. +esac
  5188. +
  5189. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5190. + [Whether or not to add -lc for building shared libraries])
  5191. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5192. + [enable_shared_with_static_runtimes], [0],
  5193. + [Whether or not to disallow shared libs when runtime libs are static])
  5194. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5195. + [Compiler flag to allow reflexive dlopens])
  5196. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5197. + [Compiler flag to generate shared objects directly from archives])
  5198. +_LT_TAGDECL([], [compiler_needs_object], [1],
  5199. + [Whether the compiler copes with passing no objects directly])
  5200. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5201. + [Create an old-style archive from a shared archive])
  5202. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5203. + [Create a temporary old-style archive to link instead of a shared archive])
  5204. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5205. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  5206. +_LT_TAGDECL([], [module_cmds], [2],
  5207. + [Commands used to build a loadable module if different from building
  5208. + a shared archive.])
  5209. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  5210. +_LT_TAGDECL([], [with_gnu_ld], [1],
  5211. + [Whether we are building with GNU ld or not])
  5212. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  5213. + [Flag that allows shared libraries with undefined symbols to be built])
  5214. +_LT_TAGDECL([], [no_undefined_flag], [1],
  5215. + [Flag that enforces no undefined symbols])
  5216. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5217. + [Flag to hardcode $libdir into a binary during linking.
  5218. + This must work even if $libdir does not exist])
  5219. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5220. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  5221. + during linking. This must work even if $libdir does not exist]])
  5222. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5223. + [Whether we need a single "-rpath" flag with a separated argument])
  5224. +_LT_TAGDECL([], [hardcode_direct], [0],
  5225. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5226. + DIR into the resulting binary])
  5227. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5228. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5229. + DIR into the resulting binary and the resulting library dependency is
  5230. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5231. + library is relocated])
  5232. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  5233. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5234. + into the resulting binary])
  5235. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5236. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5237. + into the resulting binary])
  5238. +_LT_TAGDECL([], [hardcode_automatic], [0],
  5239. + [Set to "yes" if building a shared library automatically hardcodes DIR
  5240. + into the library and all subsequent libraries and executables linked
  5241. + against it])
  5242. +_LT_TAGDECL([], [inherit_rpath], [0],
  5243. + [Set to yes if linker adds runtime paths of dependent libraries
  5244. + to runtime path list])
  5245. +_LT_TAGDECL([], [link_all_deplibs], [0],
  5246. + [Whether libtool must link a program against all its dependency libraries])
  5247. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  5248. + [Fix the shell variable $srcfile for the compiler])
  5249. +_LT_TAGDECL([], [always_export_symbols], [0],
  5250. + [Set to "yes" if exported symbols are required])
  5251. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  5252. + [The commands to list exported symbols])
  5253. +_LT_TAGDECL([], [exclude_expsyms], [1],
  5254. + [Symbols that should not be listed in the preloaded symbols])
  5255. +_LT_TAGDECL([], [include_expsyms], [1],
  5256. + [Symbols that must always be exported])
  5257. +_LT_TAGDECL([], [prelink_cmds], [2],
  5258. + [Commands necessary for linking programs (against libraries) with templates])
  5259. +_LT_TAGDECL([], [file_list_spec], [1],
  5260. + [Specify filename containing input files])
  5261. +dnl FIXME: Not yet implemented
  5262. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5263. +dnl [Compiler flag to generate thread safe objects])
  5264. +])# _LT_LINKER_SHLIBS
  5265. +
  5266. +
  5267. +# _LT_LANG_C_CONFIG([TAG])
  5268. +# ------------------------
  5269. +# Ensure that the configuration variables for a C compiler are suitably
  5270. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5271. +# the compiler configuration to `libtool'.
  5272. +m4_defun([_LT_LANG_C_CONFIG],
  5273. +[m4_require([_LT_DECL_EGREP])dnl
  5274. +lt_save_CC="$CC"
  5275. +AC_LANG_PUSH(C)
  5276. +
  5277. +# Source file extension for C test sources.
  5278. +ac_ext=c
  5279. +
  5280. +# Object file extension for compiled C test sources.
  5281. +objext=o
  5282. +_LT_TAGVAR(objext, $1)=$objext
  5283. +
  5284. +# Code to be used in simple compile tests
  5285. +lt_simple_compile_test_code="int some_variable = 0;"
  5286. +
  5287. +# Code to be used in simple link tests
  5288. +lt_simple_link_test_code='int main(){return(0);}'
  5289. +
  5290. +_LT_TAG_COMPILER
  5291. +# Save the default compiler, since it gets overwritten when the other
  5292. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5293. +compiler_DEFAULT=$CC
  5294. +
  5295. +# save warnings/boilerplate of simple test code
  5296. +_LT_COMPILER_BOILERPLATE
  5297. +_LT_LINKER_BOILERPLATE
  5298. +
  5299. +if test -n "$compiler"; then
  5300. + _LT_COMPILER_NO_RTTI($1)
  5301. + _LT_COMPILER_PIC($1)
  5302. + _LT_COMPILER_C_O($1)
  5303. + _LT_COMPILER_FILE_LOCKS($1)
  5304. + _LT_LINKER_SHLIBS($1)
  5305. + _LT_SYS_DYNAMIC_LINKER($1)
  5306. + _LT_LINKER_HARDCODE_LIBPATH($1)
  5307. + LT_SYS_DLOPEN_SELF
  5308. + _LT_CMD_STRIPLIB
  5309. +
  5310. + # Report which library types will actually be built
  5311. + AC_MSG_CHECKING([if libtool supports shared libraries])
  5312. + AC_MSG_RESULT([$can_build_shared])
  5313. +
  5314. + AC_MSG_CHECKING([whether to build shared libraries])
  5315. + test "$can_build_shared" = "no" && enable_shared=no
  5316. +
  5317. + # On AIX, shared libraries and static libraries use the same namespace, and
  5318. + # are all built from PIC.
  5319. + case $host_os in
  5320. + aix3*)
  5321. + test "$enable_shared" = yes && enable_static=no
  5322. + if test -n "$RANLIB"; then
  5323. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5324. + postinstall_cmds='$RANLIB $lib'
  5325. + fi
  5326. + ;;
  5327. +
  5328. + aix[[4-9]]*)
  5329. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5330. + test "$enable_shared" = yes && enable_static=no
  5331. + fi
  5332. + ;;
  5333. + esac
  5334. + AC_MSG_RESULT([$enable_shared])
  5335. +
  5336. + AC_MSG_CHECKING([whether to build static libraries])
  5337. + # Make sure either enable_shared or enable_static is yes.
  5338. + test "$enable_shared" = yes || enable_static=yes
  5339. + AC_MSG_RESULT([$enable_static])
  5340. +
  5341. + _LT_CONFIG($1)
  5342. +fi
  5343. +AC_LANG_POP
  5344. +CC="$lt_save_CC"
  5345. +])# _LT_LANG_C_CONFIG
  5346. +
  5347. +
  5348. +# _LT_PROG_CXX
  5349. +# ------------
  5350. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  5351. +# compiler, we have our own version here.
  5352. +m4_defun([_LT_PROG_CXX],
  5353. +[
  5354. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  5355. +AC_PROG_CXX
  5356. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5357. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5358. + (test "X$CXX" != "Xg++"))) ; then
  5359. + AC_PROG_CXXCPP
  5360. +else
  5361. + _lt_caught_CXX_error=yes
  5362. +fi
  5363. +popdef([AC_MSG_ERROR])
  5364. +])# _LT_PROG_CXX
  5365. +
  5366. +dnl aclocal-1.4 backwards compatibility:
  5367. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  5368. +
  5369. +
  5370. +# _LT_LANG_CXX_CONFIG([TAG])
  5371. +# --------------------------
  5372. +# Ensure that the configuration variables for a C++ compiler are suitably
  5373. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5374. +# the compiler configuration to `libtool'.
  5375. +m4_defun([_LT_LANG_CXX_CONFIG],
  5376. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  5377. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5378. +m4_require([_LT_DECL_EGREP])dnl
  5379. +
  5380. +AC_LANG_PUSH(C++)
  5381. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5382. +_LT_TAGVAR(allow_undefined_flag, $1)=
  5383. +_LT_TAGVAR(always_export_symbols, $1)=no
  5384. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  5385. +_LT_TAGVAR(compiler_needs_object, $1)=no
  5386. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5387. +_LT_TAGVAR(hardcode_direct, $1)=no
  5388. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5389. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5390. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5391. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  5392. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  5393. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5394. +_LT_TAGVAR(hardcode_automatic, $1)=no
  5395. +_LT_TAGVAR(inherit_rpath, $1)=no
  5396. +_LT_TAGVAR(module_cmds, $1)=
  5397. +_LT_TAGVAR(module_expsym_cmds, $1)=
  5398. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  5399. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5400. +_LT_TAGVAR(no_undefined_flag, $1)=
  5401. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  5402. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5403. +
  5404. +# Source file extension for C++ test sources.
  5405. +ac_ext=cpp
  5406. +
  5407. +# Object file extension for compiled C++ test sources.
  5408. +objext=o
  5409. +_LT_TAGVAR(objext, $1)=$objext
  5410. +
  5411. +# No sense in running all these tests if we already determined that
  5412. +# the CXX compiler isn't working. Some variables (like enable_shared)
  5413. +# are currently assumed to apply to all compilers on this platform,
  5414. +# and will be corrupted by setting them based on a non-working compiler.
  5415. +if test "$_lt_caught_CXX_error" != yes; then
  5416. + # Code to be used in simple compile tests
  5417. + lt_simple_compile_test_code="int some_variable = 0;"
  5418. +
  5419. + # Code to be used in simple link tests
  5420. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5421. +
  5422. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5423. + _LT_TAG_COMPILER
  5424. +
  5425. + # save warnings/boilerplate of simple test code
  5426. + _LT_COMPILER_BOILERPLATE
  5427. + _LT_LINKER_BOILERPLATE
  5428. +
  5429. + # Allow CC to be a program name with arguments.
  5430. + lt_save_CC=$CC
  5431. + lt_save_LD=$LD
  5432. + lt_save_GCC=$GCC
  5433. + GCC=$GXX
  5434. + lt_save_with_gnu_ld=$with_gnu_ld
  5435. + lt_save_path_LD=$lt_cv_path_LD
  5436. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5437. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5438. + else
  5439. + $as_unset lt_cv_prog_gnu_ld
  5440. + fi
  5441. + if test -n "${lt_cv_path_LDCXX+set}"; then
  5442. + lt_cv_path_LD=$lt_cv_path_LDCXX
  5443. + else
  5444. + $as_unset lt_cv_path_LD
  5445. + fi
  5446. + test -z "${LDCXX+set}" || LD=$LDCXX
  5447. + CC=${CXX-"c++"}
  5448. + compiler=$CC
  5449. + _LT_TAGVAR(compiler, $1)=$CC
  5450. + _LT_CC_BASENAME([$compiler])
  5451. +
  5452. + if test -n "$compiler"; then
  5453. + # We don't want -fno-exception when compiling C++ code, so set the
  5454. + # no_builtin_flag separately
  5455. + if test "$GXX" = yes; then
  5456. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5457. + else
  5458. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5459. + fi
  5460. +
  5461. + if test "$GXX" = yes; then
  5462. + # Set up default GNU C++ configuration
  5463. +
  5464. + LT_PATH_LD
  5465. +
  5466. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5467. + # archiving commands below assume that GNU ld is being used.
  5468. + if test "$with_gnu_ld" = yes; then
  5469. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5470. + _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'
  5471. +
  5472. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5473. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5474. +
  5475. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5476. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5477. + # investigate it a little bit more. (MM)
  5478. + wlarc='${wl}'
  5479. +
  5480. + # ancient GNU ld didn't support --whole-archive et. al.
  5481. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5482. + $GREP 'no-whole-archive' > /dev/null; then
  5483. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5484. + else
  5485. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5486. + fi
  5487. + else
  5488. + with_gnu_ld=no
  5489. + wlarc=
  5490. +
  5491. + # A generic and very simple default shared library creation
  5492. + # command for GNU C++ for the case where it uses the native
  5493. + # linker, instead of GNU ld. If possible, this setting should
  5494. + # overridden to take advantage of the native linker features on
  5495. + # the platform it is being used on.
  5496. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5497. + fi
  5498. +
  5499. + # Commands to make compiler produce verbose output that lists
  5500. + # what "hidden" libraries, object files and flags are used when
  5501. + # linking a shared library.
  5502. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5503. +
  5504. + else
  5505. + GXX=no
  5506. + with_gnu_ld=no
  5507. + wlarc=
  5508. + fi
  5509. +
  5510. + # PORTME: fill in a description of your system's C++ link characteristics
  5511. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5512. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5513. + case $host_os in
  5514. + aix3*)
  5515. + # FIXME: insert proper C++ library support
  5516. + _LT_TAGVAR(ld_shlibs, $1)=no
  5517. + ;;
  5518. + aix[[4-9]]*)
  5519. + if test "$host_cpu" = ia64; then
  5520. + # On IA64, the linker does run time linking by default, so we don't
  5521. + # have to do anything special.
  5522. + aix_use_runtimelinking=no
  5523. + exp_sym_flag='-Bexport'
  5524. + no_entry_flag=""
  5525. + else
  5526. + aix_use_runtimelinking=no
  5527. +
  5528. + # Test if we are trying to use run time linking or normal
  5529. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5530. + # need to do runtime linking.
  5531. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5532. + for ld_flag in $LDFLAGS; do
  5533. + case $ld_flag in
  5534. + *-brtl*)
  5535. + aix_use_runtimelinking=yes
  5536. + break
  5537. + ;;
  5538. + esac
  5539. + done
  5540. + ;;
  5541. + esac
  5542. +
  5543. + exp_sym_flag='-bexport'
  5544. + no_entry_flag='-bnoentry'
  5545. + fi
  5546. +
  5547. + # When large executables or shared objects are built, AIX ld can
  5548. + # have problems creating the table of contents. If linking a library
  5549. + # or program results in "error TOC overflow" add -mminimal-toc to
  5550. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5551. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5552. +
  5553. + _LT_TAGVAR(archive_cmds, $1)=''
  5554. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5555. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5556. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5557. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5558. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5559. +
  5560. + if test "$GXX" = yes; then
  5561. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5562. + # We only want to do this on AIX 4.2 and lower, the check
  5563. + # below for broken collect2 doesn't work under 4.3+
  5564. + collect2name=`${CC} -print-prog-name=collect2`
  5565. + if test -f "$collect2name" &&
  5566. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5567. + then
  5568. + # We have reworked collect2
  5569. + :
  5570. + else
  5571. + # We have old collect2
  5572. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5573. + # It fails to find uninstalled libraries when the uninstalled
  5574. + # path is not listed in the libpath. Setting hardcode_minus_L
  5575. + # to unsupported forces relinking
  5576. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5578. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5579. + fi
  5580. + esac
  5581. + shared_flag='-shared'
  5582. + if test "$aix_use_runtimelinking" = yes; then
  5583. + shared_flag="$shared_flag "'${wl}-G'
  5584. + fi
  5585. + else
  5586. + # not using gcc
  5587. + if test "$host_cpu" = ia64; then
  5588. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5589. + # chokes on -Wl,-G. The following line is correct:
  5590. + shared_flag='-G'
  5591. + else
  5592. + if test "$aix_use_runtimelinking" = yes; then
  5593. + shared_flag='${wl}-G'
  5594. + else
  5595. + shared_flag='${wl}-bM:SRE'
  5596. + fi
  5597. + fi
  5598. + fi
  5599. +
  5600. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5601. + # It seems that -bexpall does not export symbols beginning with
  5602. + # underscore (_), so it is better to generate a list of symbols to
  5603. + # export.
  5604. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5605. + if test "$aix_use_runtimelinking" = yes; then
  5606. + # Warning - without using the other runtime loading flags (-brtl),
  5607. + # -berok will link without error, but may produce a broken library.
  5608. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5609. + # Determine the default libpath from the value encoded in an empty
  5610. + # executable.
  5611. + _LT_SYS_MODULE_PATH_AIX
  5612. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5613. +
  5614. + _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"
  5615. + else
  5616. + if test "$host_cpu" = ia64; then
  5617. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5618. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5619. + _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"
  5620. + else
  5621. + # Determine the default libpath from the value encoded in an
  5622. + # empty executable.
  5623. + _LT_SYS_MODULE_PATH_AIX
  5624. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5625. + # Warning - without using the other run time loading flags,
  5626. + # -berok will link without error, but may produce a broken library.
  5627. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5628. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5629. + # Exported symbols can be pulled into shared objects from archives
  5630. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5631. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5632. + # This is similar to how AIX traditionally builds its shared
  5633. + # libraries.
  5634. + _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'
  5635. + fi
  5636. + fi
  5637. + ;;
  5638. +
  5639. + beos*)
  5640. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5641. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5642. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5643. + # support --undefined. This deserves some investigation. FIXME
  5644. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5645. + else
  5646. + _LT_TAGVAR(ld_shlibs, $1)=no
  5647. + fi
  5648. + ;;
  5649. +
  5650. + chorus*)
  5651. + case $cc_basename in
  5652. + *)
  5653. + # FIXME: insert proper C++ library support
  5654. + _LT_TAGVAR(ld_shlibs, $1)=no
  5655. + ;;
  5656. + esac
  5657. + ;;
  5658. +
  5659. + cygwin* | mingw* | pw32* | cegcc*)
  5660. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5661. + # as there is no search path for DLLs.
  5662. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5663. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5664. + _LT_TAGVAR(always_export_symbols, $1)=no
  5665. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5666. +
  5667. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5668. + _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'
  5669. + # If the export-symbols file already is a .def file (1st line
  5670. + # is EXPORTS), use it as is; otherwise, prepend...
  5671. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5672. + cp $export_symbols $output_objdir/$soname.def;
  5673. + else
  5674. + echo EXPORTS > $output_objdir/$soname.def;
  5675. + cat $export_symbols >> $output_objdir/$soname.def;
  5676. + fi~
  5677. + $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'
  5678. + else
  5679. + _LT_TAGVAR(ld_shlibs, $1)=no
  5680. + fi
  5681. + ;;
  5682. + darwin* | rhapsody*)
  5683. + _LT_DARWIN_LINKER_FEATURES($1)
  5684. + ;;
  5685. +
  5686. + dgux*)
  5687. + case $cc_basename in
  5688. + ec++*)
  5689. + # FIXME: insert proper C++ library support
  5690. + _LT_TAGVAR(ld_shlibs, $1)=no
  5691. + ;;
  5692. + ghcx*)
  5693. + # Green Hills C++ Compiler
  5694. + # FIXME: insert proper C++ library support
  5695. + _LT_TAGVAR(ld_shlibs, $1)=no
  5696. + ;;
  5697. + *)
  5698. + # FIXME: insert proper C++ library support
  5699. + _LT_TAGVAR(ld_shlibs, $1)=no
  5700. + ;;
  5701. + esac
  5702. + ;;
  5703. +
  5704. + freebsd[[12]]*)
  5705. + # C++ shared libraries reported to be fairly broken before
  5706. + # switch to ELF
  5707. + _LT_TAGVAR(ld_shlibs, $1)=no
  5708. + ;;
  5709. +
  5710. + freebsd-elf*)
  5711. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5712. + ;;
  5713. +
  5714. + freebsd* | dragonfly*)
  5715. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5716. + # conventions
  5717. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5718. + ;;
  5719. +
  5720. + gnu*)
  5721. + ;;
  5722. +
  5723. + hpux9*)
  5724. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5725. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5726. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5727. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5728. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5729. + # but as the default
  5730. + # location of the library.
  5731. +
  5732. + case $cc_basename in
  5733. + CC*)
  5734. + # FIXME: insert proper C++ library support
  5735. + _LT_TAGVAR(ld_shlibs, $1)=no
  5736. + ;;
  5737. + aCC*)
  5738. + _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'
  5739. + # Commands to make compiler produce verbose output that lists
  5740. + # what "hidden" libraries, object files and flags are used when
  5741. + # linking a shared library.
  5742. + #
  5743. + # There doesn't appear to be a way to prevent this compiler from
  5744. + # explicitly linking system object files so we need to strip them
  5745. + # from the output so that they don't get included in the library
  5746. + # dependencies.
  5747. + 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'
  5748. + ;;
  5749. + *)
  5750. + if test "$GXX" = yes; then
  5751. + _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'
  5752. + else
  5753. + # FIXME: insert proper C++ library support
  5754. + _LT_TAGVAR(ld_shlibs, $1)=no
  5755. + fi
  5756. + ;;
  5757. + esac
  5758. + ;;
  5759. +
  5760. + hpux10*|hpux11*)
  5761. + if test $with_gnu_ld = no; then
  5762. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5763. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5764. +
  5765. + case $host_cpu in
  5766. + hppa*64*|ia64*)
  5767. + ;;
  5768. + *)
  5769. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5770. + ;;
  5771. + esac
  5772. + fi
  5773. + case $host_cpu in
  5774. + hppa*64*|ia64*)
  5775. + _LT_TAGVAR(hardcode_direct, $1)=no
  5776. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5777. + ;;
  5778. + *)
  5779. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5780. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5781. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5782. + # but as the default
  5783. + # location of the library.
  5784. + ;;
  5785. + esac
  5786. +
  5787. + case $cc_basename in
  5788. + CC*)
  5789. + # FIXME: insert proper C++ library support
  5790. + _LT_TAGVAR(ld_shlibs, $1)=no
  5791. + ;;
  5792. + aCC*)
  5793. + case $host_cpu in
  5794. + hppa*64*)
  5795. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5796. + ;;
  5797. + ia64*)
  5798. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5799. + ;;
  5800. + *)
  5801. + _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'
  5802. + ;;
  5803. + esac
  5804. + # Commands to make compiler produce verbose output that lists
  5805. + # what "hidden" libraries, object files and flags are used when
  5806. + # linking a shared library.
  5807. + #
  5808. + # There doesn't appear to be a way to prevent this compiler from
  5809. + # explicitly linking system object files so we need to strip them
  5810. + # from the output so that they don't get included in the library
  5811. + # dependencies.
  5812. + 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'
  5813. + ;;
  5814. + *)
  5815. + if test "$GXX" = yes; then
  5816. + if test $with_gnu_ld = no; then
  5817. + case $host_cpu in
  5818. + hppa*64*)
  5819. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5820. + ;;
  5821. + ia64*)
  5822. + _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'
  5823. + ;;
  5824. + *)
  5825. + _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'
  5826. + ;;
  5827. + esac
  5828. + fi
  5829. + else
  5830. + # FIXME: insert proper C++ library support
  5831. + _LT_TAGVAR(ld_shlibs, $1)=no
  5832. + fi
  5833. + ;;
  5834. + esac
  5835. + ;;
  5836. +
  5837. + interix[[3-9]]*)
  5838. + _LT_TAGVAR(hardcode_direct, $1)=no
  5839. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5840. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5841. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5842. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5843. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5844. + # default) and relocated if they conflict, which is a slow very memory
  5845. + # consuming and fragmenting process. To avoid this, we pick a random,
  5846. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5847. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5848. + _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'
  5849. + _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'
  5850. + ;;
  5851. + irix5* | irix6*)
  5852. + case $cc_basename in
  5853. + CC*)
  5854. + # SGI C++
  5855. + _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'
  5856. +
  5857. + # Archives containing C++ object files must be created using
  5858. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5859. + # necessary to make sure instantiated templates are included
  5860. + # in the archive.
  5861. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5862. + ;;
  5863. + *)
  5864. + if test "$GXX" = yes; then
  5865. + if test "$with_gnu_ld" = no; then
  5866. + _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'
  5867. + else
  5868. + _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'
  5869. + fi
  5870. + fi
  5871. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5872. + ;;
  5873. + esac
  5874. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5875. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5876. + _LT_TAGVAR(inherit_rpath, $1)=yes
  5877. + ;;
  5878. +
  5879. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5880. + case $cc_basename in
  5881. + KCC*)
  5882. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5883. +
  5884. + # KCC will only create a shared library if the output file
  5885. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5886. + # to its proper name (with version) after linking.
  5887. + _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'
  5888. + _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'
  5889. + # Commands to make compiler produce verbose output that lists
  5890. + # what "hidden" libraries, object files and flags are used when
  5891. + # linking a shared library.
  5892. + #
  5893. + # There doesn't appear to be a way to prevent this compiler from
  5894. + # explicitly linking system object files so we need to strip them
  5895. + # from the output so that they don't get included in the library
  5896. + # dependencies.
  5897. + 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'
  5898. +
  5899. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5900. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5901. +
  5902. + # Archives containing C++ object files must be created using
  5903. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5904. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5905. + ;;
  5906. + icpc* | ecpc* )
  5907. + # Intel C++
  5908. + with_gnu_ld=yes
  5909. + # version 8.0 and above of icpc choke on multiply defined symbols
  5910. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  5911. + # earlier do not add the objects themselves.
  5912. + case `$CC -V 2>&1` in
  5913. + *"Version 7."*)
  5914. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5915. + _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'
  5916. + ;;
  5917. + *) # Version 8.0 or newer
  5918. + tmp_idyn=
  5919. + case $host_cpu in
  5920. + ia64*) tmp_idyn=' -i_dynamic';;
  5921. + esac
  5922. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5923. + _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'
  5924. + ;;
  5925. + esac
  5926. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5927. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5928. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5929. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5930. + ;;
  5931. + pgCC* | pgcpp*)
  5932. + # Portland Group C++ compiler
  5933. + case `$CC -V` in
  5934. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  5935. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5936. + rm -rf $tpldir~
  5937. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5938. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  5939. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5940. + rm -rf $tpldir~
  5941. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5942. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  5943. + $RANLIB $oldlib'
  5944. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5945. + rm -rf $tpldir~
  5946. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5947. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5948. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5949. + rm -rf $tpldir~
  5950. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5951. + $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'
  5952. + ;;
  5953. + *) # Version 6 will use weak symbols
  5954. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5955. + _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'
  5956. + ;;
  5957. + esac
  5958. +
  5959. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5960. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5961. + _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'
  5962. + ;;
  5963. + cxx*)
  5964. + # Compaq C++
  5965. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5966. + _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'
  5967. +
  5968. + runpath_var=LD_RUN_PATH
  5969. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5970. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5971. +
  5972. + # Commands to make compiler produce verbose output that lists
  5973. + # what "hidden" libraries, object files and flags are used when
  5974. + # linking a shared library.
  5975. + #
  5976. + # There doesn't appear to be a way to prevent this compiler from
  5977. + # explicitly linking system object files so we need to strip them
  5978. + # from the output so that they don't get included in the library
  5979. + # dependencies.
  5980. + 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'
  5981. + ;;
  5982. + xl*)
  5983. + # IBM XL 8.0 on PPC, with GNU ld
  5984. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5985. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5986. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5987. + if test "x$supports_anon_versioning" = xyes; then
  5988. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5989. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5990. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5991. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5992. + fi
  5993. + ;;
  5994. + *)
  5995. + case `$CC -V 2>&1 | sed 5q` in
  5996. + *Sun\ C*)
  5997. + # Sun C++ 5.9
  5998. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5999. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6000. + _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'
  6001. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6002. + _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'
  6003. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  6004. +
  6005. + # Not sure whether something based on
  6006. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6007. + # would be better.
  6008. + output_verbose_link_cmd='echo'
  6009. +
  6010. + # Archives containing C++ object files must be created using
  6011. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6012. + # necessary to make sure instantiated templates are included
  6013. + # in the archive.
  6014. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6015. + ;;
  6016. + esac
  6017. + ;;
  6018. + esac
  6019. + ;;
  6020. +
  6021. + lynxos*)
  6022. + # FIXME: insert proper C++ library support
  6023. + _LT_TAGVAR(ld_shlibs, $1)=no
  6024. + ;;
  6025. +
  6026. + m88k*)
  6027. + # FIXME: insert proper C++ library support
  6028. + _LT_TAGVAR(ld_shlibs, $1)=no
  6029. + ;;
  6030. +
  6031. + mvs*)
  6032. + case $cc_basename in
  6033. + cxx*)
  6034. + # FIXME: insert proper C++ library support
  6035. + _LT_TAGVAR(ld_shlibs, $1)=no
  6036. + ;;
  6037. + *)
  6038. + # FIXME: insert proper C++ library support
  6039. + _LT_TAGVAR(ld_shlibs, $1)=no
  6040. + ;;
  6041. + esac
  6042. + ;;
  6043. +
  6044. + netbsd*)
  6045. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6046. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6047. + wlarc=
  6048. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6049. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6050. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6051. + fi
  6052. + # Workaround some broken pre-1.5 toolchains
  6053. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6054. + ;;
  6055. +
  6056. + *nto* | *qnx*)
  6057. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6058. + ;;
  6059. +
  6060. + openbsd2*)
  6061. + # C++ shared libraries are fairly broken
  6062. + _LT_TAGVAR(ld_shlibs, $1)=no
  6063. + ;;
  6064. +
  6065. + openbsd*)
  6066. + if test -f /usr/libexec/ld.so; then
  6067. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6069. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6070. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6071. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6072. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6073. + _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'
  6074. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6075. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6076. + fi
  6077. + output_verbose_link_cmd=echo
  6078. + else
  6079. + _LT_TAGVAR(ld_shlibs, $1)=no
  6080. + fi
  6081. + ;;
  6082. +
  6083. + osf3* | osf4* | osf5*)
  6084. + case $cc_basename in
  6085. + KCC*)
  6086. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6087. +
  6088. + # KCC will only create a shared library if the output file
  6089. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6090. + # to its proper name (with version) after linking.
  6091. + _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'
  6092. +
  6093. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6094. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6095. +
  6096. + # Archives containing C++ object files must be created using
  6097. + # the KAI C++ compiler.
  6098. + case $host in
  6099. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6100. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6101. + esac
  6102. + ;;
  6103. + RCC*)
  6104. + # Rational C++ 2.4.1
  6105. + # FIXME: insert proper C++ library support
  6106. + _LT_TAGVAR(ld_shlibs, $1)=no
  6107. + ;;
  6108. + cxx*)
  6109. + case $host in
  6110. + osf3*)
  6111. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6112. + _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'
  6113. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6114. + ;;
  6115. + *)
  6116. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6117. + _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'
  6118. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6119. + echo "-hidden">> $lib.exp~
  6120. + $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~
  6121. + $RM $lib.exp'
  6122. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6123. + ;;
  6124. + esac
  6125. +
  6126. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6127. +
  6128. + # Commands to make compiler produce verbose output that lists
  6129. + # what "hidden" libraries, object files and flags are used when
  6130. + # linking a shared library.
  6131. + #
  6132. + # There doesn't appear to be a way to prevent this compiler from
  6133. + # explicitly linking system object files so we need to strip them
  6134. + # from the output so that they don't get included in the library
  6135. + # dependencies.
  6136. + 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'
  6137. + ;;
  6138. + *)
  6139. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6140. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6141. + case $host in
  6142. + osf3*)
  6143. + _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'
  6144. + ;;
  6145. + *)
  6146. + _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'
  6147. + ;;
  6148. + esac
  6149. +
  6150. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6151. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6152. +
  6153. + # Commands to make compiler produce verbose output that lists
  6154. + # what "hidden" libraries, object files and flags are used when
  6155. + # linking a shared library.
  6156. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6157. +
  6158. + else
  6159. + # FIXME: insert proper C++ library support
  6160. + _LT_TAGVAR(ld_shlibs, $1)=no
  6161. + fi
  6162. + ;;
  6163. + esac
  6164. + ;;
  6165. +
  6166. + psos*)
  6167. + # FIXME: insert proper C++ library support
  6168. + _LT_TAGVAR(ld_shlibs, $1)=no
  6169. + ;;
  6170. +
  6171. + sunos4*)
  6172. + case $cc_basename in
  6173. + CC*)
  6174. + # Sun C++ 4.x
  6175. + # FIXME: insert proper C++ library support
  6176. + _LT_TAGVAR(ld_shlibs, $1)=no
  6177. + ;;
  6178. + lcc*)
  6179. + # Lucid
  6180. + # FIXME: insert proper C++ library support
  6181. + _LT_TAGVAR(ld_shlibs, $1)=no
  6182. + ;;
  6183. + *)
  6184. + # FIXME: insert proper C++ library support
  6185. + _LT_TAGVAR(ld_shlibs, $1)=no
  6186. + ;;
  6187. + esac
  6188. + ;;
  6189. +
  6190. + solaris*)
  6191. + case $cc_basename in
  6192. + CC*)
  6193. + # Sun C++ 4.2, 5.x and Centerline C++
  6194. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6195. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6196. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6197. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6198. + $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'
  6199. +
  6200. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6201. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6202. + case $host_os in
  6203. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6204. + *)
  6205. + # The compiler driver will combine and reorder linker options,
  6206. + # but understands `-z linker_flag'.
  6207. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6208. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6209. + ;;
  6210. + esac
  6211. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6212. +
  6213. + output_verbose_link_cmd='echo'
  6214. +
  6215. + # Archives containing C++ object files must be created using
  6216. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6217. + # necessary to make sure instantiated templates are included
  6218. + # in the archive.
  6219. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6220. + ;;
  6221. + gcx*)
  6222. + # Green Hills C++ Compiler
  6223. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6224. +
  6225. + # The C++ compiler must be used to create the archive.
  6226. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6227. + ;;
  6228. + *)
  6229. + # GNU C++ compiler with Solaris linker
  6230. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6231. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6232. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6233. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6234. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6235. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6236. +
  6237. + # Commands to make compiler produce verbose output that lists
  6238. + # what "hidden" libraries, object files and flags are used when
  6239. + # linking a shared library.
  6240. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6241. + else
  6242. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6243. + # platform.
  6244. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6245. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6246. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6247. +
  6248. + # Commands to make compiler produce verbose output that lists
  6249. + # what "hidden" libraries, object files and flags are used when
  6250. + # linking a shared library.
  6251. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6252. + fi
  6253. +
  6254. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6255. + case $host_os in
  6256. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6257. + *)
  6258. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6259. + ;;
  6260. + esac
  6261. + fi
  6262. + ;;
  6263. + esac
  6264. + ;;
  6265. +
  6266. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6267. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6268. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6269. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6270. + runpath_var='LD_RUN_PATH'
  6271. +
  6272. + case $cc_basename in
  6273. + CC*)
  6274. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6275. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6276. + ;;
  6277. + *)
  6278. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6279. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6280. + ;;
  6281. + esac
  6282. + ;;
  6283. +
  6284. + sysv5* | sco3.2v5* | sco5v6*)
  6285. + # Note: We can NOT use -z defs as we might desire, because we do not
  6286. + # link with -lc, and that would cause any symbols used from libc to
  6287. + # always be unresolved, which means just about no library would
  6288. + # ever link correctly. If we're not using GNU ld we use -z text
  6289. + # though, which does catch some bad symbols but isn't as heavy-handed
  6290. + # as -z defs.
  6291. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6292. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6293. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6294. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6295. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6296. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6297. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6298. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6299. + runpath_var='LD_RUN_PATH'
  6300. +
  6301. + case $cc_basename in
  6302. + CC*)
  6303. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6304. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6305. + ;;
  6306. + *)
  6307. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6308. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6309. + ;;
  6310. + esac
  6311. + ;;
  6312. +
  6313. + tandem*)
  6314. + case $cc_basename in
  6315. + NCC*)
  6316. + # NonStop-UX NCC 3.20
  6317. + # FIXME: insert proper C++ library support
  6318. + _LT_TAGVAR(ld_shlibs, $1)=no
  6319. + ;;
  6320. + *)
  6321. + # FIXME: insert proper C++ library support
  6322. + _LT_TAGVAR(ld_shlibs, $1)=no
  6323. + ;;
  6324. + esac
  6325. + ;;
  6326. +
  6327. + vxworks*)
  6328. + # FIXME: insert proper C++ library support
  6329. + _LT_TAGVAR(ld_shlibs, $1)=no
  6330. + ;;
  6331. +
  6332. + *)
  6333. + # FIXME: insert proper C++ library support
  6334. + _LT_TAGVAR(ld_shlibs, $1)=no
  6335. + ;;
  6336. + esac
  6337. +
  6338. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6339. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6340. +
  6341. + _LT_TAGVAR(GCC, $1)="$GXX"
  6342. + _LT_TAGVAR(LD, $1)="$LD"
  6343. +
  6344. + ## CAVEAT EMPTOR:
  6345. + ## There is no encapsulation within the following macros, do not change
  6346. + ## the running order or otherwise move them around unless you know exactly
  6347. + ## what you are doing...
  6348. + _LT_SYS_HIDDEN_LIBDEPS($1)
  6349. + _LT_COMPILER_PIC($1)
  6350. + _LT_COMPILER_C_O($1)
  6351. + _LT_COMPILER_FILE_LOCKS($1)
  6352. + _LT_LINKER_SHLIBS($1)
  6353. + _LT_SYS_DYNAMIC_LINKER($1)
  6354. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6355. +
  6356. + _LT_CONFIG($1)
  6357. + fi # test -n "$compiler"
  6358. +
  6359. + CC=$lt_save_CC
  6360. + LDCXX=$LD
  6361. + LD=$lt_save_LD
  6362. + GCC=$lt_save_GCC
  6363. + with_gnu_ld=$lt_save_with_gnu_ld
  6364. + lt_cv_path_LDCXX=$lt_cv_path_LD
  6365. + lt_cv_path_LD=$lt_save_path_LD
  6366. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6367. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6368. +fi # test "$_lt_caught_CXX_error" != yes
  6369. +
  6370. +AC_LANG_POP
  6371. +])# _LT_LANG_CXX_CONFIG
  6372. +
  6373. +
  6374. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6375. +# ---------------------------------
  6376. +# Figure out "hidden" library dependencies from verbose
  6377. +# compiler output when linking a shared library.
  6378. +# Parse the compiler output and extract the necessary
  6379. +# objects, libraries and library flags.
  6380. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6381. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6382. +# Dependencies to place before and after the object being linked:
  6383. +_LT_TAGVAR(predep_objects, $1)=
  6384. +_LT_TAGVAR(postdep_objects, $1)=
  6385. +_LT_TAGVAR(predeps, $1)=
  6386. +_LT_TAGVAR(postdeps, $1)=
  6387. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  6388. +
  6389. +dnl we can't use the lt_simple_compile_test_code here,
  6390. +dnl because it contains code intended for an executable,
  6391. +dnl not a library. It's possible we should let each
  6392. +dnl tag define a new lt_????_link_test_code variable,
  6393. +dnl but it's only used here...
  6394. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6395. +int a;
  6396. +void foo (void) { a = 0; }
  6397. +_LT_EOF
  6398. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6399. +class Foo
  6400. +{
  6401. +public:
  6402. + Foo (void) { a = 0; }
  6403. +private:
  6404. + int a;
  6405. +};
  6406. +_LT_EOF
  6407. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6408. + subroutine foo
  6409. + implicit none
  6410. + integer*4 a
  6411. + a=0
  6412. + return
  6413. + end
  6414. +_LT_EOF
  6415. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6416. + subroutine foo
  6417. + implicit none
  6418. + integer a
  6419. + a=0
  6420. + return
  6421. + end
  6422. +_LT_EOF
  6423. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6424. +public class foo {
  6425. + private int a;
  6426. + public void bar (void) {
  6427. + a = 0;
  6428. + }
  6429. +};
  6430. +_LT_EOF
  6431. +])
  6432. +dnl Parse the compiler output and extract the necessary
  6433. +dnl objects, libraries and library flags.
  6434. +if AC_TRY_EVAL(ac_compile); then
  6435. + # Parse the compiler output and extract the necessary
  6436. + # objects, libraries and library flags.
  6437. +
  6438. + # Sentinel used to keep track of whether or not we are before
  6439. + # the conftest object file.
  6440. + pre_test_object_deps_done=no
  6441. +
  6442. + for p in `eval "$output_verbose_link_cmd"`; do
  6443. + case $p in
  6444. +
  6445. + -L* | -R* | -l*)
  6446. + # Some compilers place space between "-{L,R}" and the path.
  6447. + # Remove the space.
  6448. + if test $p = "-L" ||
  6449. + test $p = "-R"; then
  6450. + prev=$p
  6451. + continue
  6452. + else
  6453. + prev=
  6454. + fi
  6455. +
  6456. + if test "$pre_test_object_deps_done" = no; then
  6457. + case $p in
  6458. + -L* | -R*)
  6459. + # Internal compiler library paths should come after those
  6460. + # provided the user. The postdeps already come after the
  6461. + # user supplied libs so there is no need to process them.
  6462. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6463. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6464. + else
  6465. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6466. + fi
  6467. + ;;
  6468. + # The "-l" case would never come before the object being
  6469. + # linked, so don't bother handling this case.
  6470. + esac
  6471. + else
  6472. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6473. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6474. + else
  6475. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6476. + fi
  6477. + fi
  6478. + ;;
  6479. +
  6480. + *.$objext)
  6481. + # This assumes that the test object file only shows up
  6482. + # once in the compiler output.
  6483. + if test "$p" = "conftest.$objext"; then
  6484. + pre_test_object_deps_done=yes
  6485. + continue
  6486. + fi
  6487. +
  6488. + if test "$pre_test_object_deps_done" = no; then
  6489. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6490. + _LT_TAGVAR(predep_objects, $1)="$p"
  6491. + else
  6492. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6493. + fi
  6494. + else
  6495. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6496. + _LT_TAGVAR(postdep_objects, $1)="$p"
  6497. + else
  6498. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6499. + fi
  6500. + fi
  6501. + ;;
  6502. +
  6503. + *) ;; # Ignore the rest.
  6504. +
  6505. + esac
  6506. + done
  6507. +
  6508. + # Clean up.
  6509. + rm -f a.out a.exe
  6510. +else
  6511. + echo "libtool.m4: error: problem compiling $1 test program"
  6512. +fi
  6513. +
  6514. +$RM -f confest.$objext
  6515. +
  6516. +# PORTME: override above test on systems where it is broken
  6517. +m4_if([$1], [CXX],
  6518. +[case $host_os in
  6519. +interix[[3-9]]*)
  6520. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6521. + # hack all around it, let's just trust "g++" to DTRT.
  6522. + _LT_TAGVAR(predep_objects,$1)=
  6523. + _LT_TAGVAR(postdep_objects,$1)=
  6524. + _LT_TAGVAR(postdeps,$1)=
  6525. + ;;
  6526. +
  6527. +linux*)
  6528. + case `$CC -V 2>&1 | sed 5q` in
  6529. + *Sun\ C*)
  6530. + # Sun C++ 5.9
  6531. +
  6532. + # The more standards-conforming stlport4 library is
  6533. + # incompatible with the Cstd library. Avoid specifying
  6534. + # it if it's in CXXFLAGS. Ignore libCrun as
  6535. + # -library=stlport4 depends on it.
  6536. + case " $CXX $CXXFLAGS " in
  6537. + *" -library=stlport4 "*)
  6538. + solaris_use_stlport4=yes
  6539. + ;;
  6540. + esac
  6541. +
  6542. + if test "$solaris_use_stlport4" != yes; then
  6543. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6544. + fi
  6545. + ;;
  6546. + esac
  6547. + ;;
  6548. +
  6549. +solaris*)
  6550. + case $cc_basename in
  6551. + CC*)
  6552. + # The more standards-conforming stlport4 library is
  6553. + # incompatible with the Cstd library. Avoid specifying
  6554. + # it if it's in CXXFLAGS. Ignore libCrun as
  6555. + # -library=stlport4 depends on it.
  6556. + case " $CXX $CXXFLAGS " in
  6557. + *" -library=stlport4 "*)
  6558. + solaris_use_stlport4=yes
  6559. + ;;
  6560. + esac
  6561. +
  6562. + # Adding this requires a known-good setup of shared libraries for
  6563. + # Sun compiler versions before 5.6, else PIC objects from an old
  6564. + # archive will be linked into the output, leading to subtle bugs.
  6565. + if test "$solaris_use_stlport4" != yes; then
  6566. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6567. + fi
  6568. + ;;
  6569. + esac
  6570. + ;;
  6571. +esac
  6572. +])
  6573. +
  6574. +case " $_LT_TAGVAR(postdeps, $1) " in
  6575. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6576. +esac
  6577. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6578. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6579. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6580. +fi
  6581. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6582. + [The directories searched by this compiler when creating a shared library])
  6583. +_LT_TAGDECL([], [predep_objects], [1],
  6584. + [Dependencies to place before and after the objects being linked to
  6585. + create a shared library])
  6586. +_LT_TAGDECL([], [postdep_objects], [1])
  6587. +_LT_TAGDECL([], [predeps], [1])
  6588. +_LT_TAGDECL([], [postdeps], [1])
  6589. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  6590. + [The library search path used internally by the compiler when linking
  6591. + a shared library])
  6592. +])# _LT_SYS_HIDDEN_LIBDEPS
  6593. +
  6594. +
  6595. +# _LT_PROG_F77
  6596. +# ------------
  6597. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  6598. +# if there is no fortran compiler, we have our own version here.
  6599. +m4_defun([_LT_PROG_F77],
  6600. +[
  6601. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  6602. +AC_PROG_F77
  6603. +if test -z "$F77" || test "X$F77" = "Xno"; then
  6604. + _lt_disable_F77=yes
  6605. +fi
  6606. +popdef([AC_MSG_ERROR])
  6607. +])# _LT_PROG_F77
  6608. +
  6609. +dnl aclocal-1.4 backwards compatibility:
  6610. +dnl AC_DEFUN([_LT_PROG_F77], [])
  6611. +
  6612. +
  6613. +# _LT_LANG_F77_CONFIG([TAG])
  6614. +# --------------------------
  6615. +# Ensure that the configuration variables for a Fortran 77 compiler are
  6616. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  6617. +# to write the compiler configuration to `libtool'.
  6618. +m4_defun([_LT_LANG_F77_CONFIG],
  6619. +[AC_REQUIRE([_LT_PROG_F77])dnl
  6620. +AC_LANG_PUSH(Fortran 77)
  6621. +
  6622. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6623. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6624. +_LT_TAGVAR(always_export_symbols, $1)=no
  6625. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6626. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6627. +_LT_TAGVAR(hardcode_direct, $1)=no
  6628. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6629. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6630. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6631. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6632. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6633. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6634. +_LT_TAGVAR(inherit_rpath, $1)=no
  6635. +_LT_TAGVAR(module_cmds, $1)=
  6636. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6637. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6638. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6639. +_LT_TAGVAR(no_undefined_flag, $1)=
  6640. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6641. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6642. +
  6643. +# Source file extension for f77 test sources.
  6644. +ac_ext=f
  6645. +
  6646. +# Object file extension for compiled f77 test sources.
  6647. +objext=o
  6648. +_LT_TAGVAR(objext, $1)=$objext
  6649. +
  6650. +# No sense in running all these tests if we already determined that
  6651. +# the F77 compiler isn't working. Some variables (like enable_shared)
  6652. +# are currently assumed to apply to all compilers on this platform,
  6653. +# and will be corrupted by setting them based on a non-working compiler.
  6654. +if test "$_lt_disable_F77" != yes; then
  6655. + # Code to be used in simple compile tests
  6656. + lt_simple_compile_test_code="\
  6657. + subroutine t
  6658. + return
  6659. + end
  6660. +"
  6661. +
  6662. + # Code to be used in simple link tests
  6663. + lt_simple_link_test_code="\
  6664. + program t
  6665. + end
  6666. +"
  6667. +
  6668. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6669. + _LT_TAG_COMPILER
  6670. +
  6671. + # save warnings/boilerplate of simple test code
  6672. + _LT_COMPILER_BOILERPLATE
  6673. + _LT_LINKER_BOILERPLATE
  6674. +
  6675. + # Allow CC to be a program name with arguments.
  6676. + lt_save_CC="$CC"
  6677. + lt_save_GCC=$GCC
  6678. + CC=${F77-"f77"}
  6679. + compiler=$CC
  6680. + _LT_TAGVAR(compiler, $1)=$CC
  6681. + _LT_CC_BASENAME([$compiler])
  6682. + GCC=$G77
  6683. + if test -n "$compiler"; then
  6684. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6685. + AC_MSG_RESULT([$can_build_shared])
  6686. +
  6687. + AC_MSG_CHECKING([whether to build shared libraries])
  6688. + test "$can_build_shared" = "no" && enable_shared=no
  6689. +
  6690. + # On AIX, shared libraries and static libraries use the same namespace, and
  6691. + # are all built from PIC.
  6692. + case $host_os in
  6693. + aix3*)
  6694. + test "$enable_shared" = yes && enable_static=no
  6695. + if test -n "$RANLIB"; then
  6696. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6697. + postinstall_cmds='$RANLIB $lib'
  6698. + fi
  6699. + ;;
  6700. + aix[[4-9]]*)
  6701. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6702. + test "$enable_shared" = yes && enable_static=no
  6703. + fi
  6704. + ;;
  6705. + esac
  6706. + AC_MSG_RESULT([$enable_shared])
  6707. +
  6708. + AC_MSG_CHECKING([whether to build static libraries])
  6709. + # Make sure either enable_shared or enable_static is yes.
  6710. + test "$enable_shared" = yes || enable_static=yes
  6711. + AC_MSG_RESULT([$enable_static])
  6712. +
  6713. + _LT_TAGVAR(GCC, $1)="$G77"
  6714. + _LT_TAGVAR(LD, $1)="$LD"
  6715. +
  6716. + ## CAVEAT EMPTOR:
  6717. + ## There is no encapsulation within the following macros, do not change
  6718. + ## the running order or otherwise move them around unless you know exactly
  6719. + ## what you are doing...
  6720. + _LT_COMPILER_PIC($1)
  6721. + _LT_COMPILER_C_O($1)
  6722. + _LT_COMPILER_FILE_LOCKS($1)
  6723. + _LT_LINKER_SHLIBS($1)
  6724. + _LT_SYS_DYNAMIC_LINKER($1)
  6725. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6726. +
  6727. + _LT_CONFIG($1)
  6728. + fi # test -n "$compiler"
  6729. +
  6730. + GCC=$lt_save_GCC
  6731. + CC="$lt_save_CC"
  6732. +fi # test "$_lt_disable_F77" != yes
  6733. +
  6734. +AC_LANG_POP
  6735. +])# _LT_LANG_F77_CONFIG
  6736. +
  6737. +
  6738. +# _LT_PROG_FC
  6739. +# -----------
  6740. +# Since AC_PROG_FC is broken, in that it returns the empty string
  6741. +# if there is no fortran compiler, we have our own version here.
  6742. +m4_defun([_LT_PROG_FC],
  6743. +[
  6744. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  6745. +AC_PROG_FC
  6746. +if test -z "$FC" || test "X$FC" = "Xno"; then
  6747. + _lt_disable_FC=yes
  6748. +fi
  6749. +popdef([AC_MSG_ERROR])
  6750. +])# _LT_PROG_FC
  6751. +
  6752. +dnl aclocal-1.4 backwards compatibility:
  6753. +dnl AC_DEFUN([_LT_PROG_FC], [])
  6754. +
  6755. +
  6756. +# _LT_LANG_FC_CONFIG([TAG])
  6757. +# -------------------------
  6758. +# Ensure that the configuration variables for a Fortran compiler are
  6759. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  6760. +# to write the compiler configuration to `libtool'.
  6761. +m4_defun([_LT_LANG_FC_CONFIG],
  6762. +[AC_REQUIRE([_LT_PROG_FC])dnl
  6763. +AC_LANG_PUSH(Fortran)
  6764. +
  6765. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6766. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6767. +_LT_TAGVAR(always_export_symbols, $1)=no
  6768. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6769. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6770. +_LT_TAGVAR(hardcode_direct, $1)=no
  6771. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6772. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6773. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6774. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6775. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6776. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6777. +_LT_TAGVAR(inherit_rpath, $1)=no
  6778. +_LT_TAGVAR(module_cmds, $1)=
  6779. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6780. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6781. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6782. +_LT_TAGVAR(no_undefined_flag, $1)=
  6783. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6784. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6785. +
  6786. +# Source file extension for fc test sources.
  6787. +ac_ext=${ac_fc_srcext-f}
  6788. +
  6789. +# Object file extension for compiled fc test sources.
  6790. +objext=o
  6791. +_LT_TAGVAR(objext, $1)=$objext
  6792. +
  6793. +# No sense in running all these tests if we already determined that
  6794. +# the FC compiler isn't working. Some variables (like enable_shared)
  6795. +# are currently assumed to apply to all compilers on this platform,
  6796. +# and will be corrupted by setting them based on a non-working compiler.
  6797. +if test "$_lt_disable_FC" != yes; then
  6798. + # Code to be used in simple compile tests
  6799. + lt_simple_compile_test_code="\
  6800. + subroutine t
  6801. + return
  6802. + end
  6803. +"
  6804. +
  6805. + # Code to be used in simple link tests
  6806. + lt_simple_link_test_code="\
  6807. + program t
  6808. + end
  6809. +"
  6810. +
  6811. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6812. + _LT_TAG_COMPILER
  6813. +
  6814. + # save warnings/boilerplate of simple test code
  6815. + _LT_COMPILER_BOILERPLATE
  6816. + _LT_LINKER_BOILERPLATE
  6817. +
  6818. + # Allow CC to be a program name with arguments.
  6819. + lt_save_CC="$CC"
  6820. + lt_save_GCC=$GCC
  6821. + CC=${FC-"f95"}
  6822. + compiler=$CC
  6823. + GCC=$ac_cv_fc_compiler_gnu
  6824. +
  6825. + _LT_TAGVAR(compiler, $1)=$CC
  6826. + _LT_CC_BASENAME([$compiler])
  6827. +
  6828. + if test -n "$compiler"; then
  6829. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6830. + AC_MSG_RESULT([$can_build_shared])
  6831. +
  6832. + AC_MSG_CHECKING([whether to build shared libraries])
  6833. + test "$can_build_shared" = "no" && enable_shared=no
  6834. +
  6835. + # On AIX, shared libraries and static libraries use the same namespace, and
  6836. + # are all built from PIC.
  6837. + case $host_os in
  6838. + aix3*)
  6839. + test "$enable_shared" = yes && enable_static=no
  6840. + if test -n "$RANLIB"; then
  6841. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6842. + postinstall_cmds='$RANLIB $lib'
  6843. + fi
  6844. + ;;
  6845. + aix[[4-9]]*)
  6846. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6847. + test "$enable_shared" = yes && enable_static=no
  6848. + fi
  6849. + ;;
  6850. + esac
  6851. + AC_MSG_RESULT([$enable_shared])
  6852. +
  6853. + AC_MSG_CHECKING([whether to build static libraries])
  6854. + # Make sure either enable_shared or enable_static is yes.
  6855. + test "$enable_shared" = yes || enable_static=yes
  6856. + AC_MSG_RESULT([$enable_static])
  6857. +
  6858. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6859. + _LT_TAGVAR(LD, $1)="$LD"
  6860. +
  6861. + ## CAVEAT EMPTOR:
  6862. + ## There is no encapsulation within the following macros, do not change
  6863. + ## the running order or otherwise move them around unless you know exactly
  6864. + ## what you are doing...
  6865. + _LT_SYS_HIDDEN_LIBDEPS($1)
  6866. + _LT_COMPILER_PIC($1)
  6867. + _LT_COMPILER_C_O($1)
  6868. + _LT_COMPILER_FILE_LOCKS($1)
  6869. + _LT_LINKER_SHLIBS($1)
  6870. + _LT_SYS_DYNAMIC_LINKER($1)
  6871. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6872. +
  6873. + _LT_CONFIG($1)
  6874. + fi # test -n "$compiler"
  6875. +
  6876. + GCC=$lt_save_GCC
  6877. + CC="$lt_save_CC"
  6878. +fi # test "$_lt_disable_FC" != yes
  6879. +
  6880. +AC_LANG_POP
  6881. +])# _LT_LANG_FC_CONFIG
  6882. +
  6883. +
  6884. +# _LT_LANG_GCJ_CONFIG([TAG])
  6885. +# --------------------------
  6886. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  6887. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  6888. +# to write the compiler configuration to `libtool'.
  6889. +m4_defun([_LT_LANG_GCJ_CONFIG],
  6890. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  6891. +AC_LANG_SAVE
  6892. +
  6893. +# Source file extension for Java test sources.
  6894. +ac_ext=java
  6895. +
  6896. +# Object file extension for compiled Java test sources.
  6897. +objext=o
  6898. +_LT_TAGVAR(objext, $1)=$objext
  6899. +
  6900. +# Code to be used in simple compile tests
  6901. +lt_simple_compile_test_code="class foo {}"
  6902. +
  6903. +# Code to be used in simple link tests
  6904. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6905. +
  6906. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6907. +_LT_TAG_COMPILER
  6908. +
  6909. +# save warnings/boilerplate of simple test code
  6910. +_LT_COMPILER_BOILERPLATE
  6911. +_LT_LINKER_BOILERPLATE
  6912. +
  6913. +# Allow CC to be a program name with arguments.
  6914. +lt_save_CC="$CC"
  6915. +lt_save_GCC=$GCC
  6916. +GCC=yes
  6917. +CC=${GCJ-"gcj"}
  6918. +compiler=$CC
  6919. +_LT_TAGVAR(compiler, $1)=$CC
  6920. +_LT_TAGVAR(LD, $1)="$LD"
  6921. +_LT_CC_BASENAME([$compiler])
  6922. +
  6923. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6924. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6925. +
  6926. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6927. +
  6928. +if test -n "$compiler"; then
  6929. + _LT_COMPILER_NO_RTTI($1)
  6930. + _LT_COMPILER_PIC($1)
  6931. + _LT_COMPILER_C_O($1)
  6932. + _LT_COMPILER_FILE_LOCKS($1)
  6933. + _LT_LINKER_SHLIBS($1)
  6934. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6935. +
  6936. + _LT_CONFIG($1)
  6937. +fi
  6938. +
  6939. +AC_LANG_RESTORE
  6940. +
  6941. +GCC=$lt_save_GCC
  6942. +CC="$lt_save_CC"
  6943. +])# _LT_LANG_GCJ_CONFIG
  6944. +
  6945. +
  6946. +# _LT_LANG_RC_CONFIG([TAG])
  6947. +# -------------------------
  6948. +# Ensure that the configuration variables for the Windows resource compiler
  6949. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  6950. +# to write the compiler configuration to `libtool'.
  6951. +m4_defun([_LT_LANG_RC_CONFIG],
  6952. +[AC_REQUIRE([LT_PROG_RC])dnl
  6953. +AC_LANG_SAVE
  6954. +
  6955. +# Source file extension for RC test sources.
  6956. +ac_ext=rc
  6957. +
  6958. +# Object file extension for compiled RC test sources.
  6959. +objext=o
  6960. +_LT_TAGVAR(objext, $1)=$objext
  6961. +
  6962. +# Code to be used in simple compile tests
  6963. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6964. +
  6965. +# Code to be used in simple link tests
  6966. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  6967. +
  6968. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6969. +_LT_TAG_COMPILER
  6970. +
  6971. +# save warnings/boilerplate of simple test code
  6972. +_LT_COMPILER_BOILERPLATE
  6973. +_LT_LINKER_BOILERPLATE
  6974. +
  6975. +# Allow CC to be a program name with arguments.
  6976. +lt_save_CC="$CC"
  6977. +lt_save_GCC=$GCC
  6978. +GCC=
  6979. +CC=${RC-"windres"}
  6980. +compiler=$CC
  6981. +_LT_TAGVAR(compiler, $1)=$CC
  6982. +_LT_CC_BASENAME([$compiler])
  6983. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6984. +
  6985. +if test -n "$compiler"; then
  6986. + :
  6987. + _LT_CONFIG($1)
  6988. +fi
  6989. +
  6990. +GCC=$lt_save_GCC
  6991. +AC_LANG_RESTORE
  6992. +CC="$lt_save_CC"
  6993. +])# _LT_LANG_RC_CONFIG
  6994. +
  6995. +
  6996. +# LT_PROG_GCJ
  6997. +# -----------
  6998. +AC_DEFUN([LT_PROG_GCJ],
  6999. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7000. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7001. + [AC_CHECK_TOOL(GCJ, gcj,)
  7002. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7003. + AC_SUBST(GCJFLAGS)])])[]dnl
  7004. +])
  7005. +
  7006. +# Old name:
  7007. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7008. +dnl aclocal-1.4 backwards compatibility:
  7009. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7010. +
  7011. +
  7012. +# LT_PROG_RC
  7013. +# ----------
  7014. +AC_DEFUN([LT_PROG_RC],
  7015. +[AC_CHECK_TOOL(RC, windres,)
  7016. +])
  7017. +
  7018. +# Old name:
  7019. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7020. +dnl aclocal-1.4 backwards compatibility:
  7021. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7022. +
  7023. +
  7024. +# _LT_DECL_EGREP
  7025. +# --------------
  7026. +# If we don't have a new enough Autoconf to choose the best grep
  7027. +# available, choose the one first in the user's PATH.
  7028. +m4_defun([_LT_DECL_EGREP],
  7029. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  7030. +AC_REQUIRE([AC_PROG_FGREP])dnl
  7031. +test -z "$GREP" && GREP=grep
  7032. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7033. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  7034. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  7035. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7036. +AC_SUBST([GREP])
  7037. +])
  7038. +
  7039. +
  7040. +# _LT_DECL_OBJDUMP
  7041. +# --------------
  7042. +# If we don't have a new enough Autoconf to choose the best objdump
  7043. +# available, choose the one first in the user's PATH.
  7044. +m4_defun([_LT_DECL_OBJDUMP],
  7045. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7046. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7047. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7048. +AC_SUBST([OBJDUMP])
  7049. +])
  7050. +
  7051. +
  7052. +# _LT_DECL_SED
  7053. +# ------------
  7054. +# Check for a fully-functional sed program, that truncates
  7055. +# as few characters as possible. Prefer GNU sed if found.
  7056. +m4_defun([_LT_DECL_SED],
  7057. +[AC_PROG_SED
  7058. +test -z "$SED" && SED=sed
  7059. +Xsed="$SED -e 1s/^X//"
  7060. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7061. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7062. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7063. +])# _LT_DECL_SED
  7064. +
  7065. +m4_ifndef([AC_PROG_SED], [
  7066. +# NOTE: This macro has been submitted for inclusion into #
  7067. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  7068. +# a released version of Autoconf we should remove this #
  7069. +# macro and use it instead. #
  7070. +
  7071. +m4_defun([AC_PROG_SED],
  7072. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  7073. +AC_CACHE_VAL(lt_cv_path_SED,
  7074. +[# Loop through the user's path and test for sed and gsed.
  7075. +# Then use that list of sed's as ones to test for truncation.
  7076. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7077. +for as_dir in $PATH
  7078. +do
  7079. + IFS=$as_save_IFS
  7080. + test -z "$as_dir" && as_dir=.
  7081. + for lt_ac_prog in sed gsed; do
  7082. + for ac_exec_ext in '' $ac_executable_extensions; do
  7083. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7084. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7085. + fi
  7086. + done
  7087. + done
  7088. +done
  7089. +IFS=$as_save_IFS
  7090. +lt_ac_max=0
  7091. +lt_ac_count=0
  7092. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7093. +# along with /bin/sed that truncates output.
  7094. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7095. + test ! -f $lt_ac_sed && continue
  7096. + cat /dev/null > conftest.in
  7097. + lt_ac_count=0
  7098. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7099. + # Check for GNU sed and select it if it is found.
  7100. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7101. + lt_cv_path_SED=$lt_ac_sed
  7102. + break
  7103. + fi
  7104. + while true; do
  7105. + cat conftest.in conftest.in >conftest.tmp
  7106. + mv conftest.tmp conftest.in
  7107. + cp conftest.in conftest.nl
  7108. + echo >>conftest.nl
  7109. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7110. + cmp -s conftest.out conftest.nl || break
  7111. + # 10000 chars as input seems more than enough
  7112. + test $lt_ac_count -gt 10 && break
  7113. + lt_ac_count=`expr $lt_ac_count + 1`
  7114. + if test $lt_ac_count -gt $lt_ac_max; then
  7115. + lt_ac_max=$lt_ac_count
  7116. + lt_cv_path_SED=$lt_ac_sed
  7117. + fi
  7118. + done
  7119. +done
  7120. +])
  7121. +SED=$lt_cv_path_SED
  7122. +AC_SUBST([SED])
  7123. +AC_MSG_RESULT([$SED])
  7124. +])#AC_PROG_SED
  7125. +])#m4_ifndef
  7126. +
  7127. +# Old name:
  7128. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7129. +dnl aclocal-1.4 backwards compatibility:
  7130. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7131. +
  7132. +
  7133. +# _LT_CHECK_SHELL_FEATURES
  7134. +# ------------------------
  7135. +# Find out whether the shell is Bourne or XSI compatible,
  7136. +# or has some other useful features.
  7137. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  7138. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7139. +# Try some XSI features
  7140. +xsi_shell=no
  7141. +( _lt_dummy="a/b/c"
  7142. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  7143. + = c,a/b,, \
  7144. + && eval 'test $(( 1 + 1 )) -eq 2 \
  7145. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7146. + && xsi_shell=yes
  7147. +AC_MSG_RESULT([$xsi_shell])
  7148. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7149. +
  7150. +AC_MSG_CHECKING([whether the shell understands "+="])
  7151. +lt_shell_append=no
  7152. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7153. + >/dev/null 2>&1 \
  7154. + && lt_shell_append=yes
  7155. +AC_MSG_RESULT([$lt_shell_append])
  7156. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7157. +
  7158. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7159. + lt_unset=unset
  7160. +else
  7161. + lt_unset=false
  7162. +fi
  7163. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7164. +
  7165. +# test EBCDIC or ASCII
  7166. +case `echo X|tr X '\101'` in
  7167. + A) # ASCII based system
  7168. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7169. + lt_SP2NL='tr \040 \012'
  7170. + lt_NL2SP='tr \015\012 \040\040'
  7171. + ;;
  7172. + *) # EBCDIC based system
  7173. + lt_SP2NL='tr \100 \n'
  7174. + lt_NL2SP='tr \r\n \100\100'
  7175. + ;;
  7176. +esac
  7177. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7178. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7179. +])# _LT_CHECK_SHELL_FEATURES
  7180. +
  7181. +
  7182. +# _LT_PROG_XSI_SHELLFNS
  7183. +# ---------------------
  7184. +# Bourne and XSI compatible variants of some useful shell functions.
  7185. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  7186. +[case $xsi_shell in
  7187. + yes)
  7188. + cat << \_LT_EOF >> "$cfgfile"
  7189. +
  7190. +# func_dirname file append nondir_replacement
  7191. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7192. +# otherwise set result to NONDIR_REPLACEMENT.
  7193. +func_dirname ()
  7194. +{
  7195. + case ${1} in
  7196. + */*) func_dirname_result="${1%/*}${2}" ;;
  7197. + * ) func_dirname_result="${3}" ;;
  7198. + esac
  7199. +}
  7200. +
  7201. +# func_basename file
  7202. +func_basename ()
  7203. +{
  7204. + func_basename_result="${1##*/}"
  7205. +}
  7206. +
  7207. +# func_dirname_and_basename file append nondir_replacement
  7208. +# perform func_basename and func_dirname in a single function
  7209. +# call:
  7210. +# dirname: Compute the dirname of FILE. If nonempty,
  7211. +# add APPEND to the result, otherwise set result
  7212. +# to NONDIR_REPLACEMENT.
  7213. +# value returned in "$func_dirname_result"
  7214. +# basename: Compute filename of FILE.
  7215. +# value retuned in "$func_basename_result"
  7216. +# Implementation must be kept synchronized with func_dirname
  7217. +# and func_basename. For efficiency, we do not delegate to
  7218. +# those functions but instead duplicate the functionality here.
  7219. +func_dirname_and_basename ()
  7220. +{
  7221. + case ${1} in
  7222. + */*) func_dirname_result="${1%/*}${2}" ;;
  7223. + * ) func_dirname_result="${3}" ;;
  7224. + esac
  7225. + func_basename_result="${1##*/}"
  7226. +}
  7227. +
  7228. +# func_stripname prefix suffix name
  7229. +# strip PREFIX and SUFFIX off of NAME.
  7230. +# PREFIX and SUFFIX must not contain globbing or regex special
  7231. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7232. +# dot (in which case that matches only a dot).
  7233. +func_stripname ()
  7234. +{
  7235. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7236. + # positional parameters, so assign one to ordinary parameter first.
  7237. + func_stripname_result=${3}
  7238. + func_stripname_result=${func_stripname_result#"${1}"}
  7239. + func_stripname_result=${func_stripname_result%"${2}"}
  7240. +}
  7241. +
  7242. +# func_opt_split
  7243. +func_opt_split ()
  7244. +{
  7245. + func_opt_split_opt=${1%%=*}
  7246. + func_opt_split_arg=${1#*=}
  7247. +}
  7248. +
  7249. +# func_lo2o object
  7250. +func_lo2o ()
  7251. +{
  7252. + case ${1} in
  7253. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7254. + *) func_lo2o_result=${1} ;;
  7255. + esac
  7256. +}
  7257. +
  7258. +# func_xform libobj-or-source
  7259. +func_xform ()
  7260. +{
  7261. + func_xform_result=${1%.*}.lo
  7262. +}
  7263. +
  7264. +# func_arith arithmetic-term...
  7265. +func_arith ()
  7266. +{
  7267. + func_arith_result=$(( $[*] ))
  7268. +}
  7269. +
  7270. +# func_len string
  7271. +# STRING may not start with a hyphen.
  7272. +func_len ()
  7273. +{
  7274. + func_len_result=${#1}
  7275. +}
  7276. +
  7277. +_LT_EOF
  7278. + ;;
  7279. + *) # Bourne compatible functions.
  7280. + cat << \_LT_EOF >> "$cfgfile"
  7281. +
  7282. +# func_dirname file append nondir_replacement
  7283. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7284. +# otherwise set result to NONDIR_REPLACEMENT.
  7285. +func_dirname ()
  7286. +{
  7287. + # Extract subdirectory from the argument.
  7288. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  7289. + if test "X$func_dirname_result" = "X${1}"; then
  7290. + func_dirname_result="${3}"
  7291. + else
  7292. + func_dirname_result="$func_dirname_result${2}"
  7293. + fi
  7294. +}
  7295. +
  7296. +# func_basename file
  7297. +func_basename ()
  7298. +{
  7299. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  7300. +}
  7301. +
  7302. +dnl func_dirname_and_basename
  7303. +dnl A portable version of this function is already defined in general.m4sh
  7304. +dnl so there is no need for it here.
  7305. +
  7306. +# func_stripname prefix suffix name
  7307. +# strip PREFIX and SUFFIX off of NAME.
  7308. +# PREFIX and SUFFIX must not contain globbing or regex special
  7309. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7310. +# dot (in which case that matches only a dot).
  7311. +# func_strip_suffix prefix name
  7312. +func_stripname ()
  7313. +{
  7314. + case ${2} in
  7315. + .*) func_stripname_result=`$ECHO "X${3}" \
  7316. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  7317. + *) func_stripname_result=`$ECHO "X${3}" \
  7318. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  7319. + esac
  7320. +}
  7321. +
  7322. +# sed scripts:
  7323. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  7324. +my_sed_long_arg='1s/^-[[^=]]*=//'
  7325. +
  7326. +# func_opt_split
  7327. +func_opt_split ()
  7328. +{
  7329. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  7330. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  7331. +}
  7332. +
  7333. +# func_lo2o object
  7334. +func_lo2o ()
  7335. +{
  7336. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  7337. +}
  7338. +
  7339. +# func_xform libobj-or-source
  7340. +func_xform ()
  7341. +{
  7342. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  7343. +}
  7344. +
  7345. +# func_arith arithmetic-term...
  7346. +func_arith ()
  7347. +{
  7348. + func_arith_result=`expr "$[@]"`
  7349. +}
  7350. +
  7351. +# func_len string
  7352. +# STRING may not start with a hyphen.
  7353. +func_len ()
  7354. +{
  7355. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  7356. +}
  7357. +
  7358. +_LT_EOF
  7359. +esac
  7360. +
  7361. +case $lt_shell_append in
  7362. + yes)
  7363. + cat << \_LT_EOF >> "$cfgfile"
  7364. +
  7365. +# func_append var value
  7366. +# Append VALUE to the end of shell variable VAR.
  7367. +func_append ()
  7368. +{
  7369. + eval "$[1]+=\$[2]"
  7370. +}
  7371. +_LT_EOF
  7372. + ;;
  7373. + *)
  7374. + cat << \_LT_EOF >> "$cfgfile"
  7375. +
  7376. +# func_append var value
  7377. +# Append VALUE to the end of shell variable VAR.
  7378. +func_append ()
  7379. +{
  7380. + eval "$[1]=\$$[1]\$[2]"
  7381. +}
  7382. +
  7383. +_LT_EOF
  7384. + ;;
  7385. + esac
  7386. +])
  7387. +
  7388. +# Helper functions for option handling. -*- Autoconf -*-
  7389. +#
  7390. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7391. +# Written by Gary V. Vaughan, 2004
  7392. +#
  7393. +# This file is free software; the Free Software Foundation gives
  7394. +# unlimited permission to copy and/or distribute it, with or without
  7395. +# modifications, as long as this notice is preserved.
  7396. +
  7397. +# serial 6 ltoptions.m4
  7398. +
  7399. +# This is to help aclocal find these macros, as it can't see m4_define.
  7400. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7401. +
  7402. +
  7403. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7404. +# ------------------------------------------
  7405. +m4_define([_LT_MANGLE_OPTION],
  7406. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7407. +
  7408. +
  7409. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7410. +# ---------------------------------------
  7411. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7412. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7413. +# saved as a flag.
  7414. +m4_define([_LT_SET_OPTION],
  7415. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7416. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7417. + _LT_MANGLE_DEFUN([$1], [$2]),
  7418. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  7419. +])
  7420. +
  7421. +
  7422. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7423. +# ------------------------------------------------------------
  7424. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7425. +m4_define([_LT_IF_OPTION],
  7426. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7427. +
  7428. +
  7429. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7430. +# -------------------------------------------------------
  7431. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7432. +# are set.
  7433. +m4_define([_LT_UNLESS_OPTIONS],
  7434. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7435. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7436. + [m4_define([$0_found])])])[]dnl
  7437. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7438. +])[]dnl
  7439. +])
  7440. +
  7441. +
  7442. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7443. +# ----------------------------------------
  7444. +# OPTION-LIST is a space-separated list of Libtool options associated
  7445. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  7446. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7447. +# the unknown option and exit.
  7448. +m4_defun([_LT_SET_OPTIONS],
  7449. +[# Set options
  7450. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7451. + [_LT_SET_OPTION([$1], _LT_Option)])
  7452. +
  7453. +m4_if([$1],[LT_INIT],[
  7454. + dnl
  7455. + dnl Simply set some default values (i.e off) if boolean options were not
  7456. + dnl specified:
  7457. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7458. + ])
  7459. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7460. + ])
  7461. + dnl
  7462. + dnl If no reference was made to various pairs of opposing options, then
  7463. + dnl we run the default mode handler for the pair. For example, if neither
  7464. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7465. + dnl archives by default:
  7466. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7467. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7468. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7469. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7470. + [_LT_ENABLE_FAST_INSTALL])
  7471. + ])
  7472. +])# _LT_SET_OPTIONS
  7473. +
  7474. +
  7475. +
  7476. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7477. +# -----------------------------------------
  7478. +m4_define([_LT_MANGLE_DEFUN],
  7479. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7480. +
  7481. +
  7482. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7483. +# -----------------------------------------------
  7484. +m4_define([LT_OPTION_DEFINE],
  7485. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7486. +])# LT_OPTION_DEFINE
  7487. +
  7488. +
  7489. +# dlopen
  7490. +# ------
  7491. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7492. +])
  7493. +
  7494. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7495. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  7496. +AC_DIAGNOSE([obsolete],
  7497. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7498. +put the `dlopen' option into LT_INIT's first parameter.])
  7499. +])
  7500. +
  7501. +dnl aclocal-1.4 backwards compatibility:
  7502. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7503. +
  7504. +
  7505. +# win32-dll
  7506. +# ---------
  7507. +# Declare package support for building win32 dll's.
  7508. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7509. +[enable_win32_dll=yes
  7510. +
  7511. +case $host in
  7512. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  7513. + AC_CHECK_TOOL(AS, as, false)
  7514. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7515. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7516. + ;;
  7517. +esac
  7518. +
  7519. +test -z "$AS" && AS=as
  7520. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  7521. +
  7522. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  7523. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  7524. +
  7525. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7526. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  7527. +])# win32-dll
  7528. +
  7529. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7530. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7531. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  7532. +AC_DIAGNOSE([obsolete],
  7533. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7534. +put the `win32-dll' option into LT_INIT's first parameter.])
  7535. +])
  7536. +
  7537. +dnl aclocal-1.4 backwards compatibility:
  7538. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7539. +
  7540. +
  7541. +# _LT_ENABLE_SHARED([DEFAULT])
  7542. +# ----------------------------
  7543. +# implement the --enable-shared flag, and supports the `shared' and
  7544. +# `disable-shared' LT_INIT options.
  7545. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7546. +m4_define([_LT_ENABLE_SHARED],
  7547. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7548. +AC_ARG_ENABLE([shared],
  7549. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7550. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7551. + [p=${PACKAGE-default}
  7552. + case $enableval in
  7553. + yes) enable_shared=yes ;;
  7554. + no) enable_shared=no ;;
  7555. + *)
  7556. + enable_shared=no
  7557. + # Look at the argument we got. We use all the common list separators.
  7558. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7559. + for pkg in $enableval; do
  7560. + IFS="$lt_save_ifs"
  7561. + if test "X$pkg" = "X$p"; then
  7562. + enable_shared=yes
  7563. + fi
  7564. + done
  7565. + IFS="$lt_save_ifs"
  7566. + ;;
  7567. + esac],
  7568. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7569. +
  7570. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7571. + [Whether or not to build shared libraries])
  7572. +])# _LT_ENABLE_SHARED
  7573. +
  7574. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7575. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7576. +
  7577. +# Old names:
  7578. +AC_DEFUN([AC_ENABLE_SHARED],
  7579. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7580. +])
  7581. +
  7582. +AC_DEFUN([AC_DISABLE_SHARED],
  7583. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  7584. +])
  7585. +
  7586. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7587. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7588. +
  7589. +dnl aclocal-1.4 backwards compatibility:
  7590. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7591. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7592. +
  7593. +
  7594. +
  7595. +# _LT_ENABLE_STATIC([DEFAULT])
  7596. +# ----------------------------
  7597. +# implement the --enable-static flag, and support the `static' and
  7598. +# `disable-static' LT_INIT options.
  7599. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7600. +m4_define([_LT_ENABLE_STATIC],
  7601. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7602. +AC_ARG_ENABLE([static],
  7603. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7604. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7605. + [p=${PACKAGE-default}
  7606. + case $enableval in
  7607. + yes) enable_static=yes ;;
  7608. + no) enable_static=no ;;
  7609. + *)
  7610. + enable_static=no
  7611. + # Look at the argument we got. We use all the common list separators.
  7612. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7613. + for pkg in $enableval; do
  7614. + IFS="$lt_save_ifs"
  7615. + if test "X$pkg" = "X$p"; then
  7616. + enable_static=yes
  7617. + fi
  7618. + done
  7619. + IFS="$lt_save_ifs"
  7620. + ;;
  7621. + esac],
  7622. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7623. +
  7624. + _LT_DECL([build_old_libs], [enable_static], [0],
  7625. + [Whether or not to build static libraries])
  7626. +])# _LT_ENABLE_STATIC
  7627. +
  7628. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7629. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7630. +
  7631. +# Old names:
  7632. +AC_DEFUN([AC_ENABLE_STATIC],
  7633. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7634. +])
  7635. +
  7636. +AC_DEFUN([AC_DISABLE_STATIC],
  7637. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  7638. +])
  7639. +
  7640. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7641. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7642. +
  7643. +dnl aclocal-1.4 backwards compatibility:
  7644. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7645. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7646. +
  7647. +
  7648. +
  7649. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7650. +# ----------------------------------
  7651. +# implement the --enable-fast-install flag, and support the `fast-install'
  7652. +# and `disable-fast-install' LT_INIT options.
  7653. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7654. +m4_define([_LT_ENABLE_FAST_INSTALL],
  7655. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7656. +AC_ARG_ENABLE([fast-install],
  7657. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7658. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7659. + [p=${PACKAGE-default}
  7660. + case $enableval in
  7661. + yes) enable_fast_install=yes ;;
  7662. + no) enable_fast_install=no ;;
  7663. + *)
  7664. + enable_fast_install=no
  7665. + # Look at the argument we got. We use all the common list separators.
  7666. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7667. + for pkg in $enableval; do
  7668. + IFS="$lt_save_ifs"
  7669. + if test "X$pkg" = "X$p"; then
  7670. + enable_fast_install=yes
  7671. + fi
  7672. + done
  7673. + IFS="$lt_save_ifs"
  7674. + ;;
  7675. + esac],
  7676. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7677. +
  7678. +_LT_DECL([fast_install], [enable_fast_install], [0],
  7679. + [Whether or not to optimize for fast installation])dnl
  7680. +])# _LT_ENABLE_FAST_INSTALL
  7681. +
  7682. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7683. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7684. +
  7685. +# Old names:
  7686. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7687. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7688. +AC_DIAGNOSE([obsolete],
  7689. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7690. +the `fast-install' option into LT_INIT's first parameter.])
  7691. +])
  7692. +
  7693. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7694. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7695. +AC_DIAGNOSE([obsolete],
  7696. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7697. +the `disable-fast-install' option into LT_INIT's first parameter.])
  7698. +])
  7699. +
  7700. +dnl aclocal-1.4 backwards compatibility:
  7701. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7702. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7703. +
  7704. +
  7705. +# _LT_WITH_PIC([MODE])
  7706. +# --------------------
  7707. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7708. +# LT_INIT options.
  7709. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7710. +m4_define([_LT_WITH_PIC],
  7711. +[AC_ARG_WITH([pic],
  7712. + [AS_HELP_STRING([--with-pic],
  7713. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7714. + [pic_mode="$withval"],
  7715. + [pic_mode=default])
  7716. +
  7717. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7718. +
  7719. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7720. +])# _LT_WITH_PIC
  7721. +
  7722. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7723. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7724. +
  7725. +# Old name:
  7726. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  7727. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  7728. +AC_DIAGNOSE([obsolete],
  7729. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7730. +put the `pic-only' option into LT_INIT's first parameter.])
  7731. +])
  7732. +
  7733. +dnl aclocal-1.4 backwards compatibility:
  7734. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7735. +
  7736. +
  7737. +m4_define([_LTDL_MODE], [])
  7738. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7739. + [m4_define([_LTDL_MODE], [nonrecursive])])
  7740. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7741. + [m4_define([_LTDL_MODE], [recursive])])
  7742. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7743. + [m4_define([_LTDL_MODE], [subproject])])
  7744. +
  7745. +m4_define([_LTDL_TYPE], [])
  7746. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7747. + [m4_define([_LTDL_TYPE], [installable])])
  7748. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7749. + [m4_define([_LTDL_TYPE], [convenience])])
  7750. +
  7751. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7752. +#
  7753. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7754. +# Written by Gary V. Vaughan, 2004
  7755. +#
  7756. +# This file is free software; the Free Software Foundation gives
  7757. +# unlimited permission to copy and/or distribute it, with or without
  7758. +# modifications, as long as this notice is preserved.
  7759. +
  7760. +# serial 6 ltsugar.m4
  7761. +
  7762. +# This is to help aclocal find these macros, as it can't see m4_define.
  7763. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7764. +
  7765. +
  7766. +# lt_join(SEP, ARG1, [ARG2...])
  7767. +# -----------------------------
  7768. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7769. +# associated separator.
  7770. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7771. +# versions in m4sugar had bugs.
  7772. +m4_define([lt_join],
  7773. +[m4_if([$#], [1], [],
  7774. + [$#], [2], [[$2]],
  7775. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7776. +m4_define([_lt_join],
  7777. +[m4_if([$#$2], [2], [],
  7778. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7779. +
  7780. +
  7781. +# lt_car(LIST)
  7782. +# lt_cdr(LIST)
  7783. +# ------------
  7784. +# Manipulate m4 lists.
  7785. +# These macros are necessary as long as will still need to support
  7786. +# Autoconf-2.59 which quotes differently.
  7787. +m4_define([lt_car], [[$1]])
  7788. +m4_define([lt_cdr],
  7789. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7790. + [$#], 1, [],
  7791. + [m4_dquote(m4_shift($@))])])
  7792. +m4_define([lt_unquote], $1)
  7793. +
  7794. +
  7795. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7796. +# ------------------------------------------
  7797. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7798. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  7799. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7800. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7801. +# than defined and empty).
  7802. +#
  7803. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  7804. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7805. +m4_define([lt_append],
  7806. +[m4_define([$1],
  7807. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7808. +
  7809. +
  7810. +
  7811. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7812. +# ----------------------------------------------------------
  7813. +# Produce a SEP delimited list of all paired combinations of elements of
  7814. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7815. +# has the form PREFIXmINFIXSUFFIXn.
  7816. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  7817. +m4_define([lt_combine],
  7818. +[m4_if(m4_eval([$# > 3]), [1],
  7819. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7820. +[[m4_foreach([_Lt_prefix], [$2],
  7821. + [m4_foreach([_Lt_suffix],
  7822. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7823. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7824. +
  7825. +
  7826. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7827. +# -----------------------------------------------------------------------
  7828. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7829. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7830. +m4_define([lt_if_append_uniq],
  7831. +[m4_ifdef([$1],
  7832. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7833. + [lt_append([$1], [$2], [$3])$4],
  7834. + [$5])],
  7835. + [lt_append([$1], [$2], [$3])$4])])
  7836. +
  7837. +
  7838. +# lt_dict_add(DICT, KEY, VALUE)
  7839. +# -----------------------------
  7840. +m4_define([lt_dict_add],
  7841. +[m4_define([$1($2)], [$3])])
  7842. +
  7843. +
  7844. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7845. +# --------------------------------------------
  7846. +m4_define([lt_dict_add_subkey],
  7847. +[m4_define([$1($2:$3)], [$4])])
  7848. +
  7849. +
  7850. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  7851. +# ----------------------------------
  7852. +m4_define([lt_dict_fetch],
  7853. +[m4_ifval([$3],
  7854. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7855. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7856. +
  7857. +
  7858. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7859. +# -----------------------------------------------------------------
  7860. +m4_define([lt_if_dict_fetch],
  7861. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7862. + [$5],
  7863. + [$6])])
  7864. +
  7865. +
  7866. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7867. +# --------------------------------------------------------------
  7868. +m4_define([lt_dict_filter],
  7869. +[m4_if([$5], [], [],
  7870. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7871. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7872. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7873. +])
  7874. +
  7875. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  7876. +#
  7877. +# Copyright (C) 2004 Free Software Foundation, Inc.
  7878. +# Written by Scott James Remnant, 2004
  7879. +#
  7880. +# This file is free software; the Free Software Foundation gives
  7881. +# unlimited permission to copy and/or distribute it, with or without
  7882. +# modifications, as long as this notice is preserved.
  7883. +
  7884. +# Generated from ltversion.in.
  7885. +
  7886. +# serial 3017 ltversion.m4
  7887. +# This file is part of GNU Libtool
  7888. +
  7889. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  7890. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  7891. +
  7892. +AC_DEFUN([LTVERSION_VERSION],
  7893. +[macro_version='2.2.6b'
  7894. +macro_revision='1.3017'
  7895. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7896. +_LT_DECL(, macro_revision, 0)
  7897. +])
  7898. +
  7899. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7900. +#
  7901. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  7902. +# Written by Scott James Remnant, 2004.
  7903. +#
  7904. +# This file is free software; the Free Software Foundation gives
  7905. +# unlimited permission to copy and/or distribute it, with or without
  7906. +# modifications, as long as this notice is preserved.
  7907. +
  7908. +# serial 4 lt~obsolete.m4
  7909. +
  7910. +# These exist entirely to fool aclocal when bootstrapping libtool.
  7911. +#
  7912. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7913. +# which have later been changed to m4_define as they aren't part of the
  7914. +# exported API, or moved to Autoconf or Automake where they belong.
  7915. +#
  7916. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7917. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7918. +# using a macro with the same name in our local m4/libtool.m4 it'll
  7919. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7920. +# and doesn't know about Autoconf macros at all.)
  7921. +#
  7922. +# So we provide this file, which has a silly filename so it's always
  7923. +# included after everything else. This provides aclocal with the
  7924. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7925. +# because those macros already exist, or will be overwritten later.
  7926. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7927. +#
  7928. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7929. +# Yes, that means every name once taken will need to remain here until
  7930. +# we give up compatibility with versions before 1.7, at which point
  7931. +# we need to keep only those names which we still refer to.
  7932. +
  7933. +# This is to help aclocal find these macros, as it can't see m4_define.
  7934. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7935. +
  7936. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7937. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7938. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7939. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7940. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7941. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7942. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7943. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7944. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7945. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7946. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7947. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7948. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7949. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7950. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7951. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7952. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7953. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7954. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7955. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7956. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7957. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7958. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7959. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7960. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7961. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7962. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7963. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7964. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7965. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7966. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7967. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7968. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7969. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7970. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7971. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7972. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7973. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7974. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7975. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7976. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7977. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7978. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  7979. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7980. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7981. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7982. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7983. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7984. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7985. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7986. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7987. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7988. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7989. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7990. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7991. +
  7992. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7993. +#
  7994. +# This file is free software; the Free Software Foundation
  7995. +# gives unlimited permission to copy and/or distribute it,
  7996. +# with or without modifications, as long as this notice is preserved.
  7997. +
  7998. +# AM_AUTOMAKE_VERSION(VERSION)
  7999. +# ----------------------------
  8000. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  8001. +# generated from the m4 files accompanying Automake X.Y.
  8002. +# (This private macro should not be called outside this file.)
  8003. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  8004. +[am__api_version='1.11'
  8005. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  8006. +dnl require some minimum version. Point them to the right macro.
  8007. +m4_if([$1], [1.11.1], [],
  8008. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  8009. +])
  8010. +
  8011. +# _AM_AUTOCONF_VERSION(VERSION)
  8012. +# -----------------------------
  8013. +# aclocal traces this macro to find the Autoconf version.
  8014. +# This is a private macro too. Using m4_define simplifies
  8015. +# the logic in aclocal, which can simply ignore this definition.
  8016. +m4_define([_AM_AUTOCONF_VERSION], [])
  8017. +
  8018. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  8019. +# -------------------------------
  8020. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  8021. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  8022. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8023. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  8024. +m4_ifndef([AC_AUTOCONF_VERSION],
  8025. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  8026. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  8027. +
  8028. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  8029. +
  8030. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8031. +#
  8032. +# This file is free software; the Free Software Foundation
  8033. +# gives unlimited permission to copy and/or distribute it,
  8034. +# with or without modifications, as long as this notice is preserved.
  8035. +
  8036. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8037. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  8038. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  8039. +#
  8040. +# Of course, Automake must honor this variable whenever it calls a
  8041. +# tool from the auxiliary directory. The problem is that $srcdir (and
  8042. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  8043. +# depending on how configure is run. This is pretty annoying, since
  8044. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8045. +# source directory, any form will work fine, but in subdirectories a
  8046. +# relative path needs to be adjusted first.
  8047. +#
  8048. +# $ac_aux_dir/missing
  8049. +# fails when called from a subdirectory if $ac_aux_dir is relative
  8050. +# $top_srcdir/$ac_aux_dir/missing
  8051. +# fails if $ac_aux_dir is absolute,
  8052. +# fails when called from a subdirectory in a VPATH build with
  8053. +# a relative $ac_aux_dir
  8054. +#
  8055. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8056. +# are both prefixed by $srcdir. In an in-source build this is usually
  8057. +# harmless because $srcdir is `.', but things will broke when you
  8058. +# start a VPATH build or use an absolute $srcdir.
  8059. +#
  8060. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8061. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8062. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8063. +# and then we would define $MISSING as
  8064. +# MISSING="\${SHELL} $am_aux_dir/missing"
  8065. +# This will work as long as MISSING is not called from configure, because
  8066. +# unfortunately $(top_srcdir) has no meaning in configure.
  8067. +# However there are other variables, like CC, which are often used in
  8068. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  8069. +#
  8070. +# Another solution, used here, is to always expand $ac_aux_dir to an
  8071. +# absolute PATH. The drawback is that using absolute paths prevent a
  8072. +# configured tree to be moved without reconfiguration.
  8073. +
  8074. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  8075. +[dnl Rely on autoconf to set up CDPATH properly.
  8076. +AC_PREREQ([2.50])dnl
  8077. +# expand $ac_aux_dir to an absolute path
  8078. +am_aux_dir=`cd $ac_aux_dir && pwd`
  8079. +])
  8080. +
  8081. +# AM_CONDITIONAL -*- Autoconf -*-
  8082. +
  8083. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  8084. +# Free Software Foundation, Inc.
  8085. +#
  8086. +# This file is free software; the Free Software Foundation
  8087. +# gives unlimited permission to copy and/or distribute it,
  8088. +# with or without modifications, as long as this notice is preserved.
  8089. +
  8090. +# serial 9
  8091. +
  8092. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8093. +# -------------------------------------
  8094. +# Define a conditional.
  8095. +AC_DEFUN([AM_CONDITIONAL],
  8096. +[AC_PREREQ(2.52)dnl
  8097. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8098. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8099. +AC_SUBST([$1_TRUE])dnl
  8100. +AC_SUBST([$1_FALSE])dnl
  8101. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8102. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8103. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8104. +if $2; then
  8105. + $1_TRUE=
  8106. + $1_FALSE='#'
  8107. +else
  8108. + $1_TRUE='#'
  8109. + $1_FALSE=
  8110. +fi
  8111. +AC_CONFIG_COMMANDS_PRE(
  8112. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8113. + AC_MSG_ERROR([[conditional "$1" was never defined.
  8114. +Usually this means the macro was only invoked conditionally.]])
  8115. +fi])])
  8116. +
  8117. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  8118. +# Free Software Foundation, Inc.
  8119. +#
  8120. +# This file is free software; the Free Software Foundation
  8121. +# gives unlimited permission to copy and/or distribute it,
  8122. +# with or without modifications, as long as this notice is preserved.
  8123. +
  8124. +# serial 10
  8125. +
  8126. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8127. +# written in clear, in which case automake, when reading aclocal.m4,
  8128. +# will think it sees a *use*, and therefore will trigger all it's
  8129. +# C support machinery. Also note that it means that autoscan, seeing
  8130. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8131. +
  8132. +
  8133. +# _AM_DEPENDENCIES(NAME)
  8134. +# ----------------------
  8135. +# See how the compiler implements dependency checking.
  8136. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  8137. +# We try a few techniques and use that to set a single cache variable.
  8138. +#
  8139. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8140. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8141. +# dependency, and given that the user is not expected to run this macro,
  8142. +# just rely on AC_PROG_CC.
  8143. +AC_DEFUN([_AM_DEPENDENCIES],
  8144. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  8145. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8146. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8147. +AC_REQUIRE([AM_DEP_TRACK])dnl
  8148. +
  8149. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8150. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8151. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8152. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  8153. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8154. + [depcc="$$1" am_compiler_list=])
  8155. +
  8156. +AC_CACHE_CHECK([dependency style of $depcc],
  8157. + [am_cv_$1_dependencies_compiler_type],
  8158. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8159. + # We make a subdir and do the tests there. Otherwise we can end up
  8160. + # making bogus files that we don't know about and never remove. For
  8161. + # instance it was reported that on HP-UX the gcc test will end up
  8162. + # making a dummy file named `D' -- because `-MD' means `put the output
  8163. + # in D'.
  8164. + mkdir conftest.dir
  8165. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8166. + # using a relative directory.
  8167. + cp "$am_depcomp" conftest.dir
  8168. + cd conftest.dir
  8169. + # We will build objects and dependencies in a subdirectory because
  8170. + # it helps to detect inapplicable dependency modes. For instance
  8171. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8172. + # side effect of compilation, but ICC will put the dependencies in
  8173. + # the current directory while Tru64 will put them in the object
  8174. + # directory.
  8175. + mkdir sub
  8176. +
  8177. + am_cv_$1_dependencies_compiler_type=none
  8178. + if test "$am_compiler_list" = ""; then
  8179. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8180. + fi
  8181. + am__universal=false
  8182. + m4_case([$1], [CC],
  8183. + [case " $depcc " in #(
  8184. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8185. + esac],
  8186. + [CXX],
  8187. + [case " $depcc " in #(
  8188. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8189. + esac])
  8190. +
  8191. + for depmode in $am_compiler_list; do
  8192. + # Setup a source with many dependencies, because some compilers
  8193. + # like to wrap large dependency lists on column 80 (with \), and
  8194. + # we should not choose a depcomp mode which is confused by this.
  8195. + #
  8196. + # We need to recreate these files for each test, as the compiler may
  8197. + # overwrite some of them when testing with obscure command lines.
  8198. + # This happens at least with the AIX C compiler.
  8199. + : > sub/conftest.c
  8200. + for i in 1 2 3 4 5 6; do
  8201. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8202. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8203. + # Solaris 8's {/usr,}/bin/sh.
  8204. + touch sub/conftst$i.h
  8205. + done
  8206. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8207. +
  8208. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8209. + # mode. It turns out that the SunPro C++ compiler does not properly
  8210. + # handle `-M -o', and we need to detect this. Also, some Intel
  8211. + # versions had trouble with output in subdirs
  8212. + am__obj=sub/conftest.${OBJEXT-o}
  8213. + am__minus_obj="-o $am__obj"
  8214. + case $depmode in
  8215. + gcc)
  8216. + # This depmode causes a compiler race in universal mode.
  8217. + test "$am__universal" = false || continue
  8218. + ;;
  8219. + nosideeffect)
  8220. + # after this tag, mechanisms are not by side-effect, so they'll
  8221. + # only be used when explicitly requested
  8222. + if test "x$enable_dependency_tracking" = xyes; then
  8223. + continue
  8224. + else
  8225. + break
  8226. + fi
  8227. + ;;
  8228. + msvisualcpp | msvcmsys)
  8229. + # This compiler won't grok `-c -o', but also, the minuso test has
  8230. + # not run yet. These depmodes are late enough in the game, and
  8231. + # so weak that their functioning should not be impacted.
  8232. + am__obj=conftest.${OBJEXT-o}
  8233. + am__minus_obj=
  8234. + ;;
  8235. + none) break ;;
  8236. + esac
  8237. + if depmode=$depmode \
  8238. + source=sub/conftest.c object=$am__obj \
  8239. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8240. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8241. + >/dev/null 2>conftest.err &&
  8242. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8243. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8244. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8245. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8246. + # icc doesn't choke on unknown options, it will just issue warnings
  8247. + # or remarks (even with -Werror). So we grep stderr for any message
  8248. + # that says an option was ignored or not supported.
  8249. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8250. + # icc: Command line warning: ignoring option '-M'; no argument required
  8251. + # The diagnosis changed in icc 8.0:
  8252. + # icc: Command line remark: option '-MP' not supported
  8253. + if (grep 'ignoring option' conftest.err ||
  8254. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8255. + am_cv_$1_dependencies_compiler_type=$depmode
  8256. + break
  8257. + fi
  8258. + fi
  8259. + done
  8260. +
  8261. + cd ..
  8262. + rm -rf conftest.dir
  8263. +else
  8264. + am_cv_$1_dependencies_compiler_type=none
  8265. +fi
  8266. +])
  8267. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8268. +AM_CONDITIONAL([am__fastdep$1], [
  8269. + test "x$enable_dependency_tracking" != xno \
  8270. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8271. +])
  8272. +
  8273. +
  8274. +# AM_SET_DEPDIR
  8275. +# -------------
  8276. +# Choose a directory name for dependency files.
  8277. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8278. +AC_DEFUN([AM_SET_DEPDIR],
  8279. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8280. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8281. +])
  8282. +
  8283. +
  8284. +# AM_DEP_TRACK
  8285. +# ------------
  8286. +AC_DEFUN([AM_DEP_TRACK],
  8287. +[AC_ARG_ENABLE(dependency-tracking,
  8288. +[ --disable-dependency-tracking speeds up one-time build
  8289. + --enable-dependency-tracking do not reject slow dependency extractors])
  8290. +if test "x$enable_dependency_tracking" != xno; then
  8291. + am_depcomp="$ac_aux_dir/depcomp"
  8292. + AMDEPBACKSLASH='\'
  8293. +fi
  8294. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8295. +AC_SUBST([AMDEPBACKSLASH])dnl
  8296. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8297. +])
  8298. +
  8299. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  8300. +
  8301. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8302. +# Free Software Foundation, Inc.
  8303. +#
  8304. +# This file is free software; the Free Software Foundation
  8305. +# gives unlimited permission to copy and/or distribute it,
  8306. +# with or without modifications, as long as this notice is preserved.
  8307. +
  8308. +#serial 5
  8309. +
  8310. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8311. +# ------------------------------
  8312. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8313. +[{
  8314. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8315. + # are listed without --file. Let's play safe and only enable the eval
  8316. + # if we detect the quoting.
  8317. + case $CONFIG_FILES in
  8318. + *\'*) eval set x "$CONFIG_FILES" ;;
  8319. + *) set x $CONFIG_FILES ;;
  8320. + esac
  8321. + shift
  8322. + for mf
  8323. + do
  8324. + # Strip MF so we end up with the name of the file.
  8325. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  8326. + # Check whether this is an Automake generated Makefile or not.
  8327. + # We used to match only the files named `Makefile.in', but
  8328. + # some people rename them; so instead we look at the file content.
  8329. + # Grep'ing the first line is not enough: some people post-process
  8330. + # each Makefile.in and add a new line on top of each file to say so.
  8331. + # Grep'ing the whole file is not good either: AIX grep has a line
  8332. + # limit of 2048, but all sed's we know have understand at least 4000.
  8333. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8334. + dirpart=`AS_DIRNAME("$mf")`
  8335. + else
  8336. + continue
  8337. + fi
  8338. + # Extract the definition of DEPDIR, am__include, and am__quote
  8339. + # from the Makefile without running `make'.
  8340. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8341. + test -z "$DEPDIR" && continue
  8342. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8343. + test -z "am__include" && continue
  8344. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8345. + # When using ansi2knr, U may be empty or an underscore; expand it
  8346. + U=`sed -n 's/^U = //p' < "$mf"`
  8347. + # Find all dependency output files, they are included files with
  8348. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  8349. + # simplest approach to changing $(DEPDIR) to its actual value in the
  8350. + # expansion.
  8351. + for file in `sed -n "
  8352. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8353. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8354. + # Make sure the directory exists.
  8355. + test -f "$dirpart/$file" && continue
  8356. + fdir=`AS_DIRNAME(["$file"])`
  8357. + AS_MKDIR_P([$dirpart/$fdir])
  8358. + # echo "creating $dirpart/$file"
  8359. + echo '# dummy' > "$dirpart/$file"
  8360. + done
  8361. + done
  8362. +}
  8363. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8364. +
  8365. +
  8366. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  8367. +# -----------------------------
  8368. +# This macro should only be invoked once -- use via AC_REQUIRE.
  8369. +#
  8370. +# This code is only required when automatic dependency tracking
  8371. +# is enabled. FIXME. This creates each `.P' file that we will
  8372. +# need in order to bootstrap the dependency handling code.
  8373. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8374. +[AC_CONFIG_COMMANDS([depfiles],
  8375. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8376. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8377. +])
  8378. +
  8379. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  8380. +# Free Software Foundation, Inc.
  8381. +#
  8382. +# This file is free software; the Free Software Foundation
  8383. +# gives unlimited permission to copy and/or distribute it,
  8384. +# with or without modifications, as long as this notice is preserved.
  8385. +
  8386. +# serial 8
  8387. +
  8388. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  8389. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  8390. +
  8391. +# Do all the work for Automake. -*- Autoconf -*-
  8392. +
  8393. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8394. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8395. +#
  8396. +# This file is free software; the Free Software Foundation
  8397. +# gives unlimited permission to copy and/or distribute it,
  8398. +# with or without modifications, as long as this notice is preserved.
  8399. +
  8400. +# serial 16
  8401. +
  8402. +# This macro actually does too much. Some checks are only needed if
  8403. +# your package does certain things. But this isn't really a big deal.
  8404. +
  8405. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8406. +# AM_INIT_AUTOMAKE([OPTIONS])
  8407. +# -----------------------------------------------
  8408. +# The call with PACKAGE and VERSION arguments is the old style
  8409. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  8410. +# and VERSION should now be passed to AC_INIT and removed from
  8411. +# the call to AM_INIT_AUTOMAKE.
  8412. +# We support both call styles for the transition. After
  8413. +# the next Automake release, Autoconf can make the AC_INIT
  8414. +# arguments mandatory, and then we can depend on a new Autoconf
  8415. +# release and drop the old call support.
  8416. +AC_DEFUN([AM_INIT_AUTOMAKE],
  8417. +[AC_PREREQ([2.62])dnl
  8418. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8419. +dnl the ones we care about.
  8420. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8421. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8422. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  8423. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8424. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8425. + # is not polluted with repeated "-I."
  8426. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8427. + # test to see if srcdir already configured
  8428. + if test -f $srcdir/config.status; then
  8429. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8430. + fi
  8431. +fi
  8432. +
  8433. +# test whether we have cygpath
  8434. +if test -z "$CYGPATH_W"; then
  8435. + if (cygpath --version) >/dev/null 2>/dev/null; then
  8436. + CYGPATH_W='cygpath -w'
  8437. + else
  8438. + CYGPATH_W=echo
  8439. + fi
  8440. +fi
  8441. +AC_SUBST([CYGPATH_W])
  8442. +
  8443. +# Define the identity of the package.
  8444. +dnl Distinguish between old-style and new-style calls.
  8445. +m4_ifval([$2],
  8446. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8447. + AC_SUBST([PACKAGE], [$1])dnl
  8448. + AC_SUBST([VERSION], [$2])],
  8449. +[_AM_SET_OPTIONS([$1])dnl
  8450. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8451. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8452. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8453. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8454. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8455. +
  8456. +_AM_IF_OPTION([no-define],,
  8457. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8458. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8459. +
  8460. +# Some tools Automake needs.
  8461. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  8462. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8463. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8464. +AM_MISSING_PROG(AUTOCONF, autoconf)
  8465. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8466. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  8467. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  8468. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8469. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8470. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8471. +# We need awk for the "check" target. The system "awk" is bad on
  8472. +# some platforms.
  8473. +AC_REQUIRE([AC_PROG_AWK])dnl
  8474. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8475. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8476. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8477. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8478. + [_AM_PROG_TAR([v7])])])
  8479. +_AM_IF_OPTION([no-dependencies],,
  8480. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  8481. + [_AM_DEPENDENCIES(CC)],
  8482. + [define([AC_PROG_CC],
  8483. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8484. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8485. + [_AM_DEPENDENCIES(CXX)],
  8486. + [define([AC_PROG_CXX],
  8487. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8488. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8489. + [_AM_DEPENDENCIES(OBJC)],
  8490. + [define([AC_PROG_OBJC],
  8491. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8492. +])
  8493. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8494. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8495. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8496. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8497. +AC_CONFIG_COMMANDS_PRE(dnl
  8498. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  8499. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8500. +])
  8501. +
  8502. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8503. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8504. +dnl mangled by Autoconf and run in a shell conditional statement.
  8505. +m4_define([_AC_COMPILER_EXEEXT],
  8506. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8507. +
  8508. +
  8509. +# When config.status generates a header, we must update the stamp-h file.
  8510. +# This file resides in the same directory as the config header
  8511. +# that is generated. The stamp files are numbered to have different names.
  8512. +
  8513. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8514. +# loop where config.status creates the headers, so we can generate
  8515. +# our stamp files there.
  8516. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8517. +[# Compute $1's index in $config_headers.
  8518. +_am_arg=$1
  8519. +_am_stamp_count=1
  8520. +for _am_header in $config_headers :; do
  8521. + case $_am_header in
  8522. + $_am_arg | $_am_arg:* )
  8523. + break ;;
  8524. + * )
  8525. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8526. + esac
  8527. +done
  8528. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8529. +
  8530. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8531. +#
  8532. +# This file is free software; the Free Software Foundation
  8533. +# gives unlimited permission to copy and/or distribute it,
  8534. +# with or without modifications, as long as this notice is preserved.
  8535. +
  8536. +# AM_PROG_INSTALL_SH
  8537. +# ------------------
  8538. +# Define $install_sh.
  8539. +AC_DEFUN([AM_PROG_INSTALL_SH],
  8540. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8541. +if test x"${install_sh}" != xset; then
  8542. + case $am_aux_dir in
  8543. + *\ * | *\ *)
  8544. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8545. + *)
  8546. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  8547. + esac
  8548. +fi
  8549. +AC_SUBST(install_sh)])
  8550. +
  8551. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8552. +#
  8553. +# This file is free software; the Free Software Foundation
  8554. +# gives unlimited permission to copy and/or distribute it,
  8555. +# with or without modifications, as long as this notice is preserved.
  8556. +
  8557. +# serial 2
  8558. +
  8559. +# Check whether the underlying file-system supports filenames
  8560. +# with a leading dot. For instance MS-DOS doesn't.
  8561. +AC_DEFUN([AM_SET_LEADING_DOT],
  8562. +[rm -rf .tst 2>/dev/null
  8563. +mkdir .tst 2>/dev/null
  8564. +if test -d .tst; then
  8565. + am__leading_dot=.
  8566. +else
  8567. + am__leading_dot=_
  8568. +fi
  8569. +rmdir .tst 2>/dev/null
  8570. +AC_SUBST([am__leading_dot])])
  8571. +
  8572. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  8573. +
  8574. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8575. +#
  8576. +# This file is free software; the Free Software Foundation
  8577. +# gives unlimited permission to copy and/or distribute it,
  8578. +# with or without modifications, as long as this notice is preserved.
  8579. +
  8580. +# serial 4
  8581. +
  8582. +# AM_MAKE_INCLUDE()
  8583. +# -----------------
  8584. +# Check to see how make treats includes.
  8585. +AC_DEFUN([AM_MAKE_INCLUDE],
  8586. +[am_make=${MAKE-make}
  8587. +cat > confinc << 'END'
  8588. +am__doit:
  8589. + @echo this is the am__doit target
  8590. +.PHONY: am__doit
  8591. +END
  8592. +# If we don't find an include directive, just comment out the code.
  8593. +AC_MSG_CHECKING([for style of include used by $am_make])
  8594. +am__include="#"
  8595. +am__quote=
  8596. +_am_result=none
  8597. +# First try GNU make style include.
  8598. +echo "include confinc" > confmf
  8599. +# Ignore all kinds of additional output from `make'.
  8600. +case `$am_make -s -f confmf 2> /dev/null` in #(
  8601. +*the\ am__doit\ target*)
  8602. + am__include=include
  8603. + am__quote=
  8604. + _am_result=GNU
  8605. + ;;
  8606. +esac
  8607. +# Now try BSD make style include.
  8608. +if test "$am__include" = "#"; then
  8609. + echo '.include "confinc"' > confmf
  8610. + case `$am_make -s -f confmf 2> /dev/null` in #(
  8611. + *the\ am__doit\ target*)
  8612. + am__include=.include
  8613. + am__quote="\""
  8614. + _am_result=BSD
  8615. + ;;
  8616. + esac
  8617. +fi
  8618. +AC_SUBST([am__include])
  8619. +AC_SUBST([am__quote])
  8620. +AC_MSG_RESULT([$_am_result])
  8621. +rm -f confinc confmf
  8622. +])
  8623. +
  8624. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8625. +
  8626. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8627. +# Free Software Foundation, Inc.
  8628. +#
  8629. +# This file is free software; the Free Software Foundation
  8630. +# gives unlimited permission to copy and/or distribute it,
  8631. +# with or without modifications, as long as this notice is preserved.
  8632. +
  8633. +# serial 6
  8634. +
  8635. +# AM_MISSING_PROG(NAME, PROGRAM)
  8636. +# ------------------------------
  8637. +AC_DEFUN([AM_MISSING_PROG],
  8638. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  8639. +$1=${$1-"${am_missing_run}$2"}
  8640. +AC_SUBST($1)])
  8641. +
  8642. +
  8643. +# AM_MISSING_HAS_RUN
  8644. +# ------------------
  8645. +# Define MISSING if not defined so far and test if it supports --run.
  8646. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  8647. +AC_DEFUN([AM_MISSING_HAS_RUN],
  8648. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8649. +AC_REQUIRE_AUX_FILE([missing])dnl
  8650. +if test x"${MISSING+set}" != xset; then
  8651. + case $am_aux_dir in
  8652. + *\ * | *\ *)
  8653. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8654. + *)
  8655. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8656. + esac
  8657. +fi
  8658. +# Use eval to expand $SHELL
  8659. +if eval "$MISSING --run true"; then
  8660. + am_missing_run="$MISSING --run "
  8661. +else
  8662. + am_missing_run=
  8663. + AC_MSG_WARN([`missing' script is too old or missing])
  8664. +fi
  8665. +])
  8666. +
  8667. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8668. +#
  8669. +# This file is free software; the Free Software Foundation
  8670. +# gives unlimited permission to copy and/or distribute it,
  8671. +# with or without modifications, as long as this notice is preserved.
  8672. +
  8673. +# AM_PROG_MKDIR_P
  8674. +# ---------------
  8675. +# Check for `mkdir -p'.
  8676. +AC_DEFUN([AM_PROG_MKDIR_P],
  8677. +[AC_PREREQ([2.60])dnl
  8678. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8679. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8680. +dnl while keeping a definition of mkdir_p for backward compatibility.
  8681. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8682. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8683. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8684. +dnl adjustment using top_builddir (which is defined more often than
  8685. +dnl MKDIR_P).
  8686. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8687. +case $mkdir_p in
  8688. + [[\\/$]]* | ?:[[\\/]]*) ;;
  8689. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8690. +esac
  8691. +])
  8692. +
  8693. +# Helper functions for option handling. -*- Autoconf -*-
  8694. +
  8695. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8696. +#
  8697. +# This file is free software; the Free Software Foundation
  8698. +# gives unlimited permission to copy and/or distribute it,
  8699. +# with or without modifications, as long as this notice is preserved.
  8700. +
  8701. +# serial 4
  8702. +
  8703. +# _AM_MANGLE_OPTION(NAME)
  8704. +# -----------------------
  8705. +AC_DEFUN([_AM_MANGLE_OPTION],
  8706. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8707. +
  8708. +# _AM_SET_OPTION(NAME)
  8709. +# ------------------------------
  8710. +# Set option NAME. Presently that only means defining a flag for this option.
  8711. +AC_DEFUN([_AM_SET_OPTION],
  8712. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8713. +
  8714. +# _AM_SET_OPTIONS(OPTIONS)
  8715. +# ----------------------------------
  8716. +# OPTIONS is a space-separated list of Automake options.
  8717. +AC_DEFUN([_AM_SET_OPTIONS],
  8718. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8719. +
  8720. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8721. +# -------------------------------------------
  8722. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8723. +AC_DEFUN([_AM_IF_OPTION],
  8724. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8725. +
  8726. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  8727. +
  8728. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8729. +# Free Software Foundation, Inc.
  8730. +#
  8731. +# This file is free software; the Free Software Foundation
  8732. +# gives unlimited permission to copy and/or distribute it,
  8733. +# with or without modifications, as long as this notice is preserved.
  8734. +
  8735. +# serial 5
  8736. +
  8737. +# AM_SANITY_CHECK
  8738. +# ---------------
  8739. +AC_DEFUN([AM_SANITY_CHECK],
  8740. +[AC_MSG_CHECKING([whether build environment is sane])
  8741. +# Just in case
  8742. +sleep 1
  8743. +echo timestamp > conftest.file
  8744. +# Reject unsafe characters in $srcdir or the absolute working directory
  8745. +# name. Accept space and tab only in the latter.
  8746. +am_lf='
  8747. +'
  8748. +case `pwd` in
  8749. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  8750. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  8751. +esac
  8752. +case $srcdir in
  8753. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8754. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8755. +esac
  8756. +
  8757. +# Do `set' in a subshell so we don't clobber the current shell's
  8758. +# arguments. Must try -L first in case configure is actually a
  8759. +# symlink; some systems play weird games with the mod time of symlinks
  8760. +# (eg FreeBSD returns the mod time of the symlink's containing
  8761. +# directory).
  8762. +if (
  8763. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8764. + if test "$[*]" = "X"; then
  8765. + # -L didn't work.
  8766. + set X `ls -t "$srcdir/configure" conftest.file`
  8767. + fi
  8768. + rm -f conftest.file
  8769. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  8770. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8771. +
  8772. + # If neither matched, then we have a broken ls. This can happen
  8773. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  8774. + # broken ls alias from the environment. This has actually
  8775. + # happened. Such a system could not be considered "sane".
  8776. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8777. +alias in your environment])
  8778. + fi
  8779. +
  8780. + test "$[2]" = conftest.file
  8781. + )
  8782. +then
  8783. + # Ok.
  8784. + :
  8785. +else
  8786. + AC_MSG_ERROR([newly created file is older than distributed files!
  8787. +Check your system clock])
  8788. +fi
  8789. +AC_MSG_RESULT(yes)])
  8790. +
  8791. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8792. +#
  8793. +# This file is free software; the Free Software Foundation
  8794. +# gives unlimited permission to copy and/or distribute it,
  8795. +# with or without modifications, as long as this notice is preserved.
  8796. +
  8797. +# AM_PROG_INSTALL_STRIP
  8798. +# ---------------------
  8799. +# One issue with vendor `install' (even GNU) is that you can't
  8800. +# specify the program used to strip binaries. This is especially
  8801. +# annoying in cross-compiling environments, where the build's strip
  8802. +# is unlikely to handle the host's binaries.
  8803. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  8804. +# always use install-sh in `make install-strip', and initialize
  8805. +# STRIPPROG with the value of the STRIP variable (set by the user).
  8806. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8807. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8808. +# Installed binaries are usually stripped using `strip' when the user
  8809. +# run `make install-strip'. However `strip' might not be the right
  8810. +# tool to use in cross-compilation environments, therefore Automake
  8811. +# will honor the `STRIP' environment variable to overrule this program.
  8812. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8813. +if test "$cross_compiling" != no; then
  8814. + AC_CHECK_TOOL([STRIP], [strip], :)
  8815. +fi
  8816. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8817. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8818. +
  8819. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8820. +#
  8821. +# This file is free software; the Free Software Foundation
  8822. +# gives unlimited permission to copy and/or distribute it,
  8823. +# with or without modifications, as long as this notice is preserved.
  8824. +
  8825. +# serial 2
  8826. +
  8827. +# _AM_SUBST_NOTMAKE(VARIABLE)
  8828. +# ---------------------------
  8829. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8830. +# This macro is traced by Automake.
  8831. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  8832. +
  8833. +# AM_SUBST_NOTMAKE(VARIABLE)
  8834. +# ---------------------------
  8835. +# Public sister of _AM_SUBST_NOTMAKE.
  8836. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8837. +
  8838. +# Check how to create a tarball. -*- Autoconf -*-
  8839. +
  8840. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8841. +#
  8842. +# This file is free software; the Free Software Foundation
  8843. +# gives unlimited permission to copy and/or distribute it,
  8844. +# with or without modifications, as long as this notice is preserved.
  8845. +
  8846. +# serial 2
  8847. +
  8848. +# _AM_PROG_TAR(FORMAT)
  8849. +# --------------------
  8850. +# Check how to create a tarball in format FORMAT.
  8851. +# FORMAT should be one of `v7', `ustar', or `pax'.
  8852. +#
  8853. +# Substitute a variable $(am__tar) that is a command
  8854. +# writing to stdout a FORMAT-tarball containing the directory
  8855. +# $tardir.
  8856. +# tardir=directory && $(am__tar) > result.tar
  8857. +#
  8858. +# Substitute a variable $(am__untar) that extract such
  8859. +# a tarball read from stdin.
  8860. +# $(am__untar) < result.tar
  8861. +AC_DEFUN([_AM_PROG_TAR],
  8862. +[# Always define AMTAR for backward compatibility.
  8863. +AM_MISSING_PROG([AMTAR], [tar])
  8864. +m4_if([$1], [v7],
  8865. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8866. + [m4_case([$1], [ustar],, [pax],,
  8867. + [m4_fatal([Unknown tar format])])
  8868. +AC_MSG_CHECKING([how to create a $1 tar archive])
  8869. +# Loop over all known methods to create a tar archive until one works.
  8870. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8871. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8872. +# Do not fold the above two line into one, because Tru64 sh and
  8873. +# Solaris sh will not grok spaces in the rhs of `-'.
  8874. +for _am_tool in $_am_tools
  8875. +do
  8876. + case $_am_tool in
  8877. + gnutar)
  8878. + for _am_tar in tar gnutar gtar;
  8879. + do
  8880. + AM_RUN_LOG([$_am_tar --version]) && break
  8881. + done
  8882. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8883. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8884. + am__untar="$_am_tar -xf -"
  8885. + ;;
  8886. + plaintar)
  8887. + # Must skip GNU tar: if it does not support --format= it doesn't create
  8888. + # ustar tarball either.
  8889. + (tar --version) >/dev/null 2>&1 && continue
  8890. + am__tar='tar chf - "$$tardir"'
  8891. + am__tar_='tar chf - "$tardir"'
  8892. + am__untar='tar xf -'
  8893. + ;;
  8894. + pax)
  8895. + am__tar='pax -L -x $1 -w "$$tardir"'
  8896. + am__tar_='pax -L -x $1 -w "$tardir"'
  8897. + am__untar='pax -r'
  8898. + ;;
  8899. + cpio)
  8900. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8901. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8902. + am__untar='cpio -i -H $1 -d'
  8903. + ;;
  8904. + none)
  8905. + am__tar=false
  8906. + am__tar_=false
  8907. + am__untar=false
  8908. + ;;
  8909. + esac
  8910. +
  8911. + # If the value was cached, stop now. We just wanted to have am__tar
  8912. + # and am__untar set.
  8913. + test -n "${am_cv_prog_tar_$1}" && break
  8914. +
  8915. + # tar/untar a dummy directory, and stop if the command works
  8916. + rm -rf conftest.dir
  8917. + mkdir conftest.dir
  8918. + echo GrepMe > conftest.dir/file
  8919. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8920. + rm -rf conftest.dir
  8921. + if test -s conftest.tar; then
  8922. + AM_RUN_LOG([$am__untar <conftest.tar])
  8923. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8924. + fi
  8925. +done
  8926. +rm -rf conftest.dir
  8927. +
  8928. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8929. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8930. +AC_SUBST([am__tar])
  8931. +AC_SUBST([am__untar])
  8932. +]) # _AM_PROG_TAR
  8933. +
  8934. diff -Nur libvorbisidec-1.0.2+svn15687.orig/config.guess libvorbisidec-1.0.2+svn15687/config.guess
  8935. --- libvorbisidec-1.0.2+svn15687.orig/config.guess 1970-01-01 01:00:00.000000000 +0100
  8936. +++ libvorbisidec-1.0.2+svn15687/config.guess 2010-02-18 19:38:52.068855861 +0100
  8937. @@ -0,0 +1,1533 @@
  8938. +#! /bin/sh
  8939. +# Attempt to guess a canonical system name.
  8940. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  8941. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  8942. +# Free Software Foundation, Inc.
  8943. +
  8944. +timestamp='2009-06-10'
  8945. +
  8946. +# This file is free software; you can redistribute it and/or modify it
  8947. +# under the terms of the GNU General Public License as published by
  8948. +# the Free Software Foundation; either version 2 of the License, or
  8949. +# (at your option) any later version.
  8950. +#
  8951. +# This program is distributed in the hope that it will be useful, but
  8952. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  8953. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8954. +# General Public License for more details.
  8955. +#
  8956. +# You should have received a copy of the GNU General Public License
  8957. +# along with this program; if not, write to the Free Software
  8958. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  8959. +# 02110-1301, USA.
  8960. +#
  8961. +# As a special exception to the GNU General Public License, if you
  8962. +# distribute this file as part of a program that contains a
  8963. +# configuration script generated by Autoconf, you may include it under
  8964. +# the same distribution terms that you use for the rest of that program.
  8965. +
  8966. +
  8967. +# Originally written by Per Bothner <per@bothner.com>.
  8968. +# Please send patches to <config-patches@gnu.org>. Submit a context
  8969. +# diff and a properly formatted ChangeLog entry.
  8970. +#
  8971. +# This script attempts to guess a canonical system name similar to
  8972. +# config.sub. If it succeeds, it prints the system name on stdout, and
  8973. +# exits with 0. Otherwise, it exits with 1.
  8974. +#
  8975. +# The plan is that this can be called by configure scripts if you
  8976. +# don't specify an explicit build system type.
  8977. +
  8978. +me=`echo "$0" | sed -e 's,.*/,,'`
  8979. +
  8980. +usage="\
  8981. +Usage: $0 [OPTION]
  8982. +
  8983. +Output the configuration name of the system \`$me' is run on.
  8984. +
  8985. +Operation modes:
  8986. + -h, --help print this help, then exit
  8987. + -t, --time-stamp print date of last modification, then exit
  8988. + -v, --version print version number, then exit
  8989. +
  8990. +Report bugs and patches to <config-patches@gnu.org>."
  8991. +
  8992. +version="\
  8993. +GNU config.guess ($timestamp)
  8994. +
  8995. +Originally written by Per Bothner.
  8996. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  8997. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  8998. +
  8999. +This is free software; see the source for copying conditions. There is NO
  9000. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  9001. +
  9002. +help="
  9003. +Try \`$me --help' for more information."
  9004. +
  9005. +# Parse command line
  9006. +while test $# -gt 0 ; do
  9007. + case $1 in
  9008. + --time-stamp | --time* | -t )
  9009. + echo "$timestamp" ; exit ;;
  9010. + --version | -v )
  9011. + echo "$version" ; exit ;;
  9012. + --help | --h* | -h )
  9013. + echo "$usage"; exit ;;
  9014. + -- ) # Stop option processing
  9015. + shift; break ;;
  9016. + - ) # Use stdin as input.
  9017. + break ;;
  9018. + -* )
  9019. + echo "$me: invalid option $1$help" >&2
  9020. + exit 1 ;;
  9021. + * )
  9022. + break ;;
  9023. + esac
  9024. +done
  9025. +
  9026. +if test $# != 0; then
  9027. + echo "$me: too many arguments$help" >&2
  9028. + exit 1
  9029. +fi
  9030. +
  9031. +trap 'exit 1' 1 2 15
  9032. +
  9033. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  9034. +# compiler to aid in system detection is discouraged as it requires
  9035. +# temporary files to be created and, as you can see below, it is a
  9036. +# headache to deal with in a portable fashion.
  9037. +
  9038. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  9039. +# use `HOST_CC' if defined, but it is deprecated.
  9040. +
  9041. +# Portable tmp directory creation inspired by the Autoconf team.
  9042. +
  9043. +set_cc_for_build='
  9044. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  9045. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  9046. +: ${TMPDIR=/tmp} ;
  9047. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  9048. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  9049. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  9050. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  9051. +dummy=$tmp/dummy ;
  9052. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  9053. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  9054. + ,,) echo "int x;" > $dummy.c ;
  9055. + for c in cc gcc c89 c99 ; do
  9056. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  9057. + CC_FOR_BUILD="$c"; break ;
  9058. + fi ;
  9059. + done ;
  9060. + if test x"$CC_FOR_BUILD" = x ; then
  9061. + CC_FOR_BUILD=no_compiler_found ;
  9062. + fi
  9063. + ;;
  9064. + ,,*) CC_FOR_BUILD=$CC ;;
  9065. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  9066. +esac ; set_cc_for_build= ;'
  9067. +
  9068. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  9069. +# (ghazi@noc.rutgers.edu 1994-08-24)
  9070. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  9071. + PATH=$PATH:/.attbin ; export PATH
  9072. +fi
  9073. +
  9074. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  9075. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  9076. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  9077. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  9078. +
  9079. +# Note: order is significant - the case branches are not exclusive.
  9080. +
  9081. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  9082. + *:NetBSD:*:*)
  9083. + # NetBSD (nbsd) targets should (where applicable) match one or
  9084. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  9085. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  9086. + # switched to ELF, *-*-netbsd* would select the old
  9087. + # object file format. This provides both forward
  9088. + # compatibility and a consistent mechanism for selecting the
  9089. + # object file format.
  9090. + #
  9091. + # Note: NetBSD doesn't particularly care about the vendor
  9092. + # portion of the name. We always set it to "unknown".
  9093. + sysctl="sysctl -n hw.machine_arch"
  9094. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  9095. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  9096. + case "${UNAME_MACHINE_ARCH}" in
  9097. + armeb) machine=armeb-unknown ;;
  9098. + arm*) machine=arm-unknown ;;
  9099. + sh3el) machine=shl-unknown ;;
  9100. + sh3eb) machine=sh-unknown ;;
  9101. + sh5el) machine=sh5le-unknown ;;
  9102. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  9103. + esac
  9104. + # The Operating System including object format, if it has switched
  9105. + # to ELF recently, or will in the future.
  9106. + case "${UNAME_MACHINE_ARCH}" in
  9107. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  9108. + eval $set_cc_for_build
  9109. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  9110. + | grep -q __ELF__
  9111. + then
  9112. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  9113. + # Return netbsd for either. FIX?
  9114. + os=netbsd
  9115. + else
  9116. + os=netbsdelf
  9117. + fi
  9118. + ;;
  9119. + *)
  9120. + os=netbsd
  9121. + ;;
  9122. + esac
  9123. + # The OS release
  9124. + # Debian GNU/NetBSD machines have a different userland, and
  9125. + # thus, need a distinct triplet. However, they do not need
  9126. + # kernel version information, so it can be replaced with a
  9127. + # suitable tag, in the style of linux-gnu.
  9128. + case "${UNAME_VERSION}" in
  9129. + Debian*)
  9130. + release='-gnu'
  9131. + ;;
  9132. + *)
  9133. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  9134. + ;;
  9135. + esac
  9136. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  9137. + # contains redundant information, the shorter form:
  9138. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  9139. + echo "${machine}-${os}${release}"
  9140. + exit ;;
  9141. + *:OpenBSD:*:*)
  9142. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  9143. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  9144. + exit ;;
  9145. + *:ekkoBSD:*:*)
  9146. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  9147. + exit ;;
  9148. + *:SolidBSD:*:*)
  9149. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  9150. + exit ;;
  9151. + macppc:MirBSD:*:*)
  9152. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  9153. + exit ;;
  9154. + *:MirBSD:*:*)
  9155. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  9156. + exit ;;
  9157. + alpha:OSF1:*:*)
  9158. + case $UNAME_RELEASE in
  9159. + *4.0)
  9160. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  9161. + ;;
  9162. + *5.*)
  9163. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  9164. + ;;
  9165. + esac
  9166. + # According to Compaq, /usr/sbin/psrinfo has been available on
  9167. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  9168. + # covers most systems running today. This code pipes the CPU
  9169. + # types through head -n 1, so we only detect the type of CPU 0.
  9170. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  9171. + case "$ALPHA_CPU_TYPE" in
  9172. + "EV4 (21064)")
  9173. + UNAME_MACHINE="alpha" ;;
  9174. + "EV4.5 (21064)")
  9175. + UNAME_MACHINE="alpha" ;;
  9176. + "LCA4 (21066/21068)")
  9177. + UNAME_MACHINE="alpha" ;;
  9178. + "EV5 (21164)")
  9179. + UNAME_MACHINE="alphaev5" ;;
  9180. + "EV5.6 (21164A)")
  9181. + UNAME_MACHINE="alphaev56" ;;
  9182. + "EV5.6 (21164PC)")
  9183. + UNAME_MACHINE="alphapca56" ;;
  9184. + "EV5.7 (21164PC)")
  9185. + UNAME_MACHINE="alphapca57" ;;
  9186. + "EV6 (21264)")
  9187. + UNAME_MACHINE="alphaev6" ;;
  9188. + "EV6.7 (21264A)")
  9189. + UNAME_MACHINE="alphaev67" ;;
  9190. + "EV6.8CB (21264C)")
  9191. + UNAME_MACHINE="alphaev68" ;;
  9192. + "EV6.8AL (21264B)")
  9193. + UNAME_MACHINE="alphaev68" ;;
  9194. + "EV6.8CX (21264D)")
  9195. + UNAME_MACHINE="alphaev68" ;;
  9196. + "EV6.9A (21264/EV69A)")
  9197. + UNAME_MACHINE="alphaev69" ;;
  9198. + "EV7 (21364)")
  9199. + UNAME_MACHINE="alphaev7" ;;
  9200. + "EV7.9 (21364A)")
  9201. + UNAME_MACHINE="alphaev79" ;;
  9202. + esac
  9203. + # A Pn.n version is a patched version.
  9204. + # A Vn.n version is a released version.
  9205. + # A Tn.n version is a released field test version.
  9206. + # A Xn.n version is an unreleased experimental baselevel.
  9207. + # 1.2 uses "1.2" for uname -r.
  9208. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  9209. + exit ;;
  9210. + Alpha\ *:Windows_NT*:*)
  9211. + # How do we know it's Interix rather than the generic POSIX subsystem?
  9212. + # Should we change UNAME_MACHINE based on the output of uname instead
  9213. + # of the specific Alpha model?
  9214. + echo alpha-pc-interix
  9215. + exit ;;
  9216. + 21064:Windows_NT:50:3)
  9217. + echo alpha-dec-winnt3.5
  9218. + exit ;;
  9219. + Amiga*:UNIX_System_V:4.0:*)
  9220. + echo m68k-unknown-sysv4
  9221. + exit ;;
  9222. + *:[Aa]miga[Oo][Ss]:*:*)
  9223. + echo ${UNAME_MACHINE}-unknown-amigaos
  9224. + exit ;;
  9225. + *:[Mm]orph[Oo][Ss]:*:*)
  9226. + echo ${UNAME_MACHINE}-unknown-morphos
  9227. + exit ;;
  9228. + *:OS/390:*:*)
  9229. + echo i370-ibm-openedition
  9230. + exit ;;
  9231. + *:z/VM:*:*)
  9232. + echo s390-ibm-zvmoe
  9233. + exit ;;
  9234. + *:OS400:*:*)
  9235. + echo powerpc-ibm-os400
  9236. + exit ;;
  9237. + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  9238. + echo arm-acorn-riscix${UNAME_RELEASE}
  9239. + exit ;;
  9240. + arm:riscos:*:*|arm:RISCOS:*:*)
  9241. + echo arm-unknown-riscos
  9242. + exit ;;
  9243. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  9244. + echo hppa1.1-hitachi-hiuxmpp
  9245. + exit ;;
  9246. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  9247. + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  9248. + if test "`(/bin/universe) 2>/dev/null`" = att ; then
  9249. + echo pyramid-pyramid-sysv3
  9250. + else
  9251. + echo pyramid-pyramid-bsd
  9252. + fi
  9253. + exit ;;
  9254. + NILE*:*:*:dcosx)
  9255. + echo pyramid-pyramid-svr4
  9256. + exit ;;
  9257. + DRS?6000:unix:4.0:6*)
  9258. + echo sparc-icl-nx6
  9259. + exit ;;
  9260. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  9261. + case `/usr/bin/uname -p` in
  9262. + sparc) echo sparc-icl-nx7; exit ;;
  9263. + esac ;;
  9264. + s390x:SunOS:*:*)
  9265. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9266. + exit ;;
  9267. + sun4H:SunOS:5.*:*)
  9268. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9269. + exit ;;
  9270. + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  9271. + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9272. + exit ;;
  9273. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  9274. + eval $set_cc_for_build
  9275. + SUN_ARCH="i386"
  9276. + # If there is a compiler, see if it is configured for 64-bit objects.
  9277. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  9278. + # This test works for both compilers.
  9279. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  9280. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  9281. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  9282. + grep IS_64BIT_ARCH >/dev/null
  9283. + then
  9284. + SUN_ARCH="x86_64"
  9285. + fi
  9286. + fi
  9287. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9288. + exit ;;
  9289. + sun4*:SunOS:6*:*)
  9290. + # According to config.sub, this is the proper way to canonicalize
  9291. + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  9292. + # it's likely to be more like Solaris than SunOS4.
  9293. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9294. + exit ;;
  9295. + sun4*:SunOS:*:*)
  9296. + case "`/usr/bin/arch -k`" in
  9297. + Series*|S4*)
  9298. + UNAME_RELEASE=`uname -v`
  9299. + ;;
  9300. + esac
  9301. + # Japanese Language versions have a version number like `4.1.3-JL'.
  9302. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  9303. + exit ;;
  9304. + sun3*:SunOS:*:*)
  9305. + echo m68k-sun-sunos${UNAME_RELEASE}
  9306. + exit ;;
  9307. + sun*:*:4.2BSD:*)
  9308. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  9309. + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  9310. + case "`/bin/arch`" in
  9311. + sun3)
  9312. + echo m68k-sun-sunos${UNAME_RELEASE}
  9313. + ;;
  9314. + sun4)
  9315. + echo sparc-sun-sunos${UNAME_RELEASE}
  9316. + ;;
  9317. + esac
  9318. + exit ;;
  9319. + aushp:SunOS:*:*)
  9320. + echo sparc-auspex-sunos${UNAME_RELEASE}
  9321. + exit ;;
  9322. + # The situation for MiNT is a little confusing. The machine name
  9323. + # can be virtually everything (everything which is not
  9324. + # "atarist" or "atariste" at least should have a processor
  9325. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  9326. + # to the lowercase version "mint" (or "freemint"). Finally
  9327. + # the system name "TOS" denotes a system which is actually not
  9328. + # MiNT. But MiNT is downward compatible to TOS, so this should
  9329. + # be no problem.
  9330. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  9331. + echo m68k-atari-mint${UNAME_RELEASE}
  9332. + exit ;;
  9333. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  9334. + echo m68k-atari-mint${UNAME_RELEASE}
  9335. + exit ;;
  9336. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  9337. + echo m68k-atari-mint${UNAME_RELEASE}
  9338. + exit ;;
  9339. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  9340. + echo m68k-milan-mint${UNAME_RELEASE}
  9341. + exit ;;
  9342. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  9343. + echo m68k-hades-mint${UNAME_RELEASE}
  9344. + exit ;;
  9345. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  9346. + echo m68k-unknown-mint${UNAME_RELEASE}
  9347. + exit ;;
  9348. + m68k:machten:*:*)
  9349. + echo m68k-apple-machten${UNAME_RELEASE}
  9350. + exit ;;
  9351. + powerpc:machten:*:*)
  9352. + echo powerpc-apple-machten${UNAME_RELEASE}
  9353. + exit ;;
  9354. + RISC*:Mach:*:*)
  9355. + echo mips-dec-mach_bsd4.3
  9356. + exit ;;
  9357. + RISC*:ULTRIX:*:*)
  9358. + echo mips-dec-ultrix${UNAME_RELEASE}
  9359. + exit ;;
  9360. + VAX*:ULTRIX*:*:*)
  9361. + echo vax-dec-ultrix${UNAME_RELEASE}
  9362. + exit ;;
  9363. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  9364. + echo clipper-intergraph-clix${UNAME_RELEASE}
  9365. + exit ;;
  9366. + mips:*:*:UMIPS | mips:*:*:RISCos)
  9367. + eval $set_cc_for_build
  9368. + sed 's/^ //' << EOF >$dummy.c
  9369. +#ifdef __cplusplus
  9370. +#include <stdio.h> /* for printf() prototype */
  9371. + int main (int argc, char *argv[]) {
  9372. +#else
  9373. + int main (argc, argv) int argc; char *argv[]; {
  9374. +#endif
  9375. + #if defined (host_mips) && defined (MIPSEB)
  9376. + #if defined (SYSTYPE_SYSV)
  9377. + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  9378. + #endif
  9379. + #if defined (SYSTYPE_SVR4)
  9380. + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  9381. + #endif
  9382. + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  9383. + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  9384. + #endif
  9385. + #endif
  9386. + exit (-1);
  9387. + }
  9388. +EOF
  9389. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  9390. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  9391. + SYSTEM_NAME=`$dummy $dummyarg` &&
  9392. + { echo "$SYSTEM_NAME"; exit; }
  9393. + echo mips-mips-riscos${UNAME_RELEASE}
  9394. + exit ;;
  9395. + Motorola:PowerMAX_OS:*:*)
  9396. + echo powerpc-motorola-powermax
  9397. + exit ;;
  9398. + Motorola:*:4.3:PL8-*)
  9399. + echo powerpc-harris-powermax
  9400. + exit ;;
  9401. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  9402. + echo powerpc-harris-powermax
  9403. + exit ;;
  9404. + Night_Hawk:Power_UNIX:*:*)
  9405. + echo powerpc-harris-powerunix
  9406. + exit ;;
  9407. + m88k:CX/UX:7*:*)
  9408. + echo m88k-harris-cxux7
  9409. + exit ;;
  9410. + m88k:*:4*:R4*)
  9411. + echo m88k-motorola-sysv4
  9412. + exit ;;
  9413. + m88k:*:3*:R3*)
  9414. + echo m88k-motorola-sysv3
  9415. + exit ;;
  9416. + AViiON:dgux:*:*)
  9417. + # DG/UX returns AViiON for all architectures
  9418. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  9419. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  9420. + then
  9421. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  9422. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  9423. + then
  9424. + echo m88k-dg-dgux${UNAME_RELEASE}
  9425. + else
  9426. + echo m88k-dg-dguxbcs${UNAME_RELEASE}
  9427. + fi
  9428. + else
  9429. + echo i586-dg-dgux${UNAME_RELEASE}
  9430. + fi
  9431. + exit ;;
  9432. + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  9433. + echo m88k-dolphin-sysv3
  9434. + exit ;;
  9435. + M88*:*:R3*:*)
  9436. + # Delta 88k system running SVR3
  9437. + echo m88k-motorola-sysv3
  9438. + exit ;;
  9439. + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  9440. + echo m88k-tektronix-sysv3
  9441. + exit ;;
  9442. + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  9443. + echo m68k-tektronix-bsd
  9444. + exit ;;
  9445. + *:IRIX*:*:*)
  9446. + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  9447. + exit ;;
  9448. + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  9449. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  9450. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  9451. + i*86:AIX:*:*)
  9452. + echo i386-ibm-aix
  9453. + exit ;;
  9454. + ia64:AIX:*:*)
  9455. + if [ -x /usr/bin/oslevel ] ; then
  9456. + IBM_REV=`/usr/bin/oslevel`
  9457. + else
  9458. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  9459. + fi
  9460. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  9461. + exit ;;
  9462. + *:AIX:2:3)
  9463. + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  9464. + eval $set_cc_for_build
  9465. + sed 's/^ //' << EOF >$dummy.c
  9466. + #include <sys/systemcfg.h>
  9467. +
  9468. + main()
  9469. + {
  9470. + if (!__power_pc())
  9471. + exit(1);
  9472. + puts("powerpc-ibm-aix3.2.5");
  9473. + exit(0);
  9474. + }
  9475. +EOF
  9476. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  9477. + then
  9478. + echo "$SYSTEM_NAME"
  9479. + else
  9480. + echo rs6000-ibm-aix3.2.5
  9481. + fi
  9482. + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  9483. + echo rs6000-ibm-aix3.2.4
  9484. + else
  9485. + echo rs6000-ibm-aix3.2
  9486. + fi
  9487. + exit ;;
  9488. + *:AIX:*:[456])
  9489. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  9490. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  9491. + IBM_ARCH=rs6000
  9492. + else
  9493. + IBM_ARCH=powerpc
  9494. + fi
  9495. + if [ -x /usr/bin/oslevel ] ; then
  9496. + IBM_REV=`/usr/bin/oslevel`
  9497. + else
  9498. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  9499. + fi
  9500. + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  9501. + exit ;;
  9502. + *:AIX:*:*)
  9503. + echo rs6000-ibm-aix
  9504. + exit ;;
  9505. + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  9506. + echo romp-ibm-bsd4.4
  9507. + exit ;;
  9508. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  9509. + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  9510. + exit ;; # report: romp-ibm BSD 4.3
  9511. + *:BOSX:*:*)
  9512. + echo rs6000-bull-bosx
  9513. + exit ;;
  9514. + DPX/2?00:B.O.S.:*:*)
  9515. + echo m68k-bull-sysv3
  9516. + exit ;;
  9517. + 9000/[34]??:4.3bsd:1.*:*)
  9518. + echo m68k-hp-bsd
  9519. + exit ;;
  9520. + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  9521. + echo m68k-hp-bsd4.4
  9522. + exit ;;
  9523. + 9000/[34678]??:HP-UX:*:*)
  9524. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  9525. + case "${UNAME_MACHINE}" in
  9526. + 9000/31? ) HP_ARCH=m68000 ;;
  9527. + 9000/[34]?? ) HP_ARCH=m68k ;;
  9528. + 9000/[678][0-9][0-9])
  9529. + if [ -x /usr/bin/getconf ]; then
  9530. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  9531. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  9532. + case "${sc_cpu_version}" in
  9533. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  9534. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  9535. + 532) # CPU_PA_RISC2_0
  9536. + case "${sc_kernel_bits}" in
  9537. + 32) HP_ARCH="hppa2.0n" ;;
  9538. + 64) HP_ARCH="hppa2.0w" ;;
  9539. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  9540. + esac ;;
  9541. + esac
  9542. + fi
  9543. + if [ "${HP_ARCH}" = "" ]; then
  9544. + eval $set_cc_for_build
  9545. + sed 's/^ //' << EOF >$dummy.c
  9546. +
  9547. + #define _HPUX_SOURCE
  9548. + #include <stdlib.h>
  9549. + #include <unistd.h>
  9550. +
  9551. + int main ()
  9552. + {
  9553. + #if defined(_SC_KERNEL_BITS)
  9554. + long bits = sysconf(_SC_KERNEL_BITS);
  9555. + #endif
  9556. + long cpu = sysconf (_SC_CPU_VERSION);
  9557. +
  9558. + switch (cpu)
  9559. + {
  9560. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  9561. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  9562. + case CPU_PA_RISC2_0:
  9563. + #if defined(_SC_KERNEL_BITS)
  9564. + switch (bits)
  9565. + {
  9566. + case 64: puts ("hppa2.0w"); break;
  9567. + case 32: puts ("hppa2.0n"); break;
  9568. + default: puts ("hppa2.0"); break;
  9569. + } break;
  9570. + #else /* !defined(_SC_KERNEL_BITS) */
  9571. + puts ("hppa2.0"); break;
  9572. + #endif
  9573. + default: puts ("hppa1.0"); break;
  9574. + }
  9575. + exit (0);
  9576. + }
  9577. +EOF
  9578. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  9579. + test -z "$HP_ARCH" && HP_ARCH=hppa
  9580. + fi ;;
  9581. + esac
  9582. + if [ ${HP_ARCH} = "hppa2.0w" ]
  9583. + then
  9584. + eval $set_cc_for_build
  9585. +
  9586. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  9587. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  9588. + # generating 64-bit code. GNU and HP use different nomenclature:
  9589. + #
  9590. + # $ CC_FOR_BUILD=cc ./config.guess
  9591. + # => hppa2.0w-hp-hpux11.23
  9592. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  9593. + # => hppa64-hp-hpux11.23
  9594. +
  9595. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  9596. + grep -q __LP64__
  9597. + then
  9598. + HP_ARCH="hppa2.0w"
  9599. + else
  9600. + HP_ARCH="hppa64"
  9601. + fi
  9602. + fi
  9603. + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  9604. + exit ;;
  9605. + ia64:HP-UX:*:*)
  9606. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  9607. + echo ia64-hp-hpux${HPUX_REV}
  9608. + exit ;;
  9609. + 3050*:HI-UX:*:*)
  9610. + eval $set_cc_for_build
  9611. + sed 's/^ //' << EOF >$dummy.c
  9612. + #include <unistd.h>
  9613. + int
  9614. + main ()
  9615. + {
  9616. + long cpu = sysconf (_SC_CPU_VERSION);
  9617. + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  9618. + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  9619. + results, however. */
  9620. + if (CPU_IS_PA_RISC (cpu))
  9621. + {
  9622. + switch (cpu)
  9623. + {
  9624. + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  9625. + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  9626. + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  9627. + default: puts ("hppa-hitachi-hiuxwe2"); break;
  9628. + }
  9629. + }
  9630. + else if (CPU_IS_HP_MC68K (cpu))
  9631. + puts ("m68k-hitachi-hiuxwe2");
  9632. + else puts ("unknown-hitachi-hiuxwe2");
  9633. + exit (0);
  9634. + }
  9635. +EOF
  9636. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  9637. + { echo "$SYSTEM_NAME"; exit; }
  9638. + echo unknown-hitachi-hiuxwe2
  9639. + exit ;;
  9640. + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  9641. + echo hppa1.1-hp-bsd
  9642. + exit ;;
  9643. + 9000/8??:4.3bsd:*:*)
  9644. + echo hppa1.0-hp-bsd
  9645. + exit ;;
  9646. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  9647. + echo hppa1.0-hp-mpeix
  9648. + exit ;;
  9649. + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  9650. + echo hppa1.1-hp-osf
  9651. + exit ;;
  9652. + hp8??:OSF1:*:*)
  9653. + echo hppa1.0-hp-osf
  9654. + exit ;;
  9655. + i*86:OSF1:*:*)
  9656. + if [ -x /usr/sbin/sysversion ] ; then
  9657. + echo ${UNAME_MACHINE}-unknown-osf1mk
  9658. + else
  9659. + echo ${UNAME_MACHINE}-unknown-osf1
  9660. + fi
  9661. + exit ;;
  9662. + parisc*:Lites*:*:*)
  9663. + echo hppa1.1-hp-lites
  9664. + exit ;;
  9665. + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  9666. + echo c1-convex-bsd
  9667. + exit ;;
  9668. + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  9669. + if getsysinfo -f scalar_acc
  9670. + then echo c32-convex-bsd
  9671. + else echo c2-convex-bsd
  9672. + fi
  9673. + exit ;;
  9674. + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  9675. + echo c34-convex-bsd
  9676. + exit ;;
  9677. + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  9678. + echo c38-convex-bsd
  9679. + exit ;;
  9680. + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  9681. + echo c4-convex-bsd
  9682. + exit ;;
  9683. + CRAY*Y-MP:*:*:*)
  9684. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  9685. + exit ;;
  9686. + CRAY*[A-Z]90:*:*:*)
  9687. + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  9688. + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  9689. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  9690. + -e 's/\.[^.]*$/.X/'
  9691. + exit ;;
  9692. + CRAY*TS:*:*:*)
  9693. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  9694. + exit ;;
  9695. + CRAY*T3E:*:*:*)
  9696. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  9697. + exit ;;
  9698. + CRAY*SV1:*:*:*)
  9699. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  9700. + exit ;;
  9701. + *:UNICOS/mp:*:*)
  9702. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  9703. + exit ;;
  9704. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  9705. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  9706. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  9707. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  9708. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  9709. + exit ;;
  9710. + 5000:UNIX_System_V:4.*:*)
  9711. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  9712. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  9713. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  9714. + exit ;;
  9715. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  9716. + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  9717. + exit ;;
  9718. + sparc*:BSD/OS:*:*)
  9719. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  9720. + exit ;;
  9721. + *:BSD/OS:*:*)
  9722. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  9723. + exit ;;
  9724. + *:FreeBSD:*:*)
  9725. + case ${UNAME_MACHINE} in
  9726. + pc98)
  9727. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  9728. + amd64)
  9729. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  9730. + *)
  9731. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  9732. + esac
  9733. + exit ;;
  9734. + i*:CYGWIN*:*)
  9735. + echo ${UNAME_MACHINE}-pc-cygwin
  9736. + exit ;;
  9737. + *:MINGW*:*)
  9738. + echo ${UNAME_MACHINE}-pc-mingw32
  9739. + exit ;;
  9740. + i*:windows32*:*)
  9741. + # uname -m includes "-pc" on this system.
  9742. + echo ${UNAME_MACHINE}-mingw32
  9743. + exit ;;
  9744. + i*:PW*:*)
  9745. + echo ${UNAME_MACHINE}-pc-pw32
  9746. + exit ;;
  9747. + *:Interix*:[3456]*)
  9748. + case ${UNAME_MACHINE} in
  9749. + x86)
  9750. + echo i586-pc-interix${UNAME_RELEASE}
  9751. + exit ;;
  9752. + EM64T | authenticamd | genuineintel)
  9753. + echo x86_64-unknown-interix${UNAME_RELEASE}
  9754. + exit ;;
  9755. + IA64)
  9756. + echo ia64-unknown-interix${UNAME_RELEASE}
  9757. + exit ;;
  9758. + esac ;;
  9759. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  9760. + echo i${UNAME_MACHINE}-pc-mks
  9761. + exit ;;
  9762. + 8664:Windows_NT:*)
  9763. + echo x86_64-pc-mks
  9764. + exit ;;
  9765. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  9766. + # How do we know it's Interix rather than the generic POSIX subsystem?
  9767. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  9768. + # UNAME_MACHINE based on the output of uname instead of i386?
  9769. + echo i586-pc-interix
  9770. + exit ;;
  9771. + i*:UWIN*:*)
  9772. + echo ${UNAME_MACHINE}-pc-uwin
  9773. + exit ;;
  9774. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  9775. + echo x86_64-unknown-cygwin
  9776. + exit ;;
  9777. + p*:CYGWIN*:*)
  9778. + echo powerpcle-unknown-cygwin
  9779. + exit ;;
  9780. + prep*:SunOS:5.*:*)
  9781. + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  9782. + exit ;;
  9783. + *:GNU:*:*)
  9784. + # the GNU system
  9785. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  9786. + exit ;;
  9787. + *:GNU/*:*:*)
  9788. + # other systems with GNU libc and userland
  9789. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  9790. + exit ;;
  9791. + i*86:Minix:*:*)
  9792. + echo ${UNAME_MACHINE}-pc-minix
  9793. + exit ;;
  9794. + arm*:Linux:*:*)
  9795. + eval $set_cc_for_build
  9796. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  9797. + | grep -q __ARM_EABI__
  9798. + then
  9799. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9800. + else
  9801. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  9802. + fi
  9803. + exit ;;
  9804. + avr32*:Linux:*:*)
  9805. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9806. + exit ;;
  9807. + cris:Linux:*:*)
  9808. + echo cris-axis-linux-gnu
  9809. + exit ;;
  9810. + crisv32:Linux:*:*)
  9811. + echo crisv32-axis-linux-gnu
  9812. + exit ;;
  9813. + frv:Linux:*:*)
  9814. + echo frv-unknown-linux-gnu
  9815. + exit ;;
  9816. + ia64:Linux:*:*)
  9817. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9818. + exit ;;
  9819. + m32r*:Linux:*:*)
  9820. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9821. + exit ;;
  9822. + m68*:Linux:*:*)
  9823. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9824. + exit ;;
  9825. + mips:Linux:*:* | mips64:Linux:*:*)
  9826. + eval $set_cc_for_build
  9827. + sed 's/^ //' << EOF >$dummy.c
  9828. + #undef CPU
  9829. + #undef ${UNAME_MACHINE}
  9830. + #undef ${UNAME_MACHINE}el
  9831. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  9832. + CPU=${UNAME_MACHINE}el
  9833. + #else
  9834. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  9835. + CPU=${UNAME_MACHINE}
  9836. + #else
  9837. + CPU=
  9838. + #endif
  9839. + #endif
  9840. +EOF
  9841. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  9842. + /^CPU/{
  9843. + s: ::g
  9844. + p
  9845. + }'`"
  9846. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  9847. + ;;
  9848. + or32:Linux:*:*)
  9849. + echo or32-unknown-linux-gnu
  9850. + exit ;;
  9851. + ppc:Linux:*:*)
  9852. + echo powerpc-unknown-linux-gnu
  9853. + exit ;;
  9854. + ppc64:Linux:*:*)
  9855. + echo powerpc64-unknown-linux-gnu
  9856. + exit ;;
  9857. + alpha:Linux:*:*)
  9858. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  9859. + EV5) UNAME_MACHINE=alphaev5 ;;
  9860. + EV56) UNAME_MACHINE=alphaev56 ;;
  9861. + PCA56) UNAME_MACHINE=alphapca56 ;;
  9862. + PCA57) UNAME_MACHINE=alphapca56 ;;
  9863. + EV6) UNAME_MACHINE=alphaev6 ;;
  9864. + EV67) UNAME_MACHINE=alphaev67 ;;
  9865. + EV68*) UNAME_MACHINE=alphaev68 ;;
  9866. + esac
  9867. + objdump --private-headers /bin/sh | grep -q ld.so.1
  9868. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  9869. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  9870. + exit ;;
  9871. + padre:Linux:*:*)
  9872. + echo sparc-unknown-linux-gnu
  9873. + exit ;;
  9874. + parisc:Linux:*:* | hppa:Linux:*:*)
  9875. + # Look for CPU level
  9876. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  9877. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  9878. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  9879. + *) echo hppa-unknown-linux-gnu ;;
  9880. + esac
  9881. + exit ;;
  9882. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  9883. + echo hppa64-unknown-linux-gnu
  9884. + exit ;;
  9885. + s390:Linux:*:* | s390x:Linux:*:*)
  9886. + echo ${UNAME_MACHINE}-ibm-linux
  9887. + exit ;;
  9888. + sh64*:Linux:*:*)
  9889. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9890. + exit ;;
  9891. + sh*:Linux:*:*)
  9892. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9893. + exit ;;
  9894. + sparc:Linux:*:* | sparc64:Linux:*:*)
  9895. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9896. + exit ;;
  9897. + vax:Linux:*:*)
  9898. + echo ${UNAME_MACHINE}-dec-linux-gnu
  9899. + exit ;;
  9900. + x86_64:Linux:*:*)
  9901. + echo x86_64-unknown-linux-gnu
  9902. + exit ;;
  9903. + xtensa*:Linux:*:*)
  9904. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  9905. + exit ;;
  9906. + i*86:Linux:*:*)
  9907. + # The BFD linker knows what the default object file format is, so
  9908. + # first see if it will tell us. cd to the root directory to prevent
  9909. + # problems with other programs or directories called `ld' in the path.
  9910. + # Set LC_ALL=C to ensure ld outputs messages in English.
  9911. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  9912. + | sed -ne '/supported targets:/!d
  9913. + s/[ ][ ]*/ /g
  9914. + s/.*supported targets: *//
  9915. + s/ .*//
  9916. + p'`
  9917. + case "$ld_supported_targets" in
  9918. + elf32-i386)
  9919. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  9920. + ;;
  9921. + esac
  9922. + # Determine whether the default compiler is a.out or elf
  9923. + eval $set_cc_for_build
  9924. + sed 's/^ //' << EOF >$dummy.c
  9925. + #include <features.h>
  9926. + #ifdef __ELF__
  9927. + # ifdef __GLIBC__
  9928. + # if __GLIBC__ >= 2
  9929. + LIBC=gnu
  9930. + # else
  9931. + LIBC=gnulibc1
  9932. + # endif
  9933. + # else
  9934. + LIBC=gnulibc1
  9935. + # endif
  9936. + #else
  9937. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  9938. + LIBC=gnu
  9939. + #else
  9940. + LIBC=gnuaout
  9941. + #endif
  9942. + #endif
  9943. + #ifdef __dietlibc__
  9944. + LIBC=dietlibc
  9945. + #endif
  9946. +EOF
  9947. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  9948. + /^LIBC/{
  9949. + s: ::g
  9950. + p
  9951. + }'`"
  9952. + test x"${LIBC}" != x && {
  9953. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  9954. + exit
  9955. + }
  9956. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  9957. + ;;
  9958. + i*86:DYNIX/ptx:4*:*)
  9959. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  9960. + # earlier versions are messed up and put the nodename in both
  9961. + # sysname and nodename.
  9962. + echo i386-sequent-sysv4
  9963. + exit ;;
  9964. + i*86:UNIX_SV:4.2MP:2.*)
  9965. + # Unixware is an offshoot of SVR4, but it has its own version
  9966. + # number series starting with 2...
  9967. + # I am not positive that other SVR4 systems won't match this,
  9968. + # I just have to hope. -- rms.
  9969. + # Use sysv4.2uw... so that sysv4* matches it.
  9970. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  9971. + exit ;;
  9972. + i*86:OS/2:*:*)
  9973. + # If we were able to find `uname', then EMX Unix compatibility
  9974. + # is probably installed.
  9975. + echo ${UNAME_MACHINE}-pc-os2-emx
  9976. + exit ;;
  9977. + i*86:XTS-300:*:STOP)
  9978. + echo ${UNAME_MACHINE}-unknown-stop
  9979. + exit ;;
  9980. + i*86:atheos:*:*)
  9981. + echo ${UNAME_MACHINE}-unknown-atheos
  9982. + exit ;;
  9983. + i*86:syllable:*:*)
  9984. + echo ${UNAME_MACHINE}-pc-syllable
  9985. + exit ;;
  9986. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  9987. + echo i386-unknown-lynxos${UNAME_RELEASE}
  9988. + exit ;;
  9989. + i*86:*DOS:*:*)
  9990. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  9991. + exit ;;
  9992. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  9993. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  9994. + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  9995. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  9996. + else
  9997. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  9998. + fi
  9999. + exit ;;
  10000. + i*86:*:5:[678]*)
  10001. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  10002. + case `/bin/uname -X | grep "^Machine"` in
  10003. + *486*) UNAME_MACHINE=i486 ;;
  10004. + *Pentium) UNAME_MACHINE=i586 ;;
  10005. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  10006. + esac
  10007. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  10008. + exit ;;
  10009. + i*86:*:3.2:*)
  10010. + if test -f /usr/options/cb.name; then
  10011. + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  10012. + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  10013. + elif /bin/uname -X 2>/dev/null >/dev/null ; then
  10014. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  10015. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  10016. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  10017. + && UNAME_MACHINE=i586
  10018. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  10019. + && UNAME_MACHINE=i686
  10020. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  10021. + && UNAME_MACHINE=i686
  10022. + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  10023. + else
  10024. + echo ${UNAME_MACHINE}-pc-sysv32
  10025. + fi
  10026. + exit ;;
  10027. + pc:*:*:*)
  10028. + # Left here for compatibility:
  10029. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  10030. + # the processor, so we play safe by assuming i586.
  10031. + # Note: whatever this is, it MUST be the same as what config.sub
  10032. + # prints for the "djgpp" host, or else GDB configury will decide that
  10033. + # this is a cross-build.
  10034. + echo i586-pc-msdosdjgpp
  10035. + exit ;;
  10036. + Intel:Mach:3*:*)
  10037. + echo i386-pc-mach3
  10038. + exit ;;
  10039. + paragon:*:*:*)
  10040. + echo i860-intel-osf1
  10041. + exit ;;
  10042. + i860:*:4.*:*) # i860-SVR4
  10043. + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  10044. + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  10045. + else # Add other i860-SVR4 vendors below as they are discovered.
  10046. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  10047. + fi
  10048. + exit ;;
  10049. + mini*:CTIX:SYS*5:*)
  10050. + # "miniframe"
  10051. + echo m68010-convergent-sysv
  10052. + exit ;;
  10053. + mc68k:UNIX:SYSTEM5:3.51m)
  10054. + echo m68k-convergent-sysv
  10055. + exit ;;
  10056. + M680?0:D-NIX:5.3:*)
  10057. + echo m68k-diab-dnix
  10058. + exit ;;
  10059. + M68*:*:R3V[5678]*:*)
  10060. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  10061. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  10062. + OS_REL=''
  10063. + test -r /etc/.relid \
  10064. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  10065. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  10066. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  10067. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  10068. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  10069. + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  10070. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  10071. + && { echo i486-ncr-sysv4; exit; } ;;
  10072. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  10073. + OS_REL='.3'
  10074. + test -r /etc/.relid \
  10075. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  10076. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  10077. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  10078. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  10079. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  10080. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  10081. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  10082. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  10083. + echo m68k-unknown-lynxos${UNAME_RELEASE}
  10084. + exit ;;
  10085. + mc68030:UNIX_System_V:4.*:*)
  10086. + echo m68k-atari-sysv4
  10087. + exit ;;
  10088. + TSUNAMI:LynxOS:2.*:*)
  10089. + echo sparc-unknown-lynxos${UNAME_RELEASE}
  10090. + exit ;;
  10091. + rs6000:LynxOS:2.*:*)
  10092. + echo rs6000-unknown-lynxos${UNAME_RELEASE}
  10093. + exit ;;
  10094. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  10095. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  10096. + exit ;;
  10097. + SM[BE]S:UNIX_SV:*:*)
  10098. + echo mips-dde-sysv${UNAME_RELEASE}
  10099. + exit ;;
  10100. + RM*:ReliantUNIX-*:*:*)
  10101. + echo mips-sni-sysv4
  10102. + exit ;;
  10103. + RM*:SINIX-*:*:*)
  10104. + echo mips-sni-sysv4
  10105. + exit ;;
  10106. + *:SINIX-*:*:*)
  10107. + if uname -p 2>/dev/null >/dev/null ; then
  10108. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  10109. + echo ${UNAME_MACHINE}-sni-sysv4
  10110. + else
  10111. + echo ns32k-sni-sysv
  10112. + fi
  10113. + exit ;;
  10114. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  10115. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  10116. + echo i586-unisys-sysv4
  10117. + exit ;;
  10118. + *:UNIX_System_V:4*:FTX*)
  10119. + # From Gerald Hewes <hewes@openmarket.com>.
  10120. + # How about differentiating between stratus architectures? -djm
  10121. + echo hppa1.1-stratus-sysv4
  10122. + exit ;;
  10123. + *:*:*:FTX*)
  10124. + # From seanf@swdc.stratus.com.
  10125. + echo i860-stratus-sysv4
  10126. + exit ;;
  10127. + i*86:VOS:*:*)
  10128. + # From Paul.Green@stratus.com.
  10129. + echo ${UNAME_MACHINE}-stratus-vos
  10130. + exit ;;
  10131. + *:VOS:*:*)
  10132. + # From Paul.Green@stratus.com.
  10133. + echo hppa1.1-stratus-vos
  10134. + exit ;;
  10135. + mc68*:A/UX:*:*)
  10136. + echo m68k-apple-aux${UNAME_RELEASE}
  10137. + exit ;;
  10138. + news*:NEWS-OS:6*:*)
  10139. + echo mips-sony-newsos6
  10140. + exit ;;
  10141. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  10142. + if [ -d /usr/nec ]; then
  10143. + echo mips-nec-sysv${UNAME_RELEASE}
  10144. + else
  10145. + echo mips-unknown-sysv${UNAME_RELEASE}
  10146. + fi
  10147. + exit ;;
  10148. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  10149. + echo powerpc-be-beos
  10150. + exit ;;
  10151. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  10152. + echo powerpc-apple-beos
  10153. + exit ;;
  10154. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  10155. + echo i586-pc-beos
  10156. + exit ;;
  10157. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  10158. + echo i586-pc-haiku
  10159. + exit ;;
  10160. + SX-4:SUPER-UX:*:*)
  10161. + echo sx4-nec-superux${UNAME_RELEASE}
  10162. + exit ;;
  10163. + SX-5:SUPER-UX:*:*)
  10164. + echo sx5-nec-superux${UNAME_RELEASE}
  10165. + exit ;;
  10166. + SX-6:SUPER-UX:*:*)
  10167. + echo sx6-nec-superux${UNAME_RELEASE}
  10168. + exit ;;
  10169. + SX-7:SUPER-UX:*:*)
  10170. + echo sx7-nec-superux${UNAME_RELEASE}
  10171. + exit ;;
  10172. + SX-8:SUPER-UX:*:*)
  10173. + echo sx8-nec-superux${UNAME_RELEASE}
  10174. + exit ;;
  10175. + SX-8R:SUPER-UX:*:*)
  10176. + echo sx8r-nec-superux${UNAME_RELEASE}
  10177. + exit ;;
  10178. + Power*:Rhapsody:*:*)
  10179. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  10180. + exit ;;
  10181. + *:Rhapsody:*:*)
  10182. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  10183. + exit ;;
  10184. + *:Darwin:*:*)
  10185. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  10186. + case $UNAME_PROCESSOR in
  10187. + unknown) UNAME_PROCESSOR=powerpc ;;
  10188. + esac
  10189. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  10190. + exit ;;
  10191. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  10192. + UNAME_PROCESSOR=`uname -p`
  10193. + if test "$UNAME_PROCESSOR" = "x86"; then
  10194. + UNAME_PROCESSOR=i386
  10195. + UNAME_MACHINE=pc
  10196. + fi
  10197. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  10198. + exit ;;
  10199. + *:QNX:*:4*)
  10200. + echo i386-pc-qnx
  10201. + exit ;;
  10202. + NSE-?:NONSTOP_KERNEL:*:*)
  10203. + echo nse-tandem-nsk${UNAME_RELEASE}
  10204. + exit ;;
  10205. + NSR-?:NONSTOP_KERNEL:*:*)
  10206. + echo nsr-tandem-nsk${UNAME_RELEASE}
  10207. + exit ;;
  10208. + *:NonStop-UX:*:*)
  10209. + echo mips-compaq-nonstopux
  10210. + exit ;;
  10211. + BS2000:POSIX*:*:*)
  10212. + echo bs2000-siemens-sysv
  10213. + exit ;;
  10214. + DS/*:UNIX_System_V:*:*)
  10215. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  10216. + exit ;;
  10217. + *:Plan9:*:*)
  10218. + # "uname -m" is not consistent, so use $cputype instead. 386
  10219. + # is converted to i386 for consistency with other x86
  10220. + # operating systems.
  10221. + if test "$cputype" = "386"; then
  10222. + UNAME_MACHINE=i386
  10223. + else
  10224. + UNAME_MACHINE="$cputype"
  10225. + fi
  10226. + echo ${UNAME_MACHINE}-unknown-plan9
  10227. + exit ;;
  10228. + *:TOPS-10:*:*)
  10229. + echo pdp10-unknown-tops10
  10230. + exit ;;
  10231. + *:TENEX:*:*)
  10232. + echo pdp10-unknown-tenex
  10233. + exit ;;
  10234. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  10235. + echo pdp10-dec-tops20
  10236. + exit ;;
  10237. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  10238. + echo pdp10-xkl-tops20
  10239. + exit ;;
  10240. + *:TOPS-20:*:*)
  10241. + echo pdp10-unknown-tops20
  10242. + exit ;;
  10243. + *:ITS:*:*)
  10244. + echo pdp10-unknown-its
  10245. + exit ;;
  10246. + SEI:*:*:SEIUX)
  10247. + echo mips-sei-seiux${UNAME_RELEASE}
  10248. + exit ;;
  10249. + *:DragonFly:*:*)
  10250. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  10251. + exit ;;
  10252. + *:*VMS:*:*)
  10253. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  10254. + case "${UNAME_MACHINE}" in
  10255. + A*) echo alpha-dec-vms ; exit ;;
  10256. + I*) echo ia64-dec-vms ; exit ;;
  10257. + V*) echo vax-dec-vms ; exit ;;
  10258. + esac ;;
  10259. + *:XENIX:*:SysV)
  10260. + echo i386-pc-xenix
  10261. + exit ;;
  10262. + i*86:skyos:*:*)
  10263. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  10264. + exit ;;
  10265. + i*86:rdos:*:*)
  10266. + echo ${UNAME_MACHINE}-pc-rdos
  10267. + exit ;;
  10268. + i*86:AROS:*:*)
  10269. + echo ${UNAME_MACHINE}-pc-aros
  10270. + exit ;;
  10271. +esac
  10272. +
  10273. +#echo '(No uname command or uname output not recognized.)' 1>&2
  10274. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  10275. +
  10276. +eval $set_cc_for_build
  10277. +cat >$dummy.c <<EOF
  10278. +#ifdef _SEQUENT_
  10279. +# include <sys/types.h>
  10280. +# include <sys/utsname.h>
  10281. +#endif
  10282. +main ()
  10283. +{
  10284. +#if defined (sony)
  10285. +#if defined (MIPSEB)
  10286. + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  10287. + I don't know.... */
  10288. + printf ("mips-sony-bsd\n"); exit (0);
  10289. +#else
  10290. +#include <sys/param.h>
  10291. + printf ("m68k-sony-newsos%s\n",
  10292. +#ifdef NEWSOS4
  10293. + "4"
  10294. +#else
  10295. + ""
  10296. +#endif
  10297. + ); exit (0);
  10298. +#endif
  10299. +#endif
  10300. +
  10301. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  10302. + printf ("arm-acorn-riscix\n"); exit (0);
  10303. +#endif
  10304. +
  10305. +#if defined (hp300) && !defined (hpux)
  10306. + printf ("m68k-hp-bsd\n"); exit (0);
  10307. +#endif
  10308. +
  10309. +#if defined (NeXT)
  10310. +#if !defined (__ARCHITECTURE__)
  10311. +#define __ARCHITECTURE__ "m68k"
  10312. +#endif
  10313. + int version;
  10314. + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  10315. + if (version < 4)
  10316. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  10317. + else
  10318. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  10319. + exit (0);
  10320. +#endif
  10321. +
  10322. +#if defined (MULTIMAX) || defined (n16)
  10323. +#if defined (UMAXV)
  10324. + printf ("ns32k-encore-sysv\n"); exit (0);
  10325. +#else
  10326. +#if defined (CMU)
  10327. + printf ("ns32k-encore-mach\n"); exit (0);
  10328. +#else
  10329. + printf ("ns32k-encore-bsd\n"); exit (0);
  10330. +#endif
  10331. +#endif
  10332. +#endif
  10333. +
  10334. +#if defined (__386BSD__)
  10335. + printf ("i386-pc-bsd\n"); exit (0);
  10336. +#endif
  10337. +
  10338. +#if defined (sequent)
  10339. +#if defined (i386)
  10340. + printf ("i386-sequent-dynix\n"); exit (0);
  10341. +#endif
  10342. +#if defined (ns32000)
  10343. + printf ("ns32k-sequent-dynix\n"); exit (0);
  10344. +#endif
  10345. +#endif
  10346. +
  10347. +#if defined (_SEQUENT_)
  10348. + struct utsname un;
  10349. +
  10350. + uname(&un);
  10351. +
  10352. + if (strncmp(un.version, "V2", 2) == 0) {
  10353. + printf ("i386-sequent-ptx2\n"); exit (0);
  10354. + }
  10355. + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  10356. + printf ("i386-sequent-ptx1\n"); exit (0);
  10357. + }
  10358. + printf ("i386-sequent-ptx\n"); exit (0);
  10359. +
  10360. +#endif
  10361. +
  10362. +#if defined (vax)
  10363. +# if !defined (ultrix)
  10364. +# include <sys/param.h>
  10365. +# if defined (BSD)
  10366. +# if BSD == 43
  10367. + printf ("vax-dec-bsd4.3\n"); exit (0);
  10368. +# else
  10369. +# if BSD == 199006
  10370. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  10371. +# else
  10372. + printf ("vax-dec-bsd\n"); exit (0);
  10373. +# endif
  10374. +# endif
  10375. +# else
  10376. + printf ("vax-dec-bsd\n"); exit (0);
  10377. +# endif
  10378. +# else
  10379. + printf ("vax-dec-ultrix\n"); exit (0);
  10380. +# endif
  10381. +#endif
  10382. +
  10383. +#if defined (alliant) && defined (i860)
  10384. + printf ("i860-alliant-bsd\n"); exit (0);
  10385. +#endif
  10386. +
  10387. + exit (1);
  10388. +}
  10389. +EOF
  10390. +
  10391. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  10392. + { echo "$SYSTEM_NAME"; exit; }
  10393. +
  10394. +# Apollos put the system type in the environment.
  10395. +
  10396. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  10397. +
  10398. +# Convex versions that predate uname can use getsysinfo(1)
  10399. +
  10400. +if [ -x /usr/convex/getsysinfo ]
  10401. +then
  10402. + case `getsysinfo -f cpu_type` in
  10403. + c1*)
  10404. + echo c1-convex-bsd
  10405. + exit ;;
  10406. + c2*)
  10407. + if getsysinfo -f scalar_acc
  10408. + then echo c32-convex-bsd
  10409. + else echo c2-convex-bsd
  10410. + fi
  10411. + exit ;;
  10412. + c34*)
  10413. + echo c34-convex-bsd
  10414. + exit ;;
  10415. + c38*)
  10416. + echo c38-convex-bsd
  10417. + exit ;;
  10418. + c4*)
  10419. + echo c4-convex-bsd
  10420. + exit ;;
  10421. + esac
  10422. +fi
  10423. +
  10424. +cat >&2 <<EOF
  10425. +$0: unable to guess system type
  10426. +
  10427. +This script, last modified $timestamp, has failed to recognize
  10428. +the operating system you are using. It is advised that you
  10429. +download the most up to date version of the config scripts from
  10430. +
  10431. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  10432. +and
  10433. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  10434. +
  10435. +If the version you run ($0) is already up to date, please
  10436. +send the following data and any information you think might be
  10437. +pertinent to <config-patches@gnu.org> in order to provide the needed
  10438. +information to handle your system.
  10439. +
  10440. +config.guess timestamp = $timestamp
  10441. +
  10442. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  10443. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  10444. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  10445. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  10446. +
  10447. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  10448. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  10449. +
  10450. +hostinfo = `(hostinfo) 2>/dev/null`
  10451. +/bin/universe = `(/bin/universe) 2>/dev/null`
  10452. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  10453. +/bin/arch = `(/bin/arch) 2>/dev/null`
  10454. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  10455. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  10456. +
  10457. +UNAME_MACHINE = ${UNAME_MACHINE}
  10458. +UNAME_RELEASE = ${UNAME_RELEASE}
  10459. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  10460. +UNAME_VERSION = ${UNAME_VERSION}
  10461. +EOF
  10462. +
  10463. +exit 1
  10464. +
  10465. +# Local variables:
  10466. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  10467. +# time-stamp-start: "timestamp='"
  10468. +# time-stamp-format: "%:y-%02m-%02d"
  10469. +# time-stamp-end: "'"
  10470. +# End:
  10471. diff -Nur libvorbisidec-1.0.2+svn15687.orig/config.h.in libvorbisidec-1.0.2+svn15687/config.h.in
  10472. --- libvorbisidec-1.0.2+svn15687.orig/config.h.in 1970-01-01 01:00:00.000000000 +0100
  10473. +++ libvorbisidec-1.0.2+svn15687/config.h.in 2010-02-18 19:56:31.396866630 +0100
  10474. @@ -0,0 +1,85 @@
  10475. +/* config.h.in. Generated from configure.in by autoheader. */
  10476. +
  10477. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  10478. + systems. This function is required for `alloca.c' support on those systems.
  10479. + */
  10480. +#undef CRAY_STACKSEG_END
  10481. +
  10482. +/* Define to 1 if using `alloca.c'. */
  10483. +#undef C_ALLOCA
  10484. +
  10485. +/* Define to 1 if you have `alloca', as a function or macro. */
  10486. +#undef HAVE_ALLOCA
  10487. +
  10488. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  10489. + */
  10490. +#undef HAVE_ALLOCA_H
  10491. +
  10492. +/* Define to 1 if you have the <dlfcn.h> header file. */
  10493. +#undef HAVE_DLFCN_H
  10494. +
  10495. +/* Define to 1 if you have the <inttypes.h> header file. */
  10496. +#undef HAVE_INTTYPES_H
  10497. +
  10498. +/* Define to 1 if you have the <memory.h> header file. */
  10499. +#undef HAVE_MEMORY_H
  10500. +
  10501. +/* Define to 1 if you have the <stdint.h> header file. */
  10502. +#undef HAVE_STDINT_H
  10503. +
  10504. +/* Define to 1 if you have the <stdlib.h> header file. */
  10505. +#undef HAVE_STDLIB_H
  10506. +
  10507. +/* Define to 1 if you have the <strings.h> header file. */
  10508. +#undef HAVE_STRINGS_H
  10509. +
  10510. +/* Define to 1 if you have the <string.h> header file. */
  10511. +#undef HAVE_STRING_H
  10512. +
  10513. +/* Define to 1 if you have the <sys/stat.h> header file. */
  10514. +#undef HAVE_SYS_STAT_H
  10515. +
  10516. +/* Define to 1 if you have the <sys/types.h> header file. */
  10517. +#undef HAVE_SYS_TYPES_H
  10518. +
  10519. +/* Define to 1 if you have the <unistd.h> header file. */
  10520. +#undef HAVE_UNISTD_H
  10521. +
  10522. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  10523. + */
  10524. +#undef LT_OBJDIR
  10525. +
  10526. +/* Name of package */
  10527. +#undef PACKAGE
  10528. +
  10529. +/* Define to the address where bug reports for this package should be sent. */
  10530. +#undef PACKAGE_BUGREPORT
  10531. +
  10532. +/* Define to the full name of this package. */
  10533. +#undef PACKAGE_NAME
  10534. +
  10535. +/* Define to the full name and version of this package. */
  10536. +#undef PACKAGE_STRING
  10537. +
  10538. +/* Define to the one symbol short name of this package. */
  10539. +#undef PACKAGE_TARNAME
  10540. +
  10541. +/* Define to the home page for this package. */
  10542. +#undef PACKAGE_URL
  10543. +
  10544. +/* Define to the version of this package. */
  10545. +#undef PACKAGE_VERSION
  10546. +
  10547. +/* If using the C implementation of alloca, define if you know the
  10548. + direction of stack growth for your system; otherwise it will be
  10549. + automatically deduced at runtime.
  10550. + STACK_DIRECTION > 0 => grows toward higher addresses
  10551. + STACK_DIRECTION < 0 => grows toward lower addresses
  10552. + STACK_DIRECTION = 0 => direction of growth unknown */
  10553. +#undef STACK_DIRECTION
  10554. +
  10555. +/* Define to 1 if you have the ANSI C header files. */
  10556. +#undef STDC_HEADERS
  10557. +
  10558. +/* Version number of package */
  10559. +#undef VERSION
  10560. diff -Nur libvorbisidec-1.0.2+svn15687.orig/config.sub libvorbisidec-1.0.2+svn15687/config.sub
  10561. --- libvorbisidec-1.0.2+svn15687.orig/config.sub 1970-01-01 01:00:00.000000000 +0100
  10562. +++ libvorbisidec-1.0.2+svn15687/config.sub 2010-02-18 19:38:52.092856124 +0100
  10563. @@ -0,0 +1,1693 @@
  10564. +#! /bin/sh
  10565. +# Configuration validation subroutine script.
  10566. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  10567. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  10568. +# Free Software Foundation, Inc.
  10569. +
  10570. +timestamp='2009-06-11'
  10571. +
  10572. +# This file is (in principle) common to ALL GNU software.
  10573. +# The presence of a machine in this file suggests that SOME GNU software
  10574. +# can handle that machine. It does not imply ALL GNU software can.
  10575. +#
  10576. +# This file is free software; you can redistribute it and/or modify
  10577. +# it under the terms of the GNU General Public License as published by
  10578. +# the Free Software Foundation; either version 2 of the License, or
  10579. +# (at your option) any later version.
  10580. +#
  10581. +# This program is distributed in the hope that it will be useful,
  10582. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  10583. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10584. +# GNU General Public License for more details.
  10585. +#
  10586. +# You should have received a copy of the GNU General Public License
  10587. +# along with this program; if not, write to the Free Software
  10588. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  10589. +# 02110-1301, USA.
  10590. +#
  10591. +# As a special exception to the GNU General Public License, if you
  10592. +# distribute this file as part of a program that contains a
  10593. +# configuration script generated by Autoconf, you may include it under
  10594. +# the same distribution terms that you use for the rest of that program.
  10595. +
  10596. +
  10597. +# Please send patches to <config-patches@gnu.org>. Submit a context
  10598. +# diff and a properly formatted ChangeLog entry.
  10599. +#
  10600. +# Configuration subroutine to validate and canonicalize a configuration type.
  10601. +# Supply the specified configuration type as an argument.
  10602. +# If it is invalid, we print an error message on stderr and exit with code 1.
  10603. +# Otherwise, we print the canonical config type on stdout and succeed.
  10604. +
  10605. +# This file is supposed to be the same for all GNU packages
  10606. +# and recognize all the CPU types, system types and aliases
  10607. +# that are meaningful with *any* GNU software.
  10608. +# Each package is responsible for reporting which valid configurations
  10609. +# it does not support. The user should be able to distinguish
  10610. +# a failure to support a valid configuration from a meaningless
  10611. +# configuration.
  10612. +
  10613. +# The goal of this file is to map all the various variations of a given
  10614. +# machine specification into a single specification in the form:
  10615. +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  10616. +# or in some cases, the newer four-part form:
  10617. +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  10618. +# It is wrong to echo any other type of specification.
  10619. +
  10620. +me=`echo "$0" | sed -e 's,.*/,,'`
  10621. +
  10622. +usage="\
  10623. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  10624. + $0 [OPTION] ALIAS
  10625. +
  10626. +Canonicalize a configuration name.
  10627. +
  10628. +Operation modes:
  10629. + -h, --help print this help, then exit
  10630. + -t, --time-stamp print date of last modification, then exit
  10631. + -v, --version print version number, then exit
  10632. +
  10633. +Report bugs and patches to <config-patches@gnu.org>."
  10634. +
  10635. +version="\
  10636. +GNU config.sub ($timestamp)
  10637. +
  10638. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  10639. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  10640. +
  10641. +This is free software; see the source for copying conditions. There is NO
  10642. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  10643. +
  10644. +help="
  10645. +Try \`$me --help' for more information."
  10646. +
  10647. +# Parse command line
  10648. +while test $# -gt 0 ; do
  10649. + case $1 in
  10650. + --time-stamp | --time* | -t )
  10651. + echo "$timestamp" ; exit ;;
  10652. + --version | -v )
  10653. + echo "$version" ; exit ;;
  10654. + --help | --h* | -h )
  10655. + echo "$usage"; exit ;;
  10656. + -- ) # Stop option processing
  10657. + shift; break ;;
  10658. + - ) # Use stdin as input.
  10659. + break ;;
  10660. + -* )
  10661. + echo "$me: invalid option $1$help"
  10662. + exit 1 ;;
  10663. +
  10664. + *local*)
  10665. + # First pass through any local machine types.
  10666. + echo $1
  10667. + exit ;;
  10668. +
  10669. + * )
  10670. + break ;;
  10671. + esac
  10672. +done
  10673. +
  10674. +case $# in
  10675. + 0) echo "$me: missing argument$help" >&2
  10676. + exit 1;;
  10677. + 1) ;;
  10678. + *) echo "$me: too many arguments$help" >&2
  10679. + exit 1;;
  10680. +esac
  10681. +
  10682. +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  10683. +# Here we must recognize all the valid KERNEL-OS combinations.
  10684. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  10685. +case $maybe_os in
  10686. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  10687. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  10688. + kopensolaris*-gnu* | \
  10689. + storm-chaos* | os2-emx* | rtmk-nova*)
  10690. + os=-$maybe_os
  10691. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  10692. + ;;
  10693. + *)
  10694. + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  10695. + if [ $basic_machine != $1 ]
  10696. + then os=`echo $1 | sed 's/.*-/-/'`
  10697. + else os=; fi
  10698. + ;;
  10699. +esac
  10700. +
  10701. +### Let's recognize common machines as not being operating systems so
  10702. +### that things like config.sub decstation-3100 work. We also
  10703. +### recognize some manufacturers as not being operating systems, so we
  10704. +### can provide default operating systems below.
  10705. +case $os in
  10706. + -sun*os*)
  10707. + # Prevent following clause from handling this invalid input.
  10708. + ;;
  10709. + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  10710. + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  10711. + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  10712. + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  10713. + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  10714. + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  10715. + -apple | -axis | -knuth | -cray)
  10716. + os=
  10717. + basic_machine=$1
  10718. + ;;
  10719. + -bluegene*)
  10720. + os=-cnk
  10721. + ;;
  10722. + -sim | -cisco | -oki | -wec | -winbond)
  10723. + os=
  10724. + basic_machine=$1
  10725. + ;;
  10726. + -scout)
  10727. + ;;
  10728. + -wrs)
  10729. + os=-vxworks
  10730. + basic_machine=$1
  10731. + ;;
  10732. + -chorusos*)
  10733. + os=-chorusos
  10734. + basic_machine=$1
  10735. + ;;
  10736. + -chorusrdb)
  10737. + os=-chorusrdb
  10738. + basic_machine=$1
  10739. + ;;
  10740. + -hiux*)
  10741. + os=-hiuxwe2
  10742. + ;;
  10743. + -sco6)
  10744. + os=-sco5v6
  10745. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10746. + ;;
  10747. + -sco5)
  10748. + os=-sco3.2v5
  10749. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10750. + ;;
  10751. + -sco4)
  10752. + os=-sco3.2v4
  10753. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10754. + ;;
  10755. + -sco3.2.[4-9]*)
  10756. + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  10757. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10758. + ;;
  10759. + -sco3.2v[4-9]*)
  10760. + # Don't forget version if it is 3.2v4 or newer.
  10761. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10762. + ;;
  10763. + -sco5v6*)
  10764. + # Don't forget version if it is 3.2v4 or newer.
  10765. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10766. + ;;
  10767. + -sco*)
  10768. + os=-sco3.2v2
  10769. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10770. + ;;
  10771. + -udk*)
  10772. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10773. + ;;
  10774. + -isc)
  10775. + os=-isc2.2
  10776. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10777. + ;;
  10778. + -clix*)
  10779. + basic_machine=clipper-intergraph
  10780. + ;;
  10781. + -isc*)
  10782. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  10783. + ;;
  10784. + -lynx*)
  10785. + os=-lynxos
  10786. + ;;
  10787. + -ptx*)
  10788. + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  10789. + ;;
  10790. + -windowsnt*)
  10791. + os=`echo $os | sed -e 's/windowsnt/winnt/'`
  10792. + ;;
  10793. + -psos*)
  10794. + os=-psos
  10795. + ;;
  10796. + -mint | -mint[0-9]*)
  10797. + basic_machine=m68k-atari
  10798. + os=-mint
  10799. + ;;
  10800. +esac
  10801. +
  10802. +# Decode aliases for certain CPU-COMPANY combinations.
  10803. +case $basic_machine in
  10804. + # Recognize the basic CPU types without company name.
  10805. + # Some are omitted here because they have special meanings below.
  10806. + 1750a | 580 \
  10807. + | a29k \
  10808. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  10809. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  10810. + | am33_2.0 \
  10811. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  10812. + | bfin \
  10813. + | c4x | clipper \
  10814. + | d10v | d30v | dlx | dsp16xx \
  10815. + | fido | fr30 | frv \
  10816. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  10817. + | i370 | i860 | i960 | ia64 \
  10818. + | ip2k | iq2000 \
  10819. + | lm32 \
  10820. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  10821. + | maxq | mb | microblaze | mcore | mep | metag \
  10822. + | mips | mipsbe | mipseb | mipsel | mipsle \
  10823. + | mips16 \
  10824. + | mips64 | mips64el \
  10825. + | mips64octeon | mips64octeonel \
  10826. + | mips64orion | mips64orionel \
  10827. + | mips64r5900 | mips64r5900el \
  10828. + | mips64vr | mips64vrel \
  10829. + | mips64vr4100 | mips64vr4100el \
  10830. + | mips64vr4300 | mips64vr4300el \
  10831. + | mips64vr5000 | mips64vr5000el \
  10832. + | mips64vr5900 | mips64vr5900el \
  10833. + | mipsisa32 | mipsisa32el \
  10834. + | mipsisa32r2 | mipsisa32r2el \
  10835. + | mipsisa64 | mipsisa64el \
  10836. + | mipsisa64r2 | mipsisa64r2el \
  10837. + | mipsisa64sb1 | mipsisa64sb1el \
  10838. + | mipsisa64sr71k | mipsisa64sr71kel \
  10839. + | mipstx39 | mipstx39el \
  10840. + | mn10200 | mn10300 \
  10841. + | moxie \
  10842. + | mt \
  10843. + | msp430 \
  10844. + | nios | nios2 \
  10845. + | ns16k | ns32k \
  10846. + | or32 \
  10847. + | pdp10 | pdp11 | pj | pjl \
  10848. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  10849. + | pyramid \
  10850. + | score \
  10851. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  10852. + | sh64 | sh64le \
  10853. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  10854. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  10855. + | spu | strongarm \
  10856. + | tahoe | thumb | tic4x | tic80 | tron \
  10857. + | v850 | v850e \
  10858. + | we32k \
  10859. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  10860. + | z8k | z80)
  10861. + basic_machine=$basic_machine-unknown
  10862. + ;;
  10863. + m6811 | m68hc11 | m6812 | m68hc12)
  10864. + # Motorola 68HC11/12.
  10865. + basic_machine=$basic_machine-unknown
  10866. + os=-none
  10867. + ;;
  10868. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  10869. + ;;
  10870. + ms1)
  10871. + basic_machine=mt-unknown
  10872. + ;;
  10873. +
  10874. + # We use `pc' rather than `unknown'
  10875. + # because (1) that's what they normally are, and
  10876. + # (2) the word "unknown" tends to confuse beginning users.
  10877. + i*86 | x86_64)
  10878. + basic_machine=$basic_machine-pc
  10879. + ;;
  10880. + # Object if more than one company name word.
  10881. + *-*-*)
  10882. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  10883. + exit 1
  10884. + ;;
  10885. + # Recognize the basic CPU types with company name.
  10886. + 580-* \
  10887. + | a29k-* \
  10888. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  10889. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  10890. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  10891. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  10892. + | avr-* | avr32-* \
  10893. + | bfin-* | bs2000-* \
  10894. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  10895. + | clipper-* | craynv-* | cydra-* \
  10896. + | d10v-* | d30v-* | dlx-* \
  10897. + | elxsi-* \
  10898. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  10899. + | h8300-* | h8500-* \
  10900. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  10901. + | i*86-* | i860-* | i960-* | ia64-* \
  10902. + | ip2k-* | iq2000-* \
  10903. + | lm32-* \
  10904. + | m32c-* | m32r-* | m32rle-* \
  10905. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  10906. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  10907. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  10908. + | mips16-* \
  10909. + | mips64-* | mips64el-* \
  10910. + | mips64octeon-* | mips64octeonel-* \
  10911. + | mips64orion-* | mips64orionel-* \
  10912. + | mips64r5900-* | mips64r5900el-* \
  10913. + | mips64vr-* | mips64vrel-* \
  10914. + | mips64vr4100-* | mips64vr4100el-* \
  10915. + | mips64vr4300-* | mips64vr4300el-* \
  10916. + | mips64vr5000-* | mips64vr5000el-* \
  10917. + | mips64vr5900-* | mips64vr5900el-* \
  10918. + | mipsisa32-* | mipsisa32el-* \
  10919. + | mipsisa32r2-* | mipsisa32r2el-* \
  10920. + | mipsisa64-* | mipsisa64el-* \
  10921. + | mipsisa64r2-* | mipsisa64r2el-* \
  10922. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  10923. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  10924. + | mipstx39-* | mipstx39el-* \
  10925. + | mmix-* \
  10926. + | mt-* \
  10927. + | msp430-* \
  10928. + | nios-* | nios2-* \
  10929. + | none-* | np1-* | ns16k-* | ns32k-* \
  10930. + | orion-* \
  10931. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  10932. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  10933. + | pyramid-* \
  10934. + | romp-* | rs6000-* \
  10935. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  10936. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  10937. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  10938. + | sparclite-* \
  10939. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  10940. + | tahoe-* | thumb-* \
  10941. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  10942. + | tron-* \
  10943. + | v850-* | v850e-* | vax-* \
  10944. + | we32k-* \
  10945. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  10946. + | xstormy16-* | xtensa*-* \
  10947. + | ymp-* \
  10948. + | z8k-* | z80-*)
  10949. + ;;
  10950. + # Recognize the basic CPU types without company name, with glob match.
  10951. + xtensa*)
  10952. + basic_machine=$basic_machine-unknown
  10953. + ;;
  10954. + # Recognize the various machine names and aliases which stand
  10955. + # for a CPU type and a company and sometimes even an OS.
  10956. + 386bsd)
  10957. + basic_machine=i386-unknown
  10958. + os=-bsd
  10959. + ;;
  10960. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  10961. + basic_machine=m68000-att
  10962. + ;;
  10963. + 3b*)
  10964. + basic_machine=we32k-att
  10965. + ;;
  10966. + a29khif)
  10967. + basic_machine=a29k-amd
  10968. + os=-udi
  10969. + ;;
  10970. + abacus)
  10971. + basic_machine=abacus-unknown
  10972. + ;;
  10973. + adobe68k)
  10974. + basic_machine=m68010-adobe
  10975. + os=-scout
  10976. + ;;
  10977. + alliant | fx80)
  10978. + basic_machine=fx80-alliant
  10979. + ;;
  10980. + altos | altos3068)
  10981. + basic_machine=m68k-altos
  10982. + ;;
  10983. + am29k)
  10984. + basic_machine=a29k-none
  10985. + os=-bsd
  10986. + ;;
  10987. + amd64)
  10988. + basic_machine=x86_64-pc
  10989. + ;;
  10990. + amd64-*)
  10991. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  10992. + ;;
  10993. + amdahl)
  10994. + basic_machine=580-amdahl
  10995. + os=-sysv
  10996. + ;;
  10997. + amiga | amiga-*)
  10998. + basic_machine=m68k-unknown
  10999. + ;;
  11000. + amigaos | amigados)
  11001. + basic_machine=m68k-unknown
  11002. + os=-amigaos
  11003. + ;;
  11004. + amigaunix | amix)
  11005. + basic_machine=m68k-unknown
  11006. + os=-sysv4
  11007. + ;;
  11008. + apollo68)
  11009. + basic_machine=m68k-apollo
  11010. + os=-sysv
  11011. + ;;
  11012. + apollo68bsd)
  11013. + basic_machine=m68k-apollo
  11014. + os=-bsd
  11015. + ;;
  11016. + aros)
  11017. + basic_machine=i386-pc
  11018. + os=-aros
  11019. + ;;
  11020. + aux)
  11021. + basic_machine=m68k-apple
  11022. + os=-aux
  11023. + ;;
  11024. + balance)
  11025. + basic_machine=ns32k-sequent
  11026. + os=-dynix
  11027. + ;;
  11028. + blackfin)
  11029. + basic_machine=bfin-unknown
  11030. + os=-linux
  11031. + ;;
  11032. + blackfin-*)
  11033. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  11034. + os=-linux
  11035. + ;;
  11036. + bluegene*)
  11037. + basic_machine=powerpc-ibm
  11038. + os=-cnk
  11039. + ;;
  11040. + c90)
  11041. + basic_machine=c90-cray
  11042. + os=-unicos
  11043. + ;;
  11044. + cegcc)
  11045. + basic_machine=arm-unknown
  11046. + os=-cegcc
  11047. + ;;
  11048. + convex-c1)
  11049. + basic_machine=c1-convex
  11050. + os=-bsd
  11051. + ;;
  11052. + convex-c2)
  11053. + basic_machine=c2-convex
  11054. + os=-bsd
  11055. + ;;
  11056. + convex-c32)
  11057. + basic_machine=c32-convex
  11058. + os=-bsd
  11059. + ;;
  11060. + convex-c34)
  11061. + basic_machine=c34-convex
  11062. + os=-bsd
  11063. + ;;
  11064. + convex-c38)
  11065. + basic_machine=c38-convex
  11066. + os=-bsd
  11067. + ;;
  11068. + cray | j90)
  11069. + basic_machine=j90-cray
  11070. + os=-unicos
  11071. + ;;
  11072. + craynv)
  11073. + basic_machine=craynv-cray
  11074. + os=-unicosmp
  11075. + ;;
  11076. + cr16)
  11077. + basic_machine=cr16-unknown
  11078. + os=-elf
  11079. + ;;
  11080. + crds | unos)
  11081. + basic_machine=m68k-crds
  11082. + ;;
  11083. + crisv32 | crisv32-* | etraxfs*)
  11084. + basic_machine=crisv32-axis
  11085. + ;;
  11086. + cris | cris-* | etrax*)
  11087. + basic_machine=cris-axis
  11088. + ;;
  11089. + crx)
  11090. + basic_machine=crx-unknown
  11091. + os=-elf
  11092. + ;;
  11093. + da30 | da30-*)
  11094. + basic_machine=m68k-da30
  11095. + ;;
  11096. + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  11097. + basic_machine=mips-dec
  11098. + ;;
  11099. + decsystem10* | dec10*)
  11100. + basic_machine=pdp10-dec
  11101. + os=-tops10
  11102. + ;;
  11103. + decsystem20* | dec20*)
  11104. + basic_machine=pdp10-dec
  11105. + os=-tops20
  11106. + ;;
  11107. + delta | 3300 | motorola-3300 | motorola-delta \
  11108. + | 3300-motorola | delta-motorola)
  11109. + basic_machine=m68k-motorola
  11110. + ;;
  11111. + delta88)
  11112. + basic_machine=m88k-motorola
  11113. + os=-sysv3
  11114. + ;;
  11115. + dicos)
  11116. + basic_machine=i686-pc
  11117. + os=-dicos
  11118. + ;;
  11119. + djgpp)
  11120. + basic_machine=i586-pc
  11121. + os=-msdosdjgpp
  11122. + ;;
  11123. + dpx20 | dpx20-*)
  11124. + basic_machine=rs6000-bull
  11125. + os=-bosx
  11126. + ;;
  11127. + dpx2* | dpx2*-bull)
  11128. + basic_machine=m68k-bull
  11129. + os=-sysv3
  11130. + ;;
  11131. + ebmon29k)
  11132. + basic_machine=a29k-amd
  11133. + os=-ebmon
  11134. + ;;
  11135. + elxsi)
  11136. + basic_machine=elxsi-elxsi
  11137. + os=-bsd
  11138. + ;;
  11139. + encore | umax | mmax)
  11140. + basic_machine=ns32k-encore
  11141. + ;;
  11142. + es1800 | OSE68k | ose68k | ose | OSE)
  11143. + basic_machine=m68k-ericsson
  11144. + os=-ose
  11145. + ;;
  11146. + fx2800)
  11147. + basic_machine=i860-alliant
  11148. + ;;
  11149. + genix)
  11150. + basic_machine=ns32k-ns
  11151. + ;;
  11152. + gmicro)
  11153. + basic_machine=tron-gmicro
  11154. + os=-sysv
  11155. + ;;
  11156. + go32)
  11157. + basic_machine=i386-pc
  11158. + os=-go32
  11159. + ;;
  11160. + h3050r* | hiux*)
  11161. + basic_machine=hppa1.1-hitachi
  11162. + os=-hiuxwe2
  11163. + ;;
  11164. + h8300hms)
  11165. + basic_machine=h8300-hitachi
  11166. + os=-hms
  11167. + ;;
  11168. + h8300xray)
  11169. + basic_machine=h8300-hitachi
  11170. + os=-xray
  11171. + ;;
  11172. + h8500hms)
  11173. + basic_machine=h8500-hitachi
  11174. + os=-hms
  11175. + ;;
  11176. + harris)
  11177. + basic_machine=m88k-harris
  11178. + os=-sysv3
  11179. + ;;
  11180. + hp300-*)
  11181. + basic_machine=m68k-hp
  11182. + ;;
  11183. + hp300bsd)
  11184. + basic_machine=m68k-hp
  11185. + os=-bsd
  11186. + ;;
  11187. + hp300hpux)
  11188. + basic_machine=m68k-hp
  11189. + os=-hpux
  11190. + ;;
  11191. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  11192. + basic_machine=hppa1.0-hp
  11193. + ;;
  11194. + hp9k2[0-9][0-9] | hp9k31[0-9])
  11195. + basic_machine=m68000-hp
  11196. + ;;
  11197. + hp9k3[2-9][0-9])
  11198. + basic_machine=m68k-hp
  11199. + ;;
  11200. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  11201. + basic_machine=hppa1.0-hp
  11202. + ;;
  11203. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  11204. + basic_machine=hppa1.1-hp
  11205. + ;;
  11206. + hp9k78[0-9] | hp78[0-9])
  11207. + # FIXME: really hppa2.0-hp
  11208. + basic_machine=hppa1.1-hp
  11209. + ;;
  11210. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  11211. + # FIXME: really hppa2.0-hp
  11212. + basic_machine=hppa1.1-hp
  11213. + ;;
  11214. + hp9k8[0-9][13679] | hp8[0-9][13679])
  11215. + basic_machine=hppa1.1-hp
  11216. + ;;
  11217. + hp9k8[0-9][0-9] | hp8[0-9][0-9])
  11218. + basic_machine=hppa1.0-hp
  11219. + ;;
  11220. + hppa-next)
  11221. + os=-nextstep3
  11222. + ;;
  11223. + hppaosf)
  11224. + basic_machine=hppa1.1-hp
  11225. + os=-osf
  11226. + ;;
  11227. + hppro)
  11228. + basic_machine=hppa1.1-hp
  11229. + os=-proelf
  11230. + ;;
  11231. + i370-ibm* | ibm*)
  11232. + basic_machine=i370-ibm
  11233. + ;;
  11234. +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  11235. + i*86v32)
  11236. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  11237. + os=-sysv32
  11238. + ;;
  11239. + i*86v4*)
  11240. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  11241. + os=-sysv4
  11242. + ;;
  11243. + i*86v)
  11244. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  11245. + os=-sysv
  11246. + ;;
  11247. + i*86sol2)
  11248. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  11249. + os=-solaris2
  11250. + ;;
  11251. + i386mach)
  11252. + basic_machine=i386-mach
  11253. + os=-mach
  11254. + ;;
  11255. + i386-vsta | vsta)
  11256. + basic_machine=i386-unknown
  11257. + os=-vsta
  11258. + ;;
  11259. + iris | iris4d)
  11260. + basic_machine=mips-sgi
  11261. + case $os in
  11262. + -irix*)
  11263. + ;;
  11264. + *)
  11265. + os=-irix4
  11266. + ;;
  11267. + esac
  11268. + ;;
  11269. + isi68 | isi)
  11270. + basic_machine=m68k-isi
  11271. + os=-sysv
  11272. + ;;
  11273. + m68knommu)
  11274. + basic_machine=m68k-unknown
  11275. + os=-linux
  11276. + ;;
  11277. + m68knommu-*)
  11278. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  11279. + os=-linux
  11280. + ;;
  11281. + m88k-omron*)
  11282. + basic_machine=m88k-omron
  11283. + ;;
  11284. + magnum | m3230)
  11285. + basic_machine=mips-mips
  11286. + os=-sysv
  11287. + ;;
  11288. + merlin)
  11289. + basic_machine=ns32k-utek
  11290. + os=-sysv
  11291. + ;;
  11292. + mingw32)
  11293. + basic_machine=i386-pc
  11294. + os=-mingw32
  11295. + ;;
  11296. + mingw32ce)
  11297. + basic_machine=arm-unknown
  11298. + os=-mingw32ce
  11299. + ;;
  11300. + miniframe)
  11301. + basic_machine=m68000-convergent
  11302. + ;;
  11303. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  11304. + basic_machine=m68k-atari
  11305. + os=-mint
  11306. + ;;
  11307. + mips3*-*)
  11308. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  11309. + ;;
  11310. + mips3*)
  11311. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  11312. + ;;
  11313. + monitor)
  11314. + basic_machine=m68k-rom68k
  11315. + os=-coff
  11316. + ;;
  11317. + morphos)
  11318. + basic_machine=powerpc-unknown
  11319. + os=-morphos
  11320. + ;;
  11321. + msdos)
  11322. + basic_machine=i386-pc
  11323. + os=-msdos
  11324. + ;;
  11325. + ms1-*)
  11326. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  11327. + ;;
  11328. + mvs)
  11329. + basic_machine=i370-ibm
  11330. + os=-mvs
  11331. + ;;
  11332. + ncr3000)
  11333. + basic_machine=i486-ncr
  11334. + os=-sysv4
  11335. + ;;
  11336. + netbsd386)
  11337. + basic_machine=i386-unknown
  11338. + os=-netbsd
  11339. + ;;
  11340. + netwinder)
  11341. + basic_machine=armv4l-rebel
  11342. + os=-linux
  11343. + ;;
  11344. + news | news700 | news800 | news900)
  11345. + basic_machine=m68k-sony
  11346. + os=-newsos
  11347. + ;;
  11348. + news1000)
  11349. + basic_machine=m68030-sony
  11350. + os=-newsos
  11351. + ;;
  11352. + news-3600 | risc-news)
  11353. + basic_machine=mips-sony
  11354. + os=-newsos
  11355. + ;;
  11356. + necv70)
  11357. + basic_machine=v70-nec
  11358. + os=-sysv
  11359. + ;;
  11360. + next | m*-next )
  11361. + basic_machine=m68k-next
  11362. + case $os in
  11363. + -nextstep* )
  11364. + ;;
  11365. + -ns2*)
  11366. + os=-nextstep2
  11367. + ;;
  11368. + *)
  11369. + os=-nextstep3
  11370. + ;;
  11371. + esac
  11372. + ;;
  11373. + nh3000)
  11374. + basic_machine=m68k-harris
  11375. + os=-cxux
  11376. + ;;
  11377. + nh[45]000)
  11378. + basic_machine=m88k-harris
  11379. + os=-cxux
  11380. + ;;
  11381. + nindy960)
  11382. + basic_machine=i960-intel
  11383. + os=-nindy
  11384. + ;;
  11385. + mon960)
  11386. + basic_machine=i960-intel
  11387. + os=-mon960
  11388. + ;;
  11389. + nonstopux)
  11390. + basic_machine=mips-compaq
  11391. + os=-nonstopux
  11392. + ;;
  11393. + np1)
  11394. + basic_machine=np1-gould
  11395. + ;;
  11396. + nsr-tandem)
  11397. + basic_machine=nsr-tandem
  11398. + ;;
  11399. + op50n-* | op60c-*)
  11400. + basic_machine=hppa1.1-oki
  11401. + os=-proelf
  11402. + ;;
  11403. + openrisc | openrisc-*)
  11404. + basic_machine=or32-unknown
  11405. + ;;
  11406. + os400)
  11407. + basic_machine=powerpc-ibm
  11408. + os=-os400
  11409. + ;;
  11410. + OSE68000 | ose68000)
  11411. + basic_machine=m68000-ericsson
  11412. + os=-ose
  11413. + ;;
  11414. + os68k)
  11415. + basic_machine=m68k-none
  11416. + os=-os68k
  11417. + ;;
  11418. + pa-hitachi)
  11419. + basic_machine=hppa1.1-hitachi
  11420. + os=-hiuxwe2
  11421. + ;;
  11422. + paragon)
  11423. + basic_machine=i860-intel
  11424. + os=-osf
  11425. + ;;
  11426. + parisc)
  11427. + basic_machine=hppa-unknown
  11428. + os=-linux
  11429. + ;;
  11430. + parisc-*)
  11431. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  11432. + os=-linux
  11433. + ;;
  11434. + pbd)
  11435. + basic_machine=sparc-tti
  11436. + ;;
  11437. + pbb)
  11438. + basic_machine=m68k-tti
  11439. + ;;
  11440. + pc532 | pc532-*)
  11441. + basic_machine=ns32k-pc532
  11442. + ;;
  11443. + pc98)
  11444. + basic_machine=i386-pc
  11445. + ;;
  11446. + pc98-*)
  11447. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  11448. + ;;
  11449. + pentium | p5 | k5 | k6 | nexgen | viac3)
  11450. + basic_machine=i586-pc
  11451. + ;;
  11452. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  11453. + basic_machine=i686-pc
  11454. + ;;
  11455. + pentiumii | pentium2 | pentiumiii | pentium3)
  11456. + basic_machine=i686-pc
  11457. + ;;
  11458. + pentium4)
  11459. + basic_machine=i786-pc
  11460. + ;;
  11461. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  11462. + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  11463. + ;;
  11464. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  11465. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  11466. + ;;
  11467. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  11468. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  11469. + ;;
  11470. + pentium4-*)
  11471. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  11472. + ;;
  11473. + pn)
  11474. + basic_machine=pn-gould
  11475. + ;;
  11476. + power) basic_machine=power-ibm
  11477. + ;;
  11478. + ppc) basic_machine=powerpc-unknown
  11479. + ;;
  11480. + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  11481. + ;;
  11482. + ppcle | powerpclittle | ppc-le | powerpc-little)
  11483. + basic_machine=powerpcle-unknown
  11484. + ;;
  11485. + ppcle-* | powerpclittle-*)
  11486. + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  11487. + ;;
  11488. + ppc64) basic_machine=powerpc64-unknown
  11489. + ;;
  11490. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  11491. + ;;
  11492. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  11493. + basic_machine=powerpc64le-unknown
  11494. + ;;
  11495. + ppc64le-* | powerpc64little-*)
  11496. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  11497. + ;;
  11498. + ps2)
  11499. + basic_machine=i386-ibm
  11500. + ;;
  11501. + pw32)
  11502. + basic_machine=i586-unknown
  11503. + os=-pw32
  11504. + ;;
  11505. + rdos)
  11506. + basic_machine=i386-pc
  11507. + os=-rdos
  11508. + ;;
  11509. + rom68k)
  11510. + basic_machine=m68k-rom68k
  11511. + os=-coff
  11512. + ;;
  11513. + rm[46]00)
  11514. + basic_machine=mips-siemens
  11515. + ;;
  11516. + rtpc | rtpc-*)
  11517. + basic_machine=romp-ibm
  11518. + ;;
  11519. + s390 | s390-*)
  11520. + basic_machine=s390-ibm
  11521. + ;;
  11522. + s390x | s390x-*)
  11523. + basic_machine=s390x-ibm
  11524. + ;;
  11525. + sa29200)
  11526. + basic_machine=a29k-amd
  11527. + os=-udi
  11528. + ;;
  11529. + sb1)
  11530. + basic_machine=mipsisa64sb1-unknown
  11531. + ;;
  11532. + sb1el)
  11533. + basic_machine=mipsisa64sb1el-unknown
  11534. + ;;
  11535. + sde)
  11536. + basic_machine=mipsisa32-sde
  11537. + os=-elf
  11538. + ;;
  11539. + sei)
  11540. + basic_machine=mips-sei
  11541. + os=-seiux
  11542. + ;;
  11543. + sequent)
  11544. + basic_machine=i386-sequent
  11545. + ;;
  11546. + sh)
  11547. + basic_machine=sh-hitachi
  11548. + os=-hms
  11549. + ;;
  11550. + sh5el)
  11551. + basic_machine=sh5le-unknown
  11552. + ;;
  11553. + sh64)
  11554. + basic_machine=sh64-unknown
  11555. + ;;
  11556. + sparclite-wrs | simso-wrs)
  11557. + basic_machine=sparclite-wrs
  11558. + os=-vxworks
  11559. + ;;
  11560. + sps7)
  11561. + basic_machine=m68k-bull
  11562. + os=-sysv2
  11563. + ;;
  11564. + spur)
  11565. + basic_machine=spur-unknown
  11566. + ;;
  11567. + st2000)
  11568. + basic_machine=m68k-tandem
  11569. + ;;
  11570. + stratus)
  11571. + basic_machine=i860-stratus
  11572. + os=-sysv4
  11573. + ;;
  11574. + sun2)
  11575. + basic_machine=m68000-sun
  11576. + ;;
  11577. + sun2os3)
  11578. + basic_machine=m68000-sun
  11579. + os=-sunos3
  11580. + ;;
  11581. + sun2os4)
  11582. + basic_machine=m68000-sun
  11583. + os=-sunos4
  11584. + ;;
  11585. + sun3os3)
  11586. + basic_machine=m68k-sun
  11587. + os=-sunos3
  11588. + ;;
  11589. + sun3os4)
  11590. + basic_machine=m68k-sun
  11591. + os=-sunos4
  11592. + ;;
  11593. + sun4os3)
  11594. + basic_machine=sparc-sun
  11595. + os=-sunos3
  11596. + ;;
  11597. + sun4os4)
  11598. + basic_machine=sparc-sun
  11599. + os=-sunos4
  11600. + ;;
  11601. + sun4sol2)
  11602. + basic_machine=sparc-sun
  11603. + os=-solaris2
  11604. + ;;
  11605. + sun3 | sun3-*)
  11606. + basic_machine=m68k-sun
  11607. + ;;
  11608. + sun4)
  11609. + basic_machine=sparc-sun
  11610. + ;;
  11611. + sun386 | sun386i | roadrunner)
  11612. + basic_machine=i386-sun
  11613. + ;;
  11614. + sv1)
  11615. + basic_machine=sv1-cray
  11616. + os=-unicos
  11617. + ;;
  11618. + symmetry)
  11619. + basic_machine=i386-sequent
  11620. + os=-dynix
  11621. + ;;
  11622. + t3e)
  11623. + basic_machine=alphaev5-cray
  11624. + os=-unicos
  11625. + ;;
  11626. + t90)
  11627. + basic_machine=t90-cray
  11628. + os=-unicos
  11629. + ;;
  11630. + tic54x | c54x*)
  11631. + basic_machine=tic54x-unknown
  11632. + os=-coff
  11633. + ;;
  11634. + tic55x | c55x*)
  11635. + basic_machine=tic55x-unknown
  11636. + os=-coff
  11637. + ;;
  11638. + tic6x | c6x*)
  11639. + basic_machine=tic6x-unknown
  11640. + os=-coff
  11641. + ;;
  11642. + tile*)
  11643. + basic_machine=tile-unknown
  11644. + os=-linux-gnu
  11645. + ;;
  11646. + tx39)
  11647. + basic_machine=mipstx39-unknown
  11648. + ;;
  11649. + tx39el)
  11650. + basic_machine=mipstx39el-unknown
  11651. + ;;
  11652. + toad1)
  11653. + basic_machine=pdp10-xkl
  11654. + os=-tops20
  11655. + ;;
  11656. + tower | tower-32)
  11657. + basic_machine=m68k-ncr
  11658. + ;;
  11659. + tpf)
  11660. + basic_machine=s390x-ibm
  11661. + os=-tpf
  11662. + ;;
  11663. + udi29k)
  11664. + basic_machine=a29k-amd
  11665. + os=-udi
  11666. + ;;
  11667. + ultra3)
  11668. + basic_machine=a29k-nyu
  11669. + os=-sym1
  11670. + ;;
  11671. + v810 | necv810)
  11672. + basic_machine=v810-nec
  11673. + os=-none
  11674. + ;;
  11675. + vaxv)
  11676. + basic_machine=vax-dec
  11677. + os=-sysv
  11678. + ;;
  11679. + vms)
  11680. + basic_machine=vax-dec
  11681. + os=-vms
  11682. + ;;
  11683. + vpp*|vx|vx-*)
  11684. + basic_machine=f301-fujitsu
  11685. + ;;
  11686. + vxworks960)
  11687. + basic_machine=i960-wrs
  11688. + os=-vxworks
  11689. + ;;
  11690. + vxworks68)
  11691. + basic_machine=m68k-wrs
  11692. + os=-vxworks
  11693. + ;;
  11694. + vxworks29k)
  11695. + basic_machine=a29k-wrs
  11696. + os=-vxworks
  11697. + ;;
  11698. + w65*)
  11699. + basic_machine=w65-wdc
  11700. + os=-none
  11701. + ;;
  11702. + w89k-*)
  11703. + basic_machine=hppa1.1-winbond
  11704. + os=-proelf
  11705. + ;;
  11706. + xbox)
  11707. + basic_machine=i686-pc
  11708. + os=-mingw32
  11709. + ;;
  11710. + xps | xps100)
  11711. + basic_machine=xps100-honeywell
  11712. + ;;
  11713. + ymp)
  11714. + basic_machine=ymp-cray
  11715. + os=-unicos
  11716. + ;;
  11717. + z8k-*-coff)
  11718. + basic_machine=z8k-unknown
  11719. + os=-sim
  11720. + ;;
  11721. + z80-*-coff)
  11722. + basic_machine=z80-unknown
  11723. + os=-sim
  11724. + ;;
  11725. + none)
  11726. + basic_machine=none-none
  11727. + os=-none
  11728. + ;;
  11729. +
  11730. +# Here we handle the default manufacturer of certain CPU types. It is in
  11731. +# some cases the only manufacturer, in others, it is the most popular.
  11732. + w89k)
  11733. + basic_machine=hppa1.1-winbond
  11734. + ;;
  11735. + op50n)
  11736. + basic_machine=hppa1.1-oki
  11737. + ;;
  11738. + op60c)
  11739. + basic_machine=hppa1.1-oki
  11740. + ;;
  11741. + romp)
  11742. + basic_machine=romp-ibm
  11743. + ;;
  11744. + mmix)
  11745. + basic_machine=mmix-knuth
  11746. + ;;
  11747. + rs6000)
  11748. + basic_machine=rs6000-ibm
  11749. + ;;
  11750. + vax)
  11751. + basic_machine=vax-dec
  11752. + ;;
  11753. + pdp10)
  11754. + # there are many clones, so DEC is not a safe bet
  11755. + basic_machine=pdp10-unknown
  11756. + ;;
  11757. + pdp11)
  11758. + basic_machine=pdp11-dec
  11759. + ;;
  11760. + we32k)
  11761. + basic_machine=we32k-att
  11762. + ;;
  11763. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  11764. + basic_machine=sh-unknown
  11765. + ;;
  11766. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  11767. + basic_machine=sparc-sun
  11768. + ;;
  11769. + cydra)
  11770. + basic_machine=cydra-cydrome
  11771. + ;;
  11772. + orion)
  11773. + basic_machine=orion-highlevel
  11774. + ;;
  11775. + orion105)
  11776. + basic_machine=clipper-highlevel
  11777. + ;;
  11778. + mac | mpw | mac-mpw)
  11779. + basic_machine=m68k-apple
  11780. + ;;
  11781. + pmac | pmac-mpw)
  11782. + basic_machine=powerpc-apple
  11783. + ;;
  11784. + *-unknown)
  11785. + # Make sure to match an already-canonicalized machine name.
  11786. + ;;
  11787. + *)
  11788. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  11789. + exit 1
  11790. + ;;
  11791. +esac
  11792. +
  11793. +# Here we canonicalize certain aliases for manufacturers.
  11794. +case $basic_machine in
  11795. + *-digital*)
  11796. + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  11797. + ;;
  11798. + *-commodore*)
  11799. + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  11800. + ;;
  11801. + *)
  11802. + ;;
  11803. +esac
  11804. +
  11805. +# Decode manufacturer-specific aliases for certain operating systems.
  11806. +
  11807. +if [ x"$os" != x"" ]
  11808. +then
  11809. +case $os in
  11810. + # First match some system type aliases
  11811. + # that might get confused with valid system types.
  11812. + # -solaris* is a basic system type, with this one exception.
  11813. + -solaris1 | -solaris1.*)
  11814. + os=`echo $os | sed -e 's|solaris1|sunos4|'`
  11815. + ;;
  11816. + -solaris)
  11817. + os=-solaris2
  11818. + ;;
  11819. + -svr4*)
  11820. + os=-sysv4
  11821. + ;;
  11822. + -unixware*)
  11823. + os=-sysv4.2uw
  11824. + ;;
  11825. + -gnu/linux*)
  11826. + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  11827. + ;;
  11828. + # First accept the basic system types.
  11829. + # The portable systems comes first.
  11830. + # Each alternative MUST END IN A *, to match a version number.
  11831. + # -sysv* is not here because it comes later, after sysvr4.
  11832. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  11833. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  11834. + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  11835. + | -kopensolaris* \
  11836. + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  11837. + | -aos* | -aros* \
  11838. + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  11839. + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  11840. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  11841. + | -openbsd* | -solidbsd* \
  11842. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  11843. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  11844. + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  11845. + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  11846. + | -chorusos* | -chorusrdb* | -cegcc* \
  11847. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  11848. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  11849. + | -uxpv* | -beos* | -mpeix* | -udk* \
  11850. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  11851. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  11852. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  11853. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  11854. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  11855. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  11856. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  11857. + # Remember, each alternative MUST END IN *, to match a version number.
  11858. + ;;
  11859. + -qnx*)
  11860. + case $basic_machine in
  11861. + x86-* | i*86-*)
  11862. + ;;
  11863. + *)
  11864. + os=-nto$os
  11865. + ;;
  11866. + esac
  11867. + ;;
  11868. + -nto-qnx*)
  11869. + ;;
  11870. + -nto*)
  11871. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  11872. + ;;
  11873. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  11874. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  11875. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  11876. + ;;
  11877. + -mac*)
  11878. + os=`echo $os | sed -e 's|mac|macos|'`
  11879. + ;;
  11880. + -linux-dietlibc)
  11881. + os=-linux-dietlibc
  11882. + ;;
  11883. + -linux*)
  11884. + os=`echo $os | sed -e 's|linux|linux-gnu|'`
  11885. + ;;
  11886. + -sunos5*)
  11887. + os=`echo $os | sed -e 's|sunos5|solaris2|'`
  11888. + ;;
  11889. + -sunos6*)
  11890. + os=`echo $os | sed -e 's|sunos6|solaris3|'`
  11891. + ;;
  11892. + -opened*)
  11893. + os=-openedition
  11894. + ;;
  11895. + -os400*)
  11896. + os=-os400
  11897. + ;;
  11898. + -wince*)
  11899. + os=-wince
  11900. + ;;
  11901. + -osfrose*)
  11902. + os=-osfrose
  11903. + ;;
  11904. + -osf*)
  11905. + os=-osf
  11906. + ;;
  11907. + -utek*)
  11908. + os=-bsd
  11909. + ;;
  11910. + -dynix*)
  11911. + os=-bsd
  11912. + ;;
  11913. + -acis*)
  11914. + os=-aos
  11915. + ;;
  11916. + -atheos*)
  11917. + os=-atheos
  11918. + ;;
  11919. + -syllable*)
  11920. + os=-syllable
  11921. + ;;
  11922. + -386bsd)
  11923. + os=-bsd
  11924. + ;;
  11925. + -ctix* | -uts*)
  11926. + os=-sysv
  11927. + ;;
  11928. + -nova*)
  11929. + os=-rtmk-nova
  11930. + ;;
  11931. + -ns2 )
  11932. + os=-nextstep2
  11933. + ;;
  11934. + -nsk*)
  11935. + os=-nsk
  11936. + ;;
  11937. + # Preserve the version number of sinix5.
  11938. + -sinix5.*)
  11939. + os=`echo $os | sed -e 's|sinix|sysv|'`
  11940. + ;;
  11941. + -sinix*)
  11942. + os=-sysv4
  11943. + ;;
  11944. + -tpf*)
  11945. + os=-tpf
  11946. + ;;
  11947. + -triton*)
  11948. + os=-sysv3
  11949. + ;;
  11950. + -oss*)
  11951. + os=-sysv3
  11952. + ;;
  11953. + -svr4)
  11954. + os=-sysv4
  11955. + ;;
  11956. + -svr3)
  11957. + os=-sysv3
  11958. + ;;
  11959. + -sysvr4)
  11960. + os=-sysv4
  11961. + ;;
  11962. + # This must come after -sysvr4.
  11963. + -sysv*)
  11964. + ;;
  11965. + -ose*)
  11966. + os=-ose
  11967. + ;;
  11968. + -es1800*)
  11969. + os=-ose
  11970. + ;;
  11971. + -xenix)
  11972. + os=-xenix
  11973. + ;;
  11974. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  11975. + os=-mint
  11976. + ;;
  11977. + -aros*)
  11978. + os=-aros
  11979. + ;;
  11980. + -kaos*)
  11981. + os=-kaos
  11982. + ;;
  11983. + -zvmoe)
  11984. + os=-zvmoe
  11985. + ;;
  11986. + -dicos*)
  11987. + os=-dicos
  11988. + ;;
  11989. + -none)
  11990. + ;;
  11991. + *)
  11992. + # Get rid of the `-' at the beginning of $os.
  11993. + os=`echo $os | sed 's/[^-]*-//'`
  11994. + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  11995. + exit 1
  11996. + ;;
  11997. +esac
  11998. +else
  11999. +
  12000. +# Here we handle the default operating systems that come with various machines.
  12001. +# The value should be what the vendor currently ships out the door with their
  12002. +# machine or put another way, the most popular os provided with the machine.
  12003. +
  12004. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  12005. +# "-sun"), then you have to tell the case statement up towards the top
  12006. +# that MANUFACTURER isn't an operating system. Otherwise, code above
  12007. +# will signal an error saying that MANUFACTURER isn't an operating
  12008. +# system, and we'll never get to this point.
  12009. +
  12010. +case $basic_machine in
  12011. + score-*)
  12012. + os=-elf
  12013. + ;;
  12014. + spu-*)
  12015. + os=-elf
  12016. + ;;
  12017. + *-acorn)
  12018. + os=-riscix1.2
  12019. + ;;
  12020. + arm*-rebel)
  12021. + os=-linux
  12022. + ;;
  12023. + arm*-semi)
  12024. + os=-aout
  12025. + ;;
  12026. + c4x-* | tic4x-*)
  12027. + os=-coff
  12028. + ;;
  12029. + # This must come before the *-dec entry.
  12030. + pdp10-*)
  12031. + os=-tops20
  12032. + ;;
  12033. + pdp11-*)
  12034. + os=-none
  12035. + ;;
  12036. + *-dec | vax-*)
  12037. + os=-ultrix4.2
  12038. + ;;
  12039. + m68*-apollo)
  12040. + os=-domain
  12041. + ;;
  12042. + i386-sun)
  12043. + os=-sunos4.0.2
  12044. + ;;
  12045. + m68000-sun)
  12046. + os=-sunos3
  12047. + # This also exists in the configure program, but was not the
  12048. + # default.
  12049. + # os=-sunos4
  12050. + ;;
  12051. + m68*-cisco)
  12052. + os=-aout
  12053. + ;;
  12054. + mep-*)
  12055. + os=-elf
  12056. + ;;
  12057. + mips*-cisco)
  12058. + os=-elf
  12059. + ;;
  12060. + mips*-*)
  12061. + os=-elf
  12062. + ;;
  12063. + or32-*)
  12064. + os=-coff
  12065. + ;;
  12066. + *-tti) # must be before sparc entry or we get the wrong os.
  12067. + os=-sysv3
  12068. + ;;
  12069. + sparc-* | *-sun)
  12070. + os=-sunos4.1.1
  12071. + ;;
  12072. + *-be)
  12073. + os=-beos
  12074. + ;;
  12075. + *-haiku)
  12076. + os=-haiku
  12077. + ;;
  12078. + *-ibm)
  12079. + os=-aix
  12080. + ;;
  12081. + *-knuth)
  12082. + os=-mmixware
  12083. + ;;
  12084. + *-wec)
  12085. + os=-proelf
  12086. + ;;
  12087. + *-winbond)
  12088. + os=-proelf
  12089. + ;;
  12090. + *-oki)
  12091. + os=-proelf
  12092. + ;;
  12093. + *-hp)
  12094. + os=-hpux
  12095. + ;;
  12096. + *-hitachi)
  12097. + os=-hiux
  12098. + ;;
  12099. + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  12100. + os=-sysv
  12101. + ;;
  12102. + *-cbm)
  12103. + os=-amigaos
  12104. + ;;
  12105. + *-dg)
  12106. + os=-dgux
  12107. + ;;
  12108. + *-dolphin)
  12109. + os=-sysv3
  12110. + ;;
  12111. + m68k-ccur)
  12112. + os=-rtu
  12113. + ;;
  12114. + m88k-omron*)
  12115. + os=-luna
  12116. + ;;
  12117. + *-next )
  12118. + os=-nextstep
  12119. + ;;
  12120. + *-sequent)
  12121. + os=-ptx
  12122. + ;;
  12123. + *-crds)
  12124. + os=-unos
  12125. + ;;
  12126. + *-ns)
  12127. + os=-genix
  12128. + ;;
  12129. + i370-*)
  12130. + os=-mvs
  12131. + ;;
  12132. + *-next)
  12133. + os=-nextstep3
  12134. + ;;
  12135. + *-gould)
  12136. + os=-sysv
  12137. + ;;
  12138. + *-highlevel)
  12139. + os=-bsd
  12140. + ;;
  12141. + *-encore)
  12142. + os=-bsd
  12143. + ;;
  12144. + *-sgi)
  12145. + os=-irix
  12146. + ;;
  12147. + *-siemens)
  12148. + os=-sysv4
  12149. + ;;
  12150. + *-masscomp)
  12151. + os=-rtu
  12152. + ;;
  12153. + f30[01]-fujitsu | f700-fujitsu)
  12154. + os=-uxpv
  12155. + ;;
  12156. + *-rom68k)
  12157. + os=-coff
  12158. + ;;
  12159. + *-*bug)
  12160. + os=-coff
  12161. + ;;
  12162. + *-apple)
  12163. + os=-macos
  12164. + ;;
  12165. + *-atari*)
  12166. + os=-mint
  12167. + ;;
  12168. + *)
  12169. + os=-none
  12170. + ;;
  12171. +esac
  12172. +fi
  12173. +
  12174. +# Here we handle the case where we know the os, and the CPU type, but not the
  12175. +# manufacturer. We pick the logical manufacturer.
  12176. +vendor=unknown
  12177. +case $basic_machine in
  12178. + *-unknown)
  12179. + case $os in
  12180. + -riscix*)
  12181. + vendor=acorn
  12182. + ;;
  12183. + -sunos*)
  12184. + vendor=sun
  12185. + ;;
  12186. + -cnk*|-aix*)
  12187. + vendor=ibm
  12188. + ;;
  12189. + -beos*)
  12190. + vendor=be
  12191. + ;;
  12192. + -hpux*)
  12193. + vendor=hp
  12194. + ;;
  12195. + -mpeix*)
  12196. + vendor=hp
  12197. + ;;
  12198. + -hiux*)
  12199. + vendor=hitachi
  12200. + ;;
  12201. + -unos*)
  12202. + vendor=crds
  12203. + ;;
  12204. + -dgux*)
  12205. + vendor=dg
  12206. + ;;
  12207. + -luna*)
  12208. + vendor=omron
  12209. + ;;
  12210. + -genix*)
  12211. + vendor=ns
  12212. + ;;
  12213. + -mvs* | -opened*)
  12214. + vendor=ibm
  12215. + ;;
  12216. + -os400*)
  12217. + vendor=ibm
  12218. + ;;
  12219. + -ptx*)
  12220. + vendor=sequent
  12221. + ;;
  12222. + -tpf*)
  12223. + vendor=ibm
  12224. + ;;
  12225. + -vxsim* | -vxworks* | -windiss*)
  12226. + vendor=wrs
  12227. + ;;
  12228. + -aux*)
  12229. + vendor=apple
  12230. + ;;
  12231. + -hms*)
  12232. + vendor=hitachi
  12233. + ;;
  12234. + -mpw* | -macos*)
  12235. + vendor=apple
  12236. + ;;
  12237. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  12238. + vendor=atari
  12239. + ;;
  12240. + -vos*)
  12241. + vendor=stratus
  12242. + ;;
  12243. + esac
  12244. + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  12245. + ;;
  12246. +esac
  12247. +
  12248. +echo $basic_machine$os
  12249. +exit
  12250. +
  12251. +# Local variables:
  12252. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  12253. +# time-stamp-start: "timestamp='"
  12254. +# time-stamp-format: "%:y-%02m-%02d"
  12255. +# time-stamp-end: "'"
  12256. +# End:
  12257. diff -Nur libvorbisidec-1.0.2+svn15687.orig/configure libvorbisidec-1.0.2+svn15687/configure
  12258. --- libvorbisidec-1.0.2+svn15687.orig/configure 1970-01-01 01:00:00.000000000 +0100
  12259. +++ libvorbisidec-1.0.2+svn15687/configure 2010-02-18 19:56:29.648852361 +0100
  12260. @@ -0,0 +1,13230 @@
  12261. +#! /bin/sh
  12262. +# Guess values for system-dependent variables and create Makefiles.
  12263. +# Generated by GNU Autoconf 2.65.
  12264. +#
  12265. +#
  12266. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12267. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  12268. +# Inc.
  12269. +#
  12270. +#
  12271. +# This configure script is free software; the Free Software Foundation
  12272. +# gives unlimited permission to copy, distribute and modify it.
  12273. +## -------------------- ##
  12274. +## M4sh Initialization. ##
  12275. +## -------------------- ##
  12276. +
  12277. +# Be more Bourne compatible
  12278. +DUALCASE=1; export DUALCASE # for MKS sh
  12279. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12280. + emulate sh
  12281. + NULLCMD=:
  12282. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12283. + # is contrary to our usage. Disable this feature.
  12284. + alias -g '${1+"$@"}'='"$@"'
  12285. + setopt NO_GLOB_SUBST
  12286. +else
  12287. + case `(set -o) 2>/dev/null` in #(
  12288. + *posix*) :
  12289. + set -o posix ;; #(
  12290. + *) :
  12291. + ;;
  12292. +esac
  12293. +fi
  12294. +
  12295. +
  12296. +as_nl='
  12297. +'
  12298. +export as_nl
  12299. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  12300. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12301. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12302. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12303. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  12304. +# but without wasting forks for bash or zsh.
  12305. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  12306. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12307. + as_echo='print -r --'
  12308. + as_echo_n='print -rn --'
  12309. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12310. + as_echo='printf %s\n'
  12311. + as_echo_n='printf %s'
  12312. +else
  12313. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12314. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12315. + as_echo_n='/usr/ucb/echo -n'
  12316. + else
  12317. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12318. + as_echo_n_body='eval
  12319. + arg=$1;
  12320. + case $arg in #(
  12321. + *"$as_nl"*)
  12322. + expr "X$arg" : "X\\(.*\\)$as_nl";
  12323. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12324. + esac;
  12325. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12326. + '
  12327. + export as_echo_n_body
  12328. + as_echo_n='sh -c $as_echo_n_body as_echo'
  12329. + fi
  12330. + export as_echo_body
  12331. + as_echo='sh -c $as_echo_body as_echo'
  12332. +fi
  12333. +
  12334. +# The user is always right.
  12335. +if test "${PATH_SEPARATOR+set}" != set; then
  12336. + PATH_SEPARATOR=:
  12337. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12338. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12339. + PATH_SEPARATOR=';'
  12340. + }
  12341. +fi
  12342. +
  12343. +
  12344. +# IFS
  12345. +# We need space, tab and new line, in precisely that order. Quoting is
  12346. +# there to prevent editors from complaining about space-tab.
  12347. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12348. +# splitting by setting IFS to empty value.)
  12349. +IFS=" "" $as_nl"
  12350. +
  12351. +# Find who we are. Look in the path if we contain no directory separator.
  12352. +case $0 in #((
  12353. + *[\\/]* ) as_myself=$0 ;;
  12354. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12355. +for as_dir in $PATH
  12356. +do
  12357. + IFS=$as_save_IFS
  12358. + test -z "$as_dir" && as_dir=.
  12359. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12360. + done
  12361. +IFS=$as_save_IFS
  12362. +
  12363. + ;;
  12364. +esac
  12365. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  12366. +# in which case we are not to be found in the path.
  12367. +if test "x$as_myself" = x; then
  12368. + as_myself=$0
  12369. +fi
  12370. +if test ! -f "$as_myself"; then
  12371. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12372. + exit 1
  12373. +fi
  12374. +
  12375. +# Unset variables that we do not need and which cause bugs (e.g. in
  12376. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12377. +# suppresses any "Segmentation fault" message there. '((' could
  12378. +# trigger a bug in pdksh 5.2.14.
  12379. +for as_var in BASH_ENV ENV MAIL MAILPATH
  12380. +do eval test x\${$as_var+set} = xset \
  12381. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12382. +done
  12383. +PS1='$ '
  12384. +PS2='> '
  12385. +PS4='+ '
  12386. +
  12387. +# NLS nuisances.
  12388. +LC_ALL=C
  12389. +export LC_ALL
  12390. +LANGUAGE=C
  12391. +export LANGUAGE
  12392. +
  12393. +# CDPATH.
  12394. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12395. +
  12396. +if test "x$CONFIG_SHELL" = x; then
  12397. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  12398. + emulate sh
  12399. + NULLCMD=:
  12400. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  12401. + # is contrary to our usage. Disable this feature.
  12402. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  12403. + setopt NO_GLOB_SUBST
  12404. +else
  12405. + case \`(set -o) 2>/dev/null\` in #(
  12406. + *posix*) :
  12407. + set -o posix ;; #(
  12408. + *) :
  12409. + ;;
  12410. +esac
  12411. +fi
  12412. +"
  12413. + as_required="as_fn_return () { (exit \$1); }
  12414. +as_fn_success () { as_fn_return 0; }
  12415. +as_fn_failure () { as_fn_return 1; }
  12416. +as_fn_ret_success () { return 0; }
  12417. +as_fn_ret_failure () { return 1; }
  12418. +
  12419. +exitcode=0
  12420. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  12421. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  12422. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  12423. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  12424. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  12425. +
  12426. +else
  12427. + exitcode=1; echo positional parameters were not saved.
  12428. +fi
  12429. +test x\$exitcode = x0 || exit 1"
  12430. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  12431. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  12432. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  12433. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  12434. +test \$(( 1 + 1 )) = 2 || exit 1"
  12435. + if (eval "$as_required") 2>/dev/null; then :
  12436. + as_have_required=yes
  12437. +else
  12438. + as_have_required=no
  12439. +fi
  12440. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  12441. +
  12442. +else
  12443. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12444. +as_found=false
  12445. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12446. +do
  12447. + IFS=$as_save_IFS
  12448. + test -z "$as_dir" && as_dir=.
  12449. + as_found=:
  12450. + case $as_dir in #(
  12451. + /*)
  12452. + for as_base in sh bash ksh sh5; do
  12453. + # Try only shells that exist, to save several forks.
  12454. + as_shell=$as_dir/$as_base
  12455. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12456. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12457. + CONFIG_SHELL=$as_shell as_have_required=yes
  12458. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12459. + break 2
  12460. +fi
  12461. +fi
  12462. + done;;
  12463. + esac
  12464. + as_found=false
  12465. +done
  12466. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  12467. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  12468. + CONFIG_SHELL=$SHELL as_have_required=yes
  12469. +fi; }
  12470. +IFS=$as_save_IFS
  12471. +
  12472. +
  12473. + if test "x$CONFIG_SHELL" != x; then :
  12474. + # We cannot yet assume a decent shell, so we have to provide a
  12475. + # neutralization value for shells without unset; and this also
  12476. + # works around shells that cannot unset nonexistent variables.
  12477. + BASH_ENV=/dev/null
  12478. + ENV=/dev/null
  12479. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  12480. + export CONFIG_SHELL
  12481. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  12482. +fi
  12483. +
  12484. + if test x$as_have_required = xno; then :
  12485. + $as_echo "$0: This script requires a shell more modern than all"
  12486. + $as_echo "$0: the shells that I found on your system."
  12487. + if test x${ZSH_VERSION+set} = xset ; then
  12488. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  12489. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  12490. + else
  12491. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  12492. +$0: including any error possibly output before this
  12493. +$0: message. Then install a modern shell, or manually run
  12494. +$0: the script under such a shell if you do have one."
  12495. + fi
  12496. + exit 1
  12497. +fi
  12498. +fi
  12499. +fi
  12500. +SHELL=${CONFIG_SHELL-/bin/sh}
  12501. +export SHELL
  12502. +# Unset more variables known to interfere with behavior of common tools.
  12503. +CLICOLOR_FORCE= GREP_OPTIONS=
  12504. +unset CLICOLOR_FORCE GREP_OPTIONS
  12505. +
  12506. +## --------------------- ##
  12507. +## M4sh Shell Functions. ##
  12508. +## --------------------- ##
  12509. +# as_fn_unset VAR
  12510. +# ---------------
  12511. +# Portably unset VAR.
  12512. +as_fn_unset ()
  12513. +{
  12514. + { eval $1=; unset $1;}
  12515. +}
  12516. +as_unset=as_fn_unset
  12517. +
  12518. +# as_fn_set_status STATUS
  12519. +# -----------------------
  12520. +# Set $? to STATUS, without forking.
  12521. +as_fn_set_status ()
  12522. +{
  12523. + return $1
  12524. +} # as_fn_set_status
  12525. +
  12526. +# as_fn_exit STATUS
  12527. +# -----------------
  12528. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12529. +as_fn_exit ()
  12530. +{
  12531. + set +e
  12532. + as_fn_set_status $1
  12533. + exit $1
  12534. +} # as_fn_exit
  12535. +
  12536. +# as_fn_mkdir_p
  12537. +# -------------
  12538. +# Create "$as_dir" as a directory, including parents if necessary.
  12539. +as_fn_mkdir_p ()
  12540. +{
  12541. +
  12542. + case $as_dir in #(
  12543. + -*) as_dir=./$as_dir;;
  12544. + esac
  12545. + test -d "$as_dir" || eval $as_mkdir_p || {
  12546. + as_dirs=
  12547. + while :; do
  12548. + case $as_dir in #(
  12549. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12550. + *) as_qdir=$as_dir;;
  12551. + esac
  12552. + as_dirs="'$as_qdir' $as_dirs"
  12553. + as_dir=`$as_dirname -- "$as_dir" ||
  12554. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12555. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12556. + X"$as_dir" : 'X\(//\)$' \| \
  12557. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12558. +$as_echo X"$as_dir" |
  12559. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12560. + s//\1/
  12561. + q
  12562. + }
  12563. + /^X\(\/\/\)[^/].*/{
  12564. + s//\1/
  12565. + q
  12566. + }
  12567. + /^X\(\/\/\)$/{
  12568. + s//\1/
  12569. + q
  12570. + }
  12571. + /^X\(\/\).*/{
  12572. + s//\1/
  12573. + q
  12574. + }
  12575. + s/.*/./; q'`
  12576. + test -d "$as_dir" && break
  12577. + done
  12578. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  12579. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12580. +
  12581. +
  12582. +} # as_fn_mkdir_p
  12583. +# as_fn_append VAR VALUE
  12584. +# ----------------------
  12585. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  12586. +# advantage of any shell optimizations that allow amortized linear growth over
  12587. +# repeated appends, instead of the typical quadratic growth present in naive
  12588. +# implementations.
  12589. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12590. + eval 'as_fn_append ()
  12591. + {
  12592. + eval $1+=\$2
  12593. + }'
  12594. +else
  12595. + as_fn_append ()
  12596. + {
  12597. + eval $1=\$$1\$2
  12598. + }
  12599. +fi # as_fn_append
  12600. +
  12601. +# as_fn_arith ARG...
  12602. +# ------------------
  12603. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  12604. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  12605. +# must be portable across $(()) and expr.
  12606. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12607. + eval 'as_fn_arith ()
  12608. + {
  12609. + as_val=$(( $* ))
  12610. + }'
  12611. +else
  12612. + as_fn_arith ()
  12613. + {
  12614. + as_val=`expr "$@" || test $? -eq 1`
  12615. + }
  12616. +fi # as_fn_arith
  12617. +
  12618. +
  12619. +# as_fn_error ERROR [LINENO LOG_FD]
  12620. +# ---------------------------------
  12621. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12622. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12623. +# script with status $?, using 1 if that was 0.
  12624. +as_fn_error ()
  12625. +{
  12626. + as_status=$?; test $as_status -eq 0 && as_status=1
  12627. + if test "$3"; then
  12628. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12629. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12630. + fi
  12631. + $as_echo "$as_me: error: $1" >&2
  12632. + as_fn_exit $as_status
  12633. +} # as_fn_error
  12634. +
  12635. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  12636. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12637. + as_expr=expr
  12638. +else
  12639. + as_expr=false
  12640. +fi
  12641. +
  12642. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12643. + as_basename=basename
  12644. +else
  12645. + as_basename=false
  12646. +fi
  12647. +
  12648. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12649. + as_dirname=dirname
  12650. +else
  12651. + as_dirname=false
  12652. +fi
  12653. +
  12654. +as_me=`$as_basename -- "$0" ||
  12655. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12656. + X"$0" : 'X\(//\)$' \| \
  12657. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12658. +$as_echo X/"$0" |
  12659. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  12660. + s//\1/
  12661. + q
  12662. + }
  12663. + /^X\/\(\/\/\)$/{
  12664. + s//\1/
  12665. + q
  12666. + }
  12667. + /^X\/\(\/\).*/{
  12668. + s//\1/
  12669. + q
  12670. + }
  12671. + s/.*/./; q'`
  12672. +
  12673. +# Avoid depending upon Character Ranges.
  12674. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12675. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12676. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12677. +as_cr_digits='0123456789'
  12678. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  12679. +
  12680. +
  12681. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  12682. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  12683. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  12684. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  12685. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  12686. + sed -n '
  12687. + p
  12688. + /[$]LINENO/=
  12689. + ' <$as_myself |
  12690. + sed '
  12691. + s/[$]LINENO.*/&-/
  12692. + t lineno
  12693. + b
  12694. + :lineno
  12695. + N
  12696. + :loop
  12697. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12698. + t loop
  12699. + s/-\n.*//
  12700. + ' >$as_me.lineno &&
  12701. + chmod +x "$as_me.lineno" ||
  12702. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  12703. +
  12704. + # Don't try to exec as it changes $[0], causing all sort of problems
  12705. + # (the dirname of $[0] is not the place where we might find the
  12706. + # original and so on. Autoconf is especially sensitive to this).
  12707. + . "./$as_me.lineno"
  12708. + # Exit status is that of the last command.
  12709. + exit
  12710. +}
  12711. +
  12712. +ECHO_C= ECHO_N= ECHO_T=
  12713. +case `echo -n x` in #(((((
  12714. +-n*)
  12715. + case `echo 'xy\c'` in
  12716. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12717. + xy) ECHO_C='\c';;
  12718. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12719. + ECHO_T=' ';;
  12720. + esac;;
  12721. +*)
  12722. + ECHO_N='-n';;
  12723. +esac
  12724. +
  12725. +rm -f conf$$ conf$$.exe conf$$.file
  12726. +if test -d conf$$.dir; then
  12727. + rm -f conf$$.dir/conf$$.file
  12728. +else
  12729. + rm -f conf$$.dir
  12730. + mkdir conf$$.dir 2>/dev/null
  12731. +fi
  12732. +if (echo >conf$$.file) 2>/dev/null; then
  12733. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  12734. + as_ln_s='ln -s'
  12735. + # ... but there are two gotchas:
  12736. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12737. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12738. + # In both cases, we have to default to `cp -p'.
  12739. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12740. + as_ln_s='cp -p'
  12741. + elif ln conf$$.file conf$$ 2>/dev/null; then
  12742. + as_ln_s=ln
  12743. + else
  12744. + as_ln_s='cp -p'
  12745. + fi
  12746. +else
  12747. + as_ln_s='cp -p'
  12748. +fi
  12749. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12750. +rmdir conf$$.dir 2>/dev/null
  12751. +
  12752. +if mkdir -p . 2>/dev/null; then
  12753. + as_mkdir_p='mkdir -p "$as_dir"'
  12754. +else
  12755. + test -d ./-p && rmdir ./-p
  12756. + as_mkdir_p=false
  12757. +fi
  12758. +
  12759. +if test -x / >/dev/null 2>&1; then
  12760. + as_test_x='test -x'
  12761. +else
  12762. + if ls -dL / >/dev/null 2>&1; then
  12763. + as_ls_L_option=L
  12764. + else
  12765. + as_ls_L_option=
  12766. + fi
  12767. + as_test_x='
  12768. + eval sh -c '\''
  12769. + if test -d "$1"; then
  12770. + test -d "$1/.";
  12771. + else
  12772. + case $1 in #(
  12773. + -*)set "./$1";;
  12774. + esac;
  12775. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12776. + ???[sx]*):;;*)false;;esac;fi
  12777. + '\'' sh
  12778. + '
  12779. +fi
  12780. +as_executable_p=$as_test_x
  12781. +
  12782. +# Sed expression to map a string onto a valid CPP name.
  12783. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12784. +
  12785. +# Sed expression to map a string onto a valid variable name.
  12786. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12787. +
  12788. +
  12789. +
  12790. +# Check that we are running under the correct shell.
  12791. +SHELL=${CONFIG_SHELL-/bin/sh}
  12792. +
  12793. +case X$lt_ECHO in
  12794. +X*--fallback-echo)
  12795. + # Remove one level of quotation (which was required for Make).
  12796. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  12797. + ;;
  12798. +esac
  12799. +
  12800. +ECHO=${lt_ECHO-echo}
  12801. +if test "X$1" = X--no-reexec; then
  12802. + # Discard the --no-reexec flag, and continue.
  12803. + shift
  12804. +elif test "X$1" = X--fallback-echo; then
  12805. + # Avoid inline document here, it may be left over
  12806. + :
  12807. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  12808. + # Yippee, $ECHO works!
  12809. + :
  12810. +else
  12811. + # Restart under the correct shell.
  12812. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  12813. +fi
  12814. +
  12815. +if test "X$1" = X--fallback-echo; then
  12816. + # used as fallback echo
  12817. + shift
  12818. + cat <<_LT_EOF
  12819. +$*
  12820. +_LT_EOF
  12821. + exit 0
  12822. +fi
  12823. +
  12824. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  12825. +# if CDPATH is set.
  12826. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12827. +
  12828. +if test -z "$lt_ECHO"; then
  12829. + if test "X${echo_test_string+set}" != Xset; then
  12830. + # find a string as large as possible, as long as the shell can cope with it
  12831. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  12832. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  12833. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  12834. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  12835. + then
  12836. + break
  12837. + fi
  12838. + done
  12839. + fi
  12840. +
  12841. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  12842. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  12843. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12844. + :
  12845. + else
  12846. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  12847. + # backslashes. This makes it impossible to quote backslashes using
  12848. + # echo "$something" | sed 's/\\/\\\\/g'
  12849. + #
  12850. + # So, first we look for a working echo in the user's PATH.
  12851. +
  12852. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12853. + for dir in $PATH /usr/ucb; do
  12854. + IFS="$lt_save_ifs"
  12855. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  12856. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  12857. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  12858. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12859. + ECHO="$dir/echo"
  12860. + break
  12861. + fi
  12862. + done
  12863. + IFS="$lt_save_ifs"
  12864. +
  12865. + if test "X$ECHO" = Xecho; then
  12866. + # We didn't find a better echo, so look for alternatives.
  12867. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  12868. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  12869. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12870. + # This shell has a builtin print -r that does the trick.
  12871. + ECHO='print -r'
  12872. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  12873. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  12874. + # If we have ksh, try running configure again with it.
  12875. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  12876. + export ORIGINAL_CONFIG_SHELL
  12877. + CONFIG_SHELL=/bin/ksh
  12878. + export CONFIG_SHELL
  12879. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  12880. + else
  12881. + # Try using printf.
  12882. + ECHO='printf %s\n'
  12883. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  12884. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  12885. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12886. + # Cool, printf works
  12887. + :
  12888. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  12889. + test "X$echo_testing_string" = 'X\t' &&
  12890. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  12891. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12892. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  12893. + export CONFIG_SHELL
  12894. + SHELL="$CONFIG_SHELL"
  12895. + export SHELL
  12896. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  12897. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  12898. + test "X$echo_testing_string" = 'X\t' &&
  12899. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  12900. + test "X$echo_testing_string" = "X$echo_test_string"; then
  12901. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  12902. + else
  12903. + # maybe with a smaller string...
  12904. + prev=:
  12905. +
  12906. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  12907. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  12908. + then
  12909. + break
  12910. + fi
  12911. + prev="$cmd"
  12912. + done
  12913. +
  12914. + if test "$prev" != 'sed 50q "$0"'; then
  12915. + echo_test_string=`eval $prev`
  12916. + export echo_test_string
  12917. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  12918. + else
  12919. + # Oops. We lost completely, so just stick with echo.
  12920. + ECHO=echo
  12921. + fi
  12922. + fi
  12923. + fi
  12924. + fi
  12925. + fi
  12926. +fi
  12927. +
  12928. +# Copy echo and quote the copy suitably for passing to libtool from
  12929. +# the Makefile, instead of quoting the original, which is used later.
  12930. +lt_ECHO=$ECHO
  12931. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  12932. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  12933. +fi
  12934. +
  12935. +
  12936. +
  12937. +
  12938. +test -n "$DJDIR" || exec 7<&0 </dev/null
  12939. +exec 6>&1
  12940. +
  12941. +# Name of the host.
  12942. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  12943. +# so uname gets run too.
  12944. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  12945. +
  12946. +#
  12947. +# Initializations.
  12948. +#
  12949. +ac_default_prefix=/usr/local
  12950. +ac_clean_files=
  12951. +ac_config_libobj_dir=.
  12952. +LIBOBJS=
  12953. +cross_compiling=no
  12954. +subdirs=
  12955. +MFLAGS=
  12956. +MAKEFLAGS=
  12957. +
  12958. +# Identity of this package.
  12959. +PACKAGE_NAME=
  12960. +PACKAGE_TARNAME=
  12961. +PACKAGE_VERSION=
  12962. +PACKAGE_STRING=
  12963. +PACKAGE_BUGREPORT=
  12964. +PACKAGE_URL=
  12965. +
  12966. +ac_unique_file="mdct.c"
  12967. +# Factoring default headers for most tests.
  12968. +ac_includes_default="\
  12969. +#include <stdio.h>
  12970. +#ifdef HAVE_SYS_TYPES_H
  12971. +# include <sys/types.h>
  12972. +#endif
  12973. +#ifdef HAVE_SYS_STAT_H
  12974. +# include <sys/stat.h>
  12975. +#endif
  12976. +#ifdef STDC_HEADERS
  12977. +# include <stdlib.h>
  12978. +# include <stddef.h>
  12979. +#else
  12980. +# ifdef HAVE_STDLIB_H
  12981. +# include <stdlib.h>
  12982. +# endif
  12983. +#endif
  12984. +#ifdef HAVE_STRING_H
  12985. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  12986. +# include <memory.h>
  12987. +# endif
  12988. +# include <string.h>
  12989. +#endif
  12990. +#ifdef HAVE_STRINGS_H
  12991. +# include <strings.h>
  12992. +#endif
  12993. +#ifdef HAVE_INTTYPES_H
  12994. +# include <inttypes.h>
  12995. +#endif
  12996. +#ifdef HAVE_STDINT_H
  12997. +# include <stdint.h>
  12998. +#endif
  12999. +#ifdef HAVE_UNISTD_H
  13000. +# include <unistd.h>
  13001. +#endif"
  13002. +
  13003. +ac_subst_vars='am__EXEEXT_FALSE
  13004. +am__EXEEXT_TRUE
  13005. +LTLIBOBJS
  13006. +PROFILE
  13007. +DEBUG
  13008. +LIBOBJS
  13009. +ALLOCA
  13010. +OTOOL64
  13011. +OTOOL
  13012. +LIPO
  13013. +NMEDIT
  13014. +DSYMUTIL
  13015. +lt_ECHO
  13016. +RANLIB
  13017. +AR
  13018. +OBJDUMP
  13019. +LN_S
  13020. +NM
  13021. +ac_ct_DUMPBIN
  13022. +DUMPBIN
  13023. +LD
  13024. +FGREP
  13025. +EGREP
  13026. +GREP
  13027. +SED
  13028. +LIBTOOL
  13029. +CPP
  13030. +am__fastdepCC_FALSE
  13031. +am__fastdepCC_TRUE
  13032. +CCDEPMODE
  13033. +AMDEPBACKSLASH
  13034. +AMDEP_FALSE
  13035. +AMDEP_TRUE
  13036. +am__quote
  13037. +am__include
  13038. +DEPDIR
  13039. +OBJEXT
  13040. +EXEEXT
  13041. +ac_ct_CC
  13042. +CPPFLAGS
  13043. +LDFLAGS
  13044. +CFLAGS
  13045. +CC
  13046. +V_LIB_AGE
  13047. +V_LIB_REVISION
  13048. +V_LIB_CURRENT
  13049. +am__untar
  13050. +am__tar
  13051. +AMTAR
  13052. +am__leading_dot
  13053. +SET_MAKE
  13054. +AWK
  13055. +mkdir_p
  13056. +MKDIR_P
  13057. +INSTALL_STRIP_PROGRAM
  13058. +STRIP
  13059. +install_sh
  13060. +MAKEINFO
  13061. +AUTOHEADER
  13062. +AUTOMAKE
  13063. +AUTOCONF
  13064. +ACLOCAL
  13065. +VERSION
  13066. +PACKAGE
  13067. +CYGPATH_W
  13068. +am__isrc
  13069. +INSTALL_DATA
  13070. +INSTALL_SCRIPT
  13071. +INSTALL_PROGRAM
  13072. +target_os
  13073. +target_vendor
  13074. +target_cpu
  13075. +target
  13076. +host_os
  13077. +host_vendor
  13078. +host_cpu
  13079. +host
  13080. +build_os
  13081. +build_vendor
  13082. +build_cpu
  13083. +build
  13084. +target_alias
  13085. +host_alias
  13086. +build_alias
  13087. +LIBS
  13088. +ECHO_T
  13089. +ECHO_N
  13090. +ECHO_C
  13091. +DEFS
  13092. +mandir
  13093. +localedir
  13094. +libdir
  13095. +psdir
  13096. +pdfdir
  13097. +dvidir
  13098. +htmldir
  13099. +infodir
  13100. +docdir
  13101. +oldincludedir
  13102. +includedir
  13103. +localstatedir
  13104. +sharedstatedir
  13105. +sysconfdir
  13106. +datadir
  13107. +datarootdir
  13108. +libexecdir
  13109. +sbindir
  13110. +bindir
  13111. +program_transform_name
  13112. +prefix
  13113. +exec_prefix
  13114. +PACKAGE_URL
  13115. +PACKAGE_BUGREPORT
  13116. +PACKAGE_STRING
  13117. +PACKAGE_VERSION
  13118. +PACKAGE_TARNAME
  13119. +PACKAGE_NAME
  13120. +PATH_SEPARATOR
  13121. +SHELL'
  13122. +ac_subst_files=''
  13123. +ac_user_opts='
  13124. +enable_option_checking
  13125. +enable_dependency_tracking
  13126. +enable_shared
  13127. +enable_static
  13128. +with_pic
  13129. +enable_fast_install
  13130. +with_gnu_ld
  13131. +enable_libtool_lock
  13132. +enable_low_accuracy
  13133. +'
  13134. + ac_precious_vars='build_alias
  13135. +host_alias
  13136. +target_alias
  13137. +CC
  13138. +CFLAGS
  13139. +LDFLAGS
  13140. +LIBS
  13141. +CPPFLAGS
  13142. +CPP'
  13143. +
  13144. +
  13145. +# Initialize some variables set by options.
  13146. +ac_init_help=
  13147. +ac_init_version=false
  13148. +ac_unrecognized_opts=
  13149. +ac_unrecognized_sep=
  13150. +# The variables have the same names as the options, with
  13151. +# dashes changed to underlines.
  13152. +cache_file=/dev/null
  13153. +exec_prefix=NONE
  13154. +no_create=
  13155. +no_recursion=
  13156. +prefix=NONE
  13157. +program_prefix=NONE
  13158. +program_suffix=NONE
  13159. +program_transform_name=s,x,x,
  13160. +silent=
  13161. +site=
  13162. +srcdir=
  13163. +verbose=
  13164. +x_includes=NONE
  13165. +x_libraries=NONE
  13166. +
  13167. +# Installation directory options.
  13168. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  13169. +# and all the variables that are supposed to be based on exec_prefix
  13170. +# by default will actually change.
  13171. +# Use braces instead of parens because sh, perl, etc. also accept them.
  13172. +# (The list follows the same order as the GNU Coding Standards.)
  13173. +bindir='${exec_prefix}/bin'
  13174. +sbindir='${exec_prefix}/sbin'
  13175. +libexecdir='${exec_prefix}/libexec'
  13176. +datarootdir='${prefix}/share'
  13177. +datadir='${datarootdir}'
  13178. +sysconfdir='${prefix}/etc'
  13179. +sharedstatedir='${prefix}/com'
  13180. +localstatedir='${prefix}/var'
  13181. +includedir='${prefix}/include'
  13182. +oldincludedir='/usr/include'
  13183. +docdir='${datarootdir}/doc/${PACKAGE}'
  13184. +infodir='${datarootdir}/info'
  13185. +htmldir='${docdir}'
  13186. +dvidir='${docdir}'
  13187. +pdfdir='${docdir}'
  13188. +psdir='${docdir}'
  13189. +libdir='${exec_prefix}/lib'
  13190. +localedir='${datarootdir}/locale'
  13191. +mandir='${datarootdir}/man'
  13192. +
  13193. +ac_prev=
  13194. +ac_dashdash=
  13195. +for ac_option
  13196. +do
  13197. + # If the previous option needs an argument, assign it.
  13198. + if test -n "$ac_prev"; then
  13199. + eval $ac_prev=\$ac_option
  13200. + ac_prev=
  13201. + continue
  13202. + fi
  13203. +
  13204. + case $ac_option in
  13205. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  13206. + *) ac_optarg=yes ;;
  13207. + esac
  13208. +
  13209. + # Accept the important Cygnus configure options, so we can diagnose typos.
  13210. +
  13211. + case $ac_dashdash$ac_option in
  13212. + --)
  13213. + ac_dashdash=yes ;;
  13214. +
  13215. + -bindir | --bindir | --bindi | --bind | --bin | --bi)
  13216. + ac_prev=bindir ;;
  13217. + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  13218. + bindir=$ac_optarg ;;
  13219. +
  13220. + -build | --build | --buil | --bui | --bu)
  13221. + ac_prev=build_alias ;;
  13222. + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  13223. + build_alias=$ac_optarg ;;
  13224. +
  13225. + -cache-file | --cache-file | --cache-fil | --cache-fi \
  13226. + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  13227. + ac_prev=cache_file ;;
  13228. + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  13229. + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  13230. + cache_file=$ac_optarg ;;
  13231. +
  13232. + --config-cache | -C)
  13233. + cache_file=config.cache ;;
  13234. +
  13235. + -datadir | --datadir | --datadi | --datad)
  13236. + ac_prev=datadir ;;
  13237. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  13238. + datadir=$ac_optarg ;;
  13239. +
  13240. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  13241. + | --dataroo | --dataro | --datar)
  13242. + ac_prev=datarootdir ;;
  13243. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  13244. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  13245. + datarootdir=$ac_optarg ;;
  13246. +
  13247. + -disable-* | --disable-*)
  13248. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  13249. + # Reject names that are not valid shell variable names.
  13250. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13251. + as_fn_error "invalid feature name: $ac_useropt"
  13252. + ac_useropt_orig=$ac_useropt
  13253. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13254. + case $ac_user_opts in
  13255. + *"
  13256. +"enable_$ac_useropt"
  13257. +"*) ;;
  13258. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  13259. + ac_unrecognized_sep=', ';;
  13260. + esac
  13261. + eval enable_$ac_useropt=no ;;
  13262. +
  13263. + -docdir | --docdir | --docdi | --doc | --do)
  13264. + ac_prev=docdir ;;
  13265. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  13266. + docdir=$ac_optarg ;;
  13267. +
  13268. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  13269. + ac_prev=dvidir ;;
  13270. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  13271. + dvidir=$ac_optarg ;;
  13272. +
  13273. + -enable-* | --enable-*)
  13274. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  13275. + # Reject names that are not valid shell variable names.
  13276. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13277. + as_fn_error "invalid feature name: $ac_useropt"
  13278. + ac_useropt_orig=$ac_useropt
  13279. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13280. + case $ac_user_opts in
  13281. + *"
  13282. +"enable_$ac_useropt"
  13283. +"*) ;;
  13284. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  13285. + ac_unrecognized_sep=', ';;
  13286. + esac
  13287. + eval enable_$ac_useropt=\$ac_optarg ;;
  13288. +
  13289. + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  13290. + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  13291. + | --exec | --exe | --ex)
  13292. + ac_prev=exec_prefix ;;
  13293. + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  13294. + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  13295. + | --exec=* | --exe=* | --ex=*)
  13296. + exec_prefix=$ac_optarg ;;
  13297. +
  13298. + -gas | --gas | --ga | --g)
  13299. + # Obsolete; use --with-gas.
  13300. + with_gas=yes ;;
  13301. +
  13302. + -help | --help | --hel | --he | -h)
  13303. + ac_init_help=long ;;
  13304. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  13305. + ac_init_help=recursive ;;
  13306. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  13307. + ac_init_help=short ;;
  13308. +
  13309. + -host | --host | --hos | --ho)
  13310. + ac_prev=host_alias ;;
  13311. + -host=* | --host=* | --hos=* | --ho=*)
  13312. + host_alias=$ac_optarg ;;
  13313. +
  13314. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  13315. + ac_prev=htmldir ;;
  13316. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  13317. + | --ht=*)
  13318. + htmldir=$ac_optarg ;;
  13319. +
  13320. + -includedir | --includedir | --includedi | --included | --include \
  13321. + | --includ | --inclu | --incl | --inc)
  13322. + ac_prev=includedir ;;
  13323. + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  13324. + | --includ=* | --inclu=* | --incl=* | --inc=*)
  13325. + includedir=$ac_optarg ;;
  13326. +
  13327. + -infodir | --infodir | --infodi | --infod | --info | --inf)
  13328. + ac_prev=infodir ;;
  13329. + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  13330. + infodir=$ac_optarg ;;
  13331. +
  13332. + -libdir | --libdir | --libdi | --libd)
  13333. + ac_prev=libdir ;;
  13334. + -libdir=* | --libdir=* | --libdi=* | --libd=*)
  13335. + libdir=$ac_optarg ;;
  13336. +
  13337. + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  13338. + | --libexe | --libex | --libe)
  13339. + ac_prev=libexecdir ;;
  13340. + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  13341. + | --libexe=* | --libex=* | --libe=*)
  13342. + libexecdir=$ac_optarg ;;
  13343. +
  13344. + -localedir | --localedir | --localedi | --localed | --locale)
  13345. + ac_prev=localedir ;;
  13346. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  13347. + localedir=$ac_optarg ;;
  13348. +
  13349. + -localstatedir | --localstatedir | --localstatedi | --localstated \
  13350. + | --localstate | --localstat | --localsta | --localst | --locals)
  13351. + ac_prev=localstatedir ;;
  13352. + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  13353. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  13354. + localstatedir=$ac_optarg ;;
  13355. +
  13356. + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  13357. + ac_prev=mandir ;;
  13358. + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  13359. + mandir=$ac_optarg ;;
  13360. +
  13361. + -nfp | --nfp | --nf)
  13362. + # Obsolete; use --without-fp.
  13363. + with_fp=no ;;
  13364. +
  13365. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  13366. + | --no-cr | --no-c | -n)
  13367. + no_create=yes ;;
  13368. +
  13369. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  13370. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  13371. + no_recursion=yes ;;
  13372. +
  13373. + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  13374. + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  13375. + | --oldin | --oldi | --old | --ol | --o)
  13376. + ac_prev=oldincludedir ;;
  13377. + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  13378. + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  13379. + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  13380. + oldincludedir=$ac_optarg ;;
  13381. +
  13382. + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  13383. + ac_prev=prefix ;;
  13384. + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  13385. + prefix=$ac_optarg ;;
  13386. +
  13387. + -program-prefix | --program-prefix | --program-prefi | --program-pref \
  13388. + | --program-pre | --program-pr | --program-p)
  13389. + ac_prev=program_prefix ;;
  13390. + -program-prefix=* | --program-prefix=* | --program-prefi=* \
  13391. + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  13392. + program_prefix=$ac_optarg ;;
  13393. +
  13394. + -program-suffix | --program-suffix | --program-suffi | --program-suff \
  13395. + | --program-suf | --program-su | --program-s)
  13396. + ac_prev=program_suffix ;;
  13397. + -program-suffix=* | --program-suffix=* | --program-suffi=* \
  13398. + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  13399. + program_suffix=$ac_optarg ;;
  13400. +
  13401. + -program-transform-name | --program-transform-name \
  13402. + | --program-transform-nam | --program-transform-na \
  13403. + | --program-transform-n | --program-transform- \
  13404. + | --program-transform | --program-transfor \
  13405. + | --program-transfo | --program-transf \
  13406. + | --program-trans | --program-tran \
  13407. + | --progr-tra | --program-tr | --program-t)
  13408. + ac_prev=program_transform_name ;;
  13409. + -program-transform-name=* | --program-transform-name=* \
  13410. + | --program-transform-nam=* | --program-transform-na=* \
  13411. + | --program-transform-n=* | --program-transform-=* \
  13412. + | --program-transform=* | --program-transfor=* \
  13413. + | --program-transfo=* | --program-transf=* \
  13414. + | --program-trans=* | --program-tran=* \
  13415. + | --progr-tra=* | --program-tr=* | --program-t=*)
  13416. + program_transform_name=$ac_optarg ;;
  13417. +
  13418. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  13419. + ac_prev=pdfdir ;;
  13420. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  13421. + pdfdir=$ac_optarg ;;
  13422. +
  13423. + -psdir | --psdir | --psdi | --psd | --ps)
  13424. + ac_prev=psdir ;;
  13425. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  13426. + psdir=$ac_optarg ;;
  13427. +
  13428. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13429. + | -silent | --silent | --silen | --sile | --sil)
  13430. + silent=yes ;;
  13431. +
  13432. + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  13433. + ac_prev=sbindir ;;
  13434. + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  13435. + | --sbi=* | --sb=*)
  13436. + sbindir=$ac_optarg ;;
  13437. +
  13438. + -sharedstatedir | --sharedstatedir | --sharedstatedi \
  13439. + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  13440. + | --sharedst | --shareds | --shared | --share | --shar \
  13441. + | --sha | --sh)
  13442. + ac_prev=sharedstatedir ;;
  13443. + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  13444. + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  13445. + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  13446. + | --sha=* | --sh=*)
  13447. + sharedstatedir=$ac_optarg ;;
  13448. +
  13449. + -site | --site | --sit)
  13450. + ac_prev=site ;;
  13451. + -site=* | --site=* | --sit=*)
  13452. + site=$ac_optarg ;;
  13453. +
  13454. + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  13455. + ac_prev=srcdir ;;
  13456. + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  13457. + srcdir=$ac_optarg ;;
  13458. +
  13459. + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  13460. + | --syscon | --sysco | --sysc | --sys | --sy)
  13461. + ac_prev=sysconfdir ;;
  13462. + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  13463. + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  13464. + sysconfdir=$ac_optarg ;;
  13465. +
  13466. + -target | --target | --targe | --targ | --tar | --ta | --t)
  13467. + ac_prev=target_alias ;;
  13468. + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  13469. + target_alias=$ac_optarg ;;
  13470. +
  13471. + -v | -verbose | --verbose | --verbos | --verbo | --verb)
  13472. + verbose=yes ;;
  13473. +
  13474. + -version | --version | --versio | --versi | --vers | -V)
  13475. + ac_init_version=: ;;
  13476. +
  13477. + -with-* | --with-*)
  13478. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  13479. + # Reject names that are not valid shell variable names.
  13480. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13481. + as_fn_error "invalid package name: $ac_useropt"
  13482. + ac_useropt_orig=$ac_useropt
  13483. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13484. + case $ac_user_opts in
  13485. + *"
  13486. +"with_$ac_useropt"
  13487. +"*) ;;
  13488. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  13489. + ac_unrecognized_sep=', ';;
  13490. + esac
  13491. + eval with_$ac_useropt=\$ac_optarg ;;
  13492. +
  13493. + -without-* | --without-*)
  13494. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  13495. + # Reject names that are not valid shell variable names.
  13496. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13497. + as_fn_error "invalid package name: $ac_useropt"
  13498. + ac_useropt_orig=$ac_useropt
  13499. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13500. + case $ac_user_opts in
  13501. + *"
  13502. +"with_$ac_useropt"
  13503. +"*) ;;
  13504. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  13505. + ac_unrecognized_sep=', ';;
  13506. + esac
  13507. + eval with_$ac_useropt=no ;;
  13508. +
  13509. + --x)
  13510. + # Obsolete; use --with-x.
  13511. + with_x=yes ;;
  13512. +
  13513. + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  13514. + | --x-incl | --x-inc | --x-in | --x-i)
  13515. + ac_prev=x_includes ;;
  13516. + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  13517. + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  13518. + x_includes=$ac_optarg ;;
  13519. +
  13520. + -x-libraries | --x-libraries | --x-librarie | --x-librari \
  13521. + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  13522. + ac_prev=x_libraries ;;
  13523. + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  13524. + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  13525. + x_libraries=$ac_optarg ;;
  13526. +
  13527. + -*) as_fn_error "unrecognized option: \`$ac_option'
  13528. +Try \`$0 --help' for more information."
  13529. + ;;
  13530. +
  13531. + *=*)
  13532. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  13533. + # Reject names that are not valid shell variable names.
  13534. + case $ac_envvar in #(
  13535. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  13536. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  13537. + esac
  13538. + eval $ac_envvar=\$ac_optarg
  13539. + export $ac_envvar ;;
  13540. +
  13541. + *)
  13542. + # FIXME: should be removed in autoconf 3.0.
  13543. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  13544. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13545. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  13546. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  13547. + ;;
  13548. +
  13549. + esac
  13550. +done
  13551. +
  13552. +if test -n "$ac_prev"; then
  13553. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  13554. + as_fn_error "missing argument to $ac_option"
  13555. +fi
  13556. +
  13557. +if test -n "$ac_unrecognized_opts"; then
  13558. + case $enable_option_checking in
  13559. + no) ;;
  13560. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  13561. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  13562. + esac
  13563. +fi
  13564. +
  13565. +# Check all directory arguments for consistency.
  13566. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  13567. + datadir sysconfdir sharedstatedir localstatedir includedir \
  13568. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  13569. + libdir localedir mandir
  13570. +do
  13571. + eval ac_val=\$$ac_var
  13572. + # Remove trailing slashes.
  13573. + case $ac_val in
  13574. + */ )
  13575. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  13576. + eval $ac_var=\$ac_val;;
  13577. + esac
  13578. + # Be sure to have absolute directory names.
  13579. + case $ac_val in
  13580. + [\\/$]* | ?:[\\/]* ) continue;;
  13581. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  13582. + esac
  13583. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  13584. +done
  13585. +
  13586. +# There might be people who depend on the old broken behavior: `$host'
  13587. +# used to hold the argument of --host etc.
  13588. +# FIXME: To remove some day.
  13589. +build=$build_alias
  13590. +host=$host_alias
  13591. +target=$target_alias
  13592. +
  13593. +# FIXME: To remove some day.
  13594. +if test "x$host_alias" != x; then
  13595. + if test "x$build_alias" = x; then
  13596. + cross_compiling=maybe
  13597. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  13598. + If a cross compiler is detected then cross compile mode will be used." >&2
  13599. + elif test "x$build_alias" != "x$host_alias"; then
  13600. + cross_compiling=yes
  13601. + fi
  13602. +fi
  13603. +
  13604. +ac_tool_prefix=
  13605. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  13606. +
  13607. +test "$silent" = yes && exec 6>/dev/null
  13608. +
  13609. +
  13610. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  13611. +ac_ls_di=`ls -di .` &&
  13612. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  13613. + as_fn_error "working directory cannot be determined"
  13614. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  13615. + as_fn_error "pwd does not report name of working directory"
  13616. +
  13617. +
  13618. +# Find the source files, if location was not specified.
  13619. +if test -z "$srcdir"; then
  13620. + ac_srcdir_defaulted=yes
  13621. + # Try the directory containing this script, then the parent directory.
  13622. + ac_confdir=`$as_dirname -- "$as_myself" ||
  13623. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13624. + X"$as_myself" : 'X\(//\)[^/]' \| \
  13625. + X"$as_myself" : 'X\(//\)$' \| \
  13626. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  13627. +$as_echo X"$as_myself" |
  13628. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13629. + s//\1/
  13630. + q
  13631. + }
  13632. + /^X\(\/\/\)[^/].*/{
  13633. + s//\1/
  13634. + q
  13635. + }
  13636. + /^X\(\/\/\)$/{
  13637. + s//\1/
  13638. + q
  13639. + }
  13640. + /^X\(\/\).*/{
  13641. + s//\1/
  13642. + q
  13643. + }
  13644. + s/.*/./; q'`
  13645. + srcdir=$ac_confdir
  13646. + if test ! -r "$srcdir/$ac_unique_file"; then
  13647. + srcdir=..
  13648. + fi
  13649. +else
  13650. + ac_srcdir_defaulted=no
  13651. +fi
  13652. +if test ! -r "$srcdir/$ac_unique_file"; then
  13653. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  13654. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  13655. +fi
  13656. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  13657. +ac_abs_confdir=`(
  13658. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  13659. + pwd)`
  13660. +# When building in place, set srcdir=.
  13661. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  13662. + srcdir=.
  13663. +fi
  13664. +# Remove unnecessary trailing slashes from srcdir.
  13665. +# Double slashes in file names in object file debugging info
  13666. +# mess up M-x gdb in Emacs.
  13667. +case $srcdir in
  13668. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  13669. +esac
  13670. +for ac_var in $ac_precious_vars; do
  13671. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  13672. + eval ac_env_${ac_var}_value=\$${ac_var}
  13673. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  13674. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  13675. +done
  13676. +
  13677. +#
  13678. +# Report the --help message.
  13679. +#
  13680. +if test "$ac_init_help" = "long"; then
  13681. + # Omit some internal or obsolete options to make the list less imposing.
  13682. + # This message is too long to be a string in the A/UX 3.1 sh.
  13683. + cat <<_ACEOF
  13684. +\`configure' configures this package to adapt to many kinds of systems.
  13685. +
  13686. +Usage: $0 [OPTION]... [VAR=VALUE]...
  13687. +
  13688. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  13689. +VAR=VALUE. See below for descriptions of some of the useful variables.
  13690. +
  13691. +Defaults for the options are specified in brackets.
  13692. +
  13693. +Configuration:
  13694. + -h, --help display this help and exit
  13695. + --help=short display options specific to this package
  13696. + --help=recursive display the short help of all the included packages
  13697. + -V, --version display version information and exit
  13698. + -q, --quiet, --silent do not print \`checking...' messages
  13699. + --cache-file=FILE cache test results in FILE [disabled]
  13700. + -C, --config-cache alias for \`--cache-file=config.cache'
  13701. + -n, --no-create do not create output files
  13702. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  13703. +
  13704. +Installation directories:
  13705. + --prefix=PREFIX install architecture-independent files in PREFIX
  13706. + [$ac_default_prefix]
  13707. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  13708. + [PREFIX]
  13709. +
  13710. +By default, \`make install' will install all the files in
  13711. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  13712. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  13713. +for instance \`--prefix=\$HOME'.
  13714. +
  13715. +For better control, use the options below.
  13716. +
  13717. +Fine tuning of the installation directories:
  13718. + --bindir=DIR user executables [EPREFIX/bin]
  13719. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  13720. + --libexecdir=DIR program executables [EPREFIX/libexec]
  13721. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  13722. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  13723. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  13724. + --libdir=DIR object code libraries [EPREFIX/lib]
  13725. + --includedir=DIR C header files [PREFIX/include]
  13726. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  13727. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  13728. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  13729. + --infodir=DIR info documentation [DATAROOTDIR/info]
  13730. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  13731. + --mandir=DIR man documentation [DATAROOTDIR/man]
  13732. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  13733. + --htmldir=DIR html documentation [DOCDIR]
  13734. + --dvidir=DIR dvi documentation [DOCDIR]
  13735. + --pdfdir=DIR pdf documentation [DOCDIR]
  13736. + --psdir=DIR ps documentation [DOCDIR]
  13737. +_ACEOF
  13738. +
  13739. + cat <<\_ACEOF
  13740. +
  13741. +Program names:
  13742. + --program-prefix=PREFIX prepend PREFIX to installed program names
  13743. + --program-suffix=SUFFIX append SUFFIX to installed program names
  13744. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  13745. +
  13746. +System types:
  13747. + --build=BUILD configure for building on BUILD [guessed]
  13748. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  13749. + --target=TARGET configure for building compilers for TARGET [HOST]
  13750. +_ACEOF
  13751. +fi
  13752. +
  13753. +if test -n "$ac_init_help"; then
  13754. +
  13755. + cat <<\_ACEOF
  13756. +
  13757. +Optional Features:
  13758. + --disable-option-checking ignore unrecognized --enable/--with options
  13759. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  13760. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  13761. + --disable-dependency-tracking speeds up one-time build
  13762. + --enable-dependency-tracking do not reject slow dependency extractors
  13763. + --enable-shared[=PKGS] build shared libraries [default=yes]
  13764. + --enable-static[=PKGS] build static libraries [default=yes]
  13765. + --enable-fast-install[=PKGS]
  13766. + optimize for fast installation [default=yes]
  13767. + --disable-libtool-lock avoid locking (might break parallel builds)
  13768. + --enable-low-accuracy enable 32 bit only multiply operations
  13769. +
  13770. +Optional Packages:
  13771. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  13772. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  13773. + --with-pic try to use only PIC/non-PIC objects [default=use
  13774. + both]
  13775. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13776. +
  13777. +Some influential environment variables:
  13778. + CC C compiler command
  13779. + CFLAGS C compiler flags
  13780. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  13781. + nonstandard directory <lib dir>
  13782. + LIBS libraries to pass to the linker, e.g. -l<library>
  13783. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  13784. + you have headers in a nonstandard directory <include dir>
  13785. + CPP C preprocessor
  13786. +
  13787. +Use these variables to override the choices made by `configure' or to help
  13788. +it to find libraries and programs with nonstandard names/locations.
  13789. +
  13790. +Report bugs to the package provider.
  13791. +_ACEOF
  13792. +ac_status=$?
  13793. +fi
  13794. +
  13795. +if test "$ac_init_help" = "recursive"; then
  13796. + # If there are subdirs, report their specific --help.
  13797. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  13798. + test -d "$ac_dir" ||
  13799. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  13800. + continue
  13801. + ac_builddir=.
  13802. +
  13803. +case "$ac_dir" in
  13804. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13805. +*)
  13806. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13807. + # A ".." for each directory in $ac_dir_suffix.
  13808. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13809. + case $ac_top_builddir_sub in
  13810. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13811. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13812. + esac ;;
  13813. +esac
  13814. +ac_abs_top_builddir=$ac_pwd
  13815. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13816. +# for backward compatibility:
  13817. +ac_top_builddir=$ac_top_build_prefix
  13818. +
  13819. +case $srcdir in
  13820. + .) # We are building in place.
  13821. + ac_srcdir=.
  13822. + ac_top_srcdir=$ac_top_builddir_sub
  13823. + ac_abs_top_srcdir=$ac_pwd ;;
  13824. + [\\/]* | ?:[\\/]* ) # Absolute name.
  13825. + ac_srcdir=$srcdir$ac_dir_suffix;
  13826. + ac_top_srcdir=$srcdir
  13827. + ac_abs_top_srcdir=$srcdir ;;
  13828. + *) # Relative name.
  13829. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13830. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  13831. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13832. +esac
  13833. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13834. +
  13835. + cd "$ac_dir" || { ac_status=$?; continue; }
  13836. + # Check for guested configure.
  13837. + if test -f "$ac_srcdir/configure.gnu"; then
  13838. + echo &&
  13839. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  13840. + elif test -f "$ac_srcdir/configure"; then
  13841. + echo &&
  13842. + $SHELL "$ac_srcdir/configure" --help=recursive
  13843. + else
  13844. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  13845. + fi || ac_status=$?
  13846. + cd "$ac_pwd" || { ac_status=$?; break; }
  13847. + done
  13848. +fi
  13849. +
  13850. +test -n "$ac_init_help" && exit $ac_status
  13851. +if $ac_init_version; then
  13852. + cat <<\_ACEOF
  13853. +configure
  13854. +generated by GNU Autoconf 2.65
  13855. +
  13856. +Copyright (C) 2009 Free Software Foundation, Inc.
  13857. +This configure script is free software; the Free Software Foundation
  13858. +gives unlimited permission to copy, distribute and modify it.
  13859. +_ACEOF
  13860. + exit
  13861. +fi
  13862. +
  13863. +## ------------------------ ##
  13864. +## Autoconf initialization. ##
  13865. +## ------------------------ ##
  13866. +
  13867. +# ac_fn_c_try_compile LINENO
  13868. +# --------------------------
  13869. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  13870. +ac_fn_c_try_compile ()
  13871. +{
  13872. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13873. + rm -f conftest.$ac_objext
  13874. + if { { ac_try="$ac_compile"
  13875. +case "(($ac_try" in
  13876. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13877. + *) ac_try_echo=$ac_try;;
  13878. +esac
  13879. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13880. +$as_echo "$ac_try_echo"; } >&5
  13881. + (eval "$ac_compile") 2>conftest.err
  13882. + ac_status=$?
  13883. + if test -s conftest.err; then
  13884. + grep -v '^ *+' conftest.err >conftest.er1
  13885. + cat conftest.er1 >&5
  13886. + mv -f conftest.er1 conftest.err
  13887. + fi
  13888. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13889. + test $ac_status = 0; } && {
  13890. + test -z "$ac_c_werror_flag" ||
  13891. + test ! -s conftest.err
  13892. + } && test -s conftest.$ac_objext; then :
  13893. + ac_retval=0
  13894. +else
  13895. + $as_echo "$as_me: failed program was:" >&5
  13896. +sed 's/^/| /' conftest.$ac_ext >&5
  13897. +
  13898. + ac_retval=1
  13899. +fi
  13900. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13901. + as_fn_set_status $ac_retval
  13902. +
  13903. +} # ac_fn_c_try_compile
  13904. +
  13905. +# ac_fn_c_try_cpp LINENO
  13906. +# ----------------------
  13907. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  13908. +ac_fn_c_try_cpp ()
  13909. +{
  13910. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13911. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  13912. +case "(($ac_try" in
  13913. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13914. + *) ac_try_echo=$ac_try;;
  13915. +esac
  13916. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13917. +$as_echo "$ac_try_echo"; } >&5
  13918. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  13919. + ac_status=$?
  13920. + if test -s conftest.err; then
  13921. + grep -v '^ *+' conftest.err >conftest.er1
  13922. + cat conftest.er1 >&5
  13923. + mv -f conftest.er1 conftest.err
  13924. + fi
  13925. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13926. + test $ac_status = 0; } >/dev/null && {
  13927. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13928. + test ! -s conftest.err
  13929. + }; then :
  13930. + ac_retval=0
  13931. +else
  13932. + $as_echo "$as_me: failed program was:" >&5
  13933. +sed 's/^/| /' conftest.$ac_ext >&5
  13934. +
  13935. + ac_retval=1
  13936. +fi
  13937. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13938. + as_fn_set_status $ac_retval
  13939. +
  13940. +} # ac_fn_c_try_cpp
  13941. +
  13942. +# ac_fn_c_try_link LINENO
  13943. +# -----------------------
  13944. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  13945. +ac_fn_c_try_link ()
  13946. +{
  13947. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13948. + rm -f conftest.$ac_objext conftest$ac_exeext
  13949. + if { { ac_try="$ac_link"
  13950. +case "(($ac_try" in
  13951. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13952. + *) ac_try_echo=$ac_try;;
  13953. +esac
  13954. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13955. +$as_echo "$ac_try_echo"; } >&5
  13956. + (eval "$ac_link") 2>conftest.err
  13957. + ac_status=$?
  13958. + if test -s conftest.err; then
  13959. + grep -v '^ *+' conftest.err >conftest.er1
  13960. + cat conftest.er1 >&5
  13961. + mv -f conftest.er1 conftest.err
  13962. + fi
  13963. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13964. + test $ac_status = 0; } && {
  13965. + test -z "$ac_c_werror_flag" ||
  13966. + test ! -s conftest.err
  13967. + } && test -s conftest$ac_exeext && {
  13968. + test "$cross_compiling" = yes ||
  13969. + $as_test_x conftest$ac_exeext
  13970. + }; then :
  13971. + ac_retval=0
  13972. +else
  13973. + $as_echo "$as_me: failed program was:" >&5
  13974. +sed 's/^/| /' conftest.$ac_ext >&5
  13975. +
  13976. + ac_retval=1
  13977. +fi
  13978. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  13979. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  13980. + # interfere with the next link command; also delete a directory that is
  13981. + # left behind by Apple's compiler. We do this before executing the actions.
  13982. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  13983. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13984. + as_fn_set_status $ac_retval
  13985. +
  13986. +} # ac_fn_c_try_link
  13987. +
  13988. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  13989. +# -------------------------------------------------------
  13990. +# Tests whether HEADER exists and can be compiled using the include files in
  13991. +# INCLUDES, setting the cache variable VAR accordingly.
  13992. +ac_fn_c_check_header_compile ()
  13993. +{
  13994. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13995. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13996. +$as_echo_n "checking for $2... " >&6; }
  13997. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13998. + $as_echo_n "(cached) " >&6
  13999. +else
  14000. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. +/* end confdefs.h. */
  14002. +$4
  14003. +#include <$2>
  14004. +_ACEOF
  14005. +if ac_fn_c_try_compile "$LINENO"; then :
  14006. + eval "$3=yes"
  14007. +else
  14008. + eval "$3=no"
  14009. +fi
  14010. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14011. +fi
  14012. +eval ac_res=\$$3
  14013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14014. +$as_echo "$ac_res" >&6; }
  14015. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14016. +
  14017. +} # ac_fn_c_check_header_compile
  14018. +
  14019. +# ac_fn_c_try_run LINENO
  14020. +# ----------------------
  14021. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  14022. +# that executables *can* be run.
  14023. +ac_fn_c_try_run ()
  14024. +{
  14025. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14026. + if { { ac_try="$ac_link"
  14027. +case "(($ac_try" in
  14028. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14029. + *) ac_try_echo=$ac_try;;
  14030. +esac
  14031. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14032. +$as_echo "$ac_try_echo"; } >&5
  14033. + (eval "$ac_link") 2>&5
  14034. + ac_status=$?
  14035. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14036. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  14037. + { { case "(($ac_try" in
  14038. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14039. + *) ac_try_echo=$ac_try;;
  14040. +esac
  14041. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14042. +$as_echo "$ac_try_echo"; } >&5
  14043. + (eval "$ac_try") 2>&5
  14044. + ac_status=$?
  14045. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14046. + test $ac_status = 0; }; }; then :
  14047. + ac_retval=0
  14048. +else
  14049. + $as_echo "$as_me: program exited with status $ac_status" >&5
  14050. + $as_echo "$as_me: failed program was:" >&5
  14051. +sed 's/^/| /' conftest.$ac_ext >&5
  14052. +
  14053. + ac_retval=$ac_status
  14054. +fi
  14055. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14056. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14057. + as_fn_set_status $ac_retval
  14058. +
  14059. +} # ac_fn_c_try_run
  14060. +
  14061. +# ac_fn_c_check_func LINENO FUNC VAR
  14062. +# ----------------------------------
  14063. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  14064. +ac_fn_c_check_func ()
  14065. +{
  14066. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14067. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14068. +$as_echo_n "checking for $2... " >&6; }
  14069. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14070. + $as_echo_n "(cached) " >&6
  14071. +else
  14072. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14073. +/* end confdefs.h. */
  14074. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  14075. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14076. +#define $2 innocuous_$2
  14077. +
  14078. +/* System header to define __stub macros and hopefully few prototypes,
  14079. + which can conflict with char $2 (); below.
  14080. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14081. + <limits.h> exists even on freestanding compilers. */
  14082. +
  14083. +#ifdef __STDC__
  14084. +# include <limits.h>
  14085. +#else
  14086. +# include <assert.h>
  14087. +#endif
  14088. +
  14089. +#undef $2
  14090. +
  14091. +/* Override any GCC internal prototype to avoid an error.
  14092. + Use char because int might match the return type of a GCC
  14093. + builtin and then its argument prototype would still apply. */
  14094. +#ifdef __cplusplus
  14095. +extern "C"
  14096. +#endif
  14097. +char $2 ();
  14098. +/* The GNU C library defines this for functions which it implements
  14099. + to always fail with ENOSYS. Some functions are actually named
  14100. + something starting with __ and the normal name is an alias. */
  14101. +#if defined __stub_$2 || defined __stub___$2
  14102. +choke me
  14103. +#endif
  14104. +
  14105. +int
  14106. +main ()
  14107. +{
  14108. +return $2 ();
  14109. + ;
  14110. + return 0;
  14111. +}
  14112. +_ACEOF
  14113. +if ac_fn_c_try_link "$LINENO"; then :
  14114. + eval "$3=yes"
  14115. +else
  14116. + eval "$3=no"
  14117. +fi
  14118. +rm -f core conftest.err conftest.$ac_objext \
  14119. + conftest$ac_exeext conftest.$ac_ext
  14120. +fi
  14121. +eval ac_res=\$$3
  14122. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14123. +$as_echo "$ac_res" >&6; }
  14124. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14125. +
  14126. +} # ac_fn_c_check_func
  14127. +
  14128. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  14129. +# -------------------------------------------------------
  14130. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  14131. +# the include files in INCLUDES and setting the cache variable VAR
  14132. +# accordingly.
  14133. +ac_fn_c_check_header_mongrel ()
  14134. +{
  14135. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14136. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14137. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14138. +$as_echo_n "checking for $2... " >&6; }
  14139. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14140. + $as_echo_n "(cached) " >&6
  14141. +fi
  14142. +eval ac_res=\$$3
  14143. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14144. +$as_echo "$ac_res" >&6; }
  14145. +else
  14146. + # Is the header compilable?
  14147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  14148. +$as_echo_n "checking $2 usability... " >&6; }
  14149. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14150. +/* end confdefs.h. */
  14151. +$4
  14152. +#include <$2>
  14153. +_ACEOF
  14154. +if ac_fn_c_try_compile "$LINENO"; then :
  14155. + ac_header_compiler=yes
  14156. +else
  14157. + ac_header_compiler=no
  14158. +fi
  14159. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14160. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  14161. +$as_echo "$ac_header_compiler" >&6; }
  14162. +
  14163. +# Is the header present?
  14164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  14165. +$as_echo_n "checking $2 presence... " >&6; }
  14166. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14167. +/* end confdefs.h. */
  14168. +#include <$2>
  14169. +_ACEOF
  14170. +if ac_fn_c_try_cpp "$LINENO"; then :
  14171. + ac_header_preproc=yes
  14172. +else
  14173. + ac_header_preproc=no
  14174. +fi
  14175. +rm -f conftest.err conftest.$ac_ext
  14176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  14177. +$as_echo "$ac_header_preproc" >&6; }
  14178. +
  14179. +# So? What about this header?
  14180. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  14181. + yes:no: )
  14182. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  14183. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14184. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14185. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14186. + ;;
  14187. + no:yes:* )
  14188. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  14189. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  14190. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  14191. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  14192. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  14193. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  14194. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  14195. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  14196. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14197. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14198. + ;;
  14199. +esac
  14200. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14201. +$as_echo_n "checking for $2... " >&6; }
  14202. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14203. + $as_echo_n "(cached) " >&6
  14204. +else
  14205. + eval "$3=\$ac_header_compiler"
  14206. +fi
  14207. +eval ac_res=\$$3
  14208. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14209. +$as_echo "$ac_res" >&6; }
  14210. +fi
  14211. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14212. +
  14213. +} # ac_fn_c_check_header_mongrel
  14214. +cat >config.log <<_ACEOF
  14215. +This file contains any messages produced by compilers while
  14216. +running configure, to aid debugging if configure makes a mistake.
  14217. +
  14218. +It was created by $as_me, which was
  14219. +generated by GNU Autoconf 2.65. Invocation command line was
  14220. +
  14221. + $ $0 $@
  14222. +
  14223. +_ACEOF
  14224. +exec 5>>config.log
  14225. +{
  14226. +cat <<_ASUNAME
  14227. +## --------- ##
  14228. +## Platform. ##
  14229. +## --------- ##
  14230. +
  14231. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14232. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14233. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14234. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14235. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14236. +
  14237. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14238. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14239. +
  14240. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14241. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14242. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14243. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14244. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14245. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14246. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14247. +
  14248. +_ASUNAME
  14249. +
  14250. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14251. +for as_dir in $PATH
  14252. +do
  14253. + IFS=$as_save_IFS
  14254. + test -z "$as_dir" && as_dir=.
  14255. + $as_echo "PATH: $as_dir"
  14256. + done
  14257. +IFS=$as_save_IFS
  14258. +
  14259. +} >&5
  14260. +
  14261. +cat >&5 <<_ACEOF
  14262. +
  14263. +
  14264. +## ----------- ##
  14265. +## Core tests. ##
  14266. +## ----------- ##
  14267. +
  14268. +_ACEOF
  14269. +
  14270. +
  14271. +# Keep a trace of the command line.
  14272. +# Strip out --no-create and --no-recursion so they do not pile up.
  14273. +# Strip out --silent because we don't want to record it for future runs.
  14274. +# Also quote any args containing shell meta-characters.
  14275. +# Make two passes to allow for proper duplicate-argument suppression.
  14276. +ac_configure_args=
  14277. +ac_configure_args0=
  14278. +ac_configure_args1=
  14279. +ac_must_keep_next=false
  14280. +for ac_pass in 1 2
  14281. +do
  14282. + for ac_arg
  14283. + do
  14284. + case $ac_arg in
  14285. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  14286. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14287. + | -silent | --silent | --silen | --sile | --sil)
  14288. + continue ;;
  14289. + *\'*)
  14290. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14291. + esac
  14292. + case $ac_pass in
  14293. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  14294. + 2)
  14295. + as_fn_append ac_configure_args1 " '$ac_arg'"
  14296. + if test $ac_must_keep_next = true; then
  14297. + ac_must_keep_next=false # Got value, back to normal.
  14298. + else
  14299. + case $ac_arg in
  14300. + *=* | --config-cache | -C | -disable-* | --disable-* \
  14301. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  14302. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  14303. + | -with-* | --with-* | -without-* | --without-* | --x)
  14304. + case "$ac_configure_args0 " in
  14305. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  14306. + esac
  14307. + ;;
  14308. + -* ) ac_must_keep_next=true ;;
  14309. + esac
  14310. + fi
  14311. + as_fn_append ac_configure_args " '$ac_arg'"
  14312. + ;;
  14313. + esac
  14314. + done
  14315. +done
  14316. +{ ac_configure_args0=; unset ac_configure_args0;}
  14317. +{ ac_configure_args1=; unset ac_configure_args1;}
  14318. +
  14319. +# When interrupted or exit'd, cleanup temporary files, and complete
  14320. +# config.log. We remove comments because anyway the quotes in there
  14321. +# would cause problems or look ugly.
  14322. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  14323. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  14324. +trap 'exit_status=$?
  14325. + # Save into config.log some information that might help in debugging.
  14326. + {
  14327. + echo
  14328. +
  14329. + cat <<\_ASBOX
  14330. +## ---------------- ##
  14331. +## Cache variables. ##
  14332. +## ---------------- ##
  14333. +_ASBOX
  14334. + echo
  14335. + # The following way of writing the cache mishandles newlines in values,
  14336. +(
  14337. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  14338. + eval ac_val=\$$ac_var
  14339. + case $ac_val in #(
  14340. + *${as_nl}*)
  14341. + case $ac_var in #(
  14342. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14343. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14344. + esac
  14345. + case $ac_var in #(
  14346. + _ | IFS | as_nl) ;; #(
  14347. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14348. + *) { eval $ac_var=; unset $ac_var;} ;;
  14349. + esac ;;
  14350. + esac
  14351. + done
  14352. + (set) 2>&1 |
  14353. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  14354. + *${as_nl}ac_space=\ *)
  14355. + sed -n \
  14356. + "s/'\''/'\''\\\\'\'''\''/g;
  14357. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  14358. + ;; #(
  14359. + *)
  14360. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14361. + ;;
  14362. + esac |
  14363. + sort
  14364. +)
  14365. + echo
  14366. +
  14367. + cat <<\_ASBOX
  14368. +## ----------------- ##
  14369. +## Output variables. ##
  14370. +## ----------------- ##
  14371. +_ASBOX
  14372. + echo
  14373. + for ac_var in $ac_subst_vars
  14374. + do
  14375. + eval ac_val=\$$ac_var
  14376. + case $ac_val in
  14377. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14378. + esac
  14379. + $as_echo "$ac_var='\''$ac_val'\''"
  14380. + done | sort
  14381. + echo
  14382. +
  14383. + if test -n "$ac_subst_files"; then
  14384. + cat <<\_ASBOX
  14385. +## ------------------- ##
  14386. +## File substitutions. ##
  14387. +## ------------------- ##
  14388. +_ASBOX
  14389. + echo
  14390. + for ac_var in $ac_subst_files
  14391. + do
  14392. + eval ac_val=\$$ac_var
  14393. + case $ac_val in
  14394. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14395. + esac
  14396. + $as_echo "$ac_var='\''$ac_val'\''"
  14397. + done | sort
  14398. + echo
  14399. + fi
  14400. +
  14401. + if test -s confdefs.h; then
  14402. + cat <<\_ASBOX
  14403. +## ----------- ##
  14404. +## confdefs.h. ##
  14405. +## ----------- ##
  14406. +_ASBOX
  14407. + echo
  14408. + cat confdefs.h
  14409. + echo
  14410. + fi
  14411. + test "$ac_signal" != 0 &&
  14412. + $as_echo "$as_me: caught signal $ac_signal"
  14413. + $as_echo "$as_me: exit $exit_status"
  14414. + } >&5
  14415. + rm -f core *.core core.conftest.* &&
  14416. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  14417. + exit $exit_status
  14418. +' 0
  14419. +for ac_signal in 1 2 13 15; do
  14420. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  14421. +done
  14422. +ac_signal=0
  14423. +
  14424. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  14425. +rm -f -r conftest* confdefs.h
  14426. +
  14427. +$as_echo "/* confdefs.h */" > confdefs.h
  14428. +
  14429. +# Predefined preprocessor variables.
  14430. +
  14431. +cat >>confdefs.h <<_ACEOF
  14432. +#define PACKAGE_NAME "$PACKAGE_NAME"
  14433. +_ACEOF
  14434. +
  14435. +cat >>confdefs.h <<_ACEOF
  14436. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  14437. +_ACEOF
  14438. +
  14439. +cat >>confdefs.h <<_ACEOF
  14440. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  14441. +_ACEOF
  14442. +
  14443. +cat >>confdefs.h <<_ACEOF
  14444. +#define PACKAGE_STRING "$PACKAGE_STRING"
  14445. +_ACEOF
  14446. +
  14447. +cat >>confdefs.h <<_ACEOF
  14448. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  14449. +_ACEOF
  14450. +
  14451. +cat >>confdefs.h <<_ACEOF
  14452. +#define PACKAGE_URL "$PACKAGE_URL"
  14453. +_ACEOF
  14454. +
  14455. +
  14456. +# Let the site file select an alternate cache file if it wants to.
  14457. +# Prefer an explicitly selected file to automatically selected ones.
  14458. +ac_site_file1=NONE
  14459. +ac_site_file2=NONE
  14460. +if test -n "$CONFIG_SITE"; then
  14461. + ac_site_file1=$CONFIG_SITE
  14462. +elif test "x$prefix" != xNONE; then
  14463. + ac_site_file1=$prefix/share/config.site
  14464. + ac_site_file2=$prefix/etc/config.site
  14465. +else
  14466. + ac_site_file1=$ac_default_prefix/share/config.site
  14467. + ac_site_file2=$ac_default_prefix/etc/config.site
  14468. +fi
  14469. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  14470. +do
  14471. + test "x$ac_site_file" = xNONE && continue
  14472. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  14473. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  14474. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  14475. + sed 's/^/| /' "$ac_site_file" >&5
  14476. + . "$ac_site_file"
  14477. + fi
  14478. +done
  14479. +
  14480. +if test -r "$cache_file"; then
  14481. + # Some versions of bash will fail to source /dev/null (special files
  14482. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  14483. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  14484. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  14485. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  14486. + case $cache_file in
  14487. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  14488. + *) . "./$cache_file";;
  14489. + esac
  14490. + fi
  14491. +else
  14492. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  14493. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  14494. + >$cache_file
  14495. +fi
  14496. +
  14497. +# Check that the precious variables saved in the cache have kept the same
  14498. +# value.
  14499. +ac_cache_corrupted=false
  14500. +for ac_var in $ac_precious_vars; do
  14501. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  14502. + eval ac_new_set=\$ac_env_${ac_var}_set
  14503. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  14504. + eval ac_new_val=\$ac_env_${ac_var}_value
  14505. + case $ac_old_set,$ac_new_set in
  14506. + set,)
  14507. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14508. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  14509. + ac_cache_corrupted=: ;;
  14510. + ,set)
  14511. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  14512. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  14513. + ac_cache_corrupted=: ;;
  14514. + ,);;
  14515. + *)
  14516. + if test "x$ac_old_val" != "x$ac_new_val"; then
  14517. + # differences in whitespace do not lead to failure.
  14518. + ac_old_val_w=`echo x $ac_old_val`
  14519. + ac_new_val_w=`echo x $ac_new_val`
  14520. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  14521. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  14522. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  14523. + ac_cache_corrupted=:
  14524. + else
  14525. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14526. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  14527. + eval $ac_var=\$ac_old_val
  14528. + fi
  14529. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  14530. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  14531. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  14532. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  14533. + fi;;
  14534. + esac
  14535. + # Pass precious variables to config.status.
  14536. + if test "$ac_new_set" = set; then
  14537. + case $ac_new_val in
  14538. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  14539. + *) ac_arg=$ac_var=$ac_new_val ;;
  14540. + esac
  14541. + case " $ac_configure_args " in
  14542. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  14543. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  14544. + esac
  14545. + fi
  14546. +done
  14547. +if $ac_cache_corrupted; then
  14548. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14549. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14550. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  14551. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  14552. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  14553. +fi
  14554. +## -------------------- ##
  14555. +## Main body of script. ##
  14556. +## -------------------- ##
  14557. +
  14558. +ac_ext=c
  14559. +ac_cpp='$CPP $CPPFLAGS'
  14560. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14561. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14562. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14563. +
  14564. +
  14565. +
  14566. +ac_aux_dir=
  14567. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  14568. + for ac_t in install-sh install.sh shtool; do
  14569. + if test -f "$ac_dir/$ac_t"; then
  14570. + ac_aux_dir=$ac_dir
  14571. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  14572. + break 2
  14573. + fi
  14574. + done
  14575. +done
  14576. +if test -z "$ac_aux_dir"; then
  14577. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  14578. +fi
  14579. +
  14580. +# These three variables are undocumented and unsupported,
  14581. +# and are intended to be withdrawn in a future Autoconf release.
  14582. +# They can cause serious problems if a builder's source tree is in a directory
  14583. +# whose full name contains unusual characters.
  14584. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  14585. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  14586. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  14587. +
  14588. +
  14589. +# Make sure we can run config.sub.
  14590. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  14591. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  14592. +
  14593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  14594. +$as_echo_n "checking build system type... " >&6; }
  14595. +if test "${ac_cv_build+set}" = set; then :
  14596. + $as_echo_n "(cached) " >&6
  14597. +else
  14598. + ac_build_alias=$build_alias
  14599. +test "x$ac_build_alias" = x &&
  14600. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  14601. +test "x$ac_build_alias" = x &&
  14602. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  14603. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  14604. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  14605. +
  14606. +fi
  14607. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  14608. +$as_echo "$ac_cv_build" >&6; }
  14609. +case $ac_cv_build in
  14610. +*-*-*) ;;
  14611. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  14612. +esac
  14613. +build=$ac_cv_build
  14614. +ac_save_IFS=$IFS; IFS='-'
  14615. +set x $ac_cv_build
  14616. +shift
  14617. +build_cpu=$1
  14618. +build_vendor=$2
  14619. +shift; shift
  14620. +# Remember, the first character of IFS is used to create $*,
  14621. +# except with old shells:
  14622. +build_os=$*
  14623. +IFS=$ac_save_IFS
  14624. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  14625. +
  14626. +
  14627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  14628. +$as_echo_n "checking host system type... " >&6; }
  14629. +if test "${ac_cv_host+set}" = set; then :
  14630. + $as_echo_n "(cached) " >&6
  14631. +else
  14632. + if test "x$host_alias" = x; then
  14633. + ac_cv_host=$ac_cv_build
  14634. +else
  14635. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  14636. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  14637. +fi
  14638. +
  14639. +fi
  14640. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  14641. +$as_echo "$ac_cv_host" >&6; }
  14642. +case $ac_cv_host in
  14643. +*-*-*) ;;
  14644. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  14645. +esac
  14646. +host=$ac_cv_host
  14647. +ac_save_IFS=$IFS; IFS='-'
  14648. +set x $ac_cv_host
  14649. +shift
  14650. +host_cpu=$1
  14651. +host_vendor=$2
  14652. +shift; shift
  14653. +# Remember, the first character of IFS is used to create $*,
  14654. +# except with old shells:
  14655. +host_os=$*
  14656. +IFS=$ac_save_IFS
  14657. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  14658. +
  14659. +
  14660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  14661. +$as_echo_n "checking target system type... " >&6; }
  14662. +if test "${ac_cv_target+set}" = set; then :
  14663. + $as_echo_n "(cached) " >&6
  14664. +else
  14665. + if test "x$target_alias" = x; then
  14666. + ac_cv_target=$ac_cv_host
  14667. +else
  14668. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  14669. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  14670. +fi
  14671. +
  14672. +fi
  14673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  14674. +$as_echo "$ac_cv_target" >&6; }
  14675. +case $ac_cv_target in
  14676. +*-*-*) ;;
  14677. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  14678. +esac
  14679. +target=$ac_cv_target
  14680. +ac_save_IFS=$IFS; IFS='-'
  14681. +set x $ac_cv_target
  14682. +shift
  14683. +target_cpu=$1
  14684. +target_vendor=$2
  14685. +shift; shift
  14686. +# Remember, the first character of IFS is used to create $*,
  14687. +# except with old shells:
  14688. +target_os=$*
  14689. +IFS=$ac_save_IFS
  14690. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  14691. +
  14692. +
  14693. +# The aliases save the names the user supplied, while $host etc.
  14694. +# will get canonicalized.
  14695. +test -n "$target_alias" &&
  14696. + test "$program_prefix$program_suffix$program_transform_name" = \
  14697. + NONENONEs,x,x, &&
  14698. + program_prefix=${target_alias}-
  14699. +
  14700. +ac_config_headers="$ac_config_headers config.h"
  14701. +
  14702. +
  14703. +am__api_version='1.11'
  14704. +
  14705. +# Find a good install program. We prefer a C program (faster),
  14706. +# so one script is as good as another. But avoid the broken or
  14707. +# incompatible versions:
  14708. +# SysV /etc/install, /usr/sbin/install
  14709. +# SunOS /usr/etc/install
  14710. +# IRIX /sbin/install
  14711. +# AIX /bin/install
  14712. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  14713. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14714. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14715. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14716. +# OS/2's system install, which has a completely different semantic
  14717. +# ./install, which can be erroneously created by make from ./install.sh.
  14718. +# Reject install programs that cannot install multiple files.
  14719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14720. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  14721. +if test -z "$INSTALL"; then
  14722. +if test "${ac_cv_path_install+set}" = set; then :
  14723. + $as_echo_n "(cached) " >&6
  14724. +else
  14725. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14726. +for as_dir in $PATH
  14727. +do
  14728. + IFS=$as_save_IFS
  14729. + test -z "$as_dir" && as_dir=.
  14730. + # Account for people who put trailing slashes in PATH elements.
  14731. +case $as_dir/ in #((
  14732. + ./ | .// | /[cC]/* | \
  14733. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14734. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14735. + /usr/ucb/* ) ;;
  14736. + *)
  14737. + # OSF1 and SCO ODT 3.0 have their own names for install.
  14738. + # Don't use installbsd from OSF since it installs stuff as root
  14739. + # by default.
  14740. + for ac_prog in ginstall scoinst install; do
  14741. + for ac_exec_ext in '' $ac_executable_extensions; do
  14742. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  14743. + if test $ac_prog = install &&
  14744. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14745. + # AIX install. It has an incompatible calling convention.
  14746. + :
  14747. + elif test $ac_prog = install &&
  14748. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14749. + # program-specific install script used by HP pwplus--don't use.
  14750. + :
  14751. + else
  14752. + rm -rf conftest.one conftest.two conftest.dir
  14753. + echo one > conftest.one
  14754. + echo two > conftest.two
  14755. + mkdir conftest.dir
  14756. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14757. + test -s conftest.one && test -s conftest.two &&
  14758. + test -s conftest.dir/conftest.one &&
  14759. + test -s conftest.dir/conftest.two
  14760. + then
  14761. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14762. + break 3
  14763. + fi
  14764. + fi
  14765. + fi
  14766. + done
  14767. + done
  14768. + ;;
  14769. +esac
  14770. +
  14771. + done
  14772. +IFS=$as_save_IFS
  14773. +
  14774. +rm -rf conftest.one conftest.two conftest.dir
  14775. +
  14776. +fi
  14777. + if test "${ac_cv_path_install+set}" = set; then
  14778. + INSTALL=$ac_cv_path_install
  14779. + else
  14780. + # As a last resort, use the slow shell script. Don't cache a
  14781. + # value for INSTALL within a source directory, because that will
  14782. + # break other packages using the cache if that directory is
  14783. + # removed, or if the value is a relative name.
  14784. + INSTALL=$ac_install_sh
  14785. + fi
  14786. +fi
  14787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14788. +$as_echo "$INSTALL" >&6; }
  14789. +
  14790. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14791. +# It thinks the first close brace ends the variable substitution.
  14792. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14793. +
  14794. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14795. +
  14796. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14797. +
  14798. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  14799. +$as_echo_n "checking whether build environment is sane... " >&6; }
  14800. +# Just in case
  14801. +sleep 1
  14802. +echo timestamp > conftest.file
  14803. +# Reject unsafe characters in $srcdir or the absolute working directory
  14804. +# name. Accept space and tab only in the latter.
  14805. +am_lf='
  14806. +'
  14807. +case `pwd` in
  14808. + *[\\\"\#\$\&\'\`$am_lf]*)
  14809. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  14810. +esac
  14811. +case $srcdir in
  14812. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  14813. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  14814. +esac
  14815. +
  14816. +# Do `set' in a subshell so we don't clobber the current shell's
  14817. +# arguments. Must try -L first in case configure is actually a
  14818. +# symlink; some systems play weird games with the mod time of symlinks
  14819. +# (eg FreeBSD returns the mod time of the symlink's containing
  14820. +# directory).
  14821. +if (
  14822. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  14823. + if test "$*" = "X"; then
  14824. + # -L didn't work.
  14825. + set X `ls -t "$srcdir/configure" conftest.file`
  14826. + fi
  14827. + rm -f conftest.file
  14828. + if test "$*" != "X $srcdir/configure conftest.file" \
  14829. + && test "$*" != "X conftest.file $srcdir/configure"; then
  14830. +
  14831. + # If neither matched, then we have a broken ls. This can happen
  14832. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  14833. + # broken ls alias from the environment. This has actually
  14834. + # happened. Such a system could not be considered "sane".
  14835. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  14836. +alias in your environment" "$LINENO" 5
  14837. + fi
  14838. +
  14839. + test "$2" = conftest.file
  14840. + )
  14841. +then
  14842. + # Ok.
  14843. + :
  14844. +else
  14845. + as_fn_error "newly created file is older than distributed files!
  14846. +Check your system clock" "$LINENO" 5
  14847. +fi
  14848. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14849. +$as_echo "yes" >&6; }
  14850. +test "$program_prefix" != NONE &&
  14851. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  14852. +# Use a double $ so make ignores it.
  14853. +test "$program_suffix" != NONE &&
  14854. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  14855. +# Double any \ or $.
  14856. +# By default was `s,x,x', remove it if useless.
  14857. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  14858. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  14859. +
  14860. +# expand $ac_aux_dir to an absolute path
  14861. +am_aux_dir=`cd $ac_aux_dir && pwd`
  14862. +
  14863. +if test x"${MISSING+set}" != xset; then
  14864. + case $am_aux_dir in
  14865. + *\ * | *\ *)
  14866. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  14867. + *)
  14868. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  14869. + esac
  14870. +fi
  14871. +# Use eval to expand $SHELL
  14872. +if eval "$MISSING --run true"; then
  14873. + am_missing_run="$MISSING --run "
  14874. +else
  14875. + am_missing_run=
  14876. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  14877. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  14878. +fi
  14879. +
  14880. +if test x"${install_sh}" != xset; then
  14881. + case $am_aux_dir in
  14882. + *\ * | *\ *)
  14883. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  14884. + *)
  14885. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  14886. + esac
  14887. +fi
  14888. +
  14889. +# Installed binaries are usually stripped using `strip' when the user
  14890. +# run `make install-strip'. However `strip' might not be the right
  14891. +# tool to use in cross-compilation environments, therefore Automake
  14892. +# will honor the `STRIP' environment variable to overrule this program.
  14893. +if test "$cross_compiling" != no; then
  14894. + if test -n "$ac_tool_prefix"; then
  14895. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14896. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14898. +$as_echo_n "checking for $ac_word... " >&6; }
  14899. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  14900. + $as_echo_n "(cached) " >&6
  14901. +else
  14902. + if test -n "$STRIP"; then
  14903. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14904. +else
  14905. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14906. +for as_dir in $PATH
  14907. +do
  14908. + IFS=$as_save_IFS
  14909. + test -z "$as_dir" && as_dir=.
  14910. + for ac_exec_ext in '' $ac_executable_extensions; do
  14911. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14912. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14913. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14914. + break 2
  14915. + fi
  14916. +done
  14917. + done
  14918. +IFS=$as_save_IFS
  14919. +
  14920. +fi
  14921. +fi
  14922. +STRIP=$ac_cv_prog_STRIP
  14923. +if test -n "$STRIP"; then
  14924. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  14925. +$as_echo "$STRIP" >&6; }
  14926. +else
  14927. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14928. +$as_echo "no" >&6; }
  14929. +fi
  14930. +
  14931. +
  14932. +fi
  14933. +if test -z "$ac_cv_prog_STRIP"; then
  14934. + ac_ct_STRIP=$STRIP
  14935. + # Extract the first word of "strip", so it can be a program name with args.
  14936. +set dummy strip; ac_word=$2
  14937. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14938. +$as_echo_n "checking for $ac_word... " >&6; }
  14939. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  14940. + $as_echo_n "(cached) " >&6
  14941. +else
  14942. + if test -n "$ac_ct_STRIP"; then
  14943. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14944. +else
  14945. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14946. +for as_dir in $PATH
  14947. +do
  14948. + IFS=$as_save_IFS
  14949. + test -z "$as_dir" && as_dir=.
  14950. + for ac_exec_ext in '' $ac_executable_extensions; do
  14951. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14952. + ac_cv_prog_ac_ct_STRIP="strip"
  14953. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14954. + break 2
  14955. + fi
  14956. +done
  14957. + done
  14958. +IFS=$as_save_IFS
  14959. +
  14960. +fi
  14961. +fi
  14962. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14963. +if test -n "$ac_ct_STRIP"; then
  14964. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  14965. +$as_echo "$ac_ct_STRIP" >&6; }
  14966. +else
  14967. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14968. +$as_echo "no" >&6; }
  14969. +fi
  14970. +
  14971. + if test "x$ac_ct_STRIP" = x; then
  14972. + STRIP=":"
  14973. + else
  14974. + case $cross_compiling:$ac_tool_warned in
  14975. +yes:)
  14976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14977. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14978. +ac_tool_warned=yes ;;
  14979. +esac
  14980. + STRIP=$ac_ct_STRIP
  14981. + fi
  14982. +else
  14983. + STRIP="$ac_cv_prog_STRIP"
  14984. +fi
  14985. +
  14986. +fi
  14987. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  14988. +
  14989. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  14990. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  14991. +if test -z "$MKDIR_P"; then
  14992. + if test "${ac_cv_path_mkdir+set}" = set; then :
  14993. + $as_echo_n "(cached) " >&6
  14994. +else
  14995. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14996. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  14997. +do
  14998. + IFS=$as_save_IFS
  14999. + test -z "$as_dir" && as_dir=.
  15000. + for ac_prog in mkdir gmkdir; do
  15001. + for ac_exec_ext in '' $ac_executable_extensions; do
  15002. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  15003. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  15004. + 'mkdir (GNU coreutils) '* | \
  15005. + 'mkdir (coreutils) '* | \
  15006. + 'mkdir (fileutils) '4.1*)
  15007. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  15008. + break 3;;
  15009. + esac
  15010. + done
  15011. + done
  15012. + done
  15013. +IFS=$as_save_IFS
  15014. +
  15015. +fi
  15016. +
  15017. + test -d ./--version && rmdir ./--version
  15018. + if test "${ac_cv_path_mkdir+set}" = set; then
  15019. + MKDIR_P="$ac_cv_path_mkdir -p"
  15020. + else
  15021. + # As a last resort, use the slow shell script. Don't cache a
  15022. + # value for MKDIR_P within a source directory, because that will
  15023. + # break other packages using the cache if that directory is
  15024. + # removed, or if the value is a relative name.
  15025. + MKDIR_P="$ac_install_sh -d"
  15026. + fi
  15027. +fi
  15028. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  15029. +$as_echo "$MKDIR_P" >&6; }
  15030. +
  15031. +mkdir_p="$MKDIR_P"
  15032. +case $mkdir_p in
  15033. + [\\/$]* | ?:[\\/]*) ;;
  15034. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  15035. +esac
  15036. +
  15037. +for ac_prog in gawk mawk nawk awk
  15038. +do
  15039. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  15040. +set dummy $ac_prog; ac_word=$2
  15041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15042. +$as_echo_n "checking for $ac_word... " >&6; }
  15043. +if test "${ac_cv_prog_AWK+set}" = set; then :
  15044. + $as_echo_n "(cached) " >&6
  15045. +else
  15046. + if test -n "$AWK"; then
  15047. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15048. +else
  15049. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15050. +for as_dir in $PATH
  15051. +do
  15052. + IFS=$as_save_IFS
  15053. + test -z "$as_dir" && as_dir=.
  15054. + for ac_exec_ext in '' $ac_executable_extensions; do
  15055. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15056. + ac_cv_prog_AWK="$ac_prog"
  15057. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15058. + break 2
  15059. + fi
  15060. +done
  15061. + done
  15062. +IFS=$as_save_IFS
  15063. +
  15064. +fi
  15065. +fi
  15066. +AWK=$ac_cv_prog_AWK
  15067. +if test -n "$AWK"; then
  15068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15069. +$as_echo "$AWK" >&6; }
  15070. +else
  15071. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15072. +$as_echo "no" >&6; }
  15073. +fi
  15074. +
  15075. +
  15076. + test -n "$AWK" && break
  15077. +done
  15078. +
  15079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15080. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15081. +set x ${MAKE-make}
  15082. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15083. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  15084. + $as_echo_n "(cached) " >&6
  15085. +else
  15086. + cat >conftest.make <<\_ACEOF
  15087. +SHELL = /bin/sh
  15088. +all:
  15089. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  15090. +_ACEOF
  15091. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  15092. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15093. + *@@@%%%=?*=@@@%%%*)
  15094. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  15095. + *)
  15096. + eval ac_cv_prog_make_${ac_make}_set=no;;
  15097. +esac
  15098. +rm -f conftest.make
  15099. +fi
  15100. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15101. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15102. +$as_echo "yes" >&6; }
  15103. + SET_MAKE=
  15104. +else
  15105. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15106. +$as_echo "no" >&6; }
  15107. + SET_MAKE="MAKE=${MAKE-make}"
  15108. +fi
  15109. +
  15110. +rm -rf .tst 2>/dev/null
  15111. +mkdir .tst 2>/dev/null
  15112. +if test -d .tst; then
  15113. + am__leading_dot=.
  15114. +else
  15115. + am__leading_dot=_
  15116. +fi
  15117. +rmdir .tst 2>/dev/null
  15118. +
  15119. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  15120. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  15121. + # is not polluted with repeated "-I."
  15122. + am__isrc=' -I$(srcdir)'
  15123. + # test to see if srcdir already configured
  15124. + if test -f $srcdir/config.status; then
  15125. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  15126. + fi
  15127. +fi
  15128. +
  15129. +# test whether we have cygpath
  15130. +if test -z "$CYGPATH_W"; then
  15131. + if (cygpath --version) >/dev/null 2>/dev/null; then
  15132. + CYGPATH_W='cygpath -w'
  15133. + else
  15134. + CYGPATH_W=echo
  15135. + fi
  15136. +fi
  15137. +
  15138. +
  15139. +# Define the identity of the package.
  15140. + PACKAGE=libvorbisidec
  15141. + VERSION=1.2.0
  15142. +
  15143. +
  15144. +cat >>confdefs.h <<_ACEOF
  15145. +#define PACKAGE "$PACKAGE"
  15146. +_ACEOF
  15147. +
  15148. +
  15149. +cat >>confdefs.h <<_ACEOF
  15150. +#define VERSION "$VERSION"
  15151. +_ACEOF
  15152. +
  15153. +# Some tools Automake needs.
  15154. +
  15155. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  15156. +
  15157. +
  15158. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  15159. +
  15160. +
  15161. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  15162. +
  15163. +
  15164. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  15165. +
  15166. +
  15167. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  15168. +
  15169. +# We need awk for the "check" target. The system "awk" is bad on
  15170. +# some platforms.
  15171. +# Always define AMTAR for backward compatibility.
  15172. +
  15173. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  15174. +
  15175. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  15176. +
  15177. +
  15178. +
  15179. +
  15180. +
  15181. +
  15182. +
  15183. +V_LIB_CURRENT=1
  15184. +V_LIB_REVISION=2
  15185. +V_LIB_AGE=0
  15186. +
  15187. +
  15188. +
  15189. +
  15190. +
  15191. +cflags_save="$CFLAGS"
  15192. +ac_ext=c
  15193. +ac_cpp='$CPP $CPPFLAGS'
  15194. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15195. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15196. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15197. +if test -n "$ac_tool_prefix"; then
  15198. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  15199. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  15200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15201. +$as_echo_n "checking for $ac_word... " >&6; }
  15202. +if test "${ac_cv_prog_CC+set}" = set; then :
  15203. + $as_echo_n "(cached) " >&6
  15204. +else
  15205. + if test -n "$CC"; then
  15206. + ac_cv_prog_CC="$CC" # Let the user override the test.
  15207. +else
  15208. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15209. +for as_dir in $PATH
  15210. +do
  15211. + IFS=$as_save_IFS
  15212. + test -z "$as_dir" && as_dir=.
  15213. + for ac_exec_ext in '' $ac_executable_extensions; do
  15214. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15215. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  15216. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15217. + break 2
  15218. + fi
  15219. +done
  15220. + done
  15221. +IFS=$as_save_IFS
  15222. +
  15223. +fi
  15224. +fi
  15225. +CC=$ac_cv_prog_CC
  15226. +if test -n "$CC"; then
  15227. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15228. +$as_echo "$CC" >&6; }
  15229. +else
  15230. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15231. +$as_echo "no" >&6; }
  15232. +fi
  15233. +
  15234. +
  15235. +fi
  15236. +if test -z "$ac_cv_prog_CC"; then
  15237. + ac_ct_CC=$CC
  15238. + # Extract the first word of "gcc", so it can be a program name with args.
  15239. +set dummy gcc; ac_word=$2
  15240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15241. +$as_echo_n "checking for $ac_word... " >&6; }
  15242. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15243. + $as_echo_n "(cached) " >&6
  15244. +else
  15245. + if test -n "$ac_ct_CC"; then
  15246. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  15247. +else
  15248. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15249. +for as_dir in $PATH
  15250. +do
  15251. + IFS=$as_save_IFS
  15252. + test -z "$as_dir" && as_dir=.
  15253. + for ac_exec_ext in '' $ac_executable_extensions; do
  15254. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15255. + ac_cv_prog_ac_ct_CC="gcc"
  15256. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15257. + break 2
  15258. + fi
  15259. +done
  15260. + done
  15261. +IFS=$as_save_IFS
  15262. +
  15263. +fi
  15264. +fi
  15265. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15266. +if test -n "$ac_ct_CC"; then
  15267. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15268. +$as_echo "$ac_ct_CC" >&6; }
  15269. +else
  15270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15271. +$as_echo "no" >&6; }
  15272. +fi
  15273. +
  15274. + if test "x$ac_ct_CC" = x; then
  15275. + CC=""
  15276. + else
  15277. + case $cross_compiling:$ac_tool_warned in
  15278. +yes:)
  15279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15280. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15281. +ac_tool_warned=yes ;;
  15282. +esac
  15283. + CC=$ac_ct_CC
  15284. + fi
  15285. +else
  15286. + CC="$ac_cv_prog_CC"
  15287. +fi
  15288. +
  15289. +if test -z "$CC"; then
  15290. + if test -n "$ac_tool_prefix"; then
  15291. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  15292. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  15293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15294. +$as_echo_n "checking for $ac_word... " >&6; }
  15295. +if test "${ac_cv_prog_CC+set}" = set; then :
  15296. + $as_echo_n "(cached) " >&6
  15297. +else
  15298. + if test -n "$CC"; then
  15299. + ac_cv_prog_CC="$CC" # Let the user override the test.
  15300. +else
  15301. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15302. +for as_dir in $PATH
  15303. +do
  15304. + IFS=$as_save_IFS
  15305. + test -z "$as_dir" && as_dir=.
  15306. + for ac_exec_ext in '' $ac_executable_extensions; do
  15307. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15308. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  15309. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15310. + break 2
  15311. + fi
  15312. +done
  15313. + done
  15314. +IFS=$as_save_IFS
  15315. +
  15316. +fi
  15317. +fi
  15318. +CC=$ac_cv_prog_CC
  15319. +if test -n "$CC"; then
  15320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15321. +$as_echo "$CC" >&6; }
  15322. +else
  15323. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15324. +$as_echo "no" >&6; }
  15325. +fi
  15326. +
  15327. +
  15328. + fi
  15329. +fi
  15330. +if test -z "$CC"; then
  15331. + # Extract the first word of "cc", so it can be a program name with args.
  15332. +set dummy cc; ac_word=$2
  15333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15334. +$as_echo_n "checking for $ac_word... " >&6; }
  15335. +if test "${ac_cv_prog_CC+set}" = set; then :
  15336. + $as_echo_n "(cached) " >&6
  15337. +else
  15338. + if test -n "$CC"; then
  15339. + ac_cv_prog_CC="$CC" # Let the user override the test.
  15340. +else
  15341. + ac_prog_rejected=no
  15342. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15343. +for as_dir in $PATH
  15344. +do
  15345. + IFS=$as_save_IFS
  15346. + test -z "$as_dir" && as_dir=.
  15347. + for ac_exec_ext in '' $ac_executable_extensions; do
  15348. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15349. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  15350. + ac_prog_rejected=yes
  15351. + continue
  15352. + fi
  15353. + ac_cv_prog_CC="cc"
  15354. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15355. + break 2
  15356. + fi
  15357. +done
  15358. + done
  15359. +IFS=$as_save_IFS
  15360. +
  15361. +if test $ac_prog_rejected = yes; then
  15362. + # We found a bogon in the path, so make sure we never use it.
  15363. + set dummy $ac_cv_prog_CC
  15364. + shift
  15365. + if test $# != 0; then
  15366. + # We chose a different compiler from the bogus one.
  15367. + # However, it has the same basename, so the bogon will be chosen
  15368. + # first if we set CC to just the basename; use the full file name.
  15369. + shift
  15370. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  15371. + fi
  15372. +fi
  15373. +fi
  15374. +fi
  15375. +CC=$ac_cv_prog_CC
  15376. +if test -n "$CC"; then
  15377. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15378. +$as_echo "$CC" >&6; }
  15379. +else
  15380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15381. +$as_echo "no" >&6; }
  15382. +fi
  15383. +
  15384. +
  15385. +fi
  15386. +if test -z "$CC"; then
  15387. + if test -n "$ac_tool_prefix"; then
  15388. + for ac_prog in cl.exe
  15389. + do
  15390. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15391. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15393. +$as_echo_n "checking for $ac_word... " >&6; }
  15394. +if test "${ac_cv_prog_CC+set}" = set; then :
  15395. + $as_echo_n "(cached) " >&6
  15396. +else
  15397. + if test -n "$CC"; then
  15398. + ac_cv_prog_CC="$CC" # Let the user override the test.
  15399. +else
  15400. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15401. +for as_dir in $PATH
  15402. +do
  15403. + IFS=$as_save_IFS
  15404. + test -z "$as_dir" && as_dir=.
  15405. + for ac_exec_ext in '' $ac_executable_extensions; do
  15406. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15407. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  15408. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15409. + break 2
  15410. + fi
  15411. +done
  15412. + done
  15413. +IFS=$as_save_IFS
  15414. +
  15415. +fi
  15416. +fi
  15417. +CC=$ac_cv_prog_CC
  15418. +if test -n "$CC"; then
  15419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15420. +$as_echo "$CC" >&6; }
  15421. +else
  15422. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15423. +$as_echo "no" >&6; }
  15424. +fi
  15425. +
  15426. +
  15427. + test -n "$CC" && break
  15428. + done
  15429. +fi
  15430. +if test -z "$CC"; then
  15431. + ac_ct_CC=$CC
  15432. + for ac_prog in cl.exe
  15433. +do
  15434. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  15435. +set dummy $ac_prog; ac_word=$2
  15436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15437. +$as_echo_n "checking for $ac_word... " >&6; }
  15438. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15439. + $as_echo_n "(cached) " >&6
  15440. +else
  15441. + if test -n "$ac_ct_CC"; then
  15442. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  15443. +else
  15444. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15445. +for as_dir in $PATH
  15446. +do
  15447. + IFS=$as_save_IFS
  15448. + test -z "$as_dir" && as_dir=.
  15449. + for ac_exec_ext in '' $ac_executable_extensions; do
  15450. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15451. + ac_cv_prog_ac_ct_CC="$ac_prog"
  15452. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15453. + break 2
  15454. + fi
  15455. +done
  15456. + done
  15457. +IFS=$as_save_IFS
  15458. +
  15459. +fi
  15460. +fi
  15461. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15462. +if test -n "$ac_ct_CC"; then
  15463. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15464. +$as_echo "$ac_ct_CC" >&6; }
  15465. +else
  15466. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15467. +$as_echo "no" >&6; }
  15468. +fi
  15469. +
  15470. +
  15471. + test -n "$ac_ct_CC" && break
  15472. +done
  15473. +
  15474. + if test "x$ac_ct_CC" = x; then
  15475. + CC=""
  15476. + else
  15477. + case $cross_compiling:$ac_tool_warned in
  15478. +yes:)
  15479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15480. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15481. +ac_tool_warned=yes ;;
  15482. +esac
  15483. + CC=$ac_ct_CC
  15484. + fi
  15485. +fi
  15486. +
  15487. +fi
  15488. +
  15489. +
  15490. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15491. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15492. +as_fn_error "no acceptable C compiler found in \$PATH
  15493. +See \`config.log' for more details." "$LINENO" 5; }
  15494. +
  15495. +# Provide some information about the compiler.
  15496. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  15497. +set X $ac_compile
  15498. +ac_compiler=$2
  15499. +for ac_option in --version -v -V -qversion; do
  15500. + { { ac_try="$ac_compiler $ac_option >&5"
  15501. +case "(($ac_try" in
  15502. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15503. + *) ac_try_echo=$ac_try;;
  15504. +esac
  15505. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15506. +$as_echo "$ac_try_echo"; } >&5
  15507. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  15508. + ac_status=$?
  15509. + if test -s conftest.err; then
  15510. + sed '10a\
  15511. +... rest of stderr output deleted ...
  15512. + 10q' conftest.err >conftest.er1
  15513. + cat conftest.er1 >&5
  15514. + fi
  15515. + rm -f conftest.er1 conftest.err
  15516. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15517. + test $ac_status = 0; }
  15518. +done
  15519. +
  15520. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15521. +/* end confdefs.h. */
  15522. +
  15523. +int
  15524. +main ()
  15525. +{
  15526. +
  15527. + ;
  15528. + return 0;
  15529. +}
  15530. +_ACEOF
  15531. +ac_clean_files_save=$ac_clean_files
  15532. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  15533. +# Try to create an executable without -o first, disregard a.out.
  15534. +# It will help us diagnose broken compilers, and finding out an intuition
  15535. +# of exeext.
  15536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  15537. +$as_echo_n "checking whether the C compiler works... " >&6; }
  15538. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  15539. +
  15540. +# The possible output files:
  15541. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  15542. +
  15543. +ac_rmfiles=
  15544. +for ac_file in $ac_files
  15545. +do
  15546. + case $ac_file in
  15547. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  15548. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  15549. + esac
  15550. +done
  15551. +rm -f $ac_rmfiles
  15552. +
  15553. +if { { ac_try="$ac_link_default"
  15554. +case "(($ac_try" in
  15555. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15556. + *) ac_try_echo=$ac_try;;
  15557. +esac
  15558. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15559. +$as_echo "$ac_try_echo"; } >&5
  15560. + (eval "$ac_link_default") 2>&5
  15561. + ac_status=$?
  15562. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15563. + test $ac_status = 0; }; then :
  15564. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  15565. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  15566. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  15567. +# so that the user can short-circuit this test for compilers unknown to
  15568. +# Autoconf.
  15569. +for ac_file in $ac_files ''
  15570. +do
  15571. + test -f "$ac_file" || continue
  15572. + case $ac_file in
  15573. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  15574. + ;;
  15575. + [ab].out )
  15576. + # We found the default executable, but exeext='' is most
  15577. + # certainly right.
  15578. + break;;
  15579. + *.* )
  15580. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  15581. + then :; else
  15582. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  15583. + fi
  15584. + # We set ac_cv_exeext here because the later test for it is not
  15585. + # safe: cross compilers may not add the suffix if given an `-o'
  15586. + # argument, so we may need to know it at that point already.
  15587. + # Even if this section looks crufty: it has the advantage of
  15588. + # actually working.
  15589. + break;;
  15590. + * )
  15591. + break;;
  15592. + esac
  15593. +done
  15594. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  15595. +
  15596. +else
  15597. + ac_file=''
  15598. +fi
  15599. +if test -z "$ac_file"; then :
  15600. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15601. +$as_echo "no" >&6; }
  15602. +$as_echo "$as_me: failed program was:" >&5
  15603. +sed 's/^/| /' conftest.$ac_ext >&5
  15604. +
  15605. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15606. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15607. +{ as_fn_set_status 77
  15608. +as_fn_error "C compiler cannot create executables
  15609. +See \`config.log' for more details." "$LINENO" 5; }; }
  15610. +else
  15611. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15612. +$as_echo "yes" >&6; }
  15613. +fi
  15614. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  15615. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  15616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  15617. +$as_echo "$ac_file" >&6; }
  15618. +ac_exeext=$ac_cv_exeext
  15619. +
  15620. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  15621. +ac_clean_files=$ac_clean_files_save
  15622. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  15623. +$as_echo_n "checking for suffix of executables... " >&6; }
  15624. +if { { ac_try="$ac_link"
  15625. +case "(($ac_try" in
  15626. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15627. + *) ac_try_echo=$ac_try;;
  15628. +esac
  15629. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15630. +$as_echo "$ac_try_echo"; } >&5
  15631. + (eval "$ac_link") 2>&5
  15632. + ac_status=$?
  15633. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15634. + test $ac_status = 0; }; then :
  15635. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  15636. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  15637. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  15638. +# `rm'.
  15639. +for ac_file in conftest.exe conftest conftest.*; do
  15640. + test -f "$ac_file" || continue
  15641. + case $ac_file in
  15642. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  15643. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  15644. + break;;
  15645. + * ) break;;
  15646. + esac
  15647. +done
  15648. +else
  15649. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15650. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15651. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  15652. +See \`config.log' for more details." "$LINENO" 5; }
  15653. +fi
  15654. +rm -f conftest conftest$ac_cv_exeext
  15655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  15656. +$as_echo "$ac_cv_exeext" >&6; }
  15657. +
  15658. +rm -f conftest.$ac_ext
  15659. +EXEEXT=$ac_cv_exeext
  15660. +ac_exeext=$EXEEXT
  15661. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15662. +/* end confdefs.h. */
  15663. +#include <stdio.h>
  15664. +int
  15665. +main ()
  15666. +{
  15667. +FILE *f = fopen ("conftest.out", "w");
  15668. + return ferror (f) || fclose (f) != 0;
  15669. +
  15670. + ;
  15671. + return 0;
  15672. +}
  15673. +_ACEOF
  15674. +ac_clean_files="$ac_clean_files conftest.out"
  15675. +# Check that the compiler produces executables we can run. If not, either
  15676. +# the compiler is broken, or we cross compile.
  15677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  15678. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  15679. +if test "$cross_compiling" != yes; then
  15680. + { { ac_try="$ac_link"
  15681. +case "(($ac_try" in
  15682. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15683. + *) ac_try_echo=$ac_try;;
  15684. +esac
  15685. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15686. +$as_echo "$ac_try_echo"; } >&5
  15687. + (eval "$ac_link") 2>&5
  15688. + ac_status=$?
  15689. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15690. + test $ac_status = 0; }
  15691. + if { ac_try='./conftest$ac_cv_exeext'
  15692. + { { case "(($ac_try" in
  15693. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15694. + *) ac_try_echo=$ac_try;;
  15695. +esac
  15696. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15697. +$as_echo "$ac_try_echo"; } >&5
  15698. + (eval "$ac_try") 2>&5
  15699. + ac_status=$?
  15700. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15701. + test $ac_status = 0; }; }; then
  15702. + cross_compiling=no
  15703. + else
  15704. + if test "$cross_compiling" = maybe; then
  15705. + cross_compiling=yes
  15706. + else
  15707. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15708. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15709. +as_fn_error "cannot run C compiled programs.
  15710. +If you meant to cross compile, use \`--host'.
  15711. +See \`config.log' for more details." "$LINENO" 5; }
  15712. + fi
  15713. + fi
  15714. +fi
  15715. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  15716. +$as_echo "$cross_compiling" >&6; }
  15717. +
  15718. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  15719. +ac_clean_files=$ac_clean_files_save
  15720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  15721. +$as_echo_n "checking for suffix of object files... " >&6; }
  15722. +if test "${ac_cv_objext+set}" = set; then :
  15723. + $as_echo_n "(cached) " >&6
  15724. +else
  15725. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15726. +/* end confdefs.h. */
  15727. +
  15728. +int
  15729. +main ()
  15730. +{
  15731. +
  15732. + ;
  15733. + return 0;
  15734. +}
  15735. +_ACEOF
  15736. +rm -f conftest.o conftest.obj
  15737. +if { { ac_try="$ac_compile"
  15738. +case "(($ac_try" in
  15739. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15740. + *) ac_try_echo=$ac_try;;
  15741. +esac
  15742. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15743. +$as_echo "$ac_try_echo"; } >&5
  15744. + (eval "$ac_compile") 2>&5
  15745. + ac_status=$?
  15746. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15747. + test $ac_status = 0; }; then :
  15748. + for ac_file in conftest.o conftest.obj conftest.*; do
  15749. + test -f "$ac_file" || continue;
  15750. + case $ac_file in
  15751. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  15752. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  15753. + break;;
  15754. + esac
  15755. +done
  15756. +else
  15757. + $as_echo "$as_me: failed program was:" >&5
  15758. +sed 's/^/| /' conftest.$ac_ext >&5
  15759. +
  15760. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15761. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15762. +as_fn_error "cannot compute suffix of object files: cannot compile
  15763. +See \`config.log' for more details." "$LINENO" 5; }
  15764. +fi
  15765. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  15766. +fi
  15767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  15768. +$as_echo "$ac_cv_objext" >&6; }
  15769. +OBJEXT=$ac_cv_objext
  15770. +ac_objext=$OBJEXT
  15771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  15772. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  15773. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  15774. + $as_echo_n "(cached) " >&6
  15775. +else
  15776. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15777. +/* end confdefs.h. */
  15778. +
  15779. +int
  15780. +main ()
  15781. +{
  15782. +#ifndef __GNUC__
  15783. + choke me
  15784. +#endif
  15785. +
  15786. + ;
  15787. + return 0;
  15788. +}
  15789. +_ACEOF
  15790. +if ac_fn_c_try_compile "$LINENO"; then :
  15791. + ac_compiler_gnu=yes
  15792. +else
  15793. + ac_compiler_gnu=no
  15794. +fi
  15795. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15796. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  15797. +
  15798. +fi
  15799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  15800. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  15801. +if test $ac_compiler_gnu = yes; then
  15802. + GCC=yes
  15803. +else
  15804. + GCC=
  15805. +fi
  15806. +ac_test_CFLAGS=${CFLAGS+set}
  15807. +ac_save_CFLAGS=$CFLAGS
  15808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  15809. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  15810. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  15811. + $as_echo_n "(cached) " >&6
  15812. +else
  15813. + ac_save_c_werror_flag=$ac_c_werror_flag
  15814. + ac_c_werror_flag=yes
  15815. + ac_cv_prog_cc_g=no
  15816. + CFLAGS="-g"
  15817. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. +/* end confdefs.h. */
  15819. +
  15820. +int
  15821. +main ()
  15822. +{
  15823. +
  15824. + ;
  15825. + return 0;
  15826. +}
  15827. +_ACEOF
  15828. +if ac_fn_c_try_compile "$LINENO"; then :
  15829. + ac_cv_prog_cc_g=yes
  15830. +else
  15831. + CFLAGS=""
  15832. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15833. +/* end confdefs.h. */
  15834. +
  15835. +int
  15836. +main ()
  15837. +{
  15838. +
  15839. + ;
  15840. + return 0;
  15841. +}
  15842. +_ACEOF
  15843. +if ac_fn_c_try_compile "$LINENO"; then :
  15844. +
  15845. +else
  15846. + ac_c_werror_flag=$ac_save_c_werror_flag
  15847. + CFLAGS="-g"
  15848. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15849. +/* end confdefs.h. */
  15850. +
  15851. +int
  15852. +main ()
  15853. +{
  15854. +
  15855. + ;
  15856. + return 0;
  15857. +}
  15858. +_ACEOF
  15859. +if ac_fn_c_try_compile "$LINENO"; then :
  15860. + ac_cv_prog_cc_g=yes
  15861. +fi
  15862. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15863. +fi
  15864. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15865. +fi
  15866. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15867. + ac_c_werror_flag=$ac_save_c_werror_flag
  15868. +fi
  15869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  15870. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  15871. +if test "$ac_test_CFLAGS" = set; then
  15872. + CFLAGS=$ac_save_CFLAGS
  15873. +elif test $ac_cv_prog_cc_g = yes; then
  15874. + if test "$GCC" = yes; then
  15875. + CFLAGS="-g -O2"
  15876. + else
  15877. + CFLAGS="-g"
  15878. + fi
  15879. +else
  15880. + if test "$GCC" = yes; then
  15881. + CFLAGS="-O2"
  15882. + else
  15883. + CFLAGS=
  15884. + fi
  15885. +fi
  15886. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  15887. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  15888. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  15889. + $as_echo_n "(cached) " >&6
  15890. +else
  15891. + ac_cv_prog_cc_c89=no
  15892. +ac_save_CC=$CC
  15893. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. +/* end confdefs.h. */
  15895. +#include <stdarg.h>
  15896. +#include <stdio.h>
  15897. +#include <sys/types.h>
  15898. +#include <sys/stat.h>
  15899. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  15900. +struct buf { int x; };
  15901. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  15902. +static char *e (p, i)
  15903. + char **p;
  15904. + int i;
  15905. +{
  15906. + return p[i];
  15907. +}
  15908. +static char *f (char * (*g) (char **, int), char **p, ...)
  15909. +{
  15910. + char *s;
  15911. + va_list v;
  15912. + va_start (v,p);
  15913. + s = g (p, va_arg (v,int));
  15914. + va_end (v);
  15915. + return s;
  15916. +}
  15917. +
  15918. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  15919. + function prototypes and stuff, but not '\xHH' hex character constants.
  15920. + These don't provoke an error unfortunately, instead are silently treated
  15921. + as 'x'. The following induces an error, until -std is added to get
  15922. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  15923. + array size at least. It's necessary to write '\x00'==0 to get something
  15924. + that's true only with -std. */
  15925. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  15926. +
  15927. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  15928. + inside strings and character constants. */
  15929. +#define FOO(x) 'x'
  15930. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  15931. +
  15932. +int test (int i, double x);
  15933. +struct s1 {int (*f) (int a);};
  15934. +struct s2 {int (*f) (double a);};
  15935. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  15936. +int argc;
  15937. +char **argv;
  15938. +int
  15939. +main ()
  15940. +{
  15941. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  15942. + ;
  15943. + return 0;
  15944. +}
  15945. +_ACEOF
  15946. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  15947. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  15948. +do
  15949. + CC="$ac_save_CC $ac_arg"
  15950. + if ac_fn_c_try_compile "$LINENO"; then :
  15951. + ac_cv_prog_cc_c89=$ac_arg
  15952. +fi
  15953. +rm -f core conftest.err conftest.$ac_objext
  15954. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  15955. +done
  15956. +rm -f conftest.$ac_ext
  15957. +CC=$ac_save_CC
  15958. +
  15959. +fi
  15960. +# AC_CACHE_VAL
  15961. +case "x$ac_cv_prog_cc_c89" in
  15962. + x)
  15963. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  15964. +$as_echo "none needed" >&6; } ;;
  15965. + xno)
  15966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  15967. +$as_echo "unsupported" >&6; } ;;
  15968. + *)
  15969. + CC="$CC $ac_cv_prog_cc_c89"
  15970. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  15971. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  15972. +esac
  15973. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  15974. +
  15975. +fi
  15976. +
  15977. +ac_ext=c
  15978. +ac_cpp='$CPP $CPPFLAGS'
  15979. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15980. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15981. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15982. +DEPDIR="${am__leading_dot}deps"
  15983. +
  15984. +ac_config_commands="$ac_config_commands depfiles"
  15985. +
  15986. +
  15987. +am_make=${MAKE-make}
  15988. +cat > confinc << 'END'
  15989. +am__doit:
  15990. + @echo this is the am__doit target
  15991. +.PHONY: am__doit
  15992. +END
  15993. +# If we don't find an include directive, just comment out the code.
  15994. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  15995. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  15996. +am__include="#"
  15997. +am__quote=
  15998. +_am_result=none
  15999. +# First try GNU make style include.
  16000. +echo "include confinc" > confmf
  16001. +# Ignore all kinds of additional output from `make'.
  16002. +case `$am_make -s -f confmf 2> /dev/null` in #(
  16003. +*the\ am__doit\ target*)
  16004. + am__include=include
  16005. + am__quote=
  16006. + _am_result=GNU
  16007. + ;;
  16008. +esac
  16009. +# Now try BSD make style include.
  16010. +if test "$am__include" = "#"; then
  16011. + echo '.include "confinc"' > confmf
  16012. + case `$am_make -s -f confmf 2> /dev/null` in #(
  16013. + *the\ am__doit\ target*)
  16014. + am__include=.include
  16015. + am__quote="\""
  16016. + _am_result=BSD
  16017. + ;;
  16018. + esac
  16019. +fi
  16020. +
  16021. +
  16022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  16023. +$as_echo "$_am_result" >&6; }
  16024. +rm -f confinc confmf
  16025. +
  16026. +# Check whether --enable-dependency-tracking was given.
  16027. +if test "${enable_dependency_tracking+set}" = set; then :
  16028. + enableval=$enable_dependency_tracking;
  16029. +fi
  16030. +
  16031. +if test "x$enable_dependency_tracking" != xno; then
  16032. + am_depcomp="$ac_aux_dir/depcomp"
  16033. + AMDEPBACKSLASH='\'
  16034. +fi
  16035. + if test "x$enable_dependency_tracking" != xno; then
  16036. + AMDEP_TRUE=
  16037. + AMDEP_FALSE='#'
  16038. +else
  16039. + AMDEP_TRUE='#'
  16040. + AMDEP_FALSE=
  16041. +fi
  16042. +
  16043. +
  16044. +
  16045. +depcc="$CC" am_compiler_list=
  16046. +
  16047. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  16048. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  16049. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  16050. + $as_echo_n "(cached) " >&6
  16051. +else
  16052. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16053. + # We make a subdir and do the tests there. Otherwise we can end up
  16054. + # making bogus files that we don't know about and never remove. For
  16055. + # instance it was reported that on HP-UX the gcc test will end up
  16056. + # making a dummy file named `D' -- because `-MD' means `put the output
  16057. + # in D'.
  16058. + mkdir conftest.dir
  16059. + # Copy depcomp to subdir because otherwise we won't find it if we're
  16060. + # using a relative directory.
  16061. + cp "$am_depcomp" conftest.dir
  16062. + cd conftest.dir
  16063. + # We will build objects and dependencies in a subdirectory because
  16064. + # it helps to detect inapplicable dependency modes. For instance
  16065. + # both Tru64's cc and ICC support -MD to output dependencies as a
  16066. + # side effect of compilation, but ICC will put the dependencies in
  16067. + # the current directory while Tru64 will put them in the object
  16068. + # directory.
  16069. + mkdir sub
  16070. +
  16071. + am_cv_CC_dependencies_compiler_type=none
  16072. + if test "$am_compiler_list" = ""; then
  16073. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16074. + fi
  16075. + am__universal=false
  16076. + case " $depcc " in #(
  16077. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  16078. + esac
  16079. +
  16080. + for depmode in $am_compiler_list; do
  16081. + # Setup a source with many dependencies, because some compilers
  16082. + # like to wrap large dependency lists on column 80 (with \), and
  16083. + # we should not choose a depcomp mode which is confused by this.
  16084. + #
  16085. + # We need to recreate these files for each test, as the compiler may
  16086. + # overwrite some of them when testing with obscure command lines.
  16087. + # This happens at least with the AIX C compiler.
  16088. + : > sub/conftest.c
  16089. + for i in 1 2 3 4 5 6; do
  16090. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16091. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16092. + # Solaris 8's {/usr,}/bin/sh.
  16093. + touch sub/conftst$i.h
  16094. + done
  16095. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16096. +
  16097. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16098. + # mode. It turns out that the SunPro C++ compiler does not properly
  16099. + # handle `-M -o', and we need to detect this. Also, some Intel
  16100. + # versions had trouble with output in subdirs
  16101. + am__obj=sub/conftest.${OBJEXT-o}
  16102. + am__minus_obj="-o $am__obj"
  16103. + case $depmode in
  16104. + gcc)
  16105. + # This depmode causes a compiler race in universal mode.
  16106. + test "$am__universal" = false || continue
  16107. + ;;
  16108. + nosideeffect)
  16109. + # after this tag, mechanisms are not by side-effect, so they'll
  16110. + # only be used when explicitly requested
  16111. + if test "x$enable_dependency_tracking" = xyes; then
  16112. + continue
  16113. + else
  16114. + break
  16115. + fi
  16116. + ;;
  16117. + msvisualcpp | msvcmsys)
  16118. + # This compiler won't grok `-c -o', but also, the minuso test has
  16119. + # not run yet. These depmodes are late enough in the game, and
  16120. + # so weak that their functioning should not be impacted.
  16121. + am__obj=conftest.${OBJEXT-o}
  16122. + am__minus_obj=
  16123. + ;;
  16124. + none) break ;;
  16125. + esac
  16126. + if depmode=$depmode \
  16127. + source=sub/conftest.c object=$am__obj \
  16128. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16129. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  16130. + >/dev/null 2>conftest.err &&
  16131. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16132. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16133. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  16134. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16135. + # icc doesn't choke on unknown options, it will just issue warnings
  16136. + # or remarks (even with -Werror). So we grep stderr for any message
  16137. + # that says an option was ignored or not supported.
  16138. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  16139. + # icc: Command line warning: ignoring option '-M'; no argument required
  16140. + # The diagnosis changed in icc 8.0:
  16141. + # icc: Command line remark: option '-MP' not supported
  16142. + if (grep 'ignoring option' conftest.err ||
  16143. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16144. + am_cv_CC_dependencies_compiler_type=$depmode
  16145. + break
  16146. + fi
  16147. + fi
  16148. + done
  16149. +
  16150. + cd ..
  16151. + rm -rf conftest.dir
  16152. +else
  16153. + am_cv_CC_dependencies_compiler_type=none
  16154. +fi
  16155. +
  16156. +fi
  16157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  16158. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  16159. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16160. +
  16161. + if
  16162. + test "x$enable_dependency_tracking" != xno \
  16163. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  16164. + am__fastdepCC_TRUE=
  16165. + am__fastdepCC_FALSE='#'
  16166. +else
  16167. + am__fastdepCC_TRUE='#'
  16168. + am__fastdepCC_FALSE=
  16169. +fi
  16170. +
  16171. +
  16172. +ac_ext=c
  16173. +ac_cpp='$CPP $CPPFLAGS'
  16174. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16175. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16176. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16177. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16178. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  16179. +# On Suns, sometimes $CPP names a directory.
  16180. +if test -n "$CPP" && test -d "$CPP"; then
  16181. + CPP=
  16182. +fi
  16183. +if test -z "$CPP"; then
  16184. + if test "${ac_cv_prog_CPP+set}" = set; then :
  16185. + $as_echo_n "(cached) " >&6
  16186. +else
  16187. + # Double quotes because CPP needs to be expanded
  16188. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  16189. + do
  16190. + ac_preproc_ok=false
  16191. +for ac_c_preproc_warn_flag in '' yes
  16192. +do
  16193. + # Use a header file that comes with gcc, so configuring glibc
  16194. + # with a fresh cross-compiler works.
  16195. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16196. + # <limits.h> exists even on freestanding compilers.
  16197. + # On the NeXT, cc -E runs the code through the compiler's parser,
  16198. + # not just through cpp. "Syntax error" is here to catch this case.
  16199. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. +/* end confdefs.h. */
  16201. +#ifdef __STDC__
  16202. +# include <limits.h>
  16203. +#else
  16204. +# include <assert.h>
  16205. +#endif
  16206. + Syntax error
  16207. +_ACEOF
  16208. +if ac_fn_c_try_cpp "$LINENO"; then :
  16209. +
  16210. +else
  16211. + # Broken: fails on valid input.
  16212. +continue
  16213. +fi
  16214. +rm -f conftest.err conftest.$ac_ext
  16215. +
  16216. + # OK, works on sane cases. Now check whether nonexistent headers
  16217. + # can be detected and how.
  16218. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16219. +/* end confdefs.h. */
  16220. +#include <ac_nonexistent.h>
  16221. +_ACEOF
  16222. +if ac_fn_c_try_cpp "$LINENO"; then :
  16223. + # Broken: success on invalid input.
  16224. +continue
  16225. +else
  16226. + # Passes both tests.
  16227. +ac_preproc_ok=:
  16228. +break
  16229. +fi
  16230. +rm -f conftest.err conftest.$ac_ext
  16231. +
  16232. +done
  16233. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16234. +rm -f conftest.err conftest.$ac_ext
  16235. +if $ac_preproc_ok; then :
  16236. + break
  16237. +fi
  16238. +
  16239. + done
  16240. + ac_cv_prog_CPP=$CPP
  16241. +
  16242. +fi
  16243. + CPP=$ac_cv_prog_CPP
  16244. +else
  16245. + ac_cv_prog_CPP=$CPP
  16246. +fi
  16247. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16248. +$as_echo "$CPP" >&6; }
  16249. +ac_preproc_ok=false
  16250. +for ac_c_preproc_warn_flag in '' yes
  16251. +do
  16252. + # Use a header file that comes with gcc, so configuring glibc
  16253. + # with a fresh cross-compiler works.
  16254. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16255. + # <limits.h> exists even on freestanding compilers.
  16256. + # On the NeXT, cc -E runs the code through the compiler's parser,
  16257. + # not just through cpp. "Syntax error" is here to catch this case.
  16258. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16259. +/* end confdefs.h. */
  16260. +#ifdef __STDC__
  16261. +# include <limits.h>
  16262. +#else
  16263. +# include <assert.h>
  16264. +#endif
  16265. + Syntax error
  16266. +_ACEOF
  16267. +if ac_fn_c_try_cpp "$LINENO"; then :
  16268. +
  16269. +else
  16270. + # Broken: fails on valid input.
  16271. +continue
  16272. +fi
  16273. +rm -f conftest.err conftest.$ac_ext
  16274. +
  16275. + # OK, works on sane cases. Now check whether nonexistent headers
  16276. + # can be detected and how.
  16277. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16278. +/* end confdefs.h. */
  16279. +#include <ac_nonexistent.h>
  16280. +_ACEOF
  16281. +if ac_fn_c_try_cpp "$LINENO"; then :
  16282. + # Broken: success on invalid input.
  16283. +continue
  16284. +else
  16285. + # Passes both tests.
  16286. +ac_preproc_ok=:
  16287. +break
  16288. +fi
  16289. +rm -f conftest.err conftest.$ac_ext
  16290. +
  16291. +done
  16292. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16293. +rm -f conftest.err conftest.$ac_ext
  16294. +if $ac_preproc_ok; then :
  16295. +
  16296. +else
  16297. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16298. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16299. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  16300. +See \`config.log' for more details." "$LINENO" 5; }
  16301. +fi
  16302. +
  16303. +ac_ext=c
  16304. +ac_cpp='$CPP $CPPFLAGS'
  16305. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16306. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16307. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16308. +
  16309. +CFLAGS="$cflags_save"
  16310. +
  16311. +case `pwd` in
  16312. + *\ * | *\ *)
  16313. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  16314. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  16315. +esac
  16316. +
  16317. +
  16318. +
  16319. +macro_version='2.2.6b'
  16320. +macro_revision='1.3017'
  16321. +
  16322. +
  16323. +
  16324. +
  16325. +
  16326. +
  16327. +
  16328. +
  16329. +
  16330. +
  16331. +
  16332. +
  16333. +
  16334. +ltmain="$ac_aux_dir/ltmain.sh"
  16335. +
  16336. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  16337. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  16338. +if test "${ac_cv_path_SED+set}" = set; then :
  16339. + $as_echo_n "(cached) " >&6
  16340. +else
  16341. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  16342. + for ac_i in 1 2 3 4 5 6 7; do
  16343. + ac_script="$ac_script$as_nl$ac_script"
  16344. + done
  16345. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  16346. + { ac_script=; unset ac_script;}
  16347. + if test -z "$SED"; then
  16348. + ac_path_SED_found=false
  16349. + # Loop through the user's path and test for each of PROGNAME-LIST
  16350. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16351. +for as_dir in $PATH
  16352. +do
  16353. + IFS=$as_save_IFS
  16354. + test -z "$as_dir" && as_dir=.
  16355. + for ac_prog in sed gsed; do
  16356. + for ac_exec_ext in '' $ac_executable_extensions; do
  16357. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  16358. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  16359. +# Check for GNU ac_path_SED and select it if it is found.
  16360. + # Check for GNU $ac_path_SED
  16361. +case `"$ac_path_SED" --version 2>&1` in
  16362. +*GNU*)
  16363. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  16364. +*)
  16365. + ac_count=0
  16366. + $as_echo_n 0123456789 >"conftest.in"
  16367. + while :
  16368. + do
  16369. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16370. + mv "conftest.tmp" "conftest.in"
  16371. + cp "conftest.in" "conftest.nl"
  16372. + $as_echo '' >> "conftest.nl"
  16373. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16374. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16375. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16376. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  16377. + # Best one so far, save it but keep looking for a better one
  16378. + ac_cv_path_SED="$ac_path_SED"
  16379. + ac_path_SED_max=$ac_count
  16380. + fi
  16381. + # 10*(2^10) chars as input seems more than enough
  16382. + test $ac_count -gt 10 && break
  16383. + done
  16384. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16385. +esac
  16386. +
  16387. + $ac_path_SED_found && break 3
  16388. + done
  16389. + done
  16390. + done
  16391. +IFS=$as_save_IFS
  16392. + if test -z "$ac_cv_path_SED"; then
  16393. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  16394. + fi
  16395. +else
  16396. + ac_cv_path_SED=$SED
  16397. +fi
  16398. +
  16399. +fi
  16400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  16401. +$as_echo "$ac_cv_path_SED" >&6; }
  16402. + SED="$ac_cv_path_SED"
  16403. + rm -f conftest.sed
  16404. +
  16405. +test -z "$SED" && SED=sed
  16406. +Xsed="$SED -e 1s/^X//"
  16407. +
  16408. +
  16409. +
  16410. +
  16411. +
  16412. +
  16413. +
  16414. +
  16415. +
  16416. +
  16417. +
  16418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  16419. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  16420. +if test "${ac_cv_path_GREP+set}" = set; then :
  16421. + $as_echo_n "(cached) " >&6
  16422. +else
  16423. + if test -z "$GREP"; then
  16424. + ac_path_GREP_found=false
  16425. + # Loop through the user's path and test for each of PROGNAME-LIST
  16426. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16427. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16428. +do
  16429. + IFS=$as_save_IFS
  16430. + test -z "$as_dir" && as_dir=.
  16431. + for ac_prog in grep ggrep; do
  16432. + for ac_exec_ext in '' $ac_executable_extensions; do
  16433. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16434. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16435. +# Check for GNU ac_path_GREP and select it if it is found.
  16436. + # Check for GNU $ac_path_GREP
  16437. +case `"$ac_path_GREP" --version 2>&1` in
  16438. +*GNU*)
  16439. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  16440. +*)
  16441. + ac_count=0
  16442. + $as_echo_n 0123456789 >"conftest.in"
  16443. + while :
  16444. + do
  16445. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16446. + mv "conftest.tmp" "conftest.in"
  16447. + cp "conftest.in" "conftest.nl"
  16448. + $as_echo 'GREP' >> "conftest.nl"
  16449. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16450. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16451. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16452. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  16453. + # Best one so far, save it but keep looking for a better one
  16454. + ac_cv_path_GREP="$ac_path_GREP"
  16455. + ac_path_GREP_max=$ac_count
  16456. + fi
  16457. + # 10*(2^10) chars as input seems more than enough
  16458. + test $ac_count -gt 10 && break
  16459. + done
  16460. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16461. +esac
  16462. +
  16463. + $ac_path_GREP_found && break 3
  16464. + done
  16465. + done
  16466. + done
  16467. +IFS=$as_save_IFS
  16468. + if test -z "$ac_cv_path_GREP"; then
  16469. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16470. + fi
  16471. +else
  16472. + ac_cv_path_GREP=$GREP
  16473. +fi
  16474. +
  16475. +fi
  16476. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  16477. +$as_echo "$ac_cv_path_GREP" >&6; }
  16478. + GREP="$ac_cv_path_GREP"
  16479. +
  16480. +
  16481. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  16482. +$as_echo_n "checking for egrep... " >&6; }
  16483. +if test "${ac_cv_path_EGREP+set}" = set; then :
  16484. + $as_echo_n "(cached) " >&6
  16485. +else
  16486. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  16487. + then ac_cv_path_EGREP="$GREP -E"
  16488. + else
  16489. + if test -z "$EGREP"; then
  16490. + ac_path_EGREP_found=false
  16491. + # Loop through the user's path and test for each of PROGNAME-LIST
  16492. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16493. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16494. +do
  16495. + IFS=$as_save_IFS
  16496. + test -z "$as_dir" && as_dir=.
  16497. + for ac_prog in egrep; do
  16498. + for ac_exec_ext in '' $ac_executable_extensions; do
  16499. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16500. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16501. +# Check for GNU ac_path_EGREP and select it if it is found.
  16502. + # Check for GNU $ac_path_EGREP
  16503. +case `"$ac_path_EGREP" --version 2>&1` in
  16504. +*GNU*)
  16505. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  16506. +*)
  16507. + ac_count=0
  16508. + $as_echo_n 0123456789 >"conftest.in"
  16509. + while :
  16510. + do
  16511. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16512. + mv "conftest.tmp" "conftest.in"
  16513. + cp "conftest.in" "conftest.nl"
  16514. + $as_echo 'EGREP' >> "conftest.nl"
  16515. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16516. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16517. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16518. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  16519. + # Best one so far, save it but keep looking for a better one
  16520. + ac_cv_path_EGREP="$ac_path_EGREP"
  16521. + ac_path_EGREP_max=$ac_count
  16522. + fi
  16523. + # 10*(2^10) chars as input seems more than enough
  16524. + test $ac_count -gt 10 && break
  16525. + done
  16526. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16527. +esac
  16528. +
  16529. + $ac_path_EGREP_found && break 3
  16530. + done
  16531. + done
  16532. + done
  16533. +IFS=$as_save_IFS
  16534. + if test -z "$ac_cv_path_EGREP"; then
  16535. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16536. + fi
  16537. +else
  16538. + ac_cv_path_EGREP=$EGREP
  16539. +fi
  16540. +
  16541. + fi
  16542. +fi
  16543. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  16544. +$as_echo "$ac_cv_path_EGREP" >&6; }
  16545. + EGREP="$ac_cv_path_EGREP"
  16546. +
  16547. +
  16548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  16549. +$as_echo_n "checking for fgrep... " >&6; }
  16550. +if test "${ac_cv_path_FGREP+set}" = set; then :
  16551. + $as_echo_n "(cached) " >&6
  16552. +else
  16553. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  16554. + then ac_cv_path_FGREP="$GREP -F"
  16555. + else
  16556. + if test -z "$FGREP"; then
  16557. + ac_path_FGREP_found=false
  16558. + # Loop through the user's path and test for each of PROGNAME-LIST
  16559. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16560. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16561. +do
  16562. + IFS=$as_save_IFS
  16563. + test -z "$as_dir" && as_dir=.
  16564. + for ac_prog in fgrep; do
  16565. + for ac_exec_ext in '' $ac_executable_extensions; do
  16566. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  16567. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  16568. +# Check for GNU ac_path_FGREP and select it if it is found.
  16569. + # Check for GNU $ac_path_FGREP
  16570. +case `"$ac_path_FGREP" --version 2>&1` in
  16571. +*GNU*)
  16572. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  16573. +*)
  16574. + ac_count=0
  16575. + $as_echo_n 0123456789 >"conftest.in"
  16576. + while :
  16577. + do
  16578. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16579. + mv "conftest.tmp" "conftest.in"
  16580. + cp "conftest.in" "conftest.nl"
  16581. + $as_echo 'FGREP' >> "conftest.nl"
  16582. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16583. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16584. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16585. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  16586. + # Best one so far, save it but keep looking for a better one
  16587. + ac_cv_path_FGREP="$ac_path_FGREP"
  16588. + ac_path_FGREP_max=$ac_count
  16589. + fi
  16590. + # 10*(2^10) chars as input seems more than enough
  16591. + test $ac_count -gt 10 && break
  16592. + done
  16593. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16594. +esac
  16595. +
  16596. + $ac_path_FGREP_found && break 3
  16597. + done
  16598. + done
  16599. + done
  16600. +IFS=$as_save_IFS
  16601. + if test -z "$ac_cv_path_FGREP"; then
  16602. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16603. + fi
  16604. +else
  16605. + ac_cv_path_FGREP=$FGREP
  16606. +fi
  16607. +
  16608. + fi
  16609. +fi
  16610. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  16611. +$as_echo "$ac_cv_path_FGREP" >&6; }
  16612. + FGREP="$ac_cv_path_FGREP"
  16613. +
  16614. +
  16615. +test -z "$GREP" && GREP=grep
  16616. +
  16617. +
  16618. +
  16619. +
  16620. +
  16621. +
  16622. +
  16623. +
  16624. +
  16625. +
  16626. +
  16627. +
  16628. +
  16629. +
  16630. +
  16631. +
  16632. +
  16633. +
  16634. +
  16635. +# Check whether --with-gnu-ld was given.
  16636. +if test "${with_gnu_ld+set}" = set; then :
  16637. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16638. +else
  16639. + with_gnu_ld=no
  16640. +fi
  16641. +
  16642. +ac_prog=ld
  16643. +if test "$GCC" = yes; then
  16644. + # Check if gcc -print-prog-name=ld gives a path.
  16645. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16646. +$as_echo_n "checking for ld used by $CC... " >&6; }
  16647. + case $host in
  16648. + *-*-mingw*)
  16649. + # gcc leaves a trailing carriage return which upsets mingw
  16650. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16651. + *)
  16652. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16653. + esac
  16654. + case $ac_prog in
  16655. + # Accept absolute paths.
  16656. + [\\/]* | ?:[\\/]*)
  16657. + re_direlt='/[^/][^/]*/\.\./'
  16658. + # Canonicalize the pathname of ld
  16659. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  16660. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  16661. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  16662. + done
  16663. + test -z "$LD" && LD="$ac_prog"
  16664. + ;;
  16665. + "")
  16666. + # If it fails, then pretend we aren't using GCC.
  16667. + ac_prog=ld
  16668. + ;;
  16669. + *)
  16670. + # If it is relative, then search for the first ld in PATH.
  16671. + with_gnu_ld=unknown
  16672. + ;;
  16673. + esac
  16674. +elif test "$with_gnu_ld" = yes; then
  16675. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16676. +$as_echo_n "checking for GNU ld... " >&6; }
  16677. +else
  16678. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16679. +$as_echo_n "checking for non-GNU ld... " >&6; }
  16680. +fi
  16681. +if test "${lt_cv_path_LD+set}" = set; then :
  16682. + $as_echo_n "(cached) " >&6
  16683. +else
  16684. + if test -z "$LD"; then
  16685. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16686. + for ac_dir in $PATH; do
  16687. + IFS="$lt_save_ifs"
  16688. + test -z "$ac_dir" && ac_dir=.
  16689. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16690. + lt_cv_path_LD="$ac_dir/$ac_prog"
  16691. + # Check to see if the program is GNU ld. I'd rather use --version,
  16692. + # but apparently some variants of GNU ld only accept -v.
  16693. + # Break only if it was the GNU/non-GNU ld that we prefer.
  16694. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  16695. + *GNU* | *'with BFD'*)
  16696. + test "$with_gnu_ld" != no && break
  16697. + ;;
  16698. + *)
  16699. + test "$with_gnu_ld" != yes && break
  16700. + ;;
  16701. + esac
  16702. + fi
  16703. + done
  16704. + IFS="$lt_save_ifs"
  16705. +else
  16706. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  16707. +fi
  16708. +fi
  16709. +
  16710. +LD="$lt_cv_path_LD"
  16711. +if test -n "$LD"; then
  16712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16713. +$as_echo "$LD" >&6; }
  16714. +else
  16715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. +$as_echo "no" >&6; }
  16717. +fi
  16718. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  16719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16720. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16721. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  16722. + $as_echo_n "(cached) " >&6
  16723. +else
  16724. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16725. +case `$LD -v 2>&1 </dev/null` in
  16726. +*GNU* | *'with BFD'*)
  16727. + lt_cv_prog_gnu_ld=yes
  16728. + ;;
  16729. +*)
  16730. + lt_cv_prog_gnu_ld=no
  16731. + ;;
  16732. +esac
  16733. +fi
  16734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  16735. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  16736. +with_gnu_ld=$lt_cv_prog_gnu_ld
  16737. +
  16738. +
  16739. +
  16740. +
  16741. +
  16742. +
  16743. +
  16744. +
  16745. +
  16746. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  16747. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  16748. +if test "${lt_cv_path_NM+set}" = set; then :
  16749. + $as_echo_n "(cached) " >&6
  16750. +else
  16751. + if test -n "$NM"; then
  16752. + # Let the user override the test.
  16753. + lt_cv_path_NM="$NM"
  16754. +else
  16755. + lt_nm_to_check="${ac_tool_prefix}nm"
  16756. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  16757. + lt_nm_to_check="$lt_nm_to_check nm"
  16758. + fi
  16759. + for lt_tmp_nm in $lt_nm_to_check; do
  16760. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16761. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  16762. + IFS="$lt_save_ifs"
  16763. + test -z "$ac_dir" && ac_dir=.
  16764. + tmp_nm="$ac_dir/$lt_tmp_nm"
  16765. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  16766. + # Check to see if the nm accepts a BSD-compat flag.
  16767. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  16768. + # nm: unknown option "B" ignored
  16769. + # Tru64's nm complains that /dev/null is an invalid object file
  16770. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  16771. + */dev/null* | *'Invalid file or object type'*)
  16772. + lt_cv_path_NM="$tmp_nm -B"
  16773. + break
  16774. + ;;
  16775. + *)
  16776. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  16777. + */dev/null*)
  16778. + lt_cv_path_NM="$tmp_nm -p"
  16779. + break
  16780. + ;;
  16781. + *)
  16782. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  16783. + continue # so that we can try to find one that supports BSD flags
  16784. + ;;
  16785. + esac
  16786. + ;;
  16787. + esac
  16788. + fi
  16789. + done
  16790. + IFS="$lt_save_ifs"
  16791. + done
  16792. + : ${lt_cv_path_NM=no}
  16793. +fi
  16794. +fi
  16795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  16796. +$as_echo "$lt_cv_path_NM" >&6; }
  16797. +if test "$lt_cv_path_NM" != "no"; then
  16798. + NM="$lt_cv_path_NM"
  16799. +else
  16800. + # Didn't find any BSD compatible name lister, look for dumpbin.
  16801. + if test -n "$ac_tool_prefix"; then
  16802. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  16803. + do
  16804. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16805. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16806. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16807. +$as_echo_n "checking for $ac_word... " >&6; }
  16808. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  16809. + $as_echo_n "(cached) " >&6
  16810. +else
  16811. + if test -n "$DUMPBIN"; then
  16812. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  16813. +else
  16814. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16815. +for as_dir in $PATH
  16816. +do
  16817. + IFS=$as_save_IFS
  16818. + test -z "$as_dir" && as_dir=.
  16819. + for ac_exec_ext in '' $ac_executable_extensions; do
  16820. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16821. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  16822. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16823. + break 2
  16824. + fi
  16825. +done
  16826. + done
  16827. +IFS=$as_save_IFS
  16828. +
  16829. +fi
  16830. +fi
  16831. +DUMPBIN=$ac_cv_prog_DUMPBIN
  16832. +if test -n "$DUMPBIN"; then
  16833. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  16834. +$as_echo "$DUMPBIN" >&6; }
  16835. +else
  16836. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16837. +$as_echo "no" >&6; }
  16838. +fi
  16839. +
  16840. +
  16841. + test -n "$DUMPBIN" && break
  16842. + done
  16843. +fi
  16844. +if test -z "$DUMPBIN"; then
  16845. + ac_ct_DUMPBIN=$DUMPBIN
  16846. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  16847. +do
  16848. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  16849. +set dummy $ac_prog; ac_word=$2
  16850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16851. +$as_echo_n "checking for $ac_word... " >&6; }
  16852. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  16853. + $as_echo_n "(cached) " >&6
  16854. +else
  16855. + if test -n "$ac_ct_DUMPBIN"; then
  16856. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  16857. +else
  16858. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16859. +for as_dir in $PATH
  16860. +do
  16861. + IFS=$as_save_IFS
  16862. + test -z "$as_dir" && as_dir=.
  16863. + for ac_exec_ext in '' $ac_executable_extensions; do
  16864. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16865. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  16866. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16867. + break 2
  16868. + fi
  16869. +done
  16870. + done
  16871. +IFS=$as_save_IFS
  16872. +
  16873. +fi
  16874. +fi
  16875. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  16876. +if test -n "$ac_ct_DUMPBIN"; then
  16877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  16878. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  16879. +else
  16880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16881. +$as_echo "no" >&6; }
  16882. +fi
  16883. +
  16884. +
  16885. + test -n "$ac_ct_DUMPBIN" && break
  16886. +done
  16887. +
  16888. + if test "x$ac_ct_DUMPBIN" = x; then
  16889. + DUMPBIN=":"
  16890. + else
  16891. + case $cross_compiling:$ac_tool_warned in
  16892. +yes:)
  16893. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16894. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16895. +ac_tool_warned=yes ;;
  16896. +esac
  16897. + DUMPBIN=$ac_ct_DUMPBIN
  16898. + fi
  16899. +fi
  16900. +
  16901. +
  16902. + if test "$DUMPBIN" != ":"; then
  16903. + NM="$DUMPBIN"
  16904. + fi
  16905. +fi
  16906. +test -z "$NM" && NM=nm
  16907. +
  16908. +
  16909. +
  16910. +
  16911. +
  16912. +
  16913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  16914. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  16915. +if test "${lt_cv_nm_interface+set}" = set; then :
  16916. + $as_echo_n "(cached) " >&6
  16917. +else
  16918. + lt_cv_nm_interface="BSD nm"
  16919. + echo "int some_variable = 0;" > conftest.$ac_ext
  16920. + (eval echo "\"\$as_me:4660: $ac_compile\"" >&5)
  16921. + (eval "$ac_compile" 2>conftest.err)
  16922. + cat conftest.err >&5
  16923. + (eval echo "\"\$as_me:4663: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  16924. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  16925. + cat conftest.err >&5
  16926. + (eval echo "\"\$as_me:4666: output\"" >&5)
  16927. + cat conftest.out >&5
  16928. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  16929. + lt_cv_nm_interface="MS dumpbin"
  16930. + fi
  16931. + rm -f conftest*
  16932. +fi
  16933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  16934. +$as_echo "$lt_cv_nm_interface" >&6; }
  16935. +
  16936. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  16937. +$as_echo_n "checking whether ln -s works... " >&6; }
  16938. +LN_S=$as_ln_s
  16939. +if test "$LN_S" = "ln -s"; then
  16940. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16941. +$as_echo "yes" >&6; }
  16942. +else
  16943. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  16944. +$as_echo "no, using $LN_S" >&6; }
  16945. +fi
  16946. +
  16947. +# find the maximum length of command line arguments
  16948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  16949. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  16950. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  16951. + $as_echo_n "(cached) " >&6
  16952. +else
  16953. + i=0
  16954. + teststring="ABCD"
  16955. +
  16956. + case $build_os in
  16957. + msdosdjgpp*)
  16958. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  16959. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  16960. + # during glob expansion). Even if it were fixed, the result of this
  16961. + # check would be larger than it should be.
  16962. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  16963. + ;;
  16964. +
  16965. + gnu*)
  16966. + # Under GNU Hurd, this test is not required because there is
  16967. + # no limit to the length of command line arguments.
  16968. + # Libtool will interpret -1 as no limit whatsoever
  16969. + lt_cv_sys_max_cmd_len=-1;
  16970. + ;;
  16971. +
  16972. + cygwin* | mingw* | cegcc*)
  16973. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  16974. + # about 5 minutes as the teststring grows exponentially.
  16975. + # Worse, since 9x/ME are not pre-emptively multitasking,
  16976. + # you end up with a "frozen" computer, even though with patience
  16977. + # the test eventually succeeds (with a max line length of 256k).
  16978. + # Instead, let's just punt: use the minimum linelength reported by
  16979. + # all of the supported platforms: 8192 (on NT/2K/XP).
  16980. + lt_cv_sys_max_cmd_len=8192;
  16981. + ;;
  16982. +
  16983. + amigaos*)
  16984. + # On AmigaOS with pdksh, this test takes hours, literally.
  16985. + # So we just punt and use a minimum line length of 8192.
  16986. + lt_cv_sys_max_cmd_len=8192;
  16987. + ;;
  16988. +
  16989. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  16990. + # This has been around since 386BSD, at least. Likely further.
  16991. + if test -x /sbin/sysctl; then
  16992. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  16993. + elif test -x /usr/sbin/sysctl; then
  16994. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  16995. + else
  16996. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  16997. + fi
  16998. + # And add a safety zone
  16999. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17000. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17001. + ;;
  17002. +
  17003. + interix*)
  17004. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  17005. + lt_cv_sys_max_cmd_len=196608
  17006. + ;;
  17007. +
  17008. + osf*)
  17009. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  17010. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  17011. + # nice to cause kernel panics so lets avoid the loop below.
  17012. + # First set a reasonable default.
  17013. + lt_cv_sys_max_cmd_len=16384
  17014. + #
  17015. + if test -x /sbin/sysconfig; then
  17016. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  17017. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  17018. + esac
  17019. + fi
  17020. + ;;
  17021. + sco3.2v5*)
  17022. + lt_cv_sys_max_cmd_len=102400
  17023. + ;;
  17024. + sysv5* | sco5v6* | sysv4.2uw2*)
  17025. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  17026. + if test -n "$kargmax"; then
  17027. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  17028. + else
  17029. + lt_cv_sys_max_cmd_len=32768
  17030. + fi
  17031. + ;;
  17032. + *)
  17033. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  17034. + if test -n "$lt_cv_sys_max_cmd_len"; then
  17035. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17036. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17037. + else
  17038. + # Make teststring a little bigger before we do anything with it.
  17039. + # a 1K string should be a reasonable start.
  17040. + for i in 1 2 3 4 5 6 7 8 ; do
  17041. + teststring=$teststring$teststring
  17042. + done
  17043. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  17044. + # If test is not a shell built-in, we'll probably end up computing a
  17045. + # maximum length that is only half of the actual maximum length, but
  17046. + # we can't tell.
  17047. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  17048. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  17049. + test $i != 17 # 1/2 MB should be enough
  17050. + do
  17051. + i=`expr $i + 1`
  17052. + teststring=$teststring$teststring
  17053. + done
  17054. + # Only check the string length outside the loop.
  17055. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  17056. + teststring=
  17057. + # Add a significant safety factor because C++ compilers can tack on
  17058. + # massive amounts of additional arguments before passing them to the
  17059. + # linker. It appears as though 1/2 is a usable value.
  17060. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  17061. + fi
  17062. + ;;
  17063. + esac
  17064. +
  17065. +fi
  17066. +
  17067. +if test -n $lt_cv_sys_max_cmd_len ; then
  17068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  17069. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  17070. +else
  17071. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17072. +$as_echo "none" >&6; }
  17073. +fi
  17074. +max_cmd_len=$lt_cv_sys_max_cmd_len
  17075. +
  17076. +
  17077. +
  17078. +
  17079. +
  17080. +
  17081. +: ${CP="cp -f"}
  17082. +: ${MV="mv -f"}
  17083. +: ${RM="rm -f"}
  17084. +
  17085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  17086. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  17087. +# Try some XSI features
  17088. +xsi_shell=no
  17089. +( _lt_dummy="a/b/c"
  17090. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  17091. + = c,a/b,, \
  17092. + && eval 'test $(( 1 + 1 )) -eq 2 \
  17093. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  17094. + && xsi_shell=yes
  17095. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  17096. +$as_echo "$xsi_shell" >&6; }
  17097. +
  17098. +
  17099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  17100. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  17101. +lt_shell_append=no
  17102. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  17103. + >/dev/null 2>&1 \
  17104. + && lt_shell_append=yes
  17105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  17106. +$as_echo "$lt_shell_append" >&6; }
  17107. +
  17108. +
  17109. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17110. + lt_unset=unset
  17111. +else
  17112. + lt_unset=false
  17113. +fi
  17114. +
  17115. +
  17116. +
  17117. +
  17118. +
  17119. +# test EBCDIC or ASCII
  17120. +case `echo X|tr X '\101'` in
  17121. + A) # ASCII based system
  17122. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  17123. + lt_SP2NL='tr \040 \012'
  17124. + lt_NL2SP='tr \015\012 \040\040'
  17125. + ;;
  17126. + *) # EBCDIC based system
  17127. + lt_SP2NL='tr \100 \n'
  17128. + lt_NL2SP='tr \r\n \100\100'
  17129. + ;;
  17130. +esac
  17131. +
  17132. +
  17133. +
  17134. +
  17135. +
  17136. +
  17137. +
  17138. +
  17139. +
  17140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  17141. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17142. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  17143. + $as_echo_n "(cached) " >&6
  17144. +else
  17145. + lt_cv_ld_reload_flag='-r'
  17146. +fi
  17147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  17148. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17149. +reload_flag=$lt_cv_ld_reload_flag
  17150. +case $reload_flag in
  17151. +"" | " "*) ;;
  17152. +*) reload_flag=" $reload_flag" ;;
  17153. +esac
  17154. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17155. +case $host_os in
  17156. + darwin*)
  17157. + if test "$GCC" = yes; then
  17158. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  17159. + else
  17160. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17161. + fi
  17162. + ;;
  17163. +esac
  17164. +
  17165. +
  17166. +
  17167. +
  17168. +
  17169. +
  17170. +
  17171. +
  17172. +
  17173. +if test -n "$ac_tool_prefix"; then
  17174. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  17175. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  17176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17177. +$as_echo_n "checking for $ac_word... " >&6; }
  17178. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  17179. + $as_echo_n "(cached) " >&6
  17180. +else
  17181. + if test -n "$OBJDUMP"; then
  17182. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  17183. +else
  17184. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17185. +for as_dir in $PATH
  17186. +do
  17187. + IFS=$as_save_IFS
  17188. + test -z "$as_dir" && as_dir=.
  17189. + for ac_exec_ext in '' $ac_executable_extensions; do
  17190. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17191. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  17192. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17193. + break 2
  17194. + fi
  17195. +done
  17196. + done
  17197. +IFS=$as_save_IFS
  17198. +
  17199. +fi
  17200. +fi
  17201. +OBJDUMP=$ac_cv_prog_OBJDUMP
  17202. +if test -n "$OBJDUMP"; then
  17203. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  17204. +$as_echo "$OBJDUMP" >&6; }
  17205. +else
  17206. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17207. +$as_echo "no" >&6; }
  17208. +fi
  17209. +
  17210. +
  17211. +fi
  17212. +if test -z "$ac_cv_prog_OBJDUMP"; then
  17213. + ac_ct_OBJDUMP=$OBJDUMP
  17214. + # Extract the first word of "objdump", so it can be a program name with args.
  17215. +set dummy objdump; ac_word=$2
  17216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17217. +$as_echo_n "checking for $ac_word... " >&6; }
  17218. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  17219. + $as_echo_n "(cached) " >&6
  17220. +else
  17221. + if test -n "$ac_ct_OBJDUMP"; then
  17222. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  17223. +else
  17224. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17225. +for as_dir in $PATH
  17226. +do
  17227. + IFS=$as_save_IFS
  17228. + test -z "$as_dir" && as_dir=.
  17229. + for ac_exec_ext in '' $ac_executable_extensions; do
  17230. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17231. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  17232. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17233. + break 2
  17234. + fi
  17235. +done
  17236. + done
  17237. +IFS=$as_save_IFS
  17238. +
  17239. +fi
  17240. +fi
  17241. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  17242. +if test -n "$ac_ct_OBJDUMP"; then
  17243. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  17244. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  17245. +else
  17246. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17247. +$as_echo "no" >&6; }
  17248. +fi
  17249. +
  17250. + if test "x$ac_ct_OBJDUMP" = x; then
  17251. + OBJDUMP="false"
  17252. + else
  17253. + case $cross_compiling:$ac_tool_warned in
  17254. +yes:)
  17255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17256. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17257. +ac_tool_warned=yes ;;
  17258. +esac
  17259. + OBJDUMP=$ac_ct_OBJDUMP
  17260. + fi
  17261. +else
  17262. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  17263. +fi
  17264. +
  17265. +test -z "$OBJDUMP" && OBJDUMP=objdump
  17266. +
  17267. +
  17268. +
  17269. +
  17270. +
  17271. +
  17272. +
  17273. +
  17274. +
  17275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  17276. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  17277. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  17278. + $as_echo_n "(cached) " >&6
  17279. +else
  17280. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  17281. +lt_cv_file_magic_test_file=
  17282. +lt_cv_deplibs_check_method='unknown'
  17283. +# Need to set the preceding variable on all platforms that support
  17284. +# interlibrary dependencies.
  17285. +# 'none' -- dependencies not supported.
  17286. +# `unknown' -- same as none, but documents that we really don't know.
  17287. +# 'pass_all' -- all dependencies passed with no checks.
  17288. +# 'test_compile' -- check by making test program.
  17289. +# 'file_magic [[regex]]' -- check by looking for files in library path
  17290. +# which responds to the $file_magic_cmd with a given extended regex.
  17291. +# If you have `file' or equivalent on your system and you're not sure
  17292. +# whether `pass_all' will *always* work, you probably want this one.
  17293. +
  17294. +case $host_os in
  17295. +aix[4-9]*)
  17296. + lt_cv_deplibs_check_method=pass_all
  17297. + ;;
  17298. +
  17299. +beos*)
  17300. + lt_cv_deplibs_check_method=pass_all
  17301. + ;;
  17302. +
  17303. +bsdi[45]*)
  17304. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  17305. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  17306. + lt_cv_file_magic_test_file=/shlib/libc.so
  17307. + ;;
  17308. +
  17309. +cygwin*)
  17310. + # func_win32_libid is a shell function defined in ltmain.sh
  17311. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17312. + lt_cv_file_magic_cmd='func_win32_libid'
  17313. + ;;
  17314. +
  17315. +mingw* | pw32*)
  17316. + # Base MSYS/MinGW do not provide the 'file' command needed by
  17317. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  17318. + # unless we find 'file', for example because we are cross-compiling.
  17319. + if ( file / ) >/dev/null 2>&1; then
  17320. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17321. + lt_cv_file_magic_cmd='func_win32_libid'
  17322. + else
  17323. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  17324. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  17325. + fi
  17326. + ;;
  17327. +
  17328. +cegcc)
  17329. + # use the weaker test based on 'objdump'. See mingw*.
  17330. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  17331. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  17332. + ;;
  17333. +
  17334. +darwin* | rhapsody*)
  17335. + lt_cv_deplibs_check_method=pass_all
  17336. + ;;
  17337. +
  17338. +freebsd* | dragonfly*)
  17339. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  17340. + case $host_cpu in
  17341. + i*86 )
  17342. + # Not sure whether the presence of OpenBSD here was a mistake.
  17343. + # Let's accept both of them until this is cleared up.
  17344. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  17345. + lt_cv_file_magic_cmd=/usr/bin/file
  17346. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  17347. + ;;
  17348. + esac
  17349. + else
  17350. + lt_cv_deplibs_check_method=pass_all
  17351. + fi
  17352. + ;;
  17353. +
  17354. +gnu*)
  17355. + lt_cv_deplibs_check_method=pass_all
  17356. + ;;
  17357. +
  17358. +hpux10.20* | hpux11*)
  17359. + lt_cv_file_magic_cmd=/usr/bin/file
  17360. + case $host_cpu in
  17361. + ia64*)
  17362. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  17363. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  17364. + ;;
  17365. + hppa*64*)
  17366. + 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]'
  17367. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  17368. + ;;
  17369. + *)
  17370. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  17371. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  17372. + ;;
  17373. + esac
  17374. + ;;
  17375. +
  17376. +interix[3-9]*)
  17377. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  17378. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  17379. + ;;
  17380. +
  17381. +irix5* | irix6* | nonstopux*)
  17382. + case $LD in
  17383. + *-32|*"-32 ") libmagic=32-bit;;
  17384. + *-n32|*"-n32 ") libmagic=N32;;
  17385. + *-64|*"-64 ") libmagic=64-bit;;
  17386. + *) libmagic=never-match;;
  17387. + esac
  17388. + lt_cv_deplibs_check_method=pass_all
  17389. + ;;
  17390. +
  17391. +# This must be Linux ELF.
  17392. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17393. + lt_cv_deplibs_check_method=pass_all
  17394. + ;;
  17395. +
  17396. +netbsd* | netbsdelf*-gnu)
  17397. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  17398. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17399. + else
  17400. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  17401. + fi
  17402. + ;;
  17403. +
  17404. +newos6*)
  17405. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  17406. + lt_cv_file_magic_cmd=/usr/bin/file
  17407. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  17408. + ;;
  17409. +
  17410. +*nto* | *qnx*)
  17411. + lt_cv_deplibs_check_method=pass_all
  17412. + ;;
  17413. +
  17414. +openbsd*)
  17415. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17416. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  17417. + else
  17418. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17419. + fi
  17420. + ;;
  17421. +
  17422. +osf3* | osf4* | osf5*)
  17423. + lt_cv_deplibs_check_method=pass_all
  17424. + ;;
  17425. +
  17426. +rdos*)
  17427. + lt_cv_deplibs_check_method=pass_all
  17428. + ;;
  17429. +
  17430. +solaris*)
  17431. + lt_cv_deplibs_check_method=pass_all
  17432. + ;;
  17433. +
  17434. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17435. + lt_cv_deplibs_check_method=pass_all
  17436. + ;;
  17437. +
  17438. +sysv4 | sysv4.3*)
  17439. + case $host_vendor in
  17440. + motorola)
  17441. + 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]'
  17442. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  17443. + ;;
  17444. + ncr)
  17445. + lt_cv_deplibs_check_method=pass_all
  17446. + ;;
  17447. + sequent)
  17448. + lt_cv_file_magic_cmd='/bin/file'
  17449. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  17450. + ;;
  17451. + sni)
  17452. + lt_cv_file_magic_cmd='/bin/file'
  17453. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  17454. + lt_cv_file_magic_test_file=/lib/libc.so
  17455. + ;;
  17456. + siemens)
  17457. + lt_cv_deplibs_check_method=pass_all
  17458. + ;;
  17459. + pc)
  17460. + lt_cv_deplibs_check_method=pass_all
  17461. + ;;
  17462. + esac
  17463. + ;;
  17464. +
  17465. +tpf*)
  17466. + lt_cv_deplibs_check_method=pass_all
  17467. + ;;
  17468. +esac
  17469. +
  17470. +fi
  17471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  17472. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  17473. +file_magic_cmd=$lt_cv_file_magic_cmd
  17474. +deplibs_check_method=$lt_cv_deplibs_check_method
  17475. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  17476. +
  17477. +
  17478. +
  17479. +
  17480. +
  17481. +
  17482. +
  17483. +
  17484. +
  17485. +
  17486. +
  17487. +
  17488. +if test -n "$ac_tool_prefix"; then
  17489. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  17490. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  17491. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17492. +$as_echo_n "checking for $ac_word... " >&6; }
  17493. +if test "${ac_cv_prog_AR+set}" = set; then :
  17494. + $as_echo_n "(cached) " >&6
  17495. +else
  17496. + if test -n "$AR"; then
  17497. + ac_cv_prog_AR="$AR" # Let the user override the test.
  17498. +else
  17499. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17500. +for as_dir in $PATH
  17501. +do
  17502. + IFS=$as_save_IFS
  17503. + test -z "$as_dir" && as_dir=.
  17504. + for ac_exec_ext in '' $ac_executable_extensions; do
  17505. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17506. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  17507. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17508. + break 2
  17509. + fi
  17510. +done
  17511. + done
  17512. +IFS=$as_save_IFS
  17513. +
  17514. +fi
  17515. +fi
  17516. +AR=$ac_cv_prog_AR
  17517. +if test -n "$AR"; then
  17518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  17519. +$as_echo "$AR" >&6; }
  17520. +else
  17521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17522. +$as_echo "no" >&6; }
  17523. +fi
  17524. +
  17525. +
  17526. +fi
  17527. +if test -z "$ac_cv_prog_AR"; then
  17528. + ac_ct_AR=$AR
  17529. + # Extract the first word of "ar", so it can be a program name with args.
  17530. +set dummy ar; ac_word=$2
  17531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17532. +$as_echo_n "checking for $ac_word... " >&6; }
  17533. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  17534. + $as_echo_n "(cached) " >&6
  17535. +else
  17536. + if test -n "$ac_ct_AR"; then
  17537. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  17538. +else
  17539. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17540. +for as_dir in $PATH
  17541. +do
  17542. + IFS=$as_save_IFS
  17543. + test -z "$as_dir" && as_dir=.
  17544. + for ac_exec_ext in '' $ac_executable_extensions; do
  17545. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17546. + ac_cv_prog_ac_ct_AR="ar"
  17547. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17548. + break 2
  17549. + fi
  17550. +done
  17551. + done
  17552. +IFS=$as_save_IFS
  17553. +
  17554. +fi
  17555. +fi
  17556. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  17557. +if test -n "$ac_ct_AR"; then
  17558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  17559. +$as_echo "$ac_ct_AR" >&6; }
  17560. +else
  17561. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17562. +$as_echo "no" >&6; }
  17563. +fi
  17564. +
  17565. + if test "x$ac_ct_AR" = x; then
  17566. + AR="false"
  17567. + else
  17568. + case $cross_compiling:$ac_tool_warned in
  17569. +yes:)
  17570. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17571. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17572. +ac_tool_warned=yes ;;
  17573. +esac
  17574. + AR=$ac_ct_AR
  17575. + fi
  17576. +else
  17577. + AR="$ac_cv_prog_AR"
  17578. +fi
  17579. +
  17580. +test -z "$AR" && AR=ar
  17581. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  17582. +
  17583. +
  17584. +
  17585. +
  17586. +
  17587. +
  17588. +
  17589. +
  17590. +
  17591. +
  17592. +
  17593. +if test -n "$ac_tool_prefix"; then
  17594. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17595. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  17596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17597. +$as_echo_n "checking for $ac_word... " >&6; }
  17598. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  17599. + $as_echo_n "(cached) " >&6
  17600. +else
  17601. + if test -n "$STRIP"; then
  17602. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17603. +else
  17604. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17605. +for as_dir in $PATH
  17606. +do
  17607. + IFS=$as_save_IFS
  17608. + test -z "$as_dir" && as_dir=.
  17609. + for ac_exec_ext in '' $ac_executable_extensions; do
  17610. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17611. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17612. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17613. + break 2
  17614. + fi
  17615. +done
  17616. + done
  17617. +IFS=$as_save_IFS
  17618. +
  17619. +fi
  17620. +fi
  17621. +STRIP=$ac_cv_prog_STRIP
  17622. +if test -n "$STRIP"; then
  17623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  17624. +$as_echo "$STRIP" >&6; }
  17625. +else
  17626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17627. +$as_echo "no" >&6; }
  17628. +fi
  17629. +
  17630. +
  17631. +fi
  17632. +if test -z "$ac_cv_prog_STRIP"; then
  17633. + ac_ct_STRIP=$STRIP
  17634. + # Extract the first word of "strip", so it can be a program name with args.
  17635. +set dummy strip; ac_word=$2
  17636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17637. +$as_echo_n "checking for $ac_word... " >&6; }
  17638. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17639. + $as_echo_n "(cached) " >&6
  17640. +else
  17641. + if test -n "$ac_ct_STRIP"; then
  17642. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17643. +else
  17644. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17645. +for as_dir in $PATH
  17646. +do
  17647. + IFS=$as_save_IFS
  17648. + test -z "$as_dir" && as_dir=.
  17649. + for ac_exec_ext in '' $ac_executable_extensions; do
  17650. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17651. + ac_cv_prog_ac_ct_STRIP="strip"
  17652. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17653. + break 2
  17654. + fi
  17655. +done
  17656. + done
  17657. +IFS=$as_save_IFS
  17658. +
  17659. +fi
  17660. +fi
  17661. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17662. +if test -n "$ac_ct_STRIP"; then
  17663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17664. +$as_echo "$ac_ct_STRIP" >&6; }
  17665. +else
  17666. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17667. +$as_echo "no" >&6; }
  17668. +fi
  17669. +
  17670. + if test "x$ac_ct_STRIP" = x; then
  17671. + STRIP=":"
  17672. + else
  17673. + case $cross_compiling:$ac_tool_warned in
  17674. +yes:)
  17675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17676. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17677. +ac_tool_warned=yes ;;
  17678. +esac
  17679. + STRIP=$ac_ct_STRIP
  17680. + fi
  17681. +else
  17682. + STRIP="$ac_cv_prog_STRIP"
  17683. +fi
  17684. +
  17685. +test -z "$STRIP" && STRIP=:
  17686. +
  17687. +
  17688. +
  17689. +
  17690. +
  17691. +
  17692. +if test -n "$ac_tool_prefix"; then
  17693. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17694. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17695. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17696. +$as_echo_n "checking for $ac_word... " >&6; }
  17697. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  17698. + $as_echo_n "(cached) " >&6
  17699. +else
  17700. + if test -n "$RANLIB"; then
  17701. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17702. +else
  17703. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17704. +for as_dir in $PATH
  17705. +do
  17706. + IFS=$as_save_IFS
  17707. + test -z "$as_dir" && as_dir=.
  17708. + for ac_exec_ext in '' $ac_executable_extensions; do
  17709. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17710. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17711. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17712. + break 2
  17713. + fi
  17714. +done
  17715. + done
  17716. +IFS=$as_save_IFS
  17717. +
  17718. +fi
  17719. +fi
  17720. +RANLIB=$ac_cv_prog_RANLIB
  17721. +if test -n "$RANLIB"; then
  17722. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  17723. +$as_echo "$RANLIB" >&6; }
  17724. +else
  17725. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17726. +$as_echo "no" >&6; }
  17727. +fi
  17728. +
  17729. +
  17730. +fi
  17731. +if test -z "$ac_cv_prog_RANLIB"; then
  17732. + ac_ct_RANLIB=$RANLIB
  17733. + # Extract the first word of "ranlib", so it can be a program name with args.
  17734. +set dummy ranlib; ac_word=$2
  17735. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17736. +$as_echo_n "checking for $ac_word... " >&6; }
  17737. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  17738. + $as_echo_n "(cached) " >&6
  17739. +else
  17740. + if test -n "$ac_ct_RANLIB"; then
  17741. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17742. +else
  17743. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17744. +for as_dir in $PATH
  17745. +do
  17746. + IFS=$as_save_IFS
  17747. + test -z "$as_dir" && as_dir=.
  17748. + for ac_exec_ext in '' $ac_executable_extensions; do
  17749. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17750. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  17751. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17752. + break 2
  17753. + fi
  17754. +done
  17755. + done
  17756. +IFS=$as_save_IFS
  17757. +
  17758. +fi
  17759. +fi
  17760. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17761. +if test -n "$ac_ct_RANLIB"; then
  17762. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  17763. +$as_echo "$ac_ct_RANLIB" >&6; }
  17764. +else
  17765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17766. +$as_echo "no" >&6; }
  17767. +fi
  17768. +
  17769. + if test "x$ac_ct_RANLIB" = x; then
  17770. + RANLIB=":"
  17771. + else
  17772. + case $cross_compiling:$ac_tool_warned in
  17773. +yes:)
  17774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17775. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17776. +ac_tool_warned=yes ;;
  17777. +esac
  17778. + RANLIB=$ac_ct_RANLIB
  17779. + fi
  17780. +else
  17781. + RANLIB="$ac_cv_prog_RANLIB"
  17782. +fi
  17783. +
  17784. +test -z "$RANLIB" && RANLIB=:
  17785. +
  17786. +
  17787. +
  17788. +
  17789. +
  17790. +
  17791. +# Determine commands to create old-style static archives.
  17792. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  17793. +old_postinstall_cmds='chmod 644 $oldlib'
  17794. +old_postuninstall_cmds=
  17795. +
  17796. +if test -n "$RANLIB"; then
  17797. + case $host_os in
  17798. + openbsd*)
  17799. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  17800. + ;;
  17801. + *)
  17802. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  17803. + ;;
  17804. + esac
  17805. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  17806. +fi
  17807. +
  17808. +
  17809. +
  17810. +
  17811. +
  17812. +
  17813. +
  17814. +
  17815. +
  17816. +
  17817. +
  17818. +
  17819. +
  17820. +
  17821. +
  17822. +
  17823. +
  17824. +
  17825. +
  17826. +
  17827. +
  17828. +
  17829. +
  17830. +
  17831. +
  17832. +
  17833. +
  17834. +
  17835. +
  17836. +
  17837. +
  17838. +
  17839. +
  17840. +
  17841. +# If no C compiler was specified, use CC.
  17842. +LTCC=${LTCC-"$CC"}
  17843. +
  17844. +# If no C compiler flags were specified, use CFLAGS.
  17845. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17846. +
  17847. +# Allow CC to be a program name with arguments.
  17848. +compiler=$CC
  17849. +
  17850. +
  17851. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  17852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  17853. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  17854. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  17855. + $as_echo_n "(cached) " >&6
  17856. +else
  17857. +
  17858. +# These are sane defaults that work on at least a few old systems.
  17859. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  17860. +
  17861. +# Character class describing NM global symbol codes.
  17862. +symcode='[BCDEGRST]'
  17863. +
  17864. +# Regexp to match symbols that can be accessed directly from C.
  17865. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  17866. +
  17867. +# Define system-specific variables.
  17868. +case $host_os in
  17869. +aix*)
  17870. + symcode='[BCDT]'
  17871. + ;;
  17872. +cygwin* | mingw* | pw32* | cegcc*)
  17873. + symcode='[ABCDGISTW]'
  17874. + ;;
  17875. +hpux*)
  17876. + if test "$host_cpu" = ia64; then
  17877. + symcode='[ABCDEGRST]'
  17878. + fi
  17879. + ;;
  17880. +irix* | nonstopux*)
  17881. + symcode='[BCDEGRST]'
  17882. + ;;
  17883. +osf*)
  17884. + symcode='[BCDEGQRST]'
  17885. + ;;
  17886. +solaris*)
  17887. + symcode='[BDRT]'
  17888. + ;;
  17889. +sco3.2v5*)
  17890. + symcode='[DT]'
  17891. + ;;
  17892. +sysv4.2uw2*)
  17893. + symcode='[DT]'
  17894. + ;;
  17895. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  17896. + symcode='[ABDT]'
  17897. + ;;
  17898. +sysv4)
  17899. + symcode='[DFNSTU]'
  17900. + ;;
  17901. +esac
  17902. +
  17903. +# If we're using GNU nm, then use its standard symbol codes.
  17904. +case `$NM -V 2>&1` in
  17905. +*GNU* | *'with BFD'*)
  17906. + symcode='[ABCDGIRSTW]' ;;
  17907. +esac
  17908. +
  17909. +# Transform an extracted symbol line into a proper C declaration.
  17910. +# Some systems (esp. on ia64) link data and code symbols differently,
  17911. +# so use this general approach.
  17912. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17913. +
  17914. +# Transform an extracted symbol line into symbol name and symbol address
  17915. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  17916. +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'"
  17917. +
  17918. +# Handle CRLF in mingw tool chain
  17919. +opt_cr=
  17920. +case $build_os in
  17921. +mingw*)
  17922. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  17923. + ;;
  17924. +esac
  17925. +
  17926. +# Try without a prefix underscore, then with it.
  17927. +for ac_symprfx in "" "_"; do
  17928. +
  17929. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  17930. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  17931. +
  17932. + # Write the raw and C identifiers.
  17933. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  17934. + # Fake it for dumpbin and say T for any non-static function
  17935. + # and D for any global variable.
  17936. + # Also find C++ and __fastcall symbols from MSVC++,
  17937. + # which start with @ or ?.
  17938. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  17939. +" {last_section=section; section=\$ 3};"\
  17940. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  17941. +" \$ 0!~/External *\|/{next};"\
  17942. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  17943. +" {if(hide[section]) next};"\
  17944. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  17945. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  17946. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  17947. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  17948. +" ' prfx=^$ac_symprfx"
  17949. + else
  17950. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  17951. + fi
  17952. +
  17953. + # Check to see that the pipe works correctly.
  17954. + pipe_works=no
  17955. +
  17956. + rm -f conftest*
  17957. + cat > conftest.$ac_ext <<_LT_EOF
  17958. +#ifdef __cplusplus
  17959. +extern "C" {
  17960. +#endif
  17961. +char nm_test_var;
  17962. +void nm_test_func(void);
  17963. +void nm_test_func(void){}
  17964. +#ifdef __cplusplus
  17965. +}
  17966. +#endif
  17967. +int main(){nm_test_var='a';nm_test_func();return(0);}
  17968. +_LT_EOF
  17969. +
  17970. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17971. + (eval $ac_compile) 2>&5
  17972. + ac_status=$?
  17973. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17974. + test $ac_status = 0; }; then
  17975. + # Now try to grab the symbols.
  17976. + nlist=conftest.nm
  17977. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  17978. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  17979. + ac_status=$?
  17980. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17981. + test $ac_status = 0; } && test -s "$nlist"; then
  17982. + # Try sorting and uniquifying the output.
  17983. + if sort "$nlist" | uniq > "$nlist"T; then
  17984. + mv -f "$nlist"T "$nlist"
  17985. + else
  17986. + rm -f "$nlist"T
  17987. + fi
  17988. +
  17989. + # Make sure that we snagged all the symbols we need.
  17990. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  17991. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  17992. + cat <<_LT_EOF > conftest.$ac_ext
  17993. +#ifdef __cplusplus
  17994. +extern "C" {
  17995. +#endif
  17996. +
  17997. +_LT_EOF
  17998. + # Now generate the symbol file.
  17999. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  18000. +
  18001. + cat <<_LT_EOF >> conftest.$ac_ext
  18002. +
  18003. +/* The mapping between symbol names and symbols. */
  18004. +const struct {
  18005. + const char *name;
  18006. + void *address;
  18007. +}
  18008. +lt__PROGRAM__LTX_preloaded_symbols[] =
  18009. +{
  18010. + { "@PROGRAM@", (void *) 0 },
  18011. +_LT_EOF
  18012. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  18013. + cat <<\_LT_EOF >> conftest.$ac_ext
  18014. + {0, (void *) 0}
  18015. +};
  18016. +
  18017. +/* This works around a problem in FreeBSD linker */
  18018. +#ifdef FREEBSD_WORKAROUND
  18019. +static const void *lt_preloaded_setup() {
  18020. + return lt__PROGRAM__LTX_preloaded_symbols;
  18021. +}
  18022. +#endif
  18023. +
  18024. +#ifdef __cplusplus
  18025. +}
  18026. +#endif
  18027. +_LT_EOF
  18028. + # Now try linking the two files.
  18029. + mv conftest.$ac_objext conftstm.$ac_objext
  18030. + lt_save_LIBS="$LIBS"
  18031. + lt_save_CFLAGS="$CFLAGS"
  18032. + LIBS="conftstm.$ac_objext"
  18033. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  18034. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  18035. + (eval $ac_link) 2>&5
  18036. + ac_status=$?
  18037. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18038. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  18039. + pipe_works=yes
  18040. + fi
  18041. + LIBS="$lt_save_LIBS"
  18042. + CFLAGS="$lt_save_CFLAGS"
  18043. + else
  18044. + echo "cannot find nm_test_func in $nlist" >&5
  18045. + fi
  18046. + else
  18047. + echo "cannot find nm_test_var in $nlist" >&5
  18048. + fi
  18049. + else
  18050. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  18051. + fi
  18052. + else
  18053. + echo "$progname: failed program was:" >&5
  18054. + cat conftest.$ac_ext >&5
  18055. + fi
  18056. + rm -rf conftest* conftst*
  18057. +
  18058. + # Do not use the global_symbol_pipe unless it works.
  18059. + if test "$pipe_works" = yes; then
  18060. + break
  18061. + else
  18062. + lt_cv_sys_global_symbol_pipe=
  18063. + fi
  18064. +done
  18065. +
  18066. +fi
  18067. +
  18068. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  18069. + lt_cv_sys_global_symbol_to_cdecl=
  18070. +fi
  18071. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  18072. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  18073. +$as_echo "failed" >&6; }
  18074. +else
  18075. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  18076. +$as_echo "ok" >&6; }
  18077. +fi
  18078. +
  18079. +
  18080. +
  18081. +
  18082. +
  18083. +
  18084. +
  18085. +
  18086. +
  18087. +
  18088. +
  18089. +
  18090. +
  18091. +
  18092. +
  18093. +
  18094. +
  18095. +
  18096. +
  18097. +
  18098. +
  18099. +
  18100. +
  18101. +# Check whether --enable-libtool-lock was given.
  18102. +if test "${enable_libtool_lock+set}" = set; then :
  18103. + enableval=$enable_libtool_lock;
  18104. +fi
  18105. +
  18106. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  18107. +
  18108. +# Some flags need to be propagated to the compiler or linker for good
  18109. +# libtool support.
  18110. +case $host in
  18111. +ia64-*-hpux*)
  18112. + # Find out which ABI we are using.
  18113. + echo 'int i;' > conftest.$ac_ext
  18114. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18115. + (eval $ac_compile) 2>&5
  18116. + ac_status=$?
  18117. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18118. + test $ac_status = 0; }; then
  18119. + case `/usr/bin/file conftest.$ac_objext` in
  18120. + *ELF-32*)
  18121. + HPUX_IA64_MODE="32"
  18122. + ;;
  18123. + *ELF-64*)
  18124. + HPUX_IA64_MODE="64"
  18125. + ;;
  18126. + esac
  18127. + fi
  18128. + rm -rf conftest*
  18129. + ;;
  18130. +*-*-irix6*)
  18131. + # Find out which ABI we are using.
  18132. + echo '#line 5872 "configure"' > conftest.$ac_ext
  18133. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18134. + (eval $ac_compile) 2>&5
  18135. + ac_status=$?
  18136. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18137. + test $ac_status = 0; }; then
  18138. + if test "$lt_cv_prog_gnu_ld" = yes; then
  18139. + case `/usr/bin/file conftest.$ac_objext` in
  18140. + *32-bit*)
  18141. + LD="${LD-ld} -melf32bsmip"
  18142. + ;;
  18143. + *N32*)
  18144. + LD="${LD-ld} -melf32bmipn32"
  18145. + ;;
  18146. + *64-bit*)
  18147. + LD="${LD-ld} -melf64bmip"
  18148. + ;;
  18149. + esac
  18150. + else
  18151. + case `/usr/bin/file conftest.$ac_objext` in
  18152. + *32-bit*)
  18153. + LD="${LD-ld} -32"
  18154. + ;;
  18155. + *N32*)
  18156. + LD="${LD-ld} -n32"
  18157. + ;;
  18158. + *64-bit*)
  18159. + LD="${LD-ld} -64"
  18160. + ;;
  18161. + esac
  18162. + fi
  18163. + fi
  18164. + rm -rf conftest*
  18165. + ;;
  18166. +
  18167. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  18168. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  18169. + # Find out which ABI we are using.
  18170. + echo 'int i;' > conftest.$ac_ext
  18171. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18172. + (eval $ac_compile) 2>&5
  18173. + ac_status=$?
  18174. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18175. + test $ac_status = 0; }; then
  18176. + case `/usr/bin/file conftest.o` in
  18177. + *32-bit*)
  18178. + case $host in
  18179. + x86_64-*kfreebsd*-gnu)
  18180. + LD="${LD-ld} -m elf_i386_fbsd"
  18181. + ;;
  18182. + x86_64-*linux*)
  18183. + LD="${LD-ld} -m elf_i386"
  18184. + ;;
  18185. + ppc64-*linux*|powerpc64-*linux*)
  18186. + LD="${LD-ld} -m elf32ppclinux"
  18187. + ;;
  18188. + s390x-*linux*)
  18189. + LD="${LD-ld} -m elf_s390"
  18190. + ;;
  18191. + sparc64-*linux*)
  18192. + LD="${LD-ld} -m elf32_sparc"
  18193. + ;;
  18194. + esac
  18195. + ;;
  18196. + *64-bit*)
  18197. + case $host in
  18198. + x86_64-*kfreebsd*-gnu)
  18199. + LD="${LD-ld} -m elf_x86_64_fbsd"
  18200. + ;;
  18201. + x86_64-*linux*)
  18202. + LD="${LD-ld} -m elf_x86_64"
  18203. + ;;
  18204. + ppc*-*linux*|powerpc*-*linux*)
  18205. + LD="${LD-ld} -m elf64ppc"
  18206. + ;;
  18207. + s390*-*linux*|s390*-*tpf*)
  18208. + LD="${LD-ld} -m elf64_s390"
  18209. + ;;
  18210. + sparc*-*linux*)
  18211. + LD="${LD-ld} -m elf64_sparc"
  18212. + ;;
  18213. + esac
  18214. + ;;
  18215. + esac
  18216. + fi
  18217. + rm -rf conftest*
  18218. + ;;
  18219. +
  18220. +*-*-sco3.2v5*)
  18221. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  18222. + SAVE_CFLAGS="$CFLAGS"
  18223. + CFLAGS="$CFLAGS -belf"
  18224. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  18225. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  18226. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  18227. + $as_echo_n "(cached) " >&6
  18228. +else
  18229. + ac_ext=c
  18230. +ac_cpp='$CPP $CPPFLAGS'
  18231. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18232. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18233. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18234. +
  18235. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18236. +/* end confdefs.h. */
  18237. +
  18238. +int
  18239. +main ()
  18240. +{
  18241. +
  18242. + ;
  18243. + return 0;
  18244. +}
  18245. +_ACEOF
  18246. +if ac_fn_c_try_link "$LINENO"; then :
  18247. + lt_cv_cc_needs_belf=yes
  18248. +else
  18249. + lt_cv_cc_needs_belf=no
  18250. +fi
  18251. +rm -f core conftest.err conftest.$ac_objext \
  18252. + conftest$ac_exeext conftest.$ac_ext
  18253. + ac_ext=c
  18254. +ac_cpp='$CPP $CPPFLAGS'
  18255. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18256. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18257. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18258. +
  18259. +fi
  18260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  18261. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  18262. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  18263. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  18264. + CFLAGS="$SAVE_CFLAGS"
  18265. + fi
  18266. + ;;
  18267. +sparc*-*solaris*)
  18268. + # Find out which ABI we are using.
  18269. + echo 'int i;' > conftest.$ac_ext
  18270. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18271. + (eval $ac_compile) 2>&5
  18272. + ac_status=$?
  18273. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18274. + test $ac_status = 0; }; then
  18275. + case `/usr/bin/file conftest.o` in
  18276. + *64-bit*)
  18277. + case $lt_cv_prog_gnu_ld in
  18278. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  18279. + *)
  18280. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  18281. + LD="${LD-ld} -64"
  18282. + fi
  18283. + ;;
  18284. + esac
  18285. + ;;
  18286. + esac
  18287. + fi
  18288. + rm -rf conftest*
  18289. + ;;
  18290. +esac
  18291. +
  18292. +need_locks="$enable_libtool_lock"
  18293. +
  18294. +
  18295. + case $host_os in
  18296. + rhapsody* | darwin*)
  18297. + if test -n "$ac_tool_prefix"; then
  18298. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  18299. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  18300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18301. +$as_echo_n "checking for $ac_word... " >&6; }
  18302. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  18303. + $as_echo_n "(cached) " >&6
  18304. +else
  18305. + if test -n "$DSYMUTIL"; then
  18306. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  18307. +else
  18308. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18309. +for as_dir in $PATH
  18310. +do
  18311. + IFS=$as_save_IFS
  18312. + test -z "$as_dir" && as_dir=.
  18313. + for ac_exec_ext in '' $ac_executable_extensions; do
  18314. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18315. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  18316. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18317. + break 2
  18318. + fi
  18319. +done
  18320. + done
  18321. +IFS=$as_save_IFS
  18322. +
  18323. +fi
  18324. +fi
  18325. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  18326. +if test -n "$DSYMUTIL"; then
  18327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  18328. +$as_echo "$DSYMUTIL" >&6; }
  18329. +else
  18330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18331. +$as_echo "no" >&6; }
  18332. +fi
  18333. +
  18334. +
  18335. +fi
  18336. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  18337. + ac_ct_DSYMUTIL=$DSYMUTIL
  18338. + # Extract the first word of "dsymutil", so it can be a program name with args.
  18339. +set dummy dsymutil; ac_word=$2
  18340. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18341. +$as_echo_n "checking for $ac_word... " >&6; }
  18342. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  18343. + $as_echo_n "(cached) " >&6
  18344. +else
  18345. + if test -n "$ac_ct_DSYMUTIL"; then
  18346. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  18347. +else
  18348. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18349. +for as_dir in $PATH
  18350. +do
  18351. + IFS=$as_save_IFS
  18352. + test -z "$as_dir" && as_dir=.
  18353. + for ac_exec_ext in '' $ac_executable_extensions; do
  18354. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18355. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  18356. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18357. + break 2
  18358. + fi
  18359. +done
  18360. + done
  18361. +IFS=$as_save_IFS
  18362. +
  18363. +fi
  18364. +fi
  18365. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  18366. +if test -n "$ac_ct_DSYMUTIL"; then
  18367. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  18368. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  18369. +else
  18370. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18371. +$as_echo "no" >&6; }
  18372. +fi
  18373. +
  18374. + if test "x$ac_ct_DSYMUTIL" = x; then
  18375. + DSYMUTIL=":"
  18376. + else
  18377. + case $cross_compiling:$ac_tool_warned in
  18378. +yes:)
  18379. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18380. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18381. +ac_tool_warned=yes ;;
  18382. +esac
  18383. + DSYMUTIL=$ac_ct_DSYMUTIL
  18384. + fi
  18385. +else
  18386. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  18387. +fi
  18388. +
  18389. + if test -n "$ac_tool_prefix"; then
  18390. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  18391. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  18392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18393. +$as_echo_n "checking for $ac_word... " >&6; }
  18394. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  18395. + $as_echo_n "(cached) " >&6
  18396. +else
  18397. + if test -n "$NMEDIT"; then
  18398. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  18399. +else
  18400. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18401. +for as_dir in $PATH
  18402. +do
  18403. + IFS=$as_save_IFS
  18404. + test -z "$as_dir" && as_dir=.
  18405. + for ac_exec_ext in '' $ac_executable_extensions; do
  18406. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18407. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  18408. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18409. + break 2
  18410. + fi
  18411. +done
  18412. + done
  18413. +IFS=$as_save_IFS
  18414. +
  18415. +fi
  18416. +fi
  18417. +NMEDIT=$ac_cv_prog_NMEDIT
  18418. +if test -n "$NMEDIT"; then
  18419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  18420. +$as_echo "$NMEDIT" >&6; }
  18421. +else
  18422. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18423. +$as_echo "no" >&6; }
  18424. +fi
  18425. +
  18426. +
  18427. +fi
  18428. +if test -z "$ac_cv_prog_NMEDIT"; then
  18429. + ac_ct_NMEDIT=$NMEDIT
  18430. + # Extract the first word of "nmedit", so it can be a program name with args.
  18431. +set dummy nmedit; ac_word=$2
  18432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18433. +$as_echo_n "checking for $ac_word... " >&6; }
  18434. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  18435. + $as_echo_n "(cached) " >&6
  18436. +else
  18437. + if test -n "$ac_ct_NMEDIT"; then
  18438. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  18439. +else
  18440. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18441. +for as_dir in $PATH
  18442. +do
  18443. + IFS=$as_save_IFS
  18444. + test -z "$as_dir" && as_dir=.
  18445. + for ac_exec_ext in '' $ac_executable_extensions; do
  18446. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18447. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  18448. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18449. + break 2
  18450. + fi
  18451. +done
  18452. + done
  18453. +IFS=$as_save_IFS
  18454. +
  18455. +fi
  18456. +fi
  18457. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  18458. +if test -n "$ac_ct_NMEDIT"; then
  18459. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  18460. +$as_echo "$ac_ct_NMEDIT" >&6; }
  18461. +else
  18462. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18463. +$as_echo "no" >&6; }
  18464. +fi
  18465. +
  18466. + if test "x$ac_ct_NMEDIT" = x; then
  18467. + NMEDIT=":"
  18468. + else
  18469. + case $cross_compiling:$ac_tool_warned in
  18470. +yes:)
  18471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18472. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18473. +ac_tool_warned=yes ;;
  18474. +esac
  18475. + NMEDIT=$ac_ct_NMEDIT
  18476. + fi
  18477. +else
  18478. + NMEDIT="$ac_cv_prog_NMEDIT"
  18479. +fi
  18480. +
  18481. + if test -n "$ac_tool_prefix"; then
  18482. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  18483. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  18484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18485. +$as_echo_n "checking for $ac_word... " >&6; }
  18486. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  18487. + $as_echo_n "(cached) " >&6
  18488. +else
  18489. + if test -n "$LIPO"; then
  18490. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  18491. +else
  18492. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18493. +for as_dir in $PATH
  18494. +do
  18495. + IFS=$as_save_IFS
  18496. + test -z "$as_dir" && as_dir=.
  18497. + for ac_exec_ext in '' $ac_executable_extensions; do
  18498. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18499. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  18500. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18501. + break 2
  18502. + fi
  18503. +done
  18504. + done
  18505. +IFS=$as_save_IFS
  18506. +
  18507. +fi
  18508. +fi
  18509. +LIPO=$ac_cv_prog_LIPO
  18510. +if test -n "$LIPO"; then
  18511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  18512. +$as_echo "$LIPO" >&6; }
  18513. +else
  18514. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18515. +$as_echo "no" >&6; }
  18516. +fi
  18517. +
  18518. +
  18519. +fi
  18520. +if test -z "$ac_cv_prog_LIPO"; then
  18521. + ac_ct_LIPO=$LIPO
  18522. + # Extract the first word of "lipo", so it can be a program name with args.
  18523. +set dummy lipo; ac_word=$2
  18524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18525. +$as_echo_n "checking for $ac_word... " >&6; }
  18526. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  18527. + $as_echo_n "(cached) " >&6
  18528. +else
  18529. + if test -n "$ac_ct_LIPO"; then
  18530. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  18531. +else
  18532. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18533. +for as_dir in $PATH
  18534. +do
  18535. + IFS=$as_save_IFS
  18536. + test -z "$as_dir" && as_dir=.
  18537. + for ac_exec_ext in '' $ac_executable_extensions; do
  18538. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18539. + ac_cv_prog_ac_ct_LIPO="lipo"
  18540. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18541. + break 2
  18542. + fi
  18543. +done
  18544. + done
  18545. +IFS=$as_save_IFS
  18546. +
  18547. +fi
  18548. +fi
  18549. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  18550. +if test -n "$ac_ct_LIPO"; then
  18551. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  18552. +$as_echo "$ac_ct_LIPO" >&6; }
  18553. +else
  18554. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18555. +$as_echo "no" >&6; }
  18556. +fi
  18557. +
  18558. + if test "x$ac_ct_LIPO" = x; then
  18559. + LIPO=":"
  18560. + else
  18561. + case $cross_compiling:$ac_tool_warned in
  18562. +yes:)
  18563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18564. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18565. +ac_tool_warned=yes ;;
  18566. +esac
  18567. + LIPO=$ac_ct_LIPO
  18568. + fi
  18569. +else
  18570. + LIPO="$ac_cv_prog_LIPO"
  18571. +fi
  18572. +
  18573. + if test -n "$ac_tool_prefix"; then
  18574. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  18575. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  18576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18577. +$as_echo_n "checking for $ac_word... " >&6; }
  18578. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  18579. + $as_echo_n "(cached) " >&6
  18580. +else
  18581. + if test -n "$OTOOL"; then
  18582. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  18583. +else
  18584. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18585. +for as_dir in $PATH
  18586. +do
  18587. + IFS=$as_save_IFS
  18588. + test -z "$as_dir" && as_dir=.
  18589. + for ac_exec_ext in '' $ac_executable_extensions; do
  18590. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18591. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  18592. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18593. + break 2
  18594. + fi
  18595. +done
  18596. + done
  18597. +IFS=$as_save_IFS
  18598. +
  18599. +fi
  18600. +fi
  18601. +OTOOL=$ac_cv_prog_OTOOL
  18602. +if test -n "$OTOOL"; then
  18603. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  18604. +$as_echo "$OTOOL" >&6; }
  18605. +else
  18606. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18607. +$as_echo "no" >&6; }
  18608. +fi
  18609. +
  18610. +
  18611. +fi
  18612. +if test -z "$ac_cv_prog_OTOOL"; then
  18613. + ac_ct_OTOOL=$OTOOL
  18614. + # Extract the first word of "otool", so it can be a program name with args.
  18615. +set dummy otool; ac_word=$2
  18616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18617. +$as_echo_n "checking for $ac_word... " >&6; }
  18618. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  18619. + $as_echo_n "(cached) " >&6
  18620. +else
  18621. + if test -n "$ac_ct_OTOOL"; then
  18622. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  18623. +else
  18624. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18625. +for as_dir in $PATH
  18626. +do
  18627. + IFS=$as_save_IFS
  18628. + test -z "$as_dir" && as_dir=.
  18629. + for ac_exec_ext in '' $ac_executable_extensions; do
  18630. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18631. + ac_cv_prog_ac_ct_OTOOL="otool"
  18632. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18633. + break 2
  18634. + fi
  18635. +done
  18636. + done
  18637. +IFS=$as_save_IFS
  18638. +
  18639. +fi
  18640. +fi
  18641. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  18642. +if test -n "$ac_ct_OTOOL"; then
  18643. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  18644. +$as_echo "$ac_ct_OTOOL" >&6; }
  18645. +else
  18646. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18647. +$as_echo "no" >&6; }
  18648. +fi
  18649. +
  18650. + if test "x$ac_ct_OTOOL" = x; then
  18651. + OTOOL=":"
  18652. + else
  18653. + case $cross_compiling:$ac_tool_warned in
  18654. +yes:)
  18655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18656. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18657. +ac_tool_warned=yes ;;
  18658. +esac
  18659. + OTOOL=$ac_ct_OTOOL
  18660. + fi
  18661. +else
  18662. + OTOOL="$ac_cv_prog_OTOOL"
  18663. +fi
  18664. +
  18665. + if test -n "$ac_tool_prefix"; then
  18666. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  18667. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  18668. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18669. +$as_echo_n "checking for $ac_word... " >&6; }
  18670. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  18671. + $as_echo_n "(cached) " >&6
  18672. +else
  18673. + if test -n "$OTOOL64"; then
  18674. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  18675. +else
  18676. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18677. +for as_dir in $PATH
  18678. +do
  18679. + IFS=$as_save_IFS
  18680. + test -z "$as_dir" && as_dir=.
  18681. + for ac_exec_ext in '' $ac_executable_extensions; do
  18682. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18683. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  18684. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18685. + break 2
  18686. + fi
  18687. +done
  18688. + done
  18689. +IFS=$as_save_IFS
  18690. +
  18691. +fi
  18692. +fi
  18693. +OTOOL64=$ac_cv_prog_OTOOL64
  18694. +if test -n "$OTOOL64"; then
  18695. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  18696. +$as_echo "$OTOOL64" >&6; }
  18697. +else
  18698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18699. +$as_echo "no" >&6; }
  18700. +fi
  18701. +
  18702. +
  18703. +fi
  18704. +if test -z "$ac_cv_prog_OTOOL64"; then
  18705. + ac_ct_OTOOL64=$OTOOL64
  18706. + # Extract the first word of "otool64", so it can be a program name with args.
  18707. +set dummy otool64; ac_word=$2
  18708. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18709. +$as_echo_n "checking for $ac_word... " >&6; }
  18710. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  18711. + $as_echo_n "(cached) " >&6
  18712. +else
  18713. + if test -n "$ac_ct_OTOOL64"; then
  18714. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  18715. +else
  18716. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18717. +for as_dir in $PATH
  18718. +do
  18719. + IFS=$as_save_IFS
  18720. + test -z "$as_dir" && as_dir=.
  18721. + for ac_exec_ext in '' $ac_executable_extensions; do
  18722. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18723. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  18724. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18725. + break 2
  18726. + fi
  18727. +done
  18728. + done
  18729. +IFS=$as_save_IFS
  18730. +
  18731. +fi
  18732. +fi
  18733. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  18734. +if test -n "$ac_ct_OTOOL64"; then
  18735. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  18736. +$as_echo "$ac_ct_OTOOL64" >&6; }
  18737. +else
  18738. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18739. +$as_echo "no" >&6; }
  18740. +fi
  18741. +
  18742. + if test "x$ac_ct_OTOOL64" = x; then
  18743. + OTOOL64=":"
  18744. + else
  18745. + case $cross_compiling:$ac_tool_warned in
  18746. +yes:)
  18747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18748. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18749. +ac_tool_warned=yes ;;
  18750. +esac
  18751. + OTOOL64=$ac_ct_OTOOL64
  18752. + fi
  18753. +else
  18754. + OTOOL64="$ac_cv_prog_OTOOL64"
  18755. +fi
  18756. +
  18757. +
  18758. +
  18759. +
  18760. +
  18761. +
  18762. +
  18763. +
  18764. +
  18765. +
  18766. +
  18767. +
  18768. +
  18769. +
  18770. +
  18771. +
  18772. +
  18773. +
  18774. +
  18775. +
  18776. +
  18777. +
  18778. +
  18779. +
  18780. +
  18781. +
  18782. +
  18783. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  18784. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  18785. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  18786. + $as_echo_n "(cached) " >&6
  18787. +else
  18788. + lt_cv_apple_cc_single_mod=no
  18789. + if test -z "${LT_MULTI_MODULE}"; then
  18790. + # By default we will add the -single_module flag. You can override
  18791. + # by either setting the environment variable LT_MULTI_MODULE
  18792. + # non-empty at configure time, or by adding -multi_module to the
  18793. + # link flags.
  18794. + rm -rf libconftest.dylib*
  18795. + echo "int foo(void){return 1;}" > conftest.c
  18796. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  18797. +-dynamiclib -Wl,-single_module conftest.c" >&5
  18798. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  18799. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  18800. + _lt_result=$?
  18801. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  18802. + lt_cv_apple_cc_single_mod=yes
  18803. + else
  18804. + cat conftest.err >&5
  18805. + fi
  18806. + rm -rf libconftest.dylib*
  18807. + rm -f conftest.*
  18808. + fi
  18809. +fi
  18810. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  18811. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  18812. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  18813. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  18814. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  18815. + $as_echo_n "(cached) " >&6
  18816. +else
  18817. + lt_cv_ld_exported_symbols_list=no
  18818. + save_LDFLAGS=$LDFLAGS
  18819. + echo "_main" > conftest.sym
  18820. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  18821. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18822. +/* end confdefs.h. */
  18823. +
  18824. +int
  18825. +main ()
  18826. +{
  18827. +
  18828. + ;
  18829. + return 0;
  18830. +}
  18831. +_ACEOF
  18832. +if ac_fn_c_try_link "$LINENO"; then :
  18833. + lt_cv_ld_exported_symbols_list=yes
  18834. +else
  18835. + lt_cv_ld_exported_symbols_list=no
  18836. +fi
  18837. +rm -f core conftest.err conftest.$ac_objext \
  18838. + conftest$ac_exeext conftest.$ac_ext
  18839. + LDFLAGS="$save_LDFLAGS"
  18840. +
  18841. +fi
  18842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  18843. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  18844. + case $host_os in
  18845. + rhapsody* | darwin1.[012])
  18846. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  18847. + darwin1.*)
  18848. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18849. + darwin*) # darwin 5.x on
  18850. + # if running on 10.5 or later, the deployment target defaults
  18851. + # to the OS version, if on x86, and 10.4, the deployment
  18852. + # target defaults to 10.4. Don't you love it?
  18853. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  18854. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  18855. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18856. + 10.[012]*)
  18857. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18858. + 10.*)
  18859. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18860. + esac
  18861. + ;;
  18862. + esac
  18863. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  18864. + _lt_dar_single_mod='$single_module'
  18865. + fi
  18866. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  18867. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  18868. + else
  18869. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18870. + fi
  18871. + if test "$DSYMUTIL" != ":"; then
  18872. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  18873. + else
  18874. + _lt_dsymutil=
  18875. + fi
  18876. + ;;
  18877. + esac
  18878. +
  18879. +
  18880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18881. +$as_echo_n "checking for ANSI C header files... " >&6; }
  18882. +if test "${ac_cv_header_stdc+set}" = set; then :
  18883. + $as_echo_n "(cached) " >&6
  18884. +else
  18885. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18886. +/* end confdefs.h. */
  18887. +#include <stdlib.h>
  18888. +#include <stdarg.h>
  18889. +#include <string.h>
  18890. +#include <float.h>
  18891. +
  18892. +int
  18893. +main ()
  18894. +{
  18895. +
  18896. + ;
  18897. + return 0;
  18898. +}
  18899. +_ACEOF
  18900. +if ac_fn_c_try_compile "$LINENO"; then :
  18901. + ac_cv_header_stdc=yes
  18902. +else
  18903. + ac_cv_header_stdc=no
  18904. +fi
  18905. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18906. +
  18907. +if test $ac_cv_header_stdc = yes; then
  18908. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18909. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18910. +/* end confdefs.h. */
  18911. +#include <string.h>
  18912. +
  18913. +_ACEOF
  18914. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18915. + $EGREP "memchr" >/dev/null 2>&1; then :
  18916. +
  18917. +else
  18918. + ac_cv_header_stdc=no
  18919. +fi
  18920. +rm -f conftest*
  18921. +
  18922. +fi
  18923. +
  18924. +if test $ac_cv_header_stdc = yes; then
  18925. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18926. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18927. +/* end confdefs.h. */
  18928. +#include <stdlib.h>
  18929. +
  18930. +_ACEOF
  18931. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18932. + $EGREP "free" >/dev/null 2>&1; then :
  18933. +
  18934. +else
  18935. + ac_cv_header_stdc=no
  18936. +fi
  18937. +rm -f conftest*
  18938. +
  18939. +fi
  18940. +
  18941. +if test $ac_cv_header_stdc = yes; then
  18942. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18943. + if test "$cross_compiling" = yes; then :
  18944. + :
  18945. +else
  18946. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18947. +/* end confdefs.h. */
  18948. +#include <ctype.h>
  18949. +#include <stdlib.h>
  18950. +#if ((' ' & 0x0FF) == 0x020)
  18951. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18952. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18953. +#else
  18954. +# define ISLOWER(c) \
  18955. + (('a' <= (c) && (c) <= 'i') \
  18956. + || ('j' <= (c) && (c) <= 'r') \
  18957. + || ('s' <= (c) && (c) <= 'z'))
  18958. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18959. +#endif
  18960. +
  18961. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18962. +int
  18963. +main ()
  18964. +{
  18965. + int i;
  18966. + for (i = 0; i < 256; i++)
  18967. + if (XOR (islower (i), ISLOWER (i))
  18968. + || toupper (i) != TOUPPER (i))
  18969. + return 2;
  18970. + return 0;
  18971. +}
  18972. +_ACEOF
  18973. +if ac_fn_c_try_run "$LINENO"; then :
  18974. +
  18975. +else
  18976. + ac_cv_header_stdc=no
  18977. +fi
  18978. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18979. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18980. +fi
  18981. +
  18982. +fi
  18983. +fi
  18984. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18985. +$as_echo "$ac_cv_header_stdc" >&6; }
  18986. +if test $ac_cv_header_stdc = yes; then
  18987. +
  18988. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18989. +
  18990. +fi
  18991. +
  18992. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18993. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18994. + inttypes.h stdint.h unistd.h
  18995. +do :
  18996. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18997. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  18998. +"
  18999. +eval as_val=\$$as_ac_Header
  19000. + if test "x$as_val" = x""yes; then :
  19001. + cat >>confdefs.h <<_ACEOF
  19002. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19003. +_ACEOF
  19004. +
  19005. +fi
  19006. +
  19007. +done
  19008. +
  19009. +
  19010. +for ac_header in dlfcn.h
  19011. +do :
  19012. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  19013. +"
  19014. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  19015. + cat >>confdefs.h <<_ACEOF
  19016. +#define HAVE_DLFCN_H 1
  19017. +_ACEOF
  19018. +
  19019. +fi
  19020. +
  19021. +done
  19022. +
  19023. +
  19024. +
  19025. +# Set options
  19026. +
  19027. +
  19028. +
  19029. + enable_dlopen=no
  19030. +
  19031. +
  19032. + enable_win32_dll=no
  19033. +
  19034. +
  19035. + # Check whether --enable-shared was given.
  19036. +if test "${enable_shared+set}" = set; then :
  19037. + enableval=$enable_shared; p=${PACKAGE-default}
  19038. + case $enableval in
  19039. + yes) enable_shared=yes ;;
  19040. + no) enable_shared=no ;;
  19041. + *)
  19042. + enable_shared=no
  19043. + # Look at the argument we got. We use all the common list separators.
  19044. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19045. + for pkg in $enableval; do
  19046. + IFS="$lt_save_ifs"
  19047. + if test "X$pkg" = "X$p"; then
  19048. + enable_shared=yes
  19049. + fi
  19050. + done
  19051. + IFS="$lt_save_ifs"
  19052. + ;;
  19053. + esac
  19054. +else
  19055. + enable_shared=yes
  19056. +fi
  19057. +
  19058. +
  19059. +
  19060. +
  19061. +
  19062. +
  19063. +
  19064. +
  19065. +
  19066. + # Check whether --enable-static was given.
  19067. +if test "${enable_static+set}" = set; then :
  19068. + enableval=$enable_static; p=${PACKAGE-default}
  19069. + case $enableval in
  19070. + yes) enable_static=yes ;;
  19071. + no) enable_static=no ;;
  19072. + *)
  19073. + enable_static=no
  19074. + # Look at the argument we got. We use all the common list separators.
  19075. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19076. + for pkg in $enableval; do
  19077. + IFS="$lt_save_ifs"
  19078. + if test "X$pkg" = "X$p"; then
  19079. + enable_static=yes
  19080. + fi
  19081. + done
  19082. + IFS="$lt_save_ifs"
  19083. + ;;
  19084. + esac
  19085. +else
  19086. + enable_static=yes
  19087. +fi
  19088. +
  19089. +
  19090. +
  19091. +
  19092. +
  19093. +
  19094. +
  19095. +
  19096. +
  19097. +
  19098. +# Check whether --with-pic was given.
  19099. +if test "${with_pic+set}" = set; then :
  19100. + withval=$with_pic; pic_mode="$withval"
  19101. +else
  19102. + pic_mode=default
  19103. +fi
  19104. +
  19105. +
  19106. +test -z "$pic_mode" && pic_mode=default
  19107. +
  19108. +
  19109. +
  19110. +
  19111. +
  19112. +
  19113. +
  19114. + # Check whether --enable-fast-install was given.
  19115. +if test "${enable_fast_install+set}" = set; then :
  19116. + enableval=$enable_fast_install; p=${PACKAGE-default}
  19117. + case $enableval in
  19118. + yes) enable_fast_install=yes ;;
  19119. + no) enable_fast_install=no ;;
  19120. + *)
  19121. + enable_fast_install=no
  19122. + # Look at the argument we got. We use all the common list separators.
  19123. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19124. + for pkg in $enableval; do
  19125. + IFS="$lt_save_ifs"
  19126. + if test "X$pkg" = "X$p"; then
  19127. + enable_fast_install=yes
  19128. + fi
  19129. + done
  19130. + IFS="$lt_save_ifs"
  19131. + ;;
  19132. + esac
  19133. +else
  19134. + enable_fast_install=yes
  19135. +fi
  19136. +
  19137. +
  19138. +
  19139. +
  19140. +
  19141. +
  19142. +
  19143. +
  19144. +
  19145. +
  19146. +
  19147. +# This can be used to rebuild libtool when needed
  19148. +LIBTOOL_DEPS="$ltmain"
  19149. +
  19150. +# Always use our own libtool.
  19151. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  19152. +
  19153. +
  19154. +
  19155. +
  19156. +
  19157. +
  19158. +
  19159. +
  19160. +
  19161. +
  19162. +
  19163. +
  19164. +
  19165. +
  19166. +
  19167. +
  19168. +
  19169. +
  19170. +
  19171. +
  19172. +
  19173. +
  19174. +
  19175. +
  19176. +
  19177. +test -z "$LN_S" && LN_S="ln -s"
  19178. +
  19179. +
  19180. +
  19181. +
  19182. +
  19183. +
  19184. +
  19185. +
  19186. +
  19187. +
  19188. +
  19189. +
  19190. +
  19191. +
  19192. +if test -n "${ZSH_VERSION+set}" ; then
  19193. + setopt NO_GLOB_SUBST
  19194. +fi
  19195. +
  19196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  19197. +$as_echo_n "checking for objdir... " >&6; }
  19198. +if test "${lt_cv_objdir+set}" = set; then :
  19199. + $as_echo_n "(cached) " >&6
  19200. +else
  19201. + rm -f .libs 2>/dev/null
  19202. +mkdir .libs 2>/dev/null
  19203. +if test -d .libs; then
  19204. + lt_cv_objdir=.libs
  19205. +else
  19206. + # MS-DOS does not allow filenames that begin with a dot.
  19207. + lt_cv_objdir=_libs
  19208. +fi
  19209. +rmdir .libs 2>/dev/null
  19210. +fi
  19211. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  19212. +$as_echo "$lt_cv_objdir" >&6; }
  19213. +objdir=$lt_cv_objdir
  19214. +
  19215. +
  19216. +
  19217. +
  19218. +
  19219. +cat >>confdefs.h <<_ACEOF
  19220. +#define LT_OBJDIR "$lt_cv_objdir/"
  19221. +_ACEOF
  19222. +
  19223. +
  19224. +
  19225. +
  19226. +
  19227. +
  19228. +
  19229. +
  19230. +
  19231. +
  19232. +
  19233. +
  19234. +
  19235. +
  19236. +
  19237. +
  19238. +
  19239. +case $host_os in
  19240. +aix3*)
  19241. + # AIX sometimes has problems with the GCC collect2 program. For some
  19242. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  19243. + # vanish in a puff of smoke.
  19244. + if test "X${COLLECT_NAMES+set}" != Xset; then
  19245. + COLLECT_NAMES=
  19246. + export COLLECT_NAMES
  19247. + fi
  19248. + ;;
  19249. +esac
  19250. +
  19251. +# Sed substitution that helps us do robust quoting. It backslashifies
  19252. +# metacharacters that are still active within double-quoted strings.
  19253. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  19254. +
  19255. +# Same as above, but do not quote variable references.
  19256. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  19257. +
  19258. +# Sed substitution to delay expansion of an escaped shell variable in a
  19259. +# double_quote_subst'ed string.
  19260. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  19261. +
  19262. +# Sed substitution to delay expansion of an escaped single quote.
  19263. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  19264. +
  19265. +# Sed substitution to avoid accidental globbing in evaled expressions
  19266. +no_glob_subst='s/\*/\\\*/g'
  19267. +
  19268. +# Global variables:
  19269. +ofile=libtool
  19270. +can_build_shared=yes
  19271. +
  19272. +# All known linkers require a `.a' archive for static linking (except MSVC,
  19273. +# which needs '.lib').
  19274. +libext=a
  19275. +
  19276. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  19277. +
  19278. +old_CC="$CC"
  19279. +old_CFLAGS="$CFLAGS"
  19280. +
  19281. +# Set sane defaults for various variables
  19282. +test -z "$CC" && CC=cc
  19283. +test -z "$LTCC" && LTCC=$CC
  19284. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  19285. +test -z "$LD" && LD=ld
  19286. +test -z "$ac_objext" && ac_objext=o
  19287. +
  19288. +for cc_temp in $compiler""; do
  19289. + case $cc_temp in
  19290. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19291. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19292. + \-*) ;;
  19293. + *) break;;
  19294. + esac
  19295. +done
  19296. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19297. +
  19298. +
  19299. +# Only perform the check for file, if the check method requires it
  19300. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  19301. +case $deplibs_check_method in
  19302. +file_magic*)
  19303. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  19304. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  19305. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  19306. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  19307. + $as_echo_n "(cached) " >&6
  19308. +else
  19309. + case $MAGIC_CMD in
  19310. +[\\/*] | ?:[\\/]*)
  19311. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  19312. + ;;
  19313. +*)
  19314. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  19315. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19316. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  19317. + for ac_dir in $ac_dummy; do
  19318. + IFS="$lt_save_ifs"
  19319. + test -z "$ac_dir" && ac_dir=.
  19320. + if test -f $ac_dir/${ac_tool_prefix}file; then
  19321. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  19322. + if test -n "$file_magic_test_file"; then
  19323. + case $deplibs_check_method in
  19324. + "file_magic "*)
  19325. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  19326. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19327. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  19328. + $EGREP "$file_magic_regex" > /dev/null; then
  19329. + :
  19330. + else
  19331. + cat <<_LT_EOF 1>&2
  19332. +
  19333. +*** Warning: the command libtool uses to detect shared libraries,
  19334. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  19335. +*** The result is that libtool may fail to recognize shared libraries
  19336. +*** as such. This will affect the creation of libtool libraries that
  19337. +*** depend on shared libraries, but programs linked with such libtool
  19338. +*** libraries will work regardless of this problem. Nevertheless, you
  19339. +*** may want to report the problem to your system manager and/or to
  19340. +*** bug-libtool@gnu.org
  19341. +
  19342. +_LT_EOF
  19343. + fi ;;
  19344. + esac
  19345. + fi
  19346. + break
  19347. + fi
  19348. + done
  19349. + IFS="$lt_save_ifs"
  19350. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  19351. + ;;
  19352. +esac
  19353. +fi
  19354. +
  19355. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19356. +if test -n "$MAGIC_CMD"; then
  19357. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  19358. +$as_echo "$MAGIC_CMD" >&6; }
  19359. +else
  19360. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19361. +$as_echo "no" >&6; }
  19362. +fi
  19363. +
  19364. +
  19365. +
  19366. +
  19367. +
  19368. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  19369. + if test -n "$ac_tool_prefix"; then
  19370. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  19371. +$as_echo_n "checking for file... " >&6; }
  19372. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  19373. + $as_echo_n "(cached) " >&6
  19374. +else
  19375. + case $MAGIC_CMD in
  19376. +[\\/*] | ?:[\\/]*)
  19377. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  19378. + ;;
  19379. +*)
  19380. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  19381. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19382. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  19383. + for ac_dir in $ac_dummy; do
  19384. + IFS="$lt_save_ifs"
  19385. + test -z "$ac_dir" && ac_dir=.
  19386. + if test -f $ac_dir/file; then
  19387. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  19388. + if test -n "$file_magic_test_file"; then
  19389. + case $deplibs_check_method in
  19390. + "file_magic "*)
  19391. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  19392. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19393. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  19394. + $EGREP "$file_magic_regex" > /dev/null; then
  19395. + :
  19396. + else
  19397. + cat <<_LT_EOF 1>&2
  19398. +
  19399. +*** Warning: the command libtool uses to detect shared libraries,
  19400. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  19401. +*** The result is that libtool may fail to recognize shared libraries
  19402. +*** as such. This will affect the creation of libtool libraries that
  19403. +*** depend on shared libraries, but programs linked with such libtool
  19404. +*** libraries will work regardless of this problem. Nevertheless, you
  19405. +*** may want to report the problem to your system manager and/or to
  19406. +*** bug-libtool@gnu.org
  19407. +
  19408. +_LT_EOF
  19409. + fi ;;
  19410. + esac
  19411. + fi
  19412. + break
  19413. + fi
  19414. + done
  19415. + IFS="$lt_save_ifs"
  19416. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  19417. + ;;
  19418. +esac
  19419. +fi
  19420. +
  19421. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19422. +if test -n "$MAGIC_CMD"; then
  19423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  19424. +$as_echo "$MAGIC_CMD" >&6; }
  19425. +else
  19426. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19427. +$as_echo "no" >&6; }
  19428. +fi
  19429. +
  19430. +
  19431. + else
  19432. + MAGIC_CMD=:
  19433. + fi
  19434. +fi
  19435. +
  19436. + fi
  19437. + ;;
  19438. +esac
  19439. +
  19440. +# Use C for the default configuration in the libtool script
  19441. +
  19442. +lt_save_CC="$CC"
  19443. +ac_ext=c
  19444. +ac_cpp='$CPP $CPPFLAGS'
  19445. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19446. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19447. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19448. +
  19449. +
  19450. +# Source file extension for C test sources.
  19451. +ac_ext=c
  19452. +
  19453. +# Object file extension for compiled C test sources.
  19454. +objext=o
  19455. +objext=$objext
  19456. +
  19457. +# Code to be used in simple compile tests
  19458. +lt_simple_compile_test_code="int some_variable = 0;"
  19459. +
  19460. +# Code to be used in simple link tests
  19461. +lt_simple_link_test_code='int main(){return(0);}'
  19462. +
  19463. +
  19464. +
  19465. +
  19466. +
  19467. +
  19468. +
  19469. +# If no C compiler was specified, use CC.
  19470. +LTCC=${LTCC-"$CC"}
  19471. +
  19472. +# If no C compiler flags were specified, use CFLAGS.
  19473. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19474. +
  19475. +# Allow CC to be a program name with arguments.
  19476. +compiler=$CC
  19477. +
  19478. +# Save the default compiler, since it gets overwritten when the other
  19479. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  19480. +compiler_DEFAULT=$CC
  19481. +
  19482. +# save warnings/boilerplate of simple test code
  19483. +ac_outfile=conftest.$ac_objext
  19484. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  19485. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19486. +_lt_compiler_boilerplate=`cat conftest.err`
  19487. +$RM conftest*
  19488. +
  19489. +ac_outfile=conftest.$ac_objext
  19490. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  19491. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19492. +_lt_linker_boilerplate=`cat conftest.err`
  19493. +$RM -r conftest*
  19494. +
  19495. +
  19496. +if test -n "$compiler"; then
  19497. +
  19498. +lt_prog_compiler_no_builtin_flag=
  19499. +
  19500. +if test "$GCC" = yes; then
  19501. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  19502. +
  19503. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  19504. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  19505. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  19506. + $as_echo_n "(cached) " >&6
  19507. +else
  19508. + lt_cv_prog_compiler_rtti_exceptions=no
  19509. + ac_outfile=conftest.$ac_objext
  19510. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19511. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  19512. + # Insert the option either (1) after the last *FLAGS variable, or
  19513. + # (2) before a word containing "conftest.", or (3) at the end.
  19514. + # Note that $ac_compile itself does not contain backslashes and begins
  19515. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19516. + # The option is referenced via a variable to avoid confusing sed.
  19517. + lt_compile=`echo "$ac_compile" | $SED \
  19518. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19519. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19520. + -e 's:$: $lt_compiler_flag:'`
  19521. + (eval echo "\"\$as_me:7261: $lt_compile\"" >&5)
  19522. + (eval "$lt_compile" 2>conftest.err)
  19523. + ac_status=$?
  19524. + cat conftest.err >&5
  19525. + echo "$as_me:7265: \$? = $ac_status" >&5
  19526. + if (exit $ac_status) && test -s "$ac_outfile"; then
  19527. + # The compiler can only warn and ignore the option if not recognized
  19528. + # So say no if there are warnings other than the usual output.
  19529. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19530. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19531. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19532. + lt_cv_prog_compiler_rtti_exceptions=yes
  19533. + fi
  19534. + fi
  19535. + $RM conftest*
  19536. +
  19537. +fi
  19538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  19539. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  19540. +
  19541. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  19542. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  19543. +else
  19544. + :
  19545. +fi
  19546. +
  19547. +fi
  19548. +
  19549. +
  19550. +
  19551. +
  19552. +
  19553. +
  19554. + lt_prog_compiler_wl=
  19555. +lt_prog_compiler_pic=
  19556. +lt_prog_compiler_static=
  19557. +
  19558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  19559. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  19560. +
  19561. + if test "$GCC" = yes; then
  19562. + lt_prog_compiler_wl='-Wl,'
  19563. + lt_prog_compiler_static='-static'
  19564. +
  19565. + case $host_os in
  19566. + aix*)
  19567. + # All AIX code is PIC.
  19568. + if test "$host_cpu" = ia64; then
  19569. + # AIX 5 now supports IA64 processor
  19570. + lt_prog_compiler_static='-Bstatic'
  19571. + fi
  19572. + ;;
  19573. +
  19574. + amigaos*)
  19575. + case $host_cpu in
  19576. + powerpc)
  19577. + # see comment about AmigaOS4 .so support
  19578. + lt_prog_compiler_pic='-fPIC'
  19579. + ;;
  19580. + m68k)
  19581. + # FIXME: we need at least 68020 code to build shared libraries, but
  19582. + # adding the `-m68020' flag to GCC prevents building anything better,
  19583. + # like `-m68040'.
  19584. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  19585. + ;;
  19586. + esac
  19587. + ;;
  19588. +
  19589. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19590. + # PIC is the default for these OSes.
  19591. + ;;
  19592. +
  19593. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  19594. + # This hack is so that the source file can tell whether it is being
  19595. + # built for inclusion in a dll (and should export symbols for example).
  19596. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  19597. + # (--disable-auto-import) libraries
  19598. + lt_prog_compiler_pic='-DDLL_EXPORT'
  19599. + ;;
  19600. +
  19601. + darwin* | rhapsody*)
  19602. + # PIC is the default on this platform
  19603. + # Common symbols not allowed in MH_DYLIB files
  19604. + lt_prog_compiler_pic='-fno-common'
  19605. + ;;
  19606. +
  19607. + hpux*)
  19608. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  19609. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  19610. + # sets the default TLS model and affects inlining.
  19611. + case $host_cpu in
  19612. + hppa*64*)
  19613. + # +Z the default
  19614. + ;;
  19615. + *)
  19616. + lt_prog_compiler_pic='-fPIC'
  19617. + ;;
  19618. + esac
  19619. + ;;
  19620. +
  19621. + interix[3-9]*)
  19622. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  19623. + # Instead, we relocate shared libraries at runtime.
  19624. + ;;
  19625. +
  19626. + msdosdjgpp*)
  19627. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  19628. + # on systems that don't support them.
  19629. + lt_prog_compiler_can_build_shared=no
  19630. + enable_shared=no
  19631. + ;;
  19632. +
  19633. + *nto* | *qnx*)
  19634. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19635. + # it will coredump.
  19636. + lt_prog_compiler_pic='-fPIC -shared'
  19637. + ;;
  19638. +
  19639. + sysv4*MP*)
  19640. + if test -d /usr/nec; then
  19641. + lt_prog_compiler_pic=-Kconform_pic
  19642. + fi
  19643. + ;;
  19644. +
  19645. + *)
  19646. + lt_prog_compiler_pic='-fPIC'
  19647. + ;;
  19648. + esac
  19649. + else
  19650. + # PORTME Check for flag to pass linker flags through the system compiler.
  19651. + case $host_os in
  19652. + aix*)
  19653. + lt_prog_compiler_wl='-Wl,'
  19654. + if test "$host_cpu" = ia64; then
  19655. + # AIX 5 now supports IA64 processor
  19656. + lt_prog_compiler_static='-Bstatic'
  19657. + else
  19658. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  19659. + fi
  19660. + ;;
  19661. +
  19662. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  19663. + # This hack is so that the source file can tell whether it is being
  19664. + # built for inclusion in a dll (and should export symbols for example).
  19665. + lt_prog_compiler_pic='-DDLL_EXPORT'
  19666. + ;;
  19667. +
  19668. + hpux9* | hpux10* | hpux11*)
  19669. + lt_prog_compiler_wl='-Wl,'
  19670. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19671. + # not for PA HP-UX.
  19672. + case $host_cpu in
  19673. + hppa*64*|ia64*)
  19674. + # +Z the default
  19675. + ;;
  19676. + *)
  19677. + lt_prog_compiler_pic='+Z'
  19678. + ;;
  19679. + esac
  19680. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  19681. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  19682. + ;;
  19683. +
  19684. + irix5* | irix6* | nonstopux*)
  19685. + lt_prog_compiler_wl='-Wl,'
  19686. + # PIC (with -KPIC) is the default.
  19687. + lt_prog_compiler_static='-non_shared'
  19688. + ;;
  19689. +
  19690. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  19691. + case $cc_basename in
  19692. + # old Intel for x86_64 which still supported -KPIC.
  19693. + ecc*)
  19694. + lt_prog_compiler_wl='-Wl,'
  19695. + lt_prog_compiler_pic='-KPIC'
  19696. + lt_prog_compiler_static='-static'
  19697. + ;;
  19698. + # icc used to be incompatible with GCC.
  19699. + # ICC 10 doesn't accept -KPIC any more.
  19700. + icc* | ifort*)
  19701. + lt_prog_compiler_wl='-Wl,'
  19702. + lt_prog_compiler_pic='-fPIC'
  19703. + lt_prog_compiler_static='-static'
  19704. + ;;
  19705. + # Lahey Fortran 8.1.
  19706. + lf95*)
  19707. + lt_prog_compiler_wl='-Wl,'
  19708. + lt_prog_compiler_pic='--shared'
  19709. + lt_prog_compiler_static='--static'
  19710. + ;;
  19711. + pgcc* | pgf77* | pgf90* | pgf95*)
  19712. + # Portland Group compilers (*not* the Pentium gcc compiler,
  19713. + # which looks to be a dead project)
  19714. + lt_prog_compiler_wl='-Wl,'
  19715. + lt_prog_compiler_pic='-fpic'
  19716. + lt_prog_compiler_static='-Bstatic'
  19717. + ;;
  19718. + ccc*)
  19719. + lt_prog_compiler_wl='-Wl,'
  19720. + # All Alpha code is PIC.
  19721. + lt_prog_compiler_static='-non_shared'
  19722. + ;;
  19723. + xl*)
  19724. + # IBM XL C 8.0/Fortran 10.1 on PPC
  19725. + lt_prog_compiler_wl='-Wl,'
  19726. + lt_prog_compiler_pic='-qpic'
  19727. + lt_prog_compiler_static='-qstaticlink'
  19728. + ;;
  19729. + *)
  19730. + case `$CC -V 2>&1 | sed 5q` in
  19731. + *Sun\ C*)
  19732. + # Sun C 5.9
  19733. + lt_prog_compiler_pic='-KPIC'
  19734. + lt_prog_compiler_static='-Bstatic'
  19735. + lt_prog_compiler_wl='-Wl,'
  19736. + ;;
  19737. + *Sun\ F*)
  19738. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  19739. + lt_prog_compiler_pic='-KPIC'
  19740. + lt_prog_compiler_static='-Bstatic'
  19741. + lt_prog_compiler_wl=''
  19742. + ;;
  19743. + esac
  19744. + ;;
  19745. + esac
  19746. + ;;
  19747. +
  19748. + newsos6)
  19749. + lt_prog_compiler_pic='-KPIC'
  19750. + lt_prog_compiler_static='-Bstatic'
  19751. + ;;
  19752. +
  19753. + *nto* | *qnx*)
  19754. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19755. + # it will coredump.
  19756. + lt_prog_compiler_pic='-fPIC -shared'
  19757. + ;;
  19758. +
  19759. + osf3* | osf4* | osf5*)
  19760. + lt_prog_compiler_wl='-Wl,'
  19761. + # All OSF/1 code is PIC.
  19762. + lt_prog_compiler_static='-non_shared'
  19763. + ;;
  19764. +
  19765. + rdos*)
  19766. + lt_prog_compiler_static='-non_shared'
  19767. + ;;
  19768. +
  19769. + solaris*)
  19770. + lt_prog_compiler_pic='-KPIC'
  19771. + lt_prog_compiler_static='-Bstatic'
  19772. + case $cc_basename in
  19773. + f77* | f90* | f95*)
  19774. + lt_prog_compiler_wl='-Qoption ld ';;
  19775. + *)
  19776. + lt_prog_compiler_wl='-Wl,';;
  19777. + esac
  19778. + ;;
  19779. +
  19780. + sunos4*)
  19781. + lt_prog_compiler_wl='-Qoption ld '
  19782. + lt_prog_compiler_pic='-PIC'
  19783. + lt_prog_compiler_static='-Bstatic'
  19784. + ;;
  19785. +
  19786. + sysv4 | sysv4.2uw2* | sysv4.3*)
  19787. + lt_prog_compiler_wl='-Wl,'
  19788. + lt_prog_compiler_pic='-KPIC'
  19789. + lt_prog_compiler_static='-Bstatic'
  19790. + ;;
  19791. +
  19792. + sysv4*MP*)
  19793. + if test -d /usr/nec ;then
  19794. + lt_prog_compiler_pic='-Kconform_pic'
  19795. + lt_prog_compiler_static='-Bstatic'
  19796. + fi
  19797. + ;;
  19798. +
  19799. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  19800. + lt_prog_compiler_wl='-Wl,'
  19801. + lt_prog_compiler_pic='-KPIC'
  19802. + lt_prog_compiler_static='-Bstatic'
  19803. + ;;
  19804. +
  19805. + unicos*)
  19806. + lt_prog_compiler_wl='-Wl,'
  19807. + lt_prog_compiler_can_build_shared=no
  19808. + ;;
  19809. +
  19810. + uts4*)
  19811. + lt_prog_compiler_pic='-pic'
  19812. + lt_prog_compiler_static='-Bstatic'
  19813. + ;;
  19814. +
  19815. + *)
  19816. + lt_prog_compiler_can_build_shared=no
  19817. + ;;
  19818. + esac
  19819. + fi
  19820. +
  19821. +case $host_os in
  19822. + # For platforms which do not support PIC, -DPIC is meaningless:
  19823. + *djgpp*)
  19824. + lt_prog_compiler_pic=
  19825. + ;;
  19826. + *)
  19827. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  19828. + ;;
  19829. +esac
  19830. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  19831. +$as_echo "$lt_prog_compiler_pic" >&6; }
  19832. +
  19833. +
  19834. +
  19835. +
  19836. +
  19837. +
  19838. +#
  19839. +# Check to make sure the PIC flag actually works.
  19840. +#
  19841. +if test -n "$lt_prog_compiler_pic"; then
  19842. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  19843. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  19844. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  19845. + $as_echo_n "(cached) " >&6
  19846. +else
  19847. + lt_cv_prog_compiler_pic_works=no
  19848. + ac_outfile=conftest.$ac_objext
  19849. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19850. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  19851. + # Insert the option either (1) after the last *FLAGS variable, or
  19852. + # (2) before a word containing "conftest.", or (3) at the end.
  19853. + # Note that $ac_compile itself does not contain backslashes and begins
  19854. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19855. + # The option is referenced via a variable to avoid confusing sed.
  19856. + lt_compile=`echo "$ac_compile" | $SED \
  19857. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19858. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19859. + -e 's:$: $lt_compiler_flag:'`
  19860. + (eval echo "\"\$as_me:7600: $lt_compile\"" >&5)
  19861. + (eval "$lt_compile" 2>conftest.err)
  19862. + ac_status=$?
  19863. + cat conftest.err >&5
  19864. + echo "$as_me:7604: \$? = $ac_status" >&5
  19865. + if (exit $ac_status) && test -s "$ac_outfile"; then
  19866. + # The compiler can only warn and ignore the option if not recognized
  19867. + # So say no if there are warnings other than the usual output.
  19868. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19869. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19870. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19871. + lt_cv_prog_compiler_pic_works=yes
  19872. + fi
  19873. + fi
  19874. + $RM conftest*
  19875. +
  19876. +fi
  19877. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  19878. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  19879. +
  19880. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  19881. + case $lt_prog_compiler_pic in
  19882. + "" | " "*) ;;
  19883. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  19884. + esac
  19885. +else
  19886. + lt_prog_compiler_pic=
  19887. + lt_prog_compiler_can_build_shared=no
  19888. +fi
  19889. +
  19890. +fi
  19891. +
  19892. +
  19893. +
  19894. +
  19895. +
  19896. +
  19897. +#
  19898. +# Check to make sure the static flag actually works.
  19899. +#
  19900. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  19901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  19902. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  19903. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  19904. + $as_echo_n "(cached) " >&6
  19905. +else
  19906. + lt_cv_prog_compiler_static_works=no
  19907. + save_LDFLAGS="$LDFLAGS"
  19908. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  19909. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  19910. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  19911. + # The linker can only warn and ignore the option if not recognized
  19912. + # So say no if there are warnings
  19913. + if test -s conftest.err; then
  19914. + # Append any errors to the config.log.
  19915. + cat conftest.err 1>&5
  19916. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  19917. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19918. + if diff conftest.exp conftest.er2 >/dev/null; then
  19919. + lt_cv_prog_compiler_static_works=yes
  19920. + fi
  19921. + else
  19922. + lt_cv_prog_compiler_static_works=yes
  19923. + fi
  19924. + fi
  19925. + $RM -r conftest*
  19926. + LDFLAGS="$save_LDFLAGS"
  19927. +
  19928. +fi
  19929. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  19930. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  19931. +
  19932. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  19933. + :
  19934. +else
  19935. + lt_prog_compiler_static=
  19936. +fi
  19937. +
  19938. +
  19939. +
  19940. +
  19941. +
  19942. +
  19943. +
  19944. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  19945. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  19946. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  19947. + $as_echo_n "(cached) " >&6
  19948. +else
  19949. + lt_cv_prog_compiler_c_o=no
  19950. + $RM -r conftest 2>/dev/null
  19951. + mkdir conftest
  19952. + cd conftest
  19953. + mkdir out
  19954. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19955. +
  19956. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  19957. + # Insert the option either (1) after the last *FLAGS variable, or
  19958. + # (2) before a word containing "conftest.", or (3) at the end.
  19959. + # Note that $ac_compile itself does not contain backslashes and begins
  19960. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19961. + lt_compile=`echo "$ac_compile" | $SED \
  19962. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19963. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19964. + -e 's:$: $lt_compiler_flag:'`
  19965. + (eval echo "\"\$as_me:7705: $lt_compile\"" >&5)
  19966. + (eval "$lt_compile" 2>out/conftest.err)
  19967. + ac_status=$?
  19968. + cat out/conftest.err >&5
  19969. + echo "$as_me:7709: \$? = $ac_status" >&5
  19970. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19971. + then
  19972. + # The compiler can only warn and ignore the option if not recognized
  19973. + # So say no if there are warnings
  19974. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19975. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19976. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19977. + lt_cv_prog_compiler_c_o=yes
  19978. + fi
  19979. + fi
  19980. + chmod u+w . 2>&5
  19981. + $RM conftest*
  19982. + # SGI C++ compiler will create directory out/ii_files/ for
  19983. + # template instantiation
  19984. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  19985. + $RM out/* && rmdir out
  19986. + cd ..
  19987. + $RM -r conftest
  19988. + $RM conftest*
  19989. +
  19990. +fi
  19991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  19992. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  19993. +
  19994. +
  19995. +
  19996. +
  19997. +
  19998. +
  19999. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  20000. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  20001. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  20002. + $as_echo_n "(cached) " >&6
  20003. +else
  20004. + lt_cv_prog_compiler_c_o=no
  20005. + $RM -r conftest 2>/dev/null
  20006. + mkdir conftest
  20007. + cd conftest
  20008. + mkdir out
  20009. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  20010. +
  20011. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  20012. + # Insert the option either (1) after the last *FLAGS variable, or
  20013. + # (2) before a word containing "conftest.", or (3) at the end.
  20014. + # Note that $ac_compile itself does not contain backslashes and begins
  20015. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  20016. + lt_compile=`echo "$ac_compile" | $SED \
  20017. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20018. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20019. + -e 's:$: $lt_compiler_flag:'`
  20020. + (eval echo "\"\$as_me:7760: $lt_compile\"" >&5)
  20021. + (eval "$lt_compile" 2>out/conftest.err)
  20022. + ac_status=$?
  20023. + cat out/conftest.err >&5
  20024. + echo "$as_me:7764: \$? = $ac_status" >&5
  20025. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  20026. + then
  20027. + # The compiler can only warn and ignore the option if not recognized
  20028. + # So say no if there are warnings
  20029. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  20030. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  20031. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  20032. + lt_cv_prog_compiler_c_o=yes
  20033. + fi
  20034. + fi
  20035. + chmod u+w . 2>&5
  20036. + $RM conftest*
  20037. + # SGI C++ compiler will create directory out/ii_files/ for
  20038. + # template instantiation
  20039. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  20040. + $RM out/* && rmdir out
  20041. + cd ..
  20042. + $RM -r conftest
  20043. + $RM conftest*
  20044. +
  20045. +fi
  20046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  20047. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  20048. +
  20049. +
  20050. +
  20051. +
  20052. +hard_links="nottested"
  20053. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  20054. + # do not overwrite the value of need_locks provided by the user
  20055. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  20056. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  20057. + hard_links=yes
  20058. + $RM conftest*
  20059. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20060. + touch conftest.a
  20061. + ln conftest.a conftest.b 2>&5 || hard_links=no
  20062. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20063. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  20064. +$as_echo "$hard_links" >&6; }
  20065. + if test "$hard_links" = no; then
  20066. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  20067. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  20068. + need_locks=warn
  20069. + fi
  20070. +else
  20071. + need_locks=no
  20072. +fi
  20073. +
  20074. +
  20075. +
  20076. +
  20077. +
  20078. +
  20079. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  20080. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  20081. +
  20082. + runpath_var=
  20083. + allow_undefined_flag=
  20084. + always_export_symbols=no
  20085. + archive_cmds=
  20086. + archive_expsym_cmds=
  20087. + compiler_needs_object=no
  20088. + enable_shared_with_static_runtimes=no
  20089. + export_dynamic_flag_spec=
  20090. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20091. + hardcode_automatic=no
  20092. + hardcode_direct=no
  20093. + hardcode_direct_absolute=no
  20094. + hardcode_libdir_flag_spec=
  20095. + hardcode_libdir_flag_spec_ld=
  20096. + hardcode_libdir_separator=
  20097. + hardcode_minus_L=no
  20098. + hardcode_shlibpath_var=unsupported
  20099. + inherit_rpath=no
  20100. + link_all_deplibs=unknown
  20101. + module_cmds=
  20102. + module_expsym_cmds=
  20103. + old_archive_from_new_cmds=
  20104. + old_archive_from_expsyms_cmds=
  20105. + thread_safe_flag_spec=
  20106. + whole_archive_flag_spec=
  20107. + # include_expsyms should be a list of space-separated symbols to be *always*
  20108. + # included in the symbol list
  20109. + include_expsyms=
  20110. + # exclude_expsyms can be an extended regexp of symbols to exclude
  20111. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  20112. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  20113. + # as well as any symbol that contains `d'.
  20114. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  20115. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  20116. + # platforms (ab)use it in PIC code, but their linkers get confused if
  20117. + # the symbol is explicitly referenced. Since portable code cannot
  20118. + # rely on this symbol name, it's probably fine to never include it in
  20119. + # preloaded symbol tables.
  20120. + # Exclude shared library initialization/finalization symbols.
  20121. + extract_expsyms_cmds=
  20122. +
  20123. + case $host_os in
  20124. + cygwin* | mingw* | pw32* | cegcc*)
  20125. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  20126. + # When not using gcc, we currently assume that we are using
  20127. + # Microsoft Visual C++.
  20128. + if test "$GCC" != yes; then
  20129. + with_gnu_ld=no
  20130. + fi
  20131. + ;;
  20132. + interix*)
  20133. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  20134. + with_gnu_ld=yes
  20135. + ;;
  20136. + openbsd*)
  20137. + with_gnu_ld=no
  20138. + ;;
  20139. + linux* | k*bsd*-gnu)
  20140. + link_all_deplibs=no
  20141. + ;;
  20142. + esac
  20143. +
  20144. + ld_shlibs=yes
  20145. + if test "$with_gnu_ld" = yes; then
  20146. + # If archive_cmds runs LD, not CC, wlarc should be empty
  20147. + wlarc='${wl}'
  20148. +
  20149. + # Set some defaults for GNU ld with shared library support. These
  20150. + # are reset later if shared libraries are not supported. Putting them
  20151. + # here allows them to be overridden if necessary.
  20152. + runpath_var=LD_RUN_PATH
  20153. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20154. + export_dynamic_flag_spec='${wl}--export-dynamic'
  20155. + # ancient GNU ld didn't support --whole-archive et. al.
  20156. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  20157. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  20158. + else
  20159. + whole_archive_flag_spec=
  20160. + fi
  20161. + supports_anon_versioning=no
  20162. + case `$LD -v 2>&1` in
  20163. + *GNU\ gold*) supports_anon_versioning=yes ;;
  20164. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  20165. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  20166. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  20167. + *\ 2.11.*) ;; # other 2.11 versions
  20168. + *) supports_anon_versioning=yes ;;
  20169. + esac
  20170. +
  20171. + # See if GNU ld supports shared libraries.
  20172. + case $host_os in
  20173. + aix[3-9]*)
  20174. + # On AIX/PPC, the GNU linker is very broken
  20175. + if test "$host_cpu" != ia64; then
  20176. + ld_shlibs=no
  20177. + cat <<_LT_EOF 1>&2
  20178. +
  20179. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  20180. +*** to be unable to reliably create shared libraries on AIX.
  20181. +*** Therefore, libtool is disabling shared libraries support. If you
  20182. +*** really care for shared libraries, you may want to modify your PATH
  20183. +*** so that a non-GNU linker is found, and then restart.
  20184. +
  20185. +_LT_EOF
  20186. + fi
  20187. + ;;
  20188. +
  20189. + amigaos*)
  20190. + case $host_cpu in
  20191. + powerpc)
  20192. + # see comment about AmigaOS4 .so support
  20193. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20194. + archive_expsym_cmds=''
  20195. + ;;
  20196. + m68k)
  20197. + 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)'
  20198. + hardcode_libdir_flag_spec='-L$libdir'
  20199. + hardcode_minus_L=yes
  20200. + ;;
  20201. + esac
  20202. + ;;
  20203. +
  20204. + beos*)
  20205. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20206. + allow_undefined_flag=unsupported
  20207. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  20208. + # support --undefined. This deserves some investigation. FIXME
  20209. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20210. + else
  20211. + ld_shlibs=no
  20212. + fi
  20213. + ;;
  20214. +
  20215. + cygwin* | mingw* | pw32* | cegcc*)
  20216. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  20217. + # as there is no search path for DLLs.
  20218. + hardcode_libdir_flag_spec='-L$libdir'
  20219. + allow_undefined_flag=unsupported
  20220. + always_export_symbols=no
  20221. + enable_shared_with_static_runtimes=yes
  20222. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  20223. +
  20224. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  20225. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  20226. + # If the export-symbols file already is a .def file (1st line
  20227. + # is EXPORTS), use it as is; otherwise, prepend...
  20228. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  20229. + cp $export_symbols $output_objdir/$soname.def;
  20230. + else
  20231. + echo EXPORTS > $output_objdir/$soname.def;
  20232. + cat $export_symbols >> $output_objdir/$soname.def;
  20233. + fi~
  20234. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  20235. + else
  20236. + ld_shlibs=no
  20237. + fi
  20238. + ;;
  20239. +
  20240. + interix[3-9]*)
  20241. + hardcode_direct=no
  20242. + hardcode_shlibpath_var=no
  20243. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  20244. + export_dynamic_flag_spec='${wl}-E'
  20245. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  20246. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  20247. + # default) and relocated if they conflict, which is a slow very memory
  20248. + # consuming and fragmenting process. To avoid this, we pick a random,
  20249. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  20250. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  20251. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  20252. + 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'
  20253. + ;;
  20254. +
  20255. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  20256. + tmp_diet=no
  20257. + if test "$host_os" = linux-dietlibc; then
  20258. + case $cc_basename in
  20259. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  20260. + esac
  20261. + fi
  20262. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  20263. + && test "$tmp_diet" = no
  20264. + then
  20265. + tmp_addflag=
  20266. + tmp_sharedflag='-shared'
  20267. + case $cc_basename,$host_cpu in
  20268. + pgcc*) # Portland Group C compiler
  20269. + 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'
  20270. + tmp_addflag=' $pic_flag'
  20271. + ;;
  20272. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  20273. + 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'
  20274. + tmp_addflag=' $pic_flag -Mnomain' ;;
  20275. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  20276. + tmp_addflag=' -i_dynamic' ;;
  20277. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  20278. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  20279. + ifc* | ifort*) # Intel Fortran compiler
  20280. + tmp_addflag=' -nofor_main' ;;
  20281. + lf95*) # Lahey Fortran 8.1
  20282. + whole_archive_flag_spec=
  20283. + tmp_sharedflag='--shared' ;;
  20284. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  20285. + tmp_sharedflag='-qmkshrobj'
  20286. + tmp_addflag= ;;
  20287. + esac
  20288. + case `$CC -V 2>&1 | sed 5q` in
  20289. + *Sun\ C*) # Sun C 5.9
  20290. + 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'
  20291. + compiler_needs_object=yes
  20292. + tmp_sharedflag='-G' ;;
  20293. + *Sun\ F*) # Sun Fortran 8.3
  20294. + tmp_sharedflag='-G' ;;
  20295. + esac
  20296. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20297. +
  20298. + if test "x$supports_anon_versioning" = xyes; then
  20299. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  20300. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  20301. + echo "local: *; };" >> $output_objdir/$libname.ver~
  20302. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  20303. + fi
  20304. +
  20305. + case $cc_basename in
  20306. + xlf*)
  20307. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  20308. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  20309. + hardcode_libdir_flag_spec=
  20310. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  20311. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  20312. + if test "x$supports_anon_versioning" = xyes; then
  20313. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  20314. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  20315. + echo "local: *; };" >> $output_objdir/$libname.ver~
  20316. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  20317. + fi
  20318. + ;;
  20319. + esac
  20320. + else
  20321. + ld_shlibs=no
  20322. + fi
  20323. + ;;
  20324. +
  20325. + netbsd* | netbsdelf*-gnu)
  20326. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  20327. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  20328. + wlarc=
  20329. + else
  20330. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20331. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20332. + fi
  20333. + ;;
  20334. +
  20335. + solaris*)
  20336. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  20337. + ld_shlibs=no
  20338. + cat <<_LT_EOF 1>&2
  20339. +
  20340. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  20341. +*** create shared libraries on Solaris systems. Therefore, libtool
  20342. +*** is disabling shared libraries support. We urge you to upgrade GNU
  20343. +*** binutils to release 2.9.1 or newer. Another option is to modify
  20344. +*** your PATH or compiler configuration so that the native linker is
  20345. +*** used, and then restart.
  20346. +
  20347. +_LT_EOF
  20348. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20349. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20350. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20351. + else
  20352. + ld_shlibs=no
  20353. + fi
  20354. + ;;
  20355. +
  20356. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  20357. + case `$LD -v 2>&1` in
  20358. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  20359. + ld_shlibs=no
  20360. + cat <<_LT_EOF 1>&2
  20361. +
  20362. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  20363. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  20364. +*** is disabling shared libraries support. We urge you to upgrade GNU
  20365. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  20366. +*** your PATH or compiler configuration so that the native linker is
  20367. +*** used, and then restart.
  20368. +
  20369. +_LT_EOF
  20370. + ;;
  20371. + *)
  20372. + # For security reasons, it is highly recommended that you always
  20373. + # use absolute paths for naming shared libraries, and exclude the
  20374. + # DT_RUNPATH tag from executables and libraries. But doing so
  20375. + # requires that you compile everything twice, which is a pain.
  20376. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20377. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20378. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20379. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20380. + else
  20381. + ld_shlibs=no
  20382. + fi
  20383. + ;;
  20384. + esac
  20385. + ;;
  20386. +
  20387. + sunos4*)
  20388. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20389. + wlarc=
  20390. + hardcode_direct=yes
  20391. + hardcode_shlibpath_var=no
  20392. + ;;
  20393. +
  20394. + *)
  20395. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20396. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20397. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20398. + else
  20399. + ld_shlibs=no
  20400. + fi
  20401. + ;;
  20402. + esac
  20403. +
  20404. + if test "$ld_shlibs" = no; then
  20405. + runpath_var=
  20406. + hardcode_libdir_flag_spec=
  20407. + export_dynamic_flag_spec=
  20408. + whole_archive_flag_spec=
  20409. + fi
  20410. + else
  20411. + # PORTME fill in a description of your system's linker (not GNU ld)
  20412. + case $host_os in
  20413. + aix3*)
  20414. + allow_undefined_flag=unsupported
  20415. + always_export_symbols=yes
  20416. + 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'
  20417. + # Note: this linker hardcodes the directories in LIBPATH if there
  20418. + # are no directories specified by -L.
  20419. + hardcode_minus_L=yes
  20420. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  20421. + # Neither direct hardcoding nor static linking is supported with a
  20422. + # broken collect2.
  20423. + hardcode_direct=unsupported
  20424. + fi
  20425. + ;;
  20426. +
  20427. + aix[4-9]*)
  20428. + if test "$host_cpu" = ia64; then
  20429. + # On IA64, the linker does run time linking by default, so we don't
  20430. + # have to do anything special.
  20431. + aix_use_runtimelinking=no
  20432. + exp_sym_flag='-Bexport'
  20433. + no_entry_flag=""
  20434. + else
  20435. + # If we're using GNU nm, then we don't want the "-C" option.
  20436. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20437. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  20438. + 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'
  20439. + else
  20440. + 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'
  20441. + fi
  20442. + aix_use_runtimelinking=no
  20443. +
  20444. + # Test if we are trying to use run time linking or normal
  20445. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  20446. + # need to do runtime linking.
  20447. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  20448. + for ld_flag in $LDFLAGS; do
  20449. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  20450. + aix_use_runtimelinking=yes
  20451. + break
  20452. + fi
  20453. + done
  20454. + ;;
  20455. + esac
  20456. +
  20457. + exp_sym_flag='-bexport'
  20458. + no_entry_flag='-bnoentry'
  20459. + fi
  20460. +
  20461. + # When large executables or shared objects are built, AIX ld can
  20462. + # have problems creating the table of contents. If linking a library
  20463. + # or program results in "error TOC overflow" add -mminimal-toc to
  20464. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  20465. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  20466. +
  20467. + archive_cmds=''
  20468. + hardcode_direct=yes
  20469. + hardcode_direct_absolute=yes
  20470. + hardcode_libdir_separator=':'
  20471. + link_all_deplibs=yes
  20472. + file_list_spec='${wl}-f,'
  20473. +
  20474. + if test "$GCC" = yes; then
  20475. + case $host_os in aix4.[012]|aix4.[012].*)
  20476. + # We only want to do this on AIX 4.2 and lower, the check
  20477. + # below for broken collect2 doesn't work under 4.3+
  20478. + collect2name=`${CC} -print-prog-name=collect2`
  20479. + if test -f "$collect2name" &&
  20480. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  20481. + then
  20482. + # We have reworked collect2
  20483. + :
  20484. + else
  20485. + # We have old collect2
  20486. + hardcode_direct=unsupported
  20487. + # It fails to find uninstalled libraries when the uninstalled
  20488. + # path is not listed in the libpath. Setting hardcode_minus_L
  20489. + # to unsupported forces relinking
  20490. + hardcode_minus_L=yes
  20491. + hardcode_libdir_flag_spec='-L$libdir'
  20492. + hardcode_libdir_separator=
  20493. + fi
  20494. + ;;
  20495. + esac
  20496. + shared_flag='-shared'
  20497. + if test "$aix_use_runtimelinking" = yes; then
  20498. + shared_flag="$shared_flag "'${wl}-G'
  20499. + fi
  20500. + link_all_deplibs=no
  20501. + else
  20502. + # not using gcc
  20503. + if test "$host_cpu" = ia64; then
  20504. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  20505. + # chokes on -Wl,-G. The following line is correct:
  20506. + shared_flag='-G'
  20507. + else
  20508. + if test "$aix_use_runtimelinking" = yes; then
  20509. + shared_flag='${wl}-G'
  20510. + else
  20511. + shared_flag='${wl}-bM:SRE'
  20512. + fi
  20513. + fi
  20514. + fi
  20515. +
  20516. + export_dynamic_flag_spec='${wl}-bexpall'
  20517. + # It seems that -bexpall does not export symbols beginning with
  20518. + # underscore (_), so it is better to generate a list of symbols to export.
  20519. + always_export_symbols=yes
  20520. + if test "$aix_use_runtimelinking" = yes; then
  20521. + # Warning - without using the other runtime loading flags (-brtl),
  20522. + # -berok will link without error, but may produce a broken library.
  20523. + allow_undefined_flag='-berok'
  20524. + # Determine the default libpath from the value encoded in an
  20525. + # empty executable.
  20526. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20527. +/* end confdefs.h. */
  20528. +
  20529. +int
  20530. +main ()
  20531. +{
  20532. +
  20533. + ;
  20534. + return 0;
  20535. +}
  20536. +_ACEOF
  20537. +if ac_fn_c_try_link "$LINENO"; then :
  20538. +
  20539. +lt_aix_libpath_sed='
  20540. + /Import File Strings/,/^$/ {
  20541. + /^0/ {
  20542. + s/^0 *\(.*\)$/\1/
  20543. + p
  20544. + }
  20545. + }'
  20546. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  20547. +# Check for a 64-bit object if we didn't find anything.
  20548. +if test -z "$aix_libpath"; then
  20549. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  20550. +fi
  20551. +fi
  20552. +rm -f core conftest.err conftest.$ac_objext \
  20553. + conftest$ac_exeext conftest.$ac_ext
  20554. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20555. +
  20556. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  20557. + 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"
  20558. + else
  20559. + if test "$host_cpu" = ia64; then
  20560. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  20561. + allow_undefined_flag="-z nodefs"
  20562. + 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"
  20563. + else
  20564. + # Determine the default libpath from the value encoded in an
  20565. + # empty executable.
  20566. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20567. +/* end confdefs.h. */
  20568. +
  20569. +int
  20570. +main ()
  20571. +{
  20572. +
  20573. + ;
  20574. + return 0;
  20575. +}
  20576. +_ACEOF
  20577. +if ac_fn_c_try_link "$LINENO"; then :
  20578. +
  20579. +lt_aix_libpath_sed='
  20580. + /Import File Strings/,/^$/ {
  20581. + /^0/ {
  20582. + s/^0 *\(.*\)$/\1/
  20583. + p
  20584. + }
  20585. + }'
  20586. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  20587. +# Check for a 64-bit object if we didn't find anything.
  20588. +if test -z "$aix_libpath"; then
  20589. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  20590. +fi
  20591. +fi
  20592. +rm -f core conftest.err conftest.$ac_objext \
  20593. + conftest$ac_exeext conftest.$ac_ext
  20594. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20595. +
  20596. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  20597. + # Warning - without using the other run time loading flags,
  20598. + # -berok will link without error, but may produce a broken library.
  20599. + no_undefined_flag=' ${wl}-bernotok'
  20600. + allow_undefined_flag=' ${wl}-berok'
  20601. + # Exported symbols can be pulled into shared objects from archives
  20602. + whole_archive_flag_spec='$convenience'
  20603. + archive_cmds_need_lc=yes
  20604. + # This is similar to how AIX traditionally builds its shared libraries.
  20605. + 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'
  20606. + fi
  20607. + fi
  20608. + ;;
  20609. +
  20610. + amigaos*)
  20611. + case $host_cpu in
  20612. + powerpc)
  20613. + # see comment about AmigaOS4 .so support
  20614. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20615. + archive_expsym_cmds=''
  20616. + ;;
  20617. + m68k)
  20618. + 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)'
  20619. + hardcode_libdir_flag_spec='-L$libdir'
  20620. + hardcode_minus_L=yes
  20621. + ;;
  20622. + esac
  20623. + ;;
  20624. +
  20625. + bsdi[45]*)
  20626. + export_dynamic_flag_spec=-rdynamic
  20627. + ;;
  20628. +
  20629. + cygwin* | mingw* | pw32* | cegcc*)
  20630. + # When not using gcc, we currently assume that we are using
  20631. + # Microsoft Visual C++.
  20632. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  20633. + # no search path for DLLs.
  20634. + hardcode_libdir_flag_spec=' '
  20635. + allow_undefined_flag=unsupported
  20636. + # Tell ltmain to make .lib files, not .a files.
  20637. + libext=lib
  20638. + # Tell ltmain to make .dll files, not .so files.
  20639. + shrext_cmds=".dll"
  20640. + # FIXME: Setting linknames here is a bad hack.
  20641. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  20642. + # The linker will automatically build a .lib file if we build a DLL.
  20643. + old_archive_from_new_cmds='true'
  20644. + # FIXME: Should let the user specify the lib program.
  20645. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  20646. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  20647. + enable_shared_with_static_runtimes=yes
  20648. + ;;
  20649. +
  20650. + darwin* | rhapsody*)
  20651. +
  20652. +
  20653. + archive_cmds_need_lc=no
  20654. + hardcode_direct=no
  20655. + hardcode_automatic=yes
  20656. + hardcode_shlibpath_var=unsupported
  20657. + whole_archive_flag_spec=''
  20658. + link_all_deplibs=yes
  20659. + allow_undefined_flag="$_lt_dar_allow_undefined"
  20660. + case $cc_basename in
  20661. + ifort*) _lt_dar_can_shared=yes ;;
  20662. + *) _lt_dar_can_shared=$GCC ;;
  20663. + esac
  20664. + if test "$_lt_dar_can_shared" = "yes"; then
  20665. + output_verbose_link_cmd=echo
  20666. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  20667. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  20668. + 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}"
  20669. + 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}"
  20670. +
  20671. + else
  20672. + ld_shlibs=no
  20673. + fi
  20674. +
  20675. + ;;
  20676. +
  20677. + dgux*)
  20678. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20679. + hardcode_libdir_flag_spec='-L$libdir'
  20680. + hardcode_shlibpath_var=no
  20681. + ;;
  20682. +
  20683. + freebsd1*)
  20684. + ld_shlibs=no
  20685. + ;;
  20686. +
  20687. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  20688. + # support. Future versions do this automatically, but an explicit c++rt0.o
  20689. + # does not break anything, and helps significantly (at the cost of a little
  20690. + # extra space).
  20691. + freebsd2.2*)
  20692. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  20693. + hardcode_libdir_flag_spec='-R$libdir'
  20694. + hardcode_direct=yes
  20695. + hardcode_shlibpath_var=no
  20696. + ;;
  20697. +
  20698. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  20699. + freebsd2*)
  20700. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20701. + hardcode_direct=yes
  20702. + hardcode_minus_L=yes
  20703. + hardcode_shlibpath_var=no
  20704. + ;;
  20705. +
  20706. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  20707. + freebsd* | dragonfly*)
  20708. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  20709. + hardcode_libdir_flag_spec='-R$libdir'
  20710. + hardcode_direct=yes
  20711. + hardcode_shlibpath_var=no
  20712. + ;;
  20713. +
  20714. + hpux9*)
  20715. + if test "$GCC" = yes; then
  20716. + 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'
  20717. + else
  20718. + 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'
  20719. + fi
  20720. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20721. + hardcode_libdir_separator=:
  20722. + hardcode_direct=yes
  20723. +
  20724. + # hardcode_minus_L: Not really in the search PATH,
  20725. + # but as the default location of the library.
  20726. + hardcode_minus_L=yes
  20727. + export_dynamic_flag_spec='${wl}-E'
  20728. + ;;
  20729. +
  20730. + hpux10*)
  20731. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20732. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20733. + else
  20734. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  20735. + fi
  20736. + if test "$with_gnu_ld" = no; then
  20737. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20738. + hardcode_libdir_flag_spec_ld='+b $libdir'
  20739. + hardcode_libdir_separator=:
  20740. + hardcode_direct=yes
  20741. + hardcode_direct_absolute=yes
  20742. + export_dynamic_flag_spec='${wl}-E'
  20743. + # hardcode_minus_L: Not really in the search PATH,
  20744. + # but as the default location of the library.
  20745. + hardcode_minus_L=yes
  20746. + fi
  20747. + ;;
  20748. +
  20749. + hpux11*)
  20750. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20751. + case $host_cpu in
  20752. + hppa*64*)
  20753. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20754. + ;;
  20755. + ia64*)
  20756. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20757. + ;;
  20758. + *)
  20759. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20760. + ;;
  20761. + esac
  20762. + else
  20763. + case $host_cpu in
  20764. + hppa*64*)
  20765. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20766. + ;;
  20767. + ia64*)
  20768. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20769. + ;;
  20770. + *)
  20771. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20772. + ;;
  20773. + esac
  20774. + fi
  20775. + if test "$with_gnu_ld" = no; then
  20776. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20777. + hardcode_libdir_separator=:
  20778. +
  20779. + case $host_cpu in
  20780. + hppa*64*|ia64*)
  20781. + hardcode_direct=no
  20782. + hardcode_shlibpath_var=no
  20783. + ;;
  20784. + *)
  20785. + hardcode_direct=yes
  20786. + hardcode_direct_absolute=yes
  20787. + export_dynamic_flag_spec='${wl}-E'
  20788. +
  20789. + # hardcode_minus_L: Not really in the search PATH,
  20790. + # but as the default location of the library.
  20791. + hardcode_minus_L=yes
  20792. + ;;
  20793. + esac
  20794. + fi
  20795. + ;;
  20796. +
  20797. + irix5* | irix6* | nonstopux*)
  20798. + if test "$GCC" = yes; then
  20799. + 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'
  20800. + # Try to use the -exported_symbol ld option, if it does not
  20801. + # work, assume that -exports_file does not work either and
  20802. + # implicitly export all symbols.
  20803. + save_LDFLAGS="$LDFLAGS"
  20804. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  20805. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20806. +/* end confdefs.h. */
  20807. +int foo(void) {}
  20808. +_ACEOF
  20809. +if ac_fn_c_try_link "$LINENO"; then :
  20810. + 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'
  20811. +
  20812. +fi
  20813. +rm -f core conftest.err conftest.$ac_objext \
  20814. + conftest$ac_exeext conftest.$ac_ext
  20815. + LDFLAGS="$save_LDFLAGS"
  20816. + else
  20817. + 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'
  20818. + 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'
  20819. + fi
  20820. + archive_cmds_need_lc='no'
  20821. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20822. + hardcode_libdir_separator=:
  20823. + inherit_rpath=yes
  20824. + link_all_deplibs=yes
  20825. + ;;
  20826. +
  20827. + netbsd* | netbsdelf*-gnu)
  20828. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  20829. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  20830. + else
  20831. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  20832. + fi
  20833. + hardcode_libdir_flag_spec='-R$libdir'
  20834. + hardcode_direct=yes
  20835. + hardcode_shlibpath_var=no
  20836. + ;;
  20837. +
  20838. + newsos6)
  20839. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20840. + hardcode_direct=yes
  20841. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20842. + hardcode_libdir_separator=:
  20843. + hardcode_shlibpath_var=no
  20844. + ;;
  20845. +
  20846. + *nto* | *qnx*)
  20847. + ;;
  20848. +
  20849. + openbsd*)
  20850. + if test -f /usr/libexec/ld.so; then
  20851. + hardcode_direct=yes
  20852. + hardcode_shlibpath_var=no
  20853. + hardcode_direct_absolute=yes
  20854. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20855. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20856. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  20857. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  20858. + export_dynamic_flag_spec='${wl}-E'
  20859. + else
  20860. + case $host_os in
  20861. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  20862. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20863. + hardcode_libdir_flag_spec='-R$libdir'
  20864. + ;;
  20865. + *)
  20866. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20867. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  20868. + ;;
  20869. + esac
  20870. + fi
  20871. + else
  20872. + ld_shlibs=no
  20873. + fi
  20874. + ;;
  20875. +
  20876. + os2*)
  20877. + hardcode_libdir_flag_spec='-L$libdir'
  20878. + hardcode_minus_L=yes
  20879. + allow_undefined_flag=unsupported
  20880. + 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'
  20881. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  20882. + ;;
  20883. +
  20884. + osf3*)
  20885. + if test "$GCC" = yes; then
  20886. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  20887. + 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'
  20888. + else
  20889. + allow_undefined_flag=' -expect_unresolved \*'
  20890. + 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'
  20891. + fi
  20892. + archive_cmds_need_lc='no'
  20893. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20894. + hardcode_libdir_separator=:
  20895. + ;;
  20896. +
  20897. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  20898. + if test "$GCC" = yes; then
  20899. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  20900. + 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'
  20901. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20902. + else
  20903. + allow_undefined_flag=' -expect_unresolved \*'
  20904. + 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'
  20905. + 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~
  20906. + $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'
  20907. +
  20908. + # Both c and cxx compiler support -rpath directly
  20909. + hardcode_libdir_flag_spec='-rpath $libdir'
  20910. + fi
  20911. + archive_cmds_need_lc='no'
  20912. + hardcode_libdir_separator=:
  20913. + ;;
  20914. +
  20915. + solaris*)
  20916. + no_undefined_flag=' -z defs'
  20917. + if test "$GCC" = yes; then
  20918. + wlarc='${wl}'
  20919. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20920. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  20921. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  20922. + else
  20923. + case `$CC -V 2>&1` in
  20924. + *"Compilers 5.0"*)
  20925. + wlarc=''
  20926. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20927. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  20928. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  20929. + ;;
  20930. + *)
  20931. + wlarc='${wl}'
  20932. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  20933. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  20934. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  20935. + ;;
  20936. + esac
  20937. + fi
  20938. + hardcode_libdir_flag_spec='-R$libdir'
  20939. + hardcode_shlibpath_var=no
  20940. + case $host_os in
  20941. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  20942. + *)
  20943. + # The compiler driver will combine and reorder linker options,
  20944. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  20945. + # but is careful enough not to reorder.
  20946. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  20947. + if test "$GCC" = yes; then
  20948. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  20949. + else
  20950. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  20951. + fi
  20952. + ;;
  20953. + esac
  20954. + link_all_deplibs=yes
  20955. + ;;
  20956. +
  20957. + sunos4*)
  20958. + if test "x$host_vendor" = xsequent; then
  20959. + # Use $CC to link under sequent, because it throws in some extra .o
  20960. + # files that make .init and .fini sections work.
  20961. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  20962. + else
  20963. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  20964. + fi
  20965. + hardcode_libdir_flag_spec='-L$libdir'
  20966. + hardcode_direct=yes
  20967. + hardcode_minus_L=yes
  20968. + hardcode_shlibpath_var=no
  20969. + ;;
  20970. +
  20971. + sysv4)
  20972. + case $host_vendor in
  20973. + sni)
  20974. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20975. + hardcode_direct=yes # is this really true???
  20976. + ;;
  20977. + siemens)
  20978. + ## LD is ld it makes a PLAMLIB
  20979. + ## CC just makes a GrossModule.
  20980. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  20981. + reload_cmds='$CC -r -o $output$reload_objs'
  20982. + hardcode_direct=no
  20983. + ;;
  20984. + motorola)
  20985. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20986. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  20987. + ;;
  20988. + esac
  20989. + runpath_var='LD_RUN_PATH'
  20990. + hardcode_shlibpath_var=no
  20991. + ;;
  20992. +
  20993. + sysv4.3*)
  20994. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20995. + hardcode_shlibpath_var=no
  20996. + export_dynamic_flag_spec='-Bexport'
  20997. + ;;
  20998. +
  20999. + sysv4*MP*)
  21000. + if test -d /usr/nec; then
  21001. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21002. + hardcode_shlibpath_var=no
  21003. + runpath_var=LD_RUN_PATH
  21004. + hardcode_runpath_var=yes
  21005. + ld_shlibs=yes
  21006. + fi
  21007. + ;;
  21008. +
  21009. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  21010. + no_undefined_flag='${wl}-z,text'
  21011. + archive_cmds_need_lc=no
  21012. + hardcode_shlibpath_var=no
  21013. + runpath_var='LD_RUN_PATH'
  21014. +
  21015. + if test "$GCC" = yes; then
  21016. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21017. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21018. + else
  21019. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21020. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21021. + fi
  21022. + ;;
  21023. +
  21024. + sysv5* | sco3.2v5* | sco5v6*)
  21025. + # Note: We can NOT use -z defs as we might desire, because we do not
  21026. + # link with -lc, and that would cause any symbols used from libc to
  21027. + # always be unresolved, which means just about no library would
  21028. + # ever link correctly. If we're not using GNU ld we use -z text
  21029. + # though, which does catch some bad symbols but isn't as heavy-handed
  21030. + # as -z defs.
  21031. + no_undefined_flag='${wl}-z,text'
  21032. + allow_undefined_flag='${wl}-z,nodefs'
  21033. + archive_cmds_need_lc=no
  21034. + hardcode_shlibpath_var=no
  21035. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  21036. + hardcode_libdir_separator=':'
  21037. + link_all_deplibs=yes
  21038. + export_dynamic_flag_spec='${wl}-Bexport'
  21039. + runpath_var='LD_RUN_PATH'
  21040. +
  21041. + if test "$GCC" = yes; then
  21042. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21043. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21044. + else
  21045. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21046. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21047. + fi
  21048. + ;;
  21049. +
  21050. + uts4*)
  21051. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21052. + hardcode_libdir_flag_spec='-L$libdir'
  21053. + hardcode_shlibpath_var=no
  21054. + ;;
  21055. +
  21056. + *)
  21057. + ld_shlibs=no
  21058. + ;;
  21059. + esac
  21060. +
  21061. + if test x$host_vendor = xsni; then
  21062. + case $host in
  21063. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  21064. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  21065. + ;;
  21066. + esac
  21067. + fi
  21068. + fi
  21069. +
  21070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  21071. +$as_echo "$ld_shlibs" >&6; }
  21072. +test "$ld_shlibs" = no && can_build_shared=no
  21073. +
  21074. +with_gnu_ld=$with_gnu_ld
  21075. +
  21076. +
  21077. +
  21078. +
  21079. +
  21080. +
  21081. +
  21082. +
  21083. +
  21084. +
  21085. +
  21086. +
  21087. +
  21088. +
  21089. +
  21090. +#
  21091. +# Do we need to explicitly link libc?
  21092. +#
  21093. +case "x$archive_cmds_need_lc" in
  21094. +x|xyes)
  21095. + # Assume -lc should be added
  21096. + archive_cmds_need_lc=yes
  21097. +
  21098. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  21099. + case $archive_cmds in
  21100. + *'~'*)
  21101. + # FIXME: we may have to deal with multi-command sequences.
  21102. + ;;
  21103. + '$CC '*)
  21104. + # Test whether the compiler implicitly links with -lc since on some
  21105. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  21106. + # to ld, don't add -lc before -lgcc.
  21107. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  21108. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  21109. + $RM conftest*
  21110. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21111. +
  21112. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  21113. + (eval $ac_compile) 2>&5
  21114. + ac_status=$?
  21115. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21116. + test $ac_status = 0; } 2>conftest.err; then
  21117. + soname=conftest
  21118. + lib=conftest
  21119. + libobjs=conftest.$ac_objext
  21120. + deplibs=
  21121. + wl=$lt_prog_compiler_wl
  21122. + pic_flag=$lt_prog_compiler_pic
  21123. + compiler_flags=-v
  21124. + linker_flags=-v
  21125. + verstring=
  21126. + output_objdir=.
  21127. + libname=conftest
  21128. + lt_save_allow_undefined_flag=$allow_undefined_flag
  21129. + allow_undefined_flag=
  21130. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  21131. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  21132. + ac_status=$?
  21133. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21134. + test $ac_status = 0; }
  21135. + then
  21136. + archive_cmds_need_lc=no
  21137. + else
  21138. + archive_cmds_need_lc=yes
  21139. + fi
  21140. + allow_undefined_flag=$lt_save_allow_undefined_flag
  21141. + else
  21142. + cat conftest.err 1>&5
  21143. + fi
  21144. + $RM conftest*
  21145. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  21146. +$as_echo "$archive_cmds_need_lc" >&6; }
  21147. + ;;
  21148. + esac
  21149. + fi
  21150. + ;;
  21151. +esac
  21152. +
  21153. +
  21154. +
  21155. +
  21156. +
  21157. +
  21158. +
  21159. +
  21160. +
  21161. +
  21162. +
  21163. +
  21164. +
  21165. +
  21166. +
  21167. +
  21168. +
  21169. +
  21170. +
  21171. +
  21172. +
  21173. +
  21174. +
  21175. +
  21176. +
  21177. +
  21178. +
  21179. +
  21180. +
  21181. +
  21182. +
  21183. +
  21184. +
  21185. +
  21186. +
  21187. +
  21188. +
  21189. +
  21190. +
  21191. +
  21192. +
  21193. +
  21194. +
  21195. +
  21196. +
  21197. +
  21198. +
  21199. +
  21200. +
  21201. +
  21202. +
  21203. +
  21204. +
  21205. +
  21206. +
  21207. +
  21208. +
  21209. +
  21210. +
  21211. +
  21212. +
  21213. +
  21214. +
  21215. +
  21216. +
  21217. +
  21218. +
  21219. +
  21220. +
  21221. +
  21222. +
  21223. +
  21224. +
  21225. +
  21226. +
  21227. +
  21228. +
  21229. +
  21230. +
  21231. +
  21232. +
  21233. +
  21234. +
  21235. +
  21236. +
  21237. +
  21238. +
  21239. +
  21240. +
  21241. +
  21242. +
  21243. +
  21244. +
  21245. +
  21246. +
  21247. +
  21248. +
  21249. +
  21250. +
  21251. +
  21252. +
  21253. +
  21254. +
  21255. +
  21256. +
  21257. +
  21258. +
  21259. +
  21260. +
  21261. +
  21262. +
  21263. +
  21264. +
  21265. +
  21266. +
  21267. +
  21268. +
  21269. +
  21270. +
  21271. +
  21272. +
  21273. +
  21274. +
  21275. +
  21276. +
  21277. +
  21278. +
  21279. +
  21280. +
  21281. +
  21282. +
  21283. +
  21284. +
  21285. +
  21286. +
  21287. +
  21288. +
  21289. +
  21290. +
  21291. +
  21292. +
  21293. +
  21294. +
  21295. +
  21296. +
  21297. +
  21298. +
  21299. +
  21300. +
  21301. +
  21302. +
  21303. +
  21304. +
  21305. +
  21306. +
  21307. +
  21308. +
  21309. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  21310. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  21311. +
  21312. +if test "$GCC" = yes; then
  21313. + case $host_os in
  21314. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  21315. + *) lt_awk_arg="/^libraries:/" ;;
  21316. + esac
  21317. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  21318. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  21319. + # if the path contains ";" then we assume it to be the separator
  21320. + # otherwise default to the standard path separator (i.e. ":") - it is
  21321. + # assumed that no part of a normal pathname contains ";" but that should
  21322. + # okay in the real world where ";" in dirpaths is itself problematic.
  21323. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  21324. + else
  21325. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  21326. + fi
  21327. + # Ok, now we have the path, separated by spaces, we can step through it
  21328. + # and add multilib dir if necessary.
  21329. + lt_tmp_lt_search_path_spec=
  21330. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  21331. + for lt_sys_path in $lt_search_path_spec; do
  21332. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  21333. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  21334. + else
  21335. + test -d "$lt_sys_path" && \
  21336. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  21337. + fi
  21338. + done
  21339. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  21340. +BEGIN {RS=" "; FS="/|\n";} {
  21341. + lt_foo="";
  21342. + lt_count=0;
  21343. + for (lt_i = NF; lt_i > 0; lt_i--) {
  21344. + if ($lt_i != "" && $lt_i != ".") {
  21345. + if ($lt_i == "..") {
  21346. + lt_count++;
  21347. + } else {
  21348. + if (lt_count == 0) {
  21349. + lt_foo="/" $lt_i lt_foo;
  21350. + } else {
  21351. + lt_count--;
  21352. + }
  21353. + }
  21354. + }
  21355. + }
  21356. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  21357. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  21358. +}'`
  21359. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  21360. +else
  21361. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  21362. +fi
  21363. +library_names_spec=
  21364. +libname_spec='lib$name'
  21365. +soname_spec=
  21366. +shrext_cmds=".so"
  21367. +postinstall_cmds=
  21368. +postuninstall_cmds=
  21369. +finish_cmds=
  21370. +finish_eval=
  21371. +shlibpath_var=
  21372. +shlibpath_overrides_runpath=unknown
  21373. +version_type=none
  21374. +dynamic_linker="$host_os ld.so"
  21375. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  21376. +need_lib_prefix=unknown
  21377. +hardcode_into_libs=no
  21378. +
  21379. +# when you set need_version to no, make sure it does not cause -set_version
  21380. +# flags to be left without arguments
  21381. +need_version=unknown
  21382. +
  21383. +case $host_os in
  21384. +aix3*)
  21385. + version_type=linux
  21386. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  21387. + shlibpath_var=LIBPATH
  21388. +
  21389. + # AIX 3 has no versioning support, so we append a major version to the name.
  21390. + soname_spec='${libname}${release}${shared_ext}$major'
  21391. + ;;
  21392. +
  21393. +aix[4-9]*)
  21394. + version_type=linux
  21395. + need_lib_prefix=no
  21396. + need_version=no
  21397. + hardcode_into_libs=yes
  21398. + if test "$host_cpu" = ia64; then
  21399. + # AIX 5 supports IA64
  21400. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  21401. + shlibpath_var=LD_LIBRARY_PATH
  21402. + else
  21403. + # With GCC up to 2.95.x, collect2 would create an import file
  21404. + # for dependence libraries. The import file would start with
  21405. + # the line `#! .'. This would cause the generated library to
  21406. + # depend on `.', always an invalid library. This was fixed in
  21407. + # development snapshots of GCC prior to 3.0.
  21408. + case $host_os in
  21409. + aix4 | aix4.[01] | aix4.[01].*)
  21410. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  21411. + echo ' yes '
  21412. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  21413. + :
  21414. + else
  21415. + can_build_shared=no
  21416. + fi
  21417. + ;;
  21418. + esac
  21419. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  21420. + # soname into executable. Probably we can add versioning support to
  21421. + # collect2, so additional links can be useful in future.
  21422. + if test "$aix_use_runtimelinking" = yes; then
  21423. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  21424. + # instead of lib<name>.a to let people know that these are not
  21425. + # typical AIX shared libraries.
  21426. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21427. + else
  21428. + # We preserve .a as extension for shared libraries through AIX4.2
  21429. + # and later when we are not doing run time linking.
  21430. + library_names_spec='${libname}${release}.a $libname.a'
  21431. + soname_spec='${libname}${release}${shared_ext}$major'
  21432. + fi
  21433. + shlibpath_var=LIBPATH
  21434. + fi
  21435. + ;;
  21436. +
  21437. +amigaos*)
  21438. + case $host_cpu in
  21439. + powerpc)
  21440. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  21441. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  21442. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21443. + ;;
  21444. + m68k)
  21445. + library_names_spec='$libname.ixlibrary $libname.a'
  21446. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  21447. + 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'
  21448. + ;;
  21449. + esac
  21450. + ;;
  21451. +
  21452. +beos*)
  21453. + library_names_spec='${libname}${shared_ext}'
  21454. + dynamic_linker="$host_os ld.so"
  21455. + shlibpath_var=LIBRARY_PATH
  21456. + ;;
  21457. +
  21458. +bsdi[45]*)
  21459. + version_type=linux
  21460. + need_version=no
  21461. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21462. + soname_spec='${libname}${release}${shared_ext}$major'
  21463. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  21464. + shlibpath_var=LD_LIBRARY_PATH
  21465. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  21466. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  21467. + # the default ld.so.conf also contains /usr/contrib/lib and
  21468. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  21469. + # libtool to hard-code these into programs
  21470. + ;;
  21471. +
  21472. +cygwin* | mingw* | pw32* | cegcc*)
  21473. + version_type=windows
  21474. + shrext_cmds=".dll"
  21475. + need_version=no
  21476. + need_lib_prefix=no
  21477. +
  21478. + case $GCC,$host_os in
  21479. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  21480. + library_names_spec='$libname.dll.a'
  21481. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  21482. + postinstall_cmds='base_file=`basename \${file}`~
  21483. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  21484. + dldir=$destdir/`dirname \$dlpath`~
  21485. + test -d \$dldir || mkdir -p \$dldir~
  21486. + $install_prog $dir/$dlname \$dldir/$dlname~
  21487. + chmod a+x \$dldir/$dlname~
  21488. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  21489. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  21490. + fi'
  21491. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  21492. + dlpath=$dir/\$dldll~
  21493. + $RM \$dlpath'
  21494. + shlibpath_overrides_runpath=yes
  21495. +
  21496. + case $host_os in
  21497. + cygwin*)
  21498. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  21499. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  21500. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  21501. + ;;
  21502. + mingw* | cegcc*)
  21503. + # MinGW DLLs use traditional 'lib' prefix
  21504. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  21505. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  21506. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  21507. + # It is most probably a Windows format PATH printed by
  21508. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  21509. + # path with ; separators, and with drive letters. We can handle the
  21510. + # drive letters (cygwin fileutils understands them), so leave them,
  21511. + # especially as we might pass files found there to a mingw objdump,
  21512. + # which wouldn't understand a cygwinified path. Ahh.
  21513. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  21514. + else
  21515. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  21516. + fi
  21517. + ;;
  21518. + pw32*)
  21519. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  21520. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  21521. + ;;
  21522. + esac
  21523. + ;;
  21524. +
  21525. + *)
  21526. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  21527. + ;;
  21528. + esac
  21529. + dynamic_linker='Win32 ld.exe'
  21530. + # FIXME: first we should search . and the directory the executable is in
  21531. + shlibpath_var=PATH
  21532. + ;;
  21533. +
  21534. +darwin* | rhapsody*)
  21535. + dynamic_linker="$host_os dyld"
  21536. + version_type=darwin
  21537. + need_lib_prefix=no
  21538. + need_version=no
  21539. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  21540. + soname_spec='${libname}${release}${major}$shared_ext'
  21541. + shlibpath_overrides_runpath=yes
  21542. + shlibpath_var=DYLD_LIBRARY_PATH
  21543. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  21544. +
  21545. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  21546. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  21547. + ;;
  21548. +
  21549. +dgux*)
  21550. + version_type=linux
  21551. + need_lib_prefix=no
  21552. + need_version=no
  21553. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  21554. + soname_spec='${libname}${release}${shared_ext}$major'
  21555. + shlibpath_var=LD_LIBRARY_PATH
  21556. + ;;
  21557. +
  21558. +freebsd1*)
  21559. + dynamic_linker=no
  21560. + ;;
  21561. +
  21562. +freebsd* | dragonfly*)
  21563. + # DragonFly does not have aout. When/if they implement a new
  21564. + # versioning mechanism, adjust this.
  21565. + if test -x /usr/bin/objformat; then
  21566. + objformat=`/usr/bin/objformat`
  21567. + else
  21568. + case $host_os in
  21569. + freebsd[123]*) objformat=aout ;;
  21570. + *) objformat=elf ;;
  21571. + esac
  21572. + fi
  21573. + version_type=freebsd-$objformat
  21574. + case $version_type in
  21575. + freebsd-elf*)
  21576. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21577. + need_version=no
  21578. + need_lib_prefix=no
  21579. + ;;
  21580. + freebsd-*)
  21581. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  21582. + need_version=yes
  21583. + ;;
  21584. + esac
  21585. + shlibpath_var=LD_LIBRARY_PATH
  21586. + case $host_os in
  21587. + freebsd2*)
  21588. + shlibpath_overrides_runpath=yes
  21589. + ;;
  21590. + freebsd3.[01]* | freebsdelf3.[01]*)
  21591. + shlibpath_overrides_runpath=yes
  21592. + hardcode_into_libs=yes
  21593. + ;;
  21594. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  21595. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  21596. + shlibpath_overrides_runpath=no
  21597. + hardcode_into_libs=yes
  21598. + ;;
  21599. + *) # from 4.6 on, and DragonFly
  21600. + shlibpath_overrides_runpath=yes
  21601. + hardcode_into_libs=yes
  21602. + ;;
  21603. + esac
  21604. + ;;
  21605. +
  21606. +gnu*)
  21607. + version_type=linux
  21608. + need_lib_prefix=no
  21609. + need_version=no
  21610. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  21611. + soname_spec='${libname}${release}${shared_ext}$major'
  21612. + shlibpath_var=LD_LIBRARY_PATH
  21613. + hardcode_into_libs=yes
  21614. + ;;
  21615. +
  21616. +hpux9* | hpux10* | hpux11*)
  21617. + # Give a soname corresponding to the major version so that dld.sl refuses to
  21618. + # link against other versions.
  21619. + version_type=sunos
  21620. + need_lib_prefix=no
  21621. + need_version=no
  21622. + case $host_cpu in
  21623. + ia64*)
  21624. + shrext_cmds='.so'
  21625. + hardcode_into_libs=yes
  21626. + dynamic_linker="$host_os dld.so"
  21627. + shlibpath_var=LD_LIBRARY_PATH
  21628. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21629. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21630. + soname_spec='${libname}${release}${shared_ext}$major'
  21631. + if test "X$HPUX_IA64_MODE" = X32; then
  21632. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  21633. + else
  21634. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  21635. + fi
  21636. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21637. + ;;
  21638. + hppa*64*)
  21639. + shrext_cmds='.sl'
  21640. + hardcode_into_libs=yes
  21641. + dynamic_linker="$host_os dld.sl"
  21642. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  21643. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21644. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21645. + soname_spec='${libname}${release}${shared_ext}$major'
  21646. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  21647. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21648. + ;;
  21649. + *)
  21650. + shrext_cmds='.sl'
  21651. + dynamic_linker="$host_os dld.sl"
  21652. + shlibpath_var=SHLIB_PATH
  21653. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  21654. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21655. + soname_spec='${libname}${release}${shared_ext}$major'
  21656. + ;;
  21657. + esac
  21658. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  21659. + postinstall_cmds='chmod 555 $lib'
  21660. + ;;
  21661. +
  21662. +interix[3-9]*)
  21663. + version_type=linux
  21664. + need_lib_prefix=no
  21665. + need_version=no
  21666. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21667. + soname_spec='${libname}${release}${shared_ext}$major'
  21668. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  21669. + shlibpath_var=LD_LIBRARY_PATH
  21670. + shlibpath_overrides_runpath=no
  21671. + hardcode_into_libs=yes
  21672. + ;;
  21673. +
  21674. +irix5* | irix6* | nonstopux*)
  21675. + case $host_os in
  21676. + nonstopux*) version_type=nonstopux ;;
  21677. + *)
  21678. + if test "$lt_cv_prog_gnu_ld" = yes; then
  21679. + version_type=linux
  21680. + else
  21681. + version_type=irix
  21682. + fi ;;
  21683. + esac
  21684. + need_lib_prefix=no
  21685. + need_version=no
  21686. + soname_spec='${libname}${release}${shared_ext}$major'
  21687. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  21688. + case $host_os in
  21689. + irix5* | nonstopux*)
  21690. + libsuff= shlibsuff=
  21691. + ;;
  21692. + *)
  21693. + case $LD in # libtool.m4 will add one of these switches to LD
  21694. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  21695. + libsuff= shlibsuff= libmagic=32-bit;;
  21696. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  21697. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  21698. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  21699. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  21700. + *) libsuff= shlibsuff= libmagic=never-match;;
  21701. + esac
  21702. + ;;
  21703. + esac
  21704. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  21705. + shlibpath_overrides_runpath=no
  21706. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  21707. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  21708. + hardcode_into_libs=yes
  21709. + ;;
  21710. +
  21711. +# No shared lib support for Linux oldld, aout, or coff.
  21712. +linux*oldld* | linux*aout* | linux*coff*)
  21713. + dynamic_linker=no
  21714. + ;;
  21715. +
  21716. +# This must be Linux ELF.
  21717. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21718. + version_type=linux
  21719. + need_lib_prefix=no
  21720. + need_version=no
  21721. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21722. + soname_spec='${libname}${release}${shared_ext}$major'
  21723. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  21724. + shlibpath_var=LD_LIBRARY_PATH
  21725. + shlibpath_overrides_runpath=no
  21726. + # Some binutils ld are patched to set DT_RUNPATH
  21727. + save_LDFLAGS=$LDFLAGS
  21728. + save_libdir=$libdir
  21729. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  21730. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  21731. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21732. +/* end confdefs.h. */
  21733. +
  21734. +int
  21735. +main ()
  21736. +{
  21737. +
  21738. + ;
  21739. + return 0;
  21740. +}
  21741. +_ACEOF
  21742. +if ac_fn_c_try_link "$LINENO"; then :
  21743. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  21744. + shlibpath_overrides_runpath=yes
  21745. +fi
  21746. +fi
  21747. +rm -f core conftest.err conftest.$ac_objext \
  21748. + conftest$ac_exeext conftest.$ac_ext
  21749. + LDFLAGS=$save_LDFLAGS
  21750. + libdir=$save_libdir
  21751. +
  21752. + # This implies no fast_install, which is unacceptable.
  21753. + # Some rework will be needed to allow for fast_install
  21754. + # before this can be enabled.
  21755. + hardcode_into_libs=yes
  21756. +
  21757. + # Append ld.so.conf contents to the search path
  21758. + if test -f /etc/ld.so.conf; then
  21759. + 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' ' '`
  21760. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  21761. + fi
  21762. +
  21763. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  21764. + # powerpc, because MkLinux only supported shared libraries with the
  21765. + # GNU dynamic linker. Since this was broken with cross compilers,
  21766. + # most powerpc-linux boxes support dynamic linking these days and
  21767. + # people can always --disable-shared, the test was removed, and we
  21768. + # assume the GNU/Linux dynamic linker is in use.
  21769. + dynamic_linker='GNU/Linux ld.so'
  21770. + ;;
  21771. +
  21772. +netbsdelf*-gnu)
  21773. + version_type=linux
  21774. + need_lib_prefix=no
  21775. + need_version=no
  21776. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21777. + soname_spec='${libname}${release}${shared_ext}$major'
  21778. + shlibpath_var=LD_LIBRARY_PATH
  21779. + shlibpath_overrides_runpath=no
  21780. + hardcode_into_libs=yes
  21781. + dynamic_linker='NetBSD ld.elf_so'
  21782. + ;;
  21783. +
  21784. +netbsd*)
  21785. + version_type=sunos
  21786. + need_lib_prefix=no
  21787. + need_version=no
  21788. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  21789. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21790. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21791. + dynamic_linker='NetBSD (a.out) ld.so'
  21792. + else
  21793. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21794. + soname_spec='${libname}${release}${shared_ext}$major'
  21795. + dynamic_linker='NetBSD ld.elf_so'
  21796. + fi
  21797. + shlibpath_var=LD_LIBRARY_PATH
  21798. + shlibpath_overrides_runpath=yes
  21799. + hardcode_into_libs=yes
  21800. + ;;
  21801. +
  21802. +newsos6)
  21803. + version_type=linux
  21804. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21805. + shlibpath_var=LD_LIBRARY_PATH
  21806. + shlibpath_overrides_runpath=yes
  21807. + ;;
  21808. +
  21809. +*nto* | *qnx*)
  21810. + version_type=qnx
  21811. + need_lib_prefix=no
  21812. + need_version=no
  21813. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21814. + soname_spec='${libname}${release}${shared_ext}$major'
  21815. + shlibpath_var=LD_LIBRARY_PATH
  21816. + shlibpath_overrides_runpath=no
  21817. + hardcode_into_libs=yes
  21818. + dynamic_linker='ldqnx.so'
  21819. + ;;
  21820. +
  21821. +openbsd*)
  21822. + version_type=sunos
  21823. + sys_lib_dlsearch_path_spec="/usr/lib"
  21824. + need_lib_prefix=no
  21825. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  21826. + case $host_os in
  21827. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  21828. + *) need_version=no ;;
  21829. + esac
  21830. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21831. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21832. + shlibpath_var=LD_LIBRARY_PATH
  21833. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21834. + case $host_os in
  21835. + openbsd2.[89] | openbsd2.[89].*)
  21836. + shlibpath_overrides_runpath=no
  21837. + ;;
  21838. + *)
  21839. + shlibpath_overrides_runpath=yes
  21840. + ;;
  21841. + esac
  21842. + else
  21843. + shlibpath_overrides_runpath=yes
  21844. + fi
  21845. + ;;
  21846. +
  21847. +os2*)
  21848. + libname_spec='$name'
  21849. + shrext_cmds=".dll"
  21850. + need_lib_prefix=no
  21851. + library_names_spec='$libname${shared_ext} $libname.a'
  21852. + dynamic_linker='OS/2 ld.exe'
  21853. + shlibpath_var=LIBPATH
  21854. + ;;
  21855. +
  21856. +osf3* | osf4* | osf5*)
  21857. + version_type=osf
  21858. + need_lib_prefix=no
  21859. + need_version=no
  21860. + soname_spec='${libname}${release}${shared_ext}$major'
  21861. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21862. + shlibpath_var=LD_LIBRARY_PATH
  21863. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  21864. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  21865. + ;;
  21866. +
  21867. +rdos*)
  21868. + dynamic_linker=no
  21869. + ;;
  21870. +
  21871. +solaris*)
  21872. + version_type=linux
  21873. + need_lib_prefix=no
  21874. + need_version=no
  21875. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21876. + soname_spec='${libname}${release}${shared_ext}$major'
  21877. + shlibpath_var=LD_LIBRARY_PATH
  21878. + shlibpath_overrides_runpath=yes
  21879. + hardcode_into_libs=yes
  21880. + # ldd complains unless libraries are executable
  21881. + postinstall_cmds='chmod +x $lib'
  21882. + ;;
  21883. +
  21884. +sunos4*)
  21885. + version_type=sunos
  21886. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21887. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  21888. + shlibpath_var=LD_LIBRARY_PATH
  21889. + shlibpath_overrides_runpath=yes
  21890. + if test "$with_gnu_ld" = yes; then
  21891. + need_lib_prefix=no
  21892. + fi
  21893. + need_version=yes
  21894. + ;;
  21895. +
  21896. +sysv4 | sysv4.3*)
  21897. + version_type=linux
  21898. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21899. + soname_spec='${libname}${release}${shared_ext}$major'
  21900. + shlibpath_var=LD_LIBRARY_PATH
  21901. + case $host_vendor in
  21902. + sni)
  21903. + shlibpath_overrides_runpath=no
  21904. + need_lib_prefix=no
  21905. + runpath_var=LD_RUN_PATH
  21906. + ;;
  21907. + siemens)
  21908. + need_lib_prefix=no
  21909. + ;;
  21910. + motorola)
  21911. + need_lib_prefix=no
  21912. + need_version=no
  21913. + shlibpath_overrides_runpath=no
  21914. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  21915. + ;;
  21916. + esac
  21917. + ;;
  21918. +
  21919. +sysv4*MP*)
  21920. + if test -d /usr/nec ;then
  21921. + version_type=linux
  21922. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  21923. + soname_spec='$libname${shared_ext}.$major'
  21924. + shlibpath_var=LD_LIBRARY_PATH
  21925. + fi
  21926. + ;;
  21927. +
  21928. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21929. + version_type=freebsd-elf
  21930. + need_lib_prefix=no
  21931. + need_version=no
  21932. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21933. + soname_spec='${libname}${release}${shared_ext}$major'
  21934. + shlibpath_var=LD_LIBRARY_PATH
  21935. + shlibpath_overrides_runpath=yes
  21936. + hardcode_into_libs=yes
  21937. + if test "$with_gnu_ld" = yes; then
  21938. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  21939. + else
  21940. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  21941. + case $host_os in
  21942. + sco3.2v5*)
  21943. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  21944. + ;;
  21945. + esac
  21946. + fi
  21947. + sys_lib_dlsearch_path_spec='/usr/lib'
  21948. + ;;
  21949. +
  21950. +tpf*)
  21951. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  21952. + version_type=linux
  21953. + need_lib_prefix=no
  21954. + need_version=no
  21955. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21956. + shlibpath_var=LD_LIBRARY_PATH
  21957. + shlibpath_overrides_runpath=no
  21958. + hardcode_into_libs=yes
  21959. + ;;
  21960. +
  21961. +uts4*)
  21962. + version_type=linux
  21963. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21964. + soname_spec='${libname}${release}${shared_ext}$major'
  21965. + shlibpath_var=LD_LIBRARY_PATH
  21966. + ;;
  21967. +
  21968. +*)
  21969. + dynamic_linker=no
  21970. + ;;
  21971. +esac
  21972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  21973. +$as_echo "$dynamic_linker" >&6; }
  21974. +test "$dynamic_linker" = no && can_build_shared=no
  21975. +
  21976. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  21977. +if test "$GCC" = yes; then
  21978. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  21979. +fi
  21980. +
  21981. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  21982. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  21983. +fi
  21984. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  21985. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  21986. +fi
  21987. +
  21988. +
  21989. +
  21990. +
  21991. +
  21992. +
  21993. +
  21994. +
  21995. +
  21996. +
  21997. +
  21998. +
  21999. +
  22000. +
  22001. +
  22002. +
  22003. +
  22004. +
  22005. +
  22006. +
  22007. +
  22008. +
  22009. +
  22010. +
  22011. +
  22012. +
  22013. +
  22014. +
  22015. +
  22016. +
  22017. +
  22018. +
  22019. +
  22020. +
  22021. +
  22022. +
  22023. +
  22024. +
  22025. +
  22026. +
  22027. +
  22028. +
  22029. +
  22030. +
  22031. +
  22032. +
  22033. +
  22034. +
  22035. +
  22036. +
  22037. +
  22038. +
  22039. +
  22040. +
  22041. +
  22042. +
  22043. +
  22044. +
  22045. +
  22046. +
  22047. +
  22048. +
  22049. +
  22050. +
  22051. +
  22052. +
  22053. +
  22054. +
  22055. +
  22056. +
  22057. +
  22058. +
  22059. +
  22060. +
  22061. +
  22062. +
  22063. +
  22064. +
  22065. +
  22066. +
  22067. +
  22068. +
  22069. +
  22070. +
  22071. +
  22072. +
  22073. +
  22074. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  22075. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  22076. +hardcode_action=
  22077. +if test -n "$hardcode_libdir_flag_spec" ||
  22078. + test -n "$runpath_var" ||
  22079. + test "X$hardcode_automatic" = "Xyes" ; then
  22080. +
  22081. + # We can hardcode non-existent directories.
  22082. + if test "$hardcode_direct" != no &&
  22083. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  22084. + # have to relink, otherwise we might link with an installed library
  22085. + # when we should be linking with a yet-to-be-installed one
  22086. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  22087. + test "$hardcode_minus_L" != no; then
  22088. + # Linking always hardcodes the temporary library directory.
  22089. + hardcode_action=relink
  22090. + else
  22091. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  22092. + hardcode_action=immediate
  22093. + fi
  22094. +else
  22095. + # We cannot hardcode anything, or else we can only hardcode existing
  22096. + # directories.
  22097. + hardcode_action=unsupported
  22098. +fi
  22099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  22100. +$as_echo "$hardcode_action" >&6; }
  22101. +
  22102. +if test "$hardcode_action" = relink ||
  22103. + test "$inherit_rpath" = yes; then
  22104. + # Fast installation is not supported
  22105. + enable_fast_install=no
  22106. +elif test "$shlibpath_overrides_runpath" = yes ||
  22107. + test "$enable_shared" = no; then
  22108. + # Fast installation is not necessary
  22109. + enable_fast_install=needless
  22110. +fi
  22111. +
  22112. +
  22113. +
  22114. +
  22115. +
  22116. +
  22117. + if test "x$enable_dlopen" != xyes; then
  22118. + enable_dlopen=unknown
  22119. + enable_dlopen_self=unknown
  22120. + enable_dlopen_self_static=unknown
  22121. +else
  22122. + lt_cv_dlopen=no
  22123. + lt_cv_dlopen_libs=
  22124. +
  22125. + case $host_os in
  22126. + beos*)
  22127. + lt_cv_dlopen="load_add_on"
  22128. + lt_cv_dlopen_libs=
  22129. + lt_cv_dlopen_self=yes
  22130. + ;;
  22131. +
  22132. + mingw* | pw32* | cegcc*)
  22133. + lt_cv_dlopen="LoadLibrary"
  22134. + lt_cv_dlopen_libs=
  22135. + ;;
  22136. +
  22137. + cygwin*)
  22138. + lt_cv_dlopen="dlopen"
  22139. + lt_cv_dlopen_libs=
  22140. + ;;
  22141. +
  22142. + darwin*)
  22143. + # if libdl is installed we need to link against it
  22144. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22145. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  22146. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  22147. + $as_echo_n "(cached) " >&6
  22148. +else
  22149. + ac_check_lib_save_LIBS=$LIBS
  22150. +LIBS="-ldl $LIBS"
  22151. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22152. +/* end confdefs.h. */
  22153. +
  22154. +/* Override any GCC internal prototype to avoid an error.
  22155. + Use char because int might match the return type of a GCC
  22156. + builtin and then its argument prototype would still apply. */
  22157. +#ifdef __cplusplus
  22158. +extern "C"
  22159. +#endif
  22160. +char dlopen ();
  22161. +int
  22162. +main ()
  22163. +{
  22164. +return dlopen ();
  22165. + ;
  22166. + return 0;
  22167. +}
  22168. +_ACEOF
  22169. +if ac_fn_c_try_link "$LINENO"; then :
  22170. + ac_cv_lib_dl_dlopen=yes
  22171. +else
  22172. + ac_cv_lib_dl_dlopen=no
  22173. +fi
  22174. +rm -f core conftest.err conftest.$ac_objext \
  22175. + conftest$ac_exeext conftest.$ac_ext
  22176. +LIBS=$ac_check_lib_save_LIBS
  22177. +fi
  22178. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22179. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22180. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  22181. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  22182. +else
  22183. +
  22184. + lt_cv_dlopen="dyld"
  22185. + lt_cv_dlopen_libs=
  22186. + lt_cv_dlopen_self=yes
  22187. +
  22188. +fi
  22189. +
  22190. + ;;
  22191. +
  22192. + *)
  22193. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  22194. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  22195. + lt_cv_dlopen="shl_load"
  22196. +else
  22197. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  22198. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  22199. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  22200. + $as_echo_n "(cached) " >&6
  22201. +else
  22202. + ac_check_lib_save_LIBS=$LIBS
  22203. +LIBS="-ldld $LIBS"
  22204. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22205. +/* end confdefs.h. */
  22206. +
  22207. +/* Override any GCC internal prototype to avoid an error.
  22208. + Use char because int might match the return type of a GCC
  22209. + builtin and then its argument prototype would still apply. */
  22210. +#ifdef __cplusplus
  22211. +extern "C"
  22212. +#endif
  22213. +char shl_load ();
  22214. +int
  22215. +main ()
  22216. +{
  22217. +return shl_load ();
  22218. + ;
  22219. + return 0;
  22220. +}
  22221. +_ACEOF
  22222. +if ac_fn_c_try_link "$LINENO"; then :
  22223. + ac_cv_lib_dld_shl_load=yes
  22224. +else
  22225. + ac_cv_lib_dld_shl_load=no
  22226. +fi
  22227. +rm -f core conftest.err conftest.$ac_objext \
  22228. + conftest$ac_exeext conftest.$ac_ext
  22229. +LIBS=$ac_check_lib_save_LIBS
  22230. +fi
  22231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  22232. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  22233. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  22234. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  22235. +else
  22236. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  22237. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  22238. + lt_cv_dlopen="dlopen"
  22239. +else
  22240. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22241. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  22242. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  22243. + $as_echo_n "(cached) " >&6
  22244. +else
  22245. + ac_check_lib_save_LIBS=$LIBS
  22246. +LIBS="-ldl $LIBS"
  22247. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22248. +/* end confdefs.h. */
  22249. +
  22250. +/* Override any GCC internal prototype to avoid an error.
  22251. + Use char because int might match the return type of a GCC
  22252. + builtin and then its argument prototype would still apply. */
  22253. +#ifdef __cplusplus
  22254. +extern "C"
  22255. +#endif
  22256. +char dlopen ();
  22257. +int
  22258. +main ()
  22259. +{
  22260. +return dlopen ();
  22261. + ;
  22262. + return 0;
  22263. +}
  22264. +_ACEOF
  22265. +if ac_fn_c_try_link "$LINENO"; then :
  22266. + ac_cv_lib_dl_dlopen=yes
  22267. +else
  22268. + ac_cv_lib_dl_dlopen=no
  22269. +fi
  22270. +rm -f core conftest.err conftest.$ac_objext \
  22271. + conftest$ac_exeext conftest.$ac_ext
  22272. +LIBS=$ac_check_lib_save_LIBS
  22273. +fi
  22274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22275. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22276. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  22277. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  22278. +else
  22279. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  22280. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  22281. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  22282. + $as_echo_n "(cached) " >&6
  22283. +else
  22284. + ac_check_lib_save_LIBS=$LIBS
  22285. +LIBS="-lsvld $LIBS"
  22286. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22287. +/* end confdefs.h. */
  22288. +
  22289. +/* Override any GCC internal prototype to avoid an error.
  22290. + Use char because int might match the return type of a GCC
  22291. + builtin and then its argument prototype would still apply. */
  22292. +#ifdef __cplusplus
  22293. +extern "C"
  22294. +#endif
  22295. +char dlopen ();
  22296. +int
  22297. +main ()
  22298. +{
  22299. +return dlopen ();
  22300. + ;
  22301. + return 0;
  22302. +}
  22303. +_ACEOF
  22304. +if ac_fn_c_try_link "$LINENO"; then :
  22305. + ac_cv_lib_svld_dlopen=yes
  22306. +else
  22307. + ac_cv_lib_svld_dlopen=no
  22308. +fi
  22309. +rm -f core conftest.err conftest.$ac_objext \
  22310. + conftest$ac_exeext conftest.$ac_ext
  22311. +LIBS=$ac_check_lib_save_LIBS
  22312. +fi
  22313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  22314. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  22315. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  22316. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  22317. +else
  22318. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  22319. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  22320. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  22321. + $as_echo_n "(cached) " >&6
  22322. +else
  22323. + ac_check_lib_save_LIBS=$LIBS
  22324. +LIBS="-ldld $LIBS"
  22325. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22326. +/* end confdefs.h. */
  22327. +
  22328. +/* Override any GCC internal prototype to avoid an error.
  22329. + Use char because int might match the return type of a GCC
  22330. + builtin and then its argument prototype would still apply. */
  22331. +#ifdef __cplusplus
  22332. +extern "C"
  22333. +#endif
  22334. +char dld_link ();
  22335. +int
  22336. +main ()
  22337. +{
  22338. +return dld_link ();
  22339. + ;
  22340. + return 0;
  22341. +}
  22342. +_ACEOF
  22343. +if ac_fn_c_try_link "$LINENO"; then :
  22344. + ac_cv_lib_dld_dld_link=yes
  22345. +else
  22346. + ac_cv_lib_dld_dld_link=no
  22347. +fi
  22348. +rm -f core conftest.err conftest.$ac_objext \
  22349. + conftest$ac_exeext conftest.$ac_ext
  22350. +LIBS=$ac_check_lib_save_LIBS
  22351. +fi
  22352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  22353. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  22354. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  22355. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  22356. +fi
  22357. +
  22358. +
  22359. +fi
  22360. +
  22361. +
  22362. +fi
  22363. +
  22364. +
  22365. +fi
  22366. +
  22367. +
  22368. +fi
  22369. +
  22370. +
  22371. +fi
  22372. +
  22373. + ;;
  22374. + esac
  22375. +
  22376. + if test "x$lt_cv_dlopen" != xno; then
  22377. + enable_dlopen=yes
  22378. + else
  22379. + enable_dlopen=no
  22380. + fi
  22381. +
  22382. + case $lt_cv_dlopen in
  22383. + dlopen)
  22384. + save_CPPFLAGS="$CPPFLAGS"
  22385. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  22386. +
  22387. + save_LDFLAGS="$LDFLAGS"
  22388. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  22389. +
  22390. + save_LIBS="$LIBS"
  22391. + LIBS="$lt_cv_dlopen_libs $LIBS"
  22392. +
  22393. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  22394. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  22395. +if test "${lt_cv_dlopen_self+set}" = set; then :
  22396. + $as_echo_n "(cached) " >&6
  22397. +else
  22398. + if test "$cross_compiling" = yes; then :
  22399. + lt_cv_dlopen_self=cross
  22400. +else
  22401. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22402. + lt_status=$lt_dlunknown
  22403. + cat > conftest.$ac_ext <<_LT_EOF
  22404. +#line 10144 "configure"
  22405. +#include "confdefs.h"
  22406. +
  22407. +#if HAVE_DLFCN_H
  22408. +#include <dlfcn.h>
  22409. +#endif
  22410. +
  22411. +#include <stdio.h>
  22412. +
  22413. +#ifdef RTLD_GLOBAL
  22414. +# define LT_DLGLOBAL RTLD_GLOBAL
  22415. +#else
  22416. +# ifdef DL_GLOBAL
  22417. +# define LT_DLGLOBAL DL_GLOBAL
  22418. +# else
  22419. +# define LT_DLGLOBAL 0
  22420. +# endif
  22421. +#endif
  22422. +
  22423. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22424. + find out it does not work in some platform. */
  22425. +#ifndef LT_DLLAZY_OR_NOW
  22426. +# ifdef RTLD_LAZY
  22427. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22428. +# else
  22429. +# ifdef DL_LAZY
  22430. +# define LT_DLLAZY_OR_NOW DL_LAZY
  22431. +# else
  22432. +# ifdef RTLD_NOW
  22433. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  22434. +# else
  22435. +# ifdef DL_NOW
  22436. +# define LT_DLLAZY_OR_NOW DL_NOW
  22437. +# else
  22438. +# define LT_DLLAZY_OR_NOW 0
  22439. +# endif
  22440. +# endif
  22441. +# endif
  22442. +# endif
  22443. +#endif
  22444. +
  22445. +void fnord() { int i=42;}
  22446. +int main ()
  22447. +{
  22448. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22449. + int status = $lt_dlunknown;
  22450. +
  22451. + if (self)
  22452. + {
  22453. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22454. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22455. + /* dlclose (self); */
  22456. + }
  22457. + else
  22458. + puts (dlerror ());
  22459. +
  22460. + return status;
  22461. +}
  22462. +_LT_EOF
  22463. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22464. + (eval $ac_link) 2>&5
  22465. + ac_status=$?
  22466. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22467. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22468. + (./conftest; exit; ) >&5 2>/dev/null
  22469. + lt_status=$?
  22470. + case x$lt_status in
  22471. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  22472. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  22473. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  22474. + esac
  22475. + else :
  22476. + # compilation failed
  22477. + lt_cv_dlopen_self=no
  22478. + fi
  22479. +fi
  22480. +rm -fr conftest*
  22481. +
  22482. +
  22483. +fi
  22484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  22485. +$as_echo "$lt_cv_dlopen_self" >&6; }
  22486. +
  22487. + if test "x$lt_cv_dlopen_self" = xyes; then
  22488. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  22489. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  22490. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  22491. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  22492. + $as_echo_n "(cached) " >&6
  22493. +else
  22494. + if test "$cross_compiling" = yes; then :
  22495. + lt_cv_dlopen_self_static=cross
  22496. +else
  22497. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22498. + lt_status=$lt_dlunknown
  22499. + cat > conftest.$ac_ext <<_LT_EOF
  22500. +#line 10240 "configure"
  22501. +#include "confdefs.h"
  22502. +
  22503. +#if HAVE_DLFCN_H
  22504. +#include <dlfcn.h>
  22505. +#endif
  22506. +
  22507. +#include <stdio.h>
  22508. +
  22509. +#ifdef RTLD_GLOBAL
  22510. +# define LT_DLGLOBAL RTLD_GLOBAL
  22511. +#else
  22512. +# ifdef DL_GLOBAL
  22513. +# define LT_DLGLOBAL DL_GLOBAL
  22514. +# else
  22515. +# define LT_DLGLOBAL 0
  22516. +# endif
  22517. +#endif
  22518. +
  22519. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22520. + find out it does not work in some platform. */
  22521. +#ifndef LT_DLLAZY_OR_NOW
  22522. +# ifdef RTLD_LAZY
  22523. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22524. +# else
  22525. +# ifdef DL_LAZY
  22526. +# define LT_DLLAZY_OR_NOW DL_LAZY
  22527. +# else
  22528. +# ifdef RTLD_NOW
  22529. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  22530. +# else
  22531. +# ifdef DL_NOW
  22532. +# define LT_DLLAZY_OR_NOW DL_NOW
  22533. +# else
  22534. +# define LT_DLLAZY_OR_NOW 0
  22535. +# endif
  22536. +# endif
  22537. +# endif
  22538. +# endif
  22539. +#endif
  22540. +
  22541. +void fnord() { int i=42;}
  22542. +int main ()
  22543. +{
  22544. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22545. + int status = $lt_dlunknown;
  22546. +
  22547. + if (self)
  22548. + {
  22549. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22550. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22551. + /* dlclose (self); */
  22552. + }
  22553. + else
  22554. + puts (dlerror ());
  22555. +
  22556. + return status;
  22557. +}
  22558. +_LT_EOF
  22559. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22560. + (eval $ac_link) 2>&5
  22561. + ac_status=$?
  22562. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22563. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22564. + (./conftest; exit; ) >&5 2>/dev/null
  22565. + lt_status=$?
  22566. + case x$lt_status in
  22567. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  22568. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  22569. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  22570. + esac
  22571. + else :
  22572. + # compilation failed
  22573. + lt_cv_dlopen_self_static=no
  22574. + fi
  22575. +fi
  22576. +rm -fr conftest*
  22577. +
  22578. +
  22579. +fi
  22580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  22581. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  22582. + fi
  22583. +
  22584. + CPPFLAGS="$save_CPPFLAGS"
  22585. + LDFLAGS="$save_LDFLAGS"
  22586. + LIBS="$save_LIBS"
  22587. + ;;
  22588. + esac
  22589. +
  22590. + case $lt_cv_dlopen_self in
  22591. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  22592. + *) enable_dlopen_self=unknown ;;
  22593. + esac
  22594. +
  22595. + case $lt_cv_dlopen_self_static in
  22596. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  22597. + *) enable_dlopen_self_static=unknown ;;
  22598. + esac
  22599. +fi
  22600. +
  22601. +
  22602. +
  22603. +
  22604. +
  22605. +
  22606. +
  22607. +
  22608. +
  22609. +
  22610. +
  22611. +
  22612. +
  22613. +
  22614. +
  22615. +
  22616. +
  22617. +striplib=
  22618. +old_striplib=
  22619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  22620. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  22621. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  22622. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  22623. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  22624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22625. +$as_echo "yes" >&6; }
  22626. +else
  22627. +# FIXME - insert some real tests, host_os isn't really good enough
  22628. + case $host_os in
  22629. + darwin*)
  22630. + if test -n "$STRIP" ; then
  22631. + striplib="$STRIP -x"
  22632. + old_striplib="$STRIP -S"
  22633. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22634. +$as_echo "yes" >&6; }
  22635. + else
  22636. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22637. +$as_echo "no" >&6; }
  22638. + fi
  22639. + ;;
  22640. + *)
  22641. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22642. +$as_echo "no" >&6; }
  22643. + ;;
  22644. + esac
  22645. +fi
  22646. +
  22647. +
  22648. +
  22649. +
  22650. +
  22651. +
  22652. +
  22653. +
  22654. +
  22655. +
  22656. +
  22657. +
  22658. + # Report which library types will actually be built
  22659. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  22660. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  22661. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  22662. +$as_echo "$can_build_shared" >&6; }
  22663. +
  22664. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  22665. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  22666. + test "$can_build_shared" = "no" && enable_shared=no
  22667. +
  22668. + # On AIX, shared libraries and static libraries use the same namespace, and
  22669. + # are all built from PIC.
  22670. + case $host_os in
  22671. + aix3*)
  22672. + test "$enable_shared" = yes && enable_static=no
  22673. + if test -n "$RANLIB"; then
  22674. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  22675. + postinstall_cmds='$RANLIB $lib'
  22676. + fi
  22677. + ;;
  22678. +
  22679. + aix[4-9]*)
  22680. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  22681. + test "$enable_shared" = yes && enable_static=no
  22682. + fi
  22683. + ;;
  22684. + esac
  22685. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  22686. +$as_echo "$enable_shared" >&6; }
  22687. +
  22688. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  22689. +$as_echo_n "checking whether to build static libraries... " >&6; }
  22690. + # Make sure either enable_shared or enable_static is yes.
  22691. + test "$enable_shared" = yes || enable_static=yes
  22692. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  22693. +$as_echo "$enable_static" >&6; }
  22694. +
  22695. +
  22696. +
  22697. +
  22698. +fi
  22699. +ac_ext=c
  22700. +ac_cpp='$CPP $CPPFLAGS'
  22701. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22702. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22703. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22704. +
  22705. +CC="$lt_save_CC"
  22706. +
  22707. +
  22708. +
  22709. +
  22710. +
  22711. +
  22712. +
  22713. +
  22714. +
  22715. +
  22716. +
  22717. +
  22718. +
  22719. + ac_config_commands="$ac_config_commands libtool"
  22720. +
  22721. +
  22722. +
  22723. +
  22724. +# Only expand once:
  22725. +
  22726. +
  22727. +
  22728. +
  22729. +
  22730. +cflags_save="$CFLAGS"
  22731. +ldflags_save="$LDFLAGS"
  22732. +if test -z "$GCC"; then
  22733. + case $host in
  22734. + arm-*-*)
  22735. + DEBUG="-g -D_ARM_ASSEM_"
  22736. + CFLAGS="-O -D_ARM_ASSEM_"
  22737. + PROFILE="-p -g -O -D_ARM_ASSEM_" ;;
  22738. + *)
  22739. + DEBUG="-g"
  22740. + CFLAGS="-O"
  22741. + PROFILE="-g -p" ;;
  22742. + esac
  22743. +else
  22744. +
  22745. + case $host in
  22746. + arm-*-*)
  22747. + DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -D_ARM_ASSEM_"
  22748. + CFLAGS="-D_ARM_ASSEM_ -fsigned-char"
  22749. + PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char -fno-inline-functions";;
  22750. +
  22751. + *)
  22752. + DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
  22753. + CFLAGS="-fsigned-char"
  22754. + PROFILE="-Wall -pg -g -O2 -fsigned-char -fno-inline-functions";;
  22755. + esac
  22756. +fi
  22757. +CFLAGS="$CFLAGS $cflags_save -D_REENTRANT"
  22758. +LDFLAGS="$LDFLAGS $ldflags_save"
  22759. +
  22760. +
  22761. +# Test whenever ld supports -version-script
  22762. +
  22763. +
  22764. +# Check whether --with-gnu-ld was given.
  22765. +if test "${with_gnu_ld+set}" = set; then :
  22766. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  22767. +else
  22768. + with_gnu_ld=no
  22769. +fi
  22770. +
  22771. +ac_prog=ld
  22772. +if test "$GCC" = yes; then
  22773. + # Check if gcc -print-prog-name=ld gives a path.
  22774. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  22775. +$as_echo_n "checking for ld used by $CC... " >&6; }
  22776. + case $host in
  22777. + *-*-mingw*)
  22778. + # gcc leaves a trailing carriage return which upsets mingw
  22779. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  22780. + *)
  22781. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  22782. + esac
  22783. + case $ac_prog in
  22784. + # Accept absolute paths.
  22785. + [\\/]* | ?:[\\/]*)
  22786. + re_direlt='/[^/][^/]*/\.\./'
  22787. + # Canonicalize the pathname of ld
  22788. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  22789. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  22790. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  22791. + done
  22792. + test -z "$LD" && LD="$ac_prog"
  22793. + ;;
  22794. + "")
  22795. + # If it fails, then pretend we aren't using GCC.
  22796. + ac_prog=ld
  22797. + ;;
  22798. + *)
  22799. + # If it is relative, then search for the first ld in PATH.
  22800. + with_gnu_ld=unknown
  22801. + ;;
  22802. + esac
  22803. +elif test "$with_gnu_ld" = yes; then
  22804. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  22805. +$as_echo_n "checking for GNU ld... " >&6; }
  22806. +else
  22807. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  22808. +$as_echo_n "checking for non-GNU ld... " >&6; }
  22809. +fi
  22810. +if test "${lt_cv_path_LD+set}" = set; then :
  22811. + $as_echo_n "(cached) " >&6
  22812. +else
  22813. + if test -z "$LD"; then
  22814. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22815. + for ac_dir in $PATH; do
  22816. + IFS="$lt_save_ifs"
  22817. + test -z "$ac_dir" && ac_dir=.
  22818. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  22819. + lt_cv_path_LD="$ac_dir/$ac_prog"
  22820. + # Check to see if the program is GNU ld. I'd rather use --version,
  22821. + # but apparently some variants of GNU ld only accept -v.
  22822. + # Break only if it was the GNU/non-GNU ld that we prefer.
  22823. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  22824. + *GNU* | *'with BFD'*)
  22825. + test "$with_gnu_ld" != no && break
  22826. + ;;
  22827. + *)
  22828. + test "$with_gnu_ld" != yes && break
  22829. + ;;
  22830. + esac
  22831. + fi
  22832. + done
  22833. + IFS="$lt_save_ifs"
  22834. +else
  22835. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  22836. +fi
  22837. +fi
  22838. +
  22839. +LD="$lt_cv_path_LD"
  22840. +if test -n "$LD"; then
  22841. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  22842. +$as_echo "$LD" >&6; }
  22843. +else
  22844. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22845. +$as_echo "no" >&6; }
  22846. +fi
  22847. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  22848. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  22849. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  22850. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  22851. + $as_echo_n "(cached) " >&6
  22852. +else
  22853. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22854. +case `$LD -v 2>&1 </dev/null` in
  22855. +*GNU* | *'with BFD'*)
  22856. + lt_cv_prog_gnu_ld=yes
  22857. + ;;
  22858. +*)
  22859. + lt_cv_prog_gnu_ld=no
  22860. + ;;
  22861. +esac
  22862. +fi
  22863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  22864. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  22865. +with_gnu_ld=$lt_cv_prog_gnu_ld
  22866. +
  22867. +
  22868. +
  22869. +
  22870. +
  22871. +
  22872. +
  22873. +if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
  22874. + SHLIB_VERSION_ARG="Wl,--version-script=Version_script"
  22875. +
  22876. + case "$target_os" in
  22877. + linux* | solaris* )
  22878. + SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
  22879. + ;;
  22880. + *)
  22881. + ;;
  22882. + esac
  22883. + LDFLAGS="$LDFLAGS $SHLIB_VERSION_ARG"
  22884. +fi
  22885. +
  22886. +
  22887. +# Check whether --enable-low-accuracy was given.
  22888. +if test "${enable_low_accuracy+set}" = set; then :
  22889. + enableval=$enable_low_accuracy; CFLAGS="$CFLAGS -D_LOW_ACCURACY_"
  22890. +
  22891. +fi
  22892. +
  22893. +
  22894. +
  22895. +ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  22896. +if test "x$ac_cv_header_memory_h" = x""yes; then :
  22897. + CFLAGS="$CFLAGS -DUSE_MEMORY_H"
  22898. +else
  22899. + :
  22900. +fi
  22901. +
  22902. +
  22903. +
  22904. +
  22905. +
  22906. +
  22907. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  22908. +# for constant arguments. Useless!
  22909. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  22910. +$as_echo_n "checking for working alloca.h... " >&6; }
  22911. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  22912. + $as_echo_n "(cached) " >&6
  22913. +else
  22914. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22915. +/* end confdefs.h. */
  22916. +#include <alloca.h>
  22917. +int
  22918. +main ()
  22919. +{
  22920. +char *p = (char *) alloca (2 * sizeof (int));
  22921. + if (p) return 0;
  22922. + ;
  22923. + return 0;
  22924. +}
  22925. +_ACEOF
  22926. +if ac_fn_c_try_link "$LINENO"; then :
  22927. + ac_cv_working_alloca_h=yes
  22928. +else
  22929. + ac_cv_working_alloca_h=no
  22930. +fi
  22931. +rm -f core conftest.err conftest.$ac_objext \
  22932. + conftest$ac_exeext conftest.$ac_ext
  22933. +fi
  22934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  22935. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  22936. +if test $ac_cv_working_alloca_h = yes; then
  22937. +
  22938. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  22939. +
  22940. +fi
  22941. +
  22942. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  22943. +$as_echo_n "checking for alloca... " >&6; }
  22944. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  22945. + $as_echo_n "(cached) " >&6
  22946. +else
  22947. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22948. +/* end confdefs.h. */
  22949. +#ifdef __GNUC__
  22950. +# define alloca __builtin_alloca
  22951. +#else
  22952. +# ifdef _MSC_VER
  22953. +# include <malloc.h>
  22954. +# define alloca _alloca
  22955. +# else
  22956. +# ifdef HAVE_ALLOCA_H
  22957. +# include <alloca.h>
  22958. +# else
  22959. +# ifdef _AIX
  22960. + #pragma alloca
  22961. +# else
  22962. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  22963. +char *alloca ();
  22964. +# endif
  22965. +# endif
  22966. +# endif
  22967. +# endif
  22968. +#endif
  22969. +
  22970. +int
  22971. +main ()
  22972. +{
  22973. +char *p = (char *) alloca (1);
  22974. + if (p) return 0;
  22975. + ;
  22976. + return 0;
  22977. +}
  22978. +_ACEOF
  22979. +if ac_fn_c_try_link "$LINENO"; then :
  22980. + ac_cv_func_alloca_works=yes
  22981. +else
  22982. + ac_cv_func_alloca_works=no
  22983. +fi
  22984. +rm -f core conftest.err conftest.$ac_objext \
  22985. + conftest$ac_exeext conftest.$ac_ext
  22986. +fi
  22987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  22988. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  22989. +
  22990. +if test $ac_cv_func_alloca_works = yes; then
  22991. +
  22992. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  22993. +
  22994. +else
  22995. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  22996. +# that cause trouble. Some versions do not even contain alloca or
  22997. +# contain a buggy version. If you still want to use their alloca,
  22998. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  22999. +
  23000. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  23001. +
  23002. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  23003. +
  23004. +
  23005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  23006. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  23007. +if test "${ac_cv_os_cray+set}" = set; then :
  23008. + $as_echo_n "(cached) " >&6
  23009. +else
  23010. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23011. +/* end confdefs.h. */
  23012. +#if defined CRAY && ! defined CRAY2
  23013. +webecray
  23014. +#else
  23015. +wenotbecray
  23016. +#endif
  23017. +
  23018. +_ACEOF
  23019. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23020. + $EGREP "webecray" >/dev/null 2>&1; then :
  23021. + ac_cv_os_cray=yes
  23022. +else
  23023. + ac_cv_os_cray=no
  23024. +fi
  23025. +rm -f conftest*
  23026. +
  23027. +fi
  23028. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  23029. +$as_echo "$ac_cv_os_cray" >&6; }
  23030. +if test $ac_cv_os_cray = yes; then
  23031. + for ac_func in _getb67 GETB67 getb67; do
  23032. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23033. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  23034. +eval as_val=\$$as_ac_var
  23035. + if test "x$as_val" = x""yes; then :
  23036. +
  23037. +cat >>confdefs.h <<_ACEOF
  23038. +#define CRAY_STACKSEG_END $ac_func
  23039. +_ACEOF
  23040. +
  23041. + break
  23042. +fi
  23043. +
  23044. + done
  23045. +fi
  23046. +
  23047. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  23048. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  23049. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  23050. + $as_echo_n "(cached) " >&6
  23051. +else
  23052. + if test "$cross_compiling" = yes; then :
  23053. + ac_cv_c_stack_direction=0
  23054. +else
  23055. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23056. +/* end confdefs.h. */
  23057. +$ac_includes_default
  23058. +int
  23059. +find_stack_direction ()
  23060. +{
  23061. + static char *addr = 0;
  23062. + auto char dummy;
  23063. + if (addr == 0)
  23064. + {
  23065. + addr = &dummy;
  23066. + return find_stack_direction ();
  23067. + }
  23068. + else
  23069. + return (&dummy > addr) ? 1 : -1;
  23070. +}
  23071. +
  23072. +int
  23073. +main ()
  23074. +{
  23075. + return find_stack_direction () < 0;
  23076. +}
  23077. +_ACEOF
  23078. +if ac_fn_c_try_run "$LINENO"; then :
  23079. + ac_cv_c_stack_direction=1
  23080. +else
  23081. + ac_cv_c_stack_direction=-1
  23082. +fi
  23083. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23084. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  23085. +fi
  23086. +
  23087. +fi
  23088. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  23089. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  23090. +cat >>confdefs.h <<_ACEOF
  23091. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  23092. +_ACEOF
  23093. +
  23094. +
  23095. +fi
  23096. +
  23097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  23098. +$as_echo_n "checking for working memcmp... " >&6; }
  23099. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  23100. + $as_echo_n "(cached) " >&6
  23101. +else
  23102. + if test "$cross_compiling" = yes; then :
  23103. + ac_cv_func_memcmp_working=no
  23104. +else
  23105. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23106. +/* end confdefs.h. */
  23107. +$ac_includes_default
  23108. +int
  23109. +main ()
  23110. +{
  23111. +
  23112. + /* Some versions of memcmp are not 8-bit clean. */
  23113. + char c0 = '\100', c1 = '\200', c2 = '\201';
  23114. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  23115. + return 1;
  23116. +
  23117. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  23118. + or more and with at least one buffer not starting on a 4-byte boundary.
  23119. + William Lewis provided this test program. */
  23120. + {
  23121. + char foo[21];
  23122. + char bar[21];
  23123. + int i;
  23124. + for (i = 0; i < 4; i++)
  23125. + {
  23126. + char *a = foo + i;
  23127. + char *b = bar + i;
  23128. + strcpy (a, "--------01111111");
  23129. + strcpy (b, "--------10000000");
  23130. + if (memcmp (a, b, 16) >= 0)
  23131. + return 1;
  23132. + }
  23133. + return 0;
  23134. + }
  23135. +
  23136. + ;
  23137. + return 0;
  23138. +}
  23139. +_ACEOF
  23140. +if ac_fn_c_try_run "$LINENO"; then :
  23141. + ac_cv_func_memcmp_working=yes
  23142. +else
  23143. + ac_cv_func_memcmp_working=no
  23144. +fi
  23145. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23146. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  23147. +fi
  23148. +
  23149. +fi
  23150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  23151. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  23152. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  23153. + *" memcmp.$ac_objext "* ) ;;
  23154. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  23155. + ;;
  23156. +esac
  23157. +
  23158. +
  23159. +
  23160. +
  23161. +LIBS="$LIBS"
  23162. +
  23163. +
  23164. +
  23165. +
  23166. +
  23167. +ac_config_files="$ac_config_files Makefile Version_script"
  23168. +
  23169. +cat >confcache <<\_ACEOF
  23170. +# This file is a shell script that caches the results of configure
  23171. +# tests run on this system so they can be shared between configure
  23172. +# scripts and configure runs, see configure's option --config-cache.
  23173. +# It is not useful on other systems. If it contains results you don't
  23174. +# want to keep, you may remove or edit it.
  23175. +#
  23176. +# config.status only pays attention to the cache file if you give it
  23177. +# the --recheck option to rerun configure.
  23178. +#
  23179. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  23180. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  23181. +# following values.
  23182. +
  23183. +_ACEOF
  23184. +
  23185. +# The following way of writing the cache mishandles newlines in values,
  23186. +# but we know of no workaround that is simple, portable, and efficient.
  23187. +# So, we kill variables containing newlines.
  23188. +# Ultrix sh set writes to stderr and can't be redirected directly,
  23189. +# and sets the high bit in the cache file unless we assign to the vars.
  23190. +(
  23191. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23192. + eval ac_val=\$$ac_var
  23193. + case $ac_val in #(
  23194. + *${as_nl}*)
  23195. + case $ac_var in #(
  23196. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23197. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23198. + esac
  23199. + case $ac_var in #(
  23200. + _ | IFS | as_nl) ;; #(
  23201. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23202. + *) { eval $ac_var=; unset $ac_var;} ;;
  23203. + esac ;;
  23204. + esac
  23205. + done
  23206. +
  23207. + (set) 2>&1 |
  23208. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23209. + *${as_nl}ac_space=\ *)
  23210. + # `set' does not quote correctly, so add quotes: double-quote
  23211. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  23212. + sed -n \
  23213. + "s/'/'\\\\''/g;
  23214. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23215. + ;; #(
  23216. + *)
  23217. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  23218. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23219. + ;;
  23220. + esac |
  23221. + sort
  23222. +) |
  23223. + sed '
  23224. + /^ac_cv_env_/b end
  23225. + t clear
  23226. + :clear
  23227. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23228. + t end
  23229. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23230. + :end' >>confcache
  23231. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23232. + if test -w "$cache_file"; then
  23233. + test "x$cache_file" != "x/dev/null" &&
  23234. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23235. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  23236. + cat confcache >$cache_file
  23237. + else
  23238. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23239. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23240. + fi
  23241. +fi
  23242. +rm -f confcache
  23243. +
  23244. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23245. +# Let make expand exec_prefix.
  23246. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23247. +
  23248. +DEFS=-DHAVE_CONFIG_H
  23249. +
  23250. +ac_libobjs=
  23251. +ac_ltlibobjs=
  23252. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23253. + # 1. Remove the extension, and $U if already installed.
  23254. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23255. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23256. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23257. + # will be set to the directory where LIBOBJS objects are built.
  23258. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23259. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23260. +done
  23261. +LIBOBJS=$ac_libobjs
  23262. +
  23263. +LTLIBOBJS=$ac_ltlibobjs
  23264. +
  23265. +
  23266. + if test -n "$EXEEXT"; then
  23267. + am__EXEEXT_TRUE=
  23268. + am__EXEEXT_FALSE='#'
  23269. +else
  23270. + am__EXEEXT_TRUE='#'
  23271. + am__EXEEXT_FALSE=
  23272. +fi
  23273. +
  23274. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  23275. + as_fn_error "conditional \"AMDEP\" was never defined.
  23276. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23277. +fi
  23278. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  23279. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  23280. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23281. +fi
  23282. +
  23283. +: ${CONFIG_STATUS=./config.status}
  23284. +ac_write_fail=0
  23285. +ac_clean_files_save=$ac_clean_files
  23286. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23288. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23289. +as_write_fail=0
  23290. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23291. +#! $SHELL
  23292. +# Generated by $as_me.
  23293. +# Run this file to recreate the current configuration.
  23294. +# Compiler output produced by configure, useful for debugging
  23295. +# configure, is in config.log if it exists.
  23296. +
  23297. +debug=false
  23298. +ac_cs_recheck=false
  23299. +ac_cs_silent=false
  23300. +
  23301. +SHELL=\${CONFIG_SHELL-$SHELL}
  23302. +export SHELL
  23303. +_ASEOF
  23304. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23305. +## -------------------- ##
  23306. +## M4sh Initialization. ##
  23307. +## -------------------- ##
  23308. +
  23309. +# Be more Bourne compatible
  23310. +DUALCASE=1; export DUALCASE # for MKS sh
  23311. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23312. + emulate sh
  23313. + NULLCMD=:
  23314. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23315. + # is contrary to our usage. Disable this feature.
  23316. + alias -g '${1+"$@"}'='"$@"'
  23317. + setopt NO_GLOB_SUBST
  23318. +else
  23319. + case `(set -o) 2>/dev/null` in #(
  23320. + *posix*) :
  23321. + set -o posix ;; #(
  23322. + *) :
  23323. + ;;
  23324. +esac
  23325. +fi
  23326. +
  23327. +
  23328. +as_nl='
  23329. +'
  23330. +export as_nl
  23331. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  23332. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23333. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23334. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23335. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  23336. +# but without wasting forks for bash or zsh.
  23337. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  23338. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23339. + as_echo='print -r --'
  23340. + as_echo_n='print -rn --'
  23341. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23342. + as_echo='printf %s\n'
  23343. + as_echo_n='printf %s'
  23344. +else
  23345. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23346. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23347. + as_echo_n='/usr/ucb/echo -n'
  23348. + else
  23349. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23350. + as_echo_n_body='eval
  23351. + arg=$1;
  23352. + case $arg in #(
  23353. + *"$as_nl"*)
  23354. + expr "X$arg" : "X\\(.*\\)$as_nl";
  23355. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23356. + esac;
  23357. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23358. + '
  23359. + export as_echo_n_body
  23360. + as_echo_n='sh -c $as_echo_n_body as_echo'
  23361. + fi
  23362. + export as_echo_body
  23363. + as_echo='sh -c $as_echo_body as_echo'
  23364. +fi
  23365. +
  23366. +# The user is always right.
  23367. +if test "${PATH_SEPARATOR+set}" != set; then
  23368. + PATH_SEPARATOR=:
  23369. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23370. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23371. + PATH_SEPARATOR=';'
  23372. + }
  23373. +fi
  23374. +
  23375. +
  23376. +# IFS
  23377. +# We need space, tab and new line, in precisely that order. Quoting is
  23378. +# there to prevent editors from complaining about space-tab.
  23379. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23380. +# splitting by setting IFS to empty value.)
  23381. +IFS=" "" $as_nl"
  23382. +
  23383. +# Find who we are. Look in the path if we contain no directory separator.
  23384. +case $0 in #((
  23385. + *[\\/]* ) as_myself=$0 ;;
  23386. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23387. +for as_dir in $PATH
  23388. +do
  23389. + IFS=$as_save_IFS
  23390. + test -z "$as_dir" && as_dir=.
  23391. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23392. + done
  23393. +IFS=$as_save_IFS
  23394. +
  23395. + ;;
  23396. +esac
  23397. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  23398. +# in which case we are not to be found in the path.
  23399. +if test "x$as_myself" = x; then
  23400. + as_myself=$0
  23401. +fi
  23402. +if test ! -f "$as_myself"; then
  23403. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23404. + exit 1
  23405. +fi
  23406. +
  23407. +# Unset variables that we do not need and which cause bugs (e.g. in
  23408. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23409. +# suppresses any "Segmentation fault" message there. '((' could
  23410. +# trigger a bug in pdksh 5.2.14.
  23411. +for as_var in BASH_ENV ENV MAIL MAILPATH
  23412. +do eval test x\${$as_var+set} = xset \
  23413. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23414. +done
  23415. +PS1='$ '
  23416. +PS2='> '
  23417. +PS4='+ '
  23418. +
  23419. +# NLS nuisances.
  23420. +LC_ALL=C
  23421. +export LC_ALL
  23422. +LANGUAGE=C
  23423. +export LANGUAGE
  23424. +
  23425. +# CDPATH.
  23426. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23427. +
  23428. +
  23429. +# as_fn_error ERROR [LINENO LOG_FD]
  23430. +# ---------------------------------
  23431. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23432. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23433. +# script with status $?, using 1 if that was 0.
  23434. +as_fn_error ()
  23435. +{
  23436. + as_status=$?; test $as_status -eq 0 && as_status=1
  23437. + if test "$3"; then
  23438. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23439. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  23440. + fi
  23441. + $as_echo "$as_me: error: $1" >&2
  23442. + as_fn_exit $as_status
  23443. +} # as_fn_error
  23444. +
  23445. +
  23446. +# as_fn_set_status STATUS
  23447. +# -----------------------
  23448. +# Set $? to STATUS, without forking.
  23449. +as_fn_set_status ()
  23450. +{
  23451. + return $1
  23452. +} # as_fn_set_status
  23453. +
  23454. +# as_fn_exit STATUS
  23455. +# -----------------
  23456. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23457. +as_fn_exit ()
  23458. +{
  23459. + set +e
  23460. + as_fn_set_status $1
  23461. + exit $1
  23462. +} # as_fn_exit
  23463. +
  23464. +# as_fn_unset VAR
  23465. +# ---------------
  23466. +# Portably unset VAR.
  23467. +as_fn_unset ()
  23468. +{
  23469. + { eval $1=; unset $1;}
  23470. +}
  23471. +as_unset=as_fn_unset
  23472. +# as_fn_append VAR VALUE
  23473. +# ----------------------
  23474. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  23475. +# advantage of any shell optimizations that allow amortized linear growth over
  23476. +# repeated appends, instead of the typical quadratic growth present in naive
  23477. +# implementations.
  23478. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23479. + eval 'as_fn_append ()
  23480. + {
  23481. + eval $1+=\$2
  23482. + }'
  23483. +else
  23484. + as_fn_append ()
  23485. + {
  23486. + eval $1=\$$1\$2
  23487. + }
  23488. +fi # as_fn_append
  23489. +
  23490. +# as_fn_arith ARG...
  23491. +# ------------------
  23492. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  23493. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  23494. +# must be portable across $(()) and expr.
  23495. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23496. + eval 'as_fn_arith ()
  23497. + {
  23498. + as_val=$(( $* ))
  23499. + }'
  23500. +else
  23501. + as_fn_arith ()
  23502. + {
  23503. + as_val=`expr "$@" || test $? -eq 1`
  23504. + }
  23505. +fi # as_fn_arith
  23506. +
  23507. +
  23508. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  23509. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23510. + as_expr=expr
  23511. +else
  23512. + as_expr=false
  23513. +fi
  23514. +
  23515. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23516. + as_basename=basename
  23517. +else
  23518. + as_basename=false
  23519. +fi
  23520. +
  23521. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23522. + as_dirname=dirname
  23523. +else
  23524. + as_dirname=false
  23525. +fi
  23526. +
  23527. +as_me=`$as_basename -- "$0" ||
  23528. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23529. + X"$0" : 'X\(//\)$' \| \
  23530. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23531. +$as_echo X/"$0" |
  23532. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  23533. + s//\1/
  23534. + q
  23535. + }
  23536. + /^X\/\(\/\/\)$/{
  23537. + s//\1/
  23538. + q
  23539. + }
  23540. + /^X\/\(\/\).*/{
  23541. + s//\1/
  23542. + q
  23543. + }
  23544. + s/.*/./; q'`
  23545. +
  23546. +# Avoid depending upon Character Ranges.
  23547. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23548. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23549. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23550. +as_cr_digits='0123456789'
  23551. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  23552. +
  23553. +ECHO_C= ECHO_N= ECHO_T=
  23554. +case `echo -n x` in #(((((
  23555. +-n*)
  23556. + case `echo 'xy\c'` in
  23557. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23558. + xy) ECHO_C='\c';;
  23559. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23560. + ECHO_T=' ';;
  23561. + esac;;
  23562. +*)
  23563. + ECHO_N='-n';;
  23564. +esac
  23565. +
  23566. +rm -f conf$$ conf$$.exe conf$$.file
  23567. +if test -d conf$$.dir; then
  23568. + rm -f conf$$.dir/conf$$.file
  23569. +else
  23570. + rm -f conf$$.dir
  23571. + mkdir conf$$.dir 2>/dev/null
  23572. +fi
  23573. +if (echo >conf$$.file) 2>/dev/null; then
  23574. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  23575. + as_ln_s='ln -s'
  23576. + # ... but there are two gotchas:
  23577. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23578. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23579. + # In both cases, we have to default to `cp -p'.
  23580. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23581. + as_ln_s='cp -p'
  23582. + elif ln conf$$.file conf$$ 2>/dev/null; then
  23583. + as_ln_s=ln
  23584. + else
  23585. + as_ln_s='cp -p'
  23586. + fi
  23587. +else
  23588. + as_ln_s='cp -p'
  23589. +fi
  23590. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23591. +rmdir conf$$.dir 2>/dev/null
  23592. +
  23593. +
  23594. +# as_fn_mkdir_p
  23595. +# -------------
  23596. +# Create "$as_dir" as a directory, including parents if necessary.
  23597. +as_fn_mkdir_p ()
  23598. +{
  23599. +
  23600. + case $as_dir in #(
  23601. + -*) as_dir=./$as_dir;;
  23602. + esac
  23603. + test -d "$as_dir" || eval $as_mkdir_p || {
  23604. + as_dirs=
  23605. + while :; do
  23606. + case $as_dir in #(
  23607. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23608. + *) as_qdir=$as_dir;;
  23609. + esac
  23610. + as_dirs="'$as_qdir' $as_dirs"
  23611. + as_dir=`$as_dirname -- "$as_dir" ||
  23612. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23613. + X"$as_dir" : 'X\(//\)[^/]' \| \
  23614. + X"$as_dir" : 'X\(//\)$' \| \
  23615. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23616. +$as_echo X"$as_dir" |
  23617. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23618. + s//\1/
  23619. + q
  23620. + }
  23621. + /^X\(\/\/\)[^/].*/{
  23622. + s//\1/
  23623. + q
  23624. + }
  23625. + /^X\(\/\/\)$/{
  23626. + s//\1/
  23627. + q
  23628. + }
  23629. + /^X\(\/\).*/{
  23630. + s//\1/
  23631. + q
  23632. + }
  23633. + s/.*/./; q'`
  23634. + test -d "$as_dir" && break
  23635. + done
  23636. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  23637. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  23638. +
  23639. +
  23640. +} # as_fn_mkdir_p
  23641. +if mkdir -p . 2>/dev/null; then
  23642. + as_mkdir_p='mkdir -p "$as_dir"'
  23643. +else
  23644. + test -d ./-p && rmdir ./-p
  23645. + as_mkdir_p=false
  23646. +fi
  23647. +
  23648. +if test -x / >/dev/null 2>&1; then
  23649. + as_test_x='test -x'
  23650. +else
  23651. + if ls -dL / >/dev/null 2>&1; then
  23652. + as_ls_L_option=L
  23653. + else
  23654. + as_ls_L_option=
  23655. + fi
  23656. + as_test_x='
  23657. + eval sh -c '\''
  23658. + if test -d "$1"; then
  23659. + test -d "$1/.";
  23660. + else
  23661. + case $1 in #(
  23662. + -*)set "./$1";;
  23663. + esac;
  23664. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  23665. + ???[sx]*):;;*)false;;esac;fi
  23666. + '\'' sh
  23667. + '
  23668. +fi
  23669. +as_executable_p=$as_test_x
  23670. +
  23671. +# Sed expression to map a string onto a valid CPP name.
  23672. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23673. +
  23674. +# Sed expression to map a string onto a valid variable name.
  23675. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23676. +
  23677. +
  23678. +exec 6>&1
  23679. +## ----------------------------------- ##
  23680. +## Main body of $CONFIG_STATUS script. ##
  23681. +## ----------------------------------- ##
  23682. +_ASEOF
  23683. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23684. +
  23685. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23686. +# Save the log message, to keep $0 and so on meaningful, and to
  23687. +# report actual input values of CONFIG_FILES etc. instead of their
  23688. +# values after options handling.
  23689. +ac_log="
  23690. +This file was extended by $as_me, which was
  23691. +generated by GNU Autoconf 2.65. Invocation command line was
  23692. +
  23693. + CONFIG_FILES = $CONFIG_FILES
  23694. + CONFIG_HEADERS = $CONFIG_HEADERS
  23695. + CONFIG_LINKS = $CONFIG_LINKS
  23696. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  23697. + $ $0 $@
  23698. +
  23699. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23700. +"
  23701. +
  23702. +_ACEOF
  23703. +
  23704. +case $ac_config_files in *"
  23705. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  23706. +esac
  23707. +
  23708. +case $ac_config_headers in *"
  23709. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23710. +esac
  23711. +
  23712. +
  23713. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23714. +# Files that config.status was made for.
  23715. +config_files="$ac_config_files"
  23716. +config_headers="$ac_config_headers"
  23717. +config_commands="$ac_config_commands"
  23718. +
  23719. +_ACEOF
  23720. +
  23721. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23722. +ac_cs_usage="\
  23723. +\`$as_me' instantiates files and other configuration actions
  23724. +from templates according to the current configuration. Unless the files
  23725. +and actions are specified as TAGs, all are instantiated by default.
  23726. +
  23727. +Usage: $0 [OPTION]... [TAG]...
  23728. +
  23729. + -h, --help print this help, then exit
  23730. + -V, --version print version number and configuration settings, then exit
  23731. + --config print configuration, then exit
  23732. + -q, --quiet, --silent
  23733. + do not print progress messages
  23734. + -d, --debug don't remove temporary files
  23735. + --recheck update $as_me by reconfiguring in the same conditions
  23736. + --file=FILE[:TEMPLATE]
  23737. + instantiate the configuration file FILE
  23738. + --header=FILE[:TEMPLATE]
  23739. + instantiate the configuration header FILE
  23740. +
  23741. +Configuration files:
  23742. +$config_files
  23743. +
  23744. +Configuration headers:
  23745. +$config_headers
  23746. +
  23747. +Configuration commands:
  23748. +$config_commands
  23749. +
  23750. +Report bugs to the package provider."
  23751. +
  23752. +_ACEOF
  23753. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23754. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23755. +ac_cs_version="\\
  23756. +config.status
  23757. +configured by $0, generated by GNU Autoconf 2.65,
  23758. + with options \\"\$ac_cs_config\\"
  23759. +
  23760. +Copyright (C) 2009 Free Software Foundation, Inc.
  23761. +This config.status script is free software; the Free Software Foundation
  23762. +gives unlimited permission to copy, distribute and modify it."
  23763. +
  23764. +ac_pwd='$ac_pwd'
  23765. +srcdir='$srcdir'
  23766. +INSTALL='$INSTALL'
  23767. +MKDIR_P='$MKDIR_P'
  23768. +AWK='$AWK'
  23769. +test -n "\$AWK" || AWK=awk
  23770. +_ACEOF
  23771. +
  23772. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23773. +# The default lists apply if the user does not specify any file.
  23774. +ac_need_defaults=:
  23775. +while test $# != 0
  23776. +do
  23777. + case $1 in
  23778. + --*=*)
  23779. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23780. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23781. + ac_shift=:
  23782. + ;;
  23783. + *)
  23784. + ac_option=$1
  23785. + ac_optarg=$2
  23786. + ac_shift=shift
  23787. + ;;
  23788. + esac
  23789. +
  23790. + case $ac_option in
  23791. + # Handling of the options.
  23792. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23793. + ac_cs_recheck=: ;;
  23794. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23795. + $as_echo "$ac_cs_version"; exit ;;
  23796. + --config | --confi | --conf | --con | --co | --c )
  23797. + $as_echo "$ac_cs_config"; exit ;;
  23798. + --debug | --debu | --deb | --de | --d | -d )
  23799. + debug=: ;;
  23800. + --file | --fil | --fi | --f )
  23801. + $ac_shift
  23802. + case $ac_optarg in
  23803. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23804. + esac
  23805. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  23806. + ac_need_defaults=false;;
  23807. + --header | --heade | --head | --hea )
  23808. + $ac_shift
  23809. + case $ac_optarg in
  23810. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23811. + esac
  23812. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23813. + ac_need_defaults=false;;
  23814. + --he | --h)
  23815. + # Conflict between --help and --header
  23816. + as_fn_error "ambiguous option: \`$1'
  23817. +Try \`$0 --help' for more information.";;
  23818. + --help | --hel | -h )
  23819. + $as_echo "$ac_cs_usage"; exit ;;
  23820. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23821. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23822. + ac_cs_silent=: ;;
  23823. +
  23824. + # This is an error.
  23825. + -*) as_fn_error "unrecognized option: \`$1'
  23826. +Try \`$0 --help' for more information." ;;
  23827. +
  23828. + *) as_fn_append ac_config_targets " $1"
  23829. + ac_need_defaults=false ;;
  23830. +
  23831. + esac
  23832. + shift
  23833. +done
  23834. +
  23835. +ac_configure_extra_args=
  23836. +
  23837. +if $ac_cs_silent; then
  23838. + exec 6>/dev/null
  23839. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  23840. +fi
  23841. +
  23842. +_ACEOF
  23843. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23844. +if \$ac_cs_recheck; then
  23845. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23846. + shift
  23847. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23848. + CONFIG_SHELL='$SHELL'
  23849. + export CONFIG_SHELL
  23850. + exec "\$@"
  23851. +fi
  23852. +
  23853. +_ACEOF
  23854. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23855. +exec 5>>config.log
  23856. +{
  23857. + echo
  23858. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23859. +## Running $as_me. ##
  23860. +_ASBOX
  23861. + $as_echo "$ac_log"
  23862. +} >&5
  23863. +
  23864. +_ACEOF
  23865. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23866. +#
  23867. +# INIT-COMMANDS
  23868. +#
  23869. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  23870. +
  23871. +
  23872. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  23873. +# if CDPATH is set.
  23874. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23875. +
  23876. +sed_quote_subst='$sed_quote_subst'
  23877. +double_quote_subst='$double_quote_subst'
  23878. +delay_variable_subst='$delay_variable_subst'
  23879. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  23880. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  23881. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  23882. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  23883. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  23884. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  23885. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  23886. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  23887. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  23888. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  23889. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  23890. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  23891. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  23892. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  23893. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  23894. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  23895. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  23896. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  23897. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  23898. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  23899. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  23900. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  23901. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  23902. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  23903. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  23904. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  23905. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23906. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23907. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  23908. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  23909. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  23910. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  23911. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  23912. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  23913. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  23914. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23915. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23916. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23917. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  23918. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  23919. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  23920. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  23921. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  23922. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  23923. +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"`'
  23924. +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"`'
  23925. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  23926. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  23927. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  23928. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  23929. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23930. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  23931. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  23932. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  23933. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  23934. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  23935. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  23936. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  23937. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  23938. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  23939. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  23940. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  23941. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23942. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23943. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  23944. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  23945. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23946. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23947. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  23948. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23949. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23950. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23951. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23952. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23953. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23954. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  23955. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23956. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23957. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23958. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  23959. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  23960. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  23961. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  23962. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  23963. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23964. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  23965. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  23966. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  23967. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  23968. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  23969. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23970. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  23971. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  23972. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23973. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23974. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  23975. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  23976. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  23977. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  23978. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23979. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23980. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  23981. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23982. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23983. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23984. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23985. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23986. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23987. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  23988. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  23989. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23990. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23991. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  23992. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  23993. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  23994. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  23995. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  23996. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  23997. +
  23998. +LTCC='$LTCC'
  23999. +LTCFLAGS='$LTCFLAGS'
  24000. +compiler='$compiler_DEFAULT'
  24001. +
  24002. +# Quote evaled strings.
  24003. +for var in SED \
  24004. +GREP \
  24005. +EGREP \
  24006. +FGREP \
  24007. +LD \
  24008. +NM \
  24009. +LN_S \
  24010. +lt_SP2NL \
  24011. +lt_NL2SP \
  24012. +reload_flag \
  24013. +OBJDUMP \
  24014. +deplibs_check_method \
  24015. +file_magic_cmd \
  24016. +AR \
  24017. +AR_FLAGS \
  24018. +STRIP \
  24019. +RANLIB \
  24020. +CC \
  24021. +CFLAGS \
  24022. +compiler \
  24023. +lt_cv_sys_global_symbol_pipe \
  24024. +lt_cv_sys_global_symbol_to_cdecl \
  24025. +lt_cv_sys_global_symbol_to_c_name_address \
  24026. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24027. +SHELL \
  24028. +ECHO \
  24029. +lt_prog_compiler_no_builtin_flag \
  24030. +lt_prog_compiler_wl \
  24031. +lt_prog_compiler_pic \
  24032. +lt_prog_compiler_static \
  24033. +lt_cv_prog_compiler_c_o \
  24034. +need_locks \
  24035. +DSYMUTIL \
  24036. +NMEDIT \
  24037. +LIPO \
  24038. +OTOOL \
  24039. +OTOOL64 \
  24040. +shrext_cmds \
  24041. +export_dynamic_flag_spec \
  24042. +whole_archive_flag_spec \
  24043. +compiler_needs_object \
  24044. +with_gnu_ld \
  24045. +allow_undefined_flag \
  24046. +no_undefined_flag \
  24047. +hardcode_libdir_flag_spec \
  24048. +hardcode_libdir_flag_spec_ld \
  24049. +hardcode_libdir_separator \
  24050. +fix_srcfile_path \
  24051. +exclude_expsyms \
  24052. +include_expsyms \
  24053. +file_list_spec \
  24054. +variables_saved_for_relink \
  24055. +libname_spec \
  24056. +library_names_spec \
  24057. +soname_spec \
  24058. +finish_eval \
  24059. +old_striplib \
  24060. +striplib; do
  24061. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  24062. + *[\\\\\\\`\\"\\\$]*)
  24063. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  24064. + ;;
  24065. + *)
  24066. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24067. + ;;
  24068. + esac
  24069. +done
  24070. +
  24071. +# Double-quote double-evaled strings.
  24072. +for var in reload_cmds \
  24073. +old_postinstall_cmds \
  24074. +old_postuninstall_cmds \
  24075. +old_archive_cmds \
  24076. +extract_expsyms_cmds \
  24077. +old_archive_from_new_cmds \
  24078. +old_archive_from_expsyms_cmds \
  24079. +archive_cmds \
  24080. +archive_expsym_cmds \
  24081. +module_cmds \
  24082. +module_expsym_cmds \
  24083. +export_symbols_cmds \
  24084. +prelink_cmds \
  24085. +postinstall_cmds \
  24086. +postuninstall_cmds \
  24087. +finish_cmds \
  24088. +sys_lib_search_path_spec \
  24089. +sys_lib_dlsearch_path_spec; do
  24090. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  24091. + *[\\\\\\\`\\"\\\$]*)
  24092. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  24093. + ;;
  24094. + *)
  24095. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24096. + ;;
  24097. + esac
  24098. +done
  24099. +
  24100. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  24101. +case \$lt_ECHO in
  24102. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  24103. + ;;
  24104. +esac
  24105. +
  24106. +ac_aux_dir='$ac_aux_dir'
  24107. +xsi_shell='$xsi_shell'
  24108. +lt_shell_append='$lt_shell_append'
  24109. +
  24110. +# See if we are running on zsh, and set the options which allow our
  24111. +# commands through without removal of \ escapes INIT.
  24112. +if test -n "\${ZSH_VERSION+set}" ; then
  24113. + setopt NO_GLOB_SUBST
  24114. +fi
  24115. +
  24116. +
  24117. + PACKAGE='$PACKAGE'
  24118. + VERSION='$VERSION'
  24119. + TIMESTAMP='$TIMESTAMP'
  24120. + RM='$RM'
  24121. + ofile='$ofile'
  24122. +
  24123. +
  24124. +
  24125. +
  24126. +_ACEOF
  24127. +
  24128. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24129. +
  24130. +# Handling of arguments.
  24131. +for ac_config_target in $ac_config_targets
  24132. +do
  24133. + case $ac_config_target in
  24134. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24135. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24136. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24137. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24138. + "Version_script") CONFIG_FILES="$CONFIG_FILES Version_script" ;;
  24139. +
  24140. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24141. + esac
  24142. +done
  24143. +
  24144. +
  24145. +# If the user did not use the arguments to specify the items to instantiate,
  24146. +# then the envvar interface is used. Set only those that are not.
  24147. +# We use the long form for the default assignment because of an extremely
  24148. +# bizarre bug on SunOS 4.1.3.
  24149. +if $ac_need_defaults; then
  24150. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24151. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24152. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24153. +fi
  24154. +
  24155. +# Have a temporary directory for convenience. Make it in the build tree
  24156. +# simply because there is no reason against having it here, and in addition,
  24157. +# creating and moving files from /tmp can sometimes cause problems.
  24158. +# Hook for its removal unless debugging.
  24159. +# Note that there is a small window in which the directory will not be cleaned:
  24160. +# after its creation but before its name has been assigned to `$tmp'.
  24161. +$debug ||
  24162. +{
  24163. + tmp=
  24164. + trap 'exit_status=$?
  24165. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  24166. +' 0
  24167. + trap 'as_fn_exit 1' 1 2 13 15
  24168. +}
  24169. +# Create a (secure) tmp directory for tmp files.
  24170. +
  24171. +{
  24172. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24173. + test -n "$tmp" && test -d "$tmp"
  24174. +} ||
  24175. +{
  24176. + tmp=./conf$$-$RANDOM
  24177. + (umask 077 && mkdir "$tmp")
  24178. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  24179. +
  24180. +# Set up the scripts for CONFIG_FILES section.
  24181. +# No need to generate them if there are no CONFIG_FILES.
  24182. +# This happens for instance with `./config.status config.h'.
  24183. +if test -n "$CONFIG_FILES"; then
  24184. +
  24185. +
  24186. +ac_cr=`echo X | tr X '\015'`
  24187. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  24188. +# But we know of no other shell where ac_cr would be empty at this
  24189. +# point, so we can use a bashism as a fallback.
  24190. +if test "x$ac_cr" = x; then
  24191. + eval ac_cr=\$\'\\r\'
  24192. +fi
  24193. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24194. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24195. + ac_cs_awk_cr='\r'
  24196. +else
  24197. + ac_cs_awk_cr=$ac_cr
  24198. +fi
  24199. +
  24200. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  24201. +_ACEOF
  24202. +
  24203. +
  24204. +{
  24205. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  24206. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24207. + echo "_ACEOF"
  24208. +} >conf$$subs.sh ||
  24209. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  24210. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  24211. +ac_delim='%!_!# '
  24212. +for ac_last_try in false false false false false :; do
  24213. + . ./conf$$subs.sh ||
  24214. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  24215. +
  24216. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24217. + if test $ac_delim_n = $ac_delim_num; then
  24218. + break
  24219. + elif $ac_last_try; then
  24220. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  24221. + else
  24222. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24223. + fi
  24224. +done
  24225. +rm -f conf$$subs.sh
  24226. +
  24227. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24228. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  24229. +_ACEOF
  24230. +sed -n '
  24231. +h
  24232. +s/^/S["/; s/!.*/"]=/
  24233. +p
  24234. +g
  24235. +s/^[^!]*!//
  24236. +:repl
  24237. +t repl
  24238. +s/'"$ac_delim"'$//
  24239. +t delim
  24240. +:nl
  24241. +h
  24242. +s/\(.\{148\}\)..*/\1/
  24243. +t more1
  24244. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24245. +p
  24246. +n
  24247. +b repl
  24248. +:more1
  24249. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24250. +p
  24251. +g
  24252. +s/.\{148\}//
  24253. +t nl
  24254. +:delim
  24255. +h
  24256. +s/\(.\{148\}\)..*/\1/
  24257. +t more2
  24258. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  24259. +p
  24260. +b
  24261. +:more2
  24262. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24263. +p
  24264. +g
  24265. +s/.\{148\}//
  24266. +t delim
  24267. +' <conf$$subs.awk | sed '
  24268. +/^[^""]/{
  24269. + N
  24270. + s/\n//
  24271. +}
  24272. +' >>$CONFIG_STATUS || ac_write_fail=1
  24273. +rm -f conf$$subs.awk
  24274. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24275. +_ACAWK
  24276. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  24277. + for (key in S) S_is_set[key] = 1
  24278. + FS = ""
  24279. +
  24280. +}
  24281. +{
  24282. + line = $ 0
  24283. + nfields = split(line, field, "@")
  24284. + substed = 0
  24285. + len = length(field[1])
  24286. + for (i = 2; i < nfields; i++) {
  24287. + key = field[i]
  24288. + keylen = length(key)
  24289. + if (S_is_set[key]) {
  24290. + value = S[key]
  24291. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24292. + len += length(value) + length(field[++i])
  24293. + substed = 1
  24294. + } else
  24295. + len += 1 + keylen
  24296. + }
  24297. +
  24298. + print line
  24299. +}
  24300. +
  24301. +_ACAWK
  24302. +_ACEOF
  24303. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24304. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24305. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24306. +else
  24307. + cat
  24308. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  24309. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  24310. +_ACEOF
  24311. +
  24312. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  24313. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  24314. +# trailing colons and then remove the whole line if VPATH becomes empty
  24315. +# (actually we leave an empty line to preserve line numbers).
  24316. +if test "x$srcdir" = x.; then
  24317. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  24318. +s/:*\$(srcdir):*/:/
  24319. +s/:*\${srcdir}:*/:/
  24320. +s/:*@srcdir@:*/:/
  24321. +s/^\([^=]*=[ ]*\):*/\1/
  24322. +s/:*$//
  24323. +s/^[^=]*=[ ]*$//
  24324. +}'
  24325. +fi
  24326. +
  24327. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24328. +fi # test -n "$CONFIG_FILES"
  24329. +
  24330. +# Set up the scripts for CONFIG_HEADERS section.
  24331. +# No need to generate them if there are no CONFIG_HEADERS.
  24332. +# This happens for instance with `./config.status Makefile'.
  24333. +if test -n "$CONFIG_HEADERS"; then
  24334. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  24335. +BEGIN {
  24336. +_ACEOF
  24337. +
  24338. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  24339. +# here-document in config.status, that substitutes the proper values into
  24340. +# config.h.in to produce config.h.
  24341. +
  24342. +# Create a delimiter string that does not exist in confdefs.h, to ease
  24343. +# handling of long lines.
  24344. +ac_delim='%!_!# '
  24345. +for ac_last_try in false false :; do
  24346. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  24347. + if test -z "$ac_t"; then
  24348. + break
  24349. + elif $ac_last_try; then
  24350. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  24351. + else
  24352. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24353. + fi
  24354. +done
  24355. +
  24356. +# For the awk script, D is an array of macro values keyed by name,
  24357. +# likewise P contains macro parameters if any. Preserve backslash
  24358. +# newline sequences.
  24359. +
  24360. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24361. +sed -n '
  24362. +s/.\{148\}/&'"$ac_delim"'/g
  24363. +t rset
  24364. +:rset
  24365. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  24366. +t def
  24367. +d
  24368. +:def
  24369. +s/\\$//
  24370. +t bsnl
  24371. +s/["\\]/\\&/g
  24372. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24373. +D["\1"]=" \3"/p
  24374. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24375. +d
  24376. +:bsnl
  24377. +s/["\\]/\\&/g
  24378. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24379. +D["\1"]=" \3\\\\\\n"\\/p
  24380. +t cont
  24381. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24382. +t cont
  24383. +d
  24384. +:cont
  24385. +n
  24386. +s/.\{148\}/&'"$ac_delim"'/g
  24387. +t clear
  24388. +:clear
  24389. +s/\\$//
  24390. +t bsnlc
  24391. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24392. +d
  24393. +:bsnlc
  24394. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24395. +b cont
  24396. +' <confdefs.h | sed '
  24397. +s/'"$ac_delim"'/"\\\
  24398. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  24399. +
  24400. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24401. + for (key in D) D_is_set[key] = 1
  24402. + FS = ""
  24403. +}
  24404. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24405. + line = \$ 0
  24406. + split(line, arg, " ")
  24407. + if (arg[1] == "#") {
  24408. + defundef = arg[2]
  24409. + mac1 = arg[3]
  24410. + } else {
  24411. + defundef = substr(arg[1], 2)
  24412. + mac1 = arg[2]
  24413. + }
  24414. + split(mac1, mac2, "(") #)
  24415. + macro = mac2[1]
  24416. + prefix = substr(line, 1, index(line, defundef) - 1)
  24417. + if (D_is_set[macro]) {
  24418. + # Preserve the white space surrounding the "#".
  24419. + print prefix "define", macro P[macro] D[macro]
  24420. + next
  24421. + } else {
  24422. + # Replace #undef with comments. This is necessary, for example,
  24423. + # in the case of _POSIX_SOURCE, which is predefined and required
  24424. + # on some systems where configure will not decide to define it.
  24425. + if (defundef == "undef") {
  24426. + print "/*", prefix defundef, macro, "*/"
  24427. + next
  24428. + }
  24429. + }
  24430. +}
  24431. +{ print }
  24432. +_ACAWK
  24433. +_ACEOF
  24434. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24435. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  24436. +fi # test -n "$CONFIG_HEADERS"
  24437. +
  24438. +
  24439. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24440. +shift
  24441. +for ac_tag
  24442. +do
  24443. + case $ac_tag in
  24444. + :[FHLC]) ac_mode=$ac_tag; continue;;
  24445. + esac
  24446. + case $ac_mode$ac_tag in
  24447. + :[FHL]*:*);;
  24448. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24449. + :[FH]-) ac_tag=-:-;;
  24450. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24451. + esac
  24452. + ac_save_IFS=$IFS
  24453. + IFS=:
  24454. + set x $ac_tag
  24455. + IFS=$ac_save_IFS
  24456. + shift
  24457. + ac_file=$1
  24458. + shift
  24459. +
  24460. + case $ac_mode in
  24461. + :L) ac_source=$1;;
  24462. + :[FH])
  24463. + ac_file_inputs=
  24464. + for ac_f
  24465. + do
  24466. + case $ac_f in
  24467. + -) ac_f="$tmp/stdin";;
  24468. + *) # Look for the file first in the build tree, then in the source tree
  24469. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  24470. + # because $ac_f cannot contain `:'.
  24471. + test -f "$ac_f" ||
  24472. + case $ac_f in
  24473. + [\\/$]*) false;;
  24474. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24475. + esac ||
  24476. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24477. + esac
  24478. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24479. + as_fn_append ac_file_inputs " '$ac_f'"
  24480. + done
  24481. +
  24482. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  24483. + # use $as_me), people would be surprised to read:
  24484. + # /* config.h. Generated by config.status. */
  24485. + configure_input='Generated from '`
  24486. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24487. + `' by configure.'
  24488. + if test x"$ac_file" != x-; then
  24489. + configure_input="$ac_file. $configure_input"
  24490. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24491. +$as_echo "$as_me: creating $ac_file" >&6;}
  24492. + fi
  24493. + # Neutralize special characters interpreted by sed in replacement strings.
  24494. + case $configure_input in #(
  24495. + *\&* | *\|* | *\\* )
  24496. + ac_sed_conf_input=`$as_echo "$configure_input" |
  24497. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24498. + *) ac_sed_conf_input=$configure_input;;
  24499. + esac
  24500. +
  24501. + case $ac_tag in
  24502. + *:-:* | *:-) cat >"$tmp/stdin" \
  24503. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  24504. + esac
  24505. + ;;
  24506. + esac
  24507. +
  24508. + ac_dir=`$as_dirname -- "$ac_file" ||
  24509. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24510. + X"$ac_file" : 'X\(//\)[^/]' \| \
  24511. + X"$ac_file" : 'X\(//\)$' \| \
  24512. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24513. +$as_echo X"$ac_file" |
  24514. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24515. + s//\1/
  24516. + q
  24517. + }
  24518. + /^X\(\/\/\)[^/].*/{
  24519. + s//\1/
  24520. + q
  24521. + }
  24522. + /^X\(\/\/\)$/{
  24523. + s//\1/
  24524. + q
  24525. + }
  24526. + /^X\(\/\).*/{
  24527. + s//\1/
  24528. + q
  24529. + }
  24530. + s/.*/./; q'`
  24531. + as_dir="$ac_dir"; as_fn_mkdir_p
  24532. + ac_builddir=.
  24533. +
  24534. +case "$ac_dir" in
  24535. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24536. +*)
  24537. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24538. + # A ".." for each directory in $ac_dir_suffix.
  24539. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24540. + case $ac_top_builddir_sub in
  24541. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24542. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24543. + esac ;;
  24544. +esac
  24545. +ac_abs_top_builddir=$ac_pwd
  24546. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24547. +# for backward compatibility:
  24548. +ac_top_builddir=$ac_top_build_prefix
  24549. +
  24550. +case $srcdir in
  24551. + .) # We are building in place.
  24552. + ac_srcdir=.
  24553. + ac_top_srcdir=$ac_top_builddir_sub
  24554. + ac_abs_top_srcdir=$ac_pwd ;;
  24555. + [\\/]* | ?:[\\/]* ) # Absolute name.
  24556. + ac_srcdir=$srcdir$ac_dir_suffix;
  24557. + ac_top_srcdir=$srcdir
  24558. + ac_abs_top_srcdir=$srcdir ;;
  24559. + *) # Relative name.
  24560. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24561. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  24562. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24563. +esac
  24564. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24565. +
  24566. +
  24567. + case $ac_mode in
  24568. + :F)
  24569. + #
  24570. + # CONFIG_FILE
  24571. + #
  24572. +
  24573. + case $INSTALL in
  24574. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24575. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24576. + esac
  24577. + ac_MKDIR_P=$MKDIR_P
  24578. + case $MKDIR_P in
  24579. + [\\/$]* | ?:[\\/]* ) ;;
  24580. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  24581. + esac
  24582. +_ACEOF
  24583. +
  24584. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24585. +# If the template does not know about datarootdir, expand it.
  24586. +# FIXME: This hack should be removed a few years after 2.60.
  24587. +ac_datarootdir_hack=; ac_datarootdir_seen=
  24588. +ac_sed_dataroot='
  24589. +/datarootdir/ {
  24590. + p
  24591. + q
  24592. +}
  24593. +/@datadir@/p
  24594. +/@docdir@/p
  24595. +/@infodir@/p
  24596. +/@localedir@/p
  24597. +/@mandir@/p'
  24598. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24599. +*datarootdir*) ac_datarootdir_seen=yes;;
  24600. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24601. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24602. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24603. +_ACEOF
  24604. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24605. + ac_datarootdir_hack='
  24606. + s&@datadir@&$datadir&g
  24607. + s&@docdir@&$docdir&g
  24608. + s&@infodir@&$infodir&g
  24609. + s&@localedir@&$localedir&g
  24610. + s&@mandir@&$mandir&g
  24611. + s&\\\${datarootdir}&$datarootdir&g' ;;
  24612. +esac
  24613. +_ACEOF
  24614. +
  24615. +# Neutralize VPATH when `$srcdir' = `.'.
  24616. +# Shell code in configure.ac might set extrasub.
  24617. +# FIXME: do we really want to maintain this feature?
  24618. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24619. +ac_sed_extra="$ac_vpsub
  24620. +$extrasub
  24621. +_ACEOF
  24622. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24623. +:t
  24624. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24625. +s|@configure_input@|$ac_sed_conf_input|;t t
  24626. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  24627. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24628. +s&@srcdir@&$ac_srcdir&;t t
  24629. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24630. +s&@top_srcdir@&$ac_top_srcdir&;t t
  24631. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24632. +s&@builddir@&$ac_builddir&;t t
  24633. +s&@abs_builddir@&$ac_abs_builddir&;t t
  24634. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24635. +s&@INSTALL@&$ac_INSTALL&;t t
  24636. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  24637. +$ac_datarootdir_hack
  24638. +"
  24639. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  24640. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  24641. +
  24642. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24643. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  24644. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  24645. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24646. +which seems to be undefined. Please make sure it is defined." >&5
  24647. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24648. +which seems to be undefined. Please make sure it is defined." >&2;}
  24649. +
  24650. + rm -f "$tmp/stdin"
  24651. + case $ac_file in
  24652. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  24653. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  24654. + esac \
  24655. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  24656. + ;;
  24657. + :H)
  24658. + #
  24659. + # CONFIG_HEADER
  24660. + #
  24661. + if test x"$ac_file" != x-; then
  24662. + {
  24663. + $as_echo "/* $configure_input */" \
  24664. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  24665. + } >"$tmp/config.h" \
  24666. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  24667. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  24668. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24669. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  24670. + else
  24671. + rm -f "$ac_file"
  24672. + mv "$tmp/config.h" "$ac_file" \
  24673. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  24674. + fi
  24675. + else
  24676. + $as_echo "/* $configure_input */" \
  24677. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  24678. + || as_fn_error "could not create -" "$LINENO" 5
  24679. + fi
  24680. +# Compute "$ac_file"'s index in $config_headers.
  24681. +_am_arg="$ac_file"
  24682. +_am_stamp_count=1
  24683. +for _am_header in $config_headers :; do
  24684. + case $_am_header in
  24685. + $_am_arg | $_am_arg:* )
  24686. + break ;;
  24687. + * )
  24688. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  24689. + esac
  24690. +done
  24691. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  24692. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24693. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  24694. + X"$_am_arg" : 'X\(//\)$' \| \
  24695. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  24696. +$as_echo X"$_am_arg" |
  24697. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24698. + s//\1/
  24699. + q
  24700. + }
  24701. + /^X\(\/\/\)[^/].*/{
  24702. + s//\1/
  24703. + q
  24704. + }
  24705. + /^X\(\/\/\)$/{
  24706. + s//\1/
  24707. + q
  24708. + }
  24709. + /^X\(\/\).*/{
  24710. + s//\1/
  24711. + q
  24712. + }
  24713. + s/.*/./; q'`/stamp-h$_am_stamp_count
  24714. + ;;
  24715. +
  24716. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24717. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  24718. + ;;
  24719. + esac
  24720. +
  24721. +
  24722. + case $ac_file$ac_mode in
  24723. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  24724. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  24725. + # are listed without --file. Let's play safe and only enable the eval
  24726. + # if we detect the quoting.
  24727. + case $CONFIG_FILES in
  24728. + *\'*) eval set x "$CONFIG_FILES" ;;
  24729. + *) set x $CONFIG_FILES ;;
  24730. + esac
  24731. + shift
  24732. + for mf
  24733. + do
  24734. + # Strip MF so we end up with the name of the file.
  24735. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  24736. + # Check whether this is an Automake generated Makefile or not.
  24737. + # We used to match only the files named `Makefile.in', but
  24738. + # some people rename them; so instead we look at the file content.
  24739. + # Grep'ing the first line is not enough: some people post-process
  24740. + # each Makefile.in and add a new line on top of each file to say so.
  24741. + # Grep'ing the whole file is not good either: AIX grep has a line
  24742. + # limit of 2048, but all sed's we know have understand at least 4000.
  24743. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  24744. + dirpart=`$as_dirname -- "$mf" ||
  24745. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24746. + X"$mf" : 'X\(//\)[^/]' \| \
  24747. + X"$mf" : 'X\(//\)$' \| \
  24748. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  24749. +$as_echo X"$mf" |
  24750. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24751. + s//\1/
  24752. + q
  24753. + }
  24754. + /^X\(\/\/\)[^/].*/{
  24755. + s//\1/
  24756. + q
  24757. + }
  24758. + /^X\(\/\/\)$/{
  24759. + s//\1/
  24760. + q
  24761. + }
  24762. + /^X\(\/\).*/{
  24763. + s//\1/
  24764. + q
  24765. + }
  24766. + s/.*/./; q'`
  24767. + else
  24768. + continue
  24769. + fi
  24770. + # Extract the definition of DEPDIR, am__include, and am__quote
  24771. + # from the Makefile without running `make'.
  24772. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  24773. + test -z "$DEPDIR" && continue
  24774. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  24775. + test -z "am__include" && continue
  24776. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  24777. + # When using ansi2knr, U may be empty or an underscore; expand it
  24778. + U=`sed -n 's/^U = //p' < "$mf"`
  24779. + # Find all dependency output files, they are included files with
  24780. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  24781. + # simplest approach to changing $(DEPDIR) to its actual value in the
  24782. + # expansion.
  24783. + for file in `sed -n "
  24784. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  24785. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  24786. + # Make sure the directory exists.
  24787. + test -f "$dirpart/$file" && continue
  24788. + fdir=`$as_dirname -- "$file" ||
  24789. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24790. + X"$file" : 'X\(//\)[^/]' \| \
  24791. + X"$file" : 'X\(//\)$' \| \
  24792. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  24793. +$as_echo X"$file" |
  24794. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24795. + s//\1/
  24796. + q
  24797. + }
  24798. + /^X\(\/\/\)[^/].*/{
  24799. + s//\1/
  24800. + q
  24801. + }
  24802. + /^X\(\/\/\)$/{
  24803. + s//\1/
  24804. + q
  24805. + }
  24806. + /^X\(\/\).*/{
  24807. + s//\1/
  24808. + q
  24809. + }
  24810. + s/.*/./; q'`
  24811. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  24812. + # echo "creating $dirpart/$file"
  24813. + echo '# dummy' > "$dirpart/$file"
  24814. + done
  24815. + done
  24816. +}
  24817. + ;;
  24818. + "libtool":C)
  24819. +
  24820. + # See if we are running on zsh, and set the options which allow our
  24821. + # commands through without removal of \ escapes.
  24822. + if test -n "${ZSH_VERSION+set}" ; then
  24823. + setopt NO_GLOB_SUBST
  24824. + fi
  24825. +
  24826. + cfgfile="${ofile}T"
  24827. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24828. + $RM "$cfgfile"
  24829. +
  24830. + cat <<_LT_EOF >> "$cfgfile"
  24831. +#! $SHELL
  24832. +
  24833. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24834. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24835. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24836. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24837. +#
  24838. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24839. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  24840. +# Written by Gordon Matzigkeit, 1996
  24841. +#
  24842. +# This file is part of GNU Libtool.
  24843. +#
  24844. +# GNU Libtool is free software; you can redistribute it and/or
  24845. +# modify it under the terms of the GNU General Public License as
  24846. +# published by the Free Software Foundation; either version 2 of
  24847. +# the License, or (at your option) any later version.
  24848. +#
  24849. +# As a special exception to the GNU General Public License,
  24850. +# if you distribute this file as part of a program or library that
  24851. +# is built using GNU Libtool, you may include this file under the
  24852. +# same distribution terms that you use for the rest of that program.
  24853. +#
  24854. +# GNU Libtool is distributed in the hope that it will be useful,
  24855. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  24856. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24857. +# GNU General Public License for more details.
  24858. +#
  24859. +# You should have received a copy of the GNU General Public License
  24860. +# along with GNU Libtool; see the file COPYING. If not, a copy
  24861. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24862. +# obtained by writing to the Free Software Foundation, Inc.,
  24863. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24864. +
  24865. +
  24866. +# The names of the tagged configurations supported by this script.
  24867. +available_tags=""
  24868. +
  24869. +# ### BEGIN LIBTOOL CONFIG
  24870. +
  24871. +# Which release of libtool.m4 was used?
  24872. +macro_version=$macro_version
  24873. +macro_revision=$macro_revision
  24874. +
  24875. +# Whether or not to build shared libraries.
  24876. +build_libtool_libs=$enable_shared
  24877. +
  24878. +# Whether or not to build static libraries.
  24879. +build_old_libs=$enable_static
  24880. +
  24881. +# What type of objects to build.
  24882. +pic_mode=$pic_mode
  24883. +
  24884. +# Whether or not to optimize for fast installation.
  24885. +fast_install=$enable_fast_install
  24886. +
  24887. +# The host system.
  24888. +host_alias=$host_alias
  24889. +host=$host
  24890. +host_os=$host_os
  24891. +
  24892. +# The build system.
  24893. +build_alias=$build_alias
  24894. +build=$build
  24895. +build_os=$build_os
  24896. +
  24897. +# A sed program that does not truncate output.
  24898. +SED=$lt_SED
  24899. +
  24900. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24901. +Xsed="\$SED -e 1s/^X//"
  24902. +
  24903. +# A grep program that handles long lines.
  24904. +GREP=$lt_GREP
  24905. +
  24906. +# An ERE matcher.
  24907. +EGREP=$lt_EGREP
  24908. +
  24909. +# A literal string matcher.
  24910. +FGREP=$lt_FGREP
  24911. +
  24912. +# A BSD- or MS-compatible name lister.
  24913. +NM=$lt_NM
  24914. +
  24915. +# Whether we need soft or hard links.
  24916. +LN_S=$lt_LN_S
  24917. +
  24918. +# What is the maximum length of a command?
  24919. +max_cmd_len=$max_cmd_len
  24920. +
  24921. +# Object file suffix (normally "o").
  24922. +objext=$ac_objext
  24923. +
  24924. +# Executable file suffix (normally "").
  24925. +exeext=$exeext
  24926. +
  24927. +# whether the shell understands "unset".
  24928. +lt_unset=$lt_unset
  24929. +
  24930. +# turn spaces into newlines.
  24931. +SP2NL=$lt_lt_SP2NL
  24932. +
  24933. +# turn newlines into spaces.
  24934. +NL2SP=$lt_lt_NL2SP
  24935. +
  24936. +# How to create reloadable object files.
  24937. +reload_flag=$lt_reload_flag
  24938. +reload_cmds=$lt_reload_cmds
  24939. +
  24940. +# An object symbol dumper.
  24941. +OBJDUMP=$lt_OBJDUMP
  24942. +
  24943. +# Method to check whether dependent libraries are shared objects.
  24944. +deplibs_check_method=$lt_deplibs_check_method
  24945. +
  24946. +# Command to use when deplibs_check_method == "file_magic".
  24947. +file_magic_cmd=$lt_file_magic_cmd
  24948. +
  24949. +# The archiver.
  24950. +AR=$lt_AR
  24951. +AR_FLAGS=$lt_AR_FLAGS
  24952. +
  24953. +# A symbol stripping program.
  24954. +STRIP=$lt_STRIP
  24955. +
  24956. +# Commands used to install an old-style archive.
  24957. +RANLIB=$lt_RANLIB
  24958. +old_postinstall_cmds=$lt_old_postinstall_cmds
  24959. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24960. +
  24961. +# A C compiler.
  24962. +LTCC=$lt_CC
  24963. +
  24964. +# LTCC compiler flags.
  24965. +LTCFLAGS=$lt_CFLAGS
  24966. +
  24967. +# Take the output of nm and produce a listing of raw symbols and C names.
  24968. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24969. +
  24970. +# Transform the output of nm in a proper C declaration.
  24971. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24972. +
  24973. +# Transform the output of nm in a C name address pair.
  24974. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24975. +
  24976. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  24977. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24978. +
  24979. +# The name of the directory that contains temporary libtool files.
  24980. +objdir=$objdir
  24981. +
  24982. +# Shell to use when invoking shell scripts.
  24983. +SHELL=$lt_SHELL
  24984. +
  24985. +# An echo program that does not interpret backslashes.
  24986. +ECHO=$lt_ECHO
  24987. +
  24988. +# Used to examine libraries when file_magic_cmd begins with "file".
  24989. +MAGIC_CMD=$MAGIC_CMD
  24990. +
  24991. +# Must we lock files when doing compilation?
  24992. +need_locks=$lt_need_locks
  24993. +
  24994. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24995. +DSYMUTIL=$lt_DSYMUTIL
  24996. +
  24997. +# Tool to change global to local symbols on Mac OS X.
  24998. +NMEDIT=$lt_NMEDIT
  24999. +
  25000. +# Tool to manipulate fat objects and archives on Mac OS X.
  25001. +LIPO=$lt_LIPO
  25002. +
  25003. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25004. +OTOOL=$lt_OTOOL
  25005. +
  25006. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25007. +OTOOL64=$lt_OTOOL64
  25008. +
  25009. +# Old archive suffix (normally "a").
  25010. +libext=$libext
  25011. +
  25012. +# Shared library suffix (normally ".so").
  25013. +shrext_cmds=$lt_shrext_cmds
  25014. +
  25015. +# The commands to extract the exported symbol list from a shared archive.
  25016. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25017. +
  25018. +# Variables whose values should be saved in libtool wrapper scripts and
  25019. +# restored at link time.
  25020. +variables_saved_for_relink=$lt_variables_saved_for_relink
  25021. +
  25022. +# Do we need the "lib" prefix for modules?
  25023. +need_lib_prefix=$need_lib_prefix
  25024. +
  25025. +# Do we need a version for libraries?
  25026. +need_version=$need_version
  25027. +
  25028. +# Library versioning type.
  25029. +version_type=$version_type
  25030. +
  25031. +# Shared library runtime path variable.
  25032. +runpath_var=$runpath_var
  25033. +
  25034. +# Shared library path variable.
  25035. +shlibpath_var=$shlibpath_var
  25036. +
  25037. +# Is shlibpath searched before the hard-coded library search path?
  25038. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25039. +
  25040. +# Format of library name prefix.
  25041. +libname_spec=$lt_libname_spec
  25042. +
  25043. +# List of archive names. First name is the real one, the rest are links.
  25044. +# The last name is the one that the linker finds with -lNAME
  25045. +library_names_spec=$lt_library_names_spec
  25046. +
  25047. +# The coded name of the library, if different from the real name.
  25048. +soname_spec=$lt_soname_spec
  25049. +
  25050. +# Command to use after installation of a shared archive.
  25051. +postinstall_cmds=$lt_postinstall_cmds
  25052. +
  25053. +# Command to use after uninstallation of a shared archive.
  25054. +postuninstall_cmds=$lt_postuninstall_cmds
  25055. +
  25056. +# Commands used to finish a libtool library installation in a directory.
  25057. +finish_cmds=$lt_finish_cmds
  25058. +
  25059. +# As "finish_cmds", except a single script fragment to be evaled but
  25060. +# not shown.
  25061. +finish_eval=$lt_finish_eval
  25062. +
  25063. +# Whether we should hardcode library paths into libraries.
  25064. +hardcode_into_libs=$hardcode_into_libs
  25065. +
  25066. +# Compile-time system search path for libraries.
  25067. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25068. +
  25069. +# Run-time system search path for libraries.
  25070. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25071. +
  25072. +# Whether dlopen is supported.
  25073. +dlopen_support=$enable_dlopen
  25074. +
  25075. +# Whether dlopen of programs is supported.
  25076. +dlopen_self=$enable_dlopen_self
  25077. +
  25078. +# Whether dlopen of statically linked programs is supported.
  25079. +dlopen_self_static=$enable_dlopen_self_static
  25080. +
  25081. +# Commands to strip libraries.
  25082. +old_striplib=$lt_old_striplib
  25083. +striplib=$lt_striplib
  25084. +
  25085. +
  25086. +# The linker used to build libraries.
  25087. +LD=$lt_LD
  25088. +
  25089. +# Commands used to build an old-style archive.
  25090. +old_archive_cmds=$lt_old_archive_cmds
  25091. +
  25092. +# A language specific compiler.
  25093. +CC=$lt_compiler
  25094. +
  25095. +# Is the compiler the GNU compiler?
  25096. +with_gcc=$GCC
  25097. +
  25098. +# Compiler flag to turn off builtin functions.
  25099. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25100. +
  25101. +# How to pass a linker flag through the compiler.
  25102. +wl=$lt_lt_prog_compiler_wl
  25103. +
  25104. +# Additional compiler flags for building library objects.
  25105. +pic_flag=$lt_lt_prog_compiler_pic
  25106. +
  25107. +# Compiler flag to prevent dynamic linking.
  25108. +link_static_flag=$lt_lt_prog_compiler_static
  25109. +
  25110. +# Does compiler simultaneously support -c and -o options?
  25111. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25112. +
  25113. +# Whether or not to add -lc for building shared libraries.
  25114. +build_libtool_need_lc=$archive_cmds_need_lc
  25115. +
  25116. +# Whether or not to disallow shared libs when runtime libs are static.
  25117. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25118. +
  25119. +# Compiler flag to allow reflexive dlopens.
  25120. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25121. +
  25122. +# Compiler flag to generate shared objects directly from archives.
  25123. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25124. +
  25125. +# Whether the compiler copes with passing no objects directly.
  25126. +compiler_needs_object=$lt_compiler_needs_object
  25127. +
  25128. +# Create an old-style archive from a shared archive.
  25129. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25130. +
  25131. +# Create a temporary old-style archive to link instead of a shared archive.
  25132. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25133. +
  25134. +# Commands used to build a shared archive.
  25135. +archive_cmds=$lt_archive_cmds
  25136. +archive_expsym_cmds=$lt_archive_expsym_cmds
  25137. +
  25138. +# Commands used to build a loadable module if different from building
  25139. +# a shared archive.
  25140. +module_cmds=$lt_module_cmds
  25141. +module_expsym_cmds=$lt_module_expsym_cmds
  25142. +
  25143. +# Whether we are building with GNU ld or not.
  25144. +with_gnu_ld=$lt_with_gnu_ld
  25145. +
  25146. +# Flag that allows shared libraries with undefined symbols to be built.
  25147. +allow_undefined_flag=$lt_allow_undefined_flag
  25148. +
  25149. +# Flag that enforces no undefined symbols.
  25150. +no_undefined_flag=$lt_no_undefined_flag
  25151. +
  25152. +# Flag to hardcode \$libdir into a binary during linking.
  25153. +# This must work even if \$libdir does not exist
  25154. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25155. +
  25156. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  25157. +# during linking. This must work even if \$libdir does not exist.
  25158. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  25159. +
  25160. +# Whether we need a single "-rpath" flag with a separated argument.
  25161. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25162. +
  25163. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25164. +# DIR into the resulting binary.
  25165. +hardcode_direct=$hardcode_direct
  25166. +
  25167. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25168. +# DIR into the resulting binary and the resulting library dependency is
  25169. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  25170. +# library is relocated.
  25171. +hardcode_direct_absolute=$hardcode_direct_absolute
  25172. +
  25173. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25174. +# into the resulting binary.
  25175. +hardcode_minus_L=$hardcode_minus_L
  25176. +
  25177. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25178. +# into the resulting binary.
  25179. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  25180. +
  25181. +# Set to "yes" if building a shared library automatically hardcodes DIR
  25182. +# into the library and all subsequent libraries and executables linked
  25183. +# against it.
  25184. +hardcode_automatic=$hardcode_automatic
  25185. +
  25186. +# Set to yes if linker adds runtime paths of dependent libraries
  25187. +# to runtime path list.
  25188. +inherit_rpath=$inherit_rpath
  25189. +
  25190. +# Whether libtool must link a program against all its dependency libraries.
  25191. +link_all_deplibs=$link_all_deplibs
  25192. +
  25193. +# Fix the shell variable \$srcfile for the compiler.
  25194. +fix_srcfile_path=$lt_fix_srcfile_path
  25195. +
  25196. +# Set to "yes" if exported symbols are required.
  25197. +always_export_symbols=$always_export_symbols
  25198. +
  25199. +# The commands to list exported symbols.
  25200. +export_symbols_cmds=$lt_export_symbols_cmds
  25201. +
  25202. +# Symbols that should not be listed in the preloaded symbols.
  25203. +exclude_expsyms=$lt_exclude_expsyms
  25204. +
  25205. +# Symbols that must always be exported.
  25206. +include_expsyms=$lt_include_expsyms
  25207. +
  25208. +# Commands necessary for linking programs (against libraries) with templates.
  25209. +prelink_cmds=$lt_prelink_cmds
  25210. +
  25211. +# Specify filename containing input files.
  25212. +file_list_spec=$lt_file_list_spec
  25213. +
  25214. +# How to hardcode a shared library path into an executable.
  25215. +hardcode_action=$hardcode_action
  25216. +
  25217. +# ### END LIBTOOL CONFIG
  25218. +
  25219. +_LT_EOF
  25220. +
  25221. + case $host_os in
  25222. + aix3*)
  25223. + cat <<\_LT_EOF >> "$cfgfile"
  25224. +# AIX sometimes has problems with the GCC collect2 program. For some
  25225. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  25226. +# vanish in a puff of smoke.
  25227. +if test "X${COLLECT_NAMES+set}" != Xset; then
  25228. + COLLECT_NAMES=
  25229. + export COLLECT_NAMES
  25230. +fi
  25231. +_LT_EOF
  25232. + ;;
  25233. + esac
  25234. +
  25235. +
  25236. +ltmain="$ac_aux_dir/ltmain.sh"
  25237. +
  25238. +
  25239. + # We use sed instead of cat because bash on DJGPP gets confused if
  25240. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25241. + # text mode, it properly converts lines to CR/LF. This bash problem
  25242. + # is reportedly fixed, but why not run on old versions too?
  25243. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  25244. + || (rm -f "$cfgfile"; exit 1)
  25245. +
  25246. + case $xsi_shell in
  25247. + yes)
  25248. + cat << \_LT_EOF >> "$cfgfile"
  25249. +
  25250. +# func_dirname file append nondir_replacement
  25251. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  25252. +# otherwise set result to NONDIR_REPLACEMENT.
  25253. +func_dirname ()
  25254. +{
  25255. + case ${1} in
  25256. + */*) func_dirname_result="${1%/*}${2}" ;;
  25257. + * ) func_dirname_result="${3}" ;;
  25258. + esac
  25259. +}
  25260. +
  25261. +# func_basename file
  25262. +func_basename ()
  25263. +{
  25264. + func_basename_result="${1##*/}"
  25265. +}
  25266. +
  25267. +# func_dirname_and_basename file append nondir_replacement
  25268. +# perform func_basename and func_dirname in a single function
  25269. +# call:
  25270. +# dirname: Compute the dirname of FILE. If nonempty,
  25271. +# add APPEND to the result, otherwise set result
  25272. +# to NONDIR_REPLACEMENT.
  25273. +# value returned in "$func_dirname_result"
  25274. +# basename: Compute filename of FILE.
  25275. +# value retuned in "$func_basename_result"
  25276. +# Implementation must be kept synchronized with func_dirname
  25277. +# and func_basename. For efficiency, we do not delegate to
  25278. +# those functions but instead duplicate the functionality here.
  25279. +func_dirname_and_basename ()
  25280. +{
  25281. + case ${1} in
  25282. + */*) func_dirname_result="${1%/*}${2}" ;;
  25283. + * ) func_dirname_result="${3}" ;;
  25284. + esac
  25285. + func_basename_result="${1##*/}"
  25286. +}
  25287. +
  25288. +# func_stripname prefix suffix name
  25289. +# strip PREFIX and SUFFIX off of NAME.
  25290. +# PREFIX and SUFFIX must not contain globbing or regex special
  25291. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  25292. +# dot (in which case that matches only a dot).
  25293. +func_stripname ()
  25294. +{
  25295. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  25296. + # positional parameters, so assign one to ordinary parameter first.
  25297. + func_stripname_result=${3}
  25298. + func_stripname_result=${func_stripname_result#"${1}"}
  25299. + func_stripname_result=${func_stripname_result%"${2}"}
  25300. +}
  25301. +
  25302. +# func_opt_split
  25303. +func_opt_split ()
  25304. +{
  25305. + func_opt_split_opt=${1%%=*}
  25306. + func_opt_split_arg=${1#*=}
  25307. +}
  25308. +
  25309. +# func_lo2o object
  25310. +func_lo2o ()
  25311. +{
  25312. + case ${1} in
  25313. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  25314. + *) func_lo2o_result=${1} ;;
  25315. + esac
  25316. +}
  25317. +
  25318. +# func_xform libobj-or-source
  25319. +func_xform ()
  25320. +{
  25321. + func_xform_result=${1%.*}.lo
  25322. +}
  25323. +
  25324. +# func_arith arithmetic-term...
  25325. +func_arith ()
  25326. +{
  25327. + func_arith_result=$(( $* ))
  25328. +}
  25329. +
  25330. +# func_len string
  25331. +# STRING may not start with a hyphen.
  25332. +func_len ()
  25333. +{
  25334. + func_len_result=${#1}
  25335. +}
  25336. +
  25337. +_LT_EOF
  25338. + ;;
  25339. + *) # Bourne compatible functions.
  25340. + cat << \_LT_EOF >> "$cfgfile"
  25341. +
  25342. +# func_dirname file append nondir_replacement
  25343. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  25344. +# otherwise set result to NONDIR_REPLACEMENT.
  25345. +func_dirname ()
  25346. +{
  25347. + # Extract subdirectory from the argument.
  25348. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  25349. + if test "X$func_dirname_result" = "X${1}"; then
  25350. + func_dirname_result="${3}"
  25351. + else
  25352. + func_dirname_result="$func_dirname_result${2}"
  25353. + fi
  25354. +}
  25355. +
  25356. +# func_basename file
  25357. +func_basename ()
  25358. +{
  25359. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  25360. +}
  25361. +
  25362. +
  25363. +# func_stripname prefix suffix name
  25364. +# strip PREFIX and SUFFIX off of NAME.
  25365. +# PREFIX and SUFFIX must not contain globbing or regex special
  25366. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  25367. +# dot (in which case that matches only a dot).
  25368. +# func_strip_suffix prefix name
  25369. +func_stripname ()
  25370. +{
  25371. + case ${2} in
  25372. + .*) func_stripname_result=`$ECHO "X${3}" \
  25373. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  25374. + *) func_stripname_result=`$ECHO "X${3}" \
  25375. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  25376. + esac
  25377. +}
  25378. +
  25379. +# sed scripts:
  25380. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  25381. +my_sed_long_arg='1s/^-[^=]*=//'
  25382. +
  25383. +# func_opt_split
  25384. +func_opt_split ()
  25385. +{
  25386. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  25387. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  25388. +}
  25389. +
  25390. +# func_lo2o object
  25391. +func_lo2o ()
  25392. +{
  25393. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  25394. +}
  25395. +
  25396. +# func_xform libobj-or-source
  25397. +func_xform ()
  25398. +{
  25399. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  25400. +}
  25401. +
  25402. +# func_arith arithmetic-term...
  25403. +func_arith ()
  25404. +{
  25405. + func_arith_result=`expr "$@"`
  25406. +}
  25407. +
  25408. +# func_len string
  25409. +# STRING may not start with a hyphen.
  25410. +func_len ()
  25411. +{
  25412. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  25413. +}
  25414. +
  25415. +_LT_EOF
  25416. +esac
  25417. +
  25418. +case $lt_shell_append in
  25419. + yes)
  25420. + cat << \_LT_EOF >> "$cfgfile"
  25421. +
  25422. +# func_append var value
  25423. +# Append VALUE to the end of shell variable VAR.
  25424. +func_append ()
  25425. +{
  25426. + eval "$1+=\$2"
  25427. +}
  25428. +_LT_EOF
  25429. + ;;
  25430. + *)
  25431. + cat << \_LT_EOF >> "$cfgfile"
  25432. +
  25433. +# func_append var value
  25434. +# Append VALUE to the end of shell variable VAR.
  25435. +func_append ()
  25436. +{
  25437. + eval "$1=\$$1\$2"
  25438. +}
  25439. +
  25440. +_LT_EOF
  25441. + ;;
  25442. + esac
  25443. +
  25444. +
  25445. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  25446. + || (rm -f "$cfgfile"; exit 1)
  25447. +
  25448. + mv -f "$cfgfile" "$ofile" ||
  25449. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25450. + chmod +x "$ofile"
  25451. +
  25452. + ;;
  25453. +
  25454. + esac
  25455. +done # for ac_tag
  25456. +
  25457. +
  25458. +as_fn_exit 0
  25459. +_ACEOF
  25460. +ac_clean_files=$ac_clean_files_save
  25461. +
  25462. +test $ac_write_fail = 0 ||
  25463. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25464. +
  25465. +
  25466. +# configure is writing to config.log, and then calls config.status.
  25467. +# config.status does its own redirection, appending to config.log.
  25468. +# Unfortunately, on DOS this fails, as config.log is still kept open
  25469. +# by configure, so config.status won't be able to write to it; its
  25470. +# output is simply discarded. So we exec the FD to /dev/null,
  25471. +# effectively closing config.log, so it can be properly (re)opened and
  25472. +# appended to by config.status. When coming back to configure, we
  25473. +# need to make the FD available again.
  25474. +if test "$no_create" != yes; then
  25475. + ac_cs_success=:
  25476. + ac_config_status_args=
  25477. + test "$silent" = yes &&
  25478. + ac_config_status_args="$ac_config_status_args --quiet"
  25479. + exec 5>/dev/null
  25480. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25481. + exec 5>>config.log
  25482. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25483. + # would make configure fail if this is the last instruction.
  25484. + $ac_cs_success || as_fn_exit $?
  25485. +fi
  25486. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25487. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25488. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25489. +fi
  25490. +
  25491. diff -Nur libvorbisidec-1.0.2+svn15687.orig/configure.in libvorbisidec-1.0.2+svn15687/configure.in
  25492. --- libvorbisidec-1.0.2+svn15687.orig/configure.in 2007-07-24 00:35:47.000000000 +0200
  25493. +++ libvorbisidec-1.0.2+svn15687/configure.in 2010-02-18 19:56:09.644854925 +0100
  25494. @@ -59,12 +59,12 @@
  25495. case $host in
  25496. arm-*-*)
  25497. DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -D_ARM_ASSEM_"
  25498. - CFLAGS="-O2 -D_ARM_ASSEM_ -fsigned-char"
  25499. + CFLAGS="-D_ARM_ASSEM_ -fsigned-char"
  25500. PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char -fno-inline-functions";;
  25501. *)
  25502. DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
  25503. - CFLAGS="-O2 -Wall -fsigned-char"
  25504. + CFLAGS="-fsigned-char"
  25505. PROFILE="-Wall -pg -g -O2 -fsigned-char -fno-inline-functions";;
  25506. esac
  25507. fi
  25508. diff -Nur libvorbisidec-1.0.2+svn15687.orig/depcomp libvorbisidec-1.0.2+svn15687/depcomp
  25509. --- libvorbisidec-1.0.2+svn15687.orig/depcomp 1970-01-01 01:00:00.000000000 +0100
  25510. +++ libvorbisidec-1.0.2+svn15687/depcomp 2010-02-18 19:38:59.564855910 +0100
  25511. @@ -0,0 +1,630 @@
  25512. +#! /bin/sh
  25513. +# depcomp - compile a program generating dependencies as side-effects
  25514. +
  25515. +scriptversion=2009-04-28.21; # UTC
  25516. +
  25517. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  25518. +# Software Foundation, Inc.
  25519. +
  25520. +# This program is free software; you can redistribute it and/or modify
  25521. +# it under the terms of the GNU General Public License as published by
  25522. +# the Free Software Foundation; either version 2, or (at your option)
  25523. +# any later version.
  25524. +
  25525. +# This program is distributed in the hope that it will be useful,
  25526. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  25527. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25528. +# GNU General Public License for more details.
  25529. +
  25530. +# You should have received a copy of the GNU General Public License
  25531. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  25532. +
  25533. +# As a special exception to the GNU General Public License, if you
  25534. +# distribute this file as part of a program that contains a
  25535. +# configuration script generated by Autoconf, you may include it under
  25536. +# the same distribution terms that you use for the rest of that program.
  25537. +
  25538. +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  25539. +
  25540. +case $1 in
  25541. + '')
  25542. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  25543. + exit 1;
  25544. + ;;
  25545. + -h | --h*)
  25546. + cat <<\EOF
  25547. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  25548. +
  25549. +Run PROGRAMS ARGS to compile a file, generating dependencies
  25550. +as side-effects.
  25551. +
  25552. +Environment variables:
  25553. + depmode Dependency tracking mode.
  25554. + source Source file read by `PROGRAMS ARGS'.
  25555. + object Object file output by `PROGRAMS ARGS'.
  25556. + DEPDIR directory where to store dependencies.
  25557. + depfile Dependency file to output.
  25558. + tmpdepfile Temporary file to use when outputing dependencies.
  25559. + libtool Whether libtool is used (yes/no).
  25560. +
  25561. +Report bugs to <bug-automake@gnu.org>.
  25562. +EOF
  25563. + exit $?
  25564. + ;;
  25565. + -v | --v*)
  25566. + echo "depcomp $scriptversion"
  25567. + exit $?
  25568. + ;;
  25569. +esac
  25570. +
  25571. +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  25572. + echo "depcomp: Variables source, object and depmode must be set" 1>&2
  25573. + exit 1
  25574. +fi
  25575. +
  25576. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  25577. +depfile=${depfile-`echo "$object" |
  25578. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  25579. +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  25580. +
  25581. +rm -f "$tmpdepfile"
  25582. +
  25583. +# Some modes work just like other modes, but use different flags. We
  25584. +# parameterize here, but still list the modes in the big case below,
  25585. +# to make depend.m4 easier to write. Note that we *cannot* use a case
  25586. +# here, because this file can only contain one case statement.
  25587. +if test "$depmode" = hp; then
  25588. + # HP compiler uses -M and no extra arg.
  25589. + gccflag=-M
  25590. + depmode=gcc
  25591. +fi
  25592. +
  25593. +if test "$depmode" = dashXmstdout; then
  25594. + # This is just like dashmstdout with a different argument.
  25595. + dashmflag=-xM
  25596. + depmode=dashmstdout
  25597. +fi
  25598. +
  25599. +cygpath_u="cygpath -u -f -"
  25600. +if test "$depmode" = msvcmsys; then
  25601. + # This is just like msvisualcpp but w/o cygpath translation.
  25602. + # Just convert the backslash-escaped backslashes to single forward
  25603. + # slashes to satisfy depend.m4
  25604. + cygpath_u="sed s,\\\\\\\\,/,g"
  25605. + depmode=msvisualcpp
  25606. +fi
  25607. +
  25608. +case "$depmode" in
  25609. +gcc3)
  25610. +## gcc 3 implements dependency tracking that does exactly what
  25611. +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  25612. +## it if -MD -MP comes after the -MF stuff. Hmm.
  25613. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  25614. +## the command line argument order; so add the flags where they
  25615. +## appear in depend2.am. Note that the slowdown incurred here
  25616. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  25617. + for arg
  25618. + do
  25619. + case $arg in
  25620. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  25621. + *) set fnord "$@" "$arg" ;;
  25622. + esac
  25623. + shift # fnord
  25624. + shift # $arg
  25625. + done
  25626. + "$@"
  25627. + stat=$?
  25628. + if test $stat -eq 0; then :
  25629. + else
  25630. + rm -f "$tmpdepfile"
  25631. + exit $stat
  25632. + fi
  25633. + mv "$tmpdepfile" "$depfile"
  25634. + ;;
  25635. +
  25636. +gcc)
  25637. +## There are various ways to get dependency output from gcc. Here's
  25638. +## why we pick this rather obscure method:
  25639. +## - Don't want to use -MD because we'd like the dependencies to end
  25640. +## up in a subdir. Having to rename by hand is ugly.
  25641. +## (We might end up doing this anyway to support other compilers.)
  25642. +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
  25643. +## -MM, not -M (despite what the docs say).
  25644. +## - Using -M directly means running the compiler twice (even worse
  25645. +## than renaming).
  25646. + if test -z "$gccflag"; then
  25647. + gccflag=-MD,
  25648. + fi
  25649. + "$@" -Wp,"$gccflag$tmpdepfile"
  25650. + stat=$?
  25651. + if test $stat -eq 0; then :
  25652. + else
  25653. + rm -f "$tmpdepfile"
  25654. + exit $stat
  25655. + fi
  25656. + rm -f "$depfile"
  25657. + echo "$object : \\" > "$depfile"
  25658. + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  25659. +## The second -e expression handles DOS-style file names with drive letters.
  25660. + sed -e 's/^[^:]*: / /' \
  25661. + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  25662. +## This next piece of magic avoids the `deleted header file' problem.
  25663. +## The problem is that when a header file which appears in a .P file
  25664. +## is deleted, the dependency causes make to die (because there is
  25665. +## typically no way to rebuild the header). We avoid this by adding
  25666. +## dummy dependencies for each header file. Too bad gcc doesn't do
  25667. +## this for us directly.
  25668. + tr ' ' '
  25669. +' < "$tmpdepfile" |
  25670. +## Some versions of gcc put a space before the `:'. On the theory
  25671. +## that the space means something, we add a space to the output as
  25672. +## well.
  25673. +## Some versions of the HPUX 10.20 sed can't process this invocation
  25674. +## correctly. Breaking it into two sed invocations is a workaround.
  25675. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  25676. + rm -f "$tmpdepfile"
  25677. + ;;
  25678. +
  25679. +hp)
  25680. + # This case exists only to let depend.m4 do its work. It works by
  25681. + # looking at the text of this script. This case will never be run,
  25682. + # since it is checked for above.
  25683. + exit 1
  25684. + ;;
  25685. +
  25686. +sgi)
  25687. + if test "$libtool" = yes; then
  25688. + "$@" "-Wp,-MDupdate,$tmpdepfile"
  25689. + else
  25690. + "$@" -MDupdate "$tmpdepfile"
  25691. + fi
  25692. + stat=$?
  25693. + if test $stat -eq 0; then :
  25694. + else
  25695. + rm -f "$tmpdepfile"
  25696. + exit $stat
  25697. + fi
  25698. + rm -f "$depfile"
  25699. +
  25700. + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
  25701. + echo "$object : \\" > "$depfile"
  25702. +
  25703. + # Clip off the initial element (the dependent). Don't try to be
  25704. + # clever and replace this with sed code, as IRIX sed won't handle
  25705. + # lines with more than a fixed number of characters (4096 in
  25706. + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
  25707. + # the IRIX cc adds comments like `#:fec' to the end of the
  25708. + # dependency line.
  25709. + tr ' ' '
  25710. +' < "$tmpdepfile" \
  25711. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  25712. + tr '
  25713. +' ' ' >> "$depfile"
  25714. + echo >> "$depfile"
  25715. +
  25716. + # The second pass generates a dummy entry for each header file.
  25717. + tr ' ' '
  25718. +' < "$tmpdepfile" \
  25719. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  25720. + >> "$depfile"
  25721. + else
  25722. + # The sourcefile does not contain any dependencies, so just
  25723. + # store a dummy comment line, to avoid errors with the Makefile
  25724. + # "include basename.Plo" scheme.
  25725. + echo "#dummy" > "$depfile"
  25726. + fi
  25727. + rm -f "$tmpdepfile"
  25728. + ;;
  25729. +
  25730. +aix)
  25731. + # The C for AIX Compiler uses -M and outputs the dependencies
  25732. + # in a .u file. In older versions, this file always lives in the
  25733. + # current directory. Also, the AIX compiler puts `$object:' at the
  25734. + # start of each line; $object doesn't have directory information.
  25735. + # Version 6 uses the directory in both cases.
  25736. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  25737. + test "x$dir" = "x$object" && dir=
  25738. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  25739. + if test "$libtool" = yes; then
  25740. + tmpdepfile1=$dir$base.u
  25741. + tmpdepfile2=$base.u
  25742. + tmpdepfile3=$dir.libs/$base.u
  25743. + "$@" -Wc,-M
  25744. + else
  25745. + tmpdepfile1=$dir$base.u
  25746. + tmpdepfile2=$dir$base.u
  25747. + tmpdepfile3=$dir$base.u
  25748. + "$@" -M
  25749. + fi
  25750. + stat=$?
  25751. +
  25752. + if test $stat -eq 0; then :
  25753. + else
  25754. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  25755. + exit $stat
  25756. + fi
  25757. +
  25758. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  25759. + do
  25760. + test -f "$tmpdepfile" && break
  25761. + done
  25762. + if test -f "$tmpdepfile"; then
  25763. + # Each line is of the form `foo.o: dependent.h'.
  25764. + # Do two passes, one to just change these to
  25765. + # `$object: dependent.h' and one to simply `dependent.h:'.
  25766. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  25767. + # That's a tab and a space in the [].
  25768. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  25769. + else
  25770. + # The sourcefile does not contain any dependencies, so just
  25771. + # store a dummy comment line, to avoid errors with the Makefile
  25772. + # "include basename.Plo" scheme.
  25773. + echo "#dummy" > "$depfile"
  25774. + fi
  25775. + rm -f "$tmpdepfile"
  25776. + ;;
  25777. +
  25778. +icc)
  25779. + # Intel's C compiler understands `-MD -MF file'. However on
  25780. + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  25781. + # ICC 7.0 will fill foo.d with something like
  25782. + # foo.o: sub/foo.c
  25783. + # foo.o: sub/foo.h
  25784. + # which is wrong. We want:
  25785. + # sub/foo.o: sub/foo.c
  25786. + # sub/foo.o: sub/foo.h
  25787. + # sub/foo.c:
  25788. + # sub/foo.h:
  25789. + # ICC 7.1 will output
  25790. + # foo.o: sub/foo.c sub/foo.h
  25791. + # and will wrap long lines using \ :
  25792. + # foo.o: sub/foo.c ... \
  25793. + # sub/foo.h ... \
  25794. + # ...
  25795. +
  25796. + "$@" -MD -MF "$tmpdepfile"
  25797. + stat=$?
  25798. + if test $stat -eq 0; then :
  25799. + else
  25800. + rm -f "$tmpdepfile"
  25801. + exit $stat
  25802. + fi
  25803. + rm -f "$depfile"
  25804. + # Each line is of the form `foo.o: dependent.h',
  25805. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  25806. + # Do two passes, one to just change these to
  25807. + # `$object: dependent.h' and one to simply `dependent.h:'.
  25808. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  25809. + # Some versions of the HPUX 10.20 sed can't process this invocation
  25810. + # correctly. Breaking it into two sed invocations is a workaround.
  25811. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  25812. + sed -e 's/$/ :/' >> "$depfile"
  25813. + rm -f "$tmpdepfile"
  25814. + ;;
  25815. +
  25816. +hp2)
  25817. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  25818. + # compilers, which have integrated preprocessors. The correct option
  25819. + # to use with these is +Maked; it writes dependencies to a file named
  25820. + # 'foo.d', which lands next to the object file, wherever that
  25821. + # happens to be.
  25822. + # Much of this is similar to the tru64 case; see comments there.
  25823. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  25824. + test "x$dir" = "x$object" && dir=
  25825. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  25826. + if test "$libtool" = yes; then
  25827. + tmpdepfile1=$dir$base.d
  25828. + tmpdepfile2=$dir.libs/$base.d
  25829. + "$@" -Wc,+Maked
  25830. + else
  25831. + tmpdepfile1=$dir$base.d
  25832. + tmpdepfile2=$dir$base.d
  25833. + "$@" +Maked
  25834. + fi
  25835. + stat=$?
  25836. + if test $stat -eq 0; then :
  25837. + else
  25838. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  25839. + exit $stat
  25840. + fi
  25841. +
  25842. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  25843. + do
  25844. + test -f "$tmpdepfile" && break
  25845. + done
  25846. + if test -f "$tmpdepfile"; then
  25847. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  25848. + # Add `dependent.h:' lines.
  25849. + sed -ne '2,${
  25850. + s/^ *//
  25851. + s/ \\*$//
  25852. + s/$/:/
  25853. + p
  25854. + }' "$tmpdepfile" >> "$depfile"
  25855. + else
  25856. + echo "#dummy" > "$depfile"
  25857. + fi
  25858. + rm -f "$tmpdepfile" "$tmpdepfile2"
  25859. + ;;
  25860. +
  25861. +tru64)
  25862. + # The Tru64 compiler uses -MD to generate dependencies as a side
  25863. + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  25864. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
  25865. + # dependencies in `foo.d' instead, so we check for that too.
  25866. + # Subdirectories are respected.
  25867. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  25868. + test "x$dir" = "x$object" && dir=
  25869. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  25870. +
  25871. + if test "$libtool" = yes; then
  25872. + # With Tru64 cc, shared objects can also be used to make a
  25873. + # static library. This mechanism is used in libtool 1.4 series to
  25874. + # handle both shared and static libraries in a single compilation.
  25875. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  25876. + #
  25877. + # With libtool 1.5 this exception was removed, and libtool now
  25878. + # generates 2 separate objects for the 2 libraries. These two
  25879. + # compilations output dependencies in $dir.libs/$base.o.d and
  25880. + # in $dir$base.o.d. We have to check for both files, because
  25881. + # one of the two compilations can be disabled. We should prefer
  25882. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  25883. + # automatically cleaned when .libs/ is deleted, while ignoring
  25884. + # the former would cause a distcleancheck panic.
  25885. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  25886. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  25887. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  25888. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  25889. + "$@" -Wc,-MD
  25890. + else
  25891. + tmpdepfile1=$dir$base.o.d
  25892. + tmpdepfile2=$dir$base.d
  25893. + tmpdepfile3=$dir$base.d
  25894. + tmpdepfile4=$dir$base.d
  25895. + "$@" -MD
  25896. + fi
  25897. +
  25898. + stat=$?
  25899. + if test $stat -eq 0; then :
  25900. + else
  25901. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  25902. + exit $stat
  25903. + fi
  25904. +
  25905. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  25906. + do
  25907. + test -f "$tmpdepfile" && break
  25908. + done
  25909. + if test -f "$tmpdepfile"; then
  25910. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  25911. + # That's a tab and a space in the [].
  25912. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  25913. + else
  25914. + echo "#dummy" > "$depfile"
  25915. + fi
  25916. + rm -f "$tmpdepfile"
  25917. + ;;
  25918. +
  25919. +#nosideeffect)
  25920. + # This comment above is used by automake to tell side-effect
  25921. + # dependency tracking mechanisms from slower ones.
  25922. +
  25923. +dashmstdout)
  25924. + # Important note: in order to support this mode, a compiler *must*
  25925. + # always write the preprocessed file to stdout, regardless of -o.
  25926. + "$@" || exit $?
  25927. +
  25928. + # Remove the call to Libtool.
  25929. + if test "$libtool" = yes; then
  25930. + while test "X$1" != 'X--mode=compile'; do
  25931. + shift
  25932. + done
  25933. + shift
  25934. + fi
  25935. +
  25936. + # Remove `-o $object'.
  25937. + IFS=" "
  25938. + for arg
  25939. + do
  25940. + case $arg in
  25941. + -o)
  25942. + shift
  25943. + ;;
  25944. + $object)
  25945. + shift
  25946. + ;;
  25947. + *)
  25948. + set fnord "$@" "$arg"
  25949. + shift # fnord
  25950. + shift # $arg
  25951. + ;;
  25952. + esac
  25953. + done
  25954. +
  25955. + test -z "$dashmflag" && dashmflag=-M
  25956. + # Require at least two characters before searching for `:'
  25957. + # in the target name. This is to cope with DOS-style filenames:
  25958. + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  25959. + "$@" $dashmflag |
  25960. + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  25961. + rm -f "$depfile"
  25962. + cat < "$tmpdepfile" > "$depfile"
  25963. + tr ' ' '
  25964. +' < "$tmpdepfile" | \
  25965. +## Some versions of the HPUX 10.20 sed can't process this invocation
  25966. +## correctly. Breaking it into two sed invocations is a workaround.
  25967. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  25968. + rm -f "$tmpdepfile"
  25969. + ;;
  25970. +
  25971. +dashXmstdout)
  25972. + # This case only exists to satisfy depend.m4. It is never actually
  25973. + # run, as this mode is specially recognized in the preamble.
  25974. + exit 1
  25975. + ;;
  25976. +
  25977. +makedepend)
  25978. + "$@" || exit $?
  25979. + # Remove any Libtool call
  25980. + if test "$libtool" = yes; then
  25981. + while test "X$1" != 'X--mode=compile'; do
  25982. + shift
  25983. + done
  25984. + shift
  25985. + fi
  25986. + # X makedepend
  25987. + shift
  25988. + cleared=no eat=no
  25989. + for arg
  25990. + do
  25991. + case $cleared in
  25992. + no)
  25993. + set ""; shift
  25994. + cleared=yes ;;
  25995. + esac
  25996. + if test $eat = yes; then
  25997. + eat=no
  25998. + continue
  25999. + fi
  26000. + case "$arg" in
  26001. + -D*|-I*)
  26002. + set fnord "$@" "$arg"; shift ;;
  26003. + # Strip any option that makedepend may not understand. Remove
  26004. + # the object too, otherwise makedepend will parse it as a source file.
  26005. + -arch)
  26006. + eat=yes ;;
  26007. + -*|$object)
  26008. + ;;
  26009. + *)
  26010. + set fnord "$@" "$arg"; shift ;;
  26011. + esac
  26012. + done
  26013. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  26014. + touch "$tmpdepfile"
  26015. + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  26016. + rm -f "$depfile"
  26017. + cat < "$tmpdepfile" > "$depfile"
  26018. + sed '1,2d' "$tmpdepfile" | tr ' ' '
  26019. +' | \
  26020. +## Some versions of the HPUX 10.20 sed can't process this invocation
  26021. +## correctly. Breaking it into two sed invocations is a workaround.
  26022. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  26023. + rm -f "$tmpdepfile" "$tmpdepfile".bak
  26024. + ;;
  26025. +
  26026. +cpp)
  26027. + # Important note: in order to support this mode, a compiler *must*
  26028. + # always write the preprocessed file to stdout.
  26029. + "$@" || exit $?
  26030. +
  26031. + # Remove the call to Libtool.
  26032. + if test "$libtool" = yes; then
  26033. + while test "X$1" != 'X--mode=compile'; do
  26034. + shift
  26035. + done
  26036. + shift
  26037. + fi
  26038. +
  26039. + # Remove `-o $object'.
  26040. + IFS=" "
  26041. + for arg
  26042. + do
  26043. + case $arg in
  26044. + -o)
  26045. + shift
  26046. + ;;
  26047. + $object)
  26048. + shift
  26049. + ;;
  26050. + *)
  26051. + set fnord "$@" "$arg"
  26052. + shift # fnord
  26053. + shift # $arg
  26054. + ;;
  26055. + esac
  26056. + done
  26057. +
  26058. + "$@" -E |
  26059. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  26060. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  26061. + sed '$ s: \\$::' > "$tmpdepfile"
  26062. + rm -f "$depfile"
  26063. + echo "$object : \\" > "$depfile"
  26064. + cat < "$tmpdepfile" >> "$depfile"
  26065. + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  26066. + rm -f "$tmpdepfile"
  26067. + ;;
  26068. +
  26069. +msvisualcpp)
  26070. + # Important note: in order to support this mode, a compiler *must*
  26071. + # always write the preprocessed file to stdout.
  26072. + "$@" || exit $?
  26073. +
  26074. + # Remove the call to Libtool.
  26075. + if test "$libtool" = yes; then
  26076. + while test "X$1" != 'X--mode=compile'; do
  26077. + shift
  26078. + done
  26079. + shift
  26080. + fi
  26081. +
  26082. + IFS=" "
  26083. + for arg
  26084. + do
  26085. + case "$arg" in
  26086. + -o)
  26087. + shift
  26088. + ;;
  26089. + $object)
  26090. + shift
  26091. + ;;
  26092. + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  26093. + set fnord "$@"
  26094. + shift
  26095. + shift
  26096. + ;;
  26097. + *)
  26098. + set fnord "$@" "$arg"
  26099. + shift
  26100. + shift
  26101. + ;;
  26102. + esac
  26103. + done
  26104. + "$@" -E 2>/dev/null |
  26105. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  26106. + rm -f "$depfile"
  26107. + echo "$object : \\" > "$depfile"
  26108. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  26109. + echo " " >> "$depfile"
  26110. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  26111. + rm -f "$tmpdepfile"
  26112. + ;;
  26113. +
  26114. +msvcmsys)
  26115. + # This case exists only to let depend.m4 do its work. It works by
  26116. + # looking at the text of this script. This case will never be run,
  26117. + # since it is checked for above.
  26118. + exit 1
  26119. + ;;
  26120. +
  26121. +none)
  26122. + exec "$@"
  26123. + ;;
  26124. +
  26125. +*)
  26126. + echo "Unknown depmode $depmode" 1>&2
  26127. + exit 1
  26128. + ;;
  26129. +esac
  26130. +
  26131. +exit 0
  26132. +
  26133. +# Local Variables:
  26134. +# mode: shell-script
  26135. +# sh-indentation: 2
  26136. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  26137. +# time-stamp-start: "scriptversion="
  26138. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  26139. +# time-stamp-time-zone: "UTC"
  26140. +# time-stamp-end: "; # UTC"
  26141. +# End:
  26142. diff -Nur libvorbisidec-1.0.2+svn15687.orig/install-sh libvorbisidec-1.0.2+svn15687/install-sh
  26143. --- libvorbisidec-1.0.2+svn15687.orig/install-sh 1970-01-01 01:00:00.000000000 +0100
  26144. +++ libvorbisidec-1.0.2+svn15687/install-sh 2010-02-18 19:38:52.280856035 +0100
  26145. @@ -0,0 +1,520 @@
  26146. +#!/bin/sh
  26147. +# install - install a program, script, or datafile
  26148. +
  26149. +scriptversion=2009-04-28.21; # UTC
  26150. +
  26151. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  26152. +# later released in X11R6 (xc/config/util/install.sh) with the
  26153. +# following copyright and license.
  26154. +#
  26155. +# Copyright (C) 1994 X Consortium
  26156. +#
  26157. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  26158. +# of this software and associated documentation files (the "Software"), to
  26159. +# deal in the Software without restriction, including without limitation the
  26160. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  26161. +# sell copies of the Software, and to permit persons to whom the Software is
  26162. +# furnished to do so, subject to the following conditions:
  26163. +#
  26164. +# The above copyright notice and this permission notice shall be included in
  26165. +# all copies or substantial portions of the Software.
  26166. +#
  26167. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  26168. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  26169. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  26170. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  26171. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  26172. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26173. +#
  26174. +# Except as contained in this notice, the name of the X Consortium shall not
  26175. +# be used in advertising or otherwise to promote the sale, use or other deal-
  26176. +# ings in this Software without prior written authorization from the X Consor-
  26177. +# tium.
  26178. +#
  26179. +#
  26180. +# FSF changes to this file are in the public domain.
  26181. +#
  26182. +# Calling this script install-sh is preferred over install.sh, to prevent
  26183. +# `make' implicit rules from creating a file called install from it
  26184. +# when there is no Makefile.
  26185. +#
  26186. +# This script is compatible with the BSD install script, but was written
  26187. +# from scratch.
  26188. +
  26189. +nl='
  26190. +'
  26191. +IFS=" "" $nl"
  26192. +
  26193. +# set DOITPROG to echo to test this script
  26194. +
  26195. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  26196. +doit=${DOITPROG-}
  26197. +if test -z "$doit"; then
  26198. + doit_exec=exec
  26199. +else
  26200. + doit_exec=$doit
  26201. +fi
  26202. +
  26203. +# Put in absolute file names if you don't have them in your path;
  26204. +# or use environment vars.
  26205. +
  26206. +chgrpprog=${CHGRPPROG-chgrp}
  26207. +chmodprog=${CHMODPROG-chmod}
  26208. +chownprog=${CHOWNPROG-chown}
  26209. +cmpprog=${CMPPROG-cmp}
  26210. +cpprog=${CPPROG-cp}
  26211. +mkdirprog=${MKDIRPROG-mkdir}
  26212. +mvprog=${MVPROG-mv}
  26213. +rmprog=${RMPROG-rm}
  26214. +stripprog=${STRIPPROG-strip}
  26215. +
  26216. +posix_glob='?'
  26217. +initialize_posix_glob='
  26218. + test "$posix_glob" != "?" || {
  26219. + if (set -f) 2>/dev/null; then
  26220. + posix_glob=
  26221. + else
  26222. + posix_glob=:
  26223. + fi
  26224. + }
  26225. +'
  26226. +
  26227. +posix_mkdir=
  26228. +
  26229. +# Desired mode of installed file.
  26230. +mode=0755
  26231. +
  26232. +chgrpcmd=
  26233. +chmodcmd=$chmodprog
  26234. +chowncmd=
  26235. +mvcmd=$mvprog
  26236. +rmcmd="$rmprog -f"
  26237. +stripcmd=
  26238. +
  26239. +src=
  26240. +dst=
  26241. +dir_arg=
  26242. +dst_arg=
  26243. +
  26244. +copy_on_change=false
  26245. +no_target_directory=
  26246. +
  26247. +usage="\
  26248. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  26249. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  26250. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  26251. + or: $0 [OPTION]... -d DIRECTORIES...
  26252. +
  26253. +In the 1st form, copy SRCFILE to DSTFILE.
  26254. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  26255. +In the 4th, create DIRECTORIES.
  26256. +
  26257. +Options:
  26258. + --help display this help and exit.
  26259. + --version display version info and exit.
  26260. +
  26261. + -c (ignored)
  26262. + -C install only if different (preserve the last data modification time)
  26263. + -d create directories instead of installing files.
  26264. + -g GROUP $chgrpprog installed files to GROUP.
  26265. + -m MODE $chmodprog installed files to MODE.
  26266. + -o USER $chownprog installed files to USER.
  26267. + -s $stripprog installed files.
  26268. + -t DIRECTORY install into DIRECTORY.
  26269. + -T report an error if DSTFILE is a directory.
  26270. +
  26271. +Environment variables override the default commands:
  26272. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  26273. + RMPROG STRIPPROG
  26274. +"
  26275. +
  26276. +while test $# -ne 0; do
  26277. + case $1 in
  26278. + -c) ;;
  26279. +
  26280. + -C) copy_on_change=true;;
  26281. +
  26282. + -d) dir_arg=true;;
  26283. +
  26284. + -g) chgrpcmd="$chgrpprog $2"
  26285. + shift;;
  26286. +
  26287. + --help) echo "$usage"; exit $?;;
  26288. +
  26289. + -m) mode=$2
  26290. + case $mode in
  26291. + *' '* | *' '* | *'
  26292. +'* | *'*'* | *'?'* | *'['*)
  26293. + echo "$0: invalid mode: $mode" >&2
  26294. + exit 1;;
  26295. + esac
  26296. + shift;;
  26297. +
  26298. + -o) chowncmd="$chownprog $2"
  26299. + shift;;
  26300. +
  26301. + -s) stripcmd=$stripprog;;
  26302. +
  26303. + -t) dst_arg=$2
  26304. + shift;;
  26305. +
  26306. + -T) no_target_directory=true;;
  26307. +
  26308. + --version) echo "$0 $scriptversion"; exit $?;;
  26309. +
  26310. + --) shift
  26311. + break;;
  26312. +
  26313. + -*) echo "$0: invalid option: $1" >&2
  26314. + exit 1;;
  26315. +
  26316. + *) break;;
  26317. + esac
  26318. + shift
  26319. +done
  26320. +
  26321. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  26322. + # When -d is used, all remaining arguments are directories to create.
  26323. + # When -t is used, the destination is already specified.
  26324. + # Otherwise, the last argument is the destination. Remove it from $@.
  26325. + for arg
  26326. + do
  26327. + if test -n "$dst_arg"; then
  26328. + # $@ is not empty: it contains at least $arg.
  26329. + set fnord "$@" "$dst_arg"
  26330. + shift # fnord
  26331. + fi
  26332. + shift # arg
  26333. + dst_arg=$arg
  26334. + done
  26335. +fi
  26336. +
  26337. +if test $# -eq 0; then
  26338. + if test -z "$dir_arg"; then
  26339. + echo "$0: no input file specified." >&2
  26340. + exit 1
  26341. + fi
  26342. + # It's OK to call `install-sh -d' without argument.
  26343. + # This can happen when creating conditional directories.
  26344. + exit 0
  26345. +fi
  26346. +
  26347. +if test -z "$dir_arg"; then
  26348. + trap '(exit $?); exit' 1 2 13 15
  26349. +
  26350. + # Set umask so as not to create temps with too-generous modes.
  26351. + # However, 'strip' requires both read and write access to temps.
  26352. + case $mode in
  26353. + # Optimize common cases.
  26354. + *644) cp_umask=133;;
  26355. + *755) cp_umask=22;;
  26356. +
  26357. + *[0-7])
  26358. + if test -z "$stripcmd"; then
  26359. + u_plus_rw=
  26360. + else
  26361. + u_plus_rw='% 200'
  26362. + fi
  26363. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  26364. + *)
  26365. + if test -z "$stripcmd"; then
  26366. + u_plus_rw=
  26367. + else
  26368. + u_plus_rw=,u+rw
  26369. + fi
  26370. + cp_umask=$mode$u_plus_rw;;
  26371. + esac
  26372. +fi
  26373. +
  26374. +for src
  26375. +do
  26376. + # Protect names starting with `-'.
  26377. + case $src in
  26378. + -*) src=./$src;;
  26379. + esac
  26380. +
  26381. + if test -n "$dir_arg"; then
  26382. + dst=$src
  26383. + dstdir=$dst
  26384. + test -d "$dstdir"
  26385. + dstdir_status=$?
  26386. + else
  26387. +
  26388. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  26389. + # might cause directories to be created, which would be especially bad
  26390. + # if $src (and thus $dsttmp) contains '*'.
  26391. + if test ! -f "$src" && test ! -d "$src"; then
  26392. + echo "$0: $src does not exist." >&2
  26393. + exit 1
  26394. + fi
  26395. +
  26396. + if test -z "$dst_arg"; then
  26397. + echo "$0: no destination specified." >&2
  26398. + exit 1
  26399. + fi
  26400. +
  26401. + dst=$dst_arg
  26402. + # Protect names starting with `-'.
  26403. + case $dst in
  26404. + -*) dst=./$dst;;
  26405. + esac
  26406. +
  26407. + # If destination is a directory, append the input filename; won't work
  26408. + # if double slashes aren't ignored.
  26409. + if test -d "$dst"; then
  26410. + if test -n "$no_target_directory"; then
  26411. + echo "$0: $dst_arg: Is a directory" >&2
  26412. + exit 1
  26413. + fi
  26414. + dstdir=$dst
  26415. + dst=$dstdir/`basename "$src"`
  26416. + dstdir_status=0
  26417. + else
  26418. + # Prefer dirname, but fall back on a substitute if dirname fails.
  26419. + dstdir=`
  26420. + (dirname "$dst") 2>/dev/null ||
  26421. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26422. + X"$dst" : 'X\(//\)[^/]' \| \
  26423. + X"$dst" : 'X\(//\)$' \| \
  26424. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  26425. + echo X"$dst" |
  26426. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26427. + s//\1/
  26428. + q
  26429. + }
  26430. + /^X\(\/\/\)[^/].*/{
  26431. + s//\1/
  26432. + q
  26433. + }
  26434. + /^X\(\/\/\)$/{
  26435. + s//\1/
  26436. + q
  26437. + }
  26438. + /^X\(\/\).*/{
  26439. + s//\1/
  26440. + q
  26441. + }
  26442. + s/.*/./; q'
  26443. + `
  26444. +
  26445. + test -d "$dstdir"
  26446. + dstdir_status=$?
  26447. + fi
  26448. + fi
  26449. +
  26450. + obsolete_mkdir_used=false
  26451. +
  26452. + if test $dstdir_status != 0; then
  26453. + case $posix_mkdir in
  26454. + '')
  26455. + # Create intermediate dirs using mode 755 as modified by the umask.
  26456. + # This is like FreeBSD 'install' as of 1997-10-28.
  26457. + umask=`umask`
  26458. + case $stripcmd.$umask in
  26459. + # Optimize common cases.
  26460. + *[2367][2367]) mkdir_umask=$umask;;
  26461. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  26462. +
  26463. + *[0-7])
  26464. + mkdir_umask=`expr $umask + 22 \
  26465. + - $umask % 100 % 40 + $umask % 20 \
  26466. + - $umask % 10 % 4 + $umask % 2
  26467. + `;;
  26468. + *) mkdir_umask=$umask,go-w;;
  26469. + esac
  26470. +
  26471. + # With -d, create the new directory with the user-specified mode.
  26472. + # Otherwise, rely on $mkdir_umask.
  26473. + if test -n "$dir_arg"; then
  26474. + mkdir_mode=-m$mode
  26475. + else
  26476. + mkdir_mode=
  26477. + fi
  26478. +
  26479. + posix_mkdir=false
  26480. + case $umask in
  26481. + *[123567][0-7][0-7])
  26482. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  26483. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  26484. + ;;
  26485. + *)
  26486. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  26487. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  26488. +
  26489. + if (umask $mkdir_umask &&
  26490. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  26491. + then
  26492. + if test -z "$dir_arg" || {
  26493. + # Check for POSIX incompatibilities with -m.
  26494. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  26495. + # other-writeable bit of parent directory when it shouldn't.
  26496. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  26497. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  26498. + case $ls_ld_tmpdir in
  26499. + d????-?r-*) different_mode=700;;
  26500. + d????-?--*) different_mode=755;;
  26501. + *) false;;
  26502. + esac &&
  26503. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  26504. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  26505. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  26506. + }
  26507. + }
  26508. + then posix_mkdir=:
  26509. + fi
  26510. + rmdir "$tmpdir/d" "$tmpdir"
  26511. + else
  26512. + # Remove any dirs left behind by ancient mkdir implementations.
  26513. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  26514. + fi
  26515. + trap '' 0;;
  26516. + esac;;
  26517. + esac
  26518. +
  26519. + if
  26520. + $posix_mkdir && (
  26521. + umask $mkdir_umask &&
  26522. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  26523. + )
  26524. + then :
  26525. + else
  26526. +
  26527. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  26528. + # or it failed possibly due to a race condition. Create the
  26529. + # directory the slow way, step by step, checking for races as we go.
  26530. +
  26531. + case $dstdir in
  26532. + /*) prefix='/';;
  26533. + -*) prefix='./';;
  26534. + *) prefix='';;
  26535. + esac
  26536. +
  26537. + eval "$initialize_posix_glob"
  26538. +
  26539. + oIFS=$IFS
  26540. + IFS=/
  26541. + $posix_glob set -f
  26542. + set fnord $dstdir
  26543. + shift
  26544. + $posix_glob set +f
  26545. + IFS=$oIFS
  26546. +
  26547. + prefixes=
  26548. +
  26549. + for d
  26550. + do
  26551. + test -z "$d" && continue
  26552. +
  26553. + prefix=$prefix$d
  26554. + if test -d "$prefix"; then
  26555. + prefixes=
  26556. + else
  26557. + if $posix_mkdir; then
  26558. + (umask=$mkdir_umask &&
  26559. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  26560. + # Don't fail if two instances are running concurrently.
  26561. + test -d "$prefix" || exit 1
  26562. + else
  26563. + case $prefix in
  26564. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  26565. + *) qprefix=$prefix;;
  26566. + esac
  26567. + prefixes="$prefixes '$qprefix'"
  26568. + fi
  26569. + fi
  26570. + prefix=$prefix/
  26571. + done
  26572. +
  26573. + if test -n "$prefixes"; then
  26574. + # Don't fail if two instances are running concurrently.
  26575. + (umask $mkdir_umask &&
  26576. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  26577. + test -d "$dstdir" || exit 1
  26578. + obsolete_mkdir_used=true
  26579. + fi
  26580. + fi
  26581. + fi
  26582. +
  26583. + if test -n "$dir_arg"; then
  26584. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  26585. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  26586. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  26587. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  26588. + else
  26589. +
  26590. + # Make a couple of temp file names in the proper directory.
  26591. + dsttmp=$dstdir/_inst.$$_
  26592. + rmtmp=$dstdir/_rm.$$_
  26593. +
  26594. + # Trap to clean up those temp files at exit.
  26595. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  26596. +
  26597. + # Copy the file name to the temp name.
  26598. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  26599. +
  26600. + # and set any options; do chmod last to preserve setuid bits.
  26601. + #
  26602. + # If any of these fail, we abort the whole thing. If we want to
  26603. + # ignore errors from any of these, just make sure not to ignore
  26604. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  26605. + #
  26606. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  26607. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  26608. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  26609. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  26610. +
  26611. + # If -C, don't bother to copy if it wouldn't change the file.
  26612. + if $copy_on_change &&
  26613. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  26614. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  26615. +
  26616. + eval "$initialize_posix_glob" &&
  26617. + $posix_glob set -f &&
  26618. + set X $old && old=:$2:$4:$5:$6 &&
  26619. + set X $new && new=:$2:$4:$5:$6 &&
  26620. + $posix_glob set +f &&
  26621. +
  26622. + test "$old" = "$new" &&
  26623. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  26624. + then
  26625. + rm -f "$dsttmp"
  26626. + else
  26627. + # Rename the file to the real destination.
  26628. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  26629. +
  26630. + # The rename failed, perhaps because mv can't rename something else
  26631. + # to itself, or perhaps because mv is so ancient that it does not
  26632. + # support -f.
  26633. + {
  26634. + # Now remove or move aside any old file at destination location.
  26635. + # We try this two ways since rm can't unlink itself on some
  26636. + # systems and the destination file might be busy for other
  26637. + # reasons. In this case, the final cleanup might fail but the new
  26638. + # file should still install successfully.
  26639. + {
  26640. + test ! -f "$dst" ||
  26641. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  26642. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  26643. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  26644. + } ||
  26645. + { echo "$0: cannot unlink or rename $dst" >&2
  26646. + (exit 1); exit 1
  26647. + }
  26648. + } &&
  26649. +
  26650. + # Now rename the file to the real destination.
  26651. + $doit $mvcmd "$dsttmp" "$dst"
  26652. + }
  26653. + fi || exit 1
  26654. +
  26655. + trap '' 0
  26656. + fi
  26657. +done
  26658. +
  26659. +# Local variables:
  26660. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  26661. +# time-stamp-start: "scriptversion="
  26662. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  26663. +# time-stamp-time-zone: "UTC"
  26664. +# time-stamp-end: "; # UTC"
  26665. +# End:
  26666. diff -Nur libvorbisidec-1.0.2+svn15687.orig/ltmain.sh libvorbisidec-1.0.2+svn15687/ltmain.sh
  26667. --- libvorbisidec-1.0.2+svn15687.orig/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
  26668. +++ libvorbisidec-1.0.2+svn15687/ltmain.sh 2010-02-18 19:56:22.880856209 +0100
  26669. @@ -0,0 +1,8413 @@
  26670. +# Generated from ltmain.m4sh.
  26671. +
  26672. +# ltmain.sh (GNU libtool) 2.2.6b
  26673. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  26674. +
  26675. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  26676. +# This is free software; see the source for copying conditions. There is NO
  26677. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26678. +
  26679. +# GNU Libtool is free software; you can redistribute it and/or modify
  26680. +# it under the terms of the GNU General Public License as published by
  26681. +# the Free Software Foundation; either version 2 of the License, or
  26682. +# (at your option) any later version.
  26683. +#
  26684. +# As a special exception to the GNU General Public License,
  26685. +# if you distribute this file as part of a program or library that
  26686. +# is built using GNU Libtool, you may include this file under the
  26687. +# same distribution terms that you use for the rest of that program.
  26688. +#
  26689. +# GNU Libtool is distributed in the hope that it will be useful, but
  26690. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  26691. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26692. +# General Public License for more details.
  26693. +#
  26694. +# You should have received a copy of the GNU General Public License
  26695. +# along with GNU Libtool; see the file COPYING. If not, a copy
  26696. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  26697. +# or obtained by writing to the Free Software Foundation, Inc.,
  26698. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  26699. +
  26700. +# Usage: $progname [OPTION]... [MODE-ARG]...
  26701. +#
  26702. +# Provide generalized library-building support services.
  26703. +#
  26704. +# --config show all configuration variables
  26705. +# --debug enable verbose shell tracing
  26706. +# -n, --dry-run display commands without modifying any files
  26707. +# --features display basic configuration information and exit
  26708. +# --mode=MODE use operation mode MODE
  26709. +# --preserve-dup-deps don't remove duplicate dependency libraries
  26710. +# --quiet, --silent don't print informational messages
  26711. +# --tag=TAG use configuration variables from tag TAG
  26712. +# -v, --verbose print informational messages (default)
  26713. +# --version print version information
  26714. +# -h, --help print short or long help message
  26715. +#
  26716. +# MODE must be one of the following:
  26717. +#
  26718. +# clean remove files from the build directory
  26719. +# compile compile a source file into a libtool object
  26720. +# execute automatically set library path, then run a program
  26721. +# finish complete the installation of libtool libraries
  26722. +# install install libraries or executables
  26723. +# link create a library or an executable
  26724. +# uninstall remove libraries from an installed directory
  26725. +#
  26726. +# MODE-ARGS vary depending on the MODE.
  26727. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  26728. +#
  26729. +# When reporting a bug, please describe a test case to reproduce it and
  26730. +# include the following information:
  26731. +#
  26732. +# host-triplet: $host
  26733. +# shell: $SHELL
  26734. +# compiler: $LTCC
  26735. +# compiler flags: $LTCFLAGS
  26736. +# linker: $LD (gnu? $with_gnu_ld)
  26737. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  26738. +# automake: $automake_version
  26739. +# autoconf: $autoconf_version
  26740. +#
  26741. +# Report bugs to <bug-libtool@gnu.org>.
  26742. +
  26743. +PROGRAM=ltmain.sh
  26744. +PACKAGE=libtool
  26745. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  26746. +TIMESTAMP=""
  26747. +package_revision=1.3017
  26748. +
  26749. +# Be Bourne compatible
  26750. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  26751. + emulate sh
  26752. + NULLCMD=:
  26753. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  26754. + # is contrary to our usage. Disable this feature.
  26755. + alias -g '${1+"$@"}'='"$@"'
  26756. + setopt NO_GLOB_SUBST
  26757. +else
  26758. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  26759. +fi
  26760. +BIN_SH=xpg4; export BIN_SH # for Tru64
  26761. +DUALCASE=1; export DUALCASE # for MKS sh
  26762. +
  26763. +# NLS nuisances: We save the old values to restore during execute mode.
  26764. +# Only set LANG and LC_ALL to C if already set.
  26765. +# These must not be set unconditionally because not all systems understand
  26766. +# e.g. LANG=C (notably SCO).
  26767. +lt_user_locale=
  26768. +lt_safe_locale=
  26769. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  26770. +do
  26771. + eval "if test \"\${$lt_var+set}\" = set; then
  26772. + save_$lt_var=\$$lt_var
  26773. + $lt_var=C
  26774. + export $lt_var
  26775. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  26776. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  26777. + fi"
  26778. +done
  26779. +
  26780. +$lt_unset CDPATH
  26781. +
  26782. +
  26783. +
  26784. +
  26785. +
  26786. +: ${CP="cp -f"}
  26787. +: ${ECHO="echo"}
  26788. +: ${EGREP="/bin/grep -E"}
  26789. +: ${FGREP="/bin/grep -F"}
  26790. +: ${GREP="/bin/grep"}
  26791. +: ${LN_S="ln -s"}
  26792. +: ${MAKE="make"}
  26793. +: ${MKDIR="mkdir"}
  26794. +: ${MV="mv -f"}
  26795. +: ${RM="rm -f"}
  26796. +: ${SED="/bin/sed"}
  26797. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  26798. +: ${Xsed="$SED -e 1s/^X//"}
  26799. +
  26800. +# Global variables:
  26801. +EXIT_SUCCESS=0
  26802. +EXIT_FAILURE=1
  26803. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  26804. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  26805. +
  26806. +exit_status=$EXIT_SUCCESS
  26807. +
  26808. +# Make sure IFS has a sensible default
  26809. +lt_nl='
  26810. +'
  26811. +IFS=" $lt_nl"
  26812. +
  26813. +dirname="s,/[^/]*$,,"
  26814. +basename="s,^.*/,,"
  26815. +
  26816. +# func_dirname_and_basename file append nondir_replacement
  26817. +# perform func_basename and func_dirname in a single function
  26818. +# call:
  26819. +# dirname: Compute the dirname of FILE. If nonempty,
  26820. +# add APPEND to the result, otherwise set result
  26821. +# to NONDIR_REPLACEMENT.
  26822. +# value returned in "$func_dirname_result"
  26823. +# basename: Compute filename of FILE.
  26824. +# value retuned in "$func_basename_result"
  26825. +# Implementation must be kept synchronized with func_dirname
  26826. +# and func_basename. For efficiency, we do not delegate to
  26827. +# those functions but instead duplicate the functionality here.
  26828. +func_dirname_and_basename ()
  26829. +{
  26830. + # Extract subdirectory from the argument.
  26831. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  26832. + if test "X$func_dirname_result" = "X${1}"; then
  26833. + func_dirname_result="${3}"
  26834. + else
  26835. + func_dirname_result="$func_dirname_result${2}"
  26836. + fi
  26837. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  26838. +}
  26839. +
  26840. +# Generated shell functions inserted here.
  26841. +
  26842. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  26843. +# is ksh but when the shell is invoked as "sh" and the current value of
  26844. +# the _XPG environment variable is not equal to 1 (one), the special
  26845. +# positional parameter $0, within a function call, is the name of the
  26846. +# function.
  26847. +progpath="$0"
  26848. +
  26849. +# The name of this program:
  26850. +# In the unlikely event $progname began with a '-', it would play havoc with
  26851. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  26852. +func_dirname_and_basename "$progpath"
  26853. +progname=$func_basename_result
  26854. +case $progname in
  26855. + -*) progname=./$progname ;;
  26856. +esac
  26857. +
  26858. +# Make sure we have an absolute path for reexecution:
  26859. +case $progpath in
  26860. + [\\/]*|[A-Za-z]:\\*) ;;
  26861. + *[\\/]*)
  26862. + progdir=$func_dirname_result
  26863. + progdir=`cd "$progdir" && pwd`
  26864. + progpath="$progdir/$progname"
  26865. + ;;
  26866. + *)
  26867. + save_IFS="$IFS"
  26868. + IFS=:
  26869. + for progdir in $PATH; do
  26870. + IFS="$save_IFS"
  26871. + test -x "$progdir/$progname" && break
  26872. + done
  26873. + IFS="$save_IFS"
  26874. + test -n "$progdir" || progdir=`pwd`
  26875. + progpath="$progdir/$progname"
  26876. + ;;
  26877. +esac
  26878. +
  26879. +# Sed substitution that helps us do robust quoting. It backslashifies
  26880. +# metacharacters that are still active within double-quoted strings.
  26881. +Xsed="${SED}"' -e 1s/^X//'
  26882. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  26883. +
  26884. +# Same as above, but do not quote variable references.
  26885. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  26886. +
  26887. +# Re-`\' parameter expansions in output of double_quote_subst that were
  26888. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  26889. +# in input to double_quote_subst, that '$' was protected from expansion.
  26890. +# Since each input `\' is now two `\'s, look for any number of runs of
  26891. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  26892. +bs='\\'
  26893. +bs2='\\\\'
  26894. +bs4='\\\\\\\\'
  26895. +dollar='\$'
  26896. +sed_double_backslash="\
  26897. + s/$bs4/&\\
  26898. +/g
  26899. + s/^$bs2$dollar/$bs&/
  26900. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  26901. + s/\n//g"
  26902. +
  26903. +# Standard options:
  26904. +opt_dry_run=false
  26905. +opt_help=false
  26906. +opt_quiet=false
  26907. +opt_verbose=false
  26908. +opt_warning=:
  26909. +
  26910. +# func_echo arg...
  26911. +# Echo program name prefixed message, along with the current mode
  26912. +# name if it has been set yet.
  26913. +func_echo ()
  26914. +{
  26915. + $ECHO "$progname${mode+: }$mode: $*"
  26916. +}
  26917. +
  26918. +# func_verbose arg...
  26919. +# Echo program name prefixed message in verbose mode only.
  26920. +func_verbose ()
  26921. +{
  26922. + $opt_verbose && func_echo ${1+"$@"}
  26923. +
  26924. + # A bug in bash halts the script if the last line of a function
  26925. + # fails when set -e is in force, so we need another command to
  26926. + # work around that:
  26927. + :
  26928. +}
  26929. +
  26930. +# func_error arg...
  26931. +# Echo program name prefixed message to standard error.
  26932. +func_error ()
  26933. +{
  26934. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  26935. +}
  26936. +
  26937. +# func_warning arg...
  26938. +# Echo program name prefixed warning message to standard error.
  26939. +func_warning ()
  26940. +{
  26941. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  26942. +
  26943. + # bash bug again:
  26944. + :
  26945. +}
  26946. +
  26947. +# func_fatal_error arg...
  26948. +# Echo program name prefixed message to standard error, and exit.
  26949. +func_fatal_error ()
  26950. +{
  26951. + func_error ${1+"$@"}
  26952. + exit $EXIT_FAILURE
  26953. +}
  26954. +
  26955. +# func_fatal_help arg...
  26956. +# Echo program name prefixed message to standard error, followed by
  26957. +# a help hint, and exit.
  26958. +func_fatal_help ()
  26959. +{
  26960. + func_error ${1+"$@"}
  26961. + func_fatal_error "$help"
  26962. +}
  26963. +help="Try \`$progname --help' for more information." ## default
  26964. +
  26965. +
  26966. +# func_grep expression filename
  26967. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  26968. +func_grep ()
  26969. +{
  26970. + $GREP "$1" "$2" >/dev/null 2>&1
  26971. +}
  26972. +
  26973. +
  26974. +# func_mkdir_p directory-path
  26975. +# Make sure the entire path to DIRECTORY-PATH is available.
  26976. +func_mkdir_p ()
  26977. +{
  26978. + my_directory_path="$1"
  26979. + my_dir_list=
  26980. +
  26981. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  26982. +
  26983. + # Protect directory names starting with `-'
  26984. + case $my_directory_path in
  26985. + -*) my_directory_path="./$my_directory_path" ;;
  26986. + esac
  26987. +
  26988. + # While some portion of DIR does not yet exist...
  26989. + while test ! -d "$my_directory_path"; do
  26990. + # ...make a list in topmost first order. Use a colon delimited
  26991. + # list incase some portion of path contains whitespace.
  26992. + my_dir_list="$my_directory_path:$my_dir_list"
  26993. +
  26994. + # If the last portion added has no slash in it, the list is done
  26995. + case $my_directory_path in */*) ;; *) break ;; esac
  26996. +
  26997. + # ...otherwise throw away the child directory and loop
  26998. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  26999. + done
  27000. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  27001. +
  27002. + save_mkdir_p_IFS="$IFS"; IFS=':'
  27003. + for my_dir in $my_dir_list; do
  27004. + IFS="$save_mkdir_p_IFS"
  27005. + # mkdir can fail with a `File exist' error if two processes
  27006. + # try to create one of the directories concurrently. Don't
  27007. + # stop in that case!
  27008. + $MKDIR "$my_dir" 2>/dev/null || :
  27009. + done
  27010. + IFS="$save_mkdir_p_IFS"
  27011. +
  27012. + # Bail out if we (or some other process) failed to create a directory.
  27013. + test -d "$my_directory_path" || \
  27014. + func_fatal_error "Failed to create \`$1'"
  27015. + fi
  27016. +}
  27017. +
  27018. +
  27019. +# func_mktempdir [string]
  27020. +# Make a temporary directory that won't clash with other running
  27021. +# libtool processes, and avoids race conditions if possible. If
  27022. +# given, STRING is the basename for that directory.
  27023. +func_mktempdir ()
  27024. +{
  27025. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  27026. +
  27027. + if test "$opt_dry_run" = ":"; then
  27028. + # Return a directory name, but don't create it in dry-run mode
  27029. + my_tmpdir="${my_template}-$$"
  27030. + else
  27031. +
  27032. + # If mktemp works, use that first and foremost
  27033. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  27034. +
  27035. + if test ! -d "$my_tmpdir"; then
  27036. + # Failing that, at least try and use $RANDOM to avoid a race
  27037. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  27038. +
  27039. + save_mktempdir_umask=`umask`
  27040. + umask 0077
  27041. + $MKDIR "$my_tmpdir"
  27042. + umask $save_mktempdir_umask
  27043. + fi
  27044. +
  27045. + # If we're not in dry-run mode, bomb out on failure
  27046. + test -d "$my_tmpdir" || \
  27047. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  27048. + fi
  27049. +
  27050. + $ECHO "X$my_tmpdir" | $Xsed
  27051. +}
  27052. +
  27053. +
  27054. +# func_quote_for_eval arg
  27055. +# Aesthetically quote ARG to be evaled later.
  27056. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  27057. +# is double-quoted, suitable for a subsequent eval, whereas
  27058. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  27059. +# which are still active within double quotes backslashified.
  27060. +func_quote_for_eval ()
  27061. +{
  27062. + case $1 in
  27063. + *[\\\`\"\$]*)
  27064. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  27065. + *)
  27066. + func_quote_for_eval_unquoted_result="$1" ;;
  27067. + esac
  27068. +
  27069. + case $func_quote_for_eval_unquoted_result in
  27070. + # Double-quote args containing shell metacharacters to delay
  27071. + # word splitting, command substitution and and variable
  27072. + # expansion for a subsequent eval.
  27073. + # Many Bourne shells cannot handle close brackets correctly
  27074. + # in scan sets, so we specify it separately.
  27075. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  27076. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  27077. + ;;
  27078. + *)
  27079. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  27080. + esac
  27081. +}
  27082. +
  27083. +
  27084. +# func_quote_for_expand arg
  27085. +# Aesthetically quote ARG to be evaled later; same as above,
  27086. +# but do not quote variable references.
  27087. +func_quote_for_expand ()
  27088. +{
  27089. + case $1 in
  27090. + *[\\\`\"]*)
  27091. + my_arg=`$ECHO "X$1" | $Xsed \
  27092. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  27093. + *)
  27094. + my_arg="$1" ;;
  27095. + esac
  27096. +
  27097. + case $my_arg in
  27098. + # Double-quote args containing shell metacharacters to delay
  27099. + # word splitting and command substitution for a subsequent eval.
  27100. + # Many Bourne shells cannot handle close brackets correctly
  27101. + # in scan sets, so we specify it separately.
  27102. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  27103. + my_arg="\"$my_arg\""
  27104. + ;;
  27105. + esac
  27106. +
  27107. + func_quote_for_expand_result="$my_arg"
  27108. +}
  27109. +
  27110. +
  27111. +# func_show_eval cmd [fail_exp]
  27112. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  27113. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  27114. +# is given, then evaluate it.
  27115. +func_show_eval ()
  27116. +{
  27117. + my_cmd="$1"
  27118. + my_fail_exp="${2-:}"
  27119. +
  27120. + ${opt_silent-false} || {
  27121. + func_quote_for_expand "$my_cmd"
  27122. + eval "func_echo $func_quote_for_expand_result"
  27123. + }
  27124. +
  27125. + if ${opt_dry_run-false}; then :; else
  27126. + eval "$my_cmd"
  27127. + my_status=$?
  27128. + if test "$my_status" -eq 0; then :; else
  27129. + eval "(exit $my_status); $my_fail_exp"
  27130. + fi
  27131. + fi
  27132. +}
  27133. +
  27134. +
  27135. +# func_show_eval_locale cmd [fail_exp]
  27136. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  27137. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  27138. +# is given, then evaluate it. Use the saved locale for evaluation.
  27139. +func_show_eval_locale ()
  27140. +{
  27141. + my_cmd="$1"
  27142. + my_fail_exp="${2-:}"
  27143. +
  27144. + ${opt_silent-false} || {
  27145. + func_quote_for_expand "$my_cmd"
  27146. + eval "func_echo $func_quote_for_expand_result"
  27147. + }
  27148. +
  27149. + if ${opt_dry_run-false}; then :; else
  27150. + eval "$lt_user_locale
  27151. + $my_cmd"
  27152. + my_status=$?
  27153. + eval "$lt_safe_locale"
  27154. + if test "$my_status" -eq 0; then :; else
  27155. + eval "(exit $my_status); $my_fail_exp"
  27156. + fi
  27157. + fi
  27158. +}
  27159. +
  27160. +
  27161. +
  27162. +
  27163. +
  27164. +# func_version
  27165. +# Echo version message to standard output and exit.
  27166. +func_version ()
  27167. +{
  27168. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  27169. + s/^# //
  27170. + s/^# *$//
  27171. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  27172. + p
  27173. + }' < "$progpath"
  27174. + exit $?
  27175. +}
  27176. +
  27177. +# func_usage
  27178. +# Echo short help message to standard output and exit.
  27179. +func_usage ()
  27180. +{
  27181. + $SED -n '/^# Usage:/,/# -h/ {
  27182. + s/^# //
  27183. + s/^# *$//
  27184. + s/\$progname/'$progname'/
  27185. + p
  27186. + }' < "$progpath"
  27187. + $ECHO
  27188. + $ECHO "run \`$progname --help | more' for full usage"
  27189. + exit $?
  27190. +}
  27191. +
  27192. +# func_help
  27193. +# Echo long help message to standard output and exit.
  27194. +func_help ()
  27195. +{
  27196. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  27197. + s/^# //
  27198. + s/^# *$//
  27199. + s*\$progname*'$progname'*
  27200. + s*\$host*'"$host"'*
  27201. + s*\$SHELL*'"$SHELL"'*
  27202. + s*\$LTCC*'"$LTCC"'*
  27203. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  27204. + s*\$LD*'"$LD"'*
  27205. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  27206. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  27207. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  27208. + p
  27209. + }' < "$progpath"
  27210. + exit $?
  27211. +}
  27212. +
  27213. +# func_missing_arg argname
  27214. +# Echo program name prefixed message to standard error and set global
  27215. +# exit_cmd.
  27216. +func_missing_arg ()
  27217. +{
  27218. + func_error "missing argument for $1"
  27219. + exit_cmd=exit
  27220. +}
  27221. +
  27222. +exit_cmd=:
  27223. +
  27224. +
  27225. +
  27226. +
  27227. +
  27228. +# Check that we have a working $ECHO.
  27229. +if test "X$1" = X--no-reexec; then
  27230. + # Discard the --no-reexec flag, and continue.
  27231. + shift
  27232. +elif test "X$1" = X--fallback-echo; then
  27233. + # Avoid inline document here, it may be left over
  27234. + :
  27235. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  27236. + # Yippee, $ECHO works!
  27237. + :
  27238. +else
  27239. + # Restart under the correct shell, and then maybe $ECHO will work.
  27240. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  27241. +fi
  27242. +
  27243. +if test "X$1" = X--fallback-echo; then
  27244. + # used as fallback echo
  27245. + shift
  27246. + cat <<EOF
  27247. +$*
  27248. +EOF
  27249. + exit $EXIT_SUCCESS
  27250. +fi
  27251. +
  27252. +magic="%%%MAGIC variable%%%"
  27253. +magic_exe="%%%MAGIC EXE variable%%%"
  27254. +
  27255. +# Global variables.
  27256. +# $mode is unset
  27257. +nonopt=
  27258. +execute_dlfiles=
  27259. +preserve_args=
  27260. +lo2o="s/\\.lo\$/.${objext}/"
  27261. +o2lo="s/\\.${objext}\$/.lo/"
  27262. +extracted_archives=
  27263. +extracted_serial=0
  27264. +
  27265. +opt_dry_run=false
  27266. +opt_duplicate_deps=false
  27267. +opt_silent=false
  27268. +opt_debug=:
  27269. +
  27270. +# If this variable is set in any of the actions, the command in it
  27271. +# will be execed at the end. This prevents here-documents from being
  27272. +# left over by shells.
  27273. +exec_cmd=
  27274. +
  27275. +# func_fatal_configuration arg...
  27276. +# Echo program name prefixed message to standard error, followed by
  27277. +# a configuration failure hint, and exit.
  27278. +func_fatal_configuration ()
  27279. +{
  27280. + func_error ${1+"$@"}
  27281. + func_error "See the $PACKAGE documentation for more information."
  27282. + func_fatal_error "Fatal configuration error."
  27283. +}
  27284. +
  27285. +
  27286. +# func_config
  27287. +# Display the configuration for all the tags in this script.
  27288. +func_config ()
  27289. +{
  27290. + re_begincf='^# ### BEGIN LIBTOOL'
  27291. + re_endcf='^# ### END LIBTOOL'
  27292. +
  27293. + # Default configuration.
  27294. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  27295. +
  27296. + # Now print the configurations for the tags.
  27297. + for tagname in $taglist; do
  27298. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  27299. + done
  27300. +
  27301. + exit $?
  27302. +}
  27303. +
  27304. +# func_features
  27305. +# Display the features supported by this script.
  27306. +func_features ()
  27307. +{
  27308. + $ECHO "host: $host"
  27309. + if test "$build_libtool_libs" = yes; then
  27310. + $ECHO "enable shared libraries"
  27311. + else
  27312. + $ECHO "disable shared libraries"
  27313. + fi
  27314. + if test "$build_old_libs" = yes; then
  27315. + $ECHO "enable static libraries"
  27316. + else
  27317. + $ECHO "disable static libraries"
  27318. + fi
  27319. +
  27320. + exit $?
  27321. +}
  27322. +
  27323. +# func_enable_tag tagname
  27324. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  27325. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  27326. +# variable here.
  27327. +func_enable_tag ()
  27328. +{
  27329. + # Global variable:
  27330. + tagname="$1"
  27331. +
  27332. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  27333. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  27334. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  27335. +
  27336. + # Validate tagname.
  27337. + case $tagname in
  27338. + *[!-_A-Za-z0-9,/]*)
  27339. + func_fatal_error "invalid tag name: $tagname"
  27340. + ;;
  27341. + esac
  27342. +
  27343. + # Don't test for the "default" C tag, as we know it's
  27344. + # there but not specially marked.
  27345. + case $tagname in
  27346. + CC) ;;
  27347. + *)
  27348. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  27349. + taglist="$taglist $tagname"
  27350. +
  27351. + # Evaluate the configuration. Be careful to quote the path
  27352. + # and the sed script, to avoid splitting on whitespace, but
  27353. + # also don't use non-portable quotes within backquotes within
  27354. + # quotes we have to do it in 2 steps:
  27355. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  27356. + eval "$extractedcf"
  27357. + else
  27358. + func_error "ignoring unknown tag $tagname"
  27359. + fi
  27360. + ;;
  27361. + esac
  27362. +}
  27363. +
  27364. +# Parse options once, thoroughly. This comes as soon as possible in
  27365. +# the script to make things like `libtool --version' happen quickly.
  27366. +{
  27367. +
  27368. + # Shorthand for --mode=foo, only valid as the first argument
  27369. + case $1 in
  27370. + clean|clea|cle|cl)
  27371. + shift; set dummy --mode clean ${1+"$@"}; shift
  27372. + ;;
  27373. + compile|compil|compi|comp|com|co|c)
  27374. + shift; set dummy --mode compile ${1+"$@"}; shift
  27375. + ;;
  27376. + execute|execut|execu|exec|exe|ex|e)
  27377. + shift; set dummy --mode execute ${1+"$@"}; shift
  27378. + ;;
  27379. + finish|finis|fini|fin|fi|f)
  27380. + shift; set dummy --mode finish ${1+"$@"}; shift
  27381. + ;;
  27382. + install|instal|insta|inst|ins|in|i)
  27383. + shift; set dummy --mode install ${1+"$@"}; shift
  27384. + ;;
  27385. + link|lin|li|l)
  27386. + shift; set dummy --mode link ${1+"$@"}; shift
  27387. + ;;
  27388. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  27389. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  27390. + ;;
  27391. + esac
  27392. +
  27393. + # Parse non-mode specific arguments:
  27394. + while test "$#" -gt 0; do
  27395. + opt="$1"
  27396. + shift
  27397. +
  27398. + case $opt in
  27399. + --config) func_config ;;
  27400. +
  27401. + --debug) preserve_args="$preserve_args $opt"
  27402. + func_echo "enabling shell trace mode"
  27403. + opt_debug='set -x'
  27404. + $opt_debug
  27405. + ;;
  27406. +
  27407. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  27408. + execute_dlfiles="$execute_dlfiles $1"
  27409. + shift
  27410. + ;;
  27411. +
  27412. + --dry-run | -n) opt_dry_run=: ;;
  27413. + --features) func_features ;;
  27414. + --finish) mode="finish" ;;
  27415. +
  27416. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  27417. + case $1 in
  27418. + # Valid mode arguments:
  27419. + clean) ;;
  27420. + compile) ;;
  27421. + execute) ;;
  27422. + finish) ;;
  27423. + install) ;;
  27424. + link) ;;
  27425. + relink) ;;
  27426. + uninstall) ;;
  27427. +
  27428. + # Catch anything else as an error
  27429. + *) func_error "invalid argument for $opt"
  27430. + exit_cmd=exit
  27431. + break
  27432. + ;;
  27433. + esac
  27434. +
  27435. + mode="$1"
  27436. + shift
  27437. + ;;
  27438. +
  27439. + --preserve-dup-deps)
  27440. + opt_duplicate_deps=: ;;
  27441. +
  27442. + --quiet|--silent) preserve_args="$preserve_args $opt"
  27443. + opt_silent=:
  27444. + ;;
  27445. +
  27446. + --verbose| -v) preserve_args="$preserve_args $opt"
  27447. + opt_silent=false
  27448. + ;;
  27449. +
  27450. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  27451. + preserve_args="$preserve_args $opt $1"
  27452. + func_enable_tag "$1" # tagname is set here
  27453. + shift
  27454. + ;;
  27455. +
  27456. + # Separate optargs to long options:
  27457. + -dlopen=*|--mode=*|--tag=*)
  27458. + func_opt_split "$opt"
  27459. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  27460. + shift
  27461. + ;;
  27462. +
  27463. + -\?|-h) func_usage ;;
  27464. + --help) opt_help=: ;;
  27465. + --version) func_version ;;
  27466. +
  27467. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  27468. +
  27469. + *) nonopt="$opt"
  27470. + break
  27471. + ;;
  27472. + esac
  27473. + done
  27474. +
  27475. +
  27476. + case $host in
  27477. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  27478. + # don't eliminate duplications in $postdeps and $predeps
  27479. + opt_duplicate_compiler_generated_deps=:
  27480. + ;;
  27481. + *)
  27482. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  27483. + ;;
  27484. + esac
  27485. +
  27486. + # Having warned about all mis-specified options, bail out if
  27487. + # anything was wrong.
  27488. + $exit_cmd $EXIT_FAILURE
  27489. +}
  27490. +
  27491. +# func_check_version_match
  27492. +# Ensure that we are using m4 macros, and libtool script from the same
  27493. +# release of libtool.
  27494. +func_check_version_match ()
  27495. +{
  27496. + if test "$package_revision" != "$macro_revision"; then
  27497. + if test "$VERSION" != "$macro_version"; then
  27498. + if test -z "$macro_version"; then
  27499. + cat >&2 <<_LT_EOF
  27500. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  27501. +$progname: definition of this LT_INIT comes from an older release.
  27502. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  27503. +$progname: and run autoconf again.
  27504. +_LT_EOF
  27505. + else
  27506. + cat >&2 <<_LT_EOF
  27507. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  27508. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  27509. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  27510. +$progname: and run autoconf again.
  27511. +_LT_EOF
  27512. + fi
  27513. + else
  27514. + cat >&2 <<_LT_EOF
  27515. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  27516. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  27517. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  27518. +$progname: of $PACKAGE $VERSION and run autoconf again.
  27519. +_LT_EOF
  27520. + fi
  27521. +
  27522. + exit $EXIT_MISMATCH
  27523. + fi
  27524. +}
  27525. +
  27526. +
  27527. +## ----------- ##
  27528. +## Main. ##
  27529. +## ----------- ##
  27530. +
  27531. +$opt_help || {
  27532. + # Sanity checks first:
  27533. + func_check_version_match
  27534. +
  27535. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  27536. + func_fatal_configuration "not configured to build any kind of library"
  27537. + fi
  27538. +
  27539. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  27540. +
  27541. +
  27542. + # Darwin sucks
  27543. + eval std_shrext=\"$shrext_cmds\"
  27544. +
  27545. +
  27546. + # Only execute mode is allowed to have -dlopen flags.
  27547. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  27548. + func_error "unrecognized option \`-dlopen'"
  27549. + $ECHO "$help" 1>&2
  27550. + exit $EXIT_FAILURE
  27551. + fi
  27552. +
  27553. + # Change the help message to a mode-specific one.
  27554. + generic_help="$help"
  27555. + help="Try \`$progname --help --mode=$mode' for more information."
  27556. +}
  27557. +
  27558. +
  27559. +# func_lalib_p file
  27560. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  27561. +# This function is only a basic sanity check; it will hardly flush out
  27562. +# determined imposters.
  27563. +func_lalib_p ()
  27564. +{
  27565. + test -f "$1" &&
  27566. + $SED -e 4q "$1" 2>/dev/null \
  27567. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  27568. +}
  27569. +
  27570. +# func_lalib_unsafe_p file
  27571. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  27572. +# This function implements the same check as func_lalib_p without
  27573. +# resorting to external programs. To this end, it redirects stdin and
  27574. +# closes it afterwards, without saving the original file descriptor.
  27575. +# As a safety measure, use it only where a negative result would be
  27576. +# fatal anyway. Works if `file' does not exist.
  27577. +func_lalib_unsafe_p ()
  27578. +{
  27579. + lalib_p=no
  27580. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  27581. + for lalib_p_l in 1 2 3 4
  27582. + do
  27583. + read lalib_p_line
  27584. + case "$lalib_p_line" in
  27585. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  27586. + esac
  27587. + done
  27588. + exec 0<&5 5<&-
  27589. + fi
  27590. + test "$lalib_p" = yes
  27591. +}
  27592. +
  27593. +# func_ltwrapper_script_p file
  27594. +# True iff FILE is a libtool wrapper script
  27595. +# This function is only a basic sanity check; it will hardly flush out
  27596. +# determined imposters.
  27597. +func_ltwrapper_script_p ()
  27598. +{
  27599. + func_lalib_p "$1"
  27600. +}
  27601. +
  27602. +# func_ltwrapper_executable_p file
  27603. +# True iff FILE is a libtool wrapper executable
  27604. +# This function is only a basic sanity check; it will hardly flush out
  27605. +# determined imposters.
  27606. +func_ltwrapper_executable_p ()
  27607. +{
  27608. + func_ltwrapper_exec_suffix=
  27609. + case $1 in
  27610. + *.exe) ;;
  27611. + *) func_ltwrapper_exec_suffix=.exe ;;
  27612. + esac
  27613. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  27614. +}
  27615. +
  27616. +# func_ltwrapper_scriptname file
  27617. +# Assumes file is an ltwrapper_executable
  27618. +# uses $file to determine the appropriate filename for a
  27619. +# temporary ltwrapper_script.
  27620. +func_ltwrapper_scriptname ()
  27621. +{
  27622. + func_ltwrapper_scriptname_result=""
  27623. + if func_ltwrapper_executable_p "$1"; then
  27624. + func_dirname_and_basename "$1" "" "."
  27625. + func_stripname '' '.exe' "$func_basename_result"
  27626. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  27627. + fi
  27628. +}
  27629. +
  27630. +# func_ltwrapper_p file
  27631. +# True iff FILE is a libtool wrapper script or wrapper executable
  27632. +# This function is only a basic sanity check; it will hardly flush out
  27633. +# determined imposters.
  27634. +func_ltwrapper_p ()
  27635. +{
  27636. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  27637. +}
  27638. +
  27639. +
  27640. +# func_execute_cmds commands fail_cmd
  27641. +# Execute tilde-delimited COMMANDS.
  27642. +# If FAIL_CMD is given, eval that upon failure.
  27643. +# FAIL_CMD may read-access the current command in variable CMD!
  27644. +func_execute_cmds ()
  27645. +{
  27646. + $opt_debug
  27647. + save_ifs=$IFS; IFS='~'
  27648. + for cmd in $1; do
  27649. + IFS=$save_ifs
  27650. + eval cmd=\"$cmd\"
  27651. + func_show_eval "$cmd" "${2-:}"
  27652. + done
  27653. + IFS=$save_ifs
  27654. +}
  27655. +
  27656. +
  27657. +# func_source file
  27658. +# Source FILE, adding directory component if necessary.
  27659. +# Note that it is not necessary on cygwin/mingw to append a dot to
  27660. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  27661. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  27662. +# `FILE.' does not work on cygwin managed mounts.
  27663. +func_source ()
  27664. +{
  27665. + $opt_debug
  27666. + case $1 in
  27667. + */* | *\\*) . "$1" ;;
  27668. + *) . "./$1" ;;
  27669. + esac
  27670. +}
  27671. +
  27672. +
  27673. +# func_infer_tag arg
  27674. +# Infer tagged configuration to use if any are available and
  27675. +# if one wasn't chosen via the "--tag" command line option.
  27676. +# Only attempt this if the compiler in the base compile
  27677. +# command doesn't match the default compiler.
  27678. +# arg is usually of the form 'gcc ...'
  27679. +func_infer_tag ()
  27680. +{
  27681. + $opt_debug
  27682. + if test -n "$available_tags" && test -z "$tagname"; then
  27683. + CC_quoted=
  27684. + for arg in $CC; do
  27685. + func_quote_for_eval "$arg"
  27686. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  27687. + done
  27688. + case $@ in
  27689. + # Blanks in the command may have been stripped by the calling shell,
  27690. + # but not from the CC environment variable when configure was run.
  27691. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  27692. + # Blanks at the start of $base_compile will cause this to fail
  27693. + # if we don't check for them as well.
  27694. + *)
  27695. + for z in $available_tags; do
  27696. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  27697. + # Evaluate the configuration.
  27698. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  27699. + CC_quoted=
  27700. + for arg in $CC; do
  27701. + # Double-quote args containing other shell metacharacters.
  27702. + func_quote_for_eval "$arg"
  27703. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  27704. + done
  27705. + case "$@ " in
  27706. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  27707. + # The compiler in the base compile command matches
  27708. + # the one in the tagged configuration.
  27709. + # Assume this is the tagged configuration we want.
  27710. + tagname=$z
  27711. + break
  27712. + ;;
  27713. + esac
  27714. + fi
  27715. + done
  27716. + # If $tagname still isn't set, then no tagged configuration
  27717. + # was found and let the user know that the "--tag" command
  27718. + # line option must be used.
  27719. + if test -z "$tagname"; then
  27720. + func_echo "unable to infer tagged configuration"
  27721. + func_fatal_error "specify a tag with \`--tag'"
  27722. +# else
  27723. +# func_verbose "using $tagname tagged configuration"
  27724. + fi
  27725. + ;;
  27726. + esac
  27727. + fi
  27728. +}
  27729. +
  27730. +
  27731. +
  27732. +# func_write_libtool_object output_name pic_name nonpic_name
  27733. +# Create a libtool object file (analogous to a ".la" file),
  27734. +# but don't create it if we're doing a dry run.
  27735. +func_write_libtool_object ()
  27736. +{
  27737. + write_libobj=${1}
  27738. + if test "$build_libtool_libs" = yes; then
  27739. + write_lobj=\'${2}\'
  27740. + else
  27741. + write_lobj=none
  27742. + fi
  27743. +
  27744. + if test "$build_old_libs" = yes; then
  27745. + write_oldobj=\'${3}\'
  27746. + else
  27747. + write_oldobj=none
  27748. + fi
  27749. +
  27750. + $opt_dry_run || {
  27751. + cat >${write_libobj}T <<EOF
  27752. +# $write_libobj - a libtool object file
  27753. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  27754. +#
  27755. +# Please DO NOT delete this file!
  27756. +# It is necessary for linking the library.
  27757. +
  27758. +# Name of the PIC object.
  27759. +pic_object=$write_lobj
  27760. +
  27761. +# Name of the non-PIC object
  27762. +non_pic_object=$write_oldobj
  27763. +
  27764. +EOF
  27765. + $MV "${write_libobj}T" "${write_libobj}"
  27766. + }
  27767. +}
  27768. +
  27769. +# func_mode_compile arg...
  27770. +func_mode_compile ()
  27771. +{
  27772. + $opt_debug
  27773. + # Get the compilation command and the source file.
  27774. + base_compile=
  27775. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  27776. + suppress_opt=yes
  27777. + suppress_output=
  27778. + arg_mode=normal
  27779. + libobj=
  27780. + later=
  27781. + pie_flag=
  27782. +
  27783. + for arg
  27784. + do
  27785. + case $arg_mode in
  27786. + arg )
  27787. + # do not "continue". Instead, add this to base_compile
  27788. + lastarg="$arg"
  27789. + arg_mode=normal
  27790. + ;;
  27791. +
  27792. + target )
  27793. + libobj="$arg"
  27794. + arg_mode=normal
  27795. + continue
  27796. + ;;
  27797. +
  27798. + normal )
  27799. + # Accept any command-line options.
  27800. + case $arg in
  27801. + -o)
  27802. + test -n "$libobj" && \
  27803. + func_fatal_error "you cannot specify \`-o' more than once"
  27804. + arg_mode=target
  27805. + continue
  27806. + ;;
  27807. +
  27808. + -pie | -fpie | -fPIE)
  27809. + pie_flag="$pie_flag $arg"
  27810. + continue
  27811. + ;;
  27812. +
  27813. + -shared | -static | -prefer-pic | -prefer-non-pic)
  27814. + later="$later $arg"
  27815. + continue
  27816. + ;;
  27817. +
  27818. + -no-suppress)
  27819. + suppress_opt=no
  27820. + continue
  27821. + ;;
  27822. +
  27823. + -Xcompiler)
  27824. + arg_mode=arg # the next one goes into the "base_compile" arg list
  27825. + continue # The current "srcfile" will either be retained or
  27826. + ;; # replaced later. I would guess that would be a bug.
  27827. +
  27828. + -Wc,*)
  27829. + func_stripname '-Wc,' '' "$arg"
  27830. + args=$func_stripname_result
  27831. + lastarg=
  27832. + save_ifs="$IFS"; IFS=','
  27833. + for arg in $args; do
  27834. + IFS="$save_ifs"
  27835. + func_quote_for_eval "$arg"
  27836. + lastarg="$lastarg $func_quote_for_eval_result"
  27837. + done
  27838. + IFS="$save_ifs"
  27839. + func_stripname ' ' '' "$lastarg"
  27840. + lastarg=$func_stripname_result
  27841. +
  27842. + # Add the arguments to base_compile.
  27843. + base_compile="$base_compile $lastarg"
  27844. + continue
  27845. + ;;
  27846. +
  27847. + *)
  27848. + # Accept the current argument as the source file.
  27849. + # The previous "srcfile" becomes the current argument.
  27850. + #
  27851. + lastarg="$srcfile"
  27852. + srcfile="$arg"
  27853. + ;;
  27854. + esac # case $arg
  27855. + ;;
  27856. + esac # case $arg_mode
  27857. +
  27858. + # Aesthetically quote the previous argument.
  27859. + func_quote_for_eval "$lastarg"
  27860. + base_compile="$base_compile $func_quote_for_eval_result"
  27861. + done # for arg
  27862. +
  27863. + case $arg_mode in
  27864. + arg)
  27865. + func_fatal_error "you must specify an argument for -Xcompile"
  27866. + ;;
  27867. + target)
  27868. + func_fatal_error "you must specify a target with \`-o'"
  27869. + ;;
  27870. + *)
  27871. + # Get the name of the library object.
  27872. + test -z "$libobj" && {
  27873. + func_basename "$srcfile"
  27874. + libobj="$func_basename_result"
  27875. + }
  27876. + ;;
  27877. + esac
  27878. +
  27879. + # Recognize several different file suffixes.
  27880. + # If the user specifies -o file.o, it is replaced with file.lo
  27881. + case $libobj in
  27882. + *.[cCFSifmso] | \
  27883. + *.ada | *.adb | *.ads | *.asm | \
  27884. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  27885. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  27886. + func_xform "$libobj"
  27887. + libobj=$func_xform_result
  27888. + ;;
  27889. + esac
  27890. +
  27891. + case $libobj in
  27892. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  27893. + *)
  27894. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  27895. + ;;
  27896. + esac
  27897. +
  27898. + func_infer_tag $base_compile
  27899. +
  27900. + for arg in $later; do
  27901. + case $arg in
  27902. + -shared)
  27903. + test "$build_libtool_libs" != yes && \
  27904. + func_fatal_configuration "can not build a shared library"
  27905. + build_old_libs=no
  27906. + continue
  27907. + ;;
  27908. +
  27909. + -static)
  27910. + build_libtool_libs=no
  27911. + build_old_libs=yes
  27912. + continue
  27913. + ;;
  27914. +
  27915. + -prefer-pic)
  27916. + pic_mode=yes
  27917. + continue
  27918. + ;;
  27919. +
  27920. + -prefer-non-pic)
  27921. + pic_mode=no
  27922. + continue
  27923. + ;;
  27924. + esac
  27925. + done
  27926. +
  27927. + func_quote_for_eval "$libobj"
  27928. + test "X$libobj" != "X$func_quote_for_eval_result" \
  27929. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  27930. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  27931. + func_dirname_and_basename "$obj" "/" ""
  27932. + objname="$func_basename_result"
  27933. + xdir="$func_dirname_result"
  27934. + lobj=${xdir}$objdir/$objname
  27935. +
  27936. + test -z "$base_compile" && \
  27937. + func_fatal_help "you must specify a compilation command"
  27938. +
  27939. + # Delete any leftover library objects.
  27940. + if test "$build_old_libs" = yes; then
  27941. + removelist="$obj $lobj $libobj ${libobj}T"
  27942. + else
  27943. + removelist="$lobj $libobj ${libobj}T"
  27944. + fi
  27945. +
  27946. + # On Cygwin there's no "real" PIC flag so we must build both object types
  27947. + case $host_os in
  27948. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  27949. + pic_mode=default
  27950. + ;;
  27951. + esac
  27952. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  27953. + # non-PIC code in shared libraries is not supported
  27954. + pic_mode=default
  27955. + fi
  27956. +
  27957. + # Calculate the filename of the output object if compiler does
  27958. + # not support -o with -c
  27959. + if test "$compiler_c_o" = no; then
  27960. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  27961. + lockfile="$output_obj.lock"
  27962. + else
  27963. + output_obj=
  27964. + need_locks=no
  27965. + lockfile=
  27966. + fi
  27967. +
  27968. + # Lock this critical section if it is needed
  27969. + # We use this script file to make the link, it avoids creating a new file
  27970. + if test "$need_locks" = yes; then
  27971. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  27972. + func_echo "Waiting for $lockfile to be removed"
  27973. + sleep 2
  27974. + done
  27975. + elif test "$need_locks" = warn; then
  27976. + if test -f "$lockfile"; then
  27977. + $ECHO "\
  27978. +*** ERROR, $lockfile exists and contains:
  27979. +`cat $lockfile 2>/dev/null`
  27980. +
  27981. +This indicates that another process is trying to use the same
  27982. +temporary object file, and libtool could not work around it because
  27983. +your compiler does not support \`-c' and \`-o' together. If you
  27984. +repeat this compilation, it may succeed, by chance, but you had better
  27985. +avoid parallel builds (make -j) in this platform, or get a better
  27986. +compiler."
  27987. +
  27988. + $opt_dry_run || $RM $removelist
  27989. + exit $EXIT_FAILURE
  27990. + fi
  27991. + removelist="$removelist $output_obj"
  27992. + $ECHO "$srcfile" > "$lockfile"
  27993. + fi
  27994. +
  27995. + $opt_dry_run || $RM $removelist
  27996. + removelist="$removelist $lockfile"
  27997. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  27998. +
  27999. + if test -n "$fix_srcfile_path"; then
  28000. + eval srcfile=\"$fix_srcfile_path\"
  28001. + fi
  28002. + func_quote_for_eval "$srcfile"
  28003. + qsrcfile=$func_quote_for_eval_result
  28004. +
  28005. + # Only build a PIC object if we are building libtool libraries.
  28006. + if test "$build_libtool_libs" = yes; then
  28007. + # Without this assignment, base_compile gets emptied.
  28008. + fbsd_hideous_sh_bug=$base_compile
  28009. +
  28010. + if test "$pic_mode" != no; then
  28011. + command="$base_compile $qsrcfile $pic_flag"
  28012. + else
  28013. + # Don't build PIC code
  28014. + command="$base_compile $qsrcfile"
  28015. + fi
  28016. +
  28017. + func_mkdir_p "$xdir$objdir"
  28018. +
  28019. + if test -z "$output_obj"; then
  28020. + # Place PIC objects in $objdir
  28021. + command="$command -o $lobj"
  28022. + fi
  28023. +
  28024. + func_show_eval_locale "$command" \
  28025. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  28026. +
  28027. + if test "$need_locks" = warn &&
  28028. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  28029. + $ECHO "\
  28030. +*** ERROR, $lockfile contains:
  28031. +`cat $lockfile 2>/dev/null`
  28032. +
  28033. +but it should contain:
  28034. +$srcfile
  28035. +
  28036. +This indicates that another process is trying to use the same
  28037. +temporary object file, and libtool could not work around it because
  28038. +your compiler does not support \`-c' and \`-o' together. If you
  28039. +repeat this compilation, it may succeed, by chance, but you had better
  28040. +avoid parallel builds (make -j) in this platform, or get a better
  28041. +compiler."
  28042. +
  28043. + $opt_dry_run || $RM $removelist
  28044. + exit $EXIT_FAILURE
  28045. + fi
  28046. +
  28047. + # Just move the object if needed, then go on to compile the next one
  28048. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  28049. + func_show_eval '$MV "$output_obj" "$lobj"' \
  28050. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  28051. + fi
  28052. +
  28053. + # Allow error messages only from the first compilation.
  28054. + if test "$suppress_opt" = yes; then
  28055. + suppress_output=' >/dev/null 2>&1'
  28056. + fi
  28057. + fi
  28058. +
  28059. + # Only build a position-dependent object if we build old libraries.
  28060. + if test "$build_old_libs" = yes; then
  28061. + if test "$pic_mode" != yes; then
  28062. + # Don't build PIC code
  28063. + command="$base_compile $qsrcfile$pie_flag"
  28064. + else
  28065. + command="$base_compile $qsrcfile $pic_flag"
  28066. + fi
  28067. + if test "$compiler_c_o" = yes; then
  28068. + command="$command -o $obj"
  28069. + fi
  28070. +
  28071. + # Suppress compiler output if we already did a PIC compilation.
  28072. + command="$command$suppress_output"
  28073. + func_show_eval_locale "$command" \
  28074. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  28075. +
  28076. + if test "$need_locks" = warn &&
  28077. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  28078. + $ECHO "\
  28079. +*** ERROR, $lockfile contains:
  28080. +`cat $lockfile 2>/dev/null`
  28081. +
  28082. +but it should contain:
  28083. +$srcfile
  28084. +
  28085. +This indicates that another process is trying to use the same
  28086. +temporary object file, and libtool could not work around it because
  28087. +your compiler does not support \`-c' and \`-o' together. If you
  28088. +repeat this compilation, it may succeed, by chance, but you had better
  28089. +avoid parallel builds (make -j) in this platform, or get a better
  28090. +compiler."
  28091. +
  28092. + $opt_dry_run || $RM $removelist
  28093. + exit $EXIT_FAILURE
  28094. + fi
  28095. +
  28096. + # Just move the object if needed
  28097. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  28098. + func_show_eval '$MV "$output_obj" "$obj"' \
  28099. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  28100. + fi
  28101. + fi
  28102. +
  28103. + $opt_dry_run || {
  28104. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  28105. +
  28106. + # Unlock the critical section if it was locked
  28107. + if test "$need_locks" != no; then
  28108. + removelist=$lockfile
  28109. + $RM "$lockfile"
  28110. + fi
  28111. + }
  28112. +
  28113. + exit $EXIT_SUCCESS
  28114. +}
  28115. +
  28116. +$opt_help || {
  28117. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  28118. +}
  28119. +
  28120. +func_mode_help ()
  28121. +{
  28122. + # We need to display help for each of the modes.
  28123. + case $mode in
  28124. + "")
  28125. + # Generic help is extracted from the usage comments
  28126. + # at the start of this file.
  28127. + func_help
  28128. + ;;
  28129. +
  28130. + clean)
  28131. + $ECHO \
  28132. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  28133. +
  28134. +Remove files from the build directory.
  28135. +
  28136. +RM is the name of the program to use to delete files associated with each FILE
  28137. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  28138. +to RM.
  28139. +
  28140. +If FILE is a libtool library, object or program, all the files associated
  28141. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  28142. + ;;
  28143. +
  28144. + compile)
  28145. + $ECHO \
  28146. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  28147. +
  28148. +Compile a source file into a libtool library object.
  28149. +
  28150. +This mode accepts the following additional options:
  28151. +
  28152. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  28153. + -no-suppress do not suppress compiler output for multiple passes
  28154. + -prefer-pic try to building PIC objects only
  28155. + -prefer-non-pic try to building non-PIC objects only
  28156. + -shared do not build a \`.o' file suitable for static linking
  28157. + -static only build a \`.o' file suitable for static linking
  28158. +
  28159. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  28160. +from the given SOURCEFILE.
  28161. +
  28162. +The output file name is determined by removing the directory component from
  28163. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  28164. +library object suffix, \`.lo'."
  28165. + ;;
  28166. +
  28167. + execute)
  28168. + $ECHO \
  28169. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  28170. +
  28171. +Automatically set library path, then run a program.
  28172. +
  28173. +This mode accepts the following additional options:
  28174. +
  28175. + -dlopen FILE add the directory containing FILE to the library path
  28176. +
  28177. +This mode sets the library path environment variable according to \`-dlopen'
  28178. +flags.
  28179. +
  28180. +If any of the ARGS are libtool executable wrappers, then they are translated
  28181. +into their corresponding uninstalled binary, and any of their required library
  28182. +directories are added to the library path.
  28183. +
  28184. +Then, COMMAND is executed, with ARGS as arguments."
  28185. + ;;
  28186. +
  28187. + finish)
  28188. + $ECHO \
  28189. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  28190. +
  28191. +Complete the installation of libtool libraries.
  28192. +
  28193. +Each LIBDIR is a directory that contains libtool libraries.
  28194. +
  28195. +The commands that this mode executes may require superuser privileges. Use
  28196. +the \`--dry-run' option if you just want to see what would be executed."
  28197. + ;;
  28198. +
  28199. + install)
  28200. + $ECHO \
  28201. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  28202. +
  28203. +Install executables or libraries.
  28204. +
  28205. +INSTALL-COMMAND is the installation command. The first component should be
  28206. +either the \`install' or \`cp' program.
  28207. +
  28208. +The following components of INSTALL-COMMAND are treated specially:
  28209. +
  28210. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  28211. +
  28212. +The rest of the components are interpreted as arguments to that command (only
  28213. +BSD-compatible install options are recognized)."
  28214. + ;;
  28215. +
  28216. + link)
  28217. + $ECHO \
  28218. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  28219. +
  28220. +Link object files or libraries together to form another library, or to
  28221. +create an executable program.
  28222. +
  28223. +LINK-COMMAND is a command using the C compiler that you would use to create
  28224. +a program from several object files.
  28225. +
  28226. +The following components of LINK-COMMAND are treated specially:
  28227. +
  28228. + -all-static do not do any dynamic linking at all
  28229. + -avoid-version do not add a version suffix if possible
  28230. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  28231. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  28232. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  28233. + -export-symbols SYMFILE
  28234. + try to export only the symbols listed in SYMFILE
  28235. + -export-symbols-regex REGEX
  28236. + try to export only the symbols matching REGEX
  28237. + -LLIBDIR search LIBDIR for required installed libraries
  28238. + -lNAME OUTPUT-FILE requires the installed library libNAME
  28239. + -module build a library that can dlopened
  28240. + -no-fast-install disable the fast-install mode
  28241. + -no-install link a not-installable executable
  28242. + -no-undefined declare that a library does not refer to external symbols
  28243. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  28244. + -objectlist FILE Use a list of object files found in FILE to specify objects
  28245. + -precious-files-regex REGEX
  28246. + don't remove output files matching REGEX
  28247. + -release RELEASE specify package release information
  28248. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  28249. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  28250. + -shared only do dynamic linking of libtool libraries
  28251. + -shrext SUFFIX override the standard shared library file extension
  28252. + -static do not do any dynamic linking of uninstalled libtool libraries
  28253. + -static-libtool-libs
  28254. + do not do any dynamic linking of libtool libraries
  28255. + -version-info CURRENT[:REVISION[:AGE]]
  28256. + specify library version info [each variable defaults to 0]
  28257. + -weak LIBNAME declare that the target provides the LIBNAME interface
  28258. +
  28259. +All other options (arguments beginning with \`-') are ignored.
  28260. +
  28261. +Every other argument is treated as a filename. Files ending in \`.la' are
  28262. +treated as uninstalled libtool libraries, other files are standard or library
  28263. +object files.
  28264. +
  28265. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  28266. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  28267. +required, except when creating a convenience library.
  28268. +
  28269. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  28270. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  28271. +
  28272. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  28273. +is created, otherwise an executable program is created."
  28274. + ;;
  28275. +
  28276. + uninstall)
  28277. + $ECHO \
  28278. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  28279. +
  28280. +Remove libraries from an installation directory.
  28281. +
  28282. +RM is the name of the program to use to delete files associated with each FILE
  28283. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  28284. +to RM.
  28285. +
  28286. +If FILE is a libtool library, all the files associated with it are deleted.
  28287. +Otherwise, only FILE itself is deleted using RM."
  28288. + ;;
  28289. +
  28290. + *)
  28291. + func_fatal_help "invalid operation mode \`$mode'"
  28292. + ;;
  28293. + esac
  28294. +
  28295. + $ECHO
  28296. + $ECHO "Try \`$progname --help' for more information about other modes."
  28297. +
  28298. + exit $?
  28299. +}
  28300. +
  28301. + # Now that we've collected a possible --mode arg, show help if necessary
  28302. + $opt_help && func_mode_help
  28303. +
  28304. +
  28305. +# func_mode_execute arg...
  28306. +func_mode_execute ()
  28307. +{
  28308. + $opt_debug
  28309. + # The first argument is the command name.
  28310. + cmd="$nonopt"
  28311. + test -z "$cmd" && \
  28312. + func_fatal_help "you must specify a COMMAND"
  28313. +
  28314. + # Handle -dlopen flags immediately.
  28315. + for file in $execute_dlfiles; do
  28316. + test -f "$file" \
  28317. + || func_fatal_help "\`$file' is not a file"
  28318. +
  28319. + dir=
  28320. + case $file in
  28321. + *.la)
  28322. + # Check to see that this really is a libtool archive.
  28323. + func_lalib_unsafe_p "$file" \
  28324. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  28325. +
  28326. + # Read the libtool library.
  28327. + dlname=
  28328. + library_names=
  28329. + func_source "$file"
  28330. +
  28331. + # Skip this library if it cannot be dlopened.
  28332. + if test -z "$dlname"; then
  28333. + # Warn if it was a shared library.
  28334. + test -n "$library_names" && \
  28335. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  28336. + continue
  28337. + fi
  28338. +
  28339. + func_dirname "$file" "" "."
  28340. + dir="$func_dirname_result"
  28341. +
  28342. + if test -f "$dir/$objdir/$dlname"; then
  28343. + dir="$dir/$objdir"
  28344. + else
  28345. + if test ! -f "$dir/$dlname"; then
  28346. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  28347. + fi
  28348. + fi
  28349. + ;;
  28350. +
  28351. + *.lo)
  28352. + # Just add the directory containing the .lo file.
  28353. + func_dirname "$file" "" "."
  28354. + dir="$func_dirname_result"
  28355. + ;;
  28356. +
  28357. + *)
  28358. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  28359. + continue
  28360. + ;;
  28361. + esac
  28362. +
  28363. + # Get the absolute pathname.
  28364. + absdir=`cd "$dir" && pwd`
  28365. + test -n "$absdir" && dir="$absdir"
  28366. +
  28367. + # Now add the directory to shlibpath_var.
  28368. + if eval "test -z \"\$$shlibpath_var\""; then
  28369. + eval "$shlibpath_var=\"\$dir\""
  28370. + else
  28371. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  28372. + fi
  28373. + done
  28374. +
  28375. + # This variable tells wrapper scripts just to set shlibpath_var
  28376. + # rather than running their programs.
  28377. + libtool_execute_magic="$magic"
  28378. +
  28379. + # Check if any of the arguments is a wrapper script.
  28380. + args=
  28381. + for file
  28382. + do
  28383. + case $file in
  28384. + -*) ;;
  28385. + *)
  28386. + # Do a test to see if this is really a libtool program.
  28387. + if func_ltwrapper_script_p "$file"; then
  28388. + func_source "$file"
  28389. + # Transform arg to wrapped name.
  28390. + file="$progdir/$program"
  28391. + elif func_ltwrapper_executable_p "$file"; then
  28392. + func_ltwrapper_scriptname "$file"
  28393. + func_source "$func_ltwrapper_scriptname_result"
  28394. + # Transform arg to wrapped name.
  28395. + file="$progdir/$program"
  28396. + fi
  28397. + ;;
  28398. + esac
  28399. + # Quote arguments (to preserve shell metacharacters).
  28400. + func_quote_for_eval "$file"
  28401. + args="$args $func_quote_for_eval_result"
  28402. + done
  28403. +
  28404. + if test "X$opt_dry_run" = Xfalse; then
  28405. + if test -n "$shlibpath_var"; then
  28406. + # Export the shlibpath_var.
  28407. + eval "export $shlibpath_var"
  28408. + fi
  28409. +
  28410. + # Restore saved environment variables
  28411. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  28412. + do
  28413. + eval "if test \"\${save_$lt_var+set}\" = set; then
  28414. + $lt_var=\$save_$lt_var; export $lt_var
  28415. + else
  28416. + $lt_unset $lt_var
  28417. + fi"
  28418. + done
  28419. +
  28420. + # Now prepare to actually exec the command.
  28421. + exec_cmd="\$cmd$args"
  28422. + else
  28423. + # Display what would be done.
  28424. + if test -n "$shlibpath_var"; then
  28425. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  28426. + $ECHO "export $shlibpath_var"
  28427. + fi
  28428. + $ECHO "$cmd$args"
  28429. + exit $EXIT_SUCCESS
  28430. + fi
  28431. +}
  28432. +
  28433. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  28434. +
  28435. +
  28436. +# func_mode_finish arg...
  28437. +func_mode_finish ()
  28438. +{
  28439. + $opt_debug
  28440. + libdirs="$nonopt"
  28441. + admincmds=
  28442. +
  28443. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  28444. + for dir
  28445. + do
  28446. + libdirs="$libdirs $dir"
  28447. + done
  28448. +
  28449. + for libdir in $libdirs; do
  28450. + if test -n "$finish_cmds"; then
  28451. + # Do each command in the finish commands.
  28452. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  28453. +'"$cmd"'"'
  28454. + fi
  28455. + if test -n "$finish_eval"; then
  28456. + # Do the single finish_eval.
  28457. + eval cmds=\"$finish_eval\"
  28458. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  28459. + $cmds"
  28460. + fi
  28461. + done
  28462. + fi
  28463. +
  28464. + # Exit here if they wanted silent mode.
  28465. + $opt_silent && exit $EXIT_SUCCESS
  28466. +
  28467. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  28468. + $ECHO "Libraries have been installed in:"
  28469. + for libdir in $libdirs; do
  28470. + $ECHO " $libdir"
  28471. + done
  28472. + $ECHO
  28473. + $ECHO "If you ever happen to want to link against installed libraries"
  28474. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  28475. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  28476. + $ECHO "flag during linking and do at least one of the following:"
  28477. + if test -n "$shlibpath_var"; then
  28478. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  28479. + $ECHO " during execution"
  28480. + fi
  28481. + if test -n "$runpath_var"; then
  28482. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  28483. + $ECHO " during linking"
  28484. + fi
  28485. + if test -n "$hardcode_libdir_flag_spec"; then
  28486. + libdir=LIBDIR
  28487. + eval flag=\"$hardcode_libdir_flag_spec\"
  28488. +
  28489. + $ECHO " - use the \`$flag' linker flag"
  28490. + fi
  28491. + if test -n "$admincmds"; then
  28492. + $ECHO " - have your system administrator run these commands:$admincmds"
  28493. + fi
  28494. + if test -f /etc/ld.so.conf; then
  28495. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  28496. + fi
  28497. + $ECHO
  28498. +
  28499. + $ECHO "See any operating system documentation about shared libraries for"
  28500. + case $host in
  28501. + solaris2.[6789]|solaris2.1[0-9])
  28502. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  28503. + $ECHO "pages."
  28504. + ;;
  28505. + *)
  28506. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  28507. + ;;
  28508. + esac
  28509. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  28510. + exit $EXIT_SUCCESS
  28511. +}
  28512. +
  28513. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  28514. +
  28515. +
  28516. +# func_mode_install arg...
  28517. +func_mode_install ()
  28518. +{
  28519. + $opt_debug
  28520. + # There may be an optional sh(1) argument at the beginning of
  28521. + # install_prog (especially on Windows NT).
  28522. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  28523. + # Allow the use of GNU shtool's install command.
  28524. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  28525. + # Aesthetically quote it.
  28526. + func_quote_for_eval "$nonopt"
  28527. + install_prog="$func_quote_for_eval_result "
  28528. + arg=$1
  28529. + shift
  28530. + else
  28531. + install_prog=
  28532. + arg=$nonopt
  28533. + fi
  28534. +
  28535. + # The real first argument should be the name of the installation program.
  28536. + # Aesthetically quote it.
  28537. + func_quote_for_eval "$arg"
  28538. + install_prog="$install_prog$func_quote_for_eval_result"
  28539. +
  28540. + # We need to accept at least all the BSD install flags.
  28541. + dest=
  28542. + files=
  28543. + opts=
  28544. + prev=
  28545. + install_type=
  28546. + isdir=no
  28547. + stripme=
  28548. + for arg
  28549. + do
  28550. + if test -n "$dest"; then
  28551. + files="$files $dest"
  28552. + dest=$arg
  28553. + continue
  28554. + fi
  28555. +
  28556. + case $arg in
  28557. + -d) isdir=yes ;;
  28558. + -f)
  28559. + case " $install_prog " in
  28560. + *[\\\ /]cp\ *) ;;
  28561. + *) prev=$arg ;;
  28562. + esac
  28563. + ;;
  28564. + -g | -m | -o)
  28565. + prev=$arg
  28566. + ;;
  28567. + -s)
  28568. + stripme=" -s"
  28569. + continue
  28570. + ;;
  28571. + -*)
  28572. + ;;
  28573. + *)
  28574. + # If the previous option needed an argument, then skip it.
  28575. + if test -n "$prev"; then
  28576. + prev=
  28577. + else
  28578. + dest=$arg
  28579. + continue
  28580. + fi
  28581. + ;;
  28582. + esac
  28583. +
  28584. + # Aesthetically quote the argument.
  28585. + func_quote_for_eval "$arg"
  28586. + install_prog="$install_prog $func_quote_for_eval_result"
  28587. + done
  28588. +
  28589. + test -z "$install_prog" && \
  28590. + func_fatal_help "you must specify an install program"
  28591. +
  28592. + test -n "$prev" && \
  28593. + func_fatal_help "the \`$prev' option requires an argument"
  28594. +
  28595. + if test -z "$files"; then
  28596. + if test -z "$dest"; then
  28597. + func_fatal_help "no file or destination specified"
  28598. + else
  28599. + func_fatal_help "you must specify a destination"
  28600. + fi
  28601. + fi
  28602. +
  28603. + # Strip any trailing slash from the destination.
  28604. + func_stripname '' '/' "$dest"
  28605. + dest=$func_stripname_result
  28606. +
  28607. + # Check to see that the destination is a directory.
  28608. + test -d "$dest" && isdir=yes
  28609. + if test "$isdir" = yes; then
  28610. + destdir="$dest"
  28611. + destname=
  28612. + else
  28613. + func_dirname_and_basename "$dest" "" "."
  28614. + destdir="$func_dirname_result"
  28615. + destname="$func_basename_result"
  28616. +
  28617. + # Not a directory, so check to see that there is only one file specified.
  28618. + set dummy $files; shift
  28619. + test "$#" -gt 1 && \
  28620. + func_fatal_help "\`$dest' is not a directory"
  28621. + fi
  28622. + case $destdir in
  28623. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  28624. + *)
  28625. + for file in $files; do
  28626. + case $file in
  28627. + *.lo) ;;
  28628. + *)
  28629. + func_fatal_help "\`$destdir' must be an absolute directory name"
  28630. + ;;
  28631. + esac
  28632. + done
  28633. + ;;
  28634. + esac
  28635. +
  28636. + # This variable tells wrapper scripts just to set variables rather
  28637. + # than running their programs.
  28638. + libtool_install_magic="$magic"
  28639. +
  28640. + staticlibs=
  28641. + future_libdirs=
  28642. + current_libdirs=
  28643. + for file in $files; do
  28644. +
  28645. + # Do each installation.
  28646. + case $file in
  28647. + *.$libext)
  28648. + # Do the static libraries later.
  28649. + staticlibs="$staticlibs $file"
  28650. + ;;
  28651. +
  28652. + *.la)
  28653. + # Check to see that this really is a libtool archive.
  28654. + func_lalib_unsafe_p "$file" \
  28655. + || func_fatal_help "\`$file' is not a valid libtool archive"
  28656. +
  28657. + library_names=
  28658. + old_library=
  28659. + relink_command=
  28660. + func_source "$file"
  28661. +
  28662. + # Add the libdir to current_libdirs if it is the destination.
  28663. + if test "X$destdir" = "X$libdir"; then
  28664. + case "$current_libdirs " in
  28665. + *" $libdir "*) ;;
  28666. + *) current_libdirs="$current_libdirs $libdir" ;;
  28667. + esac
  28668. + else
  28669. + # Note the libdir as a future libdir.
  28670. + case "$future_libdirs " in
  28671. + *" $libdir "*) ;;
  28672. + *) future_libdirs="$future_libdirs $libdir" ;;
  28673. + esac
  28674. + fi
  28675. +
  28676. + func_dirname "$file" "/" ""
  28677. + dir="$func_dirname_result"
  28678. + dir="$dir$objdir"
  28679. +
  28680. + if test -n "$relink_command"; then
  28681. + # Determine the prefix the user has applied to our future dir.
  28682. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  28683. +
  28684. + # Don't allow the user to place us outside of our expected
  28685. + # location b/c this prevents finding dependent libraries that
  28686. + # are installed to the same prefix.
  28687. + # At present, this check doesn't affect windows .dll's that
  28688. + # are installed into $libdir/../bin (currently, that works fine)
  28689. + # but it's something to keep an eye on.
  28690. + test "$inst_prefix_dir" = "$destdir" && \
  28691. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  28692. +
  28693. + if test -n "$inst_prefix_dir"; then
  28694. + # Stick the inst_prefix_dir data into the link command.
  28695. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  28696. + else
  28697. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  28698. + fi
  28699. +
  28700. + func_warning "relinking \`$file'"
  28701. + func_show_eval "$relink_command" \
  28702. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  28703. + fi
  28704. +
  28705. + # See the names of the shared library.
  28706. + set dummy $library_names; shift
  28707. + if test -n "$1"; then
  28708. + realname="$1"
  28709. + shift
  28710. +
  28711. + srcname="$realname"
  28712. + test -n "$relink_command" && srcname="$realname"T
  28713. +
  28714. + # Install the shared library and build the symlinks.
  28715. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  28716. + 'exit $?'
  28717. + tstripme="$stripme"
  28718. + case $host_os in
  28719. + cygwin* | mingw* | pw32* | cegcc*)
  28720. + case $realname in
  28721. + *.dll.a)
  28722. + tstripme=""
  28723. + ;;
  28724. + esac
  28725. + ;;
  28726. + esac
  28727. + if test -n "$tstripme" && test -n "$striplib"; then
  28728. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  28729. + fi
  28730. +
  28731. + if test "$#" -gt 0; then
  28732. + # Delete the old symlinks, and create new ones.
  28733. + # Try `ln -sf' first, because the `ln' binary might depend on
  28734. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  28735. + # so we also need to try rm && ln -s.
  28736. + for linkname
  28737. + do
  28738. + test "$linkname" != "$realname" \
  28739. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  28740. + done
  28741. + fi
  28742. +
  28743. + # Do each command in the postinstall commands.
  28744. + lib="$destdir/$realname"
  28745. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  28746. + fi
  28747. +
  28748. + # Install the pseudo-library for information purposes.
  28749. + func_basename "$file"
  28750. + name="$func_basename_result"
  28751. + instname="$dir/$name"i
  28752. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  28753. +
  28754. + # Maybe install the static library, too.
  28755. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  28756. + ;;
  28757. +
  28758. + *.lo)
  28759. + # Install (i.e. copy) a libtool object.
  28760. +
  28761. + # Figure out destination file name, if it wasn't already specified.
  28762. + if test -n "$destname"; then
  28763. + destfile="$destdir/$destname"
  28764. + else
  28765. + func_basename "$file"
  28766. + destfile="$func_basename_result"
  28767. + destfile="$destdir/$destfile"
  28768. + fi
  28769. +
  28770. + # Deduce the name of the destination old-style object file.
  28771. + case $destfile in
  28772. + *.lo)
  28773. + func_lo2o "$destfile"
  28774. + staticdest=$func_lo2o_result
  28775. + ;;
  28776. + *.$objext)
  28777. + staticdest="$destfile"
  28778. + destfile=
  28779. + ;;
  28780. + *)
  28781. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  28782. + ;;
  28783. + esac
  28784. +
  28785. + # Install the libtool object if requested.
  28786. + test -n "$destfile" && \
  28787. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  28788. +
  28789. + # Install the old object if enabled.
  28790. + if test "$build_old_libs" = yes; then
  28791. + # Deduce the name of the old-style object file.
  28792. + func_lo2o "$file"
  28793. + staticobj=$func_lo2o_result
  28794. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  28795. + fi
  28796. + exit $EXIT_SUCCESS
  28797. + ;;
  28798. +
  28799. + *)
  28800. + # Figure out destination file name, if it wasn't already specified.
  28801. + if test -n "$destname"; then
  28802. + destfile="$destdir/$destname"
  28803. + else
  28804. + func_basename "$file"
  28805. + destfile="$func_basename_result"
  28806. + destfile="$destdir/$destfile"
  28807. + fi
  28808. +
  28809. + # If the file is missing, and there is a .exe on the end, strip it
  28810. + # because it is most likely a libtool script we actually want to
  28811. + # install
  28812. + stripped_ext=""
  28813. + case $file in
  28814. + *.exe)
  28815. + if test ! -f "$file"; then
  28816. + func_stripname '' '.exe' "$file"
  28817. + file=$func_stripname_result
  28818. + stripped_ext=".exe"
  28819. + fi
  28820. + ;;
  28821. + esac
  28822. +
  28823. + # Do a test to see if this is really a libtool program.
  28824. + case $host in
  28825. + *cygwin* | *mingw*)
  28826. + if func_ltwrapper_executable_p "$file"; then
  28827. + func_ltwrapper_scriptname "$file"
  28828. + wrapper=$func_ltwrapper_scriptname_result
  28829. + else
  28830. + func_stripname '' '.exe' "$file"
  28831. + wrapper=$func_stripname_result
  28832. + fi
  28833. + ;;
  28834. + *)
  28835. + wrapper=$file
  28836. + ;;
  28837. + esac
  28838. + if func_ltwrapper_script_p "$wrapper"; then
  28839. + notinst_deplibs=
  28840. + relink_command=
  28841. +
  28842. + func_source "$wrapper"
  28843. +
  28844. + # Check the variables that should have been set.
  28845. + test -z "$generated_by_libtool_version" && \
  28846. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  28847. +
  28848. + finalize=yes
  28849. + for lib in $notinst_deplibs; do
  28850. + # Check to see that each library is installed.
  28851. + libdir=
  28852. + if test -f "$lib"; then
  28853. + func_source "$lib"
  28854. + fi
  28855. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  28856. + if test -n "$libdir" && test ! -f "$libfile"; then
  28857. + func_warning "\`$lib' has not been installed in \`$libdir'"
  28858. + finalize=no
  28859. + fi
  28860. + done
  28861. +
  28862. + relink_command=
  28863. + func_source "$wrapper"
  28864. +
  28865. + outputname=
  28866. + if test "$fast_install" = no && test -n "$relink_command"; then
  28867. + $opt_dry_run || {
  28868. + if test "$finalize" = yes; then
  28869. + tmpdir=`func_mktempdir`
  28870. + func_basename "$file$stripped_ext"
  28871. + file="$func_basename_result"
  28872. + outputname="$tmpdir/$file"
  28873. + # Replace the output file specification.
  28874. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  28875. +
  28876. + $opt_silent || {
  28877. + func_quote_for_expand "$relink_command"
  28878. + eval "func_echo $func_quote_for_expand_result"
  28879. + }
  28880. + if eval "$relink_command"; then :
  28881. + else
  28882. + func_error "error: relink \`$file' with the above command before installing it"
  28883. + $opt_dry_run || ${RM}r "$tmpdir"
  28884. + continue
  28885. + fi
  28886. + file="$outputname"
  28887. + else
  28888. + func_warning "cannot relink \`$file'"
  28889. + fi
  28890. + }
  28891. + else
  28892. + # Install the binary that we compiled earlier.
  28893. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  28894. + fi
  28895. + fi
  28896. +
  28897. + # remove .exe since cygwin /usr/bin/install will append another
  28898. + # one anyway
  28899. + case $install_prog,$host in
  28900. + */usr/bin/install*,*cygwin*)
  28901. + case $file:$destfile in
  28902. + *.exe:*.exe)
  28903. + # this is ok
  28904. + ;;
  28905. + *.exe:*)
  28906. + destfile=$destfile.exe
  28907. + ;;
  28908. + *:*.exe)
  28909. + func_stripname '' '.exe' "$destfile"
  28910. + destfile=$func_stripname_result
  28911. + ;;
  28912. + esac
  28913. + ;;
  28914. + esac
  28915. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  28916. + $opt_dry_run || if test -n "$outputname"; then
  28917. + ${RM}r "$tmpdir"
  28918. + fi
  28919. + ;;
  28920. + esac
  28921. + done
  28922. +
  28923. + for file in $staticlibs; do
  28924. + func_basename "$file"
  28925. + name="$func_basename_result"
  28926. +
  28927. + # Set up the ranlib parameters.
  28928. + oldlib="$destdir/$name"
  28929. +
  28930. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  28931. +
  28932. + if test -n "$stripme" && test -n "$old_striplib"; then
  28933. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  28934. + fi
  28935. +
  28936. + # Do each command in the postinstall commands.
  28937. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  28938. + done
  28939. +
  28940. + test -n "$future_libdirs" && \
  28941. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  28942. +
  28943. + if test -n "$current_libdirs"; then
  28944. + # Maybe just do a dry run.
  28945. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  28946. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  28947. + else
  28948. + exit $EXIT_SUCCESS
  28949. + fi
  28950. +}
  28951. +
  28952. +test "$mode" = install && func_mode_install ${1+"$@"}
  28953. +
  28954. +
  28955. +# func_generate_dlsyms outputname originator pic_p
  28956. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  28957. +# a dlpreopen symbol table.
  28958. +func_generate_dlsyms ()
  28959. +{
  28960. + $opt_debug
  28961. + my_outputname="$1"
  28962. + my_originator="$2"
  28963. + my_pic_p="${3-no}"
  28964. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  28965. + my_dlsyms=
  28966. +
  28967. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  28968. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  28969. + my_dlsyms="${my_outputname}S.c"
  28970. + else
  28971. + func_error "not configured to extract global symbols from dlpreopened files"
  28972. + fi
  28973. + fi
  28974. +
  28975. + if test -n "$my_dlsyms"; then
  28976. + case $my_dlsyms in
  28977. + "") ;;
  28978. + *.c)
  28979. + # Discover the nlist of each of the dlfiles.
  28980. + nlist="$output_objdir/${my_outputname}.nm"
  28981. +
  28982. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  28983. +
  28984. + # Parse the name list into a source file.
  28985. + func_verbose "creating $output_objdir/$my_dlsyms"
  28986. +
  28987. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  28988. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  28989. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  28990. +
  28991. +#ifdef __cplusplus
  28992. +extern \"C\" {
  28993. +#endif
  28994. +
  28995. +/* External symbol declarations for the compiler. */\
  28996. +"
  28997. +
  28998. + if test "$dlself" = yes; then
  28999. + func_verbose "generating symbol list for \`$output'"
  29000. +
  29001. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  29002. +
  29003. + # Add our own program objects to the symbol list.
  29004. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  29005. + for progfile in $progfiles; do
  29006. + func_verbose "extracting global C symbols from \`$progfile'"
  29007. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  29008. + done
  29009. +
  29010. + if test -n "$exclude_expsyms"; then
  29011. + $opt_dry_run || {
  29012. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  29013. + eval '$MV "$nlist"T "$nlist"'
  29014. + }
  29015. + fi
  29016. +
  29017. + if test -n "$export_symbols_regex"; then
  29018. + $opt_dry_run || {
  29019. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  29020. + eval '$MV "$nlist"T "$nlist"'
  29021. + }
  29022. + fi
  29023. +
  29024. + # Prepare the list of exported symbols
  29025. + if test -z "$export_symbols"; then
  29026. + export_symbols="$output_objdir/$outputname.exp"
  29027. + $opt_dry_run || {
  29028. + $RM $export_symbols
  29029. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  29030. + case $host in
  29031. + *cygwin* | *mingw* | *cegcc* )
  29032. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  29033. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  29034. + ;;
  29035. + esac
  29036. + }
  29037. + else
  29038. + $opt_dry_run || {
  29039. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  29040. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  29041. + eval '$MV "$nlist"T "$nlist"'
  29042. + case $host in
  29043. + *cygwin | *mingw* | *cegcc* )
  29044. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  29045. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  29046. + ;;
  29047. + esac
  29048. + }
  29049. + fi
  29050. + fi
  29051. +
  29052. + for dlprefile in $dlprefiles; do
  29053. + func_verbose "extracting global C symbols from \`$dlprefile'"
  29054. + func_basename "$dlprefile"
  29055. + name="$func_basename_result"
  29056. + $opt_dry_run || {
  29057. + eval '$ECHO ": $name " >> "$nlist"'
  29058. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  29059. + }
  29060. + done
  29061. +
  29062. + $opt_dry_run || {
  29063. + # Make sure we have at least an empty file.
  29064. + test -f "$nlist" || : > "$nlist"
  29065. +
  29066. + if test -n "$exclude_expsyms"; then
  29067. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  29068. + $MV "$nlist"T "$nlist"
  29069. + fi
  29070. +
  29071. + # Try sorting and uniquifying the output.
  29072. + if $GREP -v "^: " < "$nlist" |
  29073. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  29074. + sort -k 3
  29075. + else
  29076. + sort +2
  29077. + fi |
  29078. + uniq > "$nlist"S; then
  29079. + :
  29080. + else
  29081. + $GREP -v "^: " < "$nlist" > "$nlist"S
  29082. + fi
  29083. +
  29084. + if test -f "$nlist"S; then
  29085. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  29086. + else
  29087. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  29088. + fi
  29089. +
  29090. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  29091. +
  29092. +/* The mapping between symbol names and symbols. */
  29093. +typedef struct {
  29094. + const char *name;
  29095. + void *address;
  29096. +} lt_dlsymlist;
  29097. +"
  29098. + case $host in
  29099. + *cygwin* | *mingw* | *cegcc* )
  29100. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  29101. +/* DATA imports from DLLs on WIN32 con't be const, because
  29102. + runtime relocations are performed -- see ld's documentation
  29103. + on pseudo-relocs. */"
  29104. + lt_dlsym_const= ;;
  29105. + *osf5*)
  29106. + echo >> "$output_objdir/$my_dlsyms" "\
  29107. +/* This system does not cope well with relocations in const data */"
  29108. + lt_dlsym_const= ;;
  29109. + *)
  29110. + lt_dlsym_const=const ;;
  29111. + esac
  29112. +
  29113. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  29114. +extern $lt_dlsym_const lt_dlsymlist
  29115. +lt_${my_prefix}_LTX_preloaded_symbols[];
  29116. +$lt_dlsym_const lt_dlsymlist
  29117. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  29118. +{\
  29119. + { \"$my_originator\", (void *) 0 },"
  29120. +
  29121. + case $need_lib_prefix in
  29122. + no)
  29123. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  29124. + ;;
  29125. + *)
  29126. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  29127. + ;;
  29128. + esac
  29129. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  29130. + {0, (void *) 0}
  29131. +};
  29132. +
  29133. +/* This works around a problem in FreeBSD linker */
  29134. +#ifdef FREEBSD_WORKAROUND
  29135. +static const void *lt_preloaded_setup() {
  29136. + return lt_${my_prefix}_LTX_preloaded_symbols;
  29137. +}
  29138. +#endif
  29139. +
  29140. +#ifdef __cplusplus
  29141. +}
  29142. +#endif\
  29143. +"
  29144. + } # !$opt_dry_run
  29145. +
  29146. + pic_flag_for_symtable=
  29147. + case "$compile_command " in
  29148. + *" -static "*) ;;
  29149. + *)
  29150. + case $host in
  29151. + # compiling the symbol table file with pic_flag works around
  29152. + # a FreeBSD bug that causes programs to crash when -lm is
  29153. + # linked before any other PIC object. But we must not use
  29154. + # pic_flag when linking with -static. The problem exists in
  29155. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  29156. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  29157. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  29158. + *-*-hpux*)
  29159. + pic_flag_for_symtable=" $pic_flag" ;;
  29160. + *)
  29161. + if test "X$my_pic_p" != Xno; then
  29162. + pic_flag_for_symtable=" $pic_flag"
  29163. + fi
  29164. + ;;
  29165. + esac
  29166. + ;;
  29167. + esac
  29168. + symtab_cflags=
  29169. + for arg in $LTCFLAGS; do
  29170. + case $arg in
  29171. + -pie | -fpie | -fPIE) ;;
  29172. + *) symtab_cflags="$symtab_cflags $arg" ;;
  29173. + esac
  29174. + done
  29175. +
  29176. + # Now compile the dynamic symbol file.
  29177. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  29178. +
  29179. + # Clean up the generated files.
  29180. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  29181. +
  29182. + # Transform the symbol file into the correct name.
  29183. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  29184. + case $host in
  29185. + *cygwin* | *mingw* | *cegcc* )
  29186. + if test -f "$output_objdir/$my_outputname.def"; then
  29187. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  29188. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  29189. + else
  29190. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  29191. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  29192. + fi
  29193. + ;;
  29194. + *)
  29195. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  29196. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  29197. + ;;
  29198. + esac
  29199. + ;;
  29200. + *)
  29201. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  29202. + ;;
  29203. + esac
  29204. + else
  29205. + # We keep going just in case the user didn't refer to
  29206. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  29207. + # really was required.
  29208. +
  29209. + # Nullify the symbol file.
  29210. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  29211. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  29212. + fi
  29213. +}
  29214. +
  29215. +# func_win32_libid arg
  29216. +# return the library type of file 'arg'
  29217. +#
  29218. +# Need a lot of goo to handle *both* DLLs and import libs
  29219. +# Has to be a shell function in order to 'eat' the argument
  29220. +# that is supplied when $file_magic_command is called.
  29221. +func_win32_libid ()
  29222. +{
  29223. + $opt_debug
  29224. + win32_libid_type="unknown"
  29225. + win32_fileres=`file -L $1 2>/dev/null`
  29226. + case $win32_fileres in
  29227. + *ar\ archive\ import\ library*) # definitely import
  29228. + win32_libid_type="x86 archive import"
  29229. + ;;
  29230. + *ar\ archive*) # could be an import, or static
  29231. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  29232. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  29233. + win32_nmres=`eval $NM -f posix -A $1 |
  29234. + $SED -n -e '
  29235. + 1,100{
  29236. + / I /{
  29237. + s,.*,import,
  29238. + p
  29239. + q
  29240. + }
  29241. + }'`
  29242. + case $win32_nmres in
  29243. + import*) win32_libid_type="x86 archive import";;
  29244. + *) win32_libid_type="x86 archive static";;
  29245. + esac
  29246. + fi
  29247. + ;;
  29248. + *DLL*)
  29249. + win32_libid_type="x86 DLL"
  29250. + ;;
  29251. + *executable*) # but shell scripts are "executable" too...
  29252. + case $win32_fileres in
  29253. + *MS\ Windows\ PE\ Intel*)
  29254. + win32_libid_type="x86 DLL"
  29255. + ;;
  29256. + esac
  29257. + ;;
  29258. + esac
  29259. + $ECHO "$win32_libid_type"
  29260. +}
  29261. +
  29262. +
  29263. +
  29264. +# func_extract_an_archive dir oldlib
  29265. +func_extract_an_archive ()
  29266. +{
  29267. + $opt_debug
  29268. + f_ex_an_ar_dir="$1"; shift
  29269. + f_ex_an_ar_oldlib="$1"
  29270. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  29271. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  29272. + :
  29273. + else
  29274. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  29275. + fi
  29276. +}
  29277. +
  29278. +
  29279. +# func_extract_archives gentop oldlib ...
  29280. +func_extract_archives ()
  29281. +{
  29282. + $opt_debug
  29283. + my_gentop="$1"; shift
  29284. + my_oldlibs=${1+"$@"}
  29285. + my_oldobjs=""
  29286. + my_xlib=""
  29287. + my_xabs=""
  29288. + my_xdir=""
  29289. +
  29290. + for my_xlib in $my_oldlibs; do
  29291. + # Extract the objects.
  29292. + case $my_xlib in
  29293. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  29294. + *) my_xabs=`pwd`"/$my_xlib" ;;
  29295. + esac
  29296. + func_basename "$my_xlib"
  29297. + my_xlib="$func_basename_result"
  29298. + my_xlib_u=$my_xlib
  29299. + while :; do
  29300. + case " $extracted_archives " in
  29301. + *" $my_xlib_u "*)
  29302. + func_arith $extracted_serial + 1
  29303. + extracted_serial=$func_arith_result
  29304. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  29305. + *) break ;;
  29306. + esac
  29307. + done
  29308. + extracted_archives="$extracted_archives $my_xlib_u"
  29309. + my_xdir="$my_gentop/$my_xlib_u"
  29310. +
  29311. + func_mkdir_p "$my_xdir"
  29312. +
  29313. + case $host in
  29314. + *-darwin*)
  29315. + func_verbose "Extracting $my_xabs"
  29316. + # Do not bother doing anything if just a dry run
  29317. + $opt_dry_run || {
  29318. + darwin_orig_dir=`pwd`
  29319. + cd $my_xdir || exit $?
  29320. + darwin_archive=$my_xabs
  29321. + darwin_curdir=`pwd`
  29322. + darwin_base_archive=`basename "$darwin_archive"`
  29323. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  29324. + if test -n "$darwin_arches"; then
  29325. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  29326. + darwin_arch=
  29327. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  29328. + for darwin_arch in $darwin_arches ; do
  29329. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  29330. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  29331. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  29332. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  29333. + cd "$darwin_curdir"
  29334. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  29335. + done # $darwin_arches
  29336. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  29337. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  29338. + darwin_file=
  29339. + darwin_files=
  29340. + for darwin_file in $darwin_filelist; do
  29341. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  29342. + $LIPO -create -output "$darwin_file" $darwin_files
  29343. + done # $darwin_filelist
  29344. + $RM -rf unfat-$$
  29345. + cd "$darwin_orig_dir"
  29346. + else
  29347. + cd $darwin_orig_dir
  29348. + func_extract_an_archive "$my_xdir" "$my_xabs"
  29349. + fi # $darwin_arches
  29350. + } # !$opt_dry_run
  29351. + ;;
  29352. + *)
  29353. + func_extract_an_archive "$my_xdir" "$my_xabs"
  29354. + ;;
  29355. + esac
  29356. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  29357. + done
  29358. +
  29359. + func_extract_archives_result="$my_oldobjs"
  29360. +}
  29361. +
  29362. +
  29363. +
  29364. +# func_emit_wrapper_part1 [arg=no]
  29365. +#
  29366. +# Emit the first part of a libtool wrapper script on stdout.
  29367. +# For more information, see the description associated with
  29368. +# func_emit_wrapper(), below.
  29369. +func_emit_wrapper_part1 ()
  29370. +{
  29371. + func_emit_wrapper_part1_arg1=no
  29372. + if test -n "$1" ; then
  29373. + func_emit_wrapper_part1_arg1=$1
  29374. + fi
  29375. +
  29376. + $ECHO "\
  29377. +#! $SHELL
  29378. +
  29379. +# $output - temporary wrapper script for $objdir/$outputname
  29380. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  29381. +#
  29382. +# The $output program cannot be directly executed until all the libtool
  29383. +# libraries that it depends on are installed.
  29384. +#
  29385. +# This wrapper script should never be moved out of the build directory.
  29386. +# If it is, it will not operate correctly.
  29387. +
  29388. +# Sed substitution that helps us do robust quoting. It backslashifies
  29389. +# metacharacters that are still active within double-quoted strings.
  29390. +Xsed='${SED} -e 1s/^X//'
  29391. +sed_quote_subst='$sed_quote_subst'
  29392. +
  29393. +# Be Bourne compatible
  29394. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  29395. + emulate sh
  29396. + NULLCMD=:
  29397. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  29398. + # is contrary to our usage. Disable this feature.
  29399. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  29400. + setopt NO_GLOB_SUBST
  29401. +else
  29402. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  29403. +fi
  29404. +BIN_SH=xpg4; export BIN_SH # for Tru64
  29405. +DUALCASE=1; export DUALCASE # for MKS sh
  29406. +
  29407. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  29408. +# if CDPATH is set.
  29409. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29410. +
  29411. +relink_command=\"$relink_command\"
  29412. +
  29413. +# This environment variable determines our operation mode.
  29414. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  29415. + # install mode needs the following variables:
  29416. + generated_by_libtool_version='$macro_version'
  29417. + notinst_deplibs='$notinst_deplibs'
  29418. +else
  29419. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  29420. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  29421. + ECHO=\"$qecho\"
  29422. + file=\"\$0\"
  29423. + # Make sure echo works.
  29424. + if test \"X\$1\" = X--no-reexec; then
  29425. + # Discard the --no-reexec flag, and continue.
  29426. + shift
  29427. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  29428. + # Yippee, \$ECHO works!
  29429. + :
  29430. + else
  29431. + # Restart under the correct shell, and then maybe \$ECHO will work.
  29432. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  29433. + fi
  29434. + fi\
  29435. +"
  29436. + $ECHO "\
  29437. +
  29438. + # Find the directory that this script lives in.
  29439. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  29440. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  29441. +
  29442. + # Follow symbolic links until we get to the real thisdir.
  29443. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  29444. + while test -n \"\$file\"; do
  29445. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  29446. +
  29447. + # If there was a directory component, then change thisdir.
  29448. + if test \"x\$destdir\" != \"x\$file\"; then
  29449. + case \"\$destdir\" in
  29450. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  29451. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  29452. + esac
  29453. + fi
  29454. +
  29455. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  29456. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  29457. + done
  29458. +"
  29459. +}
  29460. +# end: func_emit_wrapper_part1
  29461. +
  29462. +# func_emit_wrapper_part2 [arg=no]
  29463. +#
  29464. +# Emit the second part of a libtool wrapper script on stdout.
  29465. +# For more information, see the description associated with
  29466. +# func_emit_wrapper(), below.
  29467. +func_emit_wrapper_part2 ()
  29468. +{
  29469. + func_emit_wrapper_part2_arg1=no
  29470. + if test -n "$1" ; then
  29471. + func_emit_wrapper_part2_arg1=$1
  29472. + fi
  29473. +
  29474. + $ECHO "\
  29475. +
  29476. + # Usually 'no', except on cygwin/mingw when embedded into
  29477. + # the cwrapper.
  29478. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  29479. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  29480. + # special case for '.'
  29481. + if test \"\$thisdir\" = \".\"; then
  29482. + thisdir=\`pwd\`
  29483. + fi
  29484. + # remove .libs from thisdir
  29485. + case \"\$thisdir\" in
  29486. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  29487. + $objdir ) thisdir=. ;;
  29488. + esac
  29489. + fi
  29490. +
  29491. + # Try to get the absolute directory name.
  29492. + absdir=\`cd \"\$thisdir\" && pwd\`
  29493. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  29494. +"
  29495. +
  29496. + if test "$fast_install" = yes; then
  29497. + $ECHO "\
  29498. + program=lt-'$outputname'$exeext
  29499. + progdir=\"\$thisdir/$objdir\"
  29500. +
  29501. + if test ! -f \"\$progdir/\$program\" ||
  29502. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  29503. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  29504. +
  29505. + file=\"\$\$-\$program\"
  29506. +
  29507. + if test ! -d \"\$progdir\"; then
  29508. + $MKDIR \"\$progdir\"
  29509. + else
  29510. + $RM \"\$progdir/\$file\"
  29511. + fi"
  29512. +
  29513. + $ECHO "\
  29514. +
  29515. + # relink executable if necessary
  29516. + if test -n \"\$relink_command\"; then
  29517. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  29518. + else
  29519. + $ECHO \"\$relink_command_output\" >&2
  29520. + $RM \"\$progdir/\$file\"
  29521. + exit 1
  29522. + fi
  29523. + fi
  29524. +
  29525. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  29526. + { $RM \"\$progdir/\$program\";
  29527. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  29528. + $RM \"\$progdir/\$file\"
  29529. + fi"
  29530. + else
  29531. + $ECHO "\
  29532. + program='$outputname'
  29533. + progdir=\"\$thisdir/$objdir\"
  29534. +"
  29535. + fi
  29536. +
  29537. + $ECHO "\
  29538. +
  29539. + if test -f \"\$progdir/\$program\"; then"
  29540. +
  29541. + # Export our shlibpath_var if we have one.
  29542. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  29543. + $ECHO "\
  29544. + # Add our own library path to $shlibpath_var
  29545. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  29546. +
  29547. + # Some systems cannot cope with colon-terminated $shlibpath_var
  29548. + # The second colon is a workaround for a bug in BeOS R4 sed
  29549. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  29550. +
  29551. + export $shlibpath_var
  29552. +"
  29553. + fi
  29554. +
  29555. + # fixup the dll searchpath if we need to.
  29556. + if test -n "$dllsearchpath"; then
  29557. + $ECHO "\
  29558. + # Add the dll search path components to the executable PATH
  29559. + PATH=$dllsearchpath:\$PATH
  29560. +"
  29561. + fi
  29562. +
  29563. + $ECHO "\
  29564. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  29565. + # Run the actual program with our arguments.
  29566. +"
  29567. + case $host in
  29568. + # Backslashes separate directories on plain windows
  29569. + *-*-mingw | *-*-os2* | *-cegcc*)
  29570. + $ECHO "\
  29571. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  29572. +"
  29573. + ;;
  29574. +
  29575. + *)
  29576. + $ECHO "\
  29577. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  29578. +"
  29579. + ;;
  29580. + esac
  29581. + $ECHO "\
  29582. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  29583. + exit 1
  29584. + fi
  29585. + else
  29586. + # The program doesn't exist.
  29587. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  29588. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  29589. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  29590. + exit 1
  29591. + fi
  29592. +fi\
  29593. +"
  29594. +}
  29595. +# end: func_emit_wrapper_part2
  29596. +
  29597. +
  29598. +# func_emit_wrapper [arg=no]
  29599. +#
  29600. +# Emit a libtool wrapper script on stdout.
  29601. +# Don't directly open a file because we may want to
  29602. +# incorporate the script contents within a cygwin/mingw
  29603. +# wrapper executable. Must ONLY be called from within
  29604. +# func_mode_link because it depends on a number of variables
  29605. +# set therein.
  29606. +#
  29607. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  29608. +# variable will take. If 'yes', then the emitted script
  29609. +# will assume that the directory in which it is stored is
  29610. +# the $objdir directory. This is a cygwin/mingw-specific
  29611. +# behavior.
  29612. +func_emit_wrapper ()
  29613. +{
  29614. + func_emit_wrapper_arg1=no
  29615. + if test -n "$1" ; then
  29616. + func_emit_wrapper_arg1=$1
  29617. + fi
  29618. +
  29619. + # split this up so that func_emit_cwrapperexe_src
  29620. + # can call each part independently.
  29621. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  29622. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  29623. +}
  29624. +
  29625. +
  29626. +# func_to_host_path arg
  29627. +#
  29628. +# Convert paths to host format when used with build tools.
  29629. +# Intended for use with "native" mingw (where libtool itself
  29630. +# is running under the msys shell), or in the following cross-
  29631. +# build environments:
  29632. +# $build $host
  29633. +# mingw (msys) mingw [e.g. native]
  29634. +# cygwin mingw
  29635. +# *nix + wine mingw
  29636. +# where wine is equipped with the `winepath' executable.
  29637. +# In the native mingw case, the (msys) shell automatically
  29638. +# converts paths for any non-msys applications it launches,
  29639. +# but that facility isn't available from inside the cwrapper.
  29640. +# Similar accommodations are necessary for $host mingw and
  29641. +# $build cygwin. Calling this function does no harm for other
  29642. +# $host/$build combinations not listed above.
  29643. +#
  29644. +# ARG is the path (on $build) that should be converted to
  29645. +# the proper representation for $host. The result is stored
  29646. +# in $func_to_host_path_result.
  29647. +func_to_host_path ()
  29648. +{
  29649. + func_to_host_path_result="$1"
  29650. + if test -n "$1" ; then
  29651. + case $host in
  29652. + *mingw* )
  29653. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  29654. + case $build in
  29655. + *mingw* ) # actually, msys
  29656. + # awkward: cmd appends spaces to result
  29657. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  29658. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  29659. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  29660. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  29661. + $SED -e "$lt_sed_naive_backslashify"`
  29662. + ;;
  29663. + *cygwin* )
  29664. + func_to_host_path_tmp1=`cygpath -w "$1"`
  29665. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  29666. + $SED -e "$lt_sed_naive_backslashify"`
  29667. + ;;
  29668. + * )
  29669. + # Unfortunately, winepath does not exit with a non-zero
  29670. + # error code, so we are forced to check the contents of
  29671. + # stdout. On the other hand, if the command is not
  29672. + # found, the shell will set an exit code of 127 and print
  29673. + # *an error message* to stdout. So we must check for both
  29674. + # error code of zero AND non-empty stdout, which explains
  29675. + # the odd construction:
  29676. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  29677. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  29678. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  29679. + $SED -e "$lt_sed_naive_backslashify"`
  29680. + else
  29681. + # Allow warning below.
  29682. + func_to_host_path_result=""
  29683. + fi
  29684. + ;;
  29685. + esac
  29686. + if test -z "$func_to_host_path_result" ; then
  29687. + func_error "Could not determine host path corresponding to"
  29688. + func_error " '$1'"
  29689. + func_error "Continuing, but uninstalled executables may not work."
  29690. + # Fallback:
  29691. + func_to_host_path_result="$1"
  29692. + fi
  29693. + ;;
  29694. + esac
  29695. + fi
  29696. +}
  29697. +# end: func_to_host_path
  29698. +
  29699. +# func_to_host_pathlist arg
  29700. +#
  29701. +# Convert pathlists to host format when used with build tools.
  29702. +# See func_to_host_path(), above. This function supports the
  29703. +# following $build/$host combinations (but does no harm for
  29704. +# combinations not listed here):
  29705. +# $build $host
  29706. +# mingw (msys) mingw [e.g. native]
  29707. +# cygwin mingw
  29708. +# *nix + wine mingw
  29709. +#
  29710. +# Path separators are also converted from $build format to
  29711. +# $host format. If ARG begins or ends with a path separator
  29712. +# character, it is preserved (but converted to $host format)
  29713. +# on output.
  29714. +#
  29715. +# ARG is a pathlist (on $build) that should be converted to
  29716. +# the proper representation on $host. The result is stored
  29717. +# in $func_to_host_pathlist_result.
  29718. +func_to_host_pathlist ()
  29719. +{
  29720. + func_to_host_pathlist_result="$1"
  29721. + if test -n "$1" ; then
  29722. + case $host in
  29723. + *mingw* )
  29724. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  29725. + # Remove leading and trailing path separator characters from
  29726. + # ARG. msys behavior is inconsistent here, cygpath turns them
  29727. + # into '.;' and ';.', and winepath ignores them completely.
  29728. + func_to_host_pathlist_tmp2="$1"
  29729. + # Once set for this call, this variable should not be
  29730. + # reassigned. It is used in tha fallback case.
  29731. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  29732. + $SED -e 's|^:*||' -e 's|:*$||'`
  29733. + case $build in
  29734. + *mingw* ) # Actually, msys.
  29735. + # Awkward: cmd appends spaces to result.
  29736. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  29737. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  29738. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  29739. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  29740. + $SED -e "$lt_sed_naive_backslashify"`
  29741. + ;;
  29742. + *cygwin* )
  29743. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  29744. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  29745. + $SED -e "$lt_sed_naive_backslashify"`
  29746. + ;;
  29747. + * )
  29748. + # unfortunately, winepath doesn't convert pathlists
  29749. + func_to_host_pathlist_result=""
  29750. + func_to_host_pathlist_oldIFS=$IFS
  29751. + IFS=:
  29752. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  29753. + IFS=$func_to_host_pathlist_oldIFS
  29754. + if test -n "$func_to_host_pathlist_f" ; then
  29755. + func_to_host_path "$func_to_host_pathlist_f"
  29756. + if test -n "$func_to_host_path_result" ; then
  29757. + if test -z "$func_to_host_pathlist_result" ; then
  29758. + func_to_host_pathlist_result="$func_to_host_path_result"
  29759. + else
  29760. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  29761. + fi
  29762. + fi
  29763. + fi
  29764. + IFS=:
  29765. + done
  29766. + IFS=$func_to_host_pathlist_oldIFS
  29767. + ;;
  29768. + esac
  29769. + if test -z "$func_to_host_pathlist_result" ; then
  29770. + func_error "Could not determine the host path(s) corresponding to"
  29771. + func_error " '$1'"
  29772. + func_error "Continuing, but uninstalled executables may not work."
  29773. + # Fallback. This may break if $1 contains DOS-style drive
  29774. + # specifications. The fix is not to complicate the expression
  29775. + # below, but for the user to provide a working wine installation
  29776. + # with winepath so that path translation in the cross-to-mingw
  29777. + # case works properly.
  29778. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  29779. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  29780. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  29781. + fi
  29782. + # Now, add the leading and trailing path separators back
  29783. + case "$1" in
  29784. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  29785. + ;;
  29786. + esac
  29787. + case "$1" in
  29788. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  29789. + ;;
  29790. + esac
  29791. + ;;
  29792. + esac
  29793. + fi
  29794. +}
  29795. +# end: func_to_host_pathlist
  29796. +
  29797. +# func_emit_cwrapperexe_src
  29798. +# emit the source code for a wrapper executable on stdout
  29799. +# Must ONLY be called from within func_mode_link because
  29800. +# it depends on a number of variable set therein.
  29801. +func_emit_cwrapperexe_src ()
  29802. +{
  29803. + cat <<EOF
  29804. +
  29805. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  29806. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  29807. +
  29808. + The $output program cannot be directly executed until all the libtool
  29809. + libraries that it depends on are installed.
  29810. +
  29811. + This wrapper executable should never be moved out of the build directory.
  29812. + If it is, it will not operate correctly.
  29813. +
  29814. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  29815. + but could eventually absorb all of the scripts functionality and
  29816. + exec $objdir/$outputname directly.
  29817. +*/
  29818. +EOF
  29819. + cat <<"EOF"
  29820. +#include <stdio.h>
  29821. +#include <stdlib.h>
  29822. +#ifdef _MSC_VER
  29823. +# include <direct.h>
  29824. +# include <process.h>
  29825. +# include <io.h>
  29826. +# define setmode _setmode
  29827. +#else
  29828. +# include <unistd.h>
  29829. +# include <stdint.h>
  29830. +# ifdef __CYGWIN__
  29831. +# include <io.h>
  29832. +# define HAVE_SETENV
  29833. +# ifdef __STRICT_ANSI__
  29834. +char *realpath (const char *, char *);
  29835. +int putenv (char *);
  29836. +int setenv (const char *, const char *, int);
  29837. +# endif
  29838. +# endif
  29839. +#endif
  29840. +#include <malloc.h>
  29841. +#include <stdarg.h>
  29842. +#include <assert.h>
  29843. +#include <string.h>
  29844. +#include <ctype.h>
  29845. +#include <errno.h>
  29846. +#include <fcntl.h>
  29847. +#include <sys/stat.h>
  29848. +
  29849. +#if defined(PATH_MAX)
  29850. +# define LT_PATHMAX PATH_MAX
  29851. +#elif defined(MAXPATHLEN)
  29852. +# define LT_PATHMAX MAXPATHLEN
  29853. +#else
  29854. +# define LT_PATHMAX 1024
  29855. +#endif
  29856. +
  29857. +#ifndef S_IXOTH
  29858. +# define S_IXOTH 0
  29859. +#endif
  29860. +#ifndef S_IXGRP
  29861. +# define S_IXGRP 0
  29862. +#endif
  29863. +
  29864. +#ifdef _MSC_VER
  29865. +# define S_IXUSR _S_IEXEC
  29866. +# define stat _stat
  29867. +# ifndef _INTPTR_T_DEFINED
  29868. +# define intptr_t int
  29869. +# endif
  29870. +#endif
  29871. +
  29872. +#ifndef DIR_SEPARATOR
  29873. +# define DIR_SEPARATOR '/'
  29874. +# define PATH_SEPARATOR ':'
  29875. +#endif
  29876. +
  29877. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  29878. + defined (__OS2__)
  29879. +# define HAVE_DOS_BASED_FILE_SYSTEM
  29880. +# define FOPEN_WB "wb"
  29881. +# ifndef DIR_SEPARATOR_2
  29882. +# define DIR_SEPARATOR_2 '\\'
  29883. +# endif
  29884. +# ifndef PATH_SEPARATOR_2
  29885. +# define PATH_SEPARATOR_2 ';'
  29886. +# endif
  29887. +#endif
  29888. +
  29889. +#ifndef DIR_SEPARATOR_2
  29890. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  29891. +#else /* DIR_SEPARATOR_2 */
  29892. +# define IS_DIR_SEPARATOR(ch) \
  29893. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  29894. +#endif /* DIR_SEPARATOR_2 */
  29895. +
  29896. +#ifndef PATH_SEPARATOR_2
  29897. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  29898. +#else /* PATH_SEPARATOR_2 */
  29899. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  29900. +#endif /* PATH_SEPARATOR_2 */
  29901. +
  29902. +#ifdef __CYGWIN__
  29903. +# define FOPEN_WB "wb"
  29904. +#endif
  29905. +
  29906. +#ifndef FOPEN_WB
  29907. +# define FOPEN_WB "w"
  29908. +#endif
  29909. +#ifndef _O_BINARY
  29910. +# define _O_BINARY 0
  29911. +#endif
  29912. +
  29913. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  29914. +#define XFREE(stale) do { \
  29915. + if (stale) { free ((void *) stale); stale = 0; } \
  29916. +} while (0)
  29917. +
  29918. +#undef LTWRAPPER_DEBUGPRINTF
  29919. +#if defined DEBUGWRAPPER
  29920. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  29921. +static void
  29922. +ltwrapper_debugprintf (const char *fmt, ...)
  29923. +{
  29924. + va_list args;
  29925. + va_start (args, fmt);
  29926. + (void) vfprintf (stderr, fmt, args);
  29927. + va_end (args);
  29928. +}
  29929. +#else
  29930. +# define LTWRAPPER_DEBUGPRINTF(args)
  29931. +#endif
  29932. +
  29933. +const char *program_name = NULL;
  29934. +
  29935. +void *xmalloc (size_t num);
  29936. +char *xstrdup (const char *string);
  29937. +const char *base_name (const char *name);
  29938. +char *find_executable (const char *wrapper);
  29939. +char *chase_symlinks (const char *pathspec);
  29940. +int make_executable (const char *path);
  29941. +int check_executable (const char *path);
  29942. +char *strendzap (char *str, const char *pat);
  29943. +void lt_fatal (const char *message, ...);
  29944. +void lt_setenv (const char *name, const char *value);
  29945. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  29946. +void lt_opt_process_env_set (const char *arg);
  29947. +void lt_opt_process_env_prepend (const char *arg);
  29948. +void lt_opt_process_env_append (const char *arg);
  29949. +int lt_split_name_value (const char *arg, char** name, char** value);
  29950. +void lt_update_exe_path (const char *name, const char *value);
  29951. +void lt_update_lib_path (const char *name, const char *value);
  29952. +
  29953. +static const char *script_text_part1 =
  29954. +EOF
  29955. +
  29956. + func_emit_wrapper_part1 yes |
  29957. + $SED -e 's/\([\\"]\)/\\\1/g' \
  29958. + -e 's/^/ "/' -e 's/$/\\n"/'
  29959. + echo ";"
  29960. + cat <<EOF
  29961. +
  29962. +static const char *script_text_part2 =
  29963. +EOF
  29964. + func_emit_wrapper_part2 yes |
  29965. + $SED -e 's/\([\\"]\)/\\\1/g' \
  29966. + -e 's/^/ "/' -e 's/$/\\n"/'
  29967. + echo ";"
  29968. +
  29969. + cat <<EOF
  29970. +const char * MAGIC_EXE = "$magic_exe";
  29971. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  29972. +EOF
  29973. +
  29974. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  29975. + func_to_host_pathlist "$temp_rpath"
  29976. + cat <<EOF
  29977. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  29978. +EOF
  29979. + else
  29980. + cat <<"EOF"
  29981. +const char * LIB_PATH_VALUE = "";
  29982. +EOF
  29983. + fi
  29984. +
  29985. + if test -n "$dllsearchpath"; then
  29986. + func_to_host_pathlist "$dllsearchpath:"
  29987. + cat <<EOF
  29988. +const char * EXE_PATH_VARNAME = "PATH";
  29989. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  29990. +EOF
  29991. + else
  29992. + cat <<"EOF"
  29993. +const char * EXE_PATH_VARNAME = "";
  29994. +const char * EXE_PATH_VALUE = "";
  29995. +EOF
  29996. + fi
  29997. +
  29998. + if test "$fast_install" = yes; then
  29999. + cat <<EOF
  30000. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  30001. +EOF
  30002. + else
  30003. + cat <<EOF
  30004. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  30005. +EOF
  30006. + fi
  30007. +
  30008. +
  30009. + cat <<"EOF"
  30010. +
  30011. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  30012. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  30013. +
  30014. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  30015. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  30016. +
  30017. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  30018. +
  30019. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  30020. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  30021. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  30022. +
  30023. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  30024. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  30025. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  30026. +
  30027. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  30028. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  30029. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  30030. +
  30031. +int
  30032. +main (int argc, char *argv[])
  30033. +{
  30034. + char **newargz;
  30035. + int newargc;
  30036. + char *tmp_pathspec;
  30037. + char *actual_cwrapper_path;
  30038. + char *actual_cwrapper_name;
  30039. + char *target_name;
  30040. + char *lt_argv_zero;
  30041. + intptr_t rval = 127;
  30042. +
  30043. + int i;
  30044. +
  30045. + program_name = (char *) xstrdup (base_name (argv[0]));
  30046. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  30047. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  30048. +
  30049. + /* very simple arg parsing; don't want to rely on getopt */
  30050. + for (i = 1; i < argc; i++)
  30051. + {
  30052. + if (strcmp (argv[i], dumpscript_opt) == 0)
  30053. + {
  30054. +EOF
  30055. + case "$host" in
  30056. + *mingw* | *cygwin* )
  30057. + # make stdout use "unix" line endings
  30058. + echo " setmode(1,_O_BINARY);"
  30059. + ;;
  30060. + esac
  30061. +
  30062. + cat <<"EOF"
  30063. + printf ("%s", script_text_part1);
  30064. + printf ("%s", script_text_part2);
  30065. + return 0;
  30066. + }
  30067. + }
  30068. +
  30069. + newargz = XMALLOC (char *, argc + 1);
  30070. + tmp_pathspec = find_executable (argv[0]);
  30071. + if (tmp_pathspec == NULL)
  30072. + lt_fatal ("Couldn't find %s", argv[0]);
  30073. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  30074. + tmp_pathspec));
  30075. +
  30076. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  30077. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  30078. + actual_cwrapper_path));
  30079. + XFREE (tmp_pathspec);
  30080. +
  30081. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  30082. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  30083. +
  30084. + /* wrapper name transforms */
  30085. + strendzap (actual_cwrapper_name, ".exe");
  30086. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  30087. + XFREE (actual_cwrapper_name);
  30088. + actual_cwrapper_name = tmp_pathspec;
  30089. + tmp_pathspec = 0;
  30090. +
  30091. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  30092. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  30093. + strendzap (target_name, ".exe");
  30094. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  30095. + XFREE (target_name);
  30096. + target_name = tmp_pathspec;
  30097. + tmp_pathspec = 0;
  30098. +
  30099. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  30100. + target_name));
  30101. +EOF
  30102. +
  30103. + cat <<EOF
  30104. + newargz[0] =
  30105. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  30106. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  30107. + strcpy (newargz[0], actual_cwrapper_path);
  30108. + strcat (newargz[0], "$objdir");
  30109. + strcat (newargz[0], "/");
  30110. +EOF
  30111. +
  30112. + cat <<"EOF"
  30113. + /* stop here, and copy so we don't have to do this twice */
  30114. + tmp_pathspec = xstrdup (newargz[0]);
  30115. +
  30116. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  30117. + strcat (newargz[0], actual_cwrapper_name);
  30118. +
  30119. + /* DO want the lt- prefix here if it exists, so use target_name */
  30120. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  30121. + XFREE (tmp_pathspec);
  30122. + tmp_pathspec = NULL;
  30123. +EOF
  30124. +
  30125. + case $host_os in
  30126. + mingw*)
  30127. + cat <<"EOF"
  30128. + {
  30129. + char* p;
  30130. + while ((p = strchr (newargz[0], '\\')) != NULL)
  30131. + {
  30132. + *p = '/';
  30133. + }
  30134. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  30135. + {
  30136. + *p = '/';
  30137. + }
  30138. + }
  30139. +EOF
  30140. + ;;
  30141. + esac
  30142. +
  30143. + cat <<"EOF"
  30144. + XFREE (target_name);
  30145. + XFREE (actual_cwrapper_path);
  30146. + XFREE (actual_cwrapper_name);
  30147. +
  30148. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  30149. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  30150. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  30151. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  30152. +
  30153. + newargc=0;
  30154. + for (i = 1; i < argc; i++)
  30155. + {
  30156. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  30157. + {
  30158. + if (argv[i][env_set_opt_len] == '=')
  30159. + {
  30160. + const char *p = argv[i] + env_set_opt_len + 1;
  30161. + lt_opt_process_env_set (p);
  30162. + }
  30163. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  30164. + {
  30165. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  30166. + }
  30167. + else
  30168. + lt_fatal ("%s missing required argument", env_set_opt);
  30169. + continue;
  30170. + }
  30171. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  30172. + {
  30173. + if (argv[i][env_prepend_opt_len] == '=')
  30174. + {
  30175. + const char *p = argv[i] + env_prepend_opt_len + 1;
  30176. + lt_opt_process_env_prepend (p);
  30177. + }
  30178. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  30179. + {
  30180. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  30181. + }
  30182. + else
  30183. + lt_fatal ("%s missing required argument", env_prepend_opt);
  30184. + continue;
  30185. + }
  30186. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  30187. + {
  30188. + if (argv[i][env_append_opt_len] == '=')
  30189. + {
  30190. + const char *p = argv[i] + env_append_opt_len + 1;
  30191. + lt_opt_process_env_append (p);
  30192. + }
  30193. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  30194. + {
  30195. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  30196. + }
  30197. + else
  30198. + lt_fatal ("%s missing required argument", env_append_opt);
  30199. + continue;
  30200. + }
  30201. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  30202. + {
  30203. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  30204. + namespace, but it is not one of the ones we know about and
  30205. + have already dealt with, above (inluding dump-script), then
  30206. + report an error. Otherwise, targets might begin to believe
  30207. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  30208. + namespace. The first time any user complains about this, we'll
  30209. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  30210. + or a configure.ac-settable value.
  30211. + */
  30212. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  30213. + ltwrapper_option_prefix, argv[i]);
  30214. + }
  30215. + /* otherwise ... */
  30216. + newargz[++newargc] = xstrdup (argv[i]);
  30217. + }
  30218. + newargz[++newargc] = NULL;
  30219. +
  30220. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  30221. + for (i = 0; i < newargc; i++)
  30222. + {
  30223. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  30224. + }
  30225. +
  30226. +EOF
  30227. +
  30228. + case $host_os in
  30229. + mingw*)
  30230. + cat <<"EOF"
  30231. + /* execv doesn't actually work on mingw as expected on unix */
  30232. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  30233. + if (rval == -1)
  30234. + {
  30235. + /* failed to start process */
  30236. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  30237. + return 127;
  30238. + }
  30239. + return rval;
  30240. +EOF
  30241. + ;;
  30242. + *)
  30243. + cat <<"EOF"
  30244. + execv (lt_argv_zero, newargz);
  30245. + return rval; /* =127, but avoids unused variable warning */
  30246. +EOF
  30247. + ;;
  30248. + esac
  30249. +
  30250. + cat <<"EOF"
  30251. +}
  30252. +
  30253. +void *
  30254. +xmalloc (size_t num)
  30255. +{
  30256. + void *p = (void *) malloc (num);
  30257. + if (!p)
  30258. + lt_fatal ("Memory exhausted");
  30259. +
  30260. + return p;
  30261. +}
  30262. +
  30263. +char *
  30264. +xstrdup (const char *string)
  30265. +{
  30266. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  30267. + string) : NULL;
  30268. +}
  30269. +
  30270. +const char *
  30271. +base_name (const char *name)
  30272. +{
  30273. + const char *base;
  30274. +
  30275. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  30276. + /* Skip over the disk name in MSDOS pathnames. */
  30277. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  30278. + name += 2;
  30279. +#endif
  30280. +
  30281. + for (base = name; *name; name++)
  30282. + if (IS_DIR_SEPARATOR (*name))
  30283. + base = name + 1;
  30284. + return base;
  30285. +}
  30286. +
  30287. +int
  30288. +check_executable (const char *path)
  30289. +{
  30290. + struct stat st;
  30291. +
  30292. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  30293. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  30294. + if ((!path) || (!*path))
  30295. + return 0;
  30296. +
  30297. + if ((stat (path, &st) >= 0)
  30298. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  30299. + return 1;
  30300. + else
  30301. + return 0;
  30302. +}
  30303. +
  30304. +int
  30305. +make_executable (const char *path)
  30306. +{
  30307. + int rval = 0;
  30308. + struct stat st;
  30309. +
  30310. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  30311. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  30312. + if ((!path) || (!*path))
  30313. + return 0;
  30314. +
  30315. + if (stat (path, &st) >= 0)
  30316. + {
  30317. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  30318. + }
  30319. + return rval;
  30320. +}
  30321. +
  30322. +/* Searches for the full path of the wrapper. Returns
  30323. + newly allocated full path name if found, NULL otherwise
  30324. + Does not chase symlinks, even on platforms that support them.
  30325. +*/
  30326. +char *
  30327. +find_executable (const char *wrapper)
  30328. +{
  30329. + int has_slash = 0;
  30330. + const char *p;
  30331. + const char *p_next;
  30332. + /* static buffer for getcwd */
  30333. + char tmp[LT_PATHMAX + 1];
  30334. + int tmp_len;
  30335. + char *concat_name;
  30336. +
  30337. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  30338. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  30339. +
  30340. + if ((wrapper == NULL) || (*wrapper == '\0'))
  30341. + return NULL;
  30342. +
  30343. + /* Absolute path? */
  30344. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  30345. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  30346. + {
  30347. + concat_name = xstrdup (wrapper);
  30348. + if (check_executable (concat_name))
  30349. + return concat_name;
  30350. + XFREE (concat_name);
  30351. + }
  30352. + else
  30353. + {
  30354. +#endif
  30355. + if (IS_DIR_SEPARATOR (wrapper[0]))
  30356. + {
  30357. + concat_name = xstrdup (wrapper);
  30358. + if (check_executable (concat_name))
  30359. + return concat_name;
  30360. + XFREE (concat_name);
  30361. + }
  30362. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  30363. + }
  30364. +#endif
  30365. +
  30366. + for (p = wrapper; *p; p++)
  30367. + if (*p == '/')
  30368. + {
  30369. + has_slash = 1;
  30370. + break;
  30371. + }
  30372. + if (!has_slash)
  30373. + {
  30374. + /* no slashes; search PATH */
  30375. + const char *path = getenv ("PATH");
  30376. + if (path != NULL)
  30377. + {
  30378. + for (p = path; *p; p = p_next)
  30379. + {
  30380. + const char *q;
  30381. + size_t p_len;
  30382. + for (q = p; *q; q++)
  30383. + if (IS_PATH_SEPARATOR (*q))
  30384. + break;
  30385. + p_len = q - p;
  30386. + p_next = (*q == '\0' ? q : q + 1);
  30387. + if (p_len == 0)
  30388. + {
  30389. + /* empty path: current directory */
  30390. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  30391. + lt_fatal ("getcwd failed");
  30392. + tmp_len = strlen (tmp);
  30393. + concat_name =
  30394. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  30395. + memcpy (concat_name, tmp, tmp_len);
  30396. + concat_name[tmp_len] = '/';
  30397. + strcpy (concat_name + tmp_len + 1, wrapper);
  30398. + }
  30399. + else
  30400. + {
  30401. + concat_name =
  30402. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  30403. + memcpy (concat_name, p, p_len);
  30404. + concat_name[p_len] = '/';
  30405. + strcpy (concat_name + p_len + 1, wrapper);
  30406. + }
  30407. + if (check_executable (concat_name))
  30408. + return concat_name;
  30409. + XFREE (concat_name);
  30410. + }
  30411. + }
  30412. + /* not found in PATH; assume curdir */
  30413. + }
  30414. + /* Relative path | not found in path: prepend cwd */
  30415. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  30416. + lt_fatal ("getcwd failed");
  30417. + tmp_len = strlen (tmp);
  30418. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  30419. + memcpy (concat_name, tmp, tmp_len);
  30420. + concat_name[tmp_len] = '/';
  30421. + strcpy (concat_name + tmp_len + 1, wrapper);
  30422. +
  30423. + if (check_executable (concat_name))
  30424. + return concat_name;
  30425. + XFREE (concat_name);
  30426. + return NULL;
  30427. +}
  30428. +
  30429. +char *
  30430. +chase_symlinks (const char *pathspec)
  30431. +{
  30432. +#ifndef S_ISLNK
  30433. + return xstrdup (pathspec);
  30434. +#else
  30435. + char buf[LT_PATHMAX];
  30436. + struct stat s;
  30437. + char *tmp_pathspec = xstrdup (pathspec);
  30438. + char *p;
  30439. + int has_symlinks = 0;
  30440. + while (strlen (tmp_pathspec) && !has_symlinks)
  30441. + {
  30442. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  30443. + tmp_pathspec));
  30444. + if (lstat (tmp_pathspec, &s) == 0)
  30445. + {
  30446. + if (S_ISLNK (s.st_mode) != 0)
  30447. + {
  30448. + has_symlinks = 1;
  30449. + break;
  30450. + }
  30451. +
  30452. + /* search backwards for last DIR_SEPARATOR */
  30453. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  30454. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  30455. + p--;
  30456. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  30457. + {
  30458. + /* no more DIR_SEPARATORS left */
  30459. + break;
  30460. + }
  30461. + *p = '\0';
  30462. + }
  30463. + else
  30464. + {
  30465. + char *errstr = strerror (errno);
  30466. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  30467. + }
  30468. + }
  30469. + XFREE (tmp_pathspec);
  30470. +
  30471. + if (!has_symlinks)
  30472. + {
  30473. + return xstrdup (pathspec);
  30474. + }
  30475. +
  30476. + tmp_pathspec = realpath (pathspec, buf);
  30477. + if (tmp_pathspec == 0)
  30478. + {
  30479. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  30480. + }
  30481. + return xstrdup (tmp_pathspec);
  30482. +#endif
  30483. +}
  30484. +
  30485. +char *
  30486. +strendzap (char *str, const char *pat)
  30487. +{
  30488. + size_t len, patlen;
  30489. +
  30490. + assert (str != NULL);
  30491. + assert (pat != NULL);
  30492. +
  30493. + len = strlen (str);
  30494. + patlen = strlen (pat);
  30495. +
  30496. + if (patlen <= len)
  30497. + {
  30498. + str += len - patlen;
  30499. + if (strcmp (str, pat) == 0)
  30500. + *str = '\0';
  30501. + }
  30502. + return str;
  30503. +}
  30504. +
  30505. +static void
  30506. +lt_error_core (int exit_status, const char *mode,
  30507. + const char *message, va_list ap)
  30508. +{
  30509. + fprintf (stderr, "%s: %s: ", program_name, mode);
  30510. + vfprintf (stderr, message, ap);
  30511. + fprintf (stderr, ".\n");
  30512. +
  30513. + if (exit_status >= 0)
  30514. + exit (exit_status);
  30515. +}
  30516. +
  30517. +void
  30518. +lt_fatal (const char *message, ...)
  30519. +{
  30520. + va_list ap;
  30521. + va_start (ap, message);
  30522. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  30523. + va_end (ap);
  30524. +}
  30525. +
  30526. +void
  30527. +lt_setenv (const char *name, const char *value)
  30528. +{
  30529. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  30530. + (name ? name : "<NULL>"),
  30531. + (value ? value : "<NULL>")));
  30532. + {
  30533. +#ifdef HAVE_SETENV
  30534. + /* always make a copy, for consistency with !HAVE_SETENV */
  30535. + char *str = xstrdup (value);
  30536. + setenv (name, str, 1);
  30537. +#else
  30538. + int len = strlen (name) + 1 + strlen (value) + 1;
  30539. + char *str = XMALLOC (char, len);
  30540. + sprintf (str, "%s=%s", name, value);
  30541. + if (putenv (str) != EXIT_SUCCESS)
  30542. + {
  30543. + XFREE (str);
  30544. + }
  30545. +#endif
  30546. + }
  30547. +}
  30548. +
  30549. +char *
  30550. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  30551. +{
  30552. + char *new_value;
  30553. + if (orig_value && *orig_value)
  30554. + {
  30555. + int orig_value_len = strlen (orig_value);
  30556. + int add_len = strlen (add);
  30557. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  30558. + if (to_end)
  30559. + {
  30560. + strcpy (new_value, orig_value);
  30561. + strcpy (new_value + orig_value_len, add);
  30562. + }
  30563. + else
  30564. + {
  30565. + strcpy (new_value, add);
  30566. + strcpy (new_value + add_len, orig_value);
  30567. + }
  30568. + }
  30569. + else
  30570. + {
  30571. + new_value = xstrdup (add);
  30572. + }
  30573. + return new_value;
  30574. +}
  30575. +
  30576. +int
  30577. +lt_split_name_value (const char *arg, char** name, char** value)
  30578. +{
  30579. + const char *p;
  30580. + int len;
  30581. + if (!arg || !*arg)
  30582. + return 1;
  30583. +
  30584. + p = strchr (arg, (int)'=');
  30585. +
  30586. + if (!p)
  30587. + return 1;
  30588. +
  30589. + *value = xstrdup (++p);
  30590. +
  30591. + len = strlen (arg) - strlen (*value);
  30592. + *name = XMALLOC (char, len);
  30593. + strncpy (*name, arg, len-1);
  30594. + (*name)[len - 1] = '\0';
  30595. +
  30596. + return 0;
  30597. +}
  30598. +
  30599. +void
  30600. +lt_opt_process_env_set (const char *arg)
  30601. +{
  30602. + char *name = NULL;
  30603. + char *value = NULL;
  30604. +
  30605. + if (lt_split_name_value (arg, &name, &value) != 0)
  30606. + {
  30607. + XFREE (name);
  30608. + XFREE (value);
  30609. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  30610. + }
  30611. +
  30612. + lt_setenv (name, value);
  30613. + XFREE (name);
  30614. + XFREE (value);
  30615. +}
  30616. +
  30617. +void
  30618. +lt_opt_process_env_prepend (const char *arg)
  30619. +{
  30620. + char *name = NULL;
  30621. + char *value = NULL;
  30622. + char *new_value = NULL;
  30623. +
  30624. + if (lt_split_name_value (arg, &name, &value) != 0)
  30625. + {
  30626. + XFREE (name);
  30627. + XFREE (value);
  30628. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  30629. + }
  30630. +
  30631. + new_value = lt_extend_str (getenv (name), value, 0);
  30632. + lt_setenv (name, new_value);
  30633. + XFREE (new_value);
  30634. + XFREE (name);
  30635. + XFREE (value);
  30636. +}
  30637. +
  30638. +void
  30639. +lt_opt_process_env_append (const char *arg)
  30640. +{
  30641. + char *name = NULL;
  30642. + char *value = NULL;
  30643. + char *new_value = NULL;
  30644. +
  30645. + if (lt_split_name_value (arg, &name, &value) != 0)
  30646. + {
  30647. + XFREE (name);
  30648. + XFREE (value);
  30649. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  30650. + }
  30651. +
  30652. + new_value = lt_extend_str (getenv (name), value, 1);
  30653. + lt_setenv (name, new_value);
  30654. + XFREE (new_value);
  30655. + XFREE (name);
  30656. + XFREE (value);
  30657. +}
  30658. +
  30659. +void
  30660. +lt_update_exe_path (const char *name, const char *value)
  30661. +{
  30662. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  30663. + (name ? name : "<NULL>"),
  30664. + (value ? value : "<NULL>")));
  30665. +
  30666. + if (name && *name && value && *value)
  30667. + {
  30668. + char *new_value = lt_extend_str (getenv (name), value, 0);
  30669. + /* some systems can't cope with a ':'-terminated path #' */
  30670. + int len = strlen (new_value);
  30671. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  30672. + {
  30673. + new_value[len-1] = '\0';
  30674. + }
  30675. + lt_setenv (name, new_value);
  30676. + XFREE (new_value);
  30677. + }
  30678. +}
  30679. +
  30680. +void
  30681. +lt_update_lib_path (const char *name, const char *value)
  30682. +{
  30683. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  30684. + (name ? name : "<NULL>"),
  30685. + (value ? value : "<NULL>")));
  30686. +
  30687. + if (name && *name && value && *value)
  30688. + {
  30689. + char *new_value = lt_extend_str (getenv (name), value, 0);
  30690. + lt_setenv (name, new_value);
  30691. + XFREE (new_value);
  30692. + }
  30693. +}
  30694. +
  30695. +
  30696. +EOF
  30697. +}
  30698. +# end: func_emit_cwrapperexe_src
  30699. +
  30700. +# func_mode_link arg...
  30701. +func_mode_link ()
  30702. +{
  30703. + $opt_debug
  30704. + case $host in
  30705. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  30706. + # It is impossible to link a dll without this setting, and
  30707. + # we shouldn't force the makefile maintainer to figure out
  30708. + # which system we are compiling for in order to pass an extra
  30709. + # flag for every libtool invocation.
  30710. + # allow_undefined=no
  30711. +
  30712. + # FIXME: Unfortunately, there are problems with the above when trying
  30713. + # to make a dll which has undefined symbols, in which case not
  30714. + # even a static library is built. For now, we need to specify
  30715. + # -no-undefined on the libtool link line when we can be certain
  30716. + # that all symbols are satisfied, otherwise we get a static library.
  30717. + allow_undefined=yes
  30718. + ;;
  30719. + *)
  30720. + allow_undefined=yes
  30721. + ;;
  30722. + esac
  30723. + libtool_args=$nonopt
  30724. + base_compile="$nonopt $@"
  30725. + compile_command=$nonopt
  30726. + finalize_command=$nonopt
  30727. +
  30728. + compile_rpath=
  30729. + finalize_rpath=
  30730. + compile_shlibpath=
  30731. + finalize_shlibpath=
  30732. + convenience=
  30733. + old_convenience=
  30734. + deplibs=
  30735. + old_deplibs=
  30736. + compiler_flags=
  30737. + linker_flags=
  30738. + dllsearchpath=
  30739. + lib_search_path=`pwd`
  30740. + inst_prefix_dir=
  30741. + new_inherited_linker_flags=
  30742. +
  30743. + avoid_version=no
  30744. + dlfiles=
  30745. + dlprefiles=
  30746. + dlself=no
  30747. + export_dynamic=no
  30748. + export_symbols=
  30749. + export_symbols_regex=
  30750. + generated=
  30751. + libobjs=
  30752. + ltlibs=
  30753. + module=no
  30754. + no_install=no
  30755. + objs=
  30756. + non_pic_objects=
  30757. + precious_files_regex=
  30758. + prefer_static_libs=no
  30759. + preload=no
  30760. + prev=
  30761. + prevarg=
  30762. + release=
  30763. + rpath=
  30764. + xrpath=
  30765. + perm_rpath=
  30766. + temp_rpath=
  30767. + thread_safe=no
  30768. + vinfo=
  30769. + vinfo_number=no
  30770. + weak_libs=
  30771. + single_module="${wl}-single_module"
  30772. + func_infer_tag $base_compile
  30773. +
  30774. + # We need to know -static, to get the right output filenames.
  30775. + for arg
  30776. + do
  30777. + case $arg in
  30778. + -shared)
  30779. + test "$build_libtool_libs" != yes && \
  30780. + func_fatal_configuration "can not build a shared library"
  30781. + build_old_libs=no
  30782. + break
  30783. + ;;
  30784. + -all-static | -static | -static-libtool-libs)
  30785. + case $arg in
  30786. + -all-static)
  30787. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  30788. + func_warning "complete static linking is impossible in this configuration"
  30789. + fi
  30790. + if test -n "$link_static_flag"; then
  30791. + dlopen_self=$dlopen_self_static
  30792. + fi
  30793. + prefer_static_libs=yes
  30794. + ;;
  30795. + -static)
  30796. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  30797. + dlopen_self=$dlopen_self_static
  30798. + fi
  30799. + prefer_static_libs=built
  30800. + ;;
  30801. + -static-libtool-libs)
  30802. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  30803. + dlopen_self=$dlopen_self_static
  30804. + fi
  30805. + prefer_static_libs=yes
  30806. + ;;
  30807. + esac
  30808. + build_libtool_libs=no
  30809. + build_old_libs=yes
  30810. + break
  30811. + ;;
  30812. + esac
  30813. + done
  30814. +
  30815. + # See if our shared archives depend on static archives.
  30816. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  30817. +
  30818. + # Go through the arguments, transforming them on the way.
  30819. + while test "$#" -gt 0; do
  30820. + arg="$1"
  30821. + shift
  30822. + func_quote_for_eval "$arg"
  30823. + qarg=$func_quote_for_eval_unquoted_result
  30824. + func_append libtool_args " $func_quote_for_eval_result"
  30825. +
  30826. + # If the previous option needs an argument, assign it.
  30827. + if test -n "$prev"; then
  30828. + case $prev in
  30829. + output)
  30830. + func_append compile_command " @OUTPUT@"
  30831. + func_append finalize_command " @OUTPUT@"
  30832. + ;;
  30833. + esac
  30834. +
  30835. + case $prev in
  30836. + dlfiles|dlprefiles)
  30837. + if test "$preload" = no; then
  30838. + # Add the symbol object into the linking commands.
  30839. + func_append compile_command " @SYMFILE@"
  30840. + func_append finalize_command " @SYMFILE@"
  30841. + preload=yes
  30842. + fi
  30843. + case $arg in
  30844. + *.la | *.lo) ;; # We handle these cases below.
  30845. + force)
  30846. + if test "$dlself" = no; then
  30847. + dlself=needless
  30848. + export_dynamic=yes
  30849. + fi
  30850. + prev=
  30851. + continue
  30852. + ;;
  30853. + self)
  30854. + if test "$prev" = dlprefiles; then
  30855. + dlself=yes
  30856. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  30857. + dlself=yes
  30858. + else
  30859. + dlself=needless
  30860. + export_dynamic=yes
  30861. + fi
  30862. + prev=
  30863. + continue
  30864. + ;;
  30865. + *)
  30866. + if test "$prev" = dlfiles; then
  30867. + dlfiles="$dlfiles $arg"
  30868. + else
  30869. + dlprefiles="$dlprefiles $arg"
  30870. + fi
  30871. + prev=
  30872. + continue
  30873. + ;;
  30874. + esac
  30875. + ;;
  30876. + expsyms)
  30877. + export_symbols="$arg"
  30878. + test -f "$arg" \
  30879. + || func_fatal_error "symbol file \`$arg' does not exist"
  30880. + prev=
  30881. + continue
  30882. + ;;
  30883. + expsyms_regex)
  30884. + export_symbols_regex="$arg"
  30885. + prev=
  30886. + continue
  30887. + ;;
  30888. + framework)
  30889. + case $host in
  30890. + *-*-darwin*)
  30891. + case "$deplibs " in
  30892. + *" $qarg.ltframework "*) ;;
  30893. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  30894. + ;;
  30895. + esac
  30896. + ;;
  30897. + esac
  30898. + prev=
  30899. + continue
  30900. + ;;
  30901. + inst_prefix)
  30902. + inst_prefix_dir="$arg"
  30903. + prev=
  30904. + continue
  30905. + ;;
  30906. + objectlist)
  30907. + if test -f "$arg"; then
  30908. + save_arg=$arg
  30909. + moreargs=
  30910. + for fil in `cat "$save_arg"`
  30911. + do
  30912. +# moreargs="$moreargs $fil"
  30913. + arg=$fil
  30914. + # A libtool-controlled object.
  30915. +
  30916. + # Check to see that this really is a libtool object.
  30917. + if func_lalib_unsafe_p "$arg"; then
  30918. + pic_object=
  30919. + non_pic_object=
  30920. +
  30921. + # Read the .lo file
  30922. + func_source "$arg"
  30923. +
  30924. + if test -z "$pic_object" ||
  30925. + test -z "$non_pic_object" ||
  30926. + test "$pic_object" = none &&
  30927. + test "$non_pic_object" = none; then
  30928. + func_fatal_error "cannot find name of object for \`$arg'"
  30929. + fi
  30930. +
  30931. + # Extract subdirectory from the argument.
  30932. + func_dirname "$arg" "/" ""
  30933. + xdir="$func_dirname_result"
  30934. +
  30935. + if test "$pic_object" != none; then
  30936. + # Prepend the subdirectory the object is found in.
  30937. + pic_object="$xdir$pic_object"
  30938. +
  30939. + if test "$prev" = dlfiles; then
  30940. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  30941. + dlfiles="$dlfiles $pic_object"
  30942. + prev=
  30943. + continue
  30944. + else
  30945. + # If libtool objects are unsupported, then we need to preload.
  30946. + prev=dlprefiles
  30947. + fi
  30948. + fi
  30949. +
  30950. + # CHECK ME: I think I busted this. -Ossama
  30951. + if test "$prev" = dlprefiles; then
  30952. + # Preload the old-style object.
  30953. + dlprefiles="$dlprefiles $pic_object"
  30954. + prev=
  30955. + fi
  30956. +
  30957. + # A PIC object.
  30958. + func_append libobjs " $pic_object"
  30959. + arg="$pic_object"
  30960. + fi
  30961. +
  30962. + # Non-PIC object.
  30963. + if test "$non_pic_object" != none; then
  30964. + # Prepend the subdirectory the object is found in.
  30965. + non_pic_object="$xdir$non_pic_object"
  30966. +
  30967. + # A standard non-PIC object
  30968. + func_append non_pic_objects " $non_pic_object"
  30969. + if test -z "$pic_object" || test "$pic_object" = none ; then
  30970. + arg="$non_pic_object"
  30971. + fi
  30972. + else
  30973. + # If the PIC object exists, use it instead.
  30974. + # $xdir was prepended to $pic_object above.
  30975. + non_pic_object="$pic_object"
  30976. + func_append non_pic_objects " $non_pic_object"
  30977. + fi
  30978. + else
  30979. + # Only an error if not doing a dry-run.
  30980. + if $opt_dry_run; then
  30981. + # Extract subdirectory from the argument.
  30982. + func_dirname "$arg" "/" ""
  30983. + xdir="$func_dirname_result"
  30984. +
  30985. + func_lo2o "$arg"
  30986. + pic_object=$xdir$objdir/$func_lo2o_result
  30987. + non_pic_object=$xdir$func_lo2o_result
  30988. + func_append libobjs " $pic_object"
  30989. + func_append non_pic_objects " $non_pic_object"
  30990. + else
  30991. + func_fatal_error "\`$arg' is not a valid libtool object"
  30992. + fi
  30993. + fi
  30994. + done
  30995. + else
  30996. + func_fatal_error "link input file \`$arg' does not exist"
  30997. + fi
  30998. + arg=$save_arg
  30999. + prev=
  31000. + continue
  31001. + ;;
  31002. + precious_regex)
  31003. + precious_files_regex="$arg"
  31004. + prev=
  31005. + continue
  31006. + ;;
  31007. + release)
  31008. + release="-$arg"
  31009. + prev=
  31010. + continue
  31011. + ;;
  31012. + rpath | xrpath)
  31013. + # We need an absolute path.
  31014. + case $arg in
  31015. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  31016. + *)
  31017. + func_fatal_error "only absolute run-paths are allowed"
  31018. + ;;
  31019. + esac
  31020. + if test "$prev" = rpath; then
  31021. + case "$rpath " in
  31022. + *" $arg "*) ;;
  31023. + *) rpath="$rpath $arg" ;;
  31024. + esac
  31025. + else
  31026. + case "$xrpath " in
  31027. + *" $arg "*) ;;
  31028. + *) xrpath="$xrpath $arg" ;;
  31029. + esac
  31030. + fi
  31031. + prev=
  31032. + continue
  31033. + ;;
  31034. + shrext)
  31035. + shrext_cmds="$arg"
  31036. + prev=
  31037. + continue
  31038. + ;;
  31039. + weak)
  31040. + weak_libs="$weak_libs $arg"
  31041. + prev=
  31042. + continue
  31043. + ;;
  31044. + xcclinker)
  31045. + linker_flags="$linker_flags $qarg"
  31046. + compiler_flags="$compiler_flags $qarg"
  31047. + prev=
  31048. + func_append compile_command " $qarg"
  31049. + func_append finalize_command " $qarg"
  31050. + continue
  31051. + ;;
  31052. + xcompiler)
  31053. + compiler_flags="$compiler_flags $qarg"
  31054. + prev=
  31055. + func_append compile_command " $qarg"
  31056. + func_append finalize_command " $qarg"
  31057. + continue
  31058. + ;;
  31059. + xlinker)
  31060. + linker_flags="$linker_flags $qarg"
  31061. + compiler_flags="$compiler_flags $wl$qarg"
  31062. + prev=
  31063. + func_append compile_command " $wl$qarg"
  31064. + func_append finalize_command " $wl$qarg"
  31065. + continue
  31066. + ;;
  31067. + *)
  31068. + eval "$prev=\"\$arg\""
  31069. + prev=
  31070. + continue
  31071. + ;;
  31072. + esac
  31073. + fi # test -n "$prev"
  31074. +
  31075. + prevarg="$arg"
  31076. +
  31077. + case $arg in
  31078. + -all-static)
  31079. + if test -n "$link_static_flag"; then
  31080. + # See comment for -static flag below, for more details.
  31081. + func_append compile_command " $link_static_flag"
  31082. + func_append finalize_command " $link_static_flag"
  31083. + fi
  31084. + continue
  31085. + ;;
  31086. +
  31087. + -allow-undefined)
  31088. + # FIXME: remove this flag sometime in the future.
  31089. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  31090. + ;;
  31091. +
  31092. + -avoid-version)
  31093. + avoid_version=yes
  31094. + continue
  31095. + ;;
  31096. +
  31097. + -dlopen)
  31098. + prev=dlfiles
  31099. + continue
  31100. + ;;
  31101. +
  31102. + -dlpreopen)
  31103. + prev=dlprefiles
  31104. + continue
  31105. + ;;
  31106. +
  31107. + -export-dynamic)
  31108. + export_dynamic=yes
  31109. + continue
  31110. + ;;
  31111. +
  31112. + -export-symbols | -export-symbols-regex)
  31113. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  31114. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  31115. + fi
  31116. + if test "X$arg" = "X-export-symbols"; then
  31117. + prev=expsyms
  31118. + else
  31119. + prev=expsyms_regex
  31120. + fi
  31121. + continue
  31122. + ;;
  31123. +
  31124. + -framework)
  31125. + prev=framework
  31126. + continue
  31127. + ;;
  31128. +
  31129. + -inst-prefix-dir)
  31130. + prev=inst_prefix
  31131. + continue
  31132. + ;;
  31133. +
  31134. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  31135. + # so, if we see these flags be careful not to treat them like -L
  31136. + -L[A-Z][A-Z]*:*)
  31137. + case $with_gcc/$host in
  31138. + no/*-*-irix* | /*-*-irix*)
  31139. + func_append compile_command " $arg"
  31140. + func_append finalize_command " $arg"
  31141. + ;;
  31142. + esac
  31143. + continue
  31144. + ;;
  31145. +
  31146. + -L*)
  31147. + func_stripname '-L' '' "$arg"
  31148. + dir=$func_stripname_result
  31149. + if test -z "$dir"; then
  31150. + if test "$#" -gt 0; then
  31151. + func_fatal_error "require no space between \`-L' and \`$1'"
  31152. + else
  31153. + func_fatal_error "need path for \`-L' option"
  31154. + fi
  31155. + fi
  31156. + # We need an absolute path.
  31157. + case $dir in
  31158. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  31159. + *)
  31160. + absdir=`cd "$dir" && pwd`
  31161. + test -z "$absdir" && \
  31162. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  31163. + dir="$absdir"
  31164. + ;;
  31165. + esac
  31166. + case "$deplibs " in
  31167. + *" -L$dir "*) ;;
  31168. + *)
  31169. + deplibs="$deplibs -L$dir"
  31170. + lib_search_path="$lib_search_path $dir"
  31171. + ;;
  31172. + esac
  31173. + case $host in
  31174. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  31175. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  31176. + case :$dllsearchpath: in
  31177. + *":$dir:"*) ;;
  31178. + ::) dllsearchpath=$dir;;
  31179. + *) dllsearchpath="$dllsearchpath:$dir";;
  31180. + esac
  31181. + case :$dllsearchpath: in
  31182. + *":$testbindir:"*) ;;
  31183. + ::) dllsearchpath=$testbindir;;
  31184. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  31185. + esac
  31186. + ;;
  31187. + esac
  31188. + continue
  31189. + ;;
  31190. +
  31191. + -l*)
  31192. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  31193. + case $host in
  31194. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  31195. + # These systems don't actually have a C or math library (as such)
  31196. + continue
  31197. + ;;
  31198. + *-*-os2*)
  31199. + # These systems don't actually have a C library (as such)
  31200. + test "X$arg" = "X-lc" && continue
  31201. + ;;
  31202. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  31203. + # Do not include libc due to us having libc/libc_r.
  31204. + test "X$arg" = "X-lc" && continue
  31205. + ;;
  31206. + *-*-rhapsody* | *-*-darwin1.[012])
  31207. + # Rhapsody C and math libraries are in the System framework
  31208. + deplibs="$deplibs System.ltframework"
  31209. + continue
  31210. + ;;
  31211. + *-*-sco3.2v5* | *-*-sco5v6*)
  31212. + # Causes problems with __ctype
  31213. + test "X$arg" = "X-lc" && continue
  31214. + ;;
  31215. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  31216. + # Compiler inserts libc in the correct place for threads to work
  31217. + test "X$arg" = "X-lc" && continue
  31218. + ;;
  31219. + esac
  31220. + elif test "X$arg" = "X-lc_r"; then
  31221. + case $host in
  31222. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  31223. + # Do not include libc_r directly, use -pthread flag.
  31224. + continue
  31225. + ;;
  31226. + esac
  31227. + fi
  31228. + deplibs="$deplibs $arg"
  31229. + continue
  31230. + ;;
  31231. +
  31232. + -module)
  31233. + module=yes
  31234. + continue
  31235. + ;;
  31236. +
  31237. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  31238. + # classes, name mangling, and exception handling.
  31239. + # Darwin uses the -arch flag to determine output architecture.
  31240. + -model|-arch|-isysroot)
  31241. + compiler_flags="$compiler_flags $arg"
  31242. + func_append compile_command " $arg"
  31243. + func_append finalize_command " $arg"
  31244. + prev=xcompiler
  31245. + continue
  31246. + ;;
  31247. +
  31248. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  31249. + compiler_flags="$compiler_flags $arg"
  31250. + func_append compile_command " $arg"
  31251. + func_append finalize_command " $arg"
  31252. + case "$new_inherited_linker_flags " in
  31253. + *" $arg "*) ;;
  31254. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  31255. + esac
  31256. + continue
  31257. + ;;
  31258. +
  31259. + -multi_module)
  31260. + single_module="${wl}-multi_module"
  31261. + continue
  31262. + ;;
  31263. +
  31264. + -no-fast-install)
  31265. + fast_install=no
  31266. + continue
  31267. + ;;
  31268. +
  31269. + -no-install)
  31270. + case $host in
  31271. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  31272. + # The PATH hackery in wrapper scripts is required on Windows
  31273. + # and Darwin in order for the loader to find any dlls it needs.
  31274. + func_warning "\`-no-install' is ignored for $host"
  31275. + func_warning "assuming \`-no-fast-install' instead"
  31276. + fast_install=no
  31277. + ;;
  31278. + *) no_install=yes ;;
  31279. + esac
  31280. + continue
  31281. + ;;
  31282. +
  31283. + -no-undefined)
  31284. + allow_undefined=no
  31285. + continue
  31286. + ;;
  31287. +
  31288. + -objectlist)
  31289. + prev=objectlist
  31290. + continue
  31291. + ;;
  31292. +
  31293. + -o) prev=output ;;
  31294. +
  31295. + -precious-files-regex)
  31296. + prev=precious_regex
  31297. + continue
  31298. + ;;
  31299. +
  31300. + -release)
  31301. + prev=release
  31302. + continue
  31303. + ;;
  31304. +
  31305. + -rpath)
  31306. + prev=rpath
  31307. + continue
  31308. + ;;
  31309. +
  31310. + -R)
  31311. + prev=xrpath
  31312. + continue
  31313. + ;;
  31314. +
  31315. + -R*)
  31316. + func_stripname '-R' '' "$arg"
  31317. + dir=$func_stripname_result
  31318. + # We need an absolute path.
  31319. + case $dir in
  31320. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  31321. + *)
  31322. + func_fatal_error "only absolute run-paths are allowed"
  31323. + ;;
  31324. + esac
  31325. + case "$xrpath " in
  31326. + *" $dir "*) ;;
  31327. + *) xrpath="$xrpath $dir" ;;
  31328. + esac
  31329. + continue
  31330. + ;;
  31331. +
  31332. + -shared)
  31333. + # The effects of -shared are defined in a previous loop.
  31334. + continue
  31335. + ;;
  31336. +
  31337. + -shrext)
  31338. + prev=shrext
  31339. + continue
  31340. + ;;
  31341. +
  31342. + -static | -static-libtool-libs)
  31343. + # The effects of -static are defined in a previous loop.
  31344. + # We used to do the same as -all-static on platforms that
  31345. + # didn't have a PIC flag, but the assumption that the effects
  31346. + # would be equivalent was wrong. It would break on at least
  31347. + # Digital Unix and AIX.
  31348. + continue
  31349. + ;;
  31350. +
  31351. + -thread-safe)
  31352. + thread_safe=yes
  31353. + continue
  31354. + ;;
  31355. +
  31356. + -version-info)
  31357. + prev=vinfo
  31358. + continue
  31359. + ;;
  31360. +
  31361. + -version-number)
  31362. + prev=vinfo
  31363. + vinfo_number=yes
  31364. + continue
  31365. + ;;
  31366. +
  31367. + -weak)
  31368. + prev=weak
  31369. + continue
  31370. + ;;
  31371. +
  31372. + -Wc,*)
  31373. + func_stripname '-Wc,' '' "$arg"
  31374. + args=$func_stripname_result
  31375. + arg=
  31376. + save_ifs="$IFS"; IFS=','
  31377. + for flag in $args; do
  31378. + IFS="$save_ifs"
  31379. + func_quote_for_eval "$flag"
  31380. + arg="$arg $wl$func_quote_for_eval_result"
  31381. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  31382. + done
  31383. + IFS="$save_ifs"
  31384. + func_stripname ' ' '' "$arg"
  31385. + arg=$func_stripname_result
  31386. + ;;
  31387. +
  31388. + -Wl,*)
  31389. + func_stripname '-Wl,' '' "$arg"
  31390. + args=$func_stripname_result
  31391. + arg=
  31392. + save_ifs="$IFS"; IFS=','
  31393. + for flag in $args; do
  31394. + IFS="$save_ifs"
  31395. + func_quote_for_eval "$flag"
  31396. + arg="$arg $wl$func_quote_for_eval_result"
  31397. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  31398. + linker_flags="$linker_flags $func_quote_for_eval_result"
  31399. + done
  31400. + IFS="$save_ifs"
  31401. + func_stripname ' ' '' "$arg"
  31402. + arg=$func_stripname_result
  31403. + ;;
  31404. +
  31405. + -Xcompiler)
  31406. + prev=xcompiler
  31407. + continue
  31408. + ;;
  31409. +
  31410. + -Xlinker)
  31411. + prev=xlinker
  31412. + continue
  31413. + ;;
  31414. +
  31415. + -XCClinker)
  31416. + prev=xcclinker
  31417. + continue
  31418. + ;;
  31419. +
  31420. + # -msg_* for osf cc
  31421. + -msg_*)
  31422. + func_quote_for_eval "$arg"
  31423. + arg="$func_quote_for_eval_result"
  31424. + ;;
  31425. +
  31426. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  31427. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  31428. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  31429. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  31430. + # -q* pass through compiler args for the IBM compiler
  31431. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  31432. + # compiler args for GCC
  31433. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  31434. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  31435. + # @file GCC response files
  31436. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  31437. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
  31438. + func_quote_for_eval "$arg"
  31439. + arg="$func_quote_for_eval_result"
  31440. + func_append compile_command " $arg"
  31441. + func_append finalize_command " $arg"
  31442. + compiler_flags="$compiler_flags $arg"
  31443. + continue
  31444. + ;;
  31445. +
  31446. + # Some other compiler flag.
  31447. + -* | +*)
  31448. + func_quote_for_eval "$arg"
  31449. + arg="$func_quote_for_eval_result"
  31450. + ;;
  31451. +
  31452. + *.$objext)
  31453. + # A standard object.
  31454. + objs="$objs $arg"
  31455. + ;;
  31456. +
  31457. + *.lo)
  31458. + # A libtool-controlled object.
  31459. +
  31460. + # Check to see that this really is a libtool object.
  31461. + if func_lalib_unsafe_p "$arg"; then
  31462. + pic_object=
  31463. + non_pic_object=
  31464. +
  31465. + # Read the .lo file
  31466. + func_source "$arg"
  31467. +
  31468. + if test -z "$pic_object" ||
  31469. + test -z "$non_pic_object" ||
  31470. + test "$pic_object" = none &&
  31471. + test "$non_pic_object" = none; then
  31472. + func_fatal_error "cannot find name of object for \`$arg'"
  31473. + fi
  31474. +
  31475. + # Extract subdirectory from the argument.
  31476. + func_dirname "$arg" "/" ""
  31477. + xdir="$func_dirname_result"
  31478. +
  31479. + if test "$pic_object" != none; then
  31480. + # Prepend the subdirectory the object is found in.
  31481. + pic_object="$xdir$pic_object"
  31482. +
  31483. + if test "$prev" = dlfiles; then
  31484. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  31485. + dlfiles="$dlfiles $pic_object"
  31486. + prev=
  31487. + continue
  31488. + else
  31489. + # If libtool objects are unsupported, then we need to preload.
  31490. + prev=dlprefiles
  31491. + fi
  31492. + fi
  31493. +
  31494. + # CHECK ME: I think I busted this. -Ossama
  31495. + if test "$prev" = dlprefiles; then
  31496. + # Preload the old-style object.
  31497. + dlprefiles="$dlprefiles $pic_object"
  31498. + prev=
  31499. + fi
  31500. +
  31501. + # A PIC object.
  31502. + func_append libobjs " $pic_object"
  31503. + arg="$pic_object"
  31504. + fi
  31505. +
  31506. + # Non-PIC object.
  31507. + if test "$non_pic_object" != none; then
  31508. + # Prepend the subdirectory the object is found in.
  31509. + non_pic_object="$xdir$non_pic_object"
  31510. +
  31511. + # A standard non-PIC object
  31512. + func_append non_pic_objects " $non_pic_object"
  31513. + if test -z "$pic_object" || test "$pic_object" = none ; then
  31514. + arg="$non_pic_object"
  31515. + fi
  31516. + else
  31517. + # If the PIC object exists, use it instead.
  31518. + # $xdir was prepended to $pic_object above.
  31519. + non_pic_object="$pic_object"
  31520. + func_append non_pic_objects " $non_pic_object"
  31521. + fi
  31522. + else
  31523. + # Only an error if not doing a dry-run.
  31524. + if $opt_dry_run; then
  31525. + # Extract subdirectory from the argument.
  31526. + func_dirname "$arg" "/" ""
  31527. + xdir="$func_dirname_result"
  31528. +
  31529. + func_lo2o "$arg"
  31530. + pic_object=$xdir$objdir/$func_lo2o_result
  31531. + non_pic_object=$xdir$func_lo2o_result
  31532. + func_append libobjs " $pic_object"
  31533. + func_append non_pic_objects " $non_pic_object"
  31534. + else
  31535. + func_fatal_error "\`$arg' is not a valid libtool object"
  31536. + fi
  31537. + fi
  31538. + ;;
  31539. +
  31540. + *.$libext)
  31541. + # An archive.
  31542. + deplibs="$deplibs $arg"
  31543. + old_deplibs="$old_deplibs $arg"
  31544. + continue
  31545. + ;;
  31546. +
  31547. + *.la)
  31548. + # A libtool-controlled library.
  31549. +
  31550. + if test "$prev" = dlfiles; then
  31551. + # This library was specified with -dlopen.
  31552. + dlfiles="$dlfiles $arg"
  31553. + prev=
  31554. + elif test "$prev" = dlprefiles; then
  31555. + # The library was specified with -dlpreopen.
  31556. + dlprefiles="$dlprefiles $arg"
  31557. + prev=
  31558. + else
  31559. + deplibs="$deplibs $arg"
  31560. + fi
  31561. + continue
  31562. + ;;
  31563. +
  31564. + # Some other compiler argument.
  31565. + *)
  31566. + # Unknown arguments in both finalize_command and compile_command need
  31567. + # to be aesthetically quoted because they are evaled later.
  31568. + func_quote_for_eval "$arg"
  31569. + arg="$func_quote_for_eval_result"
  31570. + ;;
  31571. + esac # arg
  31572. +
  31573. + # Now actually substitute the argument into the commands.
  31574. + if test -n "$arg"; then
  31575. + func_append compile_command " $arg"
  31576. + func_append finalize_command " $arg"
  31577. + fi
  31578. + done # argument parsing loop
  31579. +
  31580. + test -n "$prev" && \
  31581. + func_fatal_help "the \`$prevarg' option requires an argument"
  31582. +
  31583. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  31584. + eval arg=\"$export_dynamic_flag_spec\"
  31585. + func_append compile_command " $arg"
  31586. + func_append finalize_command " $arg"
  31587. + fi
  31588. +
  31589. + oldlibs=
  31590. + # calculate the name of the file, without its directory
  31591. + func_basename "$output"
  31592. + outputname="$func_basename_result"
  31593. + libobjs_save="$libobjs"
  31594. +
  31595. + if test -n "$shlibpath_var"; then
  31596. + # get the directories listed in $shlibpath_var
  31597. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  31598. + else
  31599. + shlib_search_path=
  31600. + fi
  31601. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  31602. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  31603. +
  31604. + func_dirname "$output" "/" ""
  31605. + output_objdir="$func_dirname_result$objdir"
  31606. + # Create the object directory.
  31607. + func_mkdir_p "$output_objdir"
  31608. +
  31609. + # Determine the type of output
  31610. + case $output in
  31611. + "")
  31612. + func_fatal_help "you must specify an output file"
  31613. + ;;
  31614. + *.$libext) linkmode=oldlib ;;
  31615. + *.lo | *.$objext) linkmode=obj ;;
  31616. + *.la) linkmode=lib ;;
  31617. + *) linkmode=prog ;; # Anything else should be a program.
  31618. + esac
  31619. +
  31620. + specialdeplibs=
  31621. +
  31622. + libs=
  31623. + # Find all interdependent deplibs by searching for libraries
  31624. + # that are linked more than once (e.g. -la -lb -la)
  31625. + for deplib in $deplibs; do
  31626. + if $opt_duplicate_deps ; then
  31627. + case "$libs " in
  31628. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  31629. + esac
  31630. + fi
  31631. + libs="$libs $deplib"
  31632. + done
  31633. +
  31634. + if test "$linkmode" = lib; then
  31635. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  31636. +
  31637. + # Compute libraries that are listed more than once in $predeps
  31638. + # $postdeps and mark them as special (i.e., whose duplicates are
  31639. + # not to be eliminated).
  31640. + pre_post_deps=
  31641. + if $opt_duplicate_compiler_generated_deps; then
  31642. + for pre_post_dep in $predeps $postdeps; do
  31643. + case "$pre_post_deps " in
  31644. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  31645. + esac
  31646. + pre_post_deps="$pre_post_deps $pre_post_dep"
  31647. + done
  31648. + fi
  31649. + pre_post_deps=
  31650. + fi
  31651. +
  31652. + deplibs=
  31653. + newdependency_libs=
  31654. + newlib_search_path=
  31655. + need_relink=no # whether we're linking any uninstalled libtool libraries
  31656. + notinst_deplibs= # not-installed libtool libraries
  31657. + notinst_path= # paths that contain not-installed libtool libraries
  31658. +
  31659. + case $linkmode in
  31660. + lib)
  31661. + passes="conv dlpreopen link"
  31662. + for file in $dlfiles $dlprefiles; do
  31663. + case $file in
  31664. + *.la) ;;
  31665. + *)
  31666. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  31667. + ;;
  31668. + esac
  31669. + done
  31670. + ;;
  31671. + prog)
  31672. + compile_deplibs=
  31673. + finalize_deplibs=
  31674. + alldeplibs=no
  31675. + newdlfiles=
  31676. + newdlprefiles=
  31677. + passes="conv scan dlopen dlpreopen link"
  31678. + ;;
  31679. + *) passes="conv"
  31680. + ;;
  31681. + esac
  31682. +
  31683. + for pass in $passes; do
  31684. + # The preopen pass in lib mode reverses $deplibs; put it back here
  31685. + # so that -L comes before libs that need it for instance...
  31686. + if test "$linkmode,$pass" = "lib,link"; then
  31687. + ## FIXME: Find the place where the list is rebuilt in the wrong
  31688. + ## order, and fix it there properly
  31689. + tmp_deplibs=
  31690. + for deplib in $deplibs; do
  31691. + tmp_deplibs="$deplib $tmp_deplibs"
  31692. + done
  31693. + deplibs="$tmp_deplibs"
  31694. + fi
  31695. +
  31696. + if test "$linkmode,$pass" = "lib,link" ||
  31697. + test "$linkmode,$pass" = "prog,scan"; then
  31698. + libs="$deplibs"
  31699. + deplibs=
  31700. + fi
  31701. + if test "$linkmode" = prog; then
  31702. + case $pass in
  31703. + dlopen) libs="$dlfiles" ;;
  31704. + dlpreopen) libs="$dlprefiles" ;;
  31705. + link)
  31706. + libs="$deplibs %DEPLIBS%"
  31707. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  31708. + ;;
  31709. + esac
  31710. + fi
  31711. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  31712. + # Collect and forward deplibs of preopened libtool libs
  31713. + for lib in $dlprefiles; do
  31714. + # Ignore non-libtool-libs
  31715. + dependency_libs=
  31716. + case $lib in
  31717. + *.la) func_source "$lib" ;;
  31718. + esac
  31719. +
  31720. + # Collect preopened libtool deplibs, except any this library
  31721. + # has declared as weak libs
  31722. + for deplib in $dependency_libs; do
  31723. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  31724. + case " $weak_libs " in
  31725. + *" $deplib_base "*) ;;
  31726. + *) deplibs="$deplibs $deplib" ;;
  31727. + esac
  31728. + done
  31729. + done
  31730. + libs="$dlprefiles"
  31731. + fi
  31732. + if test "$pass" = dlopen; then
  31733. + # Collect dlpreopened libraries
  31734. + save_deplibs="$deplibs"
  31735. + deplibs=
  31736. + fi
  31737. +
  31738. + for deplib in $libs; do
  31739. + lib=
  31740. + found=no
  31741. + case $deplib in
  31742. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  31743. + if test "$linkmode,$pass" = "prog,link"; then
  31744. + compile_deplibs="$deplib $compile_deplibs"
  31745. + finalize_deplibs="$deplib $finalize_deplibs"
  31746. + else
  31747. + compiler_flags="$compiler_flags $deplib"
  31748. + if test "$linkmode" = lib ; then
  31749. + case "$new_inherited_linker_flags " in
  31750. + *" $deplib "*) ;;
  31751. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  31752. + esac
  31753. + fi
  31754. + fi
  31755. + continue
  31756. + ;;
  31757. + -l*)
  31758. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  31759. + func_warning "\`-l' is ignored for archives/objects"
  31760. + continue
  31761. + fi
  31762. + func_stripname '-l' '' "$deplib"
  31763. + name=$func_stripname_result
  31764. + if test "$linkmode" = lib; then
  31765. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  31766. + else
  31767. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  31768. + fi
  31769. + for searchdir in $searchdirs; do
  31770. + for search_ext in .la $std_shrext .so .a; do
  31771. + # Search the libtool library
  31772. + lib="$searchdir/lib${name}${search_ext}"
  31773. + if test -f "$lib"; then
  31774. + if test "$search_ext" = ".la"; then
  31775. + found=yes
  31776. + else
  31777. + found=no
  31778. + fi
  31779. + break 2
  31780. + fi
  31781. + done
  31782. + done
  31783. + if test "$found" != yes; then
  31784. + # deplib doesn't seem to be a libtool library
  31785. + if test "$linkmode,$pass" = "prog,link"; then
  31786. + compile_deplibs="$deplib $compile_deplibs"
  31787. + finalize_deplibs="$deplib $finalize_deplibs"
  31788. + else
  31789. + deplibs="$deplib $deplibs"
  31790. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  31791. + fi
  31792. + continue
  31793. + else # deplib is a libtool library
  31794. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  31795. + # We need to do some special things here, and not later.
  31796. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31797. + case " $predeps $postdeps " in
  31798. + *" $deplib "*)
  31799. + if func_lalib_p "$lib"; then
  31800. + library_names=
  31801. + old_library=
  31802. + func_source "$lib"
  31803. + for l in $old_library $library_names; do
  31804. + ll="$l"
  31805. + done
  31806. + if test "X$ll" = "X$old_library" ; then # only static version available
  31807. + found=no
  31808. + func_dirname "$lib" "" "."
  31809. + ladir="$func_dirname_result"
  31810. + lib=$ladir/$old_library
  31811. + if test "$linkmode,$pass" = "prog,link"; then
  31812. + compile_deplibs="$deplib $compile_deplibs"
  31813. + finalize_deplibs="$deplib $finalize_deplibs"
  31814. + else
  31815. + deplibs="$deplib $deplibs"
  31816. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  31817. + fi
  31818. + continue
  31819. + fi
  31820. + fi
  31821. + ;;
  31822. + *) ;;
  31823. + esac
  31824. + fi
  31825. + fi
  31826. + ;; # -l
  31827. + *.ltframework)
  31828. + if test "$linkmode,$pass" = "prog,link"; then
  31829. + compile_deplibs="$deplib $compile_deplibs"
  31830. + finalize_deplibs="$deplib $finalize_deplibs"
  31831. + else
  31832. + deplibs="$deplib $deplibs"
  31833. + if test "$linkmode" = lib ; then
  31834. + case "$new_inherited_linker_flags " in
  31835. + *" $deplib "*) ;;
  31836. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  31837. + esac
  31838. + fi
  31839. + fi
  31840. + continue
  31841. + ;;
  31842. + -L*)
  31843. + case $linkmode in
  31844. + lib)
  31845. + deplibs="$deplib $deplibs"
  31846. + test "$pass" = conv && continue
  31847. + newdependency_libs="$deplib $newdependency_libs"
  31848. + func_stripname '-L' '' "$deplib"
  31849. + newlib_search_path="$newlib_search_path $func_stripname_result"
  31850. + ;;
  31851. + prog)
  31852. + if test "$pass" = conv; then
  31853. + deplibs="$deplib $deplibs"
  31854. + continue
  31855. + fi
  31856. + if test "$pass" = scan; then
  31857. + deplibs="$deplib $deplibs"
  31858. + else
  31859. + compile_deplibs="$deplib $compile_deplibs"
  31860. + finalize_deplibs="$deplib $finalize_deplibs"
  31861. + fi
  31862. + func_stripname '-L' '' "$deplib"
  31863. + newlib_search_path="$newlib_search_path $func_stripname_result"
  31864. + ;;
  31865. + *)
  31866. + func_warning "\`-L' is ignored for archives/objects"
  31867. + ;;
  31868. + esac # linkmode
  31869. + continue
  31870. + ;; # -L
  31871. + -R*)
  31872. + if test "$pass" = link; then
  31873. + func_stripname '-R' '' "$deplib"
  31874. + dir=$func_stripname_result
  31875. + # Make sure the xrpath contains only unique directories.
  31876. + case "$xrpath " in
  31877. + *" $dir "*) ;;
  31878. + *) xrpath="$xrpath $dir" ;;
  31879. + esac
  31880. + fi
  31881. + deplibs="$deplib $deplibs"
  31882. + continue
  31883. + ;;
  31884. + *.la) lib="$deplib" ;;
  31885. + *.$libext)
  31886. + if test "$pass" = conv; then
  31887. + deplibs="$deplib $deplibs"
  31888. + continue
  31889. + fi
  31890. + case $linkmode in
  31891. + lib)
  31892. + # Linking convenience modules into shared libraries is allowed,
  31893. + # but linking other static libraries is non-portable.
  31894. + case " $dlpreconveniencelibs " in
  31895. + *" $deplib "*) ;;
  31896. + *)
  31897. + valid_a_lib=no
  31898. + case $deplibs_check_method in
  31899. + match_pattern*)
  31900. + set dummy $deplibs_check_method; shift
  31901. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  31902. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  31903. + | $EGREP "$match_pattern_regex" > /dev/null; then
  31904. + valid_a_lib=yes
  31905. + fi
  31906. + ;;
  31907. + pass_all)
  31908. + valid_a_lib=yes
  31909. + ;;
  31910. + esac
  31911. + if test "$valid_a_lib" != yes; then
  31912. + $ECHO
  31913. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  31914. + $ECHO "*** I have the capability to make that library automatically link in when"
  31915. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31916. + $ECHO "*** shared version of the library, which you do not appear to have"
  31917. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  31918. + $ECHO "*** that it is just a static archive that I should not use here."
  31919. + else
  31920. + $ECHO
  31921. + $ECHO "*** Warning: Linking the shared library $output against the"
  31922. + $ECHO "*** static library $deplib is not portable!"
  31923. + deplibs="$deplib $deplibs"
  31924. + fi
  31925. + ;;
  31926. + esac
  31927. + continue
  31928. + ;;
  31929. + prog)
  31930. + if test "$pass" != link; then
  31931. + deplibs="$deplib $deplibs"
  31932. + else
  31933. + compile_deplibs="$deplib $compile_deplibs"
  31934. + finalize_deplibs="$deplib $finalize_deplibs"
  31935. + fi
  31936. + continue
  31937. + ;;
  31938. + esac # linkmode
  31939. + ;; # *.$libext
  31940. + *.lo | *.$objext)
  31941. + if test "$pass" = conv; then
  31942. + deplibs="$deplib $deplibs"
  31943. + elif test "$linkmode" = prog; then
  31944. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  31945. + # If there is no dlopen support or we're linking statically,
  31946. + # we need to preload.
  31947. + newdlprefiles="$newdlprefiles $deplib"
  31948. + compile_deplibs="$deplib $compile_deplibs"
  31949. + finalize_deplibs="$deplib $finalize_deplibs"
  31950. + else
  31951. + newdlfiles="$newdlfiles $deplib"
  31952. + fi
  31953. + fi
  31954. + continue
  31955. + ;;
  31956. + %DEPLIBS%)
  31957. + alldeplibs=yes
  31958. + continue
  31959. + ;;
  31960. + esac # case $deplib
  31961. +
  31962. + if test "$found" = yes || test -f "$lib"; then :
  31963. + else
  31964. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  31965. + fi
  31966. +
  31967. + # Check to see that this really is a libtool archive.
  31968. + func_lalib_unsafe_p "$lib" \
  31969. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  31970. +
  31971. + func_dirname "$lib" "" "."
  31972. + ladir="$func_dirname_result"
  31973. +
  31974. + dlname=
  31975. + dlopen=
  31976. + dlpreopen=
  31977. + libdir=
  31978. + library_names=
  31979. + old_library=
  31980. + inherited_linker_flags=
  31981. + # If the library was installed with an old release of libtool,
  31982. + # it will not redefine variables installed, or shouldnotlink
  31983. + installed=yes
  31984. + shouldnotlink=no
  31985. + avoidtemprpath=
  31986. +
  31987. +
  31988. + # Read the .la file
  31989. + func_source "$lib"
  31990. +
  31991. + # Convert "-framework foo" to "foo.ltframework"
  31992. + if test -n "$inherited_linker_flags"; then
  31993. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  31994. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  31995. + case " $new_inherited_linker_flags " in
  31996. + *" $tmp_inherited_linker_flag "*) ;;
  31997. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  31998. + esac
  31999. + done
  32000. + fi
  32001. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32002. + if test "$linkmode,$pass" = "lib,link" ||
  32003. + test "$linkmode,$pass" = "prog,scan" ||
  32004. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  32005. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  32006. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  32007. + fi
  32008. +
  32009. + if test "$pass" = conv; then
  32010. + # Only check for convenience libraries
  32011. + deplibs="$lib $deplibs"
  32012. + if test -z "$libdir"; then
  32013. + if test -z "$old_library"; then
  32014. + func_fatal_error "cannot find name of link library for \`$lib'"
  32015. + fi
  32016. + # It is a libtool convenience library, so add in its objects.
  32017. + convenience="$convenience $ladir/$objdir/$old_library"
  32018. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  32019. + tmp_libs=
  32020. + for deplib in $dependency_libs; do
  32021. + deplibs="$deplib $deplibs"
  32022. + if $opt_duplicate_deps ; then
  32023. + case "$tmp_libs " in
  32024. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  32025. + esac
  32026. + fi
  32027. + tmp_libs="$tmp_libs $deplib"
  32028. + done
  32029. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  32030. + func_fatal_error "\`$lib' is not a convenience library"
  32031. + fi
  32032. + continue
  32033. + fi # $pass = conv
  32034. +
  32035. +
  32036. + # Get the name of the library we link against.
  32037. + linklib=
  32038. + for l in $old_library $library_names; do
  32039. + linklib="$l"
  32040. + done
  32041. + if test -z "$linklib"; then
  32042. + func_fatal_error "cannot find name of link library for \`$lib'"
  32043. + fi
  32044. +
  32045. + # This library was specified with -dlopen.
  32046. + if test "$pass" = dlopen; then
  32047. + if test -z "$libdir"; then
  32048. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  32049. + fi
  32050. + if test -z "$dlname" ||
  32051. + test "$dlopen_support" != yes ||
  32052. + test "$build_libtool_libs" = no; then
  32053. + # If there is no dlname, no dlopen support or we're linking
  32054. + # statically, we need to preload. We also need to preload any
  32055. + # dependent libraries so libltdl's deplib preloader doesn't
  32056. + # bomb out in the load deplibs phase.
  32057. + dlprefiles="$dlprefiles $lib $dependency_libs"
  32058. + else
  32059. + newdlfiles="$newdlfiles $lib"
  32060. + fi
  32061. + continue
  32062. + fi # $pass = dlopen
  32063. +
  32064. + # We need an absolute path.
  32065. + case $ladir in
  32066. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  32067. + *)
  32068. + abs_ladir=`cd "$ladir" && pwd`
  32069. + if test -z "$abs_ladir"; then
  32070. + func_warning "cannot determine absolute directory name of \`$ladir'"
  32071. + func_warning "passing it literally to the linker, although it might fail"
  32072. + abs_ladir="$ladir"
  32073. + fi
  32074. + ;;
  32075. + esac
  32076. + func_basename "$lib"
  32077. + laname="$func_basename_result"
  32078. +
  32079. + # Find the relevant object directory and library name.
  32080. + if test "X$installed" = Xyes; then
  32081. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  32082. + func_warning "library \`$lib' was moved."
  32083. + dir="$ladir"
  32084. + absdir="$abs_ladir"
  32085. + libdir="$abs_ladir"
  32086. + else
  32087. + dir="$libdir"
  32088. + absdir="$libdir"
  32089. + fi
  32090. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  32091. + else
  32092. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  32093. + dir="$ladir"
  32094. + absdir="$abs_ladir"
  32095. + # Remove this search path later
  32096. + notinst_path="$notinst_path $abs_ladir"
  32097. + else
  32098. + dir="$ladir/$objdir"
  32099. + absdir="$abs_ladir/$objdir"
  32100. + # Remove this search path later
  32101. + notinst_path="$notinst_path $abs_ladir"
  32102. + fi
  32103. + fi # $installed = yes
  32104. + func_stripname 'lib' '.la' "$laname"
  32105. + name=$func_stripname_result
  32106. +
  32107. + # This library was specified with -dlpreopen.
  32108. + if test "$pass" = dlpreopen; then
  32109. + if test -z "$libdir" && test "$linkmode" = prog; then
  32110. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  32111. + fi
  32112. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  32113. + # are required to link).
  32114. + if test -n "$old_library"; then
  32115. + newdlprefiles="$newdlprefiles $dir/$old_library"
  32116. + # Keep a list of preopened convenience libraries to check
  32117. + # that they are being used correctly in the link pass.
  32118. + test -z "$libdir" && \
  32119. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  32120. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  32121. + elif test -n "$dlname"; then
  32122. + newdlprefiles="$newdlprefiles $dir/$dlname"
  32123. + else
  32124. + newdlprefiles="$newdlprefiles $dir/$linklib"
  32125. + fi
  32126. + fi # $pass = dlpreopen
  32127. +
  32128. + if test -z "$libdir"; then
  32129. + # Link the convenience library
  32130. + if test "$linkmode" = lib; then
  32131. + deplibs="$dir/$old_library $deplibs"
  32132. + elif test "$linkmode,$pass" = "prog,link"; then
  32133. + compile_deplibs="$dir/$old_library $compile_deplibs"
  32134. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  32135. + else
  32136. + deplibs="$lib $deplibs" # used for prog,scan pass
  32137. + fi
  32138. + continue
  32139. + fi
  32140. +
  32141. +
  32142. + if test "$linkmode" = prog && test "$pass" != link; then
  32143. + newlib_search_path="$newlib_search_path $ladir"
  32144. + deplibs="$lib $deplibs"
  32145. +
  32146. + linkalldeplibs=no
  32147. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  32148. + test "$build_libtool_libs" = no; then
  32149. + linkalldeplibs=yes
  32150. + fi
  32151. +
  32152. + tmp_libs=
  32153. + for deplib in $dependency_libs; do
  32154. + case $deplib in
  32155. + -L*) func_stripname '-L' '' "$deplib"
  32156. + newlib_search_path="$newlib_search_path $func_stripname_result"
  32157. + ;;
  32158. + esac
  32159. + # Need to link against all dependency_libs?
  32160. + if test "$linkalldeplibs" = yes; then
  32161. + deplibs="$deplib $deplibs"
  32162. + else
  32163. + # Need to hardcode shared library paths
  32164. + # or/and link against static libraries
  32165. + newdependency_libs="$deplib $newdependency_libs"
  32166. + fi
  32167. + if $opt_duplicate_deps ; then
  32168. + case "$tmp_libs " in
  32169. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  32170. + esac
  32171. + fi
  32172. + tmp_libs="$tmp_libs $deplib"
  32173. + done # for deplib
  32174. + continue
  32175. + fi # $linkmode = prog...
  32176. +
  32177. + if test "$linkmode,$pass" = "prog,link"; then
  32178. + if test -n "$library_names" &&
  32179. + { { test "$prefer_static_libs" = no ||
  32180. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  32181. + test -z "$old_library"; }; then
  32182. + # We need to hardcode the library path
  32183. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  32184. + # Make sure the rpath contains only unique directories.
  32185. + case "$temp_rpath:" in
  32186. + *"$absdir:"*) ;;
  32187. + *) temp_rpath="$temp_rpath$absdir:" ;;
  32188. + esac
  32189. + fi
  32190. +
  32191. + # Hardcode the library path.
  32192. + # Skip directories that are in the system default run-time
  32193. + # search path.
  32194. + case " $sys_lib_dlsearch_path " in
  32195. + *" $absdir "*) ;;
  32196. + *)
  32197. + case "$compile_rpath " in
  32198. + *" $absdir "*) ;;
  32199. + *) compile_rpath="$compile_rpath $absdir"
  32200. + esac
  32201. + ;;
  32202. + esac
  32203. + case " $sys_lib_dlsearch_path " in
  32204. + *" $libdir "*) ;;
  32205. + *)
  32206. + case "$finalize_rpath " in
  32207. + *" $libdir "*) ;;
  32208. + *) finalize_rpath="$finalize_rpath $libdir"
  32209. + esac
  32210. + ;;
  32211. + esac
  32212. + fi # $linkmode,$pass = prog,link...
  32213. +
  32214. + if test "$alldeplibs" = yes &&
  32215. + { test "$deplibs_check_method" = pass_all ||
  32216. + { test "$build_libtool_libs" = yes &&
  32217. + test -n "$library_names"; }; }; then
  32218. + # We only need to search for static libraries
  32219. + continue
  32220. + fi
  32221. + fi
  32222. +
  32223. + link_static=no # Whether the deplib will be linked statically
  32224. + use_static_libs=$prefer_static_libs
  32225. + if test "$use_static_libs" = built && test "$installed" = yes; then
  32226. + use_static_libs=no
  32227. + fi
  32228. + if test -n "$library_names" &&
  32229. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  32230. + case $host in
  32231. + *cygwin* | *mingw* | *cegcc*)
  32232. + # No point in relinking DLLs because paths are not encoded
  32233. + notinst_deplibs="$notinst_deplibs $lib"
  32234. + need_relink=no
  32235. + ;;
  32236. + *)
  32237. + if test "$installed" = no; then
  32238. + notinst_deplibs="$notinst_deplibs $lib"
  32239. + need_relink=yes
  32240. + fi
  32241. + ;;
  32242. + esac
  32243. + # This is a shared library
  32244. +
  32245. + # Warn about portability, can't link against -module's on some
  32246. + # systems (darwin). Don't bleat about dlopened modules though!
  32247. + dlopenmodule=""
  32248. + for dlpremoduletest in $dlprefiles; do
  32249. + if test "X$dlpremoduletest" = "X$lib"; then
  32250. + dlopenmodule="$dlpremoduletest"
  32251. + break
  32252. + fi
  32253. + done
  32254. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  32255. + $ECHO
  32256. + if test "$linkmode" = prog; then
  32257. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  32258. + else
  32259. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  32260. + fi
  32261. + $ECHO "*** $linklib is not portable!"
  32262. + fi
  32263. + if test "$linkmode" = lib &&
  32264. + test "$hardcode_into_libs" = yes; then
  32265. + # Hardcode the library path.
  32266. + # Skip directories that are in the system default run-time
  32267. + # search path.
  32268. + case " $sys_lib_dlsearch_path " in
  32269. + *" $absdir "*) ;;
  32270. + *)
  32271. + case "$compile_rpath " in
  32272. + *" $absdir "*) ;;
  32273. + *) compile_rpath="$compile_rpath $absdir"
  32274. + esac
  32275. + ;;
  32276. + esac
  32277. + case " $sys_lib_dlsearch_path " in
  32278. + *" $libdir "*) ;;
  32279. + *)
  32280. + case "$finalize_rpath " in
  32281. + *" $libdir "*) ;;
  32282. + *) finalize_rpath="$finalize_rpath $libdir"
  32283. + esac
  32284. + ;;
  32285. + esac
  32286. + fi
  32287. +
  32288. + if test -n "$old_archive_from_expsyms_cmds"; then
  32289. + # figure out the soname
  32290. + set dummy $library_names
  32291. + shift
  32292. + realname="$1"
  32293. + shift
  32294. + libname=`eval "\\$ECHO \"$libname_spec\""`
  32295. + # use dlname if we got it. it's perfectly good, no?
  32296. + if test -n "$dlname"; then
  32297. + soname="$dlname"
  32298. + elif test -n "$soname_spec"; then
  32299. + # bleh windows
  32300. + case $host in
  32301. + *cygwin* | mingw* | *cegcc*)
  32302. + func_arith $current - $age
  32303. + major=$func_arith_result
  32304. + versuffix="-$major"
  32305. + ;;
  32306. + esac
  32307. + eval soname=\"$soname_spec\"
  32308. + else
  32309. + soname="$realname"
  32310. + fi
  32311. +
  32312. + # Make a new name for the extract_expsyms_cmds to use
  32313. + soroot="$soname"
  32314. + func_basename "$soroot"
  32315. + soname="$func_basename_result"
  32316. + func_stripname 'lib' '.dll' "$soname"
  32317. + newlib=libimp-$func_stripname_result.a
  32318. +
  32319. + # If the library has no export list, then create one now
  32320. + if test -f "$output_objdir/$soname-def"; then :
  32321. + else
  32322. + func_verbose "extracting exported symbol list from \`$soname'"
  32323. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  32324. + fi
  32325. +
  32326. + # Create $newlib
  32327. + if test -f "$output_objdir/$newlib"; then :; else
  32328. + func_verbose "generating import library for \`$soname'"
  32329. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  32330. + fi
  32331. + # make sure the library variables are pointing to the new library
  32332. + dir=$output_objdir
  32333. + linklib=$newlib
  32334. + fi # test -n "$old_archive_from_expsyms_cmds"
  32335. +
  32336. + if test "$linkmode" = prog || test "$mode" != relink; then
  32337. + add_shlibpath=
  32338. + add_dir=
  32339. + add=
  32340. + lib_linked=yes
  32341. + case $hardcode_action in
  32342. + immediate | unsupported)
  32343. + if test "$hardcode_direct" = no; then
  32344. + add="$dir/$linklib"
  32345. + case $host in
  32346. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  32347. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  32348. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  32349. + *-*-unixware7*) add_dir="-L$dir" ;;
  32350. + *-*-darwin* )
  32351. + # if the lib is a (non-dlopened) module then we can not
  32352. + # link against it, someone is ignoring the earlier warnings
  32353. + if /usr/bin/file -L $add 2> /dev/null |
  32354. + $GREP ": [^:]* bundle" >/dev/null ; then
  32355. + if test "X$dlopenmodule" != "X$lib"; then
  32356. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  32357. + if test -z "$old_library" ; then
  32358. + $ECHO
  32359. + $ECHO "*** And there doesn't seem to be a static archive available"
  32360. + $ECHO "*** The link will probably fail, sorry"
  32361. + else
  32362. + add="$dir/$old_library"
  32363. + fi
  32364. + elif test -n "$old_library"; then
  32365. + add="$dir/$old_library"
  32366. + fi
  32367. + fi
  32368. + esac
  32369. + elif test "$hardcode_minus_L" = no; then
  32370. + case $host in
  32371. + *-*-sunos*) add_shlibpath="$dir" ;;
  32372. + esac
  32373. + add_dir="-L$dir"
  32374. + add="-l$name"
  32375. + elif test "$hardcode_shlibpath_var" = no; then
  32376. + add_shlibpath="$dir"
  32377. + add="-l$name"
  32378. + else
  32379. + lib_linked=no
  32380. + fi
  32381. + ;;
  32382. + relink)
  32383. + if test "$hardcode_direct" = yes &&
  32384. + test "$hardcode_direct_absolute" = no; then
  32385. + add="$dir/$linklib"
  32386. + elif test "$hardcode_minus_L" = yes; then
  32387. + add_dir="-L$dir"
  32388. + # Try looking first in the location we're being installed to.
  32389. + if test -n "$inst_prefix_dir"; then
  32390. + case $libdir in
  32391. + [\\/]*)
  32392. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  32393. + ;;
  32394. + esac
  32395. + fi
  32396. + add="-l$name"
  32397. + elif test "$hardcode_shlibpath_var" = yes; then
  32398. + add_shlibpath="$dir"
  32399. + add="-l$name"
  32400. + else
  32401. + lib_linked=no
  32402. + fi
  32403. + ;;
  32404. + *) lib_linked=no ;;
  32405. + esac
  32406. +
  32407. + if test "$lib_linked" != yes; then
  32408. + func_fatal_configuration "unsupported hardcode properties"
  32409. + fi
  32410. +
  32411. + if test -n "$add_shlibpath"; then
  32412. + case :$compile_shlibpath: in
  32413. + *":$add_shlibpath:"*) ;;
  32414. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  32415. + esac
  32416. + fi
  32417. + if test "$linkmode" = prog; then
  32418. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  32419. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  32420. + else
  32421. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  32422. + test -n "$add" && deplibs="$add $deplibs"
  32423. + if test "$hardcode_direct" != yes &&
  32424. + test "$hardcode_minus_L" != yes &&
  32425. + test "$hardcode_shlibpath_var" = yes; then
  32426. + case :$finalize_shlibpath: in
  32427. + *":$libdir:"*) ;;
  32428. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  32429. + esac
  32430. + fi
  32431. + fi
  32432. + fi
  32433. +
  32434. + if test "$linkmode" = prog || test "$mode" = relink; then
  32435. + add_shlibpath=
  32436. + add_dir=
  32437. + add=
  32438. + # Finalize command for both is simple: just hardcode it.
  32439. + if test "$hardcode_direct" = yes &&
  32440. + test "$hardcode_direct_absolute" = no; then
  32441. + add="$libdir/$linklib"
  32442. + elif test "$hardcode_minus_L" = yes; then
  32443. + add_dir="-L$libdir"
  32444. + add="-l$name"
  32445. + elif test "$hardcode_shlibpath_var" = yes; then
  32446. + case :$finalize_shlibpath: in
  32447. + *":$libdir:"*) ;;
  32448. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  32449. + esac
  32450. + add="-l$name"
  32451. + elif test "$hardcode_automatic" = yes; then
  32452. + if test -n "$inst_prefix_dir" &&
  32453. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  32454. + add="$inst_prefix_dir$libdir/$linklib"
  32455. + else
  32456. + add="$libdir/$linklib"
  32457. + fi
  32458. + else
  32459. + # We cannot seem to hardcode it, guess we'll fake it.
  32460. + add_dir="-L$libdir"
  32461. + # Try looking first in the location we're being installed to.
  32462. + if test -n "$inst_prefix_dir"; then
  32463. + case $libdir in
  32464. + [\\/]*)
  32465. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  32466. + ;;
  32467. + esac
  32468. + fi
  32469. + add="-l$name"
  32470. + fi
  32471. +
  32472. + if test "$linkmode" = prog; then
  32473. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  32474. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  32475. + else
  32476. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  32477. + test -n "$add" && deplibs="$add $deplibs"
  32478. + fi
  32479. + fi
  32480. + elif test "$linkmode" = prog; then
  32481. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  32482. + # is not unsupported. This is valid on all known static and
  32483. + # shared platforms.
  32484. + if test "$hardcode_direct" != unsupported; then
  32485. + test -n "$old_library" && linklib="$old_library"
  32486. + compile_deplibs="$dir/$linklib $compile_deplibs"
  32487. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  32488. + else
  32489. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  32490. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  32491. + fi
  32492. + elif test "$build_libtool_libs" = yes; then
  32493. + # Not a shared library
  32494. + if test "$deplibs_check_method" != pass_all; then
  32495. + # We're trying link a shared library against a static one
  32496. + # but the system doesn't support it.
  32497. +
  32498. + # Just print a warning and add the library to dependency_libs so
  32499. + # that the program can be linked against the static library.
  32500. + $ECHO
  32501. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  32502. + $ECHO "*** I have the capability to make that library automatically link in when"
  32503. + $ECHO "*** you link to this library. But I can only do this if you have a"
  32504. + $ECHO "*** shared version of the library, which you do not appear to have."
  32505. + if test "$module" = yes; then
  32506. + $ECHO "*** But as you try to build a module library, libtool will still create "
  32507. + $ECHO "*** a static module, that should work as long as the dlopening application"
  32508. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  32509. + if test -z "$global_symbol_pipe"; then
  32510. + $ECHO
  32511. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  32512. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  32513. + $ECHO "*** not find such a program. So, this module is probably useless."
  32514. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  32515. + fi
  32516. + if test "$build_old_libs" = no; then
  32517. + build_libtool_libs=module
  32518. + build_old_libs=yes
  32519. + else
  32520. + build_libtool_libs=no
  32521. + fi
  32522. + fi
  32523. + else
  32524. + deplibs="$dir/$old_library $deplibs"
  32525. + link_static=yes
  32526. + fi
  32527. + fi # link shared/static library?
  32528. +
  32529. + if test "$linkmode" = lib; then
  32530. + if test -n "$dependency_libs" &&
  32531. + { test "$hardcode_into_libs" != yes ||
  32532. + test "$build_old_libs" = yes ||
  32533. + test "$link_static" = yes; }; then
  32534. + # Extract -R from dependency_libs
  32535. + temp_deplibs=
  32536. + for libdir in $dependency_libs; do
  32537. + case $libdir in
  32538. + -R*) func_stripname '-R' '' "$libdir"
  32539. + temp_xrpath=$func_stripname_result
  32540. + case " $xrpath " in
  32541. + *" $temp_xrpath "*) ;;
  32542. + *) xrpath="$xrpath $temp_xrpath";;
  32543. + esac;;
  32544. + *) temp_deplibs="$temp_deplibs $libdir";;
  32545. + esac
  32546. + done
  32547. + dependency_libs="$temp_deplibs"
  32548. + fi
  32549. +
  32550. + newlib_search_path="$newlib_search_path $absdir"
  32551. + # Link against this library
  32552. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  32553. + # ... and its dependency_libs
  32554. + tmp_libs=
  32555. + for deplib in $dependency_libs; do
  32556. + newdependency_libs="$deplib $newdependency_libs"
  32557. + if $opt_duplicate_deps ; then
  32558. + case "$tmp_libs " in
  32559. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  32560. + esac
  32561. + fi
  32562. + tmp_libs="$tmp_libs $deplib"
  32563. + done
  32564. +
  32565. + if test "$link_all_deplibs" != no; then
  32566. + # Add the search paths of all dependency libraries
  32567. + for deplib in $dependency_libs; do
  32568. + path=
  32569. + case $deplib in
  32570. + -L*) path="$deplib" ;;
  32571. + *.la)
  32572. + func_dirname "$deplib" "" "."
  32573. + dir="$func_dirname_result"
  32574. + # We need an absolute path.
  32575. + case $dir in
  32576. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  32577. + *)
  32578. + absdir=`cd "$dir" && pwd`
  32579. + if test -z "$absdir"; then
  32580. + func_warning "cannot determine absolute directory name of \`$dir'"
  32581. + absdir="$dir"
  32582. + fi
  32583. + ;;
  32584. + esac
  32585. + if $GREP "^installed=no" $deplib > /dev/null; then
  32586. + case $host in
  32587. + *-*-darwin*)
  32588. + depdepl=
  32589. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  32590. + if test -n "$deplibrary_names" ; then
  32591. + for tmp in $deplibrary_names ; do
  32592. + depdepl=$tmp
  32593. + done
  32594. + if test -f "$absdir/$objdir/$depdepl" ; then
  32595. + depdepl="$absdir/$objdir/$depdepl"
  32596. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  32597. + if test -z "$darwin_install_name"; then
  32598. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  32599. + fi
  32600. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  32601. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  32602. + path=
  32603. + fi
  32604. + fi
  32605. + ;;
  32606. + *)
  32607. + path="-L$absdir/$objdir"
  32608. + ;;
  32609. + esac
  32610. + else
  32611. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  32612. + test -z "$libdir" && \
  32613. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  32614. + test "$absdir" != "$libdir" && \
  32615. + func_warning "\`$deplib' seems to be moved"
  32616. +
  32617. + path="-L$absdir"
  32618. + fi
  32619. + ;;
  32620. + esac
  32621. + case " $deplibs " in
  32622. + *" $path "*) ;;
  32623. + *) deplibs="$path $deplibs" ;;
  32624. + esac
  32625. + done
  32626. + fi # link_all_deplibs != no
  32627. + fi # linkmode = lib
  32628. + done # for deplib in $libs
  32629. + if test "$pass" = link; then
  32630. + if test "$linkmode" = "prog"; then
  32631. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  32632. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  32633. + else
  32634. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32635. + fi
  32636. + fi
  32637. + dependency_libs="$newdependency_libs"
  32638. + if test "$pass" = dlpreopen; then
  32639. + # Link the dlpreopened libraries before other libraries
  32640. + for deplib in $save_deplibs; do
  32641. + deplibs="$deplib $deplibs"
  32642. + done
  32643. + fi
  32644. + if test "$pass" != dlopen; then
  32645. + if test "$pass" != conv; then
  32646. + # Make sure lib_search_path contains only unique directories.
  32647. + lib_search_path=
  32648. + for dir in $newlib_search_path; do
  32649. + case "$lib_search_path " in
  32650. + *" $dir "*) ;;
  32651. + *) lib_search_path="$lib_search_path $dir" ;;
  32652. + esac
  32653. + done
  32654. + newlib_search_path=
  32655. + fi
  32656. +
  32657. + if test "$linkmode,$pass" != "prog,link"; then
  32658. + vars="deplibs"
  32659. + else
  32660. + vars="compile_deplibs finalize_deplibs"
  32661. + fi
  32662. + for var in $vars dependency_libs; do
  32663. + # Add libraries to $var in reverse order
  32664. + eval tmp_libs=\"\$$var\"
  32665. + new_libs=
  32666. + for deplib in $tmp_libs; do
  32667. + # FIXME: Pedantically, this is the right thing to do, so
  32668. + # that some nasty dependency loop isn't accidentally
  32669. + # broken:
  32670. + #new_libs="$deplib $new_libs"
  32671. + # Pragmatically, this seems to cause very few problems in
  32672. + # practice:
  32673. + case $deplib in
  32674. + -L*) new_libs="$deplib $new_libs" ;;
  32675. + -R*) ;;
  32676. + *)
  32677. + # And here is the reason: when a library appears more
  32678. + # than once as an explicit dependence of a library, or
  32679. + # is implicitly linked in more than once by the
  32680. + # compiler, it is considered special, and multiple
  32681. + # occurrences thereof are not removed. Compare this
  32682. + # with having the same library being listed as a
  32683. + # dependency of multiple other libraries: in this case,
  32684. + # we know (pedantically, we assume) the library does not
  32685. + # need to be listed more than once, so we keep only the
  32686. + # last copy. This is not always right, but it is rare
  32687. + # enough that we require users that really mean to play
  32688. + # such unportable linking tricks to link the library
  32689. + # using -Wl,-lname, so that libtool does not consider it
  32690. + # for duplicate removal.
  32691. + case " $specialdeplibs " in
  32692. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  32693. + *)
  32694. + case " $new_libs " in
  32695. + *" $deplib "*) ;;
  32696. + *) new_libs="$deplib $new_libs" ;;
  32697. + esac
  32698. + ;;
  32699. + esac
  32700. + ;;
  32701. + esac
  32702. + done
  32703. + tmp_libs=
  32704. + for deplib in $new_libs; do
  32705. + case $deplib in
  32706. + -L*)
  32707. + case " $tmp_libs " in
  32708. + *" $deplib "*) ;;
  32709. + *) tmp_libs="$tmp_libs $deplib" ;;
  32710. + esac
  32711. + ;;
  32712. + *) tmp_libs="$tmp_libs $deplib" ;;
  32713. + esac
  32714. + done
  32715. + eval $var=\"$tmp_libs\"
  32716. + done # for var
  32717. + fi
  32718. + # Last step: remove runtime libs from dependency_libs
  32719. + # (they stay in deplibs)
  32720. + tmp_libs=
  32721. + for i in $dependency_libs ; do
  32722. + case " $predeps $postdeps $compiler_lib_search_path " in
  32723. + *" $i "*)
  32724. + i=""
  32725. + ;;
  32726. + esac
  32727. + if test -n "$i" ; then
  32728. + tmp_libs="$tmp_libs $i"
  32729. + fi
  32730. + done
  32731. + dependency_libs=$tmp_libs
  32732. + done # for pass
  32733. + if test "$linkmode" = prog; then
  32734. + dlfiles="$newdlfiles"
  32735. + fi
  32736. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  32737. + dlprefiles="$newdlprefiles"
  32738. + fi
  32739. +
  32740. + case $linkmode in
  32741. + oldlib)
  32742. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  32743. + func_warning "\`-dlopen' is ignored for archives"
  32744. + fi
  32745. +
  32746. + case " $deplibs" in
  32747. + *\ -l* | *\ -L*)
  32748. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  32749. + esac
  32750. +
  32751. + test -n "$rpath" && \
  32752. + func_warning "\`-rpath' is ignored for archives"
  32753. +
  32754. + test -n "$xrpath" && \
  32755. + func_warning "\`-R' is ignored for archives"
  32756. +
  32757. + test -n "$vinfo" && \
  32758. + func_warning "\`-version-info/-version-number' is ignored for archives"
  32759. +
  32760. + test -n "$release" && \
  32761. + func_warning "\`-release' is ignored for archives"
  32762. +
  32763. + test -n "$export_symbols$export_symbols_regex" && \
  32764. + func_warning "\`-export-symbols' is ignored for archives"
  32765. +
  32766. + # Now set the variables for building old libraries.
  32767. + build_libtool_libs=no
  32768. + oldlibs="$output"
  32769. + objs="$objs$old_deplibs"
  32770. + ;;
  32771. +
  32772. + lib)
  32773. + # Make sure we only generate libraries of the form `libNAME.la'.
  32774. + case $outputname in
  32775. + lib*)
  32776. + func_stripname 'lib' '.la' "$outputname"
  32777. + name=$func_stripname_result
  32778. + eval shared_ext=\"$shrext_cmds\"
  32779. + eval libname=\"$libname_spec\"
  32780. + ;;
  32781. + *)
  32782. + test "$module" = no && \
  32783. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  32784. +
  32785. + if test "$need_lib_prefix" != no; then
  32786. + # Add the "lib" prefix for modules if required
  32787. + func_stripname '' '.la' "$outputname"
  32788. + name=$func_stripname_result
  32789. + eval shared_ext=\"$shrext_cmds\"
  32790. + eval libname=\"$libname_spec\"
  32791. + else
  32792. + func_stripname '' '.la' "$outputname"
  32793. + libname=$func_stripname_result
  32794. + fi
  32795. + ;;
  32796. + esac
  32797. +
  32798. + if test -n "$objs"; then
  32799. + if test "$deplibs_check_method" != pass_all; then
  32800. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  32801. + else
  32802. + $ECHO
  32803. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  32804. + $ECHO "*** objects $objs is not portable!"
  32805. + libobjs="$libobjs $objs"
  32806. + fi
  32807. + fi
  32808. +
  32809. + test "$dlself" != no && \
  32810. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  32811. +
  32812. + set dummy $rpath
  32813. + shift
  32814. + test "$#" -gt 1 && \
  32815. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  32816. +
  32817. + install_libdir="$1"
  32818. +
  32819. + oldlibs=
  32820. + if test -z "$rpath"; then
  32821. + if test "$build_libtool_libs" = yes; then
  32822. + # Building a libtool convenience library.
  32823. + # Some compilers have problems with a `.al' extension so
  32824. + # convenience libraries should have the same extension an
  32825. + # archive normally would.
  32826. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  32827. + build_libtool_libs=convenience
  32828. + build_old_libs=yes
  32829. + fi
  32830. +
  32831. + test -n "$vinfo" && \
  32832. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  32833. +
  32834. + test -n "$release" && \
  32835. + func_warning "\`-release' is ignored for convenience libraries"
  32836. + else
  32837. +
  32838. + # Parse the version information argument.
  32839. + save_ifs="$IFS"; IFS=':'
  32840. + set dummy $vinfo 0 0 0
  32841. + shift
  32842. + IFS="$save_ifs"
  32843. +
  32844. + test -n "$7" && \
  32845. + func_fatal_help "too many parameters to \`-version-info'"
  32846. +
  32847. + # convert absolute version numbers to libtool ages
  32848. + # this retains compatibility with .la files and attempts
  32849. + # to make the code below a bit more comprehensible
  32850. +
  32851. + case $vinfo_number in
  32852. + yes)
  32853. + number_major="$1"
  32854. + number_minor="$2"
  32855. + number_revision="$3"
  32856. + #
  32857. + # There are really only two kinds -- those that
  32858. + # use the current revision as the major version
  32859. + # and those that subtract age and use age as
  32860. + # a minor version. But, then there is irix
  32861. + # which has an extra 1 added just for fun
  32862. + #
  32863. + case $version_type in
  32864. + darwin|linux|osf|windows|none)
  32865. + func_arith $number_major + $number_minor
  32866. + current=$func_arith_result
  32867. + age="$number_minor"
  32868. + revision="$number_revision"
  32869. + ;;
  32870. + freebsd-aout|freebsd-elf|sunos)
  32871. + current="$number_major"
  32872. + revision="$number_minor"
  32873. + age="0"
  32874. + ;;
  32875. + irix|nonstopux)
  32876. + func_arith $number_major + $number_minor
  32877. + current=$func_arith_result
  32878. + age="$number_minor"
  32879. + revision="$number_minor"
  32880. + lt_irix_increment=no
  32881. + ;;
  32882. + *)
  32883. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  32884. + ;;
  32885. + esac
  32886. + ;;
  32887. + no)
  32888. + current="$1"
  32889. + revision="$2"
  32890. + age="$3"
  32891. + ;;
  32892. + esac
  32893. +
  32894. + # Check that each of the things are valid numbers.
  32895. + case $current in
  32896. + 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]) ;;
  32897. + *)
  32898. + func_error "CURRENT \`$current' must be a nonnegative integer"
  32899. + func_fatal_error "\`$vinfo' is not valid version information"
  32900. + ;;
  32901. + esac
  32902. +
  32903. + case $revision in
  32904. + 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]) ;;
  32905. + *)
  32906. + func_error "REVISION \`$revision' must be a nonnegative integer"
  32907. + func_fatal_error "\`$vinfo' is not valid version information"
  32908. + ;;
  32909. + esac
  32910. +
  32911. + case $age in
  32912. + 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]) ;;
  32913. + *)
  32914. + func_error "AGE \`$age' must be a nonnegative integer"
  32915. + func_fatal_error "\`$vinfo' is not valid version information"
  32916. + ;;
  32917. + esac
  32918. +
  32919. + if test "$age" -gt "$current"; then
  32920. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  32921. + func_fatal_error "\`$vinfo' is not valid version information"
  32922. + fi
  32923. +
  32924. + # Calculate the version variables.
  32925. + major=
  32926. + versuffix=
  32927. + verstring=
  32928. + case $version_type in
  32929. + none) ;;
  32930. +
  32931. + darwin)
  32932. + # Like Linux, but with the current version available in
  32933. + # verstring for coding it into the library header
  32934. + func_arith $current - $age
  32935. + major=.$func_arith_result
  32936. + versuffix="$major.$age.$revision"
  32937. + # Darwin ld doesn't like 0 for these options...
  32938. + func_arith $current + 1
  32939. + minor_current=$func_arith_result
  32940. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  32941. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  32942. + ;;
  32943. +
  32944. + freebsd-aout)
  32945. + major=".$current"
  32946. + versuffix=".$current.$revision";
  32947. + ;;
  32948. +
  32949. + freebsd-elf)
  32950. + major=".$current"
  32951. + versuffix=".$current"
  32952. + ;;
  32953. +
  32954. + irix | nonstopux)
  32955. + if test "X$lt_irix_increment" = "Xno"; then
  32956. + func_arith $current - $age
  32957. + else
  32958. + func_arith $current - $age + 1
  32959. + fi
  32960. + major=$func_arith_result
  32961. +
  32962. + case $version_type in
  32963. + nonstopux) verstring_prefix=nonstopux ;;
  32964. + *) verstring_prefix=sgi ;;
  32965. + esac
  32966. + verstring="$verstring_prefix$major.$revision"
  32967. +
  32968. + # Add in all the interfaces that we are compatible with.
  32969. + loop=$revision
  32970. + while test "$loop" -ne 0; do
  32971. + func_arith $revision - $loop
  32972. + iface=$func_arith_result
  32973. + func_arith $loop - 1
  32974. + loop=$func_arith_result
  32975. + verstring="$verstring_prefix$major.$iface:$verstring"
  32976. + done
  32977. +
  32978. + # Before this point, $major must not contain `.'.
  32979. + major=.$major
  32980. + versuffix="$major.$revision"
  32981. + ;;
  32982. +
  32983. + linux)
  32984. + func_arith $current - $age
  32985. + major=.$func_arith_result
  32986. + versuffix="$major.$age.$revision"
  32987. + ;;
  32988. +
  32989. + osf)
  32990. + func_arith $current - $age
  32991. + major=.$func_arith_result
  32992. + versuffix=".$current.$age.$revision"
  32993. + verstring="$current.$age.$revision"
  32994. +
  32995. + # Add in all the interfaces that we are compatible with.
  32996. + loop=$age
  32997. + while test "$loop" -ne 0; do
  32998. + func_arith $current - $loop
  32999. + iface=$func_arith_result
  33000. + func_arith $loop - 1
  33001. + loop=$func_arith_result
  33002. + verstring="$verstring:${iface}.0"
  33003. + done
  33004. +
  33005. + # Make executables depend on our current version.
  33006. + verstring="$verstring:${current}.0"
  33007. + ;;
  33008. +
  33009. + qnx)
  33010. + major=".$current"
  33011. + versuffix=".$current"
  33012. + ;;
  33013. +
  33014. + sunos)
  33015. + major=".$current"
  33016. + versuffix=".$current.$revision"
  33017. + ;;
  33018. +
  33019. + windows)
  33020. + # Use '-' rather than '.', since we only want one
  33021. + # extension on DOS 8.3 filesystems.
  33022. + func_arith $current - $age
  33023. + major=$func_arith_result
  33024. + versuffix="-$major"
  33025. + ;;
  33026. +
  33027. + *)
  33028. + func_fatal_configuration "unknown library version type \`$version_type'"
  33029. + ;;
  33030. + esac
  33031. +
  33032. + # Clear the version info if we defaulted, and they specified a release.
  33033. + if test -z "$vinfo" && test -n "$release"; then
  33034. + major=
  33035. + case $version_type in
  33036. + darwin)
  33037. + # we can't check for "0.0" in archive_cmds due to quoting
  33038. + # problems, so we reset it completely
  33039. + verstring=
  33040. + ;;
  33041. + *)
  33042. + verstring="0.0"
  33043. + ;;
  33044. + esac
  33045. + if test "$need_version" = no; then
  33046. + versuffix=
  33047. + else
  33048. + versuffix=".0.0"
  33049. + fi
  33050. + fi
  33051. +
  33052. + # Remove version info from name if versioning should be avoided
  33053. + if test "$avoid_version" = yes && test "$need_version" = no; then
  33054. + major=
  33055. + versuffix=
  33056. + verstring=""
  33057. + fi
  33058. +
  33059. + # Check to see if the archive will have undefined symbols.
  33060. + if test "$allow_undefined" = yes; then
  33061. + if test "$allow_undefined_flag" = unsupported; then
  33062. + func_warning "undefined symbols not allowed in $host shared libraries"
  33063. + build_libtool_libs=no
  33064. + build_old_libs=yes
  33065. + fi
  33066. + else
  33067. + # Don't allow undefined symbols.
  33068. + allow_undefined_flag="$no_undefined_flag"
  33069. + fi
  33070. +
  33071. + fi
  33072. +
  33073. + func_generate_dlsyms "$libname" "$libname" "yes"
  33074. + libobjs="$libobjs $symfileobj"
  33075. + test "X$libobjs" = "X " && libobjs=
  33076. +
  33077. + if test "$mode" != relink; then
  33078. + # Remove our outputs, but don't remove object files since they
  33079. + # may have been created when compiling PIC objects.
  33080. + removelist=
  33081. + tempremovelist=`$ECHO "$output_objdir/*"`
  33082. + for p in $tempremovelist; do
  33083. + case $p in
  33084. + *.$objext | *.gcno)
  33085. + ;;
  33086. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  33087. + if test "X$precious_files_regex" != "X"; then
  33088. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  33089. + then
  33090. + continue
  33091. + fi
  33092. + fi
  33093. + removelist="$removelist $p"
  33094. + ;;
  33095. + *) ;;
  33096. + esac
  33097. + done
  33098. + test -n "$removelist" && \
  33099. + func_show_eval "${RM}r \$removelist"
  33100. + fi
  33101. +
  33102. + # Now set the variables for building old libraries.
  33103. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  33104. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  33105. +
  33106. + # Transform .lo files to .o files.
  33107. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  33108. + fi
  33109. +
  33110. + # Eliminate all temporary directories.
  33111. + #for path in $notinst_path; do
  33112. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  33113. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  33114. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  33115. + #done
  33116. +
  33117. + if test -n "$xrpath"; then
  33118. + # If the user specified any rpath flags, then add them.
  33119. + temp_xrpath=
  33120. + for libdir in $xrpath; do
  33121. + temp_xrpath="$temp_xrpath -R$libdir"
  33122. + case "$finalize_rpath " in
  33123. + *" $libdir "*) ;;
  33124. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  33125. + esac
  33126. + done
  33127. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  33128. + dependency_libs="$temp_xrpath $dependency_libs"
  33129. + fi
  33130. + fi
  33131. +
  33132. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  33133. + old_dlfiles="$dlfiles"
  33134. + dlfiles=
  33135. + for lib in $old_dlfiles; do
  33136. + case " $dlprefiles $dlfiles " in
  33137. + *" $lib "*) ;;
  33138. + *) dlfiles="$dlfiles $lib" ;;
  33139. + esac
  33140. + done
  33141. +
  33142. + # Make sure dlprefiles contains only unique files
  33143. + old_dlprefiles="$dlprefiles"
  33144. + dlprefiles=
  33145. + for lib in $old_dlprefiles; do
  33146. + case "$dlprefiles " in
  33147. + *" $lib "*) ;;
  33148. + *) dlprefiles="$dlprefiles $lib" ;;
  33149. + esac
  33150. + done
  33151. +
  33152. + if test "$build_libtool_libs" = yes; then
  33153. + if test -n "$rpath"; then
  33154. + case $host in
  33155. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  33156. + # these systems don't actually have a c library (as such)!
  33157. + ;;
  33158. + *-*-rhapsody* | *-*-darwin1.[012])
  33159. + # Rhapsody C library is in the System framework
  33160. + deplibs="$deplibs System.ltframework"
  33161. + ;;
  33162. + *-*-netbsd*)
  33163. + # Don't link with libc until the a.out ld.so is fixed.
  33164. + ;;
  33165. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  33166. + # Do not include libc due to us having libc/libc_r.
  33167. + ;;
  33168. + *-*-sco3.2v5* | *-*-sco5v6*)
  33169. + # Causes problems with __ctype
  33170. + ;;
  33171. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  33172. + # Compiler inserts libc in the correct place for threads to work
  33173. + ;;
  33174. + *)
  33175. + # Add libc to deplibs on all other systems if necessary.
  33176. + if test "$build_libtool_need_lc" = "yes"; then
  33177. + deplibs="$deplibs -lc"
  33178. + fi
  33179. + ;;
  33180. + esac
  33181. + fi
  33182. +
  33183. + # Transform deplibs into only deplibs that can be linked in shared.
  33184. + name_save=$name
  33185. + libname_save=$libname
  33186. + release_save=$release
  33187. + versuffix_save=$versuffix
  33188. + major_save=$major
  33189. + # I'm not sure if I'm treating the release correctly. I think
  33190. + # release should show up in the -l (ie -lgmp5) so we don't want to
  33191. + # add it in twice. Is that correct?
  33192. + release=""
  33193. + versuffix=""
  33194. + major=""
  33195. + newdeplibs=
  33196. + droppeddeps=no
  33197. + case $deplibs_check_method in
  33198. + pass_all)
  33199. + # Don't check for shared/static. Everything works.
  33200. + # This might be a little naive. We might want to check
  33201. + # whether the library exists or not. But this is on
  33202. + # osf3 & osf4 and I'm not really sure... Just
  33203. + # implementing what was already the behavior.
  33204. + newdeplibs=$deplibs
  33205. + ;;
  33206. + test_compile)
  33207. + # This code stresses the "libraries are programs" paradigm to its
  33208. + # limits. Maybe even breaks it. We compile a program, linking it
  33209. + # against the deplibs as a proxy for the library. Then we can check
  33210. + # whether they linked in statically or dynamically with ldd.
  33211. + $opt_dry_run || $RM conftest.c
  33212. + cat > conftest.c <<EOF
  33213. + int main() { return 0; }
  33214. +EOF
  33215. + $opt_dry_run || $RM conftest
  33216. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  33217. + ldd_output=`ldd conftest`
  33218. + for i in $deplibs; do
  33219. + case $i in
  33220. + -l*)
  33221. + func_stripname -l '' "$i"
  33222. + name=$func_stripname_result
  33223. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  33224. + case " $predeps $postdeps " in
  33225. + *" $i "*)
  33226. + newdeplibs="$newdeplibs $i"
  33227. + i=""
  33228. + ;;
  33229. + esac
  33230. + fi
  33231. + if test -n "$i" ; then
  33232. + libname=`eval "\\$ECHO \"$libname_spec\""`
  33233. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  33234. + set dummy $deplib_matches; shift
  33235. + deplib_match=$1
  33236. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  33237. + newdeplibs="$newdeplibs $i"
  33238. + else
  33239. + droppeddeps=yes
  33240. + $ECHO
  33241. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  33242. + $ECHO "*** I have the capability to make that library automatically link in when"
  33243. + $ECHO "*** you link to this library. But I can only do this if you have a"
  33244. + $ECHO "*** shared version of the library, which I believe you do not have"
  33245. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  33246. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  33247. + fi
  33248. + fi
  33249. + ;;
  33250. + *)
  33251. + newdeplibs="$newdeplibs $i"
  33252. + ;;
  33253. + esac
  33254. + done
  33255. + else
  33256. + # Error occurred in the first compile. Let's try to salvage
  33257. + # the situation: Compile a separate program for each library.
  33258. + for i in $deplibs; do
  33259. + case $i in
  33260. + -l*)
  33261. + func_stripname -l '' "$i"
  33262. + name=$func_stripname_result
  33263. + $opt_dry_run || $RM conftest
  33264. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  33265. + ldd_output=`ldd conftest`
  33266. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  33267. + case " $predeps $postdeps " in
  33268. + *" $i "*)
  33269. + newdeplibs="$newdeplibs $i"
  33270. + i=""
  33271. + ;;
  33272. + esac
  33273. + fi
  33274. + if test -n "$i" ; then
  33275. + libname=`eval "\\$ECHO \"$libname_spec\""`
  33276. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  33277. + set dummy $deplib_matches; shift
  33278. + deplib_match=$1
  33279. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  33280. + newdeplibs="$newdeplibs $i"
  33281. + else
  33282. + droppeddeps=yes
  33283. + $ECHO
  33284. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  33285. + $ECHO "*** I have the capability to make that library automatically link in when"
  33286. + $ECHO "*** you link to this library. But I can only do this if you have a"
  33287. + $ECHO "*** shared version of the library, which you do not appear to have"
  33288. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  33289. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  33290. + fi
  33291. + fi
  33292. + else
  33293. + droppeddeps=yes
  33294. + $ECHO
  33295. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  33296. + $ECHO "*** make it link in! You will probably need to install it or some"
  33297. + $ECHO "*** library that it depends on before this library will be fully"
  33298. + $ECHO "*** functional. Installing it before continuing would be even better."
  33299. + fi
  33300. + ;;
  33301. + *)
  33302. + newdeplibs="$newdeplibs $i"
  33303. + ;;
  33304. + esac
  33305. + done
  33306. + fi
  33307. + ;;
  33308. + file_magic*)
  33309. + set dummy $deplibs_check_method; shift
  33310. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  33311. + for a_deplib in $deplibs; do
  33312. + case $a_deplib in
  33313. + -l*)
  33314. + func_stripname -l '' "$a_deplib"
  33315. + name=$func_stripname_result
  33316. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  33317. + case " $predeps $postdeps " in
  33318. + *" $a_deplib "*)
  33319. + newdeplibs="$newdeplibs $a_deplib"
  33320. + a_deplib=""
  33321. + ;;
  33322. + esac
  33323. + fi
  33324. + if test -n "$a_deplib" ; then
  33325. + libname=`eval "\\$ECHO \"$libname_spec\""`
  33326. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  33327. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  33328. + for potent_lib in $potential_libs; do
  33329. + # Follow soft links.
  33330. + if ls -lLd "$potent_lib" 2>/dev/null |
  33331. + $GREP " -> " >/dev/null; then
  33332. + continue
  33333. + fi
  33334. + # The statement above tries to avoid entering an
  33335. + # endless loop below, in case of cyclic links.
  33336. + # We might still enter an endless loop, since a link
  33337. + # loop can be closed while we follow links,
  33338. + # but so what?
  33339. + potlib="$potent_lib"
  33340. + while test -h "$potlib" 2>/dev/null; do
  33341. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  33342. + case $potliblink in
  33343. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  33344. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  33345. + esac
  33346. + done
  33347. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  33348. + $SED -e 10q |
  33349. + $EGREP "$file_magic_regex" > /dev/null; then
  33350. + newdeplibs="$newdeplibs $a_deplib"
  33351. + a_deplib=""
  33352. + break 2
  33353. + fi
  33354. + done
  33355. + done
  33356. + fi
  33357. + if test -n "$a_deplib" ; then
  33358. + droppeddeps=yes
  33359. + $ECHO
  33360. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  33361. + $ECHO "*** I have the capability to make that library automatically link in when"
  33362. + $ECHO "*** you link to this library. But I can only do this if you have a"
  33363. + $ECHO "*** shared version of the library, which you do not appear to have"
  33364. + $ECHO "*** because I did check the linker path looking for a file starting"
  33365. + if test -z "$potlib" ; then
  33366. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  33367. + else
  33368. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  33369. + $ECHO "*** using a file magic. Last file checked: $potlib"
  33370. + fi
  33371. + fi
  33372. + ;;
  33373. + *)
  33374. + # Add a -L argument.
  33375. + newdeplibs="$newdeplibs $a_deplib"
  33376. + ;;
  33377. + esac
  33378. + done # Gone through all deplibs.
  33379. + ;;
  33380. + match_pattern*)
  33381. + set dummy $deplibs_check_method; shift
  33382. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  33383. + for a_deplib in $deplibs; do
  33384. + case $a_deplib in
  33385. + -l*)
  33386. + func_stripname -l '' "$a_deplib"
  33387. + name=$func_stripname_result
  33388. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  33389. + case " $predeps $postdeps " in
  33390. + *" $a_deplib "*)
  33391. + newdeplibs="$newdeplibs $a_deplib"
  33392. + a_deplib=""
  33393. + ;;
  33394. + esac
  33395. + fi
  33396. + if test -n "$a_deplib" ; then
  33397. + libname=`eval "\\$ECHO \"$libname_spec\""`
  33398. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  33399. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  33400. + for potent_lib in $potential_libs; do
  33401. + potlib="$potent_lib" # see symlink-check above in file_magic test
  33402. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  33403. + $EGREP "$match_pattern_regex" > /dev/null; then
  33404. + newdeplibs="$newdeplibs $a_deplib"
  33405. + a_deplib=""
  33406. + break 2
  33407. + fi
  33408. + done
  33409. + done
  33410. + fi
  33411. + if test -n "$a_deplib" ; then
  33412. + droppeddeps=yes
  33413. + $ECHO
  33414. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  33415. + $ECHO "*** I have the capability to make that library automatically link in when"
  33416. + $ECHO "*** you link to this library. But I can only do this if you have a"
  33417. + $ECHO "*** shared version of the library, which you do not appear to have"
  33418. + $ECHO "*** because I did check the linker path looking for a file starting"
  33419. + if test -z "$potlib" ; then
  33420. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  33421. + else
  33422. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  33423. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  33424. + fi
  33425. + fi
  33426. + ;;
  33427. + *)
  33428. + # Add a -L argument.
  33429. + newdeplibs="$newdeplibs $a_deplib"
  33430. + ;;
  33431. + esac
  33432. + done # Gone through all deplibs.
  33433. + ;;
  33434. + none | unknown | *)
  33435. + newdeplibs=""
  33436. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  33437. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  33438. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  33439. + for i in $predeps $postdeps ; do
  33440. + # can't use Xsed below, because $i might contain '/'
  33441. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  33442. + done
  33443. + fi
  33444. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  33445. + $GREP . >/dev/null; then
  33446. + $ECHO
  33447. + if test "X$deplibs_check_method" = "Xnone"; then
  33448. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  33449. + else
  33450. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  33451. + fi
  33452. + $ECHO "*** All declared inter-library dependencies are being dropped."
  33453. + droppeddeps=yes
  33454. + fi
  33455. + ;;
  33456. + esac
  33457. + versuffix=$versuffix_save
  33458. + major=$major_save
  33459. + release=$release_save
  33460. + libname=$libname_save
  33461. + name=$name_save
  33462. +
  33463. + case $host in
  33464. + *-*-rhapsody* | *-*-darwin1.[012])
  33465. + # On Rhapsody replace the C library with the System framework
  33466. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  33467. + ;;
  33468. + esac
  33469. +
  33470. + if test "$droppeddeps" = yes; then
  33471. + if test "$module" = yes; then
  33472. + $ECHO
  33473. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  33474. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  33475. + $ECHO "*** a static module, that should work as long as the dlopening"
  33476. + $ECHO "*** application is linked with the -dlopen flag."
  33477. + if test -z "$global_symbol_pipe"; then
  33478. + $ECHO
  33479. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  33480. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  33481. + $ECHO "*** not find such a program. So, this module is probably useless."
  33482. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  33483. + fi
  33484. + if test "$build_old_libs" = no; then
  33485. + oldlibs="$output_objdir/$libname.$libext"
  33486. + build_libtool_libs=module
  33487. + build_old_libs=yes
  33488. + else
  33489. + build_libtool_libs=no
  33490. + fi
  33491. + else
  33492. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  33493. + $ECHO "*** automatically added whenever a program is linked with this library"
  33494. + $ECHO "*** or is declared to -dlopen it."
  33495. +
  33496. + if test "$allow_undefined" = no; then
  33497. + $ECHO
  33498. + $ECHO "*** Since this library must not contain undefined symbols,"
  33499. + $ECHO "*** because either the platform does not support them or"
  33500. + $ECHO "*** it was explicitly requested with -no-undefined,"
  33501. + $ECHO "*** libtool will only create a static version of it."
  33502. + if test "$build_old_libs" = no; then
  33503. + oldlibs="$output_objdir/$libname.$libext"
  33504. + build_libtool_libs=module
  33505. + build_old_libs=yes
  33506. + else
  33507. + build_libtool_libs=no
  33508. + fi
  33509. + fi
  33510. + fi
  33511. + fi
  33512. + # Done checking deplibs!
  33513. + deplibs=$newdeplibs
  33514. + fi
  33515. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  33516. + case $host in
  33517. + *-*-darwin*)
  33518. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  33519. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  33520. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  33521. + ;;
  33522. + esac
  33523. +
  33524. + # move library search paths that coincide with paths to not yet
  33525. + # installed libraries to the beginning of the library search list
  33526. + new_libs=
  33527. + for path in $notinst_path; do
  33528. + case " $new_libs " in
  33529. + *" -L$path/$objdir "*) ;;
  33530. + *)
  33531. + case " $deplibs " in
  33532. + *" -L$path/$objdir "*)
  33533. + new_libs="$new_libs -L$path/$objdir" ;;
  33534. + esac
  33535. + ;;
  33536. + esac
  33537. + done
  33538. + for deplib in $deplibs; do
  33539. + case $deplib in
  33540. + -L*)
  33541. + case " $new_libs " in
  33542. + *" $deplib "*) ;;
  33543. + *) new_libs="$new_libs $deplib" ;;
  33544. + esac
  33545. + ;;
  33546. + *) new_libs="$new_libs $deplib" ;;
  33547. + esac
  33548. + done
  33549. + deplibs="$new_libs"
  33550. +
  33551. + # All the library-specific variables (install_libdir is set above).
  33552. + library_names=
  33553. + old_library=
  33554. + dlname=
  33555. +
  33556. + # Test again, we may have decided not to build it any more
  33557. + if test "$build_libtool_libs" = yes; then
  33558. + if test "$hardcode_into_libs" = yes; then
  33559. + # Hardcode the library paths
  33560. + hardcode_libdirs=
  33561. + dep_rpath=
  33562. + rpath="$finalize_rpath"
  33563. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  33564. + for libdir in $rpath; do
  33565. + if test -n "$hardcode_libdir_flag_spec"; then
  33566. + if test -n "$hardcode_libdir_separator"; then
  33567. + if test -z "$hardcode_libdirs"; then
  33568. + hardcode_libdirs="$libdir"
  33569. + else
  33570. + # Just accumulate the unique libdirs.
  33571. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  33572. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  33573. + ;;
  33574. + *)
  33575. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  33576. + ;;
  33577. + esac
  33578. + fi
  33579. + else
  33580. + eval flag=\"$hardcode_libdir_flag_spec\"
  33581. + dep_rpath="$dep_rpath $flag"
  33582. + fi
  33583. + elif test -n "$runpath_var"; then
  33584. + case "$perm_rpath " in
  33585. + *" $libdir "*) ;;
  33586. + *) perm_rpath="$perm_rpath $libdir" ;;
  33587. + esac
  33588. + fi
  33589. + done
  33590. + # Substitute the hardcoded libdirs into the rpath.
  33591. + if test -n "$hardcode_libdir_separator" &&
  33592. + test -n "$hardcode_libdirs"; then
  33593. + libdir="$hardcode_libdirs"
  33594. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  33595. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  33596. + else
  33597. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  33598. + fi
  33599. + fi
  33600. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  33601. + # We should set the runpath_var.
  33602. + rpath=
  33603. + for dir in $perm_rpath; do
  33604. + rpath="$rpath$dir:"
  33605. + done
  33606. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  33607. + fi
  33608. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  33609. + fi
  33610. +
  33611. + shlibpath="$finalize_shlibpath"
  33612. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  33613. + if test -n "$shlibpath"; then
  33614. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  33615. + fi
  33616. +
  33617. + # Get the real and link names of the library.
  33618. + eval shared_ext=\"$shrext_cmds\"
  33619. + eval library_names=\"$library_names_spec\"
  33620. + set dummy $library_names
  33621. + shift
  33622. + realname="$1"
  33623. + shift
  33624. +
  33625. + if test -n "$soname_spec"; then
  33626. + eval soname=\"$soname_spec\"
  33627. + else
  33628. + soname="$realname"
  33629. + fi
  33630. + if test -z "$dlname"; then
  33631. + dlname=$soname
  33632. + fi
  33633. +
  33634. + lib="$output_objdir/$realname"
  33635. + linknames=
  33636. + for link
  33637. + do
  33638. + linknames="$linknames $link"
  33639. + done
  33640. +
  33641. + # Use standard objects if they are pic
  33642. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  33643. + test "X$libobjs" = "X " && libobjs=
  33644. +
  33645. + delfiles=
  33646. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  33647. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  33648. + export_symbols="$output_objdir/$libname.uexp"
  33649. + delfiles="$delfiles $export_symbols"
  33650. + fi
  33651. +
  33652. + orig_export_symbols=
  33653. + case $host_os in
  33654. + cygwin* | mingw* | cegcc*)
  33655. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  33656. + # exporting using user supplied symfile
  33657. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  33658. + # and it's NOT already a .def file. Must figure out
  33659. + # which of the given symbols are data symbols and tag
  33660. + # them as such. So, trigger use of export_symbols_cmds.
  33661. + # export_symbols gets reassigned inside the "prepare
  33662. + # the list of exported symbols" if statement, so the
  33663. + # include_expsyms logic still works.
  33664. + orig_export_symbols="$export_symbols"
  33665. + export_symbols=
  33666. + always_export_symbols=yes
  33667. + fi
  33668. + fi
  33669. + ;;
  33670. + esac
  33671. +
  33672. + # Prepare the list of exported symbols
  33673. + if test -z "$export_symbols"; then
  33674. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  33675. + func_verbose "generating symbol list for \`$libname.la'"
  33676. + export_symbols="$output_objdir/$libname.exp"
  33677. + $opt_dry_run || $RM $export_symbols
  33678. + cmds=$export_symbols_cmds
  33679. + save_ifs="$IFS"; IFS='~'
  33680. + for cmd in $cmds; do
  33681. + IFS="$save_ifs"
  33682. + eval cmd=\"$cmd\"
  33683. + func_len " $cmd"
  33684. + len=$func_len_result
  33685. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  33686. + func_show_eval "$cmd" 'exit $?'
  33687. + skipped_export=false
  33688. + else
  33689. + # The command line is too long to execute in one step.
  33690. + func_verbose "using reloadable object file for export list..."
  33691. + skipped_export=:
  33692. + # Break out early, otherwise skipped_export may be
  33693. + # set to false by a later but shorter cmd.
  33694. + break
  33695. + fi
  33696. + done
  33697. + IFS="$save_ifs"
  33698. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  33699. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  33700. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  33701. + fi
  33702. + fi
  33703. + fi
  33704. +
  33705. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  33706. + tmp_export_symbols="$export_symbols"
  33707. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  33708. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  33709. + fi
  33710. +
  33711. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  33712. + # The given exports_symbols file has to be filtered, so filter it.
  33713. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  33714. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  33715. + # 's' commands which not all seds can handle. GNU sed should be fine
  33716. + # though. Also, the filter scales superlinearly with the number of
  33717. + # global variables. join(1) would be nice here, but unfortunately
  33718. + # isn't a blessed tool.
  33719. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  33720. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  33721. + export_symbols=$output_objdir/$libname.def
  33722. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  33723. + fi
  33724. +
  33725. + tmp_deplibs=
  33726. + for test_deplib in $deplibs; do
  33727. + case " $convenience " in
  33728. + *" $test_deplib "*) ;;
  33729. + *)
  33730. + tmp_deplibs="$tmp_deplibs $test_deplib"
  33731. + ;;
  33732. + esac
  33733. + done
  33734. + deplibs="$tmp_deplibs"
  33735. +
  33736. + if test -n "$convenience"; then
  33737. + if test -n "$whole_archive_flag_spec" &&
  33738. + test "$compiler_needs_object" = yes &&
  33739. + test -z "$libobjs"; then
  33740. + # extract the archives, so we have objects to list.
  33741. + # TODO: could optimize this to just extract one archive.
  33742. + whole_archive_flag_spec=
  33743. + fi
  33744. + if test -n "$whole_archive_flag_spec"; then
  33745. + save_libobjs=$libobjs
  33746. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  33747. + test "X$libobjs" = "X " && libobjs=
  33748. + else
  33749. + gentop="$output_objdir/${outputname}x"
  33750. + generated="$generated $gentop"
  33751. +
  33752. + func_extract_archives $gentop $convenience
  33753. + libobjs="$libobjs $func_extract_archives_result"
  33754. + test "X$libobjs" = "X " && libobjs=
  33755. + fi
  33756. + fi
  33757. +
  33758. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  33759. + eval flag=\"$thread_safe_flag_spec\"
  33760. + linker_flags="$linker_flags $flag"
  33761. + fi
  33762. +
  33763. + # Make a backup of the uninstalled library when relinking
  33764. + if test "$mode" = relink; then
  33765. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  33766. + fi
  33767. +
  33768. + # Do each of the archive commands.
  33769. + if test "$module" = yes && test -n "$module_cmds" ; then
  33770. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  33771. + eval test_cmds=\"$module_expsym_cmds\"
  33772. + cmds=$module_expsym_cmds
  33773. + else
  33774. + eval test_cmds=\"$module_cmds\"
  33775. + cmds=$module_cmds
  33776. + fi
  33777. + else
  33778. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  33779. + eval test_cmds=\"$archive_expsym_cmds\"
  33780. + cmds=$archive_expsym_cmds
  33781. + else
  33782. + eval test_cmds=\"$archive_cmds\"
  33783. + cmds=$archive_cmds
  33784. + fi
  33785. + fi
  33786. +
  33787. + if test "X$skipped_export" != "X:" &&
  33788. + func_len " $test_cmds" &&
  33789. + len=$func_len_result &&
  33790. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  33791. + :
  33792. + else
  33793. + # The command line is too long to link in one step, link piecewise
  33794. + # or, if using GNU ld and skipped_export is not :, use a linker
  33795. + # script.
  33796. +
  33797. + # Save the value of $output and $libobjs because we want to
  33798. + # use them later. If we have whole_archive_flag_spec, we
  33799. + # want to use save_libobjs as it was before
  33800. + # whole_archive_flag_spec was expanded, because we can't
  33801. + # assume the linker understands whole_archive_flag_spec.
  33802. + # This may have to be revisited, in case too many
  33803. + # convenience libraries get linked in and end up exceeding
  33804. + # the spec.
  33805. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  33806. + save_libobjs=$libobjs
  33807. + fi
  33808. + save_output=$output
  33809. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  33810. +
  33811. + # Clear the reloadable object creation command queue and
  33812. + # initialize k to one.
  33813. + test_cmds=
  33814. + concat_cmds=
  33815. + objlist=
  33816. + last_robj=
  33817. + k=1
  33818. +
  33819. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  33820. + output=${output_objdir}/${output_la}.lnkscript
  33821. + func_verbose "creating GNU ld script: $output"
  33822. + $ECHO 'INPUT (' > $output
  33823. + for obj in $save_libobjs
  33824. + do
  33825. + $ECHO "$obj" >> $output
  33826. + done
  33827. + $ECHO ')' >> $output
  33828. + delfiles="$delfiles $output"
  33829. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  33830. + output=${output_objdir}/${output_la}.lnk
  33831. + func_verbose "creating linker input file list: $output"
  33832. + : > $output
  33833. + set x $save_libobjs
  33834. + shift
  33835. + firstobj=
  33836. + if test "$compiler_needs_object" = yes; then
  33837. + firstobj="$1 "
  33838. + shift
  33839. + fi
  33840. + for obj
  33841. + do
  33842. + $ECHO "$obj" >> $output
  33843. + done
  33844. + delfiles="$delfiles $output"
  33845. + output=$firstobj\"$file_list_spec$output\"
  33846. + else
  33847. + if test -n "$save_libobjs"; then
  33848. + func_verbose "creating reloadable object files..."
  33849. + output=$output_objdir/$output_la-${k}.$objext
  33850. + eval test_cmds=\"$reload_cmds\"
  33851. + func_len " $test_cmds"
  33852. + len0=$func_len_result
  33853. + len=$len0
  33854. +
  33855. + # Loop over the list of objects to be linked.
  33856. + for obj in $save_libobjs
  33857. + do
  33858. + func_len " $obj"
  33859. + func_arith $len + $func_len_result
  33860. + len=$func_arith_result
  33861. + if test "X$objlist" = X ||
  33862. + test "$len" -lt "$max_cmd_len"; then
  33863. + func_append objlist " $obj"
  33864. + else
  33865. + # The command $test_cmds is almost too long, add a
  33866. + # command to the queue.
  33867. + if test "$k" -eq 1 ; then
  33868. + # The first file doesn't have a previous command to add.
  33869. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  33870. + else
  33871. + # All subsequent reloadable object files will link in
  33872. + # the last one created.
  33873. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  33874. + fi
  33875. + last_robj=$output_objdir/$output_la-${k}.$objext
  33876. + func_arith $k + 1
  33877. + k=$func_arith_result
  33878. + output=$output_objdir/$output_la-${k}.$objext
  33879. + objlist=$obj
  33880. + func_len " $last_robj"
  33881. + func_arith $len0 + $func_len_result
  33882. + len=$func_arith_result
  33883. + fi
  33884. + done
  33885. + # Handle the remaining objects by creating one last
  33886. + # reloadable object file. All subsequent reloadable object
  33887. + # files will link in the last one created.
  33888. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  33889. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  33890. + if test -n "$last_robj"; then
  33891. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  33892. + fi
  33893. + delfiles="$delfiles $output"
  33894. +
  33895. + else
  33896. + output=
  33897. + fi
  33898. +
  33899. + if ${skipped_export-false}; then
  33900. + func_verbose "generating symbol list for \`$libname.la'"
  33901. + export_symbols="$output_objdir/$libname.exp"
  33902. + $opt_dry_run || $RM $export_symbols
  33903. + libobjs=$output
  33904. + # Append the command to create the export file.
  33905. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  33906. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  33907. + if test -n "$last_robj"; then
  33908. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  33909. + fi
  33910. + fi
  33911. +
  33912. + test -n "$save_libobjs" &&
  33913. + func_verbose "creating a temporary reloadable object file: $output"
  33914. +
  33915. + # Loop through the commands generated above and execute them.
  33916. + save_ifs="$IFS"; IFS='~'
  33917. + for cmd in $concat_cmds; do
  33918. + IFS="$save_ifs"
  33919. + $opt_silent || {
  33920. + func_quote_for_expand "$cmd"
  33921. + eval "func_echo $func_quote_for_expand_result"
  33922. + }
  33923. + $opt_dry_run || eval "$cmd" || {
  33924. + lt_exit=$?
  33925. +
  33926. + # Restore the uninstalled library and exit
  33927. + if test "$mode" = relink; then
  33928. + ( cd "$output_objdir" && \
  33929. + $RM "${realname}T" && \
  33930. + $MV "${realname}U" "$realname" )
  33931. + fi
  33932. +
  33933. + exit $lt_exit
  33934. + }
  33935. + done
  33936. + IFS="$save_ifs"
  33937. +
  33938. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  33939. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  33940. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  33941. + fi
  33942. + fi
  33943. +
  33944. + if ${skipped_export-false}; then
  33945. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  33946. + tmp_export_symbols="$export_symbols"
  33947. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  33948. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  33949. + fi
  33950. +
  33951. + if test -n "$orig_export_symbols"; then
  33952. + # The given exports_symbols file has to be filtered, so filter it.
  33953. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  33954. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  33955. + # 's' commands which not all seds can handle. GNU sed should be fine
  33956. + # though. Also, the filter scales superlinearly with the number of
  33957. + # global variables. join(1) would be nice here, but unfortunately
  33958. + # isn't a blessed tool.
  33959. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  33960. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  33961. + export_symbols=$output_objdir/$libname.def
  33962. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  33963. + fi
  33964. + fi
  33965. +
  33966. + libobjs=$output
  33967. + # Restore the value of output.
  33968. + output=$save_output
  33969. +
  33970. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  33971. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  33972. + test "X$libobjs" = "X " && libobjs=
  33973. + fi
  33974. + # Expand the library linking commands again to reset the
  33975. + # value of $libobjs for piecewise linking.
  33976. +
  33977. + # Do each of the archive commands.
  33978. + if test "$module" = yes && test -n "$module_cmds" ; then
  33979. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  33980. + cmds=$module_expsym_cmds
  33981. + else
  33982. + cmds=$module_cmds
  33983. + fi
  33984. + else
  33985. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  33986. + cmds=$archive_expsym_cmds
  33987. + else
  33988. + cmds=$archive_cmds
  33989. + fi
  33990. + fi
  33991. + fi
  33992. +
  33993. + if test -n "$delfiles"; then
  33994. + # Append the command to remove temporary files to $cmds.
  33995. + eval cmds=\"\$cmds~\$RM $delfiles\"
  33996. + fi
  33997. +
  33998. + # Add any objects from preloaded convenience libraries
  33999. + if test -n "$dlprefiles"; then
  34000. + gentop="$output_objdir/${outputname}x"
  34001. + generated="$generated $gentop"
  34002. +
  34003. + func_extract_archives $gentop $dlprefiles
  34004. + libobjs="$libobjs $func_extract_archives_result"
  34005. + test "X$libobjs" = "X " && libobjs=
  34006. + fi
  34007. +
  34008. + save_ifs="$IFS"; IFS='~'
  34009. + for cmd in $cmds; do
  34010. + IFS="$save_ifs"
  34011. + eval cmd=\"$cmd\"
  34012. + $opt_silent || {
  34013. + func_quote_for_expand "$cmd"
  34014. + eval "func_echo $func_quote_for_expand_result"
  34015. + }
  34016. + $opt_dry_run || eval "$cmd" || {
  34017. + lt_exit=$?
  34018. +
  34019. + # Restore the uninstalled library and exit
  34020. + if test "$mode" = relink; then
  34021. + ( cd "$output_objdir" && \
  34022. + $RM "${realname}T" && \
  34023. + $MV "${realname}U" "$realname" )
  34024. + fi
  34025. +
  34026. + exit $lt_exit
  34027. + }
  34028. + done
  34029. + IFS="$save_ifs"
  34030. +
  34031. + # Restore the uninstalled library and exit
  34032. + if test "$mode" = relink; then
  34033. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  34034. +
  34035. + if test -n "$convenience"; then
  34036. + if test -z "$whole_archive_flag_spec"; then
  34037. + func_show_eval '${RM}r "$gentop"'
  34038. + fi
  34039. + fi
  34040. +
  34041. + exit $EXIT_SUCCESS
  34042. + fi
  34043. +
  34044. + # Create links to the real library.
  34045. + for linkname in $linknames; do
  34046. + if test "$realname" != "$linkname"; then
  34047. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  34048. + fi
  34049. + done
  34050. +
  34051. + # If -module or -export-dynamic was specified, set the dlname.
  34052. + if test "$module" = yes || test "$export_dynamic" = yes; then
  34053. + # On all known operating systems, these are identical.
  34054. + dlname="$soname"
  34055. + fi
  34056. + fi
  34057. + ;;
  34058. +
  34059. + obj)
  34060. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  34061. + func_warning "\`-dlopen' is ignored for objects"
  34062. + fi
  34063. +
  34064. + case " $deplibs" in
  34065. + *\ -l* | *\ -L*)
  34066. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  34067. + esac
  34068. +
  34069. + test -n "$rpath" && \
  34070. + func_warning "\`-rpath' is ignored for objects"
  34071. +
  34072. + test -n "$xrpath" && \
  34073. + func_warning "\`-R' is ignored for objects"
  34074. +
  34075. + test -n "$vinfo" && \
  34076. + func_warning "\`-version-info' is ignored for objects"
  34077. +
  34078. + test -n "$release" && \
  34079. + func_warning "\`-release' is ignored for objects"
  34080. +
  34081. + case $output in
  34082. + *.lo)
  34083. + test -n "$objs$old_deplibs" && \
  34084. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  34085. +
  34086. + libobj=$output
  34087. + func_lo2o "$libobj"
  34088. + obj=$func_lo2o_result
  34089. + ;;
  34090. + *)
  34091. + libobj=
  34092. + obj="$output"
  34093. + ;;
  34094. + esac
  34095. +
  34096. + # Delete the old objects.
  34097. + $opt_dry_run || $RM $obj $libobj
  34098. +
  34099. + # Objects from convenience libraries. This assumes
  34100. + # single-version convenience libraries. Whenever we create
  34101. + # different ones for PIC/non-PIC, this we'll have to duplicate
  34102. + # the extraction.
  34103. + reload_conv_objs=
  34104. + gentop=
  34105. + # reload_cmds runs $LD directly, so let us get rid of
  34106. + # -Wl from whole_archive_flag_spec and hope we can get by with
  34107. + # turning comma into space..
  34108. + wl=
  34109. +
  34110. + if test -n "$convenience"; then
  34111. + if test -n "$whole_archive_flag_spec"; then
  34112. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  34113. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  34114. + else
  34115. + gentop="$output_objdir/${obj}x"
  34116. + generated="$generated $gentop"
  34117. +
  34118. + func_extract_archives $gentop $convenience
  34119. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  34120. + fi
  34121. + fi
  34122. +
  34123. + # Create the old-style object.
  34124. + 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
  34125. +
  34126. + output="$obj"
  34127. + func_execute_cmds "$reload_cmds" 'exit $?'
  34128. +
  34129. + # Exit if we aren't doing a library object file.
  34130. + if test -z "$libobj"; then
  34131. + if test -n "$gentop"; then
  34132. + func_show_eval '${RM}r "$gentop"'
  34133. + fi
  34134. +
  34135. + exit $EXIT_SUCCESS
  34136. + fi
  34137. +
  34138. + if test "$build_libtool_libs" != yes; then
  34139. + if test -n "$gentop"; then
  34140. + func_show_eval '${RM}r "$gentop"'
  34141. + fi
  34142. +
  34143. + # Create an invalid libtool object if no PIC, so that we don't
  34144. + # accidentally link it into a program.
  34145. + # $show "echo timestamp > $libobj"
  34146. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  34147. + exit $EXIT_SUCCESS
  34148. + fi
  34149. +
  34150. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  34151. + # Only do commands if we really have different PIC objects.
  34152. + reload_objs="$libobjs $reload_conv_objs"
  34153. + output="$libobj"
  34154. + func_execute_cmds "$reload_cmds" 'exit $?'
  34155. + fi
  34156. +
  34157. + if test -n "$gentop"; then
  34158. + func_show_eval '${RM}r "$gentop"'
  34159. + fi
  34160. +
  34161. + exit $EXIT_SUCCESS
  34162. + ;;
  34163. +
  34164. + prog)
  34165. + case $host in
  34166. + *cygwin*) func_stripname '' '.exe' "$output"
  34167. + output=$func_stripname_result.exe;;
  34168. + esac
  34169. + test -n "$vinfo" && \
  34170. + func_warning "\`-version-info' is ignored for programs"
  34171. +
  34172. + test -n "$release" && \
  34173. + func_warning "\`-release' is ignored for programs"
  34174. +
  34175. + test "$preload" = yes \
  34176. + && test "$dlopen_support" = unknown \
  34177. + && test "$dlopen_self" = unknown \
  34178. + && test "$dlopen_self_static" = unknown && \
  34179. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  34180. +
  34181. + case $host in
  34182. + *-*-rhapsody* | *-*-darwin1.[012])
  34183. + # On Rhapsody replace the C library is the System framework
  34184. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  34185. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  34186. + ;;
  34187. + esac
  34188. +
  34189. + case $host in
  34190. + *-*-darwin*)
  34191. + # Don't allow lazy linking, it breaks C++ global constructors
  34192. + # But is supposedly fixed on 10.4 or later (yay!).
  34193. + if test "$tagname" = CXX ; then
  34194. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  34195. + 10.[0123])
  34196. + compile_command="$compile_command ${wl}-bind_at_load"
  34197. + finalize_command="$finalize_command ${wl}-bind_at_load"
  34198. + ;;
  34199. + esac
  34200. + fi
  34201. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  34202. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  34203. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  34204. + ;;
  34205. + esac
  34206. +
  34207. +
  34208. + # move library search paths that coincide with paths to not yet
  34209. + # installed libraries to the beginning of the library search list
  34210. + new_libs=
  34211. + for path in $notinst_path; do
  34212. + case " $new_libs " in
  34213. + *" -L$path/$objdir "*) ;;
  34214. + *)
  34215. + case " $compile_deplibs " in
  34216. + *" -L$path/$objdir "*)
  34217. + new_libs="$new_libs -L$path/$objdir" ;;
  34218. + esac
  34219. + ;;
  34220. + esac
  34221. + done
  34222. + for deplib in $compile_deplibs; do
  34223. + case $deplib in
  34224. + -L*)
  34225. + case " $new_libs " in
  34226. + *" $deplib "*) ;;
  34227. + *) new_libs="$new_libs $deplib" ;;
  34228. + esac
  34229. + ;;
  34230. + *) new_libs="$new_libs $deplib" ;;
  34231. + esac
  34232. + done
  34233. + compile_deplibs="$new_libs"
  34234. +
  34235. +
  34236. + compile_command="$compile_command $compile_deplibs"
  34237. + finalize_command="$finalize_command $finalize_deplibs"
  34238. +
  34239. + if test -n "$rpath$xrpath"; then
  34240. + # If the user specified any rpath flags, then add them.
  34241. + for libdir in $rpath $xrpath; do
  34242. + # This is the magic to use -rpath.
  34243. + case "$finalize_rpath " in
  34244. + *" $libdir "*) ;;
  34245. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  34246. + esac
  34247. + done
  34248. + fi
  34249. +
  34250. + # Now hardcode the library paths
  34251. + rpath=
  34252. + hardcode_libdirs=
  34253. + for libdir in $compile_rpath $finalize_rpath; do
  34254. + if test -n "$hardcode_libdir_flag_spec"; then
  34255. + if test -n "$hardcode_libdir_separator"; then
  34256. + if test -z "$hardcode_libdirs"; then
  34257. + hardcode_libdirs="$libdir"
  34258. + else
  34259. + # Just accumulate the unique libdirs.
  34260. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  34261. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  34262. + ;;
  34263. + *)
  34264. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  34265. + ;;
  34266. + esac
  34267. + fi
  34268. + else
  34269. + eval flag=\"$hardcode_libdir_flag_spec\"
  34270. + rpath="$rpath $flag"
  34271. + fi
  34272. + elif test -n "$runpath_var"; then
  34273. + case "$perm_rpath " in
  34274. + *" $libdir "*) ;;
  34275. + *) perm_rpath="$perm_rpath $libdir" ;;
  34276. + esac
  34277. + fi
  34278. + case $host in
  34279. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  34280. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  34281. + case :$dllsearchpath: in
  34282. + *":$libdir:"*) ;;
  34283. + ::) dllsearchpath=$libdir;;
  34284. + *) dllsearchpath="$dllsearchpath:$libdir";;
  34285. + esac
  34286. + case :$dllsearchpath: in
  34287. + *":$testbindir:"*) ;;
  34288. + ::) dllsearchpath=$testbindir;;
  34289. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  34290. + esac
  34291. + ;;
  34292. + esac
  34293. + done
  34294. + # Substitute the hardcoded libdirs into the rpath.
  34295. + if test -n "$hardcode_libdir_separator" &&
  34296. + test -n "$hardcode_libdirs"; then
  34297. + libdir="$hardcode_libdirs"
  34298. + eval rpath=\" $hardcode_libdir_flag_spec\"
  34299. + fi
  34300. + compile_rpath="$rpath"
  34301. +
  34302. + rpath=
  34303. + hardcode_libdirs=
  34304. + for libdir in $finalize_rpath; do
  34305. + if test -n "$hardcode_libdir_flag_spec"; then
  34306. + if test -n "$hardcode_libdir_separator"; then
  34307. + if test -z "$hardcode_libdirs"; then
  34308. + hardcode_libdirs="$libdir"
  34309. + else
  34310. + # Just accumulate the unique libdirs.
  34311. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  34312. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  34313. + ;;
  34314. + *)
  34315. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  34316. + ;;
  34317. + esac
  34318. + fi
  34319. + else
  34320. + eval flag=\"$hardcode_libdir_flag_spec\"
  34321. + rpath="$rpath $flag"
  34322. + fi
  34323. + elif test -n "$runpath_var"; then
  34324. + case "$finalize_perm_rpath " in
  34325. + *" $libdir "*) ;;
  34326. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  34327. + esac
  34328. + fi
  34329. + done
  34330. + # Substitute the hardcoded libdirs into the rpath.
  34331. + if test -n "$hardcode_libdir_separator" &&
  34332. + test -n "$hardcode_libdirs"; then
  34333. + libdir="$hardcode_libdirs"
  34334. + eval rpath=\" $hardcode_libdir_flag_spec\"
  34335. + fi
  34336. + finalize_rpath="$rpath"
  34337. +
  34338. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  34339. + # Transform all the library objects into standard objects.
  34340. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  34341. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  34342. + fi
  34343. +
  34344. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  34345. +
  34346. + # template prelinking step
  34347. + if test -n "$prelink_cmds"; then
  34348. + func_execute_cmds "$prelink_cmds" 'exit $?'
  34349. + fi
  34350. +
  34351. + wrappers_required=yes
  34352. + case $host in
  34353. + *cygwin* | *mingw* )
  34354. + if test "$build_libtool_libs" != yes; then
  34355. + wrappers_required=no
  34356. + fi
  34357. + ;;
  34358. + *cegcc)
  34359. + # Disable wrappers for cegcc, we are cross compiling anyway.
  34360. + wrappers_required=no
  34361. + ;;
  34362. + *)
  34363. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  34364. + wrappers_required=no
  34365. + fi
  34366. + ;;
  34367. + esac
  34368. + if test "$wrappers_required" = no; then
  34369. + # Replace the output file specification.
  34370. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  34371. + link_command="$compile_command$compile_rpath"
  34372. +
  34373. + # We have no uninstalled library dependencies, so finalize right now.
  34374. + exit_status=0
  34375. + func_show_eval "$link_command" 'exit_status=$?'
  34376. +
  34377. + # Delete the generated files.
  34378. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  34379. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  34380. + fi
  34381. +
  34382. + exit $exit_status
  34383. + fi
  34384. +
  34385. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  34386. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  34387. + fi
  34388. + if test -n "$finalize_shlibpath"; then
  34389. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  34390. + fi
  34391. +
  34392. + compile_var=
  34393. + finalize_var=
  34394. + if test -n "$runpath_var"; then
  34395. + if test -n "$perm_rpath"; then
  34396. + # We should set the runpath_var.
  34397. + rpath=
  34398. + for dir in $perm_rpath; do
  34399. + rpath="$rpath$dir:"
  34400. + done
  34401. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  34402. + fi
  34403. + if test -n "$finalize_perm_rpath"; then
  34404. + # We should set the runpath_var.
  34405. + rpath=
  34406. + for dir in $finalize_perm_rpath; do
  34407. + rpath="$rpath$dir:"
  34408. + done
  34409. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  34410. + fi
  34411. + fi
  34412. +
  34413. + if test "$no_install" = yes; then
  34414. + # We don't need to create a wrapper script.
  34415. + link_command="$compile_var$compile_command$compile_rpath"
  34416. + # Replace the output file specification.
  34417. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  34418. + # Delete the old output file.
  34419. + $opt_dry_run || $RM $output
  34420. + # Link the executable and exit
  34421. + func_show_eval "$link_command" 'exit $?'
  34422. + exit $EXIT_SUCCESS
  34423. + fi
  34424. +
  34425. + if test "$hardcode_action" = relink; then
  34426. + # Fast installation is not supported
  34427. + link_command="$compile_var$compile_command$compile_rpath"
  34428. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  34429. +
  34430. + func_warning "this platform does not like uninstalled shared libraries"
  34431. + func_warning "\`$output' will be relinked during installation"
  34432. + else
  34433. + if test "$fast_install" != no; then
  34434. + link_command="$finalize_var$compile_command$finalize_rpath"
  34435. + if test "$fast_install" = yes; then
  34436. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  34437. + else
  34438. + # fast_install is set to needless
  34439. + relink_command=
  34440. + fi
  34441. + else
  34442. + link_command="$compile_var$compile_command$compile_rpath"
  34443. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  34444. + fi
  34445. + fi
  34446. +
  34447. + # Replace the output file specification.
  34448. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  34449. +
  34450. + # Delete the old output files.
  34451. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  34452. +
  34453. + func_show_eval "$link_command" 'exit $?'
  34454. +
  34455. + # Now create the wrapper script.
  34456. + func_verbose "creating $output"
  34457. +
  34458. + # Quote the relink command for shipping.
  34459. + if test -n "$relink_command"; then
  34460. + # Preserve any variables that may affect compiler behavior
  34461. + for var in $variables_saved_for_relink; do
  34462. + if eval test -z \"\${$var+set}\"; then
  34463. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  34464. + elif eval var_value=\$$var; test -z "$var_value"; then
  34465. + relink_command="$var=; export $var; $relink_command"
  34466. + else
  34467. + func_quote_for_eval "$var_value"
  34468. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  34469. + fi
  34470. + done
  34471. + relink_command="(cd `pwd`; $relink_command)"
  34472. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  34473. + fi
  34474. +
  34475. + # Quote $ECHO for shipping.
  34476. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  34477. + case $progpath in
  34478. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  34479. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  34480. + esac
  34481. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  34482. + else
  34483. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  34484. + fi
  34485. +
  34486. + # Only actually do things if not in dry run mode.
  34487. + $opt_dry_run || {
  34488. + # win32 will think the script is a binary if it has
  34489. + # a .exe suffix, so we strip it off here.
  34490. + case $output in
  34491. + *.exe) func_stripname '' '.exe' "$output"
  34492. + output=$func_stripname_result ;;
  34493. + esac
  34494. + # test for cygwin because mv fails w/o .exe extensions
  34495. + case $host in
  34496. + *cygwin*)
  34497. + exeext=.exe
  34498. + func_stripname '' '.exe' "$outputname"
  34499. + outputname=$func_stripname_result ;;
  34500. + *) exeext= ;;
  34501. + esac
  34502. + case $host in
  34503. + *cygwin* | *mingw* )
  34504. + func_dirname_and_basename "$output" "" "."
  34505. + output_name=$func_basename_result
  34506. + output_path=$func_dirname_result
  34507. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  34508. + cwrapper="$output_path/$output_name.exe"
  34509. + $RM $cwrappersource $cwrapper
  34510. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  34511. +
  34512. + func_emit_cwrapperexe_src > $cwrappersource
  34513. +
  34514. + # The wrapper executable is built using the $host compiler,
  34515. + # because it contains $host paths and files. If cross-
  34516. + # compiling, it, like the target executable, must be
  34517. + # executed on the $host or under an emulation environment.
  34518. + $opt_dry_run || {
  34519. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  34520. + $STRIP $cwrapper
  34521. + }
  34522. +
  34523. + # Now, create the wrapper script for func_source use:
  34524. + func_ltwrapper_scriptname $cwrapper
  34525. + $RM $func_ltwrapper_scriptname_result
  34526. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  34527. + $opt_dry_run || {
  34528. + # note: this script will not be executed, so do not chmod.
  34529. + if test "x$build" = "x$host" ; then
  34530. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  34531. + else
  34532. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  34533. + fi
  34534. + }
  34535. + ;;
  34536. + * )
  34537. + $RM $output
  34538. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  34539. +
  34540. + func_emit_wrapper no > $output
  34541. + chmod +x $output
  34542. + ;;
  34543. + esac
  34544. + }
  34545. + exit $EXIT_SUCCESS
  34546. + ;;
  34547. + esac
  34548. +
  34549. + # See if we need to build an old-fashioned archive.
  34550. + for oldlib in $oldlibs; do
  34551. +
  34552. + if test "$build_libtool_libs" = convenience; then
  34553. + oldobjs="$libobjs_save $symfileobj"
  34554. + addlibs="$convenience"
  34555. + build_libtool_libs=no
  34556. + else
  34557. + if test "$build_libtool_libs" = module; then
  34558. + oldobjs="$libobjs_save"
  34559. + build_libtool_libs=no
  34560. + else
  34561. + oldobjs="$old_deplibs $non_pic_objects"
  34562. + if test "$preload" = yes && test -f "$symfileobj"; then
  34563. + oldobjs="$oldobjs $symfileobj"
  34564. + fi
  34565. + fi
  34566. + addlibs="$old_convenience"
  34567. + fi
  34568. +
  34569. + if test -n "$addlibs"; then
  34570. + gentop="$output_objdir/${outputname}x"
  34571. + generated="$generated $gentop"
  34572. +
  34573. + func_extract_archives $gentop $addlibs
  34574. + oldobjs="$oldobjs $func_extract_archives_result"
  34575. + fi
  34576. +
  34577. + # Do each command in the archive commands.
  34578. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  34579. + cmds=$old_archive_from_new_cmds
  34580. + else
  34581. +
  34582. + # Add any objects from preloaded convenience libraries
  34583. + if test -n "$dlprefiles"; then
  34584. + gentop="$output_objdir/${outputname}x"
  34585. + generated="$generated $gentop"
  34586. +
  34587. + func_extract_archives $gentop $dlprefiles
  34588. + oldobjs="$oldobjs $func_extract_archives_result"
  34589. + fi
  34590. +
  34591. + # POSIX demands no paths to be encoded in archives. We have
  34592. + # to avoid creating archives with duplicate basenames if we
  34593. + # might have to extract them afterwards, e.g., when creating a
  34594. + # static archive out of a convenience library, or when linking
  34595. + # the entirety of a libtool archive into another (currently
  34596. + # not supported by libtool).
  34597. + if (for obj in $oldobjs
  34598. + do
  34599. + func_basename "$obj"
  34600. + $ECHO "$func_basename_result"
  34601. + done | sort | sort -uc >/dev/null 2>&1); then
  34602. + :
  34603. + else
  34604. + $ECHO "copying selected object files to avoid basename conflicts..."
  34605. + gentop="$output_objdir/${outputname}x"
  34606. + generated="$generated $gentop"
  34607. + func_mkdir_p "$gentop"
  34608. + save_oldobjs=$oldobjs
  34609. + oldobjs=
  34610. + counter=1
  34611. + for obj in $save_oldobjs
  34612. + do
  34613. + func_basename "$obj"
  34614. + objbase="$func_basename_result"
  34615. + case " $oldobjs " in
  34616. + " ") oldobjs=$obj ;;
  34617. + *[\ /]"$objbase "*)
  34618. + while :; do
  34619. + # Make sure we don't pick an alternate name that also
  34620. + # overlaps.
  34621. + newobj=lt$counter-$objbase
  34622. + func_arith $counter + 1
  34623. + counter=$func_arith_result
  34624. + case " $oldobjs " in
  34625. + *[\ /]"$newobj "*) ;;
  34626. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  34627. + esac
  34628. + done
  34629. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  34630. + oldobjs="$oldobjs $gentop/$newobj"
  34631. + ;;
  34632. + *) oldobjs="$oldobjs $obj" ;;
  34633. + esac
  34634. + done
  34635. + fi
  34636. + eval cmds=\"$old_archive_cmds\"
  34637. +
  34638. + func_len " $cmds"
  34639. + len=$func_len_result
  34640. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  34641. + cmds=$old_archive_cmds
  34642. + else
  34643. + # the command line is too long to link in one step, link in parts
  34644. + func_verbose "using piecewise archive linking..."
  34645. + save_RANLIB=$RANLIB
  34646. + RANLIB=:
  34647. + objlist=
  34648. + concat_cmds=
  34649. + save_oldobjs=$oldobjs
  34650. + oldobjs=
  34651. + # Is there a better way of finding the last object in the list?
  34652. + for obj in $save_oldobjs
  34653. + do
  34654. + last_oldobj=$obj
  34655. + done
  34656. + eval test_cmds=\"$old_archive_cmds\"
  34657. + func_len " $test_cmds"
  34658. + len0=$func_len_result
  34659. + len=$len0
  34660. + for obj in $save_oldobjs
  34661. + do
  34662. + func_len " $obj"
  34663. + func_arith $len + $func_len_result
  34664. + len=$func_arith_result
  34665. + func_append objlist " $obj"
  34666. + if test "$len" -lt "$max_cmd_len"; then
  34667. + :
  34668. + else
  34669. + # the above command should be used before it gets too long
  34670. + oldobjs=$objlist
  34671. + if test "$obj" = "$last_oldobj" ; then
  34672. + RANLIB=$save_RANLIB
  34673. + fi
  34674. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  34675. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  34676. + objlist=
  34677. + len=$len0
  34678. + fi
  34679. + done
  34680. + RANLIB=$save_RANLIB
  34681. + oldobjs=$objlist
  34682. + if test "X$oldobjs" = "X" ; then
  34683. + eval cmds=\"\$concat_cmds\"
  34684. + else
  34685. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  34686. + fi
  34687. + fi
  34688. + fi
  34689. + func_execute_cmds "$cmds" 'exit $?'
  34690. + done
  34691. +
  34692. + test -n "$generated" && \
  34693. + func_show_eval "${RM}r$generated"
  34694. +
  34695. + # Now create the libtool archive.
  34696. + case $output in
  34697. + *.la)
  34698. + old_library=
  34699. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  34700. + func_verbose "creating $output"
  34701. +
  34702. + # Preserve any variables that may affect compiler behavior
  34703. + for var in $variables_saved_for_relink; do
  34704. + if eval test -z \"\${$var+set}\"; then
  34705. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  34706. + elif eval var_value=\$$var; test -z "$var_value"; then
  34707. + relink_command="$var=; export $var; $relink_command"
  34708. + else
  34709. + func_quote_for_eval "$var_value"
  34710. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  34711. + fi
  34712. + done
  34713. + # Quote the link command for shipping.
  34714. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  34715. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  34716. + if test "$hardcode_automatic" = yes ; then
  34717. + relink_command=
  34718. + fi
  34719. +
  34720. + # Only create the output if not a dry run.
  34721. + $opt_dry_run || {
  34722. + for installed in no yes; do
  34723. + if test "$installed" = yes; then
  34724. + if test -z "$install_libdir"; then
  34725. + break
  34726. + fi
  34727. + output="$output_objdir/$outputname"i
  34728. + # Replace all uninstalled libtool libraries with the installed ones
  34729. + newdependency_libs=
  34730. + for deplib in $dependency_libs; do
  34731. + case $deplib in
  34732. + *.la)
  34733. + func_basename "$deplib"
  34734. + name="$func_basename_result"
  34735. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  34736. + test -z "$libdir" && \
  34737. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  34738. + newdependency_libs="$newdependency_libs $libdir/$name"
  34739. + ;;
  34740. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  34741. + esac
  34742. + done
  34743. + dependency_libs="$newdependency_libs"
  34744. + newdlfiles=
  34745. +
  34746. + for lib in $dlfiles; do
  34747. + case $lib in
  34748. + *.la)
  34749. + func_basename "$lib"
  34750. + name="$func_basename_result"
  34751. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  34752. + test -z "$libdir" && \
  34753. + func_fatal_error "\`$lib' is not a valid libtool archive"
  34754. + newdlfiles="$newdlfiles $libdir/$name"
  34755. + ;;
  34756. + *) newdlfiles="$newdlfiles $lib" ;;
  34757. + esac
  34758. + done
  34759. + dlfiles="$newdlfiles"
  34760. + newdlprefiles=
  34761. + for lib in $dlprefiles; do
  34762. + case $lib in
  34763. + *.la)
  34764. + # Only pass preopened files to the pseudo-archive (for
  34765. + # eventual linking with the app. that links it) if we
  34766. + # didn't already link the preopened objects directly into
  34767. + # the library:
  34768. + func_basename "$lib"
  34769. + name="$func_basename_result"
  34770. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  34771. + test -z "$libdir" && \
  34772. + func_fatal_error "\`$lib' is not a valid libtool archive"
  34773. + newdlprefiles="$newdlprefiles $libdir/$name"
  34774. + ;;
  34775. + esac
  34776. + done
  34777. + dlprefiles="$newdlprefiles"
  34778. + else
  34779. + newdlfiles=
  34780. + for lib in $dlfiles; do
  34781. + case $lib in
  34782. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  34783. + *) abs=`pwd`"/$lib" ;;
  34784. + esac
  34785. + newdlfiles="$newdlfiles $abs"
  34786. + done
  34787. + dlfiles="$newdlfiles"
  34788. + newdlprefiles=
  34789. + for lib in $dlprefiles; do
  34790. + case $lib in
  34791. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  34792. + *) abs=`pwd`"/$lib" ;;
  34793. + esac
  34794. + newdlprefiles="$newdlprefiles $abs"
  34795. + done
  34796. + dlprefiles="$newdlprefiles"
  34797. + fi
  34798. + $RM $output
  34799. + # place dlname in correct position for cygwin
  34800. + tdlname=$dlname
  34801. + case $host,$output,$installed,$module,$dlname in
  34802. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  34803. + esac
  34804. + $ECHO > $output "\
  34805. +# $outputname - a libtool library file
  34806. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  34807. +#
  34808. +# Please DO NOT delete this file!
  34809. +# It is necessary for linking the library.
  34810. +
  34811. +# The name that we can dlopen(3).
  34812. +dlname='$tdlname'
  34813. +
  34814. +# Names of this library.
  34815. +library_names='$library_names'
  34816. +
  34817. +# The name of the static archive.
  34818. +old_library='$old_library'
  34819. +
  34820. +# Linker flags that can not go in dependency_libs.
  34821. +inherited_linker_flags='$new_inherited_linker_flags'
  34822. +
  34823. +# Libraries that this one depends upon.
  34824. +dependency_libs='$dependency_libs'
  34825. +
  34826. +# Names of additional weak libraries provided by this library
  34827. +weak_library_names='$weak_libs'
  34828. +
  34829. +# Version information for $libname.
  34830. +current=$current
  34831. +age=$age
  34832. +revision=$revision
  34833. +
  34834. +# Is this an already installed library?
  34835. +installed=$installed
  34836. +
  34837. +# Should we warn about portability when linking against -modules?
  34838. +shouldnotlink=$module
  34839. +
  34840. +# Files to dlopen/dlpreopen
  34841. +dlopen='$dlfiles'
  34842. +dlpreopen='$dlprefiles'
  34843. +
  34844. +# Directory that this library needs to be installed in:
  34845. +libdir='$install_libdir'"
  34846. + if test "$installed" = no && test "$need_relink" = yes; then
  34847. + $ECHO >> $output "\
  34848. +relink_command=\"$relink_command\""
  34849. + fi
  34850. + done
  34851. + }
  34852. +
  34853. + # Do a symbolic link so that the libtool archive can be found in
  34854. + # LD_LIBRARY_PATH before the program is installed.
  34855. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  34856. + ;;
  34857. + esac
  34858. + exit $EXIT_SUCCESS
  34859. +}
  34860. +
  34861. +{ test "$mode" = link || test "$mode" = relink; } &&
  34862. + func_mode_link ${1+"$@"}
  34863. +
  34864. +
  34865. +# func_mode_uninstall arg...
  34866. +func_mode_uninstall ()
  34867. +{
  34868. + $opt_debug
  34869. + RM="$nonopt"
  34870. + files=
  34871. + rmforce=
  34872. + exit_status=0
  34873. +
  34874. + # This variable tells wrapper scripts just to set variables rather
  34875. + # than running their programs.
  34876. + libtool_install_magic="$magic"
  34877. +
  34878. + for arg
  34879. + do
  34880. + case $arg in
  34881. + -f) RM="$RM $arg"; rmforce=yes ;;
  34882. + -*) RM="$RM $arg" ;;
  34883. + *) files="$files $arg" ;;
  34884. + esac
  34885. + done
  34886. +
  34887. + test -z "$RM" && \
  34888. + func_fatal_help "you must specify an RM program"
  34889. +
  34890. + rmdirs=
  34891. +
  34892. + origobjdir="$objdir"
  34893. + for file in $files; do
  34894. + func_dirname "$file" "" "."
  34895. + dir="$func_dirname_result"
  34896. + if test "X$dir" = X.; then
  34897. + objdir="$origobjdir"
  34898. + else
  34899. + objdir="$dir/$origobjdir"
  34900. + fi
  34901. + func_basename "$file"
  34902. + name="$func_basename_result"
  34903. + test "$mode" = uninstall && objdir="$dir"
  34904. +
  34905. + # Remember objdir for removal later, being careful to avoid duplicates
  34906. + if test "$mode" = clean; then
  34907. + case " $rmdirs " in
  34908. + *" $objdir "*) ;;
  34909. + *) rmdirs="$rmdirs $objdir" ;;
  34910. + esac
  34911. + fi
  34912. +
  34913. + # Don't error if the file doesn't exist and rm -f was used.
  34914. + if { test -L "$file"; } >/dev/null 2>&1 ||
  34915. + { test -h "$file"; } >/dev/null 2>&1 ||
  34916. + test -f "$file"; then
  34917. + :
  34918. + elif test -d "$file"; then
  34919. + exit_status=1
  34920. + continue
  34921. + elif test "$rmforce" = yes; then
  34922. + continue
  34923. + fi
  34924. +
  34925. + rmfiles="$file"
  34926. +
  34927. + case $name in
  34928. + *.la)
  34929. + # Possibly a libtool archive, so verify it.
  34930. + if func_lalib_p "$file"; then
  34931. + func_source $dir/$name
  34932. +
  34933. + # Delete the libtool libraries and symlinks.
  34934. + for n in $library_names; do
  34935. + rmfiles="$rmfiles $objdir/$n"
  34936. + done
  34937. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  34938. +
  34939. + case "$mode" in
  34940. + clean)
  34941. + case " $library_names " in
  34942. + # " " in the beginning catches empty $dlname
  34943. + *" $dlname "*) ;;
  34944. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  34945. + esac
  34946. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  34947. + ;;
  34948. + uninstall)
  34949. + if test -n "$library_names"; then
  34950. + # Do each command in the postuninstall commands.
  34951. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  34952. + fi
  34953. +
  34954. + if test -n "$old_library"; then
  34955. + # Do each command in the old_postuninstall commands.
  34956. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  34957. + fi
  34958. + # FIXME: should reinstall the best remaining shared library.
  34959. + ;;
  34960. + esac
  34961. + fi
  34962. + ;;
  34963. +
  34964. + *.lo)
  34965. + # Possibly a libtool object, so verify it.
  34966. + if func_lalib_p "$file"; then
  34967. +
  34968. + # Read the .lo file
  34969. + func_source $dir/$name
  34970. +
  34971. + # Add PIC object to the list of files to remove.
  34972. + if test -n "$pic_object" &&
  34973. + test "$pic_object" != none; then
  34974. + rmfiles="$rmfiles $dir/$pic_object"
  34975. + fi
  34976. +
  34977. + # Add non-PIC object to the list of files to remove.
  34978. + if test -n "$non_pic_object" &&
  34979. + test "$non_pic_object" != none; then
  34980. + rmfiles="$rmfiles $dir/$non_pic_object"
  34981. + fi
  34982. + fi
  34983. + ;;
  34984. +
  34985. + *)
  34986. + if test "$mode" = clean ; then
  34987. + noexename=$name
  34988. + case $file in
  34989. + *.exe)
  34990. + func_stripname '' '.exe' "$file"
  34991. + file=$func_stripname_result
  34992. + func_stripname '' '.exe' "$name"
  34993. + noexename=$func_stripname_result
  34994. + # $file with .exe has already been added to rmfiles,
  34995. + # add $file without .exe
  34996. + rmfiles="$rmfiles $file"
  34997. + ;;
  34998. + esac
  34999. + # Do a test to see if this is a libtool program.
  35000. + if func_ltwrapper_p "$file"; then
  35001. + if func_ltwrapper_executable_p "$file"; then
  35002. + func_ltwrapper_scriptname "$file"
  35003. + relink_command=
  35004. + func_source $func_ltwrapper_scriptname_result
  35005. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  35006. + else
  35007. + relink_command=
  35008. + func_source $dir/$noexename
  35009. + fi
  35010. +
  35011. + # note $name still contains .exe if it was in $file originally
  35012. + # as does the version of $file that was added into $rmfiles
  35013. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  35014. + if test "$fast_install" = yes && test -n "$relink_command"; then
  35015. + rmfiles="$rmfiles $objdir/lt-$name"
  35016. + fi
  35017. + if test "X$noexename" != "X$name" ; then
  35018. + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  35019. + fi
  35020. + fi
  35021. + fi
  35022. + ;;
  35023. + esac
  35024. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  35025. + done
  35026. + objdir="$origobjdir"
  35027. +
  35028. + # Try to remove the ${objdir}s in the directories where we deleted files
  35029. + for dir in $rmdirs; do
  35030. + if test -d "$dir"; then
  35031. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  35032. + fi
  35033. + done
  35034. +
  35035. + exit $exit_status
  35036. +}
  35037. +
  35038. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  35039. + func_mode_uninstall ${1+"$@"}
  35040. +
  35041. +test -z "$mode" && {
  35042. + help="$generic_help"
  35043. + func_fatal_help "you must specify a MODE"
  35044. +}
  35045. +
  35046. +test -z "$exec_cmd" && \
  35047. + func_fatal_help "invalid operation mode \`$mode'"
  35048. +
  35049. +if test -n "$exec_cmd"; then
  35050. + eval exec "$exec_cmd"
  35051. + exit $EXIT_FAILURE
  35052. +fi
  35053. +
  35054. +exit $exit_status
  35055. +
  35056. +
  35057. +# The TAGs below are defined such that we never get into a situation
  35058. +# in which we disable both kinds of libraries. Given conflicting
  35059. +# choices, we go for a static library, that is the most portable,
  35060. +# since we can't tell whether shared libraries were disabled because
  35061. +# the user asked for that or because the platform doesn't support
  35062. +# them. This is particularly important on AIX, because we don't
  35063. +# support having both static and shared libraries enabled at the same
  35064. +# time on that platform, so we default to a shared-only configuration.
  35065. +# If a disable-shared tag is given, we'll fallback to a static-only
  35066. +# configuration. But we'll never go from static-only to shared-only.
  35067. +
  35068. +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  35069. +build_libtool_libs=no
  35070. +build_old_libs=yes
  35071. +# ### END LIBTOOL TAG CONFIG: disable-shared
  35072. +
  35073. +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
  35074. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  35075. +# ### END LIBTOOL TAG CONFIG: disable-static
  35076. +
  35077. +# Local Variables:
  35078. +# mode:shell-script
  35079. +# sh-indentation:2
  35080. +# End:
  35081. +# vi:sw=2
  35082. +
  35083. diff -Nur libvorbisidec-1.0.2+svn15687.orig/Makefile.in libvorbisidec-1.0.2+svn15687/Makefile.in
  35084. --- libvorbisidec-1.0.2+svn15687.orig/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  35085. +++ libvorbisidec-1.0.2+svn15687/Makefile.in 2010-02-18 19:56:32.476852521 +0100
  35086. @@ -0,0 +1,772 @@
  35087. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  35088. +# @configure_input@
  35089. +
  35090. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  35091. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  35092. +# Inc.
  35093. +# This Makefile.in is free software; the Free Software Foundation
  35094. +# gives unlimited permission to copy and/or distribute it,
  35095. +# with or without modifications, as long as this notice is preserved.
  35096. +
  35097. +# This program is distributed in the hope that it will be useful,
  35098. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  35099. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  35100. +# PARTICULAR PURPOSE.
  35101. +
  35102. +@SET_MAKE@
  35103. +
  35104. +
  35105. +VPATH = @srcdir@
  35106. +pkgdatadir = $(datadir)/@PACKAGE@
  35107. +pkgincludedir = $(includedir)/@PACKAGE@
  35108. +pkglibdir = $(libdir)/@PACKAGE@
  35109. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  35110. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  35111. +install_sh_DATA = $(install_sh) -c -m 644
  35112. +install_sh_PROGRAM = $(install_sh) -c
  35113. +install_sh_SCRIPT = $(install_sh) -c
  35114. +INSTALL_HEADER = $(INSTALL_DATA)
  35115. +transform = $(program_transform_name)
  35116. +NORMAL_INSTALL = :
  35117. +PRE_INSTALL = :
  35118. +POST_INSTALL = :
  35119. +NORMAL_UNINSTALL = :
  35120. +PRE_UNINSTALL = :
  35121. +POST_UNINSTALL = :
  35122. +build_triplet = @build@
  35123. +host_triplet = @host@
  35124. +target_triplet = @target@
  35125. +EXTRA_PROGRAMS = ivorbisfile_example$(EXEEXT)
  35126. +subdir = .
  35127. +DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
  35128. + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  35129. + $(srcdir)/Version_script.in $(srcdir)/config.h.in \
  35130. + $(top_srcdir)/configure COPYING config.guess config.sub \
  35131. + depcomp install-sh ltmain.sh missing
  35132. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  35133. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  35134. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  35135. + $(ACLOCAL_M4)
  35136. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  35137. + configure.lineno config.status.lineno
  35138. +mkinstalldirs = $(install_sh) -d
  35139. +CONFIG_HEADER = config.h
  35140. +CONFIG_CLEAN_FILES = Version_script
  35141. +CONFIG_CLEAN_VPATH_FILES =
  35142. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  35143. +am__vpath_adj = case $$p in \
  35144. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  35145. + *) f=$$p;; \
  35146. + esac;
  35147. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  35148. +am__install_max = 40
  35149. +am__nobase_strip_setup = \
  35150. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  35151. +am__nobase_strip = \
  35152. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  35153. +am__nobase_list = $(am__nobase_strip_setup); \
  35154. + for p in $$list; do echo "$$p $$p"; done | \
  35155. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  35156. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  35157. + if (++n[$$2] == $(am__install_max)) \
  35158. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  35159. + END { for (dir in files) print dir, files[dir] }'
  35160. +am__base_list = \
  35161. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  35162. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  35163. +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  35164. +LTLIBRARIES = $(lib_LTLIBRARIES)
  35165. +libvorbisidec_la_LIBADD =
  35166. +am_libvorbisidec_la_OBJECTS = mdct.lo block.lo window.lo synthesis.lo \
  35167. + info.lo floor1.lo floor0.lo vorbisfile.lo res012.lo \
  35168. + mapping0.lo registry.lo codebook.lo sharedbook.lo framing.lo \
  35169. + bitwise.lo
  35170. +libvorbisidec_la_OBJECTS = $(am_libvorbisidec_la_OBJECTS)
  35171. +libvorbisidec_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  35172. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  35173. + $(libvorbisidec_la_LDFLAGS) $(LDFLAGS) -o $@
  35174. +am_ivorbisfile_example_OBJECTS = ivorbisfile_example.$(OBJEXT)
  35175. +ivorbisfile_example_OBJECTS = $(am_ivorbisfile_example_OBJECTS)
  35176. +ivorbisfile_example_DEPENDENCIES = libvorbisidec.la
  35177. +ivorbisfile_example_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  35178. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  35179. + $(ivorbisfile_example_LDFLAGS) $(LDFLAGS) -o $@
  35180. +DEFAULT_INCLUDES = -I.@am__isrc@
  35181. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  35182. +am__depfiles_maybe = depfiles
  35183. +am__mv = mv -f
  35184. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  35185. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  35186. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  35187. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  35188. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  35189. +CCLD = $(CC)
  35190. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  35191. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  35192. + $(LDFLAGS) -o $@
  35193. +SOURCES = $(libvorbisidec_la_SOURCES) $(ivorbisfile_example_SOURCES)
  35194. +DIST_SOURCES = $(libvorbisidec_la_SOURCES) \
  35195. + $(ivorbisfile_example_SOURCES)
  35196. +HEADERS = $(include_HEADERS)
  35197. +ETAGS = etags
  35198. +CTAGS = ctags
  35199. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  35200. +distdir = $(PACKAGE)-$(VERSION)
  35201. +top_distdir = $(distdir)
  35202. +am__remove_distdir = \
  35203. + { test ! -d "$(distdir)" \
  35204. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  35205. + && rm -fr "$(distdir)"; }; }
  35206. +DIST_ARCHIVES = $(distdir).tar.gz
  35207. +GZIP_ENV = --best
  35208. +distuninstallcheck_listfiles = find . -type f -print
  35209. +distcleancheck_listfiles = find . -type f -print
  35210. +ACLOCAL = @ACLOCAL@
  35211. +ALLOCA = @ALLOCA@
  35212. +AMTAR = @AMTAR@
  35213. +AR = @AR@
  35214. +AUTOCONF = @AUTOCONF@
  35215. +AUTOHEADER = @AUTOHEADER@
  35216. +AUTOMAKE = @AUTOMAKE@
  35217. +AWK = @AWK@
  35218. +CC = @CC@
  35219. +CCDEPMODE = @CCDEPMODE@
  35220. +CFLAGS = @CFLAGS@
  35221. +CPP = @CPP@
  35222. +CPPFLAGS = @CPPFLAGS@
  35223. +CYGPATH_W = @CYGPATH_W@
  35224. +DEBUG = @DEBUG@
  35225. +DEFS = @DEFS@
  35226. +DEPDIR = @DEPDIR@
  35227. +DSYMUTIL = @DSYMUTIL@
  35228. +DUMPBIN = @DUMPBIN@
  35229. +ECHO_C = @ECHO_C@
  35230. +ECHO_N = @ECHO_N@
  35231. +ECHO_T = @ECHO_T@
  35232. +EGREP = @EGREP@
  35233. +EXEEXT = @EXEEXT@
  35234. +FGREP = @FGREP@
  35235. +GREP = @GREP@
  35236. +INSTALL = @INSTALL@
  35237. +INSTALL_DATA = @INSTALL_DATA@
  35238. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  35239. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  35240. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  35241. +LD = @LD@
  35242. +LDFLAGS = @LDFLAGS@
  35243. +LIBOBJS = @LIBOBJS@
  35244. +LIBS = @LIBS@
  35245. +LIBTOOL = @LIBTOOL@
  35246. +LIPO = @LIPO@
  35247. +LN_S = @LN_S@
  35248. +LTLIBOBJS = @LTLIBOBJS@
  35249. +MAKEINFO = @MAKEINFO@
  35250. +MKDIR_P = @MKDIR_P@
  35251. +NM = @NM@
  35252. +NMEDIT = @NMEDIT@
  35253. +OBJDUMP = @OBJDUMP@
  35254. +OBJEXT = @OBJEXT@
  35255. +OTOOL = @OTOOL@
  35256. +OTOOL64 = @OTOOL64@
  35257. +PACKAGE = @PACKAGE@
  35258. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  35259. +PACKAGE_NAME = @PACKAGE_NAME@
  35260. +PACKAGE_STRING = @PACKAGE_STRING@
  35261. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  35262. +PACKAGE_URL = @PACKAGE_URL@
  35263. +PACKAGE_VERSION = @PACKAGE_VERSION@
  35264. +PATH_SEPARATOR = @PATH_SEPARATOR@
  35265. +PROFILE = @PROFILE@
  35266. +RANLIB = @RANLIB@
  35267. +SED = @SED@
  35268. +SET_MAKE = @SET_MAKE@
  35269. +SHELL = @SHELL@
  35270. +STRIP = @STRIP@
  35271. +VERSION = @VERSION@
  35272. +V_LIB_AGE = @V_LIB_AGE@
  35273. +V_LIB_CURRENT = @V_LIB_CURRENT@
  35274. +V_LIB_REVISION = @V_LIB_REVISION@
  35275. +abs_builddir = @abs_builddir@
  35276. +abs_srcdir = @abs_srcdir@
  35277. +abs_top_builddir = @abs_top_builddir@
  35278. +abs_top_srcdir = @abs_top_srcdir@
  35279. +ac_ct_CC = @ac_ct_CC@
  35280. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  35281. +am__include = @am__include@
  35282. +am__leading_dot = @am__leading_dot@
  35283. +am__quote = @am__quote@
  35284. +am__tar = @am__tar@
  35285. +am__untar = @am__untar@
  35286. +bindir = @bindir@
  35287. +build = @build@
  35288. +build_alias = @build_alias@
  35289. +build_cpu = @build_cpu@
  35290. +build_os = @build_os@
  35291. +build_vendor = @build_vendor@
  35292. +builddir = @builddir@
  35293. +datadir = @datadir@
  35294. +datarootdir = @datarootdir@
  35295. +docdir = @docdir@
  35296. +dvidir = @dvidir@
  35297. +exec_prefix = @exec_prefix@
  35298. +host = @host@
  35299. +host_alias = @host_alias@
  35300. +host_cpu = @host_cpu@
  35301. +host_os = @host_os@
  35302. +host_vendor = @host_vendor@
  35303. +htmldir = @htmldir@
  35304. +includedir = $(prefix)/include/tremor
  35305. +infodir = @infodir@
  35306. +install_sh = @install_sh@
  35307. +libdir = @libdir@
  35308. +libexecdir = @libexecdir@
  35309. +localedir = @localedir@
  35310. +localstatedir = @localstatedir@
  35311. +lt_ECHO = @lt_ECHO@
  35312. +mandir = @mandir@
  35313. +mkdir_p = @mkdir_p@
  35314. +oldincludedir = @oldincludedir@
  35315. +pdfdir = @pdfdir@
  35316. +prefix = @prefix@
  35317. +program_transform_name = @program_transform_name@
  35318. +psdir = @psdir@
  35319. +sbindir = @sbindir@
  35320. +sharedstatedir = @sharedstatedir@
  35321. +srcdir = @srcdir@
  35322. +sysconfdir = @sysconfdir@
  35323. +target = @target@
  35324. +target_alias = @target_alias@
  35325. +target_cpu = @target_cpu@
  35326. +target_os = @target_os@
  35327. +target_vendor = @target_vendor@
  35328. +top_build_prefix = @top_build_prefix@
  35329. +top_builddir = @top_builddir@
  35330. +top_srcdir = @top_srcdir@
  35331. +AUTOMAKE_OPTIONS = foreign
  35332. +INCLUDES = -I./
  35333. +lib_LTLIBRARIES = libvorbisidec.la
  35334. +libvorbisidec_la_SOURCES = mdct.c block.c window.c \
  35335. + synthesis.c info.c \
  35336. + floor1.c floor0.c vorbisfile.c \
  35337. + res012.c mapping0.c registry.c codebook.c \
  35338. + sharedbook.c framing.c bitwise.c \
  35339. + codebook.h misc.h mdct_lookup.h\
  35340. + os.h mdct.h block.h ivorbisfile.h lsp_lookup.h\
  35341. + registry.h window.h window_lookup.h\
  35342. + codec_internal.h backends.h ogg.h \
  35343. + asm_arm.h ivorbiscodec.h
  35344. +
  35345. +libvorbisidec_la_LDFLAGS = -version-info @V_LIB_CURRENT@:@V_LIB_REVISION@:@V_LIB_AGE@
  35346. +CLEANFILES = $(EXTRA_PROGRAMS) $(lib_LTLIBRARIES)
  35347. +ivorbisfile_example_SOURCES = ivorbisfile_example.c
  35348. +ivorbisfile_example_LDFLAGS = -static
  35349. +ivorbisfile_example_LDADD = libvorbisidec.la
  35350. +include_HEADERS = ivorbiscodec.h ivorbisfile.h ogg.h os_types.h config_types.h
  35351. +all: config.h
  35352. + $(MAKE) $(AM_MAKEFLAGS) all-am
  35353. +
  35354. +.SUFFIXES:
  35355. +.SUFFIXES: .c .lo .o .obj
  35356. +am--refresh:
  35357. + @:
  35358. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  35359. + @for dep in $?; do \
  35360. + case '$(am__configure_deps)' in \
  35361. + *$$dep*) \
  35362. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  35363. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  35364. + && exit 0; \
  35365. + exit 1;; \
  35366. + esac; \
  35367. + done; \
  35368. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  35369. + $(am__cd) $(top_srcdir) && \
  35370. + $(AUTOMAKE) --foreign Makefile
  35371. +.PRECIOUS: Makefile
  35372. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  35373. + @case '$?' in \
  35374. + *config.status*) \
  35375. + echo ' $(SHELL) ./config.status'; \
  35376. + $(SHELL) ./config.status;; \
  35377. + *) \
  35378. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  35379. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  35380. + esac;
  35381. +
  35382. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  35383. + $(SHELL) ./config.status --recheck
  35384. +
  35385. +$(top_srcdir)/configure: $(am__configure_deps)
  35386. + $(am__cd) $(srcdir) && $(AUTOCONF)
  35387. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  35388. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  35389. +$(am__aclocal_m4_deps):
  35390. +
  35391. +config.h: stamp-h1
  35392. + @if test ! -f $@; then \
  35393. + rm -f stamp-h1; \
  35394. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  35395. + else :; fi
  35396. +
  35397. +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  35398. + @rm -f stamp-h1
  35399. + cd $(top_builddir) && $(SHELL) ./config.status config.h
  35400. +$(srcdir)/config.h.in: $(am__configure_deps)
  35401. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  35402. + rm -f stamp-h1
  35403. + touch $@
  35404. +
  35405. +distclean-hdr:
  35406. + -rm -f config.h stamp-h1
  35407. +Version_script: $(top_builddir)/config.status $(srcdir)/Version_script.in
  35408. + cd $(top_builddir) && $(SHELL) ./config.status $@
  35409. +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  35410. + @$(NORMAL_INSTALL)
  35411. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  35412. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  35413. + list2=; for p in $$list; do \
  35414. + if test -f $$p; then \
  35415. + list2="$$list2 $$p"; \
  35416. + else :; fi; \
  35417. + done; \
  35418. + test -z "$$list2" || { \
  35419. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  35420. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  35421. + }
  35422. +
  35423. +uninstall-libLTLIBRARIES:
  35424. + @$(NORMAL_UNINSTALL)
  35425. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  35426. + for p in $$list; do \
  35427. + $(am__strip_dir) \
  35428. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  35429. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  35430. + done
  35431. +
  35432. +clean-libLTLIBRARIES:
  35433. + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  35434. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  35435. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  35436. + test "$$dir" != "$$p" || dir=.; \
  35437. + echo "rm -f \"$${dir}/so_locations\""; \
  35438. + rm -f "$${dir}/so_locations"; \
  35439. + done
  35440. +libvorbisidec.la: $(libvorbisidec_la_OBJECTS) $(libvorbisidec_la_DEPENDENCIES)
  35441. + $(libvorbisidec_la_LINK) -rpath $(libdir) $(libvorbisidec_la_OBJECTS) $(libvorbisidec_la_LIBADD) $(LIBS)
  35442. +ivorbisfile_example$(EXEEXT): $(ivorbisfile_example_OBJECTS) $(ivorbisfile_example_DEPENDENCIES)
  35443. + @rm -f ivorbisfile_example$(EXEEXT)
  35444. + $(ivorbisfile_example_LINK) $(ivorbisfile_example_OBJECTS) $(ivorbisfile_example_LDADD) $(LIBS)
  35445. +
  35446. +mostlyclean-compile:
  35447. + -rm -f *.$(OBJEXT)
  35448. +
  35449. +distclean-compile:
  35450. + -rm -f *.tab.c
  35451. +
  35452. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bitwise.Plo@am__quote@
  35453. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/block.Plo@am__quote@
  35454. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/codebook.Plo@am__quote@
  35455. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/floor0.Plo@am__quote@
  35456. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/floor1.Plo@am__quote@
  35457. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/framing.Plo@am__quote@
  35458. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/info.Plo@am__quote@
  35459. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ivorbisfile_example.Po@am__quote@
  35460. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mapping0.Plo@am__quote@
  35461. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdct.Plo@am__quote@
  35462. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/registry.Plo@am__quote@
  35463. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/res012.Plo@am__quote@
  35464. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sharedbook.Plo@am__quote@
  35465. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synthesis.Plo@am__quote@
  35466. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vorbisfile.Plo@am__quote@
  35467. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/window.Plo@am__quote@
  35468. +
  35469. +.c.o:
  35470. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  35471. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  35472. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  35473. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  35474. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  35475. +
  35476. +.c.obj:
  35477. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  35478. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  35479. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  35480. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  35481. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  35482. +
  35483. +.c.lo:
  35484. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  35485. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  35486. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  35487. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  35488. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  35489. +
  35490. +mostlyclean-libtool:
  35491. + -rm -f *.lo
  35492. +
  35493. +clean-libtool:
  35494. + -rm -rf .libs _libs
  35495. +
  35496. +distclean-libtool:
  35497. + -rm -f libtool config.lt
  35498. +install-includeHEADERS: $(include_HEADERS)
  35499. + @$(NORMAL_INSTALL)
  35500. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  35501. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  35502. + for p in $$list; do \
  35503. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  35504. + echo "$$d$$p"; \
  35505. + done | $(am__base_list) | \
  35506. + while read files; do \
  35507. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  35508. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  35509. + done
  35510. +
  35511. +uninstall-includeHEADERS:
  35512. + @$(NORMAL_UNINSTALL)
  35513. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  35514. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  35515. + test -n "$$files" || exit 0; \
  35516. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  35517. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  35518. +
  35519. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  35520. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  35521. + unique=`for i in $$list; do \
  35522. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  35523. + done | \
  35524. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  35525. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  35526. + mkid -fID $$unique
  35527. +tags: TAGS
  35528. +
  35529. +TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  35530. + $(TAGS_FILES) $(LISP)
  35531. + set x; \
  35532. + here=`pwd`; \
  35533. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  35534. + unique=`for i in $$list; do \
  35535. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  35536. + done | \
  35537. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  35538. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  35539. + shift; \
  35540. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  35541. + test -n "$$unique" || unique=$$empty_fix; \
  35542. + if test $$# -gt 0; then \
  35543. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  35544. + "$$@" $$unique; \
  35545. + else \
  35546. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  35547. + $$unique; \
  35548. + fi; \
  35549. + fi
  35550. +ctags: CTAGS
  35551. +CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  35552. + $(TAGS_FILES) $(LISP)
  35553. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  35554. + unique=`for i in $$list; do \
  35555. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  35556. + done | \
  35557. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  35558. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  35559. + test -z "$(CTAGS_ARGS)$$unique" \
  35560. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  35561. + $$unique
  35562. +
  35563. +GTAGS:
  35564. + here=`$(am__cd) $(top_builddir) && pwd` \
  35565. + && $(am__cd) $(top_srcdir) \
  35566. + && gtags -i $(GTAGS_ARGS) "$$here"
  35567. +
  35568. +distclean-tags:
  35569. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  35570. +
  35571. +distdir: $(DISTFILES)
  35572. + $(am__remove_distdir)
  35573. + test -d "$(distdir)" || mkdir "$(distdir)"
  35574. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  35575. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  35576. + list='$(DISTFILES)'; \
  35577. + dist_files=`for file in $$list; do echo $$file; done | \
  35578. + sed -e "s|^$$srcdirstrip/||;t" \
  35579. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  35580. + case $$dist_files in \
  35581. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  35582. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  35583. + sort -u` ;; \
  35584. + esac; \
  35585. + for file in $$dist_files; do \
  35586. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  35587. + if test -d $$d/$$file; then \
  35588. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  35589. + if test -d "$(distdir)/$$file"; then \
  35590. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  35591. + fi; \
  35592. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  35593. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  35594. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  35595. + fi; \
  35596. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  35597. + else \
  35598. + test -f "$(distdir)/$$file" \
  35599. + || cp -p $$d/$$file "$(distdir)/$$file" \
  35600. + || exit 1; \
  35601. + fi; \
  35602. + done
  35603. + -test -n "$(am__skip_mode_fix)" \
  35604. + || find "$(distdir)" -type d ! -perm -755 \
  35605. + -exec chmod u+rwx,go+rx {} \; -o \
  35606. + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  35607. + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  35608. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  35609. + || chmod -R a+r "$(distdir)"
  35610. +dist-gzip: distdir
  35611. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  35612. + $(am__remove_distdir)
  35613. +
  35614. +dist-bzip2: distdir
  35615. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  35616. + $(am__remove_distdir)
  35617. +
  35618. +dist-lzma: distdir
  35619. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  35620. + $(am__remove_distdir)
  35621. +
  35622. +dist-xz: distdir
  35623. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  35624. + $(am__remove_distdir)
  35625. +
  35626. +dist-tarZ: distdir
  35627. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  35628. + $(am__remove_distdir)
  35629. +
  35630. +dist-shar: distdir
  35631. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  35632. + $(am__remove_distdir)
  35633. +
  35634. +dist-zip: distdir
  35635. + -rm -f $(distdir).zip
  35636. + zip -rq $(distdir).zip $(distdir)
  35637. + $(am__remove_distdir)
  35638. +
  35639. +dist dist-all: distdir
  35640. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  35641. + $(am__remove_distdir)
  35642. +
  35643. +# This target untars the dist file and tries a VPATH configuration. Then
  35644. +# it guarantees that the distribution is self-contained by making another
  35645. +# tarfile.
  35646. +distcheck: dist
  35647. + case '$(DIST_ARCHIVES)' in \
  35648. + *.tar.gz*) \
  35649. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  35650. + *.tar.bz2*) \
  35651. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  35652. + *.tar.lzma*) \
  35653. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  35654. + *.tar.xz*) \
  35655. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  35656. + *.tar.Z*) \
  35657. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  35658. + *.shar.gz*) \
  35659. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  35660. + *.zip*) \
  35661. + unzip $(distdir).zip ;;\
  35662. + esac
  35663. + chmod -R a-w $(distdir); chmod a+w $(distdir)
  35664. + mkdir $(distdir)/_build
  35665. + mkdir $(distdir)/_inst
  35666. + chmod a-w $(distdir)
  35667. + test -d $(distdir)/_build || exit 0; \
  35668. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  35669. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  35670. + && am__cwd=`pwd` \
  35671. + && $(am__cd) $(distdir)/_build \
  35672. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  35673. + $(DISTCHECK_CONFIGURE_FLAGS) \
  35674. + && $(MAKE) $(AM_MAKEFLAGS) \
  35675. + && $(MAKE) $(AM_MAKEFLAGS) dvi \
  35676. + && $(MAKE) $(AM_MAKEFLAGS) check \
  35677. + && $(MAKE) $(AM_MAKEFLAGS) install \
  35678. + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  35679. + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  35680. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  35681. + distuninstallcheck \
  35682. + && chmod -R a-w "$$dc_install_base" \
  35683. + && ({ \
  35684. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  35685. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  35686. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  35687. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  35688. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  35689. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  35690. + && rm -rf "$$dc_destdir" \
  35691. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  35692. + && rm -rf $(DIST_ARCHIVES) \
  35693. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  35694. + && cd "$$am__cwd" \
  35695. + || exit 1
  35696. + $(am__remove_distdir)
  35697. + @(echo "$(distdir) archives ready for distribution: "; \
  35698. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  35699. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  35700. +distuninstallcheck:
  35701. + @$(am__cd) '$(distuninstallcheck_dir)' \
  35702. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  35703. + || { echo "ERROR: files left after uninstall:" ; \
  35704. + if test -n "$(DESTDIR)"; then \
  35705. + echo " (check DESTDIR support)"; \
  35706. + fi ; \
  35707. + $(distuninstallcheck_listfiles) ; \
  35708. + exit 1; } >&2
  35709. +distcleancheck: distclean
  35710. + @if test '$(srcdir)' = . ; then \
  35711. + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  35712. + exit 1 ; \
  35713. + fi
  35714. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  35715. + || { echo "ERROR: files left in build directory after distclean:" ; \
  35716. + $(distcleancheck_listfiles) ; \
  35717. + exit 1; } >&2
  35718. +check-am: all-am
  35719. +check: check-am
  35720. +all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
  35721. +installdirs:
  35722. + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  35723. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  35724. + done
  35725. +install: install-am
  35726. +install-exec: install-exec-am
  35727. +install-data: install-data-am
  35728. +uninstall: uninstall-am
  35729. +
  35730. +install-am: all-am
  35731. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  35732. +
  35733. +installcheck: installcheck-am
  35734. +install-strip:
  35735. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  35736. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  35737. + `test -z '$(STRIP)' || \
  35738. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  35739. +mostlyclean-generic:
  35740. +
  35741. +clean-generic:
  35742. + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  35743. +
  35744. +distclean-generic:
  35745. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  35746. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  35747. +
  35748. +maintainer-clean-generic:
  35749. + @echo "This command is intended for maintainers to use"
  35750. + @echo "it deletes files that may require special tools to rebuild."
  35751. +clean: clean-am
  35752. +
  35753. +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  35754. + mostlyclean-am
  35755. +
  35756. +distclean: distclean-am
  35757. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  35758. + -rm -rf ./$(DEPDIR)
  35759. + -rm -f Makefile
  35760. +distclean-am: clean-am distclean-compile distclean-generic \
  35761. + distclean-hdr distclean-libtool distclean-tags
  35762. +
  35763. +dvi: dvi-am
  35764. +
  35765. +dvi-am:
  35766. +
  35767. +html: html-am
  35768. +
  35769. +html-am:
  35770. +
  35771. +info: info-am
  35772. +
  35773. +info-am:
  35774. +
  35775. +install-data-am: install-includeHEADERS
  35776. +
  35777. +install-dvi: install-dvi-am
  35778. +
  35779. +install-dvi-am:
  35780. +
  35781. +install-exec-am: install-libLTLIBRARIES
  35782. +
  35783. +install-html: install-html-am
  35784. +
  35785. +install-html-am:
  35786. +
  35787. +install-info: install-info-am
  35788. +
  35789. +install-info-am:
  35790. +
  35791. +install-man:
  35792. +
  35793. +install-pdf: install-pdf-am
  35794. +
  35795. +install-pdf-am:
  35796. +
  35797. +install-ps: install-ps-am
  35798. +
  35799. +install-ps-am:
  35800. +
  35801. +installcheck-am:
  35802. +
  35803. +maintainer-clean: maintainer-clean-am
  35804. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  35805. + -rm -rf $(top_srcdir)/autom4te.cache
  35806. + -rm -rf ./$(DEPDIR)
  35807. + -rm -f Makefile
  35808. +maintainer-clean-am: distclean-am maintainer-clean-generic
  35809. +
  35810. +mostlyclean: mostlyclean-am
  35811. +
  35812. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  35813. + mostlyclean-libtool
  35814. +
  35815. +pdf: pdf-am
  35816. +
  35817. +pdf-am:
  35818. +
  35819. +ps: ps-am
  35820. +
  35821. +ps-am:
  35822. +
  35823. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  35824. +
  35825. +.MAKE: all install-am install-strip
  35826. +
  35827. +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
  35828. + clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \
  35829. + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
  35830. + dist-xz dist-zip distcheck distclean distclean-compile \
  35831. + distclean-generic distclean-hdr distclean-libtool \
  35832. + distclean-tags distcleancheck distdir distuninstallcheck dvi \
  35833. + dvi-am html html-am info info-am install install-am \
  35834. + install-data install-data-am install-dvi install-dvi-am \
  35835. + install-exec install-exec-am install-html install-html-am \
  35836. + install-includeHEADERS install-info install-info-am \
  35837. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  35838. + install-ps install-ps-am install-strip installcheck \
  35839. + installcheck-am installdirs maintainer-clean \
  35840. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  35841. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  35842. + tags uninstall uninstall-am uninstall-includeHEADERS \
  35843. + uninstall-libLTLIBRARIES
  35844. +
  35845. +
  35846. +example:
  35847. + -ln -fs . vorbis
  35848. + $(MAKE) ivorbisfile_example
  35849. +
  35850. +debug:
  35851. + $(MAKE) all CFLAGS="@DEBUG@"
  35852. +
  35853. +profile:
  35854. + $(MAKE) all CFLAGS="@PROFILE@"
  35855. +
  35856. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  35857. +# Otherwise a system limit (for SysV at least) may be exceeded.
  35858. +.NOEXPORT:
  35859. diff -Nur libvorbisidec-1.0.2+svn15687.orig/missing libvorbisidec-1.0.2+svn15687/missing
  35860. --- libvorbisidec-1.0.2+svn15687.orig/missing 1970-01-01 01:00:00.000000000 +0100
  35861. +++ libvorbisidec-1.0.2+svn15687/missing 2010-02-18 19:38:59.468857368 +0100
  35862. @@ -0,0 +1,376 @@
  35863. +#! /bin/sh
  35864. +# Common stub for a few missing GNU programs while installing.
  35865. +
  35866. +scriptversion=2009-04-28.21; # UTC
  35867. +
  35868. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  35869. +# 2008, 2009 Free Software Foundation, Inc.
  35870. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  35871. +
  35872. +# This program is free software; you can redistribute it and/or modify
  35873. +# it under the terms of the GNU General Public License as published by
  35874. +# the Free Software Foundation; either version 2, or (at your option)
  35875. +# any later version.
  35876. +
  35877. +# This program is distributed in the hope that it will be useful,
  35878. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  35879. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35880. +# GNU General Public License for more details.
  35881. +
  35882. +# You should have received a copy of the GNU General Public License
  35883. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  35884. +
  35885. +# As a special exception to the GNU General Public License, if you
  35886. +# distribute this file as part of a program that contains a
  35887. +# configuration script generated by Autoconf, you may include it under
  35888. +# the same distribution terms that you use for the rest of that program.
  35889. +
  35890. +if test $# -eq 0; then
  35891. + echo 1>&2 "Try \`$0 --help' for more information"
  35892. + exit 1
  35893. +fi
  35894. +
  35895. +run=:
  35896. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  35897. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  35898. +
  35899. +# In the cases where this matters, `missing' is being run in the
  35900. +# srcdir already.
  35901. +if test -f configure.ac; then
  35902. + configure_ac=configure.ac
  35903. +else
  35904. + configure_ac=configure.in
  35905. +fi
  35906. +
  35907. +msg="missing on your system"
  35908. +
  35909. +case $1 in
  35910. +--run)
  35911. + # Try to run requested program, and just exit if it succeeds.
  35912. + run=
  35913. + shift
  35914. + "$@" && exit 0
  35915. + # Exit code 63 means version mismatch. This often happens
  35916. + # when the user try to use an ancient version of a tool on
  35917. + # a file that requires a minimum version. In this case we
  35918. + # we should proceed has if the program had been absent, or
  35919. + # if --run hadn't been passed.
  35920. + if test $? = 63; then
  35921. + run=:
  35922. + msg="probably too old"
  35923. + fi
  35924. + ;;
  35925. +
  35926. + -h|--h|--he|--hel|--help)
  35927. + echo "\
  35928. +$0 [OPTION]... PROGRAM [ARGUMENT]...
  35929. +
  35930. +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
  35931. +error status if there is no known handling for PROGRAM.
  35932. +
  35933. +Options:
  35934. + -h, --help display this help and exit
  35935. + -v, --version output version information and exit
  35936. + --run try to run the given command, and emulate it if it fails
  35937. +
  35938. +Supported PROGRAM values:
  35939. + aclocal touch file \`aclocal.m4'
  35940. + autoconf touch file \`configure'
  35941. + autoheader touch file \`config.h.in'
  35942. + autom4te touch the output file, or create a stub one
  35943. + automake touch all \`Makefile.in' files
  35944. + bison create \`y.tab.[ch]', if possible, from existing .[ch]
  35945. + flex create \`lex.yy.c', if possible, from existing .c
  35946. + help2man touch the output file
  35947. + lex create \`lex.yy.c', if possible, from existing .c
  35948. + makeinfo touch the output file
  35949. + tar try tar, gnutar, gtar, then tar without non-portable flags
  35950. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  35951. +
  35952. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  35953. +\`g' are ignored when checking the name.
  35954. +
  35955. +Send bug reports to <bug-automake@gnu.org>."
  35956. + exit $?
  35957. + ;;
  35958. +
  35959. + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  35960. + echo "missing $scriptversion (GNU Automake)"
  35961. + exit $?
  35962. + ;;
  35963. +
  35964. + -*)
  35965. + echo 1>&2 "$0: Unknown \`$1' option"
  35966. + echo 1>&2 "Try \`$0 --help' for more information"
  35967. + exit 1
  35968. + ;;
  35969. +
  35970. +esac
  35971. +
  35972. +# normalize program name to check for.
  35973. +program=`echo "$1" | sed '
  35974. + s/^gnu-//; t
  35975. + s/^gnu//; t
  35976. + s/^g//; t'`
  35977. +
  35978. +# Now exit if we have it, but it failed. Also exit now if we
  35979. +# don't have it and --version was passed (most likely to detect
  35980. +# the program). This is about non-GNU programs, so use $1 not
  35981. +# $program.
  35982. +case $1 in
  35983. + lex*|yacc*)
  35984. + # Not GNU programs, they don't have --version.
  35985. + ;;
  35986. +
  35987. + tar*)
  35988. + if test -n "$run"; then
  35989. + echo 1>&2 "ERROR: \`tar' requires --run"
  35990. + exit 1
  35991. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  35992. + exit 1
  35993. + fi
  35994. + ;;
  35995. +
  35996. + *)
  35997. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  35998. + # We have it, but it failed.
  35999. + exit 1
  36000. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  36001. + # Could not run --version or --help. This is probably someone
  36002. + # running `$TOOL --version' or `$TOOL --help' to check whether
  36003. + # $TOOL exists and not knowing $TOOL uses missing.
  36004. + exit 1
  36005. + fi
  36006. + ;;
  36007. +esac
  36008. +
  36009. +# If it does not exist, or fails to run (possibly an outdated version),
  36010. +# try to emulate it.
  36011. +case $program in
  36012. + aclocal*)
  36013. + echo 1>&2 "\
  36014. +WARNING: \`$1' is $msg. You should only need it if
  36015. + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  36016. + to install the \`Automake' and \`Perl' packages. Grab them from
  36017. + any GNU archive site."
  36018. + touch aclocal.m4
  36019. + ;;
  36020. +
  36021. + autoconf*)
  36022. + echo 1>&2 "\
  36023. +WARNING: \`$1' is $msg. You should only need it if
  36024. + you modified \`${configure_ac}'. You might want to install the
  36025. + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  36026. + archive site."
  36027. + touch configure
  36028. + ;;
  36029. +
  36030. + autoheader*)
  36031. + echo 1>&2 "\
  36032. +WARNING: \`$1' is $msg. You should only need it if
  36033. + you modified \`acconfig.h' or \`${configure_ac}'. You might want
  36034. + to install the \`Autoconf' and \`GNU m4' packages. Grab them
  36035. + from any GNU archive site."
  36036. + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  36037. + test -z "$files" && files="config.h"
  36038. + touch_files=
  36039. + for f in $files; do
  36040. + case $f in
  36041. + *:*) touch_files="$touch_files "`echo "$f" |
  36042. + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  36043. + *) touch_files="$touch_files $f.in";;
  36044. + esac
  36045. + done
  36046. + touch $touch_files
  36047. + ;;
  36048. +
  36049. + automake*)
  36050. + echo 1>&2 "\
  36051. +WARNING: \`$1' is $msg. You should only need it if
  36052. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  36053. + You might want to install the \`Automake' and \`Perl' packages.
  36054. + Grab them from any GNU archive site."
  36055. + find . -type f -name Makefile.am -print |
  36056. + sed 's/\.am$/.in/' |
  36057. + while read f; do touch "$f"; done
  36058. + ;;
  36059. +
  36060. + autom4te*)
  36061. + echo 1>&2 "\
  36062. +WARNING: \`$1' is needed, but is $msg.
  36063. + You might have modified some files without having the
  36064. + proper tools for further handling them.
  36065. + You can get \`$1' as part of \`Autoconf' from any GNU
  36066. + archive site."
  36067. +
  36068. + file=`echo "$*" | sed -n "$sed_output"`
  36069. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  36070. + if test -f "$file"; then
  36071. + touch $file
  36072. + else
  36073. + test -z "$file" || exec >$file
  36074. + echo "#! /bin/sh"
  36075. + echo "# Created by GNU Automake missing as a replacement of"
  36076. + echo "# $ $@"
  36077. + echo "exit 0"
  36078. + chmod +x $file
  36079. + exit 1
  36080. + fi
  36081. + ;;
  36082. +
  36083. + bison*|yacc*)
  36084. + echo 1>&2 "\
  36085. +WARNING: \`$1' $msg. You should only need it if
  36086. + you modified a \`.y' file. You may need the \`Bison' package
  36087. + in order for those modifications to take effect. You can get
  36088. + \`Bison' from any GNU archive site."
  36089. + rm -f y.tab.c y.tab.h
  36090. + if test $# -ne 1; then
  36091. + eval LASTARG="\${$#}"
  36092. + case $LASTARG in
  36093. + *.y)
  36094. + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  36095. + if test -f "$SRCFILE"; then
  36096. + cp "$SRCFILE" y.tab.c
  36097. + fi
  36098. + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  36099. + if test -f "$SRCFILE"; then
  36100. + cp "$SRCFILE" y.tab.h
  36101. + fi
  36102. + ;;
  36103. + esac
  36104. + fi
  36105. + if test ! -f y.tab.h; then
  36106. + echo >y.tab.h
  36107. + fi
  36108. + if test ! -f y.tab.c; then
  36109. + echo 'main() { return 0; }' >y.tab.c
  36110. + fi
  36111. + ;;
  36112. +
  36113. + lex*|flex*)
  36114. + echo 1>&2 "\
  36115. +WARNING: \`$1' is $msg. You should only need it if
  36116. + you modified a \`.l' file. You may need the \`Flex' package
  36117. + in order for those modifications to take effect. You can get
  36118. + \`Flex' from any GNU archive site."
  36119. + rm -f lex.yy.c
  36120. + if test $# -ne 1; then
  36121. + eval LASTARG="\${$#}"
  36122. + case $LASTARG in
  36123. + *.l)
  36124. + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  36125. + if test -f "$SRCFILE"; then
  36126. + cp "$SRCFILE" lex.yy.c
  36127. + fi
  36128. + ;;
  36129. + esac
  36130. + fi
  36131. + if test ! -f lex.yy.c; then
  36132. + echo 'main() { return 0; }' >lex.yy.c
  36133. + fi
  36134. + ;;
  36135. +
  36136. + help2man*)
  36137. + echo 1>&2 "\
  36138. +WARNING: \`$1' is $msg. You should only need it if
  36139. + you modified a dependency of a manual page. You may need the
  36140. + \`Help2man' package in order for those modifications to take
  36141. + effect. You can get \`Help2man' from any GNU archive site."
  36142. +
  36143. + file=`echo "$*" | sed -n "$sed_output"`
  36144. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  36145. + if test -f "$file"; then
  36146. + touch $file
  36147. + else
  36148. + test -z "$file" || exec >$file
  36149. + echo ".ab help2man is required to generate this page"
  36150. + exit $?
  36151. + fi
  36152. + ;;
  36153. +
  36154. + makeinfo*)
  36155. + echo 1>&2 "\
  36156. +WARNING: \`$1' is $msg. You should only need it if
  36157. + you modified a \`.texi' or \`.texinfo' file, or any other file
  36158. + indirectly affecting the aspect of the manual. The spurious
  36159. + call might also be the consequence of using a buggy \`make' (AIX,
  36160. + DU, IRIX). You might want to install the \`Texinfo' package or
  36161. + the \`GNU make' package. Grab either from any GNU archive site."
  36162. + # The file to touch is that specified with -o ...
  36163. + file=`echo "$*" | sed -n "$sed_output"`
  36164. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  36165. + if test -z "$file"; then
  36166. + # ... or it is the one specified with @setfilename ...
  36167. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  36168. + file=`sed -n '
  36169. + /^@setfilename/{
  36170. + s/.* \([^ ]*\) *$/\1/
  36171. + p
  36172. + q
  36173. + }' $infile`
  36174. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  36175. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  36176. + fi
  36177. + # If the file does not exist, the user really needs makeinfo;
  36178. + # let's fail without touching anything.
  36179. + test -f $file || exit 1
  36180. + touch $file
  36181. + ;;
  36182. +
  36183. + tar*)
  36184. + shift
  36185. +
  36186. + # We have already tried tar in the generic part.
  36187. + # Look for gnutar/gtar before invocation to avoid ugly error
  36188. + # messages.
  36189. + if (gnutar --version > /dev/null 2>&1); then
  36190. + gnutar "$@" && exit 0
  36191. + fi
  36192. + if (gtar --version > /dev/null 2>&1); then
  36193. + gtar "$@" && exit 0
  36194. + fi
  36195. + firstarg="$1"
  36196. + if shift; then
  36197. + case $firstarg in
  36198. + *o*)
  36199. + firstarg=`echo "$firstarg" | sed s/o//`
  36200. + tar "$firstarg" "$@" && exit 0
  36201. + ;;
  36202. + esac
  36203. + case $firstarg in
  36204. + *h*)
  36205. + firstarg=`echo "$firstarg" | sed s/h//`
  36206. + tar "$firstarg" "$@" && exit 0
  36207. + ;;
  36208. + esac
  36209. + fi
  36210. +
  36211. + echo 1>&2 "\
  36212. +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  36213. + You may want to install GNU tar or Free paxutils, or check the
  36214. + command line arguments."
  36215. + exit 1
  36216. + ;;
  36217. +
  36218. + *)
  36219. + echo 1>&2 "\
  36220. +WARNING: \`$1' is needed, and is $msg.
  36221. + You might have modified some files without having the
  36222. + proper tools for further handling them. Check the \`README' file,
  36223. + it often tells you about the needed prerequisites for installing
  36224. + this package. You may also peek at any GNU archive site, in case
  36225. + some other package would contain this missing \`$1' program."
  36226. + exit 1
  36227. + ;;
  36228. +esac
  36229. +
  36230. +exit 0
  36231. +
  36232. +# Local variables:
  36233. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  36234. +# time-stamp-start: "scriptversion="
  36235. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  36236. +# time-stamp-time-zone: "UTC"
  36237. +# time-stamp-end: "; # UTC"
  36238. +# End: