autotool.patch 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531
  1. diff -Nur tslib-1.0.orig/aclocal.m4 tslib-1.0/aclocal.m4
  2. --- tslib-1.0.orig/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
  3. +++ tslib-1.0/aclocal.m4 2010-02-19 00:24:08.800856345 +0100
  4. @@ -0,0 +1,970 @@
  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. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  27. +#
  28. +# This file is free software; the Free Software Foundation
  29. +# gives unlimited permission to copy and/or distribute it,
  30. +# with or without modifications, as long as this notice is preserved.
  31. +
  32. +# AM_AUTOMAKE_VERSION(VERSION)
  33. +# ----------------------------
  34. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  35. +# generated from the m4 files accompanying Automake X.Y.
  36. +# (This private macro should not be called outside this file.)
  37. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  38. +[am__api_version='1.11'
  39. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  40. +dnl require some minimum version. Point them to the right macro.
  41. +m4_if([$1], [1.11.1], [],
  42. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  43. +])
  44. +
  45. +# _AM_AUTOCONF_VERSION(VERSION)
  46. +# -----------------------------
  47. +# aclocal traces this macro to find the Autoconf version.
  48. +# This is a private macro too. Using m4_define simplifies
  49. +# the logic in aclocal, which can simply ignore this definition.
  50. +m4_define([_AM_AUTOCONF_VERSION], [])
  51. +
  52. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  53. +# -------------------------------
  54. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  55. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  56. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  57. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  58. +m4_ifndef([AC_AUTOCONF_VERSION],
  59. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  60. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  61. +
  62. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  63. +
  64. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  65. +#
  66. +# This file is free software; the Free Software Foundation
  67. +# gives unlimited permission to copy and/or distribute it,
  68. +# with or without modifications, as long as this notice is preserved.
  69. +
  70. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  71. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  72. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  73. +#
  74. +# Of course, Automake must honor this variable whenever it calls a
  75. +# tool from the auxiliary directory. The problem is that $srcdir (and
  76. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  77. +# depending on how configure is run. This is pretty annoying, since
  78. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  79. +# source directory, any form will work fine, but in subdirectories a
  80. +# relative path needs to be adjusted first.
  81. +#
  82. +# $ac_aux_dir/missing
  83. +# fails when called from a subdirectory if $ac_aux_dir is relative
  84. +# $top_srcdir/$ac_aux_dir/missing
  85. +# fails if $ac_aux_dir is absolute,
  86. +# fails when called from a subdirectory in a VPATH build with
  87. +# a relative $ac_aux_dir
  88. +#
  89. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  90. +# are both prefixed by $srcdir. In an in-source build this is usually
  91. +# harmless because $srcdir is `.', but things will broke when you
  92. +# start a VPATH build or use an absolute $srcdir.
  93. +#
  94. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  95. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  96. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  97. +# and then we would define $MISSING as
  98. +# MISSING="\${SHELL} $am_aux_dir/missing"
  99. +# This will work as long as MISSING is not called from configure, because
  100. +# unfortunately $(top_srcdir) has no meaning in configure.
  101. +# However there are other variables, like CC, which are often used in
  102. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  103. +#
  104. +# Another solution, used here, is to always expand $ac_aux_dir to an
  105. +# absolute PATH. The drawback is that using absolute paths prevent a
  106. +# configured tree to be moved without reconfiguration.
  107. +
  108. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  109. +[dnl Rely on autoconf to set up CDPATH properly.
  110. +AC_PREREQ([2.50])dnl
  111. +# expand $ac_aux_dir to an absolute path
  112. +am_aux_dir=`cd $ac_aux_dir && pwd`
  113. +])
  114. +
  115. +# AM_CONDITIONAL -*- Autoconf -*-
  116. +
  117. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  118. +# Free Software Foundation, Inc.
  119. +#
  120. +# This file is free software; the Free Software Foundation
  121. +# gives unlimited permission to copy and/or distribute it,
  122. +# with or without modifications, as long as this notice is preserved.
  123. +
  124. +# serial 9
  125. +
  126. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  127. +# -------------------------------------
  128. +# Define a conditional.
  129. +AC_DEFUN([AM_CONDITIONAL],
  130. +[AC_PREREQ(2.52)dnl
  131. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  132. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  133. +AC_SUBST([$1_TRUE])dnl
  134. +AC_SUBST([$1_FALSE])dnl
  135. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  136. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  137. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  138. +if $2; then
  139. + $1_TRUE=
  140. + $1_FALSE='#'
  141. +else
  142. + $1_TRUE='#'
  143. + $1_FALSE=
  144. +fi
  145. +AC_CONFIG_COMMANDS_PRE(
  146. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  147. + AC_MSG_ERROR([[conditional "$1" was never defined.
  148. +Usually this means the macro was only invoked conditionally.]])
  149. +fi])])
  150. +
  151. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  152. +# Free Software Foundation, Inc.
  153. +#
  154. +# This file is free software; the Free Software Foundation
  155. +# gives unlimited permission to copy and/or distribute it,
  156. +# with or without modifications, as long as this notice is preserved.
  157. +
  158. +# serial 10
  159. +
  160. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  161. +# written in clear, in which case automake, when reading aclocal.m4,
  162. +# will think it sees a *use*, and therefore will trigger all it's
  163. +# C support machinery. Also note that it means that autoscan, seeing
  164. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  165. +
  166. +
  167. +# _AM_DEPENDENCIES(NAME)
  168. +# ----------------------
  169. +# See how the compiler implements dependency checking.
  170. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  171. +# We try a few techniques and use that to set a single cache variable.
  172. +#
  173. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  174. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  175. +# dependency, and given that the user is not expected to run this macro,
  176. +# just rely on AC_PROG_CC.
  177. +AC_DEFUN([_AM_DEPENDENCIES],
  178. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  179. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  180. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  181. +AC_REQUIRE([AM_DEP_TRACK])dnl
  182. +
  183. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  184. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  185. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  186. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  187. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  188. + [depcc="$$1" am_compiler_list=])
  189. +
  190. +AC_CACHE_CHECK([dependency style of $depcc],
  191. + [am_cv_$1_dependencies_compiler_type],
  192. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  193. + # We make a subdir and do the tests there. Otherwise we can end up
  194. + # making bogus files that we don't know about and never remove. For
  195. + # instance it was reported that on HP-UX the gcc test will end up
  196. + # making a dummy file named `D' -- because `-MD' means `put the output
  197. + # in D'.
  198. + mkdir conftest.dir
  199. + # Copy depcomp to subdir because otherwise we won't find it if we're
  200. + # using a relative directory.
  201. + cp "$am_depcomp" conftest.dir
  202. + cd conftest.dir
  203. + # We will build objects and dependencies in a subdirectory because
  204. + # it helps to detect inapplicable dependency modes. For instance
  205. + # both Tru64's cc and ICC support -MD to output dependencies as a
  206. + # side effect of compilation, but ICC will put the dependencies in
  207. + # the current directory while Tru64 will put them in the object
  208. + # directory.
  209. + mkdir sub
  210. +
  211. + am_cv_$1_dependencies_compiler_type=none
  212. + if test "$am_compiler_list" = ""; then
  213. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  214. + fi
  215. + am__universal=false
  216. + m4_case([$1], [CC],
  217. + [case " $depcc " in #(
  218. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  219. + esac],
  220. + [CXX],
  221. + [case " $depcc " in #(
  222. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  223. + esac])
  224. +
  225. + for depmode in $am_compiler_list; do
  226. + # Setup a source with many dependencies, because some compilers
  227. + # like to wrap large dependency lists on column 80 (with \), and
  228. + # we should not choose a depcomp mode which is confused by this.
  229. + #
  230. + # We need to recreate these files for each test, as the compiler may
  231. + # overwrite some of them when testing with obscure command lines.
  232. + # This happens at least with the AIX C compiler.
  233. + : > sub/conftest.c
  234. + for i in 1 2 3 4 5 6; do
  235. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  236. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  237. + # Solaris 8's {/usr,}/bin/sh.
  238. + touch sub/conftst$i.h
  239. + done
  240. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  241. +
  242. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  243. + # mode. It turns out that the SunPro C++ compiler does not properly
  244. + # handle `-M -o', and we need to detect this. Also, some Intel
  245. + # versions had trouble with output in subdirs
  246. + am__obj=sub/conftest.${OBJEXT-o}
  247. + am__minus_obj="-o $am__obj"
  248. + case $depmode in
  249. + gcc)
  250. + # This depmode causes a compiler race in universal mode.
  251. + test "$am__universal" = false || continue
  252. + ;;
  253. + nosideeffect)
  254. + # after this tag, mechanisms are not by side-effect, so they'll
  255. + # only be used when explicitly requested
  256. + if test "x$enable_dependency_tracking" = xyes; then
  257. + continue
  258. + else
  259. + break
  260. + fi
  261. + ;;
  262. + msvisualcpp | msvcmsys)
  263. + # This compiler won't grok `-c -o', but also, the minuso test has
  264. + # not run yet. These depmodes are late enough in the game, and
  265. + # so weak that their functioning should not be impacted.
  266. + am__obj=conftest.${OBJEXT-o}
  267. + am__minus_obj=
  268. + ;;
  269. + none) break ;;
  270. + esac
  271. + if depmode=$depmode \
  272. + source=sub/conftest.c object=$am__obj \
  273. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  274. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  275. + >/dev/null 2>conftest.err &&
  276. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  277. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  278. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  279. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  280. + # icc doesn't choke on unknown options, it will just issue warnings
  281. + # or remarks (even with -Werror). So we grep stderr for any message
  282. + # that says an option was ignored or not supported.
  283. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  284. + # icc: Command line warning: ignoring option '-M'; no argument required
  285. + # The diagnosis changed in icc 8.0:
  286. + # icc: Command line remark: option '-MP' not supported
  287. + if (grep 'ignoring option' conftest.err ||
  288. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  289. + am_cv_$1_dependencies_compiler_type=$depmode
  290. + break
  291. + fi
  292. + fi
  293. + done
  294. +
  295. + cd ..
  296. + rm -rf conftest.dir
  297. +else
  298. + am_cv_$1_dependencies_compiler_type=none
  299. +fi
  300. +])
  301. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  302. +AM_CONDITIONAL([am__fastdep$1], [
  303. + test "x$enable_dependency_tracking" != xno \
  304. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  305. +])
  306. +
  307. +
  308. +# AM_SET_DEPDIR
  309. +# -------------
  310. +# Choose a directory name for dependency files.
  311. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  312. +AC_DEFUN([AM_SET_DEPDIR],
  313. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  314. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  315. +])
  316. +
  317. +
  318. +# AM_DEP_TRACK
  319. +# ------------
  320. +AC_DEFUN([AM_DEP_TRACK],
  321. +[AC_ARG_ENABLE(dependency-tracking,
  322. +[ --disable-dependency-tracking speeds up one-time build
  323. + --enable-dependency-tracking do not reject slow dependency extractors])
  324. +if test "x$enable_dependency_tracking" != xno; then
  325. + am_depcomp="$ac_aux_dir/depcomp"
  326. + AMDEPBACKSLASH='\'
  327. +fi
  328. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  329. +AC_SUBST([AMDEPBACKSLASH])dnl
  330. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  331. +])
  332. +
  333. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  334. +
  335. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  336. +# Free Software Foundation, Inc.
  337. +#
  338. +# This file is free software; the Free Software Foundation
  339. +# gives unlimited permission to copy and/or distribute it,
  340. +# with or without modifications, as long as this notice is preserved.
  341. +
  342. +#serial 5
  343. +
  344. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  345. +# ------------------------------
  346. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  347. +[{
  348. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  349. + # are listed without --file. Let's play safe and only enable the eval
  350. + # if we detect the quoting.
  351. + case $CONFIG_FILES in
  352. + *\'*) eval set x "$CONFIG_FILES" ;;
  353. + *) set x $CONFIG_FILES ;;
  354. + esac
  355. + shift
  356. + for mf
  357. + do
  358. + # Strip MF so we end up with the name of the file.
  359. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  360. + # Check whether this is an Automake generated Makefile or not.
  361. + # We used to match only the files named `Makefile.in', but
  362. + # some people rename them; so instead we look at the file content.
  363. + # Grep'ing the first line is not enough: some people post-process
  364. + # each Makefile.in and add a new line on top of each file to say so.
  365. + # Grep'ing the whole file is not good either: AIX grep has a line
  366. + # limit of 2048, but all sed's we know have understand at least 4000.
  367. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  368. + dirpart=`AS_DIRNAME("$mf")`
  369. + else
  370. + continue
  371. + fi
  372. + # Extract the definition of DEPDIR, am__include, and am__quote
  373. + # from the Makefile without running `make'.
  374. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  375. + test -z "$DEPDIR" && continue
  376. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  377. + test -z "am__include" && continue
  378. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  379. + # When using ansi2knr, U may be empty or an underscore; expand it
  380. + U=`sed -n 's/^U = //p' < "$mf"`
  381. + # Find all dependency output files, they are included files with
  382. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  383. + # simplest approach to changing $(DEPDIR) to its actual value in the
  384. + # expansion.
  385. + for file in `sed -n "
  386. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  387. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  388. + # Make sure the directory exists.
  389. + test -f "$dirpart/$file" && continue
  390. + fdir=`AS_DIRNAME(["$file"])`
  391. + AS_MKDIR_P([$dirpart/$fdir])
  392. + # echo "creating $dirpart/$file"
  393. + echo '# dummy' > "$dirpart/$file"
  394. + done
  395. + done
  396. +}
  397. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  398. +
  399. +
  400. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  401. +# -----------------------------
  402. +# This macro should only be invoked once -- use via AC_REQUIRE.
  403. +#
  404. +# This code is only required when automatic dependency tracking
  405. +# is enabled. FIXME. This creates each `.P' file that we will
  406. +# need in order to bootstrap the dependency handling code.
  407. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  408. +[AC_CONFIG_COMMANDS([depfiles],
  409. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  410. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  411. +])
  412. +
  413. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  414. +# Free Software Foundation, Inc.
  415. +#
  416. +# This file is free software; the Free Software Foundation
  417. +# gives unlimited permission to copy and/or distribute it,
  418. +# with or without modifications, as long as this notice is preserved.
  419. +
  420. +# serial 8
  421. +
  422. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  423. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  424. +
  425. +# Do all the work for Automake. -*- Autoconf -*-
  426. +
  427. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  428. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  429. +#
  430. +# This file is free software; the Free Software Foundation
  431. +# gives unlimited permission to copy and/or distribute it,
  432. +# with or without modifications, as long as this notice is preserved.
  433. +
  434. +# serial 16
  435. +
  436. +# This macro actually does too much. Some checks are only needed if
  437. +# your package does certain things. But this isn't really a big deal.
  438. +
  439. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  440. +# AM_INIT_AUTOMAKE([OPTIONS])
  441. +# -----------------------------------------------
  442. +# The call with PACKAGE and VERSION arguments is the old style
  443. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  444. +# and VERSION should now be passed to AC_INIT and removed from
  445. +# the call to AM_INIT_AUTOMAKE.
  446. +# We support both call styles for the transition. After
  447. +# the next Automake release, Autoconf can make the AC_INIT
  448. +# arguments mandatory, and then we can depend on a new Autoconf
  449. +# release and drop the old call support.
  450. +AC_DEFUN([AM_INIT_AUTOMAKE],
  451. +[AC_PREREQ([2.62])dnl
  452. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  453. +dnl the ones we care about.
  454. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  455. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  456. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  457. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  458. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  459. + # is not polluted with repeated "-I."
  460. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  461. + # test to see if srcdir already configured
  462. + if test -f $srcdir/config.status; then
  463. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  464. + fi
  465. +fi
  466. +
  467. +# test whether we have cygpath
  468. +if test -z "$CYGPATH_W"; then
  469. + if (cygpath --version) >/dev/null 2>/dev/null; then
  470. + CYGPATH_W='cygpath -w'
  471. + else
  472. + CYGPATH_W=echo
  473. + fi
  474. +fi
  475. +AC_SUBST([CYGPATH_W])
  476. +
  477. +# Define the identity of the package.
  478. +dnl Distinguish between old-style and new-style calls.
  479. +m4_ifval([$2],
  480. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  481. + AC_SUBST([PACKAGE], [$1])dnl
  482. + AC_SUBST([VERSION], [$2])],
  483. +[_AM_SET_OPTIONS([$1])dnl
  484. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  485. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  486. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  487. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  488. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  489. +
  490. +_AM_IF_OPTION([no-define],,
  491. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  492. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  493. +
  494. +# Some tools Automake needs.
  495. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  496. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  497. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  498. +AM_MISSING_PROG(AUTOCONF, autoconf)
  499. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  500. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  501. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  502. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  503. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  504. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  505. +# We need awk for the "check" target. The system "awk" is bad on
  506. +# some platforms.
  507. +AC_REQUIRE([AC_PROG_AWK])dnl
  508. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  509. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  510. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  511. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  512. + [_AM_PROG_TAR([v7])])])
  513. +_AM_IF_OPTION([no-dependencies],,
  514. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  515. + [_AM_DEPENDENCIES(CC)],
  516. + [define([AC_PROG_CC],
  517. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  518. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  519. + [_AM_DEPENDENCIES(CXX)],
  520. + [define([AC_PROG_CXX],
  521. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  522. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  523. + [_AM_DEPENDENCIES(OBJC)],
  524. + [define([AC_PROG_OBJC],
  525. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  526. +])
  527. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  528. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  529. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  530. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  531. +AC_CONFIG_COMMANDS_PRE(dnl
  532. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  533. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  534. +])
  535. +
  536. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  537. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  538. +dnl mangled by Autoconf and run in a shell conditional statement.
  539. +m4_define([_AC_COMPILER_EXEEXT],
  540. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  541. +
  542. +
  543. +# When config.status generates a header, we must update the stamp-h file.
  544. +# This file resides in the same directory as the config header
  545. +# that is generated. The stamp files are numbered to have different names.
  546. +
  547. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  548. +# loop where config.status creates the headers, so we can generate
  549. +# our stamp files there.
  550. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  551. +[# Compute $1's index in $config_headers.
  552. +_am_arg=$1
  553. +_am_stamp_count=1
  554. +for _am_header in $config_headers :; do
  555. + case $_am_header in
  556. + $_am_arg | $_am_arg:* )
  557. + break ;;
  558. + * )
  559. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  560. + esac
  561. +done
  562. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  563. +
  564. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  565. +#
  566. +# This file is free software; the Free Software Foundation
  567. +# gives unlimited permission to copy and/or distribute it,
  568. +# with or without modifications, as long as this notice is preserved.
  569. +
  570. +# AM_PROG_INSTALL_SH
  571. +# ------------------
  572. +# Define $install_sh.
  573. +AC_DEFUN([AM_PROG_INSTALL_SH],
  574. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  575. +if test x"${install_sh}" != xset; then
  576. + case $am_aux_dir in
  577. + *\ * | *\ *)
  578. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  579. + *)
  580. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  581. + esac
  582. +fi
  583. +AC_SUBST(install_sh)])
  584. +
  585. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  586. +#
  587. +# This file is free software; the Free Software Foundation
  588. +# gives unlimited permission to copy and/or distribute it,
  589. +# with or without modifications, as long as this notice is preserved.
  590. +
  591. +# serial 2
  592. +
  593. +# Check whether the underlying file-system supports filenames
  594. +# with a leading dot. For instance MS-DOS doesn't.
  595. +AC_DEFUN([AM_SET_LEADING_DOT],
  596. +[rm -rf .tst 2>/dev/null
  597. +mkdir .tst 2>/dev/null
  598. +if test -d .tst; then
  599. + am__leading_dot=.
  600. +else
  601. + am__leading_dot=_
  602. +fi
  603. +rmdir .tst 2>/dev/null
  604. +AC_SUBST([am__leading_dot])])
  605. +
  606. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  607. +
  608. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  609. +#
  610. +# This file is free software; the Free Software Foundation
  611. +# gives unlimited permission to copy and/or distribute it,
  612. +# with or without modifications, as long as this notice is preserved.
  613. +
  614. +# serial 4
  615. +
  616. +# AM_MAKE_INCLUDE()
  617. +# -----------------
  618. +# Check to see how make treats includes.
  619. +AC_DEFUN([AM_MAKE_INCLUDE],
  620. +[am_make=${MAKE-make}
  621. +cat > confinc << 'END'
  622. +am__doit:
  623. + @echo this is the am__doit target
  624. +.PHONY: am__doit
  625. +END
  626. +# If we don't find an include directive, just comment out the code.
  627. +AC_MSG_CHECKING([for style of include used by $am_make])
  628. +am__include="#"
  629. +am__quote=
  630. +_am_result=none
  631. +# First try GNU make style include.
  632. +echo "include confinc" > confmf
  633. +# Ignore all kinds of additional output from `make'.
  634. +case `$am_make -s -f confmf 2> /dev/null` in #(
  635. +*the\ am__doit\ target*)
  636. + am__include=include
  637. + am__quote=
  638. + _am_result=GNU
  639. + ;;
  640. +esac
  641. +# Now try BSD make style include.
  642. +if test "$am__include" = "#"; then
  643. + echo '.include "confinc"' > confmf
  644. + case `$am_make -s -f confmf 2> /dev/null` in #(
  645. + *the\ am__doit\ target*)
  646. + am__include=.include
  647. + am__quote="\""
  648. + _am_result=BSD
  649. + ;;
  650. + esac
  651. +fi
  652. +AC_SUBST([am__include])
  653. +AC_SUBST([am__quote])
  654. +AC_MSG_RESULT([$_am_result])
  655. +rm -f confinc confmf
  656. +])
  657. +
  658. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  659. +
  660. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  661. +# Free Software Foundation, Inc.
  662. +#
  663. +# This file is free software; the Free Software Foundation
  664. +# gives unlimited permission to copy and/or distribute it,
  665. +# with or without modifications, as long as this notice is preserved.
  666. +
  667. +# serial 6
  668. +
  669. +# AM_MISSING_PROG(NAME, PROGRAM)
  670. +# ------------------------------
  671. +AC_DEFUN([AM_MISSING_PROG],
  672. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  673. +$1=${$1-"${am_missing_run}$2"}
  674. +AC_SUBST($1)])
  675. +
  676. +
  677. +# AM_MISSING_HAS_RUN
  678. +# ------------------
  679. +# Define MISSING if not defined so far and test if it supports --run.
  680. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  681. +AC_DEFUN([AM_MISSING_HAS_RUN],
  682. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  683. +AC_REQUIRE_AUX_FILE([missing])dnl
  684. +if test x"${MISSING+set}" != xset; then
  685. + case $am_aux_dir in
  686. + *\ * | *\ *)
  687. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  688. + *)
  689. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  690. + esac
  691. +fi
  692. +# Use eval to expand $SHELL
  693. +if eval "$MISSING --run true"; then
  694. + am_missing_run="$MISSING --run "
  695. +else
  696. + am_missing_run=
  697. + AC_MSG_WARN([`missing' script is too old or missing])
  698. +fi
  699. +])
  700. +
  701. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  702. +#
  703. +# This file is free software; the Free Software Foundation
  704. +# gives unlimited permission to copy and/or distribute it,
  705. +# with or without modifications, as long as this notice is preserved.
  706. +
  707. +# AM_PROG_MKDIR_P
  708. +# ---------------
  709. +# Check for `mkdir -p'.
  710. +AC_DEFUN([AM_PROG_MKDIR_P],
  711. +[AC_PREREQ([2.60])dnl
  712. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  713. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  714. +dnl while keeping a definition of mkdir_p for backward compatibility.
  715. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  716. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  717. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  718. +dnl adjustment using top_builddir (which is defined more often than
  719. +dnl MKDIR_P).
  720. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  721. +case $mkdir_p in
  722. + [[\\/$]]* | ?:[[\\/]]*) ;;
  723. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  724. +esac
  725. +])
  726. +
  727. +# Helper functions for option handling. -*- Autoconf -*-
  728. +
  729. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  730. +#
  731. +# This file is free software; the Free Software Foundation
  732. +# gives unlimited permission to copy and/or distribute it,
  733. +# with or without modifications, as long as this notice is preserved.
  734. +
  735. +# serial 4
  736. +
  737. +# _AM_MANGLE_OPTION(NAME)
  738. +# -----------------------
  739. +AC_DEFUN([_AM_MANGLE_OPTION],
  740. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  741. +
  742. +# _AM_SET_OPTION(NAME)
  743. +# ------------------------------
  744. +# Set option NAME. Presently that only means defining a flag for this option.
  745. +AC_DEFUN([_AM_SET_OPTION],
  746. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  747. +
  748. +# _AM_SET_OPTIONS(OPTIONS)
  749. +# ----------------------------------
  750. +# OPTIONS is a space-separated list of Automake options.
  751. +AC_DEFUN([_AM_SET_OPTIONS],
  752. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  753. +
  754. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  755. +# -------------------------------------------
  756. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  757. +AC_DEFUN([_AM_IF_OPTION],
  758. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  759. +
  760. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  761. +
  762. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  763. +# Free Software Foundation, Inc.
  764. +#
  765. +# This file is free software; the Free Software Foundation
  766. +# gives unlimited permission to copy and/or distribute it,
  767. +# with or without modifications, as long as this notice is preserved.
  768. +
  769. +# serial 5
  770. +
  771. +# AM_SANITY_CHECK
  772. +# ---------------
  773. +AC_DEFUN([AM_SANITY_CHECK],
  774. +[AC_MSG_CHECKING([whether build environment is sane])
  775. +# Just in case
  776. +sleep 1
  777. +echo timestamp > conftest.file
  778. +# Reject unsafe characters in $srcdir or the absolute working directory
  779. +# name. Accept space and tab only in the latter.
  780. +am_lf='
  781. +'
  782. +case `pwd` in
  783. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  784. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  785. +esac
  786. +case $srcdir in
  787. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  788. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  789. +esac
  790. +
  791. +# Do `set' in a subshell so we don't clobber the current shell's
  792. +# arguments. Must try -L first in case configure is actually a
  793. +# symlink; some systems play weird games with the mod time of symlinks
  794. +# (eg FreeBSD returns the mod time of the symlink's containing
  795. +# directory).
  796. +if (
  797. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  798. + if test "$[*]" = "X"; then
  799. + # -L didn't work.
  800. + set X `ls -t "$srcdir/configure" conftest.file`
  801. + fi
  802. + rm -f conftest.file
  803. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  804. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  805. +
  806. + # If neither matched, then we have a broken ls. This can happen
  807. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  808. + # broken ls alias from the environment. This has actually
  809. + # happened. Such a system could not be considered "sane".
  810. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  811. +alias in your environment])
  812. + fi
  813. +
  814. + test "$[2]" = conftest.file
  815. + )
  816. +then
  817. + # Ok.
  818. + :
  819. +else
  820. + AC_MSG_ERROR([newly created file is older than distributed files!
  821. +Check your system clock])
  822. +fi
  823. +AC_MSG_RESULT(yes)])
  824. +
  825. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  826. +#
  827. +# This file is free software; the Free Software Foundation
  828. +# gives unlimited permission to copy and/or distribute it,
  829. +# with or without modifications, as long as this notice is preserved.
  830. +
  831. +# AM_PROG_INSTALL_STRIP
  832. +# ---------------------
  833. +# One issue with vendor `install' (even GNU) is that you can't
  834. +# specify the program used to strip binaries. This is especially
  835. +# annoying in cross-compiling environments, where the build's strip
  836. +# is unlikely to handle the host's binaries.
  837. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  838. +# always use install-sh in `make install-strip', and initialize
  839. +# STRIPPROG with the value of the STRIP variable (set by the user).
  840. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  841. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  842. +# Installed binaries are usually stripped using `strip' when the user
  843. +# run `make install-strip'. However `strip' might not be the right
  844. +# tool to use in cross-compilation environments, therefore Automake
  845. +# will honor the `STRIP' environment variable to overrule this program.
  846. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  847. +if test "$cross_compiling" != no; then
  848. + AC_CHECK_TOOL([STRIP], [strip], :)
  849. +fi
  850. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  851. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  852. +
  853. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  854. +#
  855. +# This file is free software; the Free Software Foundation
  856. +# gives unlimited permission to copy and/or distribute it,
  857. +# with or without modifications, as long as this notice is preserved.
  858. +
  859. +# serial 2
  860. +
  861. +# _AM_SUBST_NOTMAKE(VARIABLE)
  862. +# ---------------------------
  863. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  864. +# This macro is traced by Automake.
  865. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  866. +
  867. +# AM_SUBST_NOTMAKE(VARIABLE)
  868. +# ---------------------------
  869. +# Public sister of _AM_SUBST_NOTMAKE.
  870. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  871. +
  872. +# Check how to create a tarball. -*- Autoconf -*-
  873. +
  874. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  875. +#
  876. +# This file is free software; the Free Software Foundation
  877. +# gives unlimited permission to copy and/or distribute it,
  878. +# with or without modifications, as long as this notice is preserved.
  879. +
  880. +# serial 2
  881. +
  882. +# _AM_PROG_TAR(FORMAT)
  883. +# --------------------
  884. +# Check how to create a tarball in format FORMAT.
  885. +# FORMAT should be one of `v7', `ustar', or `pax'.
  886. +#
  887. +# Substitute a variable $(am__tar) that is a command
  888. +# writing to stdout a FORMAT-tarball containing the directory
  889. +# $tardir.
  890. +# tardir=directory && $(am__tar) > result.tar
  891. +#
  892. +# Substitute a variable $(am__untar) that extract such
  893. +# a tarball read from stdin.
  894. +# $(am__untar) < result.tar
  895. +AC_DEFUN([_AM_PROG_TAR],
  896. +[# Always define AMTAR for backward compatibility.
  897. +AM_MISSING_PROG([AMTAR], [tar])
  898. +m4_if([$1], [v7],
  899. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  900. + [m4_case([$1], [ustar],, [pax],,
  901. + [m4_fatal([Unknown tar format])])
  902. +AC_MSG_CHECKING([how to create a $1 tar archive])
  903. +# Loop over all known methods to create a tar archive until one works.
  904. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  905. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  906. +# Do not fold the above two line into one, because Tru64 sh and
  907. +# Solaris sh will not grok spaces in the rhs of `-'.
  908. +for _am_tool in $_am_tools
  909. +do
  910. + case $_am_tool in
  911. + gnutar)
  912. + for _am_tar in tar gnutar gtar;
  913. + do
  914. + AM_RUN_LOG([$_am_tar --version]) && break
  915. + done
  916. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  917. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  918. + am__untar="$_am_tar -xf -"
  919. + ;;
  920. + plaintar)
  921. + # Must skip GNU tar: if it does not support --format= it doesn't create
  922. + # ustar tarball either.
  923. + (tar --version) >/dev/null 2>&1 && continue
  924. + am__tar='tar chf - "$$tardir"'
  925. + am__tar_='tar chf - "$tardir"'
  926. + am__untar='tar xf -'
  927. + ;;
  928. + pax)
  929. + am__tar='pax -L -x $1 -w "$$tardir"'
  930. + am__tar_='pax -L -x $1 -w "$tardir"'
  931. + am__untar='pax -r'
  932. + ;;
  933. + cpio)
  934. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  935. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  936. + am__untar='cpio -i -H $1 -d'
  937. + ;;
  938. + none)
  939. + am__tar=false
  940. + am__tar_=false
  941. + am__untar=false
  942. + ;;
  943. + esac
  944. +
  945. + # If the value was cached, stop now. We just wanted to have am__tar
  946. + # and am__untar set.
  947. + test -n "${am_cv_prog_tar_$1}" && break
  948. +
  949. + # tar/untar a dummy directory, and stop if the command works
  950. + rm -rf conftest.dir
  951. + mkdir conftest.dir
  952. + echo GrepMe > conftest.dir/file
  953. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  954. + rm -rf conftest.dir
  955. + if test -s conftest.tar; then
  956. + AM_RUN_LOG([$am__untar <conftest.tar])
  957. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  958. + fi
  959. +done
  960. +rm -rf conftest.dir
  961. +
  962. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  963. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  964. +AC_SUBST([am__tar])
  965. +AC_SUBST([am__untar])
  966. +]) # _AM_PROG_TAR
  967. +
  968. +m4_include([m4/internal/libtool.m4])
  969. +m4_include([m4/internal/ltoptions.m4])
  970. +m4_include([m4/internal/ltsugar.m4])
  971. +m4_include([m4/internal/ltversion.m4])
  972. +m4_include([m4/internal/lt~obsolete.m4])
  973. +m4_include([m4/internal/visibility.m4])
  974. +m4_include([acinclude.m4])
  975. diff -Nur tslib-1.0.orig/config.guess tslib-1.0/config.guess
  976. --- tslib-1.0.orig/config.guess 1970-01-01 01:00:00.000000000 +0100
  977. +++ tslib-1.0/config.guess 2010-02-19 00:24:15.172857372 +0100
  978. @@ -0,0 +1,1533 @@
  979. +#! /bin/sh
  980. +# Attempt to guess a canonical system name.
  981. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  982. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  983. +# Free Software Foundation, Inc.
  984. +
  985. +timestamp='2009-06-10'
  986. +
  987. +# This file is free software; you can redistribute it and/or modify it
  988. +# under the terms of the GNU General Public License as published by
  989. +# the Free Software Foundation; either version 2 of the License, or
  990. +# (at your option) any later version.
  991. +#
  992. +# This program is distributed in the hope that it will be useful, but
  993. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  994. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  995. +# General Public License for more details.
  996. +#
  997. +# You should have received a copy of the GNU General Public License
  998. +# along with this program; if not, write to the Free Software
  999. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  1000. +# 02110-1301, USA.
  1001. +#
  1002. +# As a special exception to the GNU General Public License, if you
  1003. +# distribute this file as part of a program that contains a
  1004. +# configuration script generated by Autoconf, you may include it under
  1005. +# the same distribution terms that you use for the rest of that program.
  1006. +
  1007. +
  1008. +# Originally written by Per Bothner <per@bothner.com>.
  1009. +# Please send patches to <config-patches@gnu.org>. Submit a context
  1010. +# diff and a properly formatted ChangeLog entry.
  1011. +#
  1012. +# This script attempts to guess a canonical system name similar to
  1013. +# config.sub. If it succeeds, it prints the system name on stdout, and
  1014. +# exits with 0. Otherwise, it exits with 1.
  1015. +#
  1016. +# The plan is that this can be called by configure scripts if you
  1017. +# don't specify an explicit build system type.
  1018. +
  1019. +me=`echo "$0" | sed -e 's,.*/,,'`
  1020. +
  1021. +usage="\
  1022. +Usage: $0 [OPTION]
  1023. +
  1024. +Output the configuration name of the system \`$me' is run on.
  1025. +
  1026. +Operation modes:
  1027. + -h, --help print this help, then exit
  1028. + -t, --time-stamp print date of last modification, then exit
  1029. + -v, --version print version number, then exit
  1030. +
  1031. +Report bugs and patches to <config-patches@gnu.org>."
  1032. +
  1033. +version="\
  1034. +GNU config.guess ($timestamp)
  1035. +
  1036. +Originally written by Per Bothner.
  1037. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  1038. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1039. +
  1040. +This is free software; see the source for copying conditions. There is NO
  1041. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  1042. +
  1043. +help="
  1044. +Try \`$me --help' for more information."
  1045. +
  1046. +# Parse command line
  1047. +while test $# -gt 0 ; do
  1048. + case $1 in
  1049. + --time-stamp | --time* | -t )
  1050. + echo "$timestamp" ; exit ;;
  1051. + --version | -v )
  1052. + echo "$version" ; exit ;;
  1053. + --help | --h* | -h )
  1054. + echo "$usage"; exit ;;
  1055. + -- ) # Stop option processing
  1056. + shift; break ;;
  1057. + - ) # Use stdin as input.
  1058. + break ;;
  1059. + -* )
  1060. + echo "$me: invalid option $1$help" >&2
  1061. + exit 1 ;;
  1062. + * )
  1063. + break ;;
  1064. + esac
  1065. +done
  1066. +
  1067. +if test $# != 0; then
  1068. + echo "$me: too many arguments$help" >&2
  1069. + exit 1
  1070. +fi
  1071. +
  1072. +trap 'exit 1' 1 2 15
  1073. +
  1074. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  1075. +# compiler to aid in system detection is discouraged as it requires
  1076. +# temporary files to be created and, as you can see below, it is a
  1077. +# headache to deal with in a portable fashion.
  1078. +
  1079. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  1080. +# use `HOST_CC' if defined, but it is deprecated.
  1081. +
  1082. +# Portable tmp directory creation inspired by the Autoconf team.
  1083. +
  1084. +set_cc_for_build='
  1085. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  1086. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  1087. +: ${TMPDIR=/tmp} ;
  1088. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  1089. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  1090. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  1091. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  1092. +dummy=$tmp/dummy ;
  1093. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  1094. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  1095. + ,,) echo "int x;" > $dummy.c ;
  1096. + for c in cc gcc c89 c99 ; do
  1097. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  1098. + CC_FOR_BUILD="$c"; break ;
  1099. + fi ;
  1100. + done ;
  1101. + if test x"$CC_FOR_BUILD" = x ; then
  1102. + CC_FOR_BUILD=no_compiler_found ;
  1103. + fi
  1104. + ;;
  1105. + ,,*) CC_FOR_BUILD=$CC ;;
  1106. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  1107. +esac ; set_cc_for_build= ;'
  1108. +
  1109. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  1110. +# (ghazi@noc.rutgers.edu 1994-08-24)
  1111. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  1112. + PATH=$PATH:/.attbin ; export PATH
  1113. +fi
  1114. +
  1115. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  1116. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  1117. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  1118. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  1119. +
  1120. +# Note: order is significant - the case branches are not exclusive.
  1121. +
  1122. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  1123. + *:NetBSD:*:*)
  1124. + # NetBSD (nbsd) targets should (where applicable) match one or
  1125. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  1126. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  1127. + # switched to ELF, *-*-netbsd* would select the old
  1128. + # object file format. This provides both forward
  1129. + # compatibility and a consistent mechanism for selecting the
  1130. + # object file format.
  1131. + #
  1132. + # Note: NetBSD doesn't particularly care about the vendor
  1133. + # portion of the name. We always set it to "unknown".
  1134. + sysctl="sysctl -n hw.machine_arch"
  1135. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  1136. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  1137. + case "${UNAME_MACHINE_ARCH}" in
  1138. + armeb) machine=armeb-unknown ;;
  1139. + arm*) machine=arm-unknown ;;
  1140. + sh3el) machine=shl-unknown ;;
  1141. + sh3eb) machine=sh-unknown ;;
  1142. + sh5el) machine=sh5le-unknown ;;
  1143. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  1144. + esac
  1145. + # The Operating System including object format, if it has switched
  1146. + # to ELF recently, or will in the future.
  1147. + case "${UNAME_MACHINE_ARCH}" in
  1148. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  1149. + eval $set_cc_for_build
  1150. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  1151. + | grep -q __ELF__
  1152. + then
  1153. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  1154. + # Return netbsd for either. FIX?
  1155. + os=netbsd
  1156. + else
  1157. + os=netbsdelf
  1158. + fi
  1159. + ;;
  1160. + *)
  1161. + os=netbsd
  1162. + ;;
  1163. + esac
  1164. + # The OS release
  1165. + # Debian GNU/NetBSD machines have a different userland, and
  1166. + # thus, need a distinct triplet. However, they do not need
  1167. + # kernel version information, so it can be replaced with a
  1168. + # suitable tag, in the style of linux-gnu.
  1169. + case "${UNAME_VERSION}" in
  1170. + Debian*)
  1171. + release='-gnu'
  1172. + ;;
  1173. + *)
  1174. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1175. + ;;
  1176. + esac
  1177. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  1178. + # contains redundant information, the shorter form:
  1179. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  1180. + echo "${machine}-${os}${release}"
  1181. + exit ;;
  1182. + *:OpenBSD:*:*)
  1183. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  1184. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  1185. + exit ;;
  1186. + *:ekkoBSD:*:*)
  1187. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  1188. + exit ;;
  1189. + *:SolidBSD:*:*)
  1190. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  1191. + exit ;;
  1192. + macppc:MirBSD:*:*)
  1193. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  1194. + exit ;;
  1195. + *:MirBSD:*:*)
  1196. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  1197. + exit ;;
  1198. + alpha:OSF1:*:*)
  1199. + case $UNAME_RELEASE in
  1200. + *4.0)
  1201. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  1202. + ;;
  1203. + *5.*)
  1204. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  1205. + ;;
  1206. + esac
  1207. + # According to Compaq, /usr/sbin/psrinfo has been available on
  1208. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  1209. + # covers most systems running today. This code pipes the CPU
  1210. + # types through head -n 1, so we only detect the type of CPU 0.
  1211. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  1212. + case "$ALPHA_CPU_TYPE" in
  1213. + "EV4 (21064)")
  1214. + UNAME_MACHINE="alpha" ;;
  1215. + "EV4.5 (21064)")
  1216. + UNAME_MACHINE="alpha" ;;
  1217. + "LCA4 (21066/21068)")
  1218. + UNAME_MACHINE="alpha" ;;
  1219. + "EV5 (21164)")
  1220. + UNAME_MACHINE="alphaev5" ;;
  1221. + "EV5.6 (21164A)")
  1222. + UNAME_MACHINE="alphaev56" ;;
  1223. + "EV5.6 (21164PC)")
  1224. + UNAME_MACHINE="alphapca56" ;;
  1225. + "EV5.7 (21164PC)")
  1226. + UNAME_MACHINE="alphapca57" ;;
  1227. + "EV6 (21264)")
  1228. + UNAME_MACHINE="alphaev6" ;;
  1229. + "EV6.7 (21264A)")
  1230. + UNAME_MACHINE="alphaev67" ;;
  1231. + "EV6.8CB (21264C)")
  1232. + UNAME_MACHINE="alphaev68" ;;
  1233. + "EV6.8AL (21264B)")
  1234. + UNAME_MACHINE="alphaev68" ;;
  1235. + "EV6.8CX (21264D)")
  1236. + UNAME_MACHINE="alphaev68" ;;
  1237. + "EV6.9A (21264/EV69A)")
  1238. + UNAME_MACHINE="alphaev69" ;;
  1239. + "EV7 (21364)")
  1240. + UNAME_MACHINE="alphaev7" ;;
  1241. + "EV7.9 (21364A)")
  1242. + UNAME_MACHINE="alphaev79" ;;
  1243. + esac
  1244. + # A Pn.n version is a patched version.
  1245. + # A Vn.n version is a released version.
  1246. + # A Tn.n version is a released field test version.
  1247. + # A Xn.n version is an unreleased experimental baselevel.
  1248. + # 1.2 uses "1.2" for uname -r.
  1249. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1250. + exit ;;
  1251. + Alpha\ *:Windows_NT*:*)
  1252. + # How do we know it's Interix rather than the generic POSIX subsystem?
  1253. + # Should we change UNAME_MACHINE based on the output of uname instead
  1254. + # of the specific Alpha model?
  1255. + echo alpha-pc-interix
  1256. + exit ;;
  1257. + 21064:Windows_NT:50:3)
  1258. + echo alpha-dec-winnt3.5
  1259. + exit ;;
  1260. + Amiga*:UNIX_System_V:4.0:*)
  1261. + echo m68k-unknown-sysv4
  1262. + exit ;;
  1263. + *:[Aa]miga[Oo][Ss]:*:*)
  1264. + echo ${UNAME_MACHINE}-unknown-amigaos
  1265. + exit ;;
  1266. + *:[Mm]orph[Oo][Ss]:*:*)
  1267. + echo ${UNAME_MACHINE}-unknown-morphos
  1268. + exit ;;
  1269. + *:OS/390:*:*)
  1270. + echo i370-ibm-openedition
  1271. + exit ;;
  1272. + *:z/VM:*:*)
  1273. + echo s390-ibm-zvmoe
  1274. + exit ;;
  1275. + *:OS400:*:*)
  1276. + echo powerpc-ibm-os400
  1277. + exit ;;
  1278. + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  1279. + echo arm-acorn-riscix${UNAME_RELEASE}
  1280. + exit ;;
  1281. + arm:riscos:*:*|arm:RISCOS:*:*)
  1282. + echo arm-unknown-riscos
  1283. + exit ;;
  1284. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  1285. + echo hppa1.1-hitachi-hiuxmpp
  1286. + exit ;;
  1287. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  1288. + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  1289. + if test "`(/bin/universe) 2>/dev/null`" = att ; then
  1290. + echo pyramid-pyramid-sysv3
  1291. + else
  1292. + echo pyramid-pyramid-bsd
  1293. + fi
  1294. + exit ;;
  1295. + NILE*:*:*:dcosx)
  1296. + echo pyramid-pyramid-svr4
  1297. + exit ;;
  1298. + DRS?6000:unix:4.0:6*)
  1299. + echo sparc-icl-nx6
  1300. + exit ;;
  1301. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  1302. + case `/usr/bin/uname -p` in
  1303. + sparc) echo sparc-icl-nx7; exit ;;
  1304. + esac ;;
  1305. + s390x:SunOS:*:*)
  1306. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1307. + exit ;;
  1308. + sun4H:SunOS:5.*:*)
  1309. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1310. + exit ;;
  1311. + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  1312. + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1313. + exit ;;
  1314. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  1315. + eval $set_cc_for_build
  1316. + SUN_ARCH="i386"
  1317. + # If there is a compiler, see if it is configured for 64-bit objects.
  1318. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  1319. + # This test works for both compilers.
  1320. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  1321. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  1322. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  1323. + grep IS_64BIT_ARCH >/dev/null
  1324. + then
  1325. + SUN_ARCH="x86_64"
  1326. + fi
  1327. + fi
  1328. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1329. + exit ;;
  1330. + sun4*:SunOS:6*:*)
  1331. + # According to config.sub, this is the proper way to canonicalize
  1332. + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  1333. + # it's likely to be more like Solaris than SunOS4.
  1334. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1335. + exit ;;
  1336. + sun4*:SunOS:*:*)
  1337. + case "`/usr/bin/arch -k`" in
  1338. + Series*|S4*)
  1339. + UNAME_RELEASE=`uname -v`
  1340. + ;;
  1341. + esac
  1342. + # Japanese Language versions have a version number like `4.1.3-JL'.
  1343. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  1344. + exit ;;
  1345. + sun3*:SunOS:*:*)
  1346. + echo m68k-sun-sunos${UNAME_RELEASE}
  1347. + exit ;;
  1348. + sun*:*:4.2BSD:*)
  1349. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  1350. + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  1351. + case "`/bin/arch`" in
  1352. + sun3)
  1353. + echo m68k-sun-sunos${UNAME_RELEASE}
  1354. + ;;
  1355. + sun4)
  1356. + echo sparc-sun-sunos${UNAME_RELEASE}
  1357. + ;;
  1358. + esac
  1359. + exit ;;
  1360. + aushp:SunOS:*:*)
  1361. + echo sparc-auspex-sunos${UNAME_RELEASE}
  1362. + exit ;;
  1363. + # The situation for MiNT is a little confusing. The machine name
  1364. + # can be virtually everything (everything which is not
  1365. + # "atarist" or "atariste" at least should have a processor
  1366. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  1367. + # to the lowercase version "mint" (or "freemint"). Finally
  1368. + # the system name "TOS" denotes a system which is actually not
  1369. + # MiNT. But MiNT is downward compatible to TOS, so this should
  1370. + # be no problem.
  1371. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  1372. + echo m68k-atari-mint${UNAME_RELEASE}
  1373. + exit ;;
  1374. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  1375. + echo m68k-atari-mint${UNAME_RELEASE}
  1376. + exit ;;
  1377. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  1378. + echo m68k-atari-mint${UNAME_RELEASE}
  1379. + exit ;;
  1380. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  1381. + echo m68k-milan-mint${UNAME_RELEASE}
  1382. + exit ;;
  1383. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  1384. + echo m68k-hades-mint${UNAME_RELEASE}
  1385. + exit ;;
  1386. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  1387. + echo m68k-unknown-mint${UNAME_RELEASE}
  1388. + exit ;;
  1389. + m68k:machten:*:*)
  1390. + echo m68k-apple-machten${UNAME_RELEASE}
  1391. + exit ;;
  1392. + powerpc:machten:*:*)
  1393. + echo powerpc-apple-machten${UNAME_RELEASE}
  1394. + exit ;;
  1395. + RISC*:Mach:*:*)
  1396. + echo mips-dec-mach_bsd4.3
  1397. + exit ;;
  1398. + RISC*:ULTRIX:*:*)
  1399. + echo mips-dec-ultrix${UNAME_RELEASE}
  1400. + exit ;;
  1401. + VAX*:ULTRIX*:*:*)
  1402. + echo vax-dec-ultrix${UNAME_RELEASE}
  1403. + exit ;;
  1404. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  1405. + echo clipper-intergraph-clix${UNAME_RELEASE}
  1406. + exit ;;
  1407. + mips:*:*:UMIPS | mips:*:*:RISCos)
  1408. + eval $set_cc_for_build
  1409. + sed 's/^ //' << EOF >$dummy.c
  1410. +#ifdef __cplusplus
  1411. +#include <stdio.h> /* for printf() prototype */
  1412. + int main (int argc, char *argv[]) {
  1413. +#else
  1414. + int main (argc, argv) int argc; char *argv[]; {
  1415. +#endif
  1416. + #if defined (host_mips) && defined (MIPSEB)
  1417. + #if defined (SYSTYPE_SYSV)
  1418. + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  1419. + #endif
  1420. + #if defined (SYSTYPE_SVR4)
  1421. + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  1422. + #endif
  1423. + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  1424. + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  1425. + #endif
  1426. + #endif
  1427. + exit (-1);
  1428. + }
  1429. +EOF
  1430. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  1431. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  1432. + SYSTEM_NAME=`$dummy $dummyarg` &&
  1433. + { echo "$SYSTEM_NAME"; exit; }
  1434. + echo mips-mips-riscos${UNAME_RELEASE}
  1435. + exit ;;
  1436. + Motorola:PowerMAX_OS:*:*)
  1437. + echo powerpc-motorola-powermax
  1438. + exit ;;
  1439. + Motorola:*:4.3:PL8-*)
  1440. + echo powerpc-harris-powermax
  1441. + exit ;;
  1442. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  1443. + echo powerpc-harris-powermax
  1444. + exit ;;
  1445. + Night_Hawk:Power_UNIX:*:*)
  1446. + echo powerpc-harris-powerunix
  1447. + exit ;;
  1448. + m88k:CX/UX:7*:*)
  1449. + echo m88k-harris-cxux7
  1450. + exit ;;
  1451. + m88k:*:4*:R4*)
  1452. + echo m88k-motorola-sysv4
  1453. + exit ;;
  1454. + m88k:*:3*:R3*)
  1455. + echo m88k-motorola-sysv3
  1456. + exit ;;
  1457. + AViiON:dgux:*:*)
  1458. + # DG/UX returns AViiON for all architectures
  1459. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  1460. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  1461. + then
  1462. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  1463. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  1464. + then
  1465. + echo m88k-dg-dgux${UNAME_RELEASE}
  1466. + else
  1467. + echo m88k-dg-dguxbcs${UNAME_RELEASE}
  1468. + fi
  1469. + else
  1470. + echo i586-dg-dgux${UNAME_RELEASE}
  1471. + fi
  1472. + exit ;;
  1473. + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  1474. + echo m88k-dolphin-sysv3
  1475. + exit ;;
  1476. + M88*:*:R3*:*)
  1477. + # Delta 88k system running SVR3
  1478. + echo m88k-motorola-sysv3
  1479. + exit ;;
  1480. + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  1481. + echo m88k-tektronix-sysv3
  1482. + exit ;;
  1483. + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  1484. + echo m68k-tektronix-bsd
  1485. + exit ;;
  1486. + *:IRIX*:*:*)
  1487. + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  1488. + exit ;;
  1489. + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  1490. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  1491. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  1492. + i*86:AIX:*:*)
  1493. + echo i386-ibm-aix
  1494. + exit ;;
  1495. + ia64:AIX:*:*)
  1496. + if [ -x /usr/bin/oslevel ] ; then
  1497. + IBM_REV=`/usr/bin/oslevel`
  1498. + else
  1499. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  1500. + fi
  1501. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  1502. + exit ;;
  1503. + *:AIX:2:3)
  1504. + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  1505. + eval $set_cc_for_build
  1506. + sed 's/^ //' << EOF >$dummy.c
  1507. + #include <sys/systemcfg.h>
  1508. +
  1509. + main()
  1510. + {
  1511. + if (!__power_pc())
  1512. + exit(1);
  1513. + puts("powerpc-ibm-aix3.2.5");
  1514. + exit(0);
  1515. + }
  1516. +EOF
  1517. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  1518. + then
  1519. + echo "$SYSTEM_NAME"
  1520. + else
  1521. + echo rs6000-ibm-aix3.2.5
  1522. + fi
  1523. + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  1524. + echo rs6000-ibm-aix3.2.4
  1525. + else
  1526. + echo rs6000-ibm-aix3.2
  1527. + fi
  1528. + exit ;;
  1529. + *:AIX:*:[456])
  1530. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  1531. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  1532. + IBM_ARCH=rs6000
  1533. + else
  1534. + IBM_ARCH=powerpc
  1535. + fi
  1536. + if [ -x /usr/bin/oslevel ] ; then
  1537. + IBM_REV=`/usr/bin/oslevel`
  1538. + else
  1539. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  1540. + fi
  1541. + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  1542. + exit ;;
  1543. + *:AIX:*:*)
  1544. + echo rs6000-ibm-aix
  1545. + exit ;;
  1546. + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  1547. + echo romp-ibm-bsd4.4
  1548. + exit ;;
  1549. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  1550. + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  1551. + exit ;; # report: romp-ibm BSD 4.3
  1552. + *:BOSX:*:*)
  1553. + echo rs6000-bull-bosx
  1554. + exit ;;
  1555. + DPX/2?00:B.O.S.:*:*)
  1556. + echo m68k-bull-sysv3
  1557. + exit ;;
  1558. + 9000/[34]??:4.3bsd:1.*:*)
  1559. + echo m68k-hp-bsd
  1560. + exit ;;
  1561. + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  1562. + echo m68k-hp-bsd4.4
  1563. + exit ;;
  1564. + 9000/[34678]??:HP-UX:*:*)
  1565. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  1566. + case "${UNAME_MACHINE}" in
  1567. + 9000/31? ) HP_ARCH=m68000 ;;
  1568. + 9000/[34]?? ) HP_ARCH=m68k ;;
  1569. + 9000/[678][0-9][0-9])
  1570. + if [ -x /usr/bin/getconf ]; then
  1571. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  1572. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  1573. + case "${sc_cpu_version}" in
  1574. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  1575. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  1576. + 532) # CPU_PA_RISC2_0
  1577. + case "${sc_kernel_bits}" in
  1578. + 32) HP_ARCH="hppa2.0n" ;;
  1579. + 64) HP_ARCH="hppa2.0w" ;;
  1580. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  1581. + esac ;;
  1582. + esac
  1583. + fi
  1584. + if [ "${HP_ARCH}" = "" ]; then
  1585. + eval $set_cc_for_build
  1586. + sed 's/^ //' << EOF >$dummy.c
  1587. +
  1588. + #define _HPUX_SOURCE
  1589. + #include <stdlib.h>
  1590. + #include <unistd.h>
  1591. +
  1592. + int main ()
  1593. + {
  1594. + #if defined(_SC_KERNEL_BITS)
  1595. + long bits = sysconf(_SC_KERNEL_BITS);
  1596. + #endif
  1597. + long cpu = sysconf (_SC_CPU_VERSION);
  1598. +
  1599. + switch (cpu)
  1600. + {
  1601. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  1602. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  1603. + case CPU_PA_RISC2_0:
  1604. + #if defined(_SC_KERNEL_BITS)
  1605. + switch (bits)
  1606. + {
  1607. + case 64: puts ("hppa2.0w"); break;
  1608. + case 32: puts ("hppa2.0n"); break;
  1609. + default: puts ("hppa2.0"); break;
  1610. + } break;
  1611. + #else /* !defined(_SC_KERNEL_BITS) */
  1612. + puts ("hppa2.0"); break;
  1613. + #endif
  1614. + default: puts ("hppa1.0"); break;
  1615. + }
  1616. + exit (0);
  1617. + }
  1618. +EOF
  1619. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  1620. + test -z "$HP_ARCH" && HP_ARCH=hppa
  1621. + fi ;;
  1622. + esac
  1623. + if [ ${HP_ARCH} = "hppa2.0w" ]
  1624. + then
  1625. + eval $set_cc_for_build
  1626. +
  1627. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  1628. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  1629. + # generating 64-bit code. GNU and HP use different nomenclature:
  1630. + #
  1631. + # $ CC_FOR_BUILD=cc ./config.guess
  1632. + # => hppa2.0w-hp-hpux11.23
  1633. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  1634. + # => hppa64-hp-hpux11.23
  1635. +
  1636. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  1637. + grep -q __LP64__
  1638. + then
  1639. + HP_ARCH="hppa2.0w"
  1640. + else
  1641. + HP_ARCH="hppa64"
  1642. + fi
  1643. + fi
  1644. + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  1645. + exit ;;
  1646. + ia64:HP-UX:*:*)
  1647. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  1648. + echo ia64-hp-hpux${HPUX_REV}
  1649. + exit ;;
  1650. + 3050*:HI-UX:*:*)
  1651. + eval $set_cc_for_build
  1652. + sed 's/^ //' << EOF >$dummy.c
  1653. + #include <unistd.h>
  1654. + int
  1655. + main ()
  1656. + {
  1657. + long cpu = sysconf (_SC_CPU_VERSION);
  1658. + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  1659. + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  1660. + results, however. */
  1661. + if (CPU_IS_PA_RISC (cpu))
  1662. + {
  1663. + switch (cpu)
  1664. + {
  1665. + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  1666. + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  1667. + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  1668. + default: puts ("hppa-hitachi-hiuxwe2"); break;
  1669. + }
  1670. + }
  1671. + else if (CPU_IS_HP_MC68K (cpu))
  1672. + puts ("m68k-hitachi-hiuxwe2");
  1673. + else puts ("unknown-hitachi-hiuxwe2");
  1674. + exit (0);
  1675. + }
  1676. +EOF
  1677. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  1678. + { echo "$SYSTEM_NAME"; exit; }
  1679. + echo unknown-hitachi-hiuxwe2
  1680. + exit ;;
  1681. + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  1682. + echo hppa1.1-hp-bsd
  1683. + exit ;;
  1684. + 9000/8??:4.3bsd:*:*)
  1685. + echo hppa1.0-hp-bsd
  1686. + exit ;;
  1687. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  1688. + echo hppa1.0-hp-mpeix
  1689. + exit ;;
  1690. + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  1691. + echo hppa1.1-hp-osf
  1692. + exit ;;
  1693. + hp8??:OSF1:*:*)
  1694. + echo hppa1.0-hp-osf
  1695. + exit ;;
  1696. + i*86:OSF1:*:*)
  1697. + if [ -x /usr/sbin/sysversion ] ; then
  1698. + echo ${UNAME_MACHINE}-unknown-osf1mk
  1699. + else
  1700. + echo ${UNAME_MACHINE}-unknown-osf1
  1701. + fi
  1702. + exit ;;
  1703. + parisc*:Lites*:*:*)
  1704. + echo hppa1.1-hp-lites
  1705. + exit ;;
  1706. + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  1707. + echo c1-convex-bsd
  1708. + exit ;;
  1709. + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  1710. + if getsysinfo -f scalar_acc
  1711. + then echo c32-convex-bsd
  1712. + else echo c2-convex-bsd
  1713. + fi
  1714. + exit ;;
  1715. + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  1716. + echo c34-convex-bsd
  1717. + exit ;;
  1718. + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  1719. + echo c38-convex-bsd
  1720. + exit ;;
  1721. + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  1722. + echo c4-convex-bsd
  1723. + exit ;;
  1724. + CRAY*Y-MP:*:*:*)
  1725. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1726. + exit ;;
  1727. + CRAY*[A-Z]90:*:*:*)
  1728. + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  1729. + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  1730. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  1731. + -e 's/\.[^.]*$/.X/'
  1732. + exit ;;
  1733. + CRAY*TS:*:*:*)
  1734. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1735. + exit ;;
  1736. + CRAY*T3E:*:*:*)
  1737. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1738. + exit ;;
  1739. + CRAY*SV1:*:*:*)
  1740. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1741. + exit ;;
  1742. + *:UNICOS/mp:*:*)
  1743. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1744. + exit ;;
  1745. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  1746. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1747. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  1748. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  1749. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  1750. + exit ;;
  1751. + 5000:UNIX_System_V:4.*:*)
  1752. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  1753. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  1754. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  1755. + exit ;;
  1756. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  1757. + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  1758. + exit ;;
  1759. + sparc*:BSD/OS:*:*)
  1760. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  1761. + exit ;;
  1762. + *:BSD/OS:*:*)
  1763. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  1764. + exit ;;
  1765. + *:FreeBSD:*:*)
  1766. + case ${UNAME_MACHINE} in
  1767. + pc98)
  1768. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  1769. + amd64)
  1770. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  1771. + *)
  1772. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  1773. + esac
  1774. + exit ;;
  1775. + i*:CYGWIN*:*)
  1776. + echo ${UNAME_MACHINE}-pc-cygwin
  1777. + exit ;;
  1778. + *:MINGW*:*)
  1779. + echo ${UNAME_MACHINE}-pc-mingw32
  1780. + exit ;;
  1781. + i*:windows32*:*)
  1782. + # uname -m includes "-pc" on this system.
  1783. + echo ${UNAME_MACHINE}-mingw32
  1784. + exit ;;
  1785. + i*:PW*:*)
  1786. + echo ${UNAME_MACHINE}-pc-pw32
  1787. + exit ;;
  1788. + *:Interix*:[3456]*)
  1789. + case ${UNAME_MACHINE} in
  1790. + x86)
  1791. + echo i586-pc-interix${UNAME_RELEASE}
  1792. + exit ;;
  1793. + EM64T | authenticamd | genuineintel)
  1794. + echo x86_64-unknown-interix${UNAME_RELEASE}
  1795. + exit ;;
  1796. + IA64)
  1797. + echo ia64-unknown-interix${UNAME_RELEASE}
  1798. + exit ;;
  1799. + esac ;;
  1800. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  1801. + echo i${UNAME_MACHINE}-pc-mks
  1802. + exit ;;
  1803. + 8664:Windows_NT:*)
  1804. + echo x86_64-pc-mks
  1805. + exit ;;
  1806. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  1807. + # How do we know it's Interix rather than the generic POSIX subsystem?
  1808. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  1809. + # UNAME_MACHINE based on the output of uname instead of i386?
  1810. + echo i586-pc-interix
  1811. + exit ;;
  1812. + i*:UWIN*:*)
  1813. + echo ${UNAME_MACHINE}-pc-uwin
  1814. + exit ;;
  1815. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  1816. + echo x86_64-unknown-cygwin
  1817. + exit ;;
  1818. + p*:CYGWIN*:*)
  1819. + echo powerpcle-unknown-cygwin
  1820. + exit ;;
  1821. + prep*:SunOS:5.*:*)
  1822. + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1823. + exit ;;
  1824. + *:GNU:*:*)
  1825. + # the GNU system
  1826. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  1827. + exit ;;
  1828. + *:GNU/*:*:*)
  1829. + # other systems with GNU libc and userland
  1830. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  1831. + exit ;;
  1832. + i*86:Minix:*:*)
  1833. + echo ${UNAME_MACHINE}-pc-minix
  1834. + exit ;;
  1835. + arm*:Linux:*:*)
  1836. + eval $set_cc_for_build
  1837. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  1838. + | grep -q __ARM_EABI__
  1839. + then
  1840. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1841. + else
  1842. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  1843. + fi
  1844. + exit ;;
  1845. + avr32*:Linux:*:*)
  1846. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1847. + exit ;;
  1848. + cris:Linux:*:*)
  1849. + echo cris-axis-linux-gnu
  1850. + exit ;;
  1851. + crisv32:Linux:*:*)
  1852. + echo crisv32-axis-linux-gnu
  1853. + exit ;;
  1854. + frv:Linux:*:*)
  1855. + echo frv-unknown-linux-gnu
  1856. + exit ;;
  1857. + ia64:Linux:*:*)
  1858. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1859. + exit ;;
  1860. + m32r*:Linux:*:*)
  1861. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1862. + exit ;;
  1863. + m68*:Linux:*:*)
  1864. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1865. + exit ;;
  1866. + mips:Linux:*:* | mips64:Linux:*:*)
  1867. + eval $set_cc_for_build
  1868. + sed 's/^ //' << EOF >$dummy.c
  1869. + #undef CPU
  1870. + #undef ${UNAME_MACHINE}
  1871. + #undef ${UNAME_MACHINE}el
  1872. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  1873. + CPU=${UNAME_MACHINE}el
  1874. + #else
  1875. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  1876. + CPU=${UNAME_MACHINE}
  1877. + #else
  1878. + CPU=
  1879. + #endif
  1880. + #endif
  1881. +EOF
  1882. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  1883. + /^CPU/{
  1884. + s: ::g
  1885. + p
  1886. + }'`"
  1887. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  1888. + ;;
  1889. + or32:Linux:*:*)
  1890. + echo or32-unknown-linux-gnu
  1891. + exit ;;
  1892. + ppc:Linux:*:*)
  1893. + echo powerpc-unknown-linux-gnu
  1894. + exit ;;
  1895. + ppc64:Linux:*:*)
  1896. + echo powerpc64-unknown-linux-gnu
  1897. + exit ;;
  1898. + alpha:Linux:*:*)
  1899. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  1900. + EV5) UNAME_MACHINE=alphaev5 ;;
  1901. + EV56) UNAME_MACHINE=alphaev56 ;;
  1902. + PCA56) UNAME_MACHINE=alphapca56 ;;
  1903. + PCA57) UNAME_MACHINE=alphapca56 ;;
  1904. + EV6) UNAME_MACHINE=alphaev6 ;;
  1905. + EV67) UNAME_MACHINE=alphaev67 ;;
  1906. + EV68*) UNAME_MACHINE=alphaev68 ;;
  1907. + esac
  1908. + objdump --private-headers /bin/sh | grep -q ld.so.1
  1909. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  1910. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  1911. + exit ;;
  1912. + padre:Linux:*:*)
  1913. + echo sparc-unknown-linux-gnu
  1914. + exit ;;
  1915. + parisc:Linux:*:* | hppa:Linux:*:*)
  1916. + # Look for CPU level
  1917. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  1918. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  1919. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  1920. + *) echo hppa-unknown-linux-gnu ;;
  1921. + esac
  1922. + exit ;;
  1923. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  1924. + echo hppa64-unknown-linux-gnu
  1925. + exit ;;
  1926. + s390:Linux:*:* | s390x:Linux:*:*)
  1927. + echo ${UNAME_MACHINE}-ibm-linux
  1928. + exit ;;
  1929. + sh64*:Linux:*:*)
  1930. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1931. + exit ;;
  1932. + sh*:Linux:*:*)
  1933. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1934. + exit ;;
  1935. + sparc:Linux:*:* | sparc64:Linux:*:*)
  1936. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1937. + exit ;;
  1938. + vax:Linux:*:*)
  1939. + echo ${UNAME_MACHINE}-dec-linux-gnu
  1940. + exit ;;
  1941. + x86_64:Linux:*:*)
  1942. + echo x86_64-unknown-linux-gnu
  1943. + exit ;;
  1944. + xtensa*:Linux:*:*)
  1945. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1946. + exit ;;
  1947. + i*86:Linux:*:*)
  1948. + # The BFD linker knows what the default object file format is, so
  1949. + # first see if it will tell us. cd to the root directory to prevent
  1950. + # problems with other programs or directories called `ld' in the path.
  1951. + # Set LC_ALL=C to ensure ld outputs messages in English.
  1952. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  1953. + | sed -ne '/supported targets:/!d
  1954. + s/[ ][ ]*/ /g
  1955. + s/.*supported targets: *//
  1956. + s/ .*//
  1957. + p'`
  1958. + case "$ld_supported_targets" in
  1959. + elf32-i386)
  1960. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  1961. + ;;
  1962. + esac
  1963. + # Determine whether the default compiler is a.out or elf
  1964. + eval $set_cc_for_build
  1965. + sed 's/^ //' << EOF >$dummy.c
  1966. + #include <features.h>
  1967. + #ifdef __ELF__
  1968. + # ifdef __GLIBC__
  1969. + # if __GLIBC__ >= 2
  1970. + LIBC=gnu
  1971. + # else
  1972. + LIBC=gnulibc1
  1973. + # endif
  1974. + # else
  1975. + LIBC=gnulibc1
  1976. + # endif
  1977. + #else
  1978. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  1979. + LIBC=gnu
  1980. + #else
  1981. + LIBC=gnuaout
  1982. + #endif
  1983. + #endif
  1984. + #ifdef __dietlibc__
  1985. + LIBC=dietlibc
  1986. + #endif
  1987. +EOF
  1988. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  1989. + /^LIBC/{
  1990. + s: ::g
  1991. + p
  1992. + }'`"
  1993. + test x"${LIBC}" != x && {
  1994. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  1995. + exit
  1996. + }
  1997. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  1998. + ;;
  1999. + i*86:DYNIX/ptx:4*:*)
  2000. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  2001. + # earlier versions are messed up and put the nodename in both
  2002. + # sysname and nodename.
  2003. + echo i386-sequent-sysv4
  2004. + exit ;;
  2005. + i*86:UNIX_SV:4.2MP:2.*)
  2006. + # Unixware is an offshoot of SVR4, but it has its own version
  2007. + # number series starting with 2...
  2008. + # I am not positive that other SVR4 systems won't match this,
  2009. + # I just have to hope. -- rms.
  2010. + # Use sysv4.2uw... so that sysv4* matches it.
  2011. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  2012. + exit ;;
  2013. + i*86:OS/2:*:*)
  2014. + # If we were able to find `uname', then EMX Unix compatibility
  2015. + # is probably installed.
  2016. + echo ${UNAME_MACHINE}-pc-os2-emx
  2017. + exit ;;
  2018. + i*86:XTS-300:*:STOP)
  2019. + echo ${UNAME_MACHINE}-unknown-stop
  2020. + exit ;;
  2021. + i*86:atheos:*:*)
  2022. + echo ${UNAME_MACHINE}-unknown-atheos
  2023. + exit ;;
  2024. + i*86:syllable:*:*)
  2025. + echo ${UNAME_MACHINE}-pc-syllable
  2026. + exit ;;
  2027. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  2028. + echo i386-unknown-lynxos${UNAME_RELEASE}
  2029. + exit ;;
  2030. + i*86:*DOS:*:*)
  2031. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  2032. + exit ;;
  2033. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  2034. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  2035. + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  2036. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  2037. + else
  2038. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  2039. + fi
  2040. + exit ;;
  2041. + i*86:*:5:[678]*)
  2042. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  2043. + case `/bin/uname -X | grep "^Machine"` in
  2044. + *486*) UNAME_MACHINE=i486 ;;
  2045. + *Pentium) UNAME_MACHINE=i586 ;;
  2046. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  2047. + esac
  2048. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  2049. + exit ;;
  2050. + i*86:*:3.2:*)
  2051. + if test -f /usr/options/cb.name; then
  2052. + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  2053. + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  2054. + elif /bin/uname -X 2>/dev/null >/dev/null ; then
  2055. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  2056. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  2057. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  2058. + && UNAME_MACHINE=i586
  2059. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  2060. + && UNAME_MACHINE=i686
  2061. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  2062. + && UNAME_MACHINE=i686
  2063. + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  2064. + else
  2065. + echo ${UNAME_MACHINE}-pc-sysv32
  2066. + fi
  2067. + exit ;;
  2068. + pc:*:*:*)
  2069. + # Left here for compatibility:
  2070. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  2071. + # the processor, so we play safe by assuming i586.
  2072. + # Note: whatever this is, it MUST be the same as what config.sub
  2073. + # prints for the "djgpp" host, or else GDB configury will decide that
  2074. + # this is a cross-build.
  2075. + echo i586-pc-msdosdjgpp
  2076. + exit ;;
  2077. + Intel:Mach:3*:*)
  2078. + echo i386-pc-mach3
  2079. + exit ;;
  2080. + paragon:*:*:*)
  2081. + echo i860-intel-osf1
  2082. + exit ;;
  2083. + i860:*:4.*:*) # i860-SVR4
  2084. + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  2085. + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  2086. + else # Add other i860-SVR4 vendors below as they are discovered.
  2087. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  2088. + fi
  2089. + exit ;;
  2090. + mini*:CTIX:SYS*5:*)
  2091. + # "miniframe"
  2092. + echo m68010-convergent-sysv
  2093. + exit ;;
  2094. + mc68k:UNIX:SYSTEM5:3.51m)
  2095. + echo m68k-convergent-sysv
  2096. + exit ;;
  2097. + M680?0:D-NIX:5.3:*)
  2098. + echo m68k-diab-dnix
  2099. + exit ;;
  2100. + M68*:*:R3V[5678]*:*)
  2101. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  2102. + 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)
  2103. + OS_REL=''
  2104. + test -r /etc/.relid \
  2105. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  2106. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  2107. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  2108. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  2109. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  2110. + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  2111. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  2112. + && { echo i486-ncr-sysv4; exit; } ;;
  2113. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  2114. + OS_REL='.3'
  2115. + test -r /etc/.relid \
  2116. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  2117. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  2118. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  2119. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  2120. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  2121. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  2122. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  2123. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  2124. + echo m68k-unknown-lynxos${UNAME_RELEASE}
  2125. + exit ;;
  2126. + mc68030:UNIX_System_V:4.*:*)
  2127. + echo m68k-atari-sysv4
  2128. + exit ;;
  2129. + TSUNAMI:LynxOS:2.*:*)
  2130. + echo sparc-unknown-lynxos${UNAME_RELEASE}
  2131. + exit ;;
  2132. + rs6000:LynxOS:2.*:*)
  2133. + echo rs6000-unknown-lynxos${UNAME_RELEASE}
  2134. + exit ;;
  2135. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  2136. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  2137. + exit ;;
  2138. + SM[BE]S:UNIX_SV:*:*)
  2139. + echo mips-dde-sysv${UNAME_RELEASE}
  2140. + exit ;;
  2141. + RM*:ReliantUNIX-*:*:*)
  2142. + echo mips-sni-sysv4
  2143. + exit ;;
  2144. + RM*:SINIX-*:*:*)
  2145. + echo mips-sni-sysv4
  2146. + exit ;;
  2147. + *:SINIX-*:*:*)
  2148. + if uname -p 2>/dev/null >/dev/null ; then
  2149. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  2150. + echo ${UNAME_MACHINE}-sni-sysv4
  2151. + else
  2152. + echo ns32k-sni-sysv
  2153. + fi
  2154. + exit ;;
  2155. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2156. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  2157. + echo i586-unisys-sysv4
  2158. + exit ;;
  2159. + *:UNIX_System_V:4*:FTX*)
  2160. + # From Gerald Hewes <hewes@openmarket.com>.
  2161. + # How about differentiating between stratus architectures? -djm
  2162. + echo hppa1.1-stratus-sysv4
  2163. + exit ;;
  2164. + *:*:*:FTX*)
  2165. + # From seanf@swdc.stratus.com.
  2166. + echo i860-stratus-sysv4
  2167. + exit ;;
  2168. + i*86:VOS:*:*)
  2169. + # From Paul.Green@stratus.com.
  2170. + echo ${UNAME_MACHINE}-stratus-vos
  2171. + exit ;;
  2172. + *:VOS:*:*)
  2173. + # From Paul.Green@stratus.com.
  2174. + echo hppa1.1-stratus-vos
  2175. + exit ;;
  2176. + mc68*:A/UX:*:*)
  2177. + echo m68k-apple-aux${UNAME_RELEASE}
  2178. + exit ;;
  2179. + news*:NEWS-OS:6*:*)
  2180. + echo mips-sony-newsos6
  2181. + exit ;;
  2182. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  2183. + if [ -d /usr/nec ]; then
  2184. + echo mips-nec-sysv${UNAME_RELEASE}
  2185. + else
  2186. + echo mips-unknown-sysv${UNAME_RELEASE}
  2187. + fi
  2188. + exit ;;
  2189. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  2190. + echo powerpc-be-beos
  2191. + exit ;;
  2192. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  2193. + echo powerpc-apple-beos
  2194. + exit ;;
  2195. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  2196. + echo i586-pc-beos
  2197. + exit ;;
  2198. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  2199. + echo i586-pc-haiku
  2200. + exit ;;
  2201. + SX-4:SUPER-UX:*:*)
  2202. + echo sx4-nec-superux${UNAME_RELEASE}
  2203. + exit ;;
  2204. + SX-5:SUPER-UX:*:*)
  2205. + echo sx5-nec-superux${UNAME_RELEASE}
  2206. + exit ;;
  2207. + SX-6:SUPER-UX:*:*)
  2208. + echo sx6-nec-superux${UNAME_RELEASE}
  2209. + exit ;;
  2210. + SX-7:SUPER-UX:*:*)
  2211. + echo sx7-nec-superux${UNAME_RELEASE}
  2212. + exit ;;
  2213. + SX-8:SUPER-UX:*:*)
  2214. + echo sx8-nec-superux${UNAME_RELEASE}
  2215. + exit ;;
  2216. + SX-8R:SUPER-UX:*:*)
  2217. + echo sx8r-nec-superux${UNAME_RELEASE}
  2218. + exit ;;
  2219. + Power*:Rhapsody:*:*)
  2220. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  2221. + exit ;;
  2222. + *:Rhapsody:*:*)
  2223. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  2224. + exit ;;
  2225. + *:Darwin:*:*)
  2226. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  2227. + case $UNAME_PROCESSOR in
  2228. + unknown) UNAME_PROCESSOR=powerpc ;;
  2229. + esac
  2230. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  2231. + exit ;;
  2232. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  2233. + UNAME_PROCESSOR=`uname -p`
  2234. + if test "$UNAME_PROCESSOR" = "x86"; then
  2235. + UNAME_PROCESSOR=i386
  2236. + UNAME_MACHINE=pc
  2237. + fi
  2238. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  2239. + exit ;;
  2240. + *:QNX:*:4*)
  2241. + echo i386-pc-qnx
  2242. + exit ;;
  2243. + NSE-?:NONSTOP_KERNEL:*:*)
  2244. + echo nse-tandem-nsk${UNAME_RELEASE}
  2245. + exit ;;
  2246. + NSR-?:NONSTOP_KERNEL:*:*)
  2247. + echo nsr-tandem-nsk${UNAME_RELEASE}
  2248. + exit ;;
  2249. + *:NonStop-UX:*:*)
  2250. + echo mips-compaq-nonstopux
  2251. + exit ;;
  2252. + BS2000:POSIX*:*:*)
  2253. + echo bs2000-siemens-sysv
  2254. + exit ;;
  2255. + DS/*:UNIX_System_V:*:*)
  2256. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  2257. + exit ;;
  2258. + *:Plan9:*:*)
  2259. + # "uname -m" is not consistent, so use $cputype instead. 386
  2260. + # is converted to i386 for consistency with other x86
  2261. + # operating systems.
  2262. + if test "$cputype" = "386"; then
  2263. + UNAME_MACHINE=i386
  2264. + else
  2265. + UNAME_MACHINE="$cputype"
  2266. + fi
  2267. + echo ${UNAME_MACHINE}-unknown-plan9
  2268. + exit ;;
  2269. + *:TOPS-10:*:*)
  2270. + echo pdp10-unknown-tops10
  2271. + exit ;;
  2272. + *:TENEX:*:*)
  2273. + echo pdp10-unknown-tenex
  2274. + exit ;;
  2275. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  2276. + echo pdp10-dec-tops20
  2277. + exit ;;
  2278. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  2279. + echo pdp10-xkl-tops20
  2280. + exit ;;
  2281. + *:TOPS-20:*:*)
  2282. + echo pdp10-unknown-tops20
  2283. + exit ;;
  2284. + *:ITS:*:*)
  2285. + echo pdp10-unknown-its
  2286. + exit ;;
  2287. + SEI:*:*:SEIUX)
  2288. + echo mips-sei-seiux${UNAME_RELEASE}
  2289. + exit ;;
  2290. + *:DragonFly:*:*)
  2291. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  2292. + exit ;;
  2293. + *:*VMS:*:*)
  2294. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  2295. + case "${UNAME_MACHINE}" in
  2296. + A*) echo alpha-dec-vms ; exit ;;
  2297. + I*) echo ia64-dec-vms ; exit ;;
  2298. + V*) echo vax-dec-vms ; exit ;;
  2299. + esac ;;
  2300. + *:XENIX:*:SysV)
  2301. + echo i386-pc-xenix
  2302. + exit ;;
  2303. + i*86:skyos:*:*)
  2304. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  2305. + exit ;;
  2306. + i*86:rdos:*:*)
  2307. + echo ${UNAME_MACHINE}-pc-rdos
  2308. + exit ;;
  2309. + i*86:AROS:*:*)
  2310. + echo ${UNAME_MACHINE}-pc-aros
  2311. + exit ;;
  2312. +esac
  2313. +
  2314. +#echo '(No uname command or uname output not recognized.)' 1>&2
  2315. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  2316. +
  2317. +eval $set_cc_for_build
  2318. +cat >$dummy.c <<EOF
  2319. +#ifdef _SEQUENT_
  2320. +# include <sys/types.h>
  2321. +# include <sys/utsname.h>
  2322. +#endif
  2323. +main ()
  2324. +{
  2325. +#if defined (sony)
  2326. +#if defined (MIPSEB)
  2327. + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  2328. + I don't know.... */
  2329. + printf ("mips-sony-bsd\n"); exit (0);
  2330. +#else
  2331. +#include <sys/param.h>
  2332. + printf ("m68k-sony-newsos%s\n",
  2333. +#ifdef NEWSOS4
  2334. + "4"
  2335. +#else
  2336. + ""
  2337. +#endif
  2338. + ); exit (0);
  2339. +#endif
  2340. +#endif
  2341. +
  2342. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  2343. + printf ("arm-acorn-riscix\n"); exit (0);
  2344. +#endif
  2345. +
  2346. +#if defined (hp300) && !defined (hpux)
  2347. + printf ("m68k-hp-bsd\n"); exit (0);
  2348. +#endif
  2349. +
  2350. +#if defined (NeXT)
  2351. +#if !defined (__ARCHITECTURE__)
  2352. +#define __ARCHITECTURE__ "m68k"
  2353. +#endif
  2354. + int version;
  2355. + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  2356. + if (version < 4)
  2357. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  2358. + else
  2359. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  2360. + exit (0);
  2361. +#endif
  2362. +
  2363. +#if defined (MULTIMAX) || defined (n16)
  2364. +#if defined (UMAXV)
  2365. + printf ("ns32k-encore-sysv\n"); exit (0);
  2366. +#else
  2367. +#if defined (CMU)
  2368. + printf ("ns32k-encore-mach\n"); exit (0);
  2369. +#else
  2370. + printf ("ns32k-encore-bsd\n"); exit (0);
  2371. +#endif
  2372. +#endif
  2373. +#endif
  2374. +
  2375. +#if defined (__386BSD__)
  2376. + printf ("i386-pc-bsd\n"); exit (0);
  2377. +#endif
  2378. +
  2379. +#if defined (sequent)
  2380. +#if defined (i386)
  2381. + printf ("i386-sequent-dynix\n"); exit (0);
  2382. +#endif
  2383. +#if defined (ns32000)
  2384. + printf ("ns32k-sequent-dynix\n"); exit (0);
  2385. +#endif
  2386. +#endif
  2387. +
  2388. +#if defined (_SEQUENT_)
  2389. + struct utsname un;
  2390. +
  2391. + uname(&un);
  2392. +
  2393. + if (strncmp(un.version, "V2", 2) == 0) {
  2394. + printf ("i386-sequent-ptx2\n"); exit (0);
  2395. + }
  2396. + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  2397. + printf ("i386-sequent-ptx1\n"); exit (0);
  2398. + }
  2399. + printf ("i386-sequent-ptx\n"); exit (0);
  2400. +
  2401. +#endif
  2402. +
  2403. +#if defined (vax)
  2404. +# if !defined (ultrix)
  2405. +# include <sys/param.h>
  2406. +# if defined (BSD)
  2407. +# if BSD == 43
  2408. + printf ("vax-dec-bsd4.3\n"); exit (0);
  2409. +# else
  2410. +# if BSD == 199006
  2411. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  2412. +# else
  2413. + printf ("vax-dec-bsd\n"); exit (0);
  2414. +# endif
  2415. +# endif
  2416. +# else
  2417. + printf ("vax-dec-bsd\n"); exit (0);
  2418. +# endif
  2419. +# else
  2420. + printf ("vax-dec-ultrix\n"); exit (0);
  2421. +# endif
  2422. +#endif
  2423. +
  2424. +#if defined (alliant) && defined (i860)
  2425. + printf ("i860-alliant-bsd\n"); exit (0);
  2426. +#endif
  2427. +
  2428. + exit (1);
  2429. +}
  2430. +EOF
  2431. +
  2432. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  2433. + { echo "$SYSTEM_NAME"; exit; }
  2434. +
  2435. +# Apollos put the system type in the environment.
  2436. +
  2437. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  2438. +
  2439. +# Convex versions that predate uname can use getsysinfo(1)
  2440. +
  2441. +if [ -x /usr/convex/getsysinfo ]
  2442. +then
  2443. + case `getsysinfo -f cpu_type` in
  2444. + c1*)
  2445. + echo c1-convex-bsd
  2446. + exit ;;
  2447. + c2*)
  2448. + if getsysinfo -f scalar_acc
  2449. + then echo c32-convex-bsd
  2450. + else echo c2-convex-bsd
  2451. + fi
  2452. + exit ;;
  2453. + c34*)
  2454. + echo c34-convex-bsd
  2455. + exit ;;
  2456. + c38*)
  2457. + echo c38-convex-bsd
  2458. + exit ;;
  2459. + c4*)
  2460. + echo c4-convex-bsd
  2461. + exit ;;
  2462. + esac
  2463. +fi
  2464. +
  2465. +cat >&2 <<EOF
  2466. +$0: unable to guess system type
  2467. +
  2468. +This script, last modified $timestamp, has failed to recognize
  2469. +the operating system you are using. It is advised that you
  2470. +download the most up to date version of the config scripts from
  2471. +
  2472. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  2473. +and
  2474. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  2475. +
  2476. +If the version you run ($0) is already up to date, please
  2477. +send the following data and any information you think might be
  2478. +pertinent to <config-patches@gnu.org> in order to provide the needed
  2479. +information to handle your system.
  2480. +
  2481. +config.guess timestamp = $timestamp
  2482. +
  2483. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2484. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2485. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2486. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2487. +
  2488. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  2489. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  2490. +
  2491. +hostinfo = `(hostinfo) 2>/dev/null`
  2492. +/bin/universe = `(/bin/universe) 2>/dev/null`
  2493. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  2494. +/bin/arch = `(/bin/arch) 2>/dev/null`
  2495. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  2496. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  2497. +
  2498. +UNAME_MACHINE = ${UNAME_MACHINE}
  2499. +UNAME_RELEASE = ${UNAME_RELEASE}
  2500. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  2501. +UNAME_VERSION = ${UNAME_VERSION}
  2502. +EOF
  2503. +
  2504. +exit 1
  2505. +
  2506. +# Local variables:
  2507. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  2508. +# time-stamp-start: "timestamp='"
  2509. +# time-stamp-format: "%:y-%02m-%02d"
  2510. +# time-stamp-end: "'"
  2511. +# End:
  2512. diff -Nur tslib-1.0.orig/config.h.in tslib-1.0/config.h.in
  2513. --- tslib-1.0.orig/config.h.in 1970-01-01 01:00:00.000000000 +0100
  2514. +++ tslib-1.0/config.h.in 2010-02-19 00:24:13.048855268 +0100
  2515. @@ -0,0 +1,193 @@
  2516. +/* config.h.in. Generated from configure.ac by autoheader. */
  2517. +
  2518. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  2519. + systems. This function is required for `alloca.c' support on those systems.
  2520. + */
  2521. +#undef CRAY_STACKSEG_END
  2522. +
  2523. +/* Define to 1 if using `alloca.c'. */
  2524. +#undef C_ALLOCA
  2525. +
  2526. +/* Define to 1 if you have `alloca', as a function or macro. */
  2527. +#undef HAVE_ALLOCA
  2528. +
  2529. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  2530. + */
  2531. +#undef HAVE_ALLOCA_H
  2532. +
  2533. +/* Define to 1 if you have the `bzero' function. */
  2534. +#undef HAVE_BZERO
  2535. +
  2536. +/* Define to 1 if you have the <dlfcn.h> header file. */
  2537. +#undef HAVE_DLFCN_H
  2538. +
  2539. +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  2540. +#undef HAVE_DOPRNT
  2541. +
  2542. +/* Define to 1 if you have the <fcntl.h> header file. */
  2543. +#undef HAVE_FCNTL_H
  2544. +
  2545. +/* Define to 1 if you have the `getpagesize' function. */
  2546. +#undef HAVE_GETPAGESIZE
  2547. +
  2548. +/* Define to 1 if you have the `gettimeofday' function. */
  2549. +#undef HAVE_GETTIMEOFDAY
  2550. +
  2551. +/* Define to 1 if you have the <inttypes.h> header file. */
  2552. +#undef HAVE_INTTYPES_H
  2553. +
  2554. +/* Define to 1 if you have the `dl' library (-ldl). */
  2555. +#undef HAVE_LIBDL
  2556. +
  2557. +/* Define to 1 if you have the <limits.h> header file. */
  2558. +#undef HAVE_LIMITS_H
  2559. +
  2560. +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
  2561. + to 0 otherwise. */
  2562. +#undef HAVE_MALLOC
  2563. +
  2564. +/* Define to 1 if you have the `memmove' function. */
  2565. +#undef HAVE_MEMMOVE
  2566. +
  2567. +/* Define to 1 if you have the <memory.h> header file. */
  2568. +#undef HAVE_MEMORY_H
  2569. +
  2570. +/* Define to 1 if you have the `memset' function. */
  2571. +#undef HAVE_MEMSET
  2572. +
  2573. +/* Define to 1 if you have a working `mmap' system call. */
  2574. +#undef HAVE_MMAP
  2575. +
  2576. +/* Define to 1 if you have the `munmap' function. */
  2577. +#undef HAVE_MUNMAP
  2578. +
  2579. +/* Define to 1 if you have the `select' function. */
  2580. +#undef HAVE_SELECT
  2581. +
  2582. +/* Define to 1 if `stat' has the bug that it succeeds when given the
  2583. + zero-length file name argument. */
  2584. +#undef HAVE_STAT_EMPTY_STRING_BUG
  2585. +
  2586. +/* Define to 1 if you have the <stdint.h> header file. */
  2587. +#undef HAVE_STDINT_H
  2588. +
  2589. +/* Define to 1 if you have the <stdlib.h> header file. */
  2590. +#undef HAVE_STDLIB_H
  2591. +
  2592. +/* Define to 1 if you have the `strcasecmp' function. */
  2593. +#undef HAVE_STRCASECMP
  2594. +
  2595. +/* Define to 1 if you have the `strchr' function. */
  2596. +#undef HAVE_STRCHR
  2597. +
  2598. +/* Define to 1 if you have the `strdup' function. */
  2599. +#undef HAVE_STRDUP
  2600. +
  2601. +/* Define to 1 if you have the <strings.h> header file. */
  2602. +#undef HAVE_STRINGS_H
  2603. +
  2604. +/* Define to 1 if you have the <string.h> header file. */
  2605. +#undef HAVE_STRING_H
  2606. +
  2607. +/* Define to 1 if you have the `strtoul' function. */
  2608. +#undef HAVE_STRTOUL
  2609. +
  2610. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  2611. +#undef HAVE_SYS_IOCTL_H
  2612. +
  2613. +/* Define to 1 if you have the <sys/param.h> header file. */
  2614. +#undef HAVE_SYS_PARAM_H
  2615. +
  2616. +/* Define to 1 if you have the <sys/select.h> header file. */
  2617. +#undef HAVE_SYS_SELECT_H
  2618. +
  2619. +/* Define to 1 if you have the <sys/socket.h> header file. */
  2620. +#undef HAVE_SYS_SOCKET_H
  2621. +
  2622. +/* Define to 1 if you have the <sys/stat.h> header file. */
  2623. +#undef HAVE_SYS_STAT_H
  2624. +
  2625. +/* Define to 1 if you have the <sys/time.h> header file. */
  2626. +#undef HAVE_SYS_TIME_H
  2627. +
  2628. +/* Define to 1 if you have the <sys/types.h> header file. */
  2629. +#undef HAVE_SYS_TYPES_H
  2630. +
  2631. +/* Define to 1 if you have the <unistd.h> header file. */
  2632. +#undef HAVE_UNISTD_H
  2633. +
  2634. +/* Define to 1 if you have the `vprintf' function. */
  2635. +#undef HAVE_VPRINTF
  2636. +
  2637. +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  2638. + slash. */
  2639. +#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
  2640. +
  2641. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  2642. + */
  2643. +#undef LT_OBJDIR
  2644. +
  2645. +/* Name of package */
  2646. +#undef PACKAGE
  2647. +
  2648. +/* Define to the address where bug reports for this package should be sent. */
  2649. +#undef PACKAGE_BUGREPORT
  2650. +
  2651. +/* Define to the full name of this package. */
  2652. +#undef PACKAGE_NAME
  2653. +
  2654. +/* Define to the full name and version of this package. */
  2655. +#undef PACKAGE_STRING
  2656. +
  2657. +/* Define to the one symbol short name of this package. */
  2658. +#undef PACKAGE_TARNAME
  2659. +
  2660. +/* Define to the home page for this package. */
  2661. +#undef PACKAGE_URL
  2662. +
  2663. +/* Define to the version of this package. */
  2664. +#undef PACKAGE_VERSION
  2665. +
  2666. +/* Define as the return type of signal handlers (`int' or `void'). */
  2667. +#undef RETSIGTYPE
  2668. +
  2669. +/* Define to the type of arg 1 for `select'. */
  2670. +#undef SELECT_TYPE_ARG1
  2671. +
  2672. +/* Define to the type of args 2, 3 and 4 for `select'. */
  2673. +#undef SELECT_TYPE_ARG234
  2674. +
  2675. +/* Define to the type of arg 5 for `select'. */
  2676. +#undef SELECT_TYPE_ARG5
  2677. +
  2678. +/* If using the C implementation of alloca, define if you know the
  2679. + direction of stack growth for your system; otherwise it will be
  2680. + automatically deduced at runtime.
  2681. + STACK_DIRECTION > 0 => grows toward higher addresses
  2682. + STACK_DIRECTION < 0 => grows toward lower addresses
  2683. + STACK_DIRECTION = 0 => direction of growth unknown */
  2684. +#undef STACK_DIRECTION
  2685. +
  2686. +/* Define to 1 if you have the ANSI C header files. */
  2687. +#undef STDC_HEADERS
  2688. +
  2689. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  2690. +#undef TIME_WITH_SYS_TIME
  2691. +
  2692. +/* Version number of package */
  2693. +#undef VERSION
  2694. +
  2695. +/* Define to empty if `const' does not conform to ANSI C. */
  2696. +#undef const
  2697. +
  2698. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  2699. + calls it, or to nothing if 'inline' is not supported under any name. */
  2700. +#ifndef __cplusplus
  2701. +#undef inline
  2702. +#endif
  2703. +
  2704. +/* Define to rpl_malloc if the replacement function should be used. */
  2705. +#undef malloc
  2706. +
  2707. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  2708. +#undef size_t
  2709. diff -Nur tslib-1.0.orig/config.sub tslib-1.0/config.sub
  2710. --- tslib-1.0.orig/config.sub 1970-01-01 01:00:00.000000000 +0100
  2711. +++ tslib-1.0/config.sub 2010-02-19 00:24:15.176867100 +0100
  2712. @@ -0,0 +1,1693 @@
  2713. +#! /bin/sh
  2714. +# Configuration validation subroutine script.
  2715. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  2716. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  2717. +# Free Software Foundation, Inc.
  2718. +
  2719. +timestamp='2009-06-11'
  2720. +
  2721. +# This file is (in principle) common to ALL GNU software.
  2722. +# The presence of a machine in this file suggests that SOME GNU software
  2723. +# can handle that machine. It does not imply ALL GNU software can.
  2724. +#
  2725. +# This file is free software; you can redistribute it and/or modify
  2726. +# it under the terms of the GNU General Public License as published by
  2727. +# the Free Software Foundation; either version 2 of the License, or
  2728. +# (at your option) any later version.
  2729. +#
  2730. +# This program is distributed in the hope that it will be useful,
  2731. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  2732. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2733. +# GNU General Public License for more details.
  2734. +#
  2735. +# You should have received a copy of the GNU General Public License
  2736. +# along with this program; if not, write to the Free Software
  2737. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  2738. +# 02110-1301, USA.
  2739. +#
  2740. +# As a special exception to the GNU General Public License, if you
  2741. +# distribute this file as part of a program that contains a
  2742. +# configuration script generated by Autoconf, you may include it under
  2743. +# the same distribution terms that you use for the rest of that program.
  2744. +
  2745. +
  2746. +# Please send patches to <config-patches@gnu.org>. Submit a context
  2747. +# diff and a properly formatted ChangeLog entry.
  2748. +#
  2749. +# Configuration subroutine to validate and canonicalize a configuration type.
  2750. +# Supply the specified configuration type as an argument.
  2751. +# If it is invalid, we print an error message on stderr and exit with code 1.
  2752. +# Otherwise, we print the canonical config type on stdout and succeed.
  2753. +
  2754. +# This file is supposed to be the same for all GNU packages
  2755. +# and recognize all the CPU types, system types and aliases
  2756. +# that are meaningful with *any* GNU software.
  2757. +# Each package is responsible for reporting which valid configurations
  2758. +# it does not support. The user should be able to distinguish
  2759. +# a failure to support a valid configuration from a meaningless
  2760. +# configuration.
  2761. +
  2762. +# The goal of this file is to map all the various variations of a given
  2763. +# machine specification into a single specification in the form:
  2764. +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  2765. +# or in some cases, the newer four-part form:
  2766. +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  2767. +# It is wrong to echo any other type of specification.
  2768. +
  2769. +me=`echo "$0" | sed -e 's,.*/,,'`
  2770. +
  2771. +usage="\
  2772. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  2773. + $0 [OPTION] ALIAS
  2774. +
  2775. +Canonicalize a configuration name.
  2776. +
  2777. +Operation modes:
  2778. + -h, --help print this help, then exit
  2779. + -t, --time-stamp print date of last modification, then exit
  2780. + -v, --version print version number, then exit
  2781. +
  2782. +Report bugs and patches to <config-patches@gnu.org>."
  2783. +
  2784. +version="\
  2785. +GNU config.sub ($timestamp)
  2786. +
  2787. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  2788. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  2789. +
  2790. +This is free software; see the source for copying conditions. There is NO
  2791. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  2792. +
  2793. +help="
  2794. +Try \`$me --help' for more information."
  2795. +
  2796. +# Parse command line
  2797. +while test $# -gt 0 ; do
  2798. + case $1 in
  2799. + --time-stamp | --time* | -t )
  2800. + echo "$timestamp" ; exit ;;
  2801. + --version | -v )
  2802. + echo "$version" ; exit ;;
  2803. + --help | --h* | -h )
  2804. + echo "$usage"; exit ;;
  2805. + -- ) # Stop option processing
  2806. + shift; break ;;
  2807. + - ) # Use stdin as input.
  2808. + break ;;
  2809. + -* )
  2810. + echo "$me: invalid option $1$help"
  2811. + exit 1 ;;
  2812. +
  2813. + *local*)
  2814. + # First pass through any local machine types.
  2815. + echo $1
  2816. + exit ;;
  2817. +
  2818. + * )
  2819. + break ;;
  2820. + esac
  2821. +done
  2822. +
  2823. +case $# in
  2824. + 0) echo "$me: missing argument$help" >&2
  2825. + exit 1;;
  2826. + 1) ;;
  2827. + *) echo "$me: too many arguments$help" >&2
  2828. + exit 1;;
  2829. +esac
  2830. +
  2831. +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  2832. +# Here we must recognize all the valid KERNEL-OS combinations.
  2833. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  2834. +case $maybe_os in
  2835. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  2836. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  2837. + kopensolaris*-gnu* | \
  2838. + storm-chaos* | os2-emx* | rtmk-nova*)
  2839. + os=-$maybe_os
  2840. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  2841. + ;;
  2842. + *)
  2843. + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  2844. + if [ $basic_machine != $1 ]
  2845. + then os=`echo $1 | sed 's/.*-/-/'`
  2846. + else os=; fi
  2847. + ;;
  2848. +esac
  2849. +
  2850. +### Let's recognize common machines as not being operating systems so
  2851. +### that things like config.sub decstation-3100 work. We also
  2852. +### recognize some manufacturers as not being operating systems, so we
  2853. +### can provide default operating systems below.
  2854. +case $os in
  2855. + -sun*os*)
  2856. + # Prevent following clause from handling this invalid input.
  2857. + ;;
  2858. + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  2859. + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  2860. + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  2861. + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  2862. + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  2863. + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  2864. + -apple | -axis | -knuth | -cray)
  2865. + os=
  2866. + basic_machine=$1
  2867. + ;;
  2868. + -bluegene*)
  2869. + os=-cnk
  2870. + ;;
  2871. + -sim | -cisco | -oki | -wec | -winbond)
  2872. + os=
  2873. + basic_machine=$1
  2874. + ;;
  2875. + -scout)
  2876. + ;;
  2877. + -wrs)
  2878. + os=-vxworks
  2879. + basic_machine=$1
  2880. + ;;
  2881. + -chorusos*)
  2882. + os=-chorusos
  2883. + basic_machine=$1
  2884. + ;;
  2885. + -chorusrdb)
  2886. + os=-chorusrdb
  2887. + basic_machine=$1
  2888. + ;;
  2889. + -hiux*)
  2890. + os=-hiuxwe2
  2891. + ;;
  2892. + -sco6)
  2893. + os=-sco5v6
  2894. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2895. + ;;
  2896. + -sco5)
  2897. + os=-sco3.2v5
  2898. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2899. + ;;
  2900. + -sco4)
  2901. + os=-sco3.2v4
  2902. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2903. + ;;
  2904. + -sco3.2.[4-9]*)
  2905. + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  2906. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2907. + ;;
  2908. + -sco3.2v[4-9]*)
  2909. + # Don't forget version if it is 3.2v4 or newer.
  2910. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2911. + ;;
  2912. + -sco5v6*)
  2913. + # Don't forget version if it is 3.2v4 or newer.
  2914. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2915. + ;;
  2916. + -sco*)
  2917. + os=-sco3.2v2
  2918. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2919. + ;;
  2920. + -udk*)
  2921. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2922. + ;;
  2923. + -isc)
  2924. + os=-isc2.2
  2925. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2926. + ;;
  2927. + -clix*)
  2928. + basic_machine=clipper-intergraph
  2929. + ;;
  2930. + -isc*)
  2931. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  2932. + ;;
  2933. + -lynx*)
  2934. + os=-lynxos
  2935. + ;;
  2936. + -ptx*)
  2937. + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  2938. + ;;
  2939. + -windowsnt*)
  2940. + os=`echo $os | sed -e 's/windowsnt/winnt/'`
  2941. + ;;
  2942. + -psos*)
  2943. + os=-psos
  2944. + ;;
  2945. + -mint | -mint[0-9]*)
  2946. + basic_machine=m68k-atari
  2947. + os=-mint
  2948. + ;;
  2949. +esac
  2950. +
  2951. +# Decode aliases for certain CPU-COMPANY combinations.
  2952. +case $basic_machine in
  2953. + # Recognize the basic CPU types without company name.
  2954. + # Some are omitted here because they have special meanings below.
  2955. + 1750a | 580 \
  2956. + | a29k \
  2957. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  2958. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  2959. + | am33_2.0 \
  2960. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  2961. + | bfin \
  2962. + | c4x | clipper \
  2963. + | d10v | d30v | dlx | dsp16xx \
  2964. + | fido | fr30 | frv \
  2965. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  2966. + | i370 | i860 | i960 | ia64 \
  2967. + | ip2k | iq2000 \
  2968. + | lm32 \
  2969. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  2970. + | maxq | mb | microblaze | mcore | mep | metag \
  2971. + | mips | mipsbe | mipseb | mipsel | mipsle \
  2972. + | mips16 \
  2973. + | mips64 | mips64el \
  2974. + | mips64octeon | mips64octeonel \
  2975. + | mips64orion | mips64orionel \
  2976. + | mips64r5900 | mips64r5900el \
  2977. + | mips64vr | mips64vrel \
  2978. + | mips64vr4100 | mips64vr4100el \
  2979. + | mips64vr4300 | mips64vr4300el \
  2980. + | mips64vr5000 | mips64vr5000el \
  2981. + | mips64vr5900 | mips64vr5900el \
  2982. + | mipsisa32 | mipsisa32el \
  2983. + | mipsisa32r2 | mipsisa32r2el \
  2984. + | mipsisa64 | mipsisa64el \
  2985. + | mipsisa64r2 | mipsisa64r2el \
  2986. + | mipsisa64sb1 | mipsisa64sb1el \
  2987. + | mipsisa64sr71k | mipsisa64sr71kel \
  2988. + | mipstx39 | mipstx39el \
  2989. + | mn10200 | mn10300 \
  2990. + | moxie \
  2991. + | mt \
  2992. + | msp430 \
  2993. + | nios | nios2 \
  2994. + | ns16k | ns32k \
  2995. + | or32 \
  2996. + | pdp10 | pdp11 | pj | pjl \
  2997. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  2998. + | pyramid \
  2999. + | score \
  3000. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  3001. + | sh64 | sh64le \
  3002. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  3003. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  3004. + | spu | strongarm \
  3005. + | tahoe | thumb | tic4x | tic80 | tron \
  3006. + | v850 | v850e \
  3007. + | we32k \
  3008. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  3009. + | z8k | z80)
  3010. + basic_machine=$basic_machine-unknown
  3011. + ;;
  3012. + m6811 | m68hc11 | m6812 | m68hc12)
  3013. + # Motorola 68HC11/12.
  3014. + basic_machine=$basic_machine-unknown
  3015. + os=-none
  3016. + ;;
  3017. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  3018. + ;;
  3019. + ms1)
  3020. + basic_machine=mt-unknown
  3021. + ;;
  3022. +
  3023. + # We use `pc' rather than `unknown'
  3024. + # because (1) that's what they normally are, and
  3025. + # (2) the word "unknown" tends to confuse beginning users.
  3026. + i*86 | x86_64)
  3027. + basic_machine=$basic_machine-pc
  3028. + ;;
  3029. + # Object if more than one company name word.
  3030. + *-*-*)
  3031. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  3032. + exit 1
  3033. + ;;
  3034. + # Recognize the basic CPU types with company name.
  3035. + 580-* \
  3036. + | a29k-* \
  3037. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  3038. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  3039. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  3040. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  3041. + | avr-* | avr32-* \
  3042. + | bfin-* | bs2000-* \
  3043. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  3044. + | clipper-* | craynv-* | cydra-* \
  3045. + | d10v-* | d30v-* | dlx-* \
  3046. + | elxsi-* \
  3047. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  3048. + | h8300-* | h8500-* \
  3049. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  3050. + | i*86-* | i860-* | i960-* | ia64-* \
  3051. + | ip2k-* | iq2000-* \
  3052. + | lm32-* \
  3053. + | m32c-* | m32r-* | m32rle-* \
  3054. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  3055. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  3056. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  3057. + | mips16-* \
  3058. + | mips64-* | mips64el-* \
  3059. + | mips64octeon-* | mips64octeonel-* \
  3060. + | mips64orion-* | mips64orionel-* \
  3061. + | mips64r5900-* | mips64r5900el-* \
  3062. + | mips64vr-* | mips64vrel-* \
  3063. + | mips64vr4100-* | mips64vr4100el-* \
  3064. + | mips64vr4300-* | mips64vr4300el-* \
  3065. + | mips64vr5000-* | mips64vr5000el-* \
  3066. + | mips64vr5900-* | mips64vr5900el-* \
  3067. + | mipsisa32-* | mipsisa32el-* \
  3068. + | mipsisa32r2-* | mipsisa32r2el-* \
  3069. + | mipsisa64-* | mipsisa64el-* \
  3070. + | mipsisa64r2-* | mipsisa64r2el-* \
  3071. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  3072. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  3073. + | mipstx39-* | mipstx39el-* \
  3074. + | mmix-* \
  3075. + | mt-* \
  3076. + | msp430-* \
  3077. + | nios-* | nios2-* \
  3078. + | none-* | np1-* | ns16k-* | ns32k-* \
  3079. + | orion-* \
  3080. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  3081. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  3082. + | pyramid-* \
  3083. + | romp-* | rs6000-* \
  3084. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  3085. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  3086. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  3087. + | sparclite-* \
  3088. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  3089. + | tahoe-* | thumb-* \
  3090. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  3091. + | tron-* \
  3092. + | v850-* | v850e-* | vax-* \
  3093. + | we32k-* \
  3094. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  3095. + | xstormy16-* | xtensa*-* \
  3096. + | ymp-* \
  3097. + | z8k-* | z80-*)
  3098. + ;;
  3099. + # Recognize the basic CPU types without company name, with glob match.
  3100. + xtensa*)
  3101. + basic_machine=$basic_machine-unknown
  3102. + ;;
  3103. + # Recognize the various machine names and aliases which stand
  3104. + # for a CPU type and a company and sometimes even an OS.
  3105. + 386bsd)
  3106. + basic_machine=i386-unknown
  3107. + os=-bsd
  3108. + ;;
  3109. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  3110. + basic_machine=m68000-att
  3111. + ;;
  3112. + 3b*)
  3113. + basic_machine=we32k-att
  3114. + ;;
  3115. + a29khif)
  3116. + basic_machine=a29k-amd
  3117. + os=-udi
  3118. + ;;
  3119. + abacus)
  3120. + basic_machine=abacus-unknown
  3121. + ;;
  3122. + adobe68k)
  3123. + basic_machine=m68010-adobe
  3124. + os=-scout
  3125. + ;;
  3126. + alliant | fx80)
  3127. + basic_machine=fx80-alliant
  3128. + ;;
  3129. + altos | altos3068)
  3130. + basic_machine=m68k-altos
  3131. + ;;
  3132. + am29k)
  3133. + basic_machine=a29k-none
  3134. + os=-bsd
  3135. + ;;
  3136. + amd64)
  3137. + basic_machine=x86_64-pc
  3138. + ;;
  3139. + amd64-*)
  3140. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  3141. + ;;
  3142. + amdahl)
  3143. + basic_machine=580-amdahl
  3144. + os=-sysv
  3145. + ;;
  3146. + amiga | amiga-*)
  3147. + basic_machine=m68k-unknown
  3148. + ;;
  3149. + amigaos | amigados)
  3150. + basic_machine=m68k-unknown
  3151. + os=-amigaos
  3152. + ;;
  3153. + amigaunix | amix)
  3154. + basic_machine=m68k-unknown
  3155. + os=-sysv4
  3156. + ;;
  3157. + apollo68)
  3158. + basic_machine=m68k-apollo
  3159. + os=-sysv
  3160. + ;;
  3161. + apollo68bsd)
  3162. + basic_machine=m68k-apollo
  3163. + os=-bsd
  3164. + ;;
  3165. + aros)
  3166. + basic_machine=i386-pc
  3167. + os=-aros
  3168. + ;;
  3169. + aux)
  3170. + basic_machine=m68k-apple
  3171. + os=-aux
  3172. + ;;
  3173. + balance)
  3174. + basic_machine=ns32k-sequent
  3175. + os=-dynix
  3176. + ;;
  3177. + blackfin)
  3178. + basic_machine=bfin-unknown
  3179. + os=-linux
  3180. + ;;
  3181. + blackfin-*)
  3182. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  3183. + os=-linux
  3184. + ;;
  3185. + bluegene*)
  3186. + basic_machine=powerpc-ibm
  3187. + os=-cnk
  3188. + ;;
  3189. + c90)
  3190. + basic_machine=c90-cray
  3191. + os=-unicos
  3192. + ;;
  3193. + cegcc)
  3194. + basic_machine=arm-unknown
  3195. + os=-cegcc
  3196. + ;;
  3197. + convex-c1)
  3198. + basic_machine=c1-convex
  3199. + os=-bsd
  3200. + ;;
  3201. + convex-c2)
  3202. + basic_machine=c2-convex
  3203. + os=-bsd
  3204. + ;;
  3205. + convex-c32)
  3206. + basic_machine=c32-convex
  3207. + os=-bsd
  3208. + ;;
  3209. + convex-c34)
  3210. + basic_machine=c34-convex
  3211. + os=-bsd
  3212. + ;;
  3213. + convex-c38)
  3214. + basic_machine=c38-convex
  3215. + os=-bsd
  3216. + ;;
  3217. + cray | j90)
  3218. + basic_machine=j90-cray
  3219. + os=-unicos
  3220. + ;;
  3221. + craynv)
  3222. + basic_machine=craynv-cray
  3223. + os=-unicosmp
  3224. + ;;
  3225. + cr16)
  3226. + basic_machine=cr16-unknown
  3227. + os=-elf
  3228. + ;;
  3229. + crds | unos)
  3230. + basic_machine=m68k-crds
  3231. + ;;
  3232. + crisv32 | crisv32-* | etraxfs*)
  3233. + basic_machine=crisv32-axis
  3234. + ;;
  3235. + cris | cris-* | etrax*)
  3236. + basic_machine=cris-axis
  3237. + ;;
  3238. + crx)
  3239. + basic_machine=crx-unknown
  3240. + os=-elf
  3241. + ;;
  3242. + da30 | da30-*)
  3243. + basic_machine=m68k-da30
  3244. + ;;
  3245. + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  3246. + basic_machine=mips-dec
  3247. + ;;
  3248. + decsystem10* | dec10*)
  3249. + basic_machine=pdp10-dec
  3250. + os=-tops10
  3251. + ;;
  3252. + decsystem20* | dec20*)
  3253. + basic_machine=pdp10-dec
  3254. + os=-tops20
  3255. + ;;
  3256. + delta | 3300 | motorola-3300 | motorola-delta \
  3257. + | 3300-motorola | delta-motorola)
  3258. + basic_machine=m68k-motorola
  3259. + ;;
  3260. + delta88)
  3261. + basic_machine=m88k-motorola
  3262. + os=-sysv3
  3263. + ;;
  3264. + dicos)
  3265. + basic_machine=i686-pc
  3266. + os=-dicos
  3267. + ;;
  3268. + djgpp)
  3269. + basic_machine=i586-pc
  3270. + os=-msdosdjgpp
  3271. + ;;
  3272. + dpx20 | dpx20-*)
  3273. + basic_machine=rs6000-bull
  3274. + os=-bosx
  3275. + ;;
  3276. + dpx2* | dpx2*-bull)
  3277. + basic_machine=m68k-bull
  3278. + os=-sysv3
  3279. + ;;
  3280. + ebmon29k)
  3281. + basic_machine=a29k-amd
  3282. + os=-ebmon
  3283. + ;;
  3284. + elxsi)
  3285. + basic_machine=elxsi-elxsi
  3286. + os=-bsd
  3287. + ;;
  3288. + encore | umax | mmax)
  3289. + basic_machine=ns32k-encore
  3290. + ;;
  3291. + es1800 | OSE68k | ose68k | ose | OSE)
  3292. + basic_machine=m68k-ericsson
  3293. + os=-ose
  3294. + ;;
  3295. + fx2800)
  3296. + basic_machine=i860-alliant
  3297. + ;;
  3298. + genix)
  3299. + basic_machine=ns32k-ns
  3300. + ;;
  3301. + gmicro)
  3302. + basic_machine=tron-gmicro
  3303. + os=-sysv
  3304. + ;;
  3305. + go32)
  3306. + basic_machine=i386-pc
  3307. + os=-go32
  3308. + ;;
  3309. + h3050r* | hiux*)
  3310. + basic_machine=hppa1.1-hitachi
  3311. + os=-hiuxwe2
  3312. + ;;
  3313. + h8300hms)
  3314. + basic_machine=h8300-hitachi
  3315. + os=-hms
  3316. + ;;
  3317. + h8300xray)
  3318. + basic_machine=h8300-hitachi
  3319. + os=-xray
  3320. + ;;
  3321. + h8500hms)
  3322. + basic_machine=h8500-hitachi
  3323. + os=-hms
  3324. + ;;
  3325. + harris)
  3326. + basic_machine=m88k-harris
  3327. + os=-sysv3
  3328. + ;;
  3329. + hp300-*)
  3330. + basic_machine=m68k-hp
  3331. + ;;
  3332. + hp300bsd)
  3333. + basic_machine=m68k-hp
  3334. + os=-bsd
  3335. + ;;
  3336. + hp300hpux)
  3337. + basic_machine=m68k-hp
  3338. + os=-hpux
  3339. + ;;
  3340. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  3341. + basic_machine=hppa1.0-hp
  3342. + ;;
  3343. + hp9k2[0-9][0-9] | hp9k31[0-9])
  3344. + basic_machine=m68000-hp
  3345. + ;;
  3346. + hp9k3[2-9][0-9])
  3347. + basic_machine=m68k-hp
  3348. + ;;
  3349. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  3350. + basic_machine=hppa1.0-hp
  3351. + ;;
  3352. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  3353. + basic_machine=hppa1.1-hp
  3354. + ;;
  3355. + hp9k78[0-9] | hp78[0-9])
  3356. + # FIXME: really hppa2.0-hp
  3357. + basic_machine=hppa1.1-hp
  3358. + ;;
  3359. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  3360. + # FIXME: really hppa2.0-hp
  3361. + basic_machine=hppa1.1-hp
  3362. + ;;
  3363. + hp9k8[0-9][13679] | hp8[0-9][13679])
  3364. + basic_machine=hppa1.1-hp
  3365. + ;;
  3366. + hp9k8[0-9][0-9] | hp8[0-9][0-9])
  3367. + basic_machine=hppa1.0-hp
  3368. + ;;
  3369. + hppa-next)
  3370. + os=-nextstep3
  3371. + ;;
  3372. + hppaosf)
  3373. + basic_machine=hppa1.1-hp
  3374. + os=-osf
  3375. + ;;
  3376. + hppro)
  3377. + basic_machine=hppa1.1-hp
  3378. + os=-proelf
  3379. + ;;
  3380. + i370-ibm* | ibm*)
  3381. + basic_machine=i370-ibm
  3382. + ;;
  3383. +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  3384. + i*86v32)
  3385. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  3386. + os=-sysv32
  3387. + ;;
  3388. + i*86v4*)
  3389. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  3390. + os=-sysv4
  3391. + ;;
  3392. + i*86v)
  3393. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  3394. + os=-sysv
  3395. + ;;
  3396. + i*86sol2)
  3397. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  3398. + os=-solaris2
  3399. + ;;
  3400. + i386mach)
  3401. + basic_machine=i386-mach
  3402. + os=-mach
  3403. + ;;
  3404. + i386-vsta | vsta)
  3405. + basic_machine=i386-unknown
  3406. + os=-vsta
  3407. + ;;
  3408. + iris | iris4d)
  3409. + basic_machine=mips-sgi
  3410. + case $os in
  3411. + -irix*)
  3412. + ;;
  3413. + *)
  3414. + os=-irix4
  3415. + ;;
  3416. + esac
  3417. + ;;
  3418. + isi68 | isi)
  3419. + basic_machine=m68k-isi
  3420. + os=-sysv
  3421. + ;;
  3422. + m68knommu)
  3423. + basic_machine=m68k-unknown
  3424. + os=-linux
  3425. + ;;
  3426. + m68knommu-*)
  3427. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  3428. + os=-linux
  3429. + ;;
  3430. + m88k-omron*)
  3431. + basic_machine=m88k-omron
  3432. + ;;
  3433. + magnum | m3230)
  3434. + basic_machine=mips-mips
  3435. + os=-sysv
  3436. + ;;
  3437. + merlin)
  3438. + basic_machine=ns32k-utek
  3439. + os=-sysv
  3440. + ;;
  3441. + mingw32)
  3442. + basic_machine=i386-pc
  3443. + os=-mingw32
  3444. + ;;
  3445. + mingw32ce)
  3446. + basic_machine=arm-unknown
  3447. + os=-mingw32ce
  3448. + ;;
  3449. + miniframe)
  3450. + basic_machine=m68000-convergent
  3451. + ;;
  3452. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  3453. + basic_machine=m68k-atari
  3454. + os=-mint
  3455. + ;;
  3456. + mips3*-*)
  3457. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  3458. + ;;
  3459. + mips3*)
  3460. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  3461. + ;;
  3462. + monitor)
  3463. + basic_machine=m68k-rom68k
  3464. + os=-coff
  3465. + ;;
  3466. + morphos)
  3467. + basic_machine=powerpc-unknown
  3468. + os=-morphos
  3469. + ;;
  3470. + msdos)
  3471. + basic_machine=i386-pc
  3472. + os=-msdos
  3473. + ;;
  3474. + ms1-*)
  3475. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  3476. + ;;
  3477. + mvs)
  3478. + basic_machine=i370-ibm
  3479. + os=-mvs
  3480. + ;;
  3481. + ncr3000)
  3482. + basic_machine=i486-ncr
  3483. + os=-sysv4
  3484. + ;;
  3485. + netbsd386)
  3486. + basic_machine=i386-unknown
  3487. + os=-netbsd
  3488. + ;;
  3489. + netwinder)
  3490. + basic_machine=armv4l-rebel
  3491. + os=-linux
  3492. + ;;
  3493. + news | news700 | news800 | news900)
  3494. + basic_machine=m68k-sony
  3495. + os=-newsos
  3496. + ;;
  3497. + news1000)
  3498. + basic_machine=m68030-sony
  3499. + os=-newsos
  3500. + ;;
  3501. + news-3600 | risc-news)
  3502. + basic_machine=mips-sony
  3503. + os=-newsos
  3504. + ;;
  3505. + necv70)
  3506. + basic_machine=v70-nec
  3507. + os=-sysv
  3508. + ;;
  3509. + next | m*-next )
  3510. + basic_machine=m68k-next
  3511. + case $os in
  3512. + -nextstep* )
  3513. + ;;
  3514. + -ns2*)
  3515. + os=-nextstep2
  3516. + ;;
  3517. + *)
  3518. + os=-nextstep3
  3519. + ;;
  3520. + esac
  3521. + ;;
  3522. + nh3000)
  3523. + basic_machine=m68k-harris
  3524. + os=-cxux
  3525. + ;;
  3526. + nh[45]000)
  3527. + basic_machine=m88k-harris
  3528. + os=-cxux
  3529. + ;;
  3530. + nindy960)
  3531. + basic_machine=i960-intel
  3532. + os=-nindy
  3533. + ;;
  3534. + mon960)
  3535. + basic_machine=i960-intel
  3536. + os=-mon960
  3537. + ;;
  3538. + nonstopux)
  3539. + basic_machine=mips-compaq
  3540. + os=-nonstopux
  3541. + ;;
  3542. + np1)
  3543. + basic_machine=np1-gould
  3544. + ;;
  3545. + nsr-tandem)
  3546. + basic_machine=nsr-tandem
  3547. + ;;
  3548. + op50n-* | op60c-*)
  3549. + basic_machine=hppa1.1-oki
  3550. + os=-proelf
  3551. + ;;
  3552. + openrisc | openrisc-*)
  3553. + basic_machine=or32-unknown
  3554. + ;;
  3555. + os400)
  3556. + basic_machine=powerpc-ibm
  3557. + os=-os400
  3558. + ;;
  3559. + OSE68000 | ose68000)
  3560. + basic_machine=m68000-ericsson
  3561. + os=-ose
  3562. + ;;
  3563. + os68k)
  3564. + basic_machine=m68k-none
  3565. + os=-os68k
  3566. + ;;
  3567. + pa-hitachi)
  3568. + basic_machine=hppa1.1-hitachi
  3569. + os=-hiuxwe2
  3570. + ;;
  3571. + paragon)
  3572. + basic_machine=i860-intel
  3573. + os=-osf
  3574. + ;;
  3575. + parisc)
  3576. + basic_machine=hppa-unknown
  3577. + os=-linux
  3578. + ;;
  3579. + parisc-*)
  3580. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  3581. + os=-linux
  3582. + ;;
  3583. + pbd)
  3584. + basic_machine=sparc-tti
  3585. + ;;
  3586. + pbb)
  3587. + basic_machine=m68k-tti
  3588. + ;;
  3589. + pc532 | pc532-*)
  3590. + basic_machine=ns32k-pc532
  3591. + ;;
  3592. + pc98)
  3593. + basic_machine=i386-pc
  3594. + ;;
  3595. + pc98-*)
  3596. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  3597. + ;;
  3598. + pentium | p5 | k5 | k6 | nexgen | viac3)
  3599. + basic_machine=i586-pc
  3600. + ;;
  3601. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  3602. + basic_machine=i686-pc
  3603. + ;;
  3604. + pentiumii | pentium2 | pentiumiii | pentium3)
  3605. + basic_machine=i686-pc
  3606. + ;;
  3607. + pentium4)
  3608. + basic_machine=i786-pc
  3609. + ;;
  3610. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  3611. + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  3612. + ;;
  3613. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  3614. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  3615. + ;;
  3616. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  3617. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  3618. + ;;
  3619. + pentium4-*)
  3620. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  3621. + ;;
  3622. + pn)
  3623. + basic_machine=pn-gould
  3624. + ;;
  3625. + power) basic_machine=power-ibm
  3626. + ;;
  3627. + ppc) basic_machine=powerpc-unknown
  3628. + ;;
  3629. + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  3630. + ;;
  3631. + ppcle | powerpclittle | ppc-le | powerpc-little)
  3632. + basic_machine=powerpcle-unknown
  3633. + ;;
  3634. + ppcle-* | powerpclittle-*)
  3635. + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  3636. + ;;
  3637. + ppc64) basic_machine=powerpc64-unknown
  3638. + ;;
  3639. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  3640. + ;;
  3641. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  3642. + basic_machine=powerpc64le-unknown
  3643. + ;;
  3644. + ppc64le-* | powerpc64little-*)
  3645. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  3646. + ;;
  3647. + ps2)
  3648. + basic_machine=i386-ibm
  3649. + ;;
  3650. + pw32)
  3651. + basic_machine=i586-unknown
  3652. + os=-pw32
  3653. + ;;
  3654. + rdos)
  3655. + basic_machine=i386-pc
  3656. + os=-rdos
  3657. + ;;
  3658. + rom68k)
  3659. + basic_machine=m68k-rom68k
  3660. + os=-coff
  3661. + ;;
  3662. + rm[46]00)
  3663. + basic_machine=mips-siemens
  3664. + ;;
  3665. + rtpc | rtpc-*)
  3666. + basic_machine=romp-ibm
  3667. + ;;
  3668. + s390 | s390-*)
  3669. + basic_machine=s390-ibm
  3670. + ;;
  3671. + s390x | s390x-*)
  3672. + basic_machine=s390x-ibm
  3673. + ;;
  3674. + sa29200)
  3675. + basic_machine=a29k-amd
  3676. + os=-udi
  3677. + ;;
  3678. + sb1)
  3679. + basic_machine=mipsisa64sb1-unknown
  3680. + ;;
  3681. + sb1el)
  3682. + basic_machine=mipsisa64sb1el-unknown
  3683. + ;;
  3684. + sde)
  3685. + basic_machine=mipsisa32-sde
  3686. + os=-elf
  3687. + ;;
  3688. + sei)
  3689. + basic_machine=mips-sei
  3690. + os=-seiux
  3691. + ;;
  3692. + sequent)
  3693. + basic_machine=i386-sequent
  3694. + ;;
  3695. + sh)
  3696. + basic_machine=sh-hitachi
  3697. + os=-hms
  3698. + ;;
  3699. + sh5el)
  3700. + basic_machine=sh5le-unknown
  3701. + ;;
  3702. + sh64)
  3703. + basic_machine=sh64-unknown
  3704. + ;;
  3705. + sparclite-wrs | simso-wrs)
  3706. + basic_machine=sparclite-wrs
  3707. + os=-vxworks
  3708. + ;;
  3709. + sps7)
  3710. + basic_machine=m68k-bull
  3711. + os=-sysv2
  3712. + ;;
  3713. + spur)
  3714. + basic_machine=spur-unknown
  3715. + ;;
  3716. + st2000)
  3717. + basic_machine=m68k-tandem
  3718. + ;;
  3719. + stratus)
  3720. + basic_machine=i860-stratus
  3721. + os=-sysv4
  3722. + ;;
  3723. + sun2)
  3724. + basic_machine=m68000-sun
  3725. + ;;
  3726. + sun2os3)
  3727. + basic_machine=m68000-sun
  3728. + os=-sunos3
  3729. + ;;
  3730. + sun2os4)
  3731. + basic_machine=m68000-sun
  3732. + os=-sunos4
  3733. + ;;
  3734. + sun3os3)
  3735. + basic_machine=m68k-sun
  3736. + os=-sunos3
  3737. + ;;
  3738. + sun3os4)
  3739. + basic_machine=m68k-sun
  3740. + os=-sunos4
  3741. + ;;
  3742. + sun4os3)
  3743. + basic_machine=sparc-sun
  3744. + os=-sunos3
  3745. + ;;
  3746. + sun4os4)
  3747. + basic_machine=sparc-sun
  3748. + os=-sunos4
  3749. + ;;
  3750. + sun4sol2)
  3751. + basic_machine=sparc-sun
  3752. + os=-solaris2
  3753. + ;;
  3754. + sun3 | sun3-*)
  3755. + basic_machine=m68k-sun
  3756. + ;;
  3757. + sun4)
  3758. + basic_machine=sparc-sun
  3759. + ;;
  3760. + sun386 | sun386i | roadrunner)
  3761. + basic_machine=i386-sun
  3762. + ;;
  3763. + sv1)
  3764. + basic_machine=sv1-cray
  3765. + os=-unicos
  3766. + ;;
  3767. + symmetry)
  3768. + basic_machine=i386-sequent
  3769. + os=-dynix
  3770. + ;;
  3771. + t3e)
  3772. + basic_machine=alphaev5-cray
  3773. + os=-unicos
  3774. + ;;
  3775. + t90)
  3776. + basic_machine=t90-cray
  3777. + os=-unicos
  3778. + ;;
  3779. + tic54x | c54x*)
  3780. + basic_machine=tic54x-unknown
  3781. + os=-coff
  3782. + ;;
  3783. + tic55x | c55x*)
  3784. + basic_machine=tic55x-unknown
  3785. + os=-coff
  3786. + ;;
  3787. + tic6x | c6x*)
  3788. + basic_machine=tic6x-unknown
  3789. + os=-coff
  3790. + ;;
  3791. + tile*)
  3792. + basic_machine=tile-unknown
  3793. + os=-linux-gnu
  3794. + ;;
  3795. + tx39)
  3796. + basic_machine=mipstx39-unknown
  3797. + ;;
  3798. + tx39el)
  3799. + basic_machine=mipstx39el-unknown
  3800. + ;;
  3801. + toad1)
  3802. + basic_machine=pdp10-xkl
  3803. + os=-tops20
  3804. + ;;
  3805. + tower | tower-32)
  3806. + basic_machine=m68k-ncr
  3807. + ;;
  3808. + tpf)
  3809. + basic_machine=s390x-ibm
  3810. + os=-tpf
  3811. + ;;
  3812. + udi29k)
  3813. + basic_machine=a29k-amd
  3814. + os=-udi
  3815. + ;;
  3816. + ultra3)
  3817. + basic_machine=a29k-nyu
  3818. + os=-sym1
  3819. + ;;
  3820. + v810 | necv810)
  3821. + basic_machine=v810-nec
  3822. + os=-none
  3823. + ;;
  3824. + vaxv)
  3825. + basic_machine=vax-dec
  3826. + os=-sysv
  3827. + ;;
  3828. + vms)
  3829. + basic_machine=vax-dec
  3830. + os=-vms
  3831. + ;;
  3832. + vpp*|vx|vx-*)
  3833. + basic_machine=f301-fujitsu
  3834. + ;;
  3835. + vxworks960)
  3836. + basic_machine=i960-wrs
  3837. + os=-vxworks
  3838. + ;;
  3839. + vxworks68)
  3840. + basic_machine=m68k-wrs
  3841. + os=-vxworks
  3842. + ;;
  3843. + vxworks29k)
  3844. + basic_machine=a29k-wrs
  3845. + os=-vxworks
  3846. + ;;
  3847. + w65*)
  3848. + basic_machine=w65-wdc
  3849. + os=-none
  3850. + ;;
  3851. + w89k-*)
  3852. + basic_machine=hppa1.1-winbond
  3853. + os=-proelf
  3854. + ;;
  3855. + xbox)
  3856. + basic_machine=i686-pc
  3857. + os=-mingw32
  3858. + ;;
  3859. + xps | xps100)
  3860. + basic_machine=xps100-honeywell
  3861. + ;;
  3862. + ymp)
  3863. + basic_machine=ymp-cray
  3864. + os=-unicos
  3865. + ;;
  3866. + z8k-*-coff)
  3867. + basic_machine=z8k-unknown
  3868. + os=-sim
  3869. + ;;
  3870. + z80-*-coff)
  3871. + basic_machine=z80-unknown
  3872. + os=-sim
  3873. + ;;
  3874. + none)
  3875. + basic_machine=none-none
  3876. + os=-none
  3877. + ;;
  3878. +
  3879. +# Here we handle the default manufacturer of certain CPU types. It is in
  3880. +# some cases the only manufacturer, in others, it is the most popular.
  3881. + w89k)
  3882. + basic_machine=hppa1.1-winbond
  3883. + ;;
  3884. + op50n)
  3885. + basic_machine=hppa1.1-oki
  3886. + ;;
  3887. + op60c)
  3888. + basic_machine=hppa1.1-oki
  3889. + ;;
  3890. + romp)
  3891. + basic_machine=romp-ibm
  3892. + ;;
  3893. + mmix)
  3894. + basic_machine=mmix-knuth
  3895. + ;;
  3896. + rs6000)
  3897. + basic_machine=rs6000-ibm
  3898. + ;;
  3899. + vax)
  3900. + basic_machine=vax-dec
  3901. + ;;
  3902. + pdp10)
  3903. + # there are many clones, so DEC is not a safe bet
  3904. + basic_machine=pdp10-unknown
  3905. + ;;
  3906. + pdp11)
  3907. + basic_machine=pdp11-dec
  3908. + ;;
  3909. + we32k)
  3910. + basic_machine=we32k-att
  3911. + ;;
  3912. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  3913. + basic_machine=sh-unknown
  3914. + ;;
  3915. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  3916. + basic_machine=sparc-sun
  3917. + ;;
  3918. + cydra)
  3919. + basic_machine=cydra-cydrome
  3920. + ;;
  3921. + orion)
  3922. + basic_machine=orion-highlevel
  3923. + ;;
  3924. + orion105)
  3925. + basic_machine=clipper-highlevel
  3926. + ;;
  3927. + mac | mpw | mac-mpw)
  3928. + basic_machine=m68k-apple
  3929. + ;;
  3930. + pmac | pmac-mpw)
  3931. + basic_machine=powerpc-apple
  3932. + ;;
  3933. + *-unknown)
  3934. + # Make sure to match an already-canonicalized machine name.
  3935. + ;;
  3936. + *)
  3937. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  3938. + exit 1
  3939. + ;;
  3940. +esac
  3941. +
  3942. +# Here we canonicalize certain aliases for manufacturers.
  3943. +case $basic_machine in
  3944. + *-digital*)
  3945. + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  3946. + ;;
  3947. + *-commodore*)
  3948. + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  3949. + ;;
  3950. + *)
  3951. + ;;
  3952. +esac
  3953. +
  3954. +# Decode manufacturer-specific aliases for certain operating systems.
  3955. +
  3956. +if [ x"$os" != x"" ]
  3957. +then
  3958. +case $os in
  3959. + # First match some system type aliases
  3960. + # that might get confused with valid system types.
  3961. + # -solaris* is a basic system type, with this one exception.
  3962. + -solaris1 | -solaris1.*)
  3963. + os=`echo $os | sed -e 's|solaris1|sunos4|'`
  3964. + ;;
  3965. + -solaris)
  3966. + os=-solaris2
  3967. + ;;
  3968. + -svr4*)
  3969. + os=-sysv4
  3970. + ;;
  3971. + -unixware*)
  3972. + os=-sysv4.2uw
  3973. + ;;
  3974. + -gnu/linux*)
  3975. + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  3976. + ;;
  3977. + # First accept the basic system types.
  3978. + # The portable systems comes first.
  3979. + # Each alternative MUST END IN A *, to match a version number.
  3980. + # -sysv* is not here because it comes later, after sysvr4.
  3981. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  3982. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  3983. + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  3984. + | -kopensolaris* \
  3985. + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  3986. + | -aos* | -aros* \
  3987. + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  3988. + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  3989. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  3990. + | -openbsd* | -solidbsd* \
  3991. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  3992. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  3993. + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  3994. + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  3995. + | -chorusos* | -chorusrdb* | -cegcc* \
  3996. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  3997. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  3998. + | -uxpv* | -beos* | -mpeix* | -udk* \
  3999. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  4000. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  4001. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  4002. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  4003. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  4004. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  4005. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  4006. + # Remember, each alternative MUST END IN *, to match a version number.
  4007. + ;;
  4008. + -qnx*)
  4009. + case $basic_machine in
  4010. + x86-* | i*86-*)
  4011. + ;;
  4012. + *)
  4013. + os=-nto$os
  4014. + ;;
  4015. + esac
  4016. + ;;
  4017. + -nto-qnx*)
  4018. + ;;
  4019. + -nto*)
  4020. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  4021. + ;;
  4022. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  4023. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  4024. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  4025. + ;;
  4026. + -mac*)
  4027. + os=`echo $os | sed -e 's|mac|macos|'`
  4028. + ;;
  4029. + -linux-dietlibc)
  4030. + os=-linux-dietlibc
  4031. + ;;
  4032. + -linux*)
  4033. + os=`echo $os | sed -e 's|linux|linux-gnu|'`
  4034. + ;;
  4035. + -sunos5*)
  4036. + os=`echo $os | sed -e 's|sunos5|solaris2|'`
  4037. + ;;
  4038. + -sunos6*)
  4039. + os=`echo $os | sed -e 's|sunos6|solaris3|'`
  4040. + ;;
  4041. + -opened*)
  4042. + os=-openedition
  4043. + ;;
  4044. + -os400*)
  4045. + os=-os400
  4046. + ;;
  4047. + -wince*)
  4048. + os=-wince
  4049. + ;;
  4050. + -osfrose*)
  4051. + os=-osfrose
  4052. + ;;
  4053. + -osf*)
  4054. + os=-osf
  4055. + ;;
  4056. + -utek*)
  4057. + os=-bsd
  4058. + ;;
  4059. + -dynix*)
  4060. + os=-bsd
  4061. + ;;
  4062. + -acis*)
  4063. + os=-aos
  4064. + ;;
  4065. + -atheos*)
  4066. + os=-atheos
  4067. + ;;
  4068. + -syllable*)
  4069. + os=-syllable
  4070. + ;;
  4071. + -386bsd)
  4072. + os=-bsd
  4073. + ;;
  4074. + -ctix* | -uts*)
  4075. + os=-sysv
  4076. + ;;
  4077. + -nova*)
  4078. + os=-rtmk-nova
  4079. + ;;
  4080. + -ns2 )
  4081. + os=-nextstep2
  4082. + ;;
  4083. + -nsk*)
  4084. + os=-nsk
  4085. + ;;
  4086. + # Preserve the version number of sinix5.
  4087. + -sinix5.*)
  4088. + os=`echo $os | sed -e 's|sinix|sysv|'`
  4089. + ;;
  4090. + -sinix*)
  4091. + os=-sysv4
  4092. + ;;
  4093. + -tpf*)
  4094. + os=-tpf
  4095. + ;;
  4096. + -triton*)
  4097. + os=-sysv3
  4098. + ;;
  4099. + -oss*)
  4100. + os=-sysv3
  4101. + ;;
  4102. + -svr4)
  4103. + os=-sysv4
  4104. + ;;
  4105. + -svr3)
  4106. + os=-sysv3
  4107. + ;;
  4108. + -sysvr4)
  4109. + os=-sysv4
  4110. + ;;
  4111. + # This must come after -sysvr4.
  4112. + -sysv*)
  4113. + ;;
  4114. + -ose*)
  4115. + os=-ose
  4116. + ;;
  4117. + -es1800*)
  4118. + os=-ose
  4119. + ;;
  4120. + -xenix)
  4121. + os=-xenix
  4122. + ;;
  4123. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  4124. + os=-mint
  4125. + ;;
  4126. + -aros*)
  4127. + os=-aros
  4128. + ;;
  4129. + -kaos*)
  4130. + os=-kaos
  4131. + ;;
  4132. + -zvmoe)
  4133. + os=-zvmoe
  4134. + ;;
  4135. + -dicos*)
  4136. + os=-dicos
  4137. + ;;
  4138. + -none)
  4139. + ;;
  4140. + *)
  4141. + # Get rid of the `-' at the beginning of $os.
  4142. + os=`echo $os | sed 's/[^-]*-//'`
  4143. + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  4144. + exit 1
  4145. + ;;
  4146. +esac
  4147. +else
  4148. +
  4149. +# Here we handle the default operating systems that come with various machines.
  4150. +# The value should be what the vendor currently ships out the door with their
  4151. +# machine or put another way, the most popular os provided with the machine.
  4152. +
  4153. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  4154. +# "-sun"), then you have to tell the case statement up towards the top
  4155. +# that MANUFACTURER isn't an operating system. Otherwise, code above
  4156. +# will signal an error saying that MANUFACTURER isn't an operating
  4157. +# system, and we'll never get to this point.
  4158. +
  4159. +case $basic_machine in
  4160. + score-*)
  4161. + os=-elf
  4162. + ;;
  4163. + spu-*)
  4164. + os=-elf
  4165. + ;;
  4166. + *-acorn)
  4167. + os=-riscix1.2
  4168. + ;;
  4169. + arm*-rebel)
  4170. + os=-linux
  4171. + ;;
  4172. + arm*-semi)
  4173. + os=-aout
  4174. + ;;
  4175. + c4x-* | tic4x-*)
  4176. + os=-coff
  4177. + ;;
  4178. + # This must come before the *-dec entry.
  4179. + pdp10-*)
  4180. + os=-tops20
  4181. + ;;
  4182. + pdp11-*)
  4183. + os=-none
  4184. + ;;
  4185. + *-dec | vax-*)
  4186. + os=-ultrix4.2
  4187. + ;;
  4188. + m68*-apollo)
  4189. + os=-domain
  4190. + ;;
  4191. + i386-sun)
  4192. + os=-sunos4.0.2
  4193. + ;;
  4194. + m68000-sun)
  4195. + os=-sunos3
  4196. + # This also exists in the configure program, but was not the
  4197. + # default.
  4198. + # os=-sunos4
  4199. + ;;
  4200. + m68*-cisco)
  4201. + os=-aout
  4202. + ;;
  4203. + mep-*)
  4204. + os=-elf
  4205. + ;;
  4206. + mips*-cisco)
  4207. + os=-elf
  4208. + ;;
  4209. + mips*-*)
  4210. + os=-elf
  4211. + ;;
  4212. + or32-*)
  4213. + os=-coff
  4214. + ;;
  4215. + *-tti) # must be before sparc entry or we get the wrong os.
  4216. + os=-sysv3
  4217. + ;;
  4218. + sparc-* | *-sun)
  4219. + os=-sunos4.1.1
  4220. + ;;
  4221. + *-be)
  4222. + os=-beos
  4223. + ;;
  4224. + *-haiku)
  4225. + os=-haiku
  4226. + ;;
  4227. + *-ibm)
  4228. + os=-aix
  4229. + ;;
  4230. + *-knuth)
  4231. + os=-mmixware
  4232. + ;;
  4233. + *-wec)
  4234. + os=-proelf
  4235. + ;;
  4236. + *-winbond)
  4237. + os=-proelf
  4238. + ;;
  4239. + *-oki)
  4240. + os=-proelf
  4241. + ;;
  4242. + *-hp)
  4243. + os=-hpux
  4244. + ;;
  4245. + *-hitachi)
  4246. + os=-hiux
  4247. + ;;
  4248. + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  4249. + os=-sysv
  4250. + ;;
  4251. + *-cbm)
  4252. + os=-amigaos
  4253. + ;;
  4254. + *-dg)
  4255. + os=-dgux
  4256. + ;;
  4257. + *-dolphin)
  4258. + os=-sysv3
  4259. + ;;
  4260. + m68k-ccur)
  4261. + os=-rtu
  4262. + ;;
  4263. + m88k-omron*)
  4264. + os=-luna
  4265. + ;;
  4266. + *-next )
  4267. + os=-nextstep
  4268. + ;;
  4269. + *-sequent)
  4270. + os=-ptx
  4271. + ;;
  4272. + *-crds)
  4273. + os=-unos
  4274. + ;;
  4275. + *-ns)
  4276. + os=-genix
  4277. + ;;
  4278. + i370-*)
  4279. + os=-mvs
  4280. + ;;
  4281. + *-next)
  4282. + os=-nextstep3
  4283. + ;;
  4284. + *-gould)
  4285. + os=-sysv
  4286. + ;;
  4287. + *-highlevel)
  4288. + os=-bsd
  4289. + ;;
  4290. + *-encore)
  4291. + os=-bsd
  4292. + ;;
  4293. + *-sgi)
  4294. + os=-irix
  4295. + ;;
  4296. + *-siemens)
  4297. + os=-sysv4
  4298. + ;;
  4299. + *-masscomp)
  4300. + os=-rtu
  4301. + ;;
  4302. + f30[01]-fujitsu | f700-fujitsu)
  4303. + os=-uxpv
  4304. + ;;
  4305. + *-rom68k)
  4306. + os=-coff
  4307. + ;;
  4308. + *-*bug)
  4309. + os=-coff
  4310. + ;;
  4311. + *-apple)
  4312. + os=-macos
  4313. + ;;
  4314. + *-atari*)
  4315. + os=-mint
  4316. + ;;
  4317. + *)
  4318. + os=-none
  4319. + ;;
  4320. +esac
  4321. +fi
  4322. +
  4323. +# Here we handle the case where we know the os, and the CPU type, but not the
  4324. +# manufacturer. We pick the logical manufacturer.
  4325. +vendor=unknown
  4326. +case $basic_machine in
  4327. + *-unknown)
  4328. + case $os in
  4329. + -riscix*)
  4330. + vendor=acorn
  4331. + ;;
  4332. + -sunos*)
  4333. + vendor=sun
  4334. + ;;
  4335. + -cnk*|-aix*)
  4336. + vendor=ibm
  4337. + ;;
  4338. + -beos*)
  4339. + vendor=be
  4340. + ;;
  4341. + -hpux*)
  4342. + vendor=hp
  4343. + ;;
  4344. + -mpeix*)
  4345. + vendor=hp
  4346. + ;;
  4347. + -hiux*)
  4348. + vendor=hitachi
  4349. + ;;
  4350. + -unos*)
  4351. + vendor=crds
  4352. + ;;
  4353. + -dgux*)
  4354. + vendor=dg
  4355. + ;;
  4356. + -luna*)
  4357. + vendor=omron
  4358. + ;;
  4359. + -genix*)
  4360. + vendor=ns
  4361. + ;;
  4362. + -mvs* | -opened*)
  4363. + vendor=ibm
  4364. + ;;
  4365. + -os400*)
  4366. + vendor=ibm
  4367. + ;;
  4368. + -ptx*)
  4369. + vendor=sequent
  4370. + ;;
  4371. + -tpf*)
  4372. + vendor=ibm
  4373. + ;;
  4374. + -vxsim* | -vxworks* | -windiss*)
  4375. + vendor=wrs
  4376. + ;;
  4377. + -aux*)
  4378. + vendor=apple
  4379. + ;;
  4380. + -hms*)
  4381. + vendor=hitachi
  4382. + ;;
  4383. + -mpw* | -macos*)
  4384. + vendor=apple
  4385. + ;;
  4386. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  4387. + vendor=atari
  4388. + ;;
  4389. + -vos*)
  4390. + vendor=stratus
  4391. + ;;
  4392. + esac
  4393. + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  4394. + ;;
  4395. +esac
  4396. +
  4397. +echo $basic_machine$os
  4398. +exit
  4399. +
  4400. +# Local variables:
  4401. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  4402. +# time-stamp-start: "timestamp='"
  4403. +# time-stamp-format: "%:y-%02m-%02d"
  4404. +# time-stamp-end: "'"
  4405. +# End:
  4406. diff -Nur tslib-1.0.orig/configure tslib-1.0/configure
  4407. --- tslib-1.0.orig/configure 1970-01-01 01:00:00.000000000 +0100
  4408. +++ tslib-1.0/configure 2010-02-19 00:24:11.232851881 +0100
  4409. @@ -0,0 +1,18585 @@
  4410. +#! /bin/sh
  4411. +# Guess values for system-dependent variables and create Makefiles.
  4412. +# Generated by GNU Autoconf 2.65 for tslib 0.0.2.
  4413. +#
  4414. +# Report bugs to <kergoth@handhelds.org>.
  4415. +#
  4416. +#
  4417. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  4418. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  4419. +# Inc.
  4420. +#
  4421. +#
  4422. +# This configure script is free software; the Free Software Foundation
  4423. +# gives unlimited permission to copy, distribute and modify it.
  4424. +## -------------------- ##
  4425. +## M4sh Initialization. ##
  4426. +## -------------------- ##
  4427. +
  4428. +# Be more Bourne compatible
  4429. +DUALCASE=1; export DUALCASE # for MKS sh
  4430. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4431. + emulate sh
  4432. + NULLCMD=:
  4433. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4434. + # is contrary to our usage. Disable this feature.
  4435. + alias -g '${1+"$@"}'='"$@"'
  4436. + setopt NO_GLOB_SUBST
  4437. +else
  4438. + case `(set -o) 2>/dev/null` in #(
  4439. + *posix*) :
  4440. + set -o posix ;; #(
  4441. + *) :
  4442. + ;;
  4443. +esac
  4444. +fi
  4445. +
  4446. +
  4447. +as_nl='
  4448. +'
  4449. +export as_nl
  4450. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  4451. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4452. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4453. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4454. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  4455. +# but without wasting forks for bash or zsh.
  4456. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  4457. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4458. + as_echo='print -r --'
  4459. + as_echo_n='print -rn --'
  4460. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4461. + as_echo='printf %s\n'
  4462. + as_echo_n='printf %s'
  4463. +else
  4464. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4465. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4466. + as_echo_n='/usr/ucb/echo -n'
  4467. + else
  4468. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4469. + as_echo_n_body='eval
  4470. + arg=$1;
  4471. + case $arg in #(
  4472. + *"$as_nl"*)
  4473. + expr "X$arg" : "X\\(.*\\)$as_nl";
  4474. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4475. + esac;
  4476. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4477. + '
  4478. + export as_echo_n_body
  4479. + as_echo_n='sh -c $as_echo_n_body as_echo'
  4480. + fi
  4481. + export as_echo_body
  4482. + as_echo='sh -c $as_echo_body as_echo'
  4483. +fi
  4484. +
  4485. +# The user is always right.
  4486. +if test "${PATH_SEPARATOR+set}" != set; then
  4487. + PATH_SEPARATOR=:
  4488. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4489. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4490. + PATH_SEPARATOR=';'
  4491. + }
  4492. +fi
  4493. +
  4494. +
  4495. +# IFS
  4496. +# We need space, tab and new line, in precisely that order. Quoting is
  4497. +# there to prevent editors from complaining about space-tab.
  4498. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4499. +# splitting by setting IFS to empty value.)
  4500. +IFS=" "" $as_nl"
  4501. +
  4502. +# Find who we are. Look in the path if we contain no directory separator.
  4503. +case $0 in #((
  4504. + *[\\/]* ) as_myself=$0 ;;
  4505. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4506. +for as_dir in $PATH
  4507. +do
  4508. + IFS=$as_save_IFS
  4509. + test -z "$as_dir" && as_dir=.
  4510. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4511. + done
  4512. +IFS=$as_save_IFS
  4513. +
  4514. + ;;
  4515. +esac
  4516. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  4517. +# in which case we are not to be found in the path.
  4518. +if test "x$as_myself" = x; then
  4519. + as_myself=$0
  4520. +fi
  4521. +if test ! -f "$as_myself"; then
  4522. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4523. + exit 1
  4524. +fi
  4525. +
  4526. +# Unset variables that we do not need and which cause bugs (e.g. in
  4527. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4528. +# suppresses any "Segmentation fault" message there. '((' could
  4529. +# trigger a bug in pdksh 5.2.14.
  4530. +for as_var in BASH_ENV ENV MAIL MAILPATH
  4531. +do eval test x\${$as_var+set} = xset \
  4532. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4533. +done
  4534. +PS1='$ '
  4535. +PS2='> '
  4536. +PS4='+ '
  4537. +
  4538. +# NLS nuisances.
  4539. +LC_ALL=C
  4540. +export LC_ALL
  4541. +LANGUAGE=C
  4542. +export LANGUAGE
  4543. +
  4544. +# CDPATH.
  4545. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4546. +
  4547. +if test "x$CONFIG_SHELL" = x; then
  4548. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  4549. + emulate sh
  4550. + NULLCMD=:
  4551. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  4552. + # is contrary to our usage. Disable this feature.
  4553. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  4554. + setopt NO_GLOB_SUBST
  4555. +else
  4556. + case \`(set -o) 2>/dev/null\` in #(
  4557. + *posix*) :
  4558. + set -o posix ;; #(
  4559. + *) :
  4560. + ;;
  4561. +esac
  4562. +fi
  4563. +"
  4564. + as_required="as_fn_return () { (exit \$1); }
  4565. +as_fn_success () { as_fn_return 0; }
  4566. +as_fn_failure () { as_fn_return 1; }
  4567. +as_fn_ret_success () { return 0; }
  4568. +as_fn_ret_failure () { return 1; }
  4569. +
  4570. +exitcode=0
  4571. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  4572. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  4573. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  4574. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  4575. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  4576. +
  4577. +else
  4578. + exitcode=1; echo positional parameters were not saved.
  4579. +fi
  4580. +test x\$exitcode = x0 || exit 1"
  4581. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  4582. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  4583. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  4584. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  4585. +test \$(( 1 + 1 )) = 2 || exit 1"
  4586. + if (eval "$as_required") 2>/dev/null; then :
  4587. + as_have_required=yes
  4588. +else
  4589. + as_have_required=no
  4590. +fi
  4591. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  4592. +
  4593. +else
  4594. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4595. +as_found=false
  4596. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4597. +do
  4598. + IFS=$as_save_IFS
  4599. + test -z "$as_dir" && as_dir=.
  4600. + as_found=:
  4601. + case $as_dir in #(
  4602. + /*)
  4603. + for as_base in sh bash ksh sh5; do
  4604. + # Try only shells that exist, to save several forks.
  4605. + as_shell=$as_dir/$as_base
  4606. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  4607. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  4608. + CONFIG_SHELL=$as_shell as_have_required=yes
  4609. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  4610. + break 2
  4611. +fi
  4612. +fi
  4613. + done;;
  4614. + esac
  4615. + as_found=false
  4616. +done
  4617. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  4618. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  4619. + CONFIG_SHELL=$SHELL as_have_required=yes
  4620. +fi; }
  4621. +IFS=$as_save_IFS
  4622. +
  4623. +
  4624. + if test "x$CONFIG_SHELL" != x; then :
  4625. + # We cannot yet assume a decent shell, so we have to provide a
  4626. + # neutralization value for shells without unset; and this also
  4627. + # works around shells that cannot unset nonexistent variables.
  4628. + BASH_ENV=/dev/null
  4629. + ENV=/dev/null
  4630. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  4631. + export CONFIG_SHELL
  4632. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  4633. +fi
  4634. +
  4635. + if test x$as_have_required = xno; then :
  4636. + $as_echo "$0: This script requires a shell more modern than all"
  4637. + $as_echo "$0: the shells that I found on your system."
  4638. + if test x${ZSH_VERSION+set} = xset ; then
  4639. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  4640. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  4641. + else
  4642. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  4643. +$0: kergoth@handhelds.org about your system, including any
  4644. +$0: error possibly output before this message. Then install
  4645. +$0: a modern shell, or manually run the script under such a
  4646. +$0: shell if you do have one."
  4647. + fi
  4648. + exit 1
  4649. +fi
  4650. +fi
  4651. +fi
  4652. +SHELL=${CONFIG_SHELL-/bin/sh}
  4653. +export SHELL
  4654. +# Unset more variables known to interfere with behavior of common tools.
  4655. +CLICOLOR_FORCE= GREP_OPTIONS=
  4656. +unset CLICOLOR_FORCE GREP_OPTIONS
  4657. +
  4658. +## --------------------- ##
  4659. +## M4sh Shell Functions. ##
  4660. +## --------------------- ##
  4661. +# as_fn_unset VAR
  4662. +# ---------------
  4663. +# Portably unset VAR.
  4664. +as_fn_unset ()
  4665. +{
  4666. + { eval $1=; unset $1;}
  4667. +}
  4668. +as_unset=as_fn_unset
  4669. +
  4670. +# as_fn_set_status STATUS
  4671. +# -----------------------
  4672. +# Set $? to STATUS, without forking.
  4673. +as_fn_set_status ()
  4674. +{
  4675. + return $1
  4676. +} # as_fn_set_status
  4677. +
  4678. +# as_fn_exit STATUS
  4679. +# -----------------
  4680. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4681. +as_fn_exit ()
  4682. +{
  4683. + set +e
  4684. + as_fn_set_status $1
  4685. + exit $1
  4686. +} # as_fn_exit
  4687. +
  4688. +# as_fn_mkdir_p
  4689. +# -------------
  4690. +# Create "$as_dir" as a directory, including parents if necessary.
  4691. +as_fn_mkdir_p ()
  4692. +{
  4693. +
  4694. + case $as_dir in #(
  4695. + -*) as_dir=./$as_dir;;
  4696. + esac
  4697. + test -d "$as_dir" || eval $as_mkdir_p || {
  4698. + as_dirs=
  4699. + while :; do
  4700. + case $as_dir in #(
  4701. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4702. + *) as_qdir=$as_dir;;
  4703. + esac
  4704. + as_dirs="'$as_qdir' $as_dirs"
  4705. + as_dir=`$as_dirname -- "$as_dir" ||
  4706. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4707. + X"$as_dir" : 'X\(//\)[^/]' \| \
  4708. + X"$as_dir" : 'X\(//\)$' \| \
  4709. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4710. +$as_echo X"$as_dir" |
  4711. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4712. + s//\1/
  4713. + q
  4714. + }
  4715. + /^X\(\/\/\)[^/].*/{
  4716. + s//\1/
  4717. + q
  4718. + }
  4719. + /^X\(\/\/\)$/{
  4720. + s//\1/
  4721. + q
  4722. + }
  4723. + /^X\(\/\).*/{
  4724. + s//\1/
  4725. + q
  4726. + }
  4727. + s/.*/./; q'`
  4728. + test -d "$as_dir" && break
  4729. + done
  4730. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  4731. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  4732. +
  4733. +
  4734. +} # as_fn_mkdir_p
  4735. +# as_fn_append VAR VALUE
  4736. +# ----------------------
  4737. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  4738. +# advantage of any shell optimizations that allow amortized linear growth over
  4739. +# repeated appends, instead of the typical quadratic growth present in naive
  4740. +# implementations.
  4741. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4742. + eval 'as_fn_append ()
  4743. + {
  4744. + eval $1+=\$2
  4745. + }'
  4746. +else
  4747. + as_fn_append ()
  4748. + {
  4749. + eval $1=\$$1\$2
  4750. + }
  4751. +fi # as_fn_append
  4752. +
  4753. +# as_fn_arith ARG...
  4754. +# ------------------
  4755. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  4756. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  4757. +# must be portable across $(()) and expr.
  4758. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4759. + eval 'as_fn_arith ()
  4760. + {
  4761. + as_val=$(( $* ))
  4762. + }'
  4763. +else
  4764. + as_fn_arith ()
  4765. + {
  4766. + as_val=`expr "$@" || test $? -eq 1`
  4767. + }
  4768. +fi # as_fn_arith
  4769. +
  4770. +
  4771. +# as_fn_error ERROR [LINENO LOG_FD]
  4772. +# ---------------------------------
  4773. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4774. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4775. +# script with status $?, using 1 if that was 0.
  4776. +as_fn_error ()
  4777. +{
  4778. + as_status=$?; test $as_status -eq 0 && as_status=1
  4779. + if test "$3"; then
  4780. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4781. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  4782. + fi
  4783. + $as_echo "$as_me: error: $1" >&2
  4784. + as_fn_exit $as_status
  4785. +} # as_fn_error
  4786. +
  4787. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  4788. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4789. + as_expr=expr
  4790. +else
  4791. + as_expr=false
  4792. +fi
  4793. +
  4794. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4795. + as_basename=basename
  4796. +else
  4797. + as_basename=false
  4798. +fi
  4799. +
  4800. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4801. + as_dirname=dirname
  4802. +else
  4803. + as_dirname=false
  4804. +fi
  4805. +
  4806. +as_me=`$as_basename -- "$0" ||
  4807. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4808. + X"$0" : 'X\(//\)$' \| \
  4809. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4810. +$as_echo X/"$0" |
  4811. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  4812. + s//\1/
  4813. + q
  4814. + }
  4815. + /^X\/\(\/\/\)$/{
  4816. + s//\1/
  4817. + q
  4818. + }
  4819. + /^X\/\(\/\).*/{
  4820. + s//\1/
  4821. + q
  4822. + }
  4823. + s/.*/./; q'`
  4824. +
  4825. +# Avoid depending upon Character Ranges.
  4826. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4827. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4828. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4829. +as_cr_digits='0123456789'
  4830. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  4831. +
  4832. +
  4833. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  4834. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  4835. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  4836. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  4837. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  4838. + sed -n '
  4839. + p
  4840. + /[$]LINENO/=
  4841. + ' <$as_myself |
  4842. + sed '
  4843. + s/[$]LINENO.*/&-/
  4844. + t lineno
  4845. + b
  4846. + :lineno
  4847. + N
  4848. + :loop
  4849. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4850. + t loop
  4851. + s/-\n.*//
  4852. + ' >$as_me.lineno &&
  4853. + chmod +x "$as_me.lineno" ||
  4854. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  4855. +
  4856. + # Don't try to exec as it changes $[0], causing all sort of problems
  4857. + # (the dirname of $[0] is not the place where we might find the
  4858. + # original and so on. Autoconf is especially sensitive to this).
  4859. + . "./$as_me.lineno"
  4860. + # Exit status is that of the last command.
  4861. + exit
  4862. +}
  4863. +
  4864. +ECHO_C= ECHO_N= ECHO_T=
  4865. +case `echo -n x` in #(((((
  4866. +-n*)
  4867. + case `echo 'xy\c'` in
  4868. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4869. + xy) ECHO_C='\c';;
  4870. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4871. + ECHO_T=' ';;
  4872. + esac;;
  4873. +*)
  4874. + ECHO_N='-n';;
  4875. +esac
  4876. +
  4877. +rm -f conf$$ conf$$.exe conf$$.file
  4878. +if test -d conf$$.dir; then
  4879. + rm -f conf$$.dir/conf$$.file
  4880. +else
  4881. + rm -f conf$$.dir
  4882. + mkdir conf$$.dir 2>/dev/null
  4883. +fi
  4884. +if (echo >conf$$.file) 2>/dev/null; then
  4885. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  4886. + as_ln_s='ln -s'
  4887. + # ... but there are two gotchas:
  4888. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4889. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4890. + # In both cases, we have to default to `cp -p'.
  4891. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4892. + as_ln_s='cp -p'
  4893. + elif ln conf$$.file conf$$ 2>/dev/null; then
  4894. + as_ln_s=ln
  4895. + else
  4896. + as_ln_s='cp -p'
  4897. + fi
  4898. +else
  4899. + as_ln_s='cp -p'
  4900. +fi
  4901. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4902. +rmdir conf$$.dir 2>/dev/null
  4903. +
  4904. +if mkdir -p . 2>/dev/null; then
  4905. + as_mkdir_p='mkdir -p "$as_dir"'
  4906. +else
  4907. + test -d ./-p && rmdir ./-p
  4908. + as_mkdir_p=false
  4909. +fi
  4910. +
  4911. +if test -x / >/dev/null 2>&1; then
  4912. + as_test_x='test -x'
  4913. +else
  4914. + if ls -dL / >/dev/null 2>&1; then
  4915. + as_ls_L_option=L
  4916. + else
  4917. + as_ls_L_option=
  4918. + fi
  4919. + as_test_x='
  4920. + eval sh -c '\''
  4921. + if test -d "$1"; then
  4922. + test -d "$1/.";
  4923. + else
  4924. + case $1 in #(
  4925. + -*)set "./$1";;
  4926. + esac;
  4927. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  4928. + ???[sx]*):;;*)false;;esac;fi
  4929. + '\'' sh
  4930. + '
  4931. +fi
  4932. +as_executable_p=$as_test_x
  4933. +
  4934. +# Sed expression to map a string onto a valid CPP name.
  4935. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4936. +
  4937. +# Sed expression to map a string onto a valid variable name.
  4938. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4939. +
  4940. +
  4941. +
  4942. +# Check that we are running under the correct shell.
  4943. +SHELL=${CONFIG_SHELL-/bin/sh}
  4944. +
  4945. +case X$lt_ECHO in
  4946. +X*--fallback-echo)
  4947. + # Remove one level of quotation (which was required for Make).
  4948. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  4949. + ;;
  4950. +esac
  4951. +
  4952. +ECHO=${lt_ECHO-echo}
  4953. +if test "X$1" = X--no-reexec; then
  4954. + # Discard the --no-reexec flag, and continue.
  4955. + shift
  4956. +elif test "X$1" = X--fallback-echo; then
  4957. + # Avoid inline document here, it may be left over
  4958. + :
  4959. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  4960. + # Yippee, $ECHO works!
  4961. + :
  4962. +else
  4963. + # Restart under the correct shell.
  4964. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  4965. +fi
  4966. +
  4967. +if test "X$1" = X--fallback-echo; then
  4968. + # used as fallback echo
  4969. + shift
  4970. + cat <<_LT_EOF
  4971. +$*
  4972. +_LT_EOF
  4973. + exit 0
  4974. +fi
  4975. +
  4976. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  4977. +# if CDPATH is set.
  4978. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4979. +
  4980. +if test -z "$lt_ECHO"; then
  4981. + if test "X${echo_test_string+set}" != Xset; then
  4982. + # find a string as large as possible, as long as the shell can cope with it
  4983. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  4984. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  4985. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  4986. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  4987. + then
  4988. + break
  4989. + fi
  4990. + done
  4991. + fi
  4992. +
  4993. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  4994. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  4995. + test "X$echo_testing_string" = "X$echo_test_string"; then
  4996. + :
  4997. + else
  4998. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  4999. + # backslashes. This makes it impossible to quote backslashes using
  5000. + # echo "$something" | sed 's/\\/\\\\/g'
  5001. + #
  5002. + # So, first we look for a working echo in the user's PATH.
  5003. +
  5004. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5005. + for dir in $PATH /usr/ucb; do
  5006. + IFS="$lt_save_ifs"
  5007. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  5008. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  5009. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  5010. + test "X$echo_testing_string" = "X$echo_test_string"; then
  5011. + ECHO="$dir/echo"
  5012. + break
  5013. + fi
  5014. + done
  5015. + IFS="$lt_save_ifs"
  5016. +
  5017. + if test "X$ECHO" = Xecho; then
  5018. + # We didn't find a better echo, so look for alternatives.
  5019. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  5020. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  5021. + test "X$echo_testing_string" = "X$echo_test_string"; then
  5022. + # This shell has a builtin print -r that does the trick.
  5023. + ECHO='print -r'
  5024. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  5025. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  5026. + # If we have ksh, try running configure again with it.
  5027. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  5028. + export ORIGINAL_CONFIG_SHELL
  5029. + CONFIG_SHELL=/bin/ksh
  5030. + export CONFIG_SHELL
  5031. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  5032. + else
  5033. + # Try using printf.
  5034. + ECHO='printf %s\n'
  5035. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  5036. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  5037. + test "X$echo_testing_string" = "X$echo_test_string"; then
  5038. + # Cool, printf works
  5039. + :
  5040. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  5041. + test "X$echo_testing_string" = 'X\t' &&
  5042. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  5043. + test "X$echo_testing_string" = "X$echo_test_string"; then
  5044. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  5045. + export CONFIG_SHELL
  5046. + SHELL="$CONFIG_SHELL"
  5047. + export SHELL
  5048. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  5049. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  5050. + test "X$echo_testing_string" = 'X\t' &&
  5051. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  5052. + test "X$echo_testing_string" = "X$echo_test_string"; then
  5053. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  5054. + else
  5055. + # maybe with a smaller string...
  5056. + prev=:
  5057. +
  5058. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  5059. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  5060. + then
  5061. + break
  5062. + fi
  5063. + prev="$cmd"
  5064. + done
  5065. +
  5066. + if test "$prev" != 'sed 50q "$0"'; then
  5067. + echo_test_string=`eval $prev`
  5068. + export echo_test_string
  5069. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  5070. + else
  5071. + # Oops. We lost completely, so just stick with echo.
  5072. + ECHO=echo
  5073. + fi
  5074. + fi
  5075. + fi
  5076. + fi
  5077. + fi
  5078. +fi
  5079. +
  5080. +# Copy echo and quote the copy suitably for passing to libtool from
  5081. +# the Makefile, instead of quoting the original, which is used later.
  5082. +lt_ECHO=$ECHO
  5083. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  5084. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  5085. +fi
  5086. +
  5087. +
  5088. +
  5089. +
  5090. +test -n "$DJDIR" || exec 7<&0 </dev/null
  5091. +exec 6>&1
  5092. +
  5093. +# Name of the host.
  5094. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  5095. +# so uname gets run too.
  5096. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  5097. +
  5098. +#
  5099. +# Initializations.
  5100. +#
  5101. +ac_default_prefix=/usr/local
  5102. +ac_clean_files=
  5103. +ac_config_libobj_dir=.
  5104. +LIBOBJS=
  5105. +cross_compiling=no
  5106. +subdirs=
  5107. +MFLAGS=
  5108. +MAKEFLAGS=
  5109. +
  5110. +# Identity of this package.
  5111. +PACKAGE_NAME='tslib'
  5112. +PACKAGE_TARNAME='tslib'
  5113. +PACKAGE_VERSION='0.0.2'
  5114. +PACKAGE_STRING='tslib 0.0.2'
  5115. +PACKAGE_BUGREPORT='kergoth@handhelds.org'
  5116. +PACKAGE_URL=''
  5117. +
  5118. +ac_unique_file="src/ts_close.c"
  5119. +# Factoring default headers for most tests.
  5120. +ac_includes_default="\
  5121. +#include <stdio.h>
  5122. +#ifdef HAVE_SYS_TYPES_H
  5123. +# include <sys/types.h>
  5124. +#endif
  5125. +#ifdef HAVE_SYS_STAT_H
  5126. +# include <sys/stat.h>
  5127. +#endif
  5128. +#ifdef STDC_HEADERS
  5129. +# include <stdlib.h>
  5130. +# include <stddef.h>
  5131. +#else
  5132. +# ifdef HAVE_STDLIB_H
  5133. +# include <stdlib.h>
  5134. +# endif
  5135. +#endif
  5136. +#ifdef HAVE_STRING_H
  5137. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  5138. +# include <memory.h>
  5139. +# endif
  5140. +# include <string.h>
  5141. +#endif
  5142. +#ifdef HAVE_STRINGS_H
  5143. +# include <strings.h>
  5144. +#endif
  5145. +#ifdef HAVE_INTTYPES_H
  5146. +# include <inttypes.h>
  5147. +#endif
  5148. +#ifdef HAVE_STDINT_H
  5149. +# include <stdint.h>
  5150. +#endif
  5151. +#ifdef HAVE_UNISTD_H
  5152. +# include <unistd.h>
  5153. +#endif"
  5154. +
  5155. +ac_header_list=
  5156. +ac_subst_vars='am__EXEEXT_FALSE
  5157. +am__EXEEXT_TRUE
  5158. +LTLIBOBJS
  5159. +LT_AGE
  5160. +LT_REVISION
  5161. +LT_CURRENT
  5162. +LT_RELEASE
  5163. +TS_CONF
  5164. +LIBFLAGS
  5165. +DEBUGFLAGS
  5166. +PLUGIN_DIR
  5167. +ENABLE_INPUT_MODULE_FALSE
  5168. +ENABLE_INPUT_MODULE_TRUE
  5169. +ENABLE_ARCTIC2_MODULE_FALSE
  5170. +ENABLE_ARCTIC2_MODULE_TRUE
  5171. +ENABLE_MK712_MODULE_FALSE
  5172. +ENABLE_MK712_MODULE_TRUE
  5173. +ENABLE_H3600_MODULE_FALSE
  5174. +ENABLE_H3600_MODULE_TRUE
  5175. +ENABLE_COLLIE_MODULE_FALSE
  5176. +ENABLE_COLLIE_MODULE_TRUE
  5177. +ENABLE_CORGI_MODULE_FALSE
  5178. +ENABLE_CORGI_MODULE_TRUE
  5179. +ENABLE_UCB1X00_MODULE_FALSE
  5180. +ENABLE_UCB1X00_MODULE_TRUE
  5181. +ENABLE_PTHRES_MODULE_FALSE
  5182. +ENABLE_PTHRES_MODULE_TRUE
  5183. +ENABLE_VARIANCE_MODULE_FALSE
  5184. +ENABLE_VARIANCE_MODULE_TRUE
  5185. +ENABLE_H2200_LINEAR_MODULE_FALSE
  5186. +ENABLE_H2200_LINEAR_MODULE_TRUE
  5187. +ENABLE_DEJITTER_MODULE_FALSE
  5188. +ENABLE_DEJITTER_MODULE_TRUE
  5189. +ENABLE_LINEAR_MODULE_FALSE
  5190. +ENABLE_LINEAR_MODULE_TRUE
  5191. +LIBOBJS
  5192. +ALLOCA
  5193. +CXXCPP
  5194. +OTOOL64
  5195. +OTOOL
  5196. +LIPO
  5197. +NMEDIT
  5198. +DSYMUTIL
  5199. +lt_ECHO
  5200. +RANLIB
  5201. +AR
  5202. +OBJDUMP
  5203. +NM
  5204. +ac_ct_DUMPBIN
  5205. +DUMPBIN
  5206. +LD
  5207. +FGREP
  5208. +EGREP
  5209. +GREP
  5210. +SED
  5211. +host_os
  5212. +host_vendor
  5213. +host_cpu
  5214. +host
  5215. +build_os
  5216. +build_vendor
  5217. +build_cpu
  5218. +build
  5219. +LIBTOOL
  5220. +LN_S
  5221. +VIS_CFLAGS
  5222. +CPP
  5223. +am__fastdepCC_FALSE
  5224. +am__fastdepCC_TRUE
  5225. +CCDEPMODE
  5226. +ac_ct_CC
  5227. +CFLAGS
  5228. +CC
  5229. +am__fastdepCXX_FALSE
  5230. +am__fastdepCXX_TRUE
  5231. +CXXDEPMODE
  5232. +AMDEPBACKSLASH
  5233. +AMDEP_FALSE
  5234. +AMDEP_TRUE
  5235. +am__quote
  5236. +am__include
  5237. +DEPDIR
  5238. +OBJEXT
  5239. +EXEEXT
  5240. +ac_ct_CXX
  5241. +CPPFLAGS
  5242. +LDFLAGS
  5243. +CXXFLAGS
  5244. +CXX
  5245. +PACKAGE_DESCRIPTION
  5246. +am__untar
  5247. +am__tar
  5248. +AMTAR
  5249. +am__leading_dot
  5250. +SET_MAKE
  5251. +AWK
  5252. +mkdir_p
  5253. +MKDIR_P
  5254. +INSTALL_STRIP_PROGRAM
  5255. +STRIP
  5256. +install_sh
  5257. +MAKEINFO
  5258. +AUTOHEADER
  5259. +AUTOMAKE
  5260. +AUTOCONF
  5261. +ACLOCAL
  5262. +VERSION
  5263. +PACKAGE
  5264. +CYGPATH_W
  5265. +am__isrc
  5266. +INSTALL_DATA
  5267. +INSTALL_SCRIPT
  5268. +INSTALL_PROGRAM
  5269. +target_alias
  5270. +host_alias
  5271. +build_alias
  5272. +LIBS
  5273. +ECHO_T
  5274. +ECHO_N
  5275. +ECHO_C
  5276. +DEFS
  5277. +mandir
  5278. +localedir
  5279. +libdir
  5280. +psdir
  5281. +pdfdir
  5282. +dvidir
  5283. +htmldir
  5284. +infodir
  5285. +docdir
  5286. +oldincludedir
  5287. +includedir
  5288. +localstatedir
  5289. +sharedstatedir
  5290. +sysconfdir
  5291. +datadir
  5292. +datarootdir
  5293. +libexecdir
  5294. +sbindir
  5295. +bindir
  5296. +program_transform_name
  5297. +prefix
  5298. +exec_prefix
  5299. +PACKAGE_URL
  5300. +PACKAGE_BUGREPORT
  5301. +PACKAGE_STRING
  5302. +PACKAGE_VERSION
  5303. +PACKAGE_TARNAME
  5304. +PACKAGE_NAME
  5305. +PATH_SEPARATOR
  5306. +SHELL'
  5307. +ac_subst_files=''
  5308. +ac_user_opts='
  5309. +enable_option_checking
  5310. +enable_dependency_tracking
  5311. +with_hidden_visibility
  5312. +enable_static
  5313. +enable_shared
  5314. +with_pic
  5315. +enable_fast_install
  5316. +with_gnu_ld
  5317. +enable_libtool_lock
  5318. +enable_linear
  5319. +enable_dejitter
  5320. +enable_linear_h2200
  5321. +enable_variance
  5322. +enable_pthres
  5323. +enable_ucb1x00
  5324. +enable_corgi
  5325. +enable_collie
  5326. +enable_h3600
  5327. +enable_mk712
  5328. +enable_arctic2
  5329. +enable_input
  5330. +with_plugindir
  5331. +enable_debug
  5332. +'
  5333. + ac_precious_vars='build_alias
  5334. +host_alias
  5335. +target_alias
  5336. +CXX
  5337. +CXXFLAGS
  5338. +LDFLAGS
  5339. +LIBS
  5340. +CPPFLAGS
  5341. +CCC
  5342. +CC
  5343. +CFLAGS
  5344. +CPP
  5345. +CXXCPP'
  5346. +
  5347. +
  5348. +# Initialize some variables set by options.
  5349. +ac_init_help=
  5350. +ac_init_version=false
  5351. +ac_unrecognized_opts=
  5352. +ac_unrecognized_sep=
  5353. +# The variables have the same names as the options, with
  5354. +# dashes changed to underlines.
  5355. +cache_file=/dev/null
  5356. +exec_prefix=NONE
  5357. +no_create=
  5358. +no_recursion=
  5359. +prefix=NONE
  5360. +program_prefix=NONE
  5361. +program_suffix=NONE
  5362. +program_transform_name=s,x,x,
  5363. +silent=
  5364. +site=
  5365. +srcdir=
  5366. +verbose=
  5367. +x_includes=NONE
  5368. +x_libraries=NONE
  5369. +
  5370. +# Installation directory options.
  5371. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  5372. +# and all the variables that are supposed to be based on exec_prefix
  5373. +# by default will actually change.
  5374. +# Use braces instead of parens because sh, perl, etc. also accept them.
  5375. +# (The list follows the same order as the GNU Coding Standards.)
  5376. +bindir='${exec_prefix}/bin'
  5377. +sbindir='${exec_prefix}/sbin'
  5378. +libexecdir='${exec_prefix}/libexec'
  5379. +datarootdir='${prefix}/share'
  5380. +datadir='${datarootdir}'
  5381. +sysconfdir='${prefix}/etc'
  5382. +sharedstatedir='${prefix}/com'
  5383. +localstatedir='${prefix}/var'
  5384. +includedir='${prefix}/include'
  5385. +oldincludedir='/usr/include'
  5386. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  5387. +infodir='${datarootdir}/info'
  5388. +htmldir='${docdir}'
  5389. +dvidir='${docdir}'
  5390. +pdfdir='${docdir}'
  5391. +psdir='${docdir}'
  5392. +libdir='${exec_prefix}/lib'
  5393. +localedir='${datarootdir}/locale'
  5394. +mandir='${datarootdir}/man'
  5395. +
  5396. +ac_prev=
  5397. +ac_dashdash=
  5398. +for ac_option
  5399. +do
  5400. + # If the previous option needs an argument, assign it.
  5401. + if test -n "$ac_prev"; then
  5402. + eval $ac_prev=\$ac_option
  5403. + ac_prev=
  5404. + continue
  5405. + fi
  5406. +
  5407. + case $ac_option in
  5408. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  5409. + *) ac_optarg=yes ;;
  5410. + esac
  5411. +
  5412. + # Accept the important Cygnus configure options, so we can diagnose typos.
  5413. +
  5414. + case $ac_dashdash$ac_option in
  5415. + --)
  5416. + ac_dashdash=yes ;;
  5417. +
  5418. + -bindir | --bindir | --bindi | --bind | --bin | --bi)
  5419. + ac_prev=bindir ;;
  5420. + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  5421. + bindir=$ac_optarg ;;
  5422. +
  5423. + -build | --build | --buil | --bui | --bu)
  5424. + ac_prev=build_alias ;;
  5425. + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  5426. + build_alias=$ac_optarg ;;
  5427. +
  5428. + -cache-file | --cache-file | --cache-fil | --cache-fi \
  5429. + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  5430. + ac_prev=cache_file ;;
  5431. + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  5432. + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  5433. + cache_file=$ac_optarg ;;
  5434. +
  5435. + --config-cache | -C)
  5436. + cache_file=config.cache ;;
  5437. +
  5438. + -datadir | --datadir | --datadi | --datad)
  5439. + ac_prev=datadir ;;
  5440. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  5441. + datadir=$ac_optarg ;;
  5442. +
  5443. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  5444. + | --dataroo | --dataro | --datar)
  5445. + ac_prev=datarootdir ;;
  5446. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  5447. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  5448. + datarootdir=$ac_optarg ;;
  5449. +
  5450. + -disable-* | --disable-*)
  5451. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  5452. + # Reject names that are not valid shell variable names.
  5453. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  5454. + as_fn_error "invalid feature name: $ac_useropt"
  5455. + ac_useropt_orig=$ac_useropt
  5456. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  5457. + case $ac_user_opts in
  5458. + *"
  5459. +"enable_$ac_useropt"
  5460. +"*) ;;
  5461. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  5462. + ac_unrecognized_sep=', ';;
  5463. + esac
  5464. + eval enable_$ac_useropt=no ;;
  5465. +
  5466. + -docdir | --docdir | --docdi | --doc | --do)
  5467. + ac_prev=docdir ;;
  5468. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  5469. + docdir=$ac_optarg ;;
  5470. +
  5471. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  5472. + ac_prev=dvidir ;;
  5473. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  5474. + dvidir=$ac_optarg ;;
  5475. +
  5476. + -enable-* | --enable-*)
  5477. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  5478. + # Reject names that are not valid shell variable names.
  5479. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  5480. + as_fn_error "invalid feature name: $ac_useropt"
  5481. + ac_useropt_orig=$ac_useropt
  5482. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  5483. + case $ac_user_opts in
  5484. + *"
  5485. +"enable_$ac_useropt"
  5486. +"*) ;;
  5487. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  5488. + ac_unrecognized_sep=', ';;
  5489. + esac
  5490. + eval enable_$ac_useropt=\$ac_optarg ;;
  5491. +
  5492. + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  5493. + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  5494. + | --exec | --exe | --ex)
  5495. + ac_prev=exec_prefix ;;
  5496. + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  5497. + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  5498. + | --exec=* | --exe=* | --ex=*)
  5499. + exec_prefix=$ac_optarg ;;
  5500. +
  5501. + -gas | --gas | --ga | --g)
  5502. + # Obsolete; use --with-gas.
  5503. + with_gas=yes ;;
  5504. +
  5505. + -help | --help | --hel | --he | -h)
  5506. + ac_init_help=long ;;
  5507. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  5508. + ac_init_help=recursive ;;
  5509. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  5510. + ac_init_help=short ;;
  5511. +
  5512. + -host | --host | --hos | --ho)
  5513. + ac_prev=host_alias ;;
  5514. + -host=* | --host=* | --hos=* | --ho=*)
  5515. + host_alias=$ac_optarg ;;
  5516. +
  5517. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  5518. + ac_prev=htmldir ;;
  5519. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  5520. + | --ht=*)
  5521. + htmldir=$ac_optarg ;;
  5522. +
  5523. + -includedir | --includedir | --includedi | --included | --include \
  5524. + | --includ | --inclu | --incl | --inc)
  5525. + ac_prev=includedir ;;
  5526. + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  5527. + | --includ=* | --inclu=* | --incl=* | --inc=*)
  5528. + includedir=$ac_optarg ;;
  5529. +
  5530. + -infodir | --infodir | --infodi | --infod | --info | --inf)
  5531. + ac_prev=infodir ;;
  5532. + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  5533. + infodir=$ac_optarg ;;
  5534. +
  5535. + -libdir | --libdir | --libdi | --libd)
  5536. + ac_prev=libdir ;;
  5537. + -libdir=* | --libdir=* | --libdi=* | --libd=*)
  5538. + libdir=$ac_optarg ;;
  5539. +
  5540. + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  5541. + | --libexe | --libex | --libe)
  5542. + ac_prev=libexecdir ;;
  5543. + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  5544. + | --libexe=* | --libex=* | --libe=*)
  5545. + libexecdir=$ac_optarg ;;
  5546. +
  5547. + -localedir | --localedir | --localedi | --localed | --locale)
  5548. + ac_prev=localedir ;;
  5549. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  5550. + localedir=$ac_optarg ;;
  5551. +
  5552. + -localstatedir | --localstatedir | --localstatedi | --localstated \
  5553. + | --localstate | --localstat | --localsta | --localst | --locals)
  5554. + ac_prev=localstatedir ;;
  5555. + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  5556. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  5557. + localstatedir=$ac_optarg ;;
  5558. +
  5559. + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  5560. + ac_prev=mandir ;;
  5561. + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  5562. + mandir=$ac_optarg ;;
  5563. +
  5564. + -nfp | --nfp | --nf)
  5565. + # Obsolete; use --without-fp.
  5566. + with_fp=no ;;
  5567. +
  5568. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  5569. + | --no-cr | --no-c | -n)
  5570. + no_create=yes ;;
  5571. +
  5572. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  5573. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  5574. + no_recursion=yes ;;
  5575. +
  5576. + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  5577. + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  5578. + | --oldin | --oldi | --old | --ol | --o)
  5579. + ac_prev=oldincludedir ;;
  5580. + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  5581. + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  5582. + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  5583. + oldincludedir=$ac_optarg ;;
  5584. +
  5585. + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  5586. + ac_prev=prefix ;;
  5587. + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  5588. + prefix=$ac_optarg ;;
  5589. +
  5590. + -program-prefix | --program-prefix | --program-prefi | --program-pref \
  5591. + | --program-pre | --program-pr | --program-p)
  5592. + ac_prev=program_prefix ;;
  5593. + -program-prefix=* | --program-prefix=* | --program-prefi=* \
  5594. + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  5595. + program_prefix=$ac_optarg ;;
  5596. +
  5597. + -program-suffix | --program-suffix | --program-suffi | --program-suff \
  5598. + | --program-suf | --program-su | --program-s)
  5599. + ac_prev=program_suffix ;;
  5600. + -program-suffix=* | --program-suffix=* | --program-suffi=* \
  5601. + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  5602. + program_suffix=$ac_optarg ;;
  5603. +
  5604. + -program-transform-name | --program-transform-name \
  5605. + | --program-transform-nam | --program-transform-na \
  5606. + | --program-transform-n | --program-transform- \
  5607. + | --program-transform | --program-transfor \
  5608. + | --program-transfo | --program-transf \
  5609. + | --program-trans | --program-tran \
  5610. + | --progr-tra | --program-tr | --program-t)
  5611. + ac_prev=program_transform_name ;;
  5612. + -program-transform-name=* | --program-transform-name=* \
  5613. + | --program-transform-nam=* | --program-transform-na=* \
  5614. + | --program-transform-n=* | --program-transform-=* \
  5615. + | --program-transform=* | --program-transfor=* \
  5616. + | --program-transfo=* | --program-transf=* \
  5617. + | --program-trans=* | --program-tran=* \
  5618. + | --progr-tra=* | --program-tr=* | --program-t=*)
  5619. + program_transform_name=$ac_optarg ;;
  5620. +
  5621. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  5622. + ac_prev=pdfdir ;;
  5623. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  5624. + pdfdir=$ac_optarg ;;
  5625. +
  5626. + -psdir | --psdir | --psdi | --psd | --ps)
  5627. + ac_prev=psdir ;;
  5628. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  5629. + psdir=$ac_optarg ;;
  5630. +
  5631. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5632. + | -silent | --silent | --silen | --sile | --sil)
  5633. + silent=yes ;;
  5634. +
  5635. + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  5636. + ac_prev=sbindir ;;
  5637. + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  5638. + | --sbi=* | --sb=*)
  5639. + sbindir=$ac_optarg ;;
  5640. +
  5641. + -sharedstatedir | --sharedstatedir | --sharedstatedi \
  5642. + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  5643. + | --sharedst | --shareds | --shared | --share | --shar \
  5644. + | --sha | --sh)
  5645. + ac_prev=sharedstatedir ;;
  5646. + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  5647. + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  5648. + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  5649. + | --sha=* | --sh=*)
  5650. + sharedstatedir=$ac_optarg ;;
  5651. +
  5652. + -site | --site | --sit)
  5653. + ac_prev=site ;;
  5654. + -site=* | --site=* | --sit=*)
  5655. + site=$ac_optarg ;;
  5656. +
  5657. + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  5658. + ac_prev=srcdir ;;
  5659. + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  5660. + srcdir=$ac_optarg ;;
  5661. +
  5662. + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  5663. + | --syscon | --sysco | --sysc | --sys | --sy)
  5664. + ac_prev=sysconfdir ;;
  5665. + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  5666. + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  5667. + sysconfdir=$ac_optarg ;;
  5668. +
  5669. + -target | --target | --targe | --targ | --tar | --ta | --t)
  5670. + ac_prev=target_alias ;;
  5671. + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  5672. + target_alias=$ac_optarg ;;
  5673. +
  5674. + -v | -verbose | --verbose | --verbos | --verbo | --verb)
  5675. + verbose=yes ;;
  5676. +
  5677. + -version | --version | --versio | --versi | --vers | -V)
  5678. + ac_init_version=: ;;
  5679. +
  5680. + -with-* | --with-*)
  5681. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  5682. + # Reject names that are not valid shell variable names.
  5683. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  5684. + as_fn_error "invalid package name: $ac_useropt"
  5685. + ac_useropt_orig=$ac_useropt
  5686. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  5687. + case $ac_user_opts in
  5688. + *"
  5689. +"with_$ac_useropt"
  5690. +"*) ;;
  5691. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  5692. + ac_unrecognized_sep=', ';;
  5693. + esac
  5694. + eval with_$ac_useropt=\$ac_optarg ;;
  5695. +
  5696. + -without-* | --without-*)
  5697. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  5698. + # Reject names that are not valid shell variable names.
  5699. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  5700. + as_fn_error "invalid package name: $ac_useropt"
  5701. + ac_useropt_orig=$ac_useropt
  5702. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  5703. + case $ac_user_opts in
  5704. + *"
  5705. +"with_$ac_useropt"
  5706. +"*) ;;
  5707. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  5708. + ac_unrecognized_sep=', ';;
  5709. + esac
  5710. + eval with_$ac_useropt=no ;;
  5711. +
  5712. + --x)
  5713. + # Obsolete; use --with-x.
  5714. + with_x=yes ;;
  5715. +
  5716. + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  5717. + | --x-incl | --x-inc | --x-in | --x-i)
  5718. + ac_prev=x_includes ;;
  5719. + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  5720. + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  5721. + x_includes=$ac_optarg ;;
  5722. +
  5723. + -x-libraries | --x-libraries | --x-librarie | --x-librari \
  5724. + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  5725. + ac_prev=x_libraries ;;
  5726. + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  5727. + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  5728. + x_libraries=$ac_optarg ;;
  5729. +
  5730. + -*) as_fn_error "unrecognized option: \`$ac_option'
  5731. +Try \`$0 --help' for more information."
  5732. + ;;
  5733. +
  5734. + *=*)
  5735. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  5736. + # Reject names that are not valid shell variable names.
  5737. + case $ac_envvar in #(
  5738. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  5739. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  5740. + esac
  5741. + eval $ac_envvar=\$ac_optarg
  5742. + export $ac_envvar ;;
  5743. +
  5744. + *)
  5745. + # FIXME: should be removed in autoconf 3.0.
  5746. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  5747. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  5748. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  5749. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  5750. + ;;
  5751. +
  5752. + esac
  5753. +done
  5754. +
  5755. +if test -n "$ac_prev"; then
  5756. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  5757. + as_fn_error "missing argument to $ac_option"
  5758. +fi
  5759. +
  5760. +if test -n "$ac_unrecognized_opts"; then
  5761. + case $enable_option_checking in
  5762. + no) ;;
  5763. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  5764. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  5765. + esac
  5766. +fi
  5767. +
  5768. +# Check all directory arguments for consistency.
  5769. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  5770. + datadir sysconfdir sharedstatedir localstatedir includedir \
  5771. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  5772. + libdir localedir mandir
  5773. +do
  5774. + eval ac_val=\$$ac_var
  5775. + # Remove trailing slashes.
  5776. + case $ac_val in
  5777. + */ )
  5778. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  5779. + eval $ac_var=\$ac_val;;
  5780. + esac
  5781. + # Be sure to have absolute directory names.
  5782. + case $ac_val in
  5783. + [\\/$]* | ?:[\\/]* ) continue;;
  5784. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  5785. + esac
  5786. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  5787. +done
  5788. +
  5789. +# There might be people who depend on the old broken behavior: `$host'
  5790. +# used to hold the argument of --host etc.
  5791. +# FIXME: To remove some day.
  5792. +build=$build_alias
  5793. +host=$host_alias
  5794. +target=$target_alias
  5795. +
  5796. +# FIXME: To remove some day.
  5797. +if test "x$host_alias" != x; then
  5798. + if test "x$build_alias" = x; then
  5799. + cross_compiling=maybe
  5800. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  5801. + If a cross compiler is detected then cross compile mode will be used." >&2
  5802. + elif test "x$build_alias" != "x$host_alias"; then
  5803. + cross_compiling=yes
  5804. + fi
  5805. +fi
  5806. +
  5807. +ac_tool_prefix=
  5808. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  5809. +
  5810. +test "$silent" = yes && exec 6>/dev/null
  5811. +
  5812. +
  5813. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  5814. +ac_ls_di=`ls -di .` &&
  5815. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  5816. + as_fn_error "working directory cannot be determined"
  5817. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  5818. + as_fn_error "pwd does not report name of working directory"
  5819. +
  5820. +
  5821. +# Find the source files, if location was not specified.
  5822. +if test -z "$srcdir"; then
  5823. + ac_srcdir_defaulted=yes
  5824. + # Try the directory containing this script, then the parent directory.
  5825. + ac_confdir=`$as_dirname -- "$as_myself" ||
  5826. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5827. + X"$as_myself" : 'X\(//\)[^/]' \| \
  5828. + X"$as_myself" : 'X\(//\)$' \| \
  5829. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  5830. +$as_echo X"$as_myself" |
  5831. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5832. + s//\1/
  5833. + q
  5834. + }
  5835. + /^X\(\/\/\)[^/].*/{
  5836. + s//\1/
  5837. + q
  5838. + }
  5839. + /^X\(\/\/\)$/{
  5840. + s//\1/
  5841. + q
  5842. + }
  5843. + /^X\(\/\).*/{
  5844. + s//\1/
  5845. + q
  5846. + }
  5847. + s/.*/./; q'`
  5848. + srcdir=$ac_confdir
  5849. + if test ! -r "$srcdir/$ac_unique_file"; then
  5850. + srcdir=..
  5851. + fi
  5852. +else
  5853. + ac_srcdir_defaulted=no
  5854. +fi
  5855. +if test ! -r "$srcdir/$ac_unique_file"; then
  5856. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  5857. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  5858. +fi
  5859. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  5860. +ac_abs_confdir=`(
  5861. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  5862. + pwd)`
  5863. +# When building in place, set srcdir=.
  5864. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  5865. + srcdir=.
  5866. +fi
  5867. +# Remove unnecessary trailing slashes from srcdir.
  5868. +# Double slashes in file names in object file debugging info
  5869. +# mess up M-x gdb in Emacs.
  5870. +case $srcdir in
  5871. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  5872. +esac
  5873. +for ac_var in $ac_precious_vars; do
  5874. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  5875. + eval ac_env_${ac_var}_value=\$${ac_var}
  5876. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  5877. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  5878. +done
  5879. +
  5880. +#
  5881. +# Report the --help message.
  5882. +#
  5883. +if test "$ac_init_help" = "long"; then
  5884. + # Omit some internal or obsolete options to make the list less imposing.
  5885. + # This message is too long to be a string in the A/UX 3.1 sh.
  5886. + cat <<_ACEOF
  5887. +\`configure' configures tslib 0.0.2 to adapt to many kinds of systems.
  5888. +
  5889. +Usage: $0 [OPTION]... [VAR=VALUE]...
  5890. +
  5891. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  5892. +VAR=VALUE. See below for descriptions of some of the useful variables.
  5893. +
  5894. +Defaults for the options are specified in brackets.
  5895. +
  5896. +Configuration:
  5897. + -h, --help display this help and exit
  5898. + --help=short display options specific to this package
  5899. + --help=recursive display the short help of all the included packages
  5900. + -V, --version display version information and exit
  5901. + -q, --quiet, --silent do not print \`checking...' messages
  5902. + --cache-file=FILE cache test results in FILE [disabled]
  5903. + -C, --config-cache alias for \`--cache-file=config.cache'
  5904. + -n, --no-create do not create output files
  5905. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  5906. +
  5907. +Installation directories:
  5908. + --prefix=PREFIX install architecture-independent files in PREFIX
  5909. + [$ac_default_prefix]
  5910. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  5911. + [PREFIX]
  5912. +
  5913. +By default, \`make install' will install all the files in
  5914. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  5915. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  5916. +for instance \`--prefix=\$HOME'.
  5917. +
  5918. +For better control, use the options below.
  5919. +
  5920. +Fine tuning of the installation directories:
  5921. + --bindir=DIR user executables [EPREFIX/bin]
  5922. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  5923. + --libexecdir=DIR program executables [EPREFIX/libexec]
  5924. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  5925. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  5926. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  5927. + --libdir=DIR object code libraries [EPREFIX/lib]
  5928. + --includedir=DIR C header files [PREFIX/include]
  5929. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  5930. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  5931. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  5932. + --infodir=DIR info documentation [DATAROOTDIR/info]
  5933. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  5934. + --mandir=DIR man documentation [DATAROOTDIR/man]
  5935. + --docdir=DIR documentation root [DATAROOTDIR/doc/tslib]
  5936. + --htmldir=DIR html documentation [DOCDIR]
  5937. + --dvidir=DIR dvi documentation [DOCDIR]
  5938. + --pdfdir=DIR pdf documentation [DOCDIR]
  5939. + --psdir=DIR ps documentation [DOCDIR]
  5940. +_ACEOF
  5941. +
  5942. + cat <<\_ACEOF
  5943. +
  5944. +Program names:
  5945. + --program-prefix=PREFIX prepend PREFIX to installed program names
  5946. + --program-suffix=SUFFIX append SUFFIX to installed program names
  5947. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  5948. +
  5949. +System types:
  5950. + --build=BUILD configure for building on BUILD [guessed]
  5951. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  5952. +_ACEOF
  5953. +fi
  5954. +
  5955. +if test -n "$ac_init_help"; then
  5956. + case $ac_init_help in
  5957. + short | recursive ) echo "Configuration of tslib 0.0.2:";;
  5958. + esac
  5959. + cat <<\_ACEOF
  5960. +
  5961. +Optional Features:
  5962. + --disable-option-checking ignore unrecognized --enable/--with options
  5963. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  5964. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  5965. + --disable-dependency-tracking speeds up one-time build
  5966. + --enable-dependency-tracking do not reject slow dependency extractors
  5967. + --enable-static[=PKGS] build static libraries [default=no]
  5968. + --enable-shared[=PKGS] build shared libraries [default=yes]
  5969. + --enable-fast-install[=PKGS]
  5970. + optimize for fast installation [default=yes]
  5971. + --disable-libtool-lock avoid locking (might break parallel builds)
  5972. + --enable-linear Enable building of linear scaling (default=yes)
  5973. + --enable-dejitter Enable building of dejitter filter (default=yes)
  5974. + --enable-linear-h2200 Enable building of linearizing filter for iPAQ h2200
  5975. + (default=yes)
  5976. + --enable-variance Enable building of variance filter (default=yes)
  5977. + --enable-pthres Enable building of pthres filter (default=yes)
  5978. + --enable-ucb1x00 Enable building of ucb1x00 raw module (UCB1x00
  5979. + support) (default=yes)
  5980. + --enable-corgi Enable building of corgi raw module (Sharp Zaurus
  5981. + sl-c7x0 support) (default=yes)
  5982. + --enable-collie Enable building of collie raw module (Sharp Zaurus
  5983. + sl-5500/5000d support) (default=yes)
  5984. + --enable-h3600 Enable building of h3600 raw module (HP iPaq H3600
  5985. + support) (default=yes)
  5986. + --enable-mk712 Enable building of mk712 raw module (Hi tachi
  5987. + support) (default=yes)
  5988. + --enable-arctic2 Enable building of arctic2 raw module (IBM Arctic II
  5989. + support) (default=yes)
  5990. + --enable-input Enable building of generic input raw module (Linux
  5991. + /dev/input/eventN support) (default=yes)
  5992. + --enable-debug
  5993. + Enable debug messages from filters (default=no)
  5994. +
  5995. +
  5996. +Optional Packages:
  5997. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  5998. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  5999. + --with-hidden_visibility=VAL
  6000. + use -fvisibility=hidden (default VAL is 'auto')
  6001. + --with-pic try to use only PIC/non-PIC objects [default=use
  6002. + both]
  6003. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  6004. + --with-plugindir=ARG Where to look for plugins (default=${libdir}/ts)
  6005. +
  6006. +Some influential environment variables:
  6007. + CXX C++ compiler command
  6008. + CXXFLAGS C++ compiler flags
  6009. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  6010. + nonstandard directory <lib dir>
  6011. + LIBS libraries to pass to the linker, e.g. -l<library>
  6012. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  6013. + you have headers in a nonstandard directory <include dir>
  6014. + CC C compiler command
  6015. + CFLAGS C compiler flags
  6016. + CPP C preprocessor
  6017. + CXXCPP C++ preprocessor
  6018. +
  6019. +Use these variables to override the choices made by `configure' or to help
  6020. +it to find libraries and programs with nonstandard names/locations.
  6021. +
  6022. +Report bugs to <kergoth@handhelds.org>.
  6023. +_ACEOF
  6024. +ac_status=$?
  6025. +fi
  6026. +
  6027. +if test "$ac_init_help" = "recursive"; then
  6028. + # If there are subdirs, report their specific --help.
  6029. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  6030. + test -d "$ac_dir" ||
  6031. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  6032. + continue
  6033. + ac_builddir=.
  6034. +
  6035. +case "$ac_dir" in
  6036. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6037. +*)
  6038. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6039. + # A ".." for each directory in $ac_dir_suffix.
  6040. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6041. + case $ac_top_builddir_sub in
  6042. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6043. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6044. + esac ;;
  6045. +esac
  6046. +ac_abs_top_builddir=$ac_pwd
  6047. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6048. +# for backward compatibility:
  6049. +ac_top_builddir=$ac_top_build_prefix
  6050. +
  6051. +case $srcdir in
  6052. + .) # We are building in place.
  6053. + ac_srcdir=.
  6054. + ac_top_srcdir=$ac_top_builddir_sub
  6055. + ac_abs_top_srcdir=$ac_pwd ;;
  6056. + [\\/]* | ?:[\\/]* ) # Absolute name.
  6057. + ac_srcdir=$srcdir$ac_dir_suffix;
  6058. + ac_top_srcdir=$srcdir
  6059. + ac_abs_top_srcdir=$srcdir ;;
  6060. + *) # Relative name.
  6061. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6062. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  6063. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6064. +esac
  6065. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6066. +
  6067. + cd "$ac_dir" || { ac_status=$?; continue; }
  6068. + # Check for guested configure.
  6069. + if test -f "$ac_srcdir/configure.gnu"; then
  6070. + echo &&
  6071. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  6072. + elif test -f "$ac_srcdir/configure"; then
  6073. + echo &&
  6074. + $SHELL "$ac_srcdir/configure" --help=recursive
  6075. + else
  6076. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  6077. + fi || ac_status=$?
  6078. + cd "$ac_pwd" || { ac_status=$?; break; }
  6079. + done
  6080. +fi
  6081. +
  6082. +test -n "$ac_init_help" && exit $ac_status
  6083. +if $ac_init_version; then
  6084. + cat <<\_ACEOF
  6085. +tslib configure 0.0.2
  6086. +generated by GNU Autoconf 2.65
  6087. +
  6088. +Copyright (C) 2009 Free Software Foundation, Inc.
  6089. +This configure script is free software; the Free Software Foundation
  6090. +gives unlimited permission to copy, distribute and modify it.
  6091. +_ACEOF
  6092. + exit
  6093. +fi
  6094. +
  6095. +## ------------------------ ##
  6096. +## Autoconf initialization. ##
  6097. +## ------------------------ ##
  6098. +
  6099. +# ac_fn_cxx_try_compile LINENO
  6100. +# ----------------------------
  6101. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  6102. +ac_fn_cxx_try_compile ()
  6103. +{
  6104. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6105. + rm -f conftest.$ac_objext
  6106. + if { { ac_try="$ac_compile"
  6107. +case "(($ac_try" in
  6108. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6109. + *) ac_try_echo=$ac_try;;
  6110. +esac
  6111. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6112. +$as_echo "$ac_try_echo"; } >&5
  6113. + (eval "$ac_compile") 2>conftest.err
  6114. + ac_status=$?
  6115. + if test -s conftest.err; then
  6116. + grep -v '^ *+' conftest.err >conftest.er1
  6117. + cat conftest.er1 >&5
  6118. + mv -f conftest.er1 conftest.err
  6119. + fi
  6120. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6121. + test $ac_status = 0; } && {
  6122. + test -z "$ac_cxx_werror_flag" ||
  6123. + test ! -s conftest.err
  6124. + } && test -s conftest.$ac_objext; then :
  6125. + ac_retval=0
  6126. +else
  6127. + $as_echo "$as_me: failed program was:" >&5
  6128. +sed 's/^/| /' conftest.$ac_ext >&5
  6129. +
  6130. + ac_retval=1
  6131. +fi
  6132. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6133. + as_fn_set_status $ac_retval
  6134. +
  6135. +} # ac_fn_cxx_try_compile
  6136. +
  6137. +# ac_fn_c_try_compile LINENO
  6138. +# --------------------------
  6139. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  6140. +ac_fn_c_try_compile ()
  6141. +{
  6142. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6143. + rm -f conftest.$ac_objext
  6144. + if { { ac_try="$ac_compile"
  6145. +case "(($ac_try" in
  6146. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6147. + *) ac_try_echo=$ac_try;;
  6148. +esac
  6149. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6150. +$as_echo "$ac_try_echo"; } >&5
  6151. + (eval "$ac_compile") 2>conftest.err
  6152. + ac_status=$?
  6153. + if test -s conftest.err; then
  6154. + grep -v '^ *+' conftest.err >conftest.er1
  6155. + cat conftest.er1 >&5
  6156. + mv -f conftest.er1 conftest.err
  6157. + fi
  6158. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6159. + test $ac_status = 0; } && {
  6160. + test -z "$ac_c_werror_flag" ||
  6161. + test ! -s conftest.err
  6162. + } && test -s conftest.$ac_objext; then :
  6163. + ac_retval=0
  6164. +else
  6165. + $as_echo "$as_me: failed program was:" >&5
  6166. +sed 's/^/| /' conftest.$ac_ext >&5
  6167. +
  6168. + ac_retval=1
  6169. +fi
  6170. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6171. + as_fn_set_status $ac_retval
  6172. +
  6173. +} # ac_fn_c_try_compile
  6174. +
  6175. +# ac_fn_c_try_cpp LINENO
  6176. +# ----------------------
  6177. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  6178. +ac_fn_c_try_cpp ()
  6179. +{
  6180. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6181. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  6182. +case "(($ac_try" in
  6183. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6184. + *) ac_try_echo=$ac_try;;
  6185. +esac
  6186. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6187. +$as_echo "$ac_try_echo"; } >&5
  6188. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  6189. + ac_status=$?
  6190. + if test -s conftest.err; then
  6191. + grep -v '^ *+' conftest.err >conftest.er1
  6192. + cat conftest.er1 >&5
  6193. + mv -f conftest.er1 conftest.err
  6194. + fi
  6195. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6196. + test $ac_status = 0; } >/dev/null && {
  6197. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6198. + test ! -s conftest.err
  6199. + }; then :
  6200. + ac_retval=0
  6201. +else
  6202. + $as_echo "$as_me: failed program was:" >&5
  6203. +sed 's/^/| /' conftest.$ac_ext >&5
  6204. +
  6205. + ac_retval=1
  6206. +fi
  6207. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6208. + as_fn_set_status $ac_retval
  6209. +
  6210. +} # ac_fn_c_try_cpp
  6211. +
  6212. +# ac_fn_c_try_link LINENO
  6213. +# -----------------------
  6214. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  6215. +ac_fn_c_try_link ()
  6216. +{
  6217. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6218. + rm -f conftest.$ac_objext conftest$ac_exeext
  6219. + if { { ac_try="$ac_link"
  6220. +case "(($ac_try" in
  6221. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6222. + *) ac_try_echo=$ac_try;;
  6223. +esac
  6224. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6225. +$as_echo "$ac_try_echo"; } >&5
  6226. + (eval "$ac_link") 2>conftest.err
  6227. + ac_status=$?
  6228. + if test -s conftest.err; then
  6229. + grep -v '^ *+' conftest.err >conftest.er1
  6230. + cat conftest.er1 >&5
  6231. + mv -f conftest.er1 conftest.err
  6232. + fi
  6233. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6234. + test $ac_status = 0; } && {
  6235. + test -z "$ac_c_werror_flag" ||
  6236. + test ! -s conftest.err
  6237. + } && test -s conftest$ac_exeext && {
  6238. + test "$cross_compiling" = yes ||
  6239. + $as_test_x conftest$ac_exeext
  6240. + }; then :
  6241. + ac_retval=0
  6242. +else
  6243. + $as_echo "$as_me: failed program was:" >&5
  6244. +sed 's/^/| /' conftest.$ac_ext >&5
  6245. +
  6246. + ac_retval=1
  6247. +fi
  6248. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  6249. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  6250. + # interfere with the next link command; also delete a directory that is
  6251. + # left behind by Apple's compiler. We do this before executing the actions.
  6252. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  6253. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6254. + as_fn_set_status $ac_retval
  6255. +
  6256. +} # ac_fn_c_try_link
  6257. +
  6258. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  6259. +# -------------------------------------------------------
  6260. +# Tests whether HEADER exists and can be compiled using the include files in
  6261. +# INCLUDES, setting the cache variable VAR accordingly.
  6262. +ac_fn_c_check_header_compile ()
  6263. +{
  6264. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6265. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  6266. +$as_echo_n "checking for $2... " >&6; }
  6267. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6268. + $as_echo_n "(cached) " >&6
  6269. +else
  6270. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. +/* end confdefs.h. */
  6272. +$4
  6273. +#include <$2>
  6274. +_ACEOF
  6275. +if ac_fn_c_try_compile "$LINENO"; then :
  6276. + eval "$3=yes"
  6277. +else
  6278. + eval "$3=no"
  6279. +fi
  6280. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6281. +fi
  6282. +eval ac_res=\$$3
  6283. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6284. +$as_echo "$ac_res" >&6; }
  6285. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6286. +
  6287. +} # ac_fn_c_check_header_compile
  6288. +
  6289. +# ac_fn_c_try_run LINENO
  6290. +# ----------------------
  6291. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  6292. +# that executables *can* be run.
  6293. +ac_fn_c_try_run ()
  6294. +{
  6295. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6296. + if { { ac_try="$ac_link"
  6297. +case "(($ac_try" in
  6298. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6299. + *) ac_try_echo=$ac_try;;
  6300. +esac
  6301. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6302. +$as_echo "$ac_try_echo"; } >&5
  6303. + (eval "$ac_link") 2>&5
  6304. + ac_status=$?
  6305. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6306. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  6307. + { { case "(($ac_try" in
  6308. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. + *) ac_try_echo=$ac_try;;
  6310. +esac
  6311. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6312. +$as_echo "$ac_try_echo"; } >&5
  6313. + (eval "$ac_try") 2>&5
  6314. + ac_status=$?
  6315. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6316. + test $ac_status = 0; }; }; then :
  6317. + ac_retval=0
  6318. +else
  6319. + $as_echo "$as_me: program exited with status $ac_status" >&5
  6320. + $as_echo "$as_me: failed program was:" >&5
  6321. +sed 's/^/| /' conftest.$ac_ext >&5
  6322. +
  6323. + ac_retval=$ac_status
  6324. +fi
  6325. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  6326. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6327. + as_fn_set_status $ac_retval
  6328. +
  6329. +} # ac_fn_c_try_run
  6330. +
  6331. +# ac_fn_c_check_func LINENO FUNC VAR
  6332. +# ----------------------------------
  6333. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  6334. +ac_fn_c_check_func ()
  6335. +{
  6336. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6337. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  6338. +$as_echo_n "checking for $2... " >&6; }
  6339. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6340. + $as_echo_n "(cached) " >&6
  6341. +else
  6342. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. +/* end confdefs.h. */
  6344. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  6345. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6346. +#define $2 innocuous_$2
  6347. +
  6348. +/* System header to define __stub macros and hopefully few prototypes,
  6349. + which can conflict with char $2 (); below.
  6350. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6351. + <limits.h> exists even on freestanding compilers. */
  6352. +
  6353. +#ifdef __STDC__
  6354. +# include <limits.h>
  6355. +#else
  6356. +# include <assert.h>
  6357. +#endif
  6358. +
  6359. +#undef $2
  6360. +
  6361. +/* Override any GCC internal prototype to avoid an error.
  6362. + Use char because int might match the return type of a GCC
  6363. + builtin and then its argument prototype would still apply. */
  6364. +#ifdef __cplusplus
  6365. +extern "C"
  6366. +#endif
  6367. +char $2 ();
  6368. +/* The GNU C library defines this for functions which it implements
  6369. + to always fail with ENOSYS. Some functions are actually named
  6370. + something starting with __ and the normal name is an alias. */
  6371. +#if defined __stub_$2 || defined __stub___$2
  6372. +choke me
  6373. +#endif
  6374. +
  6375. +int
  6376. +main ()
  6377. +{
  6378. +return $2 ();
  6379. + ;
  6380. + return 0;
  6381. +}
  6382. +_ACEOF
  6383. +if ac_fn_c_try_link "$LINENO"; then :
  6384. + eval "$3=yes"
  6385. +else
  6386. + eval "$3=no"
  6387. +fi
  6388. +rm -f core conftest.err conftest.$ac_objext \
  6389. + conftest$ac_exeext conftest.$ac_ext
  6390. +fi
  6391. +eval ac_res=\$$3
  6392. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6393. +$as_echo "$ac_res" >&6; }
  6394. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6395. +
  6396. +} # ac_fn_c_check_func
  6397. +
  6398. +# ac_fn_cxx_try_cpp LINENO
  6399. +# ------------------------
  6400. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  6401. +ac_fn_cxx_try_cpp ()
  6402. +{
  6403. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6404. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  6405. +case "(($ac_try" in
  6406. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6407. + *) ac_try_echo=$ac_try;;
  6408. +esac
  6409. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6410. +$as_echo "$ac_try_echo"; } >&5
  6411. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  6412. + ac_status=$?
  6413. + if test -s conftest.err; then
  6414. + grep -v '^ *+' conftest.err >conftest.er1
  6415. + cat conftest.er1 >&5
  6416. + mv -f conftest.er1 conftest.err
  6417. + fi
  6418. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6419. + test $ac_status = 0; } >/dev/null && {
  6420. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6421. + test ! -s conftest.err
  6422. + }; then :
  6423. + ac_retval=0
  6424. +else
  6425. + $as_echo "$as_me: failed program was:" >&5
  6426. +sed 's/^/| /' conftest.$ac_ext >&5
  6427. +
  6428. + ac_retval=1
  6429. +fi
  6430. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6431. + as_fn_set_status $ac_retval
  6432. +
  6433. +} # ac_fn_cxx_try_cpp
  6434. +
  6435. +# ac_fn_cxx_try_link LINENO
  6436. +# -------------------------
  6437. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  6438. +ac_fn_cxx_try_link ()
  6439. +{
  6440. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6441. + rm -f conftest.$ac_objext conftest$ac_exeext
  6442. + if { { ac_try="$ac_link"
  6443. +case "(($ac_try" in
  6444. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6445. + *) ac_try_echo=$ac_try;;
  6446. +esac
  6447. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6448. +$as_echo "$ac_try_echo"; } >&5
  6449. + (eval "$ac_link") 2>conftest.err
  6450. + ac_status=$?
  6451. + if test -s conftest.err; then
  6452. + grep -v '^ *+' conftest.err >conftest.er1
  6453. + cat conftest.er1 >&5
  6454. + mv -f conftest.er1 conftest.err
  6455. + fi
  6456. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6457. + test $ac_status = 0; } && {
  6458. + test -z "$ac_cxx_werror_flag" ||
  6459. + test ! -s conftest.err
  6460. + } && test -s conftest$ac_exeext && {
  6461. + test "$cross_compiling" = yes ||
  6462. + $as_test_x conftest$ac_exeext
  6463. + }; then :
  6464. + ac_retval=0
  6465. +else
  6466. + $as_echo "$as_me: failed program was:" >&5
  6467. +sed 's/^/| /' conftest.$ac_ext >&5
  6468. +
  6469. + ac_retval=1
  6470. +fi
  6471. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  6472. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  6473. + # interfere with the next link command; also delete a directory that is
  6474. + # left behind by Apple's compiler. We do this before executing the actions.
  6475. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  6476. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6477. + as_fn_set_status $ac_retval
  6478. +
  6479. +} # ac_fn_cxx_try_link
  6480. +
  6481. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  6482. +# -------------------------------------------------------
  6483. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  6484. +# the include files in INCLUDES and setting the cache variable VAR
  6485. +# accordingly.
  6486. +ac_fn_c_check_header_mongrel ()
  6487. +{
  6488. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6489. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6490. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  6491. +$as_echo_n "checking for $2... " >&6; }
  6492. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6493. + $as_echo_n "(cached) " >&6
  6494. +fi
  6495. +eval ac_res=\$$3
  6496. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6497. +$as_echo "$ac_res" >&6; }
  6498. +else
  6499. + # Is the header compilable?
  6500. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  6501. +$as_echo_n "checking $2 usability... " >&6; }
  6502. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6503. +/* end confdefs.h. */
  6504. +$4
  6505. +#include <$2>
  6506. +_ACEOF
  6507. +if ac_fn_c_try_compile "$LINENO"; then :
  6508. + ac_header_compiler=yes
  6509. +else
  6510. + ac_header_compiler=no
  6511. +fi
  6512. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  6514. +$as_echo "$ac_header_compiler" >&6; }
  6515. +
  6516. +# Is the header present?
  6517. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  6518. +$as_echo_n "checking $2 presence... " >&6; }
  6519. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. +/* end confdefs.h. */
  6521. +#include <$2>
  6522. +_ACEOF
  6523. +if ac_fn_c_try_cpp "$LINENO"; then :
  6524. + ac_header_preproc=yes
  6525. +else
  6526. + ac_header_preproc=no
  6527. +fi
  6528. +rm -f conftest.err conftest.$ac_ext
  6529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  6530. +$as_echo "$ac_header_preproc" >&6; }
  6531. +
  6532. +# So? What about this header?
  6533. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  6534. + yes:no: )
  6535. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  6536. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6537. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  6538. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  6539. + ;;
  6540. + no:yes:* )
  6541. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  6542. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  6543. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  6544. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  6545. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  6546. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  6547. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  6548. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  6549. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  6550. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  6551. +( cat <<\_ASBOX
  6552. +## ------------------------------------ ##
  6553. +## Report this to kergoth@handhelds.org ##
  6554. +## ------------------------------------ ##
  6555. +_ASBOX
  6556. + ) | sed "s/^/$as_me: WARNING: /" >&2
  6557. + ;;
  6558. +esac
  6559. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  6560. +$as_echo_n "checking for $2... " >&6; }
  6561. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6562. + $as_echo_n "(cached) " >&6
  6563. +else
  6564. + eval "$3=\$ac_header_compiler"
  6565. +fi
  6566. +eval ac_res=\$$3
  6567. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6568. +$as_echo "$ac_res" >&6; }
  6569. +fi
  6570. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6571. +
  6572. +} # ac_fn_c_check_header_mongrel
  6573. +
  6574. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  6575. +# -------------------------------------------
  6576. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  6577. +# variable VAR accordingly.
  6578. +ac_fn_c_check_type ()
  6579. +{
  6580. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6581. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  6582. +$as_echo_n "checking for $2... " >&6; }
  6583. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  6584. + $as_echo_n "(cached) " >&6
  6585. +else
  6586. + eval "$3=no"
  6587. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6588. +/* end confdefs.h. */
  6589. +$4
  6590. +int
  6591. +main ()
  6592. +{
  6593. +if (sizeof ($2))
  6594. + return 0;
  6595. + ;
  6596. + return 0;
  6597. +}
  6598. +_ACEOF
  6599. +if ac_fn_c_try_compile "$LINENO"; then :
  6600. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6601. +/* end confdefs.h. */
  6602. +$4
  6603. +int
  6604. +main ()
  6605. +{
  6606. +if (sizeof (($2)))
  6607. + return 0;
  6608. + ;
  6609. + return 0;
  6610. +}
  6611. +_ACEOF
  6612. +if ac_fn_c_try_compile "$LINENO"; then :
  6613. +
  6614. +else
  6615. + eval "$3=yes"
  6616. +fi
  6617. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6618. +fi
  6619. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6620. +fi
  6621. +eval ac_res=\$$3
  6622. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6623. +$as_echo "$ac_res" >&6; }
  6624. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  6625. +
  6626. +} # ac_fn_c_check_type
  6627. +cat >config.log <<_ACEOF
  6628. +This file contains any messages produced by compilers while
  6629. +running configure, to aid debugging if configure makes a mistake.
  6630. +
  6631. +It was created by tslib $as_me 0.0.2, which was
  6632. +generated by GNU Autoconf 2.65. Invocation command line was
  6633. +
  6634. + $ $0 $@
  6635. +
  6636. +_ACEOF
  6637. +exec 5>>config.log
  6638. +{
  6639. +cat <<_ASUNAME
  6640. +## --------- ##
  6641. +## Platform. ##
  6642. +## --------- ##
  6643. +
  6644. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  6645. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  6646. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  6647. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  6648. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  6649. +
  6650. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  6651. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  6652. +
  6653. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  6654. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  6655. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  6656. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  6657. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  6658. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  6659. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  6660. +
  6661. +_ASUNAME
  6662. +
  6663. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. +for as_dir in $PATH
  6665. +do
  6666. + IFS=$as_save_IFS
  6667. + test -z "$as_dir" && as_dir=.
  6668. + $as_echo "PATH: $as_dir"
  6669. + done
  6670. +IFS=$as_save_IFS
  6671. +
  6672. +} >&5
  6673. +
  6674. +cat >&5 <<_ACEOF
  6675. +
  6676. +
  6677. +## ----------- ##
  6678. +## Core tests. ##
  6679. +## ----------- ##
  6680. +
  6681. +_ACEOF
  6682. +
  6683. +
  6684. +# Keep a trace of the command line.
  6685. +# Strip out --no-create and --no-recursion so they do not pile up.
  6686. +# Strip out --silent because we don't want to record it for future runs.
  6687. +# Also quote any args containing shell meta-characters.
  6688. +# Make two passes to allow for proper duplicate-argument suppression.
  6689. +ac_configure_args=
  6690. +ac_configure_args0=
  6691. +ac_configure_args1=
  6692. +ac_must_keep_next=false
  6693. +for ac_pass in 1 2
  6694. +do
  6695. + for ac_arg
  6696. + do
  6697. + case $ac_arg in
  6698. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  6699. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6700. + | -silent | --silent | --silen | --sile | --sil)
  6701. + continue ;;
  6702. + *\'*)
  6703. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6704. + esac
  6705. + case $ac_pass in
  6706. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  6707. + 2)
  6708. + as_fn_append ac_configure_args1 " '$ac_arg'"
  6709. + if test $ac_must_keep_next = true; then
  6710. + ac_must_keep_next=false # Got value, back to normal.
  6711. + else
  6712. + case $ac_arg in
  6713. + *=* | --config-cache | -C | -disable-* | --disable-* \
  6714. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6715. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6716. + | -with-* | --with-* | -without-* | --without-* | --x)
  6717. + case "$ac_configure_args0 " in
  6718. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  6719. + esac
  6720. + ;;
  6721. + -* ) ac_must_keep_next=true ;;
  6722. + esac
  6723. + fi
  6724. + as_fn_append ac_configure_args " '$ac_arg'"
  6725. + ;;
  6726. + esac
  6727. + done
  6728. +done
  6729. +{ ac_configure_args0=; unset ac_configure_args0;}
  6730. +{ ac_configure_args1=; unset ac_configure_args1;}
  6731. +
  6732. +# When interrupted or exit'd, cleanup temporary files, and complete
  6733. +# config.log. We remove comments because anyway the quotes in there
  6734. +# would cause problems or look ugly.
  6735. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  6736. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  6737. +trap 'exit_status=$?
  6738. + # Save into config.log some information that might help in debugging.
  6739. + {
  6740. + echo
  6741. +
  6742. + cat <<\_ASBOX
  6743. +## ---------------- ##
  6744. +## Cache variables. ##
  6745. +## ---------------- ##
  6746. +_ASBOX
  6747. + echo
  6748. + # The following way of writing the cache mishandles newlines in values,
  6749. +(
  6750. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  6751. + eval ac_val=\$$ac_var
  6752. + case $ac_val in #(
  6753. + *${as_nl}*)
  6754. + case $ac_var in #(
  6755. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6756. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6757. + esac
  6758. + case $ac_var in #(
  6759. + _ | IFS | as_nl) ;; #(
  6760. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6761. + *) { eval $ac_var=; unset $ac_var;} ;;
  6762. + esac ;;
  6763. + esac
  6764. + done
  6765. + (set) 2>&1 |
  6766. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  6767. + *${as_nl}ac_space=\ *)
  6768. + sed -n \
  6769. + "s/'\''/'\''\\\\'\'''\''/g;
  6770. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  6771. + ;; #(
  6772. + *)
  6773. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6774. + ;;
  6775. + esac |
  6776. + sort
  6777. +)
  6778. + echo
  6779. +
  6780. + cat <<\_ASBOX
  6781. +## ----------------- ##
  6782. +## Output variables. ##
  6783. +## ----------------- ##
  6784. +_ASBOX
  6785. + echo
  6786. + for ac_var in $ac_subst_vars
  6787. + do
  6788. + eval ac_val=\$$ac_var
  6789. + case $ac_val in
  6790. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  6791. + esac
  6792. + $as_echo "$ac_var='\''$ac_val'\''"
  6793. + done | sort
  6794. + echo
  6795. +
  6796. + if test -n "$ac_subst_files"; then
  6797. + cat <<\_ASBOX
  6798. +## ------------------- ##
  6799. +## File substitutions. ##
  6800. +## ------------------- ##
  6801. +_ASBOX
  6802. + echo
  6803. + for ac_var in $ac_subst_files
  6804. + do
  6805. + eval ac_val=\$$ac_var
  6806. + case $ac_val in
  6807. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  6808. + esac
  6809. + $as_echo "$ac_var='\''$ac_val'\''"
  6810. + done | sort
  6811. + echo
  6812. + fi
  6813. +
  6814. + if test -s confdefs.h; then
  6815. + cat <<\_ASBOX
  6816. +## ----------- ##
  6817. +## confdefs.h. ##
  6818. +## ----------- ##
  6819. +_ASBOX
  6820. + echo
  6821. + cat confdefs.h
  6822. + echo
  6823. + fi
  6824. + test "$ac_signal" != 0 &&
  6825. + $as_echo "$as_me: caught signal $ac_signal"
  6826. + $as_echo "$as_me: exit $exit_status"
  6827. + } >&5
  6828. + rm -f core *.core core.conftest.* &&
  6829. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  6830. + exit $exit_status
  6831. +' 0
  6832. +for ac_signal in 1 2 13 15; do
  6833. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  6834. +done
  6835. +ac_signal=0
  6836. +
  6837. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  6838. +rm -f -r conftest* confdefs.h
  6839. +
  6840. +$as_echo "/* confdefs.h */" > confdefs.h
  6841. +
  6842. +# Predefined preprocessor variables.
  6843. +
  6844. +cat >>confdefs.h <<_ACEOF
  6845. +#define PACKAGE_NAME "$PACKAGE_NAME"
  6846. +_ACEOF
  6847. +
  6848. +cat >>confdefs.h <<_ACEOF
  6849. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  6850. +_ACEOF
  6851. +
  6852. +cat >>confdefs.h <<_ACEOF
  6853. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  6854. +_ACEOF
  6855. +
  6856. +cat >>confdefs.h <<_ACEOF
  6857. +#define PACKAGE_STRING "$PACKAGE_STRING"
  6858. +_ACEOF
  6859. +
  6860. +cat >>confdefs.h <<_ACEOF
  6861. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  6862. +_ACEOF
  6863. +
  6864. +cat >>confdefs.h <<_ACEOF
  6865. +#define PACKAGE_URL "$PACKAGE_URL"
  6866. +_ACEOF
  6867. +
  6868. +
  6869. +# Let the site file select an alternate cache file if it wants to.
  6870. +# Prefer an explicitly selected file to automatically selected ones.
  6871. +ac_site_file1=NONE
  6872. +ac_site_file2=NONE
  6873. +if test -n "$CONFIG_SITE"; then
  6874. + ac_site_file1=$CONFIG_SITE
  6875. +elif test "x$prefix" != xNONE; then
  6876. + ac_site_file1=$prefix/share/config.site
  6877. + ac_site_file2=$prefix/etc/config.site
  6878. +else
  6879. + ac_site_file1=$ac_default_prefix/share/config.site
  6880. + ac_site_file2=$ac_default_prefix/etc/config.site
  6881. +fi
  6882. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  6883. +do
  6884. + test "x$ac_site_file" = xNONE && continue
  6885. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  6886. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  6887. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  6888. + sed 's/^/| /' "$ac_site_file" >&5
  6889. + . "$ac_site_file"
  6890. + fi
  6891. +done
  6892. +
  6893. +if test -r "$cache_file"; then
  6894. + # Some versions of bash will fail to source /dev/null (special files
  6895. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  6896. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  6897. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  6898. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  6899. + case $cache_file in
  6900. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  6901. + *) . "./$cache_file";;
  6902. + esac
  6903. + fi
  6904. +else
  6905. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  6906. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  6907. + >$cache_file
  6908. +fi
  6909. +
  6910. +as_fn_append ac_header_list " stdlib.h"
  6911. +as_fn_append ac_header_list " unistd.h"
  6912. +as_fn_append ac_header_list " sys/param.h"
  6913. +# Check that the precious variables saved in the cache have kept the same
  6914. +# value.
  6915. +ac_cache_corrupted=false
  6916. +for ac_var in $ac_precious_vars; do
  6917. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  6918. + eval ac_new_set=\$ac_env_${ac_var}_set
  6919. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  6920. + eval ac_new_val=\$ac_env_${ac_var}_value
  6921. + case $ac_old_set,$ac_new_set in
  6922. + set,)
  6923. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  6924. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  6925. + ac_cache_corrupted=: ;;
  6926. + ,set)
  6927. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  6928. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  6929. + ac_cache_corrupted=: ;;
  6930. + ,);;
  6931. + *)
  6932. + if test "x$ac_old_val" != "x$ac_new_val"; then
  6933. + # differences in whitespace do not lead to failure.
  6934. + ac_old_val_w=`echo x $ac_old_val`
  6935. + ac_new_val_w=`echo x $ac_new_val`
  6936. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  6937. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  6938. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  6939. + ac_cache_corrupted=:
  6940. + else
  6941. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  6942. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  6943. + eval $ac_var=\$ac_old_val
  6944. + fi
  6945. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  6946. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  6947. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  6948. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  6949. + fi;;
  6950. + esac
  6951. + # Pass precious variables to config.status.
  6952. + if test "$ac_new_set" = set; then
  6953. + case $ac_new_val in
  6954. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  6955. + *) ac_arg=$ac_var=$ac_new_val ;;
  6956. + esac
  6957. + case " $ac_configure_args " in
  6958. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  6959. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  6960. + esac
  6961. + fi
  6962. +done
  6963. +if $ac_cache_corrupted; then
  6964. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6965. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6966. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  6967. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  6968. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  6969. +fi
  6970. +## -------------------- ##
  6971. +## Main body of script. ##
  6972. +## -------------------- ##
  6973. +
  6974. +ac_ext=c
  6975. +ac_cpp='$CPP $CPPFLAGS'
  6976. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6977. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6978. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6979. +
  6980. +
  6981. +# AC_CONFIG_AUX_DIR(config)
  6982. +am__api_version='1.11'
  6983. +
  6984. +ac_aux_dir=
  6985. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  6986. + for ac_t in install-sh install.sh shtool; do
  6987. + if test -f "$ac_dir/$ac_t"; then
  6988. + ac_aux_dir=$ac_dir
  6989. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  6990. + break 2
  6991. + fi
  6992. + done
  6993. +done
  6994. +if test -z "$ac_aux_dir"; then
  6995. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  6996. +fi
  6997. +
  6998. +# These three variables are undocumented and unsupported,
  6999. +# and are intended to be withdrawn in a future Autoconf release.
  7000. +# They can cause serious problems if a builder's source tree is in a directory
  7001. +# whose full name contains unusual characters.
  7002. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  7003. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  7004. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  7005. +
  7006. +
  7007. +# Find a good install program. We prefer a C program (faster),
  7008. +# so one script is as good as another. But avoid the broken or
  7009. +# incompatible versions:
  7010. +# SysV /etc/install, /usr/sbin/install
  7011. +# SunOS /usr/etc/install
  7012. +# IRIX /sbin/install
  7013. +# AIX /bin/install
  7014. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  7015. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  7016. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  7017. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  7018. +# OS/2's system install, which has a completely different semantic
  7019. +# ./install, which can be erroneously created by make from ./install.sh.
  7020. +# Reject install programs that cannot install multiple files.
  7021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  7022. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  7023. +if test -z "$INSTALL"; then
  7024. +if test "${ac_cv_path_install+set}" = set; then :
  7025. + $as_echo_n "(cached) " >&6
  7026. +else
  7027. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7028. +for as_dir in $PATH
  7029. +do
  7030. + IFS=$as_save_IFS
  7031. + test -z "$as_dir" && as_dir=.
  7032. + # Account for people who put trailing slashes in PATH elements.
  7033. +case $as_dir/ in #((
  7034. + ./ | .// | /[cC]/* | \
  7035. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  7036. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  7037. + /usr/ucb/* ) ;;
  7038. + *)
  7039. + # OSF1 and SCO ODT 3.0 have their own names for install.
  7040. + # Don't use installbsd from OSF since it installs stuff as root
  7041. + # by default.
  7042. + for ac_prog in ginstall scoinst install; do
  7043. + for ac_exec_ext in '' $ac_executable_extensions; do
  7044. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  7045. + if test $ac_prog = install &&
  7046. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7047. + # AIX install. It has an incompatible calling convention.
  7048. + :
  7049. + elif test $ac_prog = install &&
  7050. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7051. + # program-specific install script used by HP pwplus--don't use.
  7052. + :
  7053. + else
  7054. + rm -rf conftest.one conftest.two conftest.dir
  7055. + echo one > conftest.one
  7056. + echo two > conftest.two
  7057. + mkdir conftest.dir
  7058. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  7059. + test -s conftest.one && test -s conftest.two &&
  7060. + test -s conftest.dir/conftest.one &&
  7061. + test -s conftest.dir/conftest.two
  7062. + then
  7063. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  7064. + break 3
  7065. + fi
  7066. + fi
  7067. + fi
  7068. + done
  7069. + done
  7070. + ;;
  7071. +esac
  7072. +
  7073. + done
  7074. +IFS=$as_save_IFS
  7075. +
  7076. +rm -rf conftest.one conftest.two conftest.dir
  7077. +
  7078. +fi
  7079. + if test "${ac_cv_path_install+set}" = set; then
  7080. + INSTALL=$ac_cv_path_install
  7081. + else
  7082. + # As a last resort, use the slow shell script. Don't cache a
  7083. + # value for INSTALL within a source directory, because that will
  7084. + # break other packages using the cache if that directory is
  7085. + # removed, or if the value is a relative name.
  7086. + INSTALL=$ac_install_sh
  7087. + fi
  7088. +fi
  7089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  7090. +$as_echo "$INSTALL" >&6; }
  7091. +
  7092. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7093. +# It thinks the first close brace ends the variable substitution.
  7094. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7095. +
  7096. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7097. +
  7098. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7099. +
  7100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  7101. +$as_echo_n "checking whether build environment is sane... " >&6; }
  7102. +# Just in case
  7103. +sleep 1
  7104. +echo timestamp > conftest.file
  7105. +# Reject unsafe characters in $srcdir or the absolute working directory
  7106. +# name. Accept space and tab only in the latter.
  7107. +am_lf='
  7108. +'
  7109. +case `pwd` in
  7110. + *[\\\"\#\$\&\'\`$am_lf]*)
  7111. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  7112. +esac
  7113. +case $srcdir in
  7114. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  7115. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  7116. +esac
  7117. +
  7118. +# Do `set' in a subshell so we don't clobber the current shell's
  7119. +# arguments. Must try -L first in case configure is actually a
  7120. +# symlink; some systems play weird games with the mod time of symlinks
  7121. +# (eg FreeBSD returns the mod time of the symlink's containing
  7122. +# directory).
  7123. +if (
  7124. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  7125. + if test "$*" = "X"; then
  7126. + # -L didn't work.
  7127. + set X `ls -t "$srcdir/configure" conftest.file`
  7128. + fi
  7129. + rm -f conftest.file
  7130. + if test "$*" != "X $srcdir/configure conftest.file" \
  7131. + && test "$*" != "X conftest.file $srcdir/configure"; then
  7132. +
  7133. + # If neither matched, then we have a broken ls. This can happen
  7134. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  7135. + # broken ls alias from the environment. This has actually
  7136. + # happened. Such a system could not be considered "sane".
  7137. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  7138. +alias in your environment" "$LINENO" 5
  7139. + fi
  7140. +
  7141. + test "$2" = conftest.file
  7142. + )
  7143. +then
  7144. + # Ok.
  7145. + :
  7146. +else
  7147. + as_fn_error "newly created file is older than distributed files!
  7148. +Check your system clock" "$LINENO" 5
  7149. +fi
  7150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7151. +$as_echo "yes" >&6; }
  7152. +test "$program_prefix" != NONE &&
  7153. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  7154. +# Use a double $ so make ignores it.
  7155. +test "$program_suffix" != NONE &&
  7156. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  7157. +# Double any \ or $.
  7158. +# By default was `s,x,x', remove it if useless.
  7159. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  7160. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  7161. +
  7162. +# expand $ac_aux_dir to an absolute path
  7163. +am_aux_dir=`cd $ac_aux_dir && pwd`
  7164. +
  7165. +if test x"${MISSING+set}" != xset; then
  7166. + case $am_aux_dir in
  7167. + *\ * | *\ *)
  7168. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  7169. + *)
  7170. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  7171. + esac
  7172. +fi
  7173. +# Use eval to expand $SHELL
  7174. +if eval "$MISSING --run true"; then
  7175. + am_missing_run="$MISSING --run "
  7176. +else
  7177. + am_missing_run=
  7178. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  7179. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  7180. +fi
  7181. +
  7182. +if test x"${install_sh}" != xset; then
  7183. + case $am_aux_dir in
  7184. + *\ * | *\ *)
  7185. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  7186. + *)
  7187. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  7188. + esac
  7189. +fi
  7190. +
  7191. +# Installed binaries are usually stripped using `strip' when the user
  7192. +# run `make install-strip'. However `strip' might not be the right
  7193. +# tool to use in cross-compilation environments, therefore Automake
  7194. +# will honor the `STRIP' environment variable to overrule this program.
  7195. +if test "$cross_compiling" != no; then
  7196. + if test -n "$ac_tool_prefix"; then
  7197. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7198. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  7199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7200. +$as_echo_n "checking for $ac_word... " >&6; }
  7201. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  7202. + $as_echo_n "(cached) " >&6
  7203. +else
  7204. + if test -n "$STRIP"; then
  7205. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7206. +else
  7207. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7208. +for as_dir in $PATH
  7209. +do
  7210. + IFS=$as_save_IFS
  7211. + test -z "$as_dir" && as_dir=.
  7212. + for ac_exec_ext in '' $ac_executable_extensions; do
  7213. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7214. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7215. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7216. + break 2
  7217. + fi
  7218. +done
  7219. + done
  7220. +IFS=$as_save_IFS
  7221. +
  7222. +fi
  7223. +fi
  7224. +STRIP=$ac_cv_prog_STRIP
  7225. +if test -n "$STRIP"; then
  7226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7227. +$as_echo "$STRIP" >&6; }
  7228. +else
  7229. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7230. +$as_echo "no" >&6; }
  7231. +fi
  7232. +
  7233. +
  7234. +fi
  7235. +if test -z "$ac_cv_prog_STRIP"; then
  7236. + ac_ct_STRIP=$STRIP
  7237. + # Extract the first word of "strip", so it can be a program name with args.
  7238. +set dummy strip; ac_word=$2
  7239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7240. +$as_echo_n "checking for $ac_word... " >&6; }
  7241. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  7242. + $as_echo_n "(cached) " >&6
  7243. +else
  7244. + if test -n "$ac_ct_STRIP"; then
  7245. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7246. +else
  7247. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7248. +for as_dir in $PATH
  7249. +do
  7250. + IFS=$as_save_IFS
  7251. + test -z "$as_dir" && as_dir=.
  7252. + for ac_exec_ext in '' $ac_executable_extensions; do
  7253. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7254. + ac_cv_prog_ac_ct_STRIP="strip"
  7255. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7256. + break 2
  7257. + fi
  7258. +done
  7259. + done
  7260. +IFS=$as_save_IFS
  7261. +
  7262. +fi
  7263. +fi
  7264. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7265. +if test -n "$ac_ct_STRIP"; then
  7266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7267. +$as_echo "$ac_ct_STRIP" >&6; }
  7268. +else
  7269. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7270. +$as_echo "no" >&6; }
  7271. +fi
  7272. +
  7273. + if test "x$ac_ct_STRIP" = x; then
  7274. + STRIP=":"
  7275. + else
  7276. + case $cross_compiling:$ac_tool_warned in
  7277. +yes:)
  7278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7279. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7280. +ac_tool_warned=yes ;;
  7281. +esac
  7282. + STRIP=$ac_ct_STRIP
  7283. + fi
  7284. +else
  7285. + STRIP="$ac_cv_prog_STRIP"
  7286. +fi
  7287. +
  7288. +fi
  7289. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  7290. +
  7291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  7292. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  7293. +if test -z "$MKDIR_P"; then
  7294. + if test "${ac_cv_path_mkdir+set}" = set; then :
  7295. + $as_echo_n "(cached) " >&6
  7296. +else
  7297. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7298. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  7299. +do
  7300. + IFS=$as_save_IFS
  7301. + test -z "$as_dir" && as_dir=.
  7302. + for ac_prog in mkdir gmkdir; do
  7303. + for ac_exec_ext in '' $ac_executable_extensions; do
  7304. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  7305. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  7306. + 'mkdir (GNU coreutils) '* | \
  7307. + 'mkdir (coreutils) '* | \
  7308. + 'mkdir (fileutils) '4.1*)
  7309. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  7310. + break 3;;
  7311. + esac
  7312. + done
  7313. + done
  7314. + done
  7315. +IFS=$as_save_IFS
  7316. +
  7317. +fi
  7318. +
  7319. + test -d ./--version && rmdir ./--version
  7320. + if test "${ac_cv_path_mkdir+set}" = set; then
  7321. + MKDIR_P="$ac_cv_path_mkdir -p"
  7322. + else
  7323. + # As a last resort, use the slow shell script. Don't cache a
  7324. + # value for MKDIR_P within a source directory, because that will
  7325. + # break other packages using the cache if that directory is
  7326. + # removed, or if the value is a relative name.
  7327. + MKDIR_P="$ac_install_sh -d"
  7328. + fi
  7329. +fi
  7330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  7331. +$as_echo "$MKDIR_P" >&6; }
  7332. +
  7333. +mkdir_p="$MKDIR_P"
  7334. +case $mkdir_p in
  7335. + [\\/$]* | ?:[\\/]*) ;;
  7336. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  7337. +esac
  7338. +
  7339. +for ac_prog in gawk mawk nawk awk
  7340. +do
  7341. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  7342. +set dummy $ac_prog; ac_word=$2
  7343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7344. +$as_echo_n "checking for $ac_word... " >&6; }
  7345. +if test "${ac_cv_prog_AWK+set}" = set; then :
  7346. + $as_echo_n "(cached) " >&6
  7347. +else
  7348. + if test -n "$AWK"; then
  7349. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7350. +else
  7351. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7352. +for as_dir in $PATH
  7353. +do
  7354. + IFS=$as_save_IFS
  7355. + test -z "$as_dir" && as_dir=.
  7356. + for ac_exec_ext in '' $ac_executable_extensions; do
  7357. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7358. + ac_cv_prog_AWK="$ac_prog"
  7359. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7360. + break 2
  7361. + fi
  7362. +done
  7363. + done
  7364. +IFS=$as_save_IFS
  7365. +
  7366. +fi
  7367. +fi
  7368. +AWK=$ac_cv_prog_AWK
  7369. +if test -n "$AWK"; then
  7370. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7371. +$as_echo "$AWK" >&6; }
  7372. +else
  7373. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7374. +$as_echo "no" >&6; }
  7375. +fi
  7376. +
  7377. +
  7378. + test -n "$AWK" && break
  7379. +done
  7380. +
  7381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7382. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7383. +set x ${MAKE-make}
  7384. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7385. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  7386. + $as_echo_n "(cached) " >&6
  7387. +else
  7388. + cat >conftest.make <<\_ACEOF
  7389. +SHELL = /bin/sh
  7390. +all:
  7391. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  7392. +_ACEOF
  7393. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  7394. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7395. + *@@@%%%=?*=@@@%%%*)
  7396. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  7397. + *)
  7398. + eval ac_cv_prog_make_${ac_make}_set=no;;
  7399. +esac
  7400. +rm -f conftest.make
  7401. +fi
  7402. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7403. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7404. +$as_echo "yes" >&6; }
  7405. + SET_MAKE=
  7406. +else
  7407. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7408. +$as_echo "no" >&6; }
  7409. + SET_MAKE="MAKE=${MAKE-make}"
  7410. +fi
  7411. +
  7412. +rm -rf .tst 2>/dev/null
  7413. +mkdir .tst 2>/dev/null
  7414. +if test -d .tst; then
  7415. + am__leading_dot=.
  7416. +else
  7417. + am__leading_dot=_
  7418. +fi
  7419. +rmdir .tst 2>/dev/null
  7420. +
  7421. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  7422. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  7423. + # is not polluted with repeated "-I."
  7424. + am__isrc=' -I$(srcdir)'
  7425. + # test to see if srcdir already configured
  7426. + if test -f $srcdir/config.status; then
  7427. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  7428. + fi
  7429. +fi
  7430. +
  7431. +# test whether we have cygpath
  7432. +if test -z "$CYGPATH_W"; then
  7433. + if (cygpath --version) >/dev/null 2>/dev/null; then
  7434. + CYGPATH_W='cygpath -w'
  7435. + else
  7436. + CYGPATH_W=echo
  7437. + fi
  7438. +fi
  7439. +
  7440. +
  7441. +# Define the identity of the package.
  7442. + PACKAGE='tslib'
  7443. + VERSION='0.0.2'
  7444. +
  7445. +
  7446. +cat >>confdefs.h <<_ACEOF
  7447. +#define PACKAGE "$PACKAGE"
  7448. +_ACEOF
  7449. +
  7450. +
  7451. +cat >>confdefs.h <<_ACEOF
  7452. +#define VERSION "$VERSION"
  7453. +_ACEOF
  7454. +
  7455. +# Some tools Automake needs.
  7456. +
  7457. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  7458. +
  7459. +
  7460. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  7461. +
  7462. +
  7463. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  7464. +
  7465. +
  7466. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  7467. +
  7468. +
  7469. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  7470. +
  7471. +# We need awk for the "check" target. The system "awk" is bad on
  7472. +# some platforms.
  7473. +# Always define AMTAR for backward compatibility.
  7474. +
  7475. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  7476. +
  7477. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  7478. +
  7479. +
  7480. +
  7481. +
  7482. +
  7483. +
  7484. +ac_config_headers="$ac_config_headers config.h"
  7485. +
  7486. +
  7487. +PACKAGE_DESCRIPTION="Touchscreen Access Library"
  7488. +
  7489. +
  7490. +# Set our default flags variables
  7491. +
  7492. + if test x"$CFLAGS" = "x"; then
  7493. + CFLAGS="-O2 -Wall -W"
  7494. + fi
  7495. +
  7496. +
  7497. +# Checks for programs.
  7498. +ac_ext=cpp
  7499. +ac_cpp='$CXXCPP $CPPFLAGS'
  7500. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7501. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7502. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7503. +if test -z "$CXX"; then
  7504. + if test -n "$CCC"; then
  7505. + CXX=$CCC
  7506. + else
  7507. + if test -n "$ac_tool_prefix"; then
  7508. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7509. + do
  7510. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7511. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7513. +$as_echo_n "checking for $ac_word... " >&6; }
  7514. +if test "${ac_cv_prog_CXX+set}" = set; then :
  7515. + $as_echo_n "(cached) " >&6
  7516. +else
  7517. + if test -n "$CXX"; then
  7518. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7519. +else
  7520. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7521. +for as_dir in $PATH
  7522. +do
  7523. + IFS=$as_save_IFS
  7524. + test -z "$as_dir" && as_dir=.
  7525. + for ac_exec_ext in '' $ac_executable_extensions; do
  7526. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7527. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7528. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7529. + break 2
  7530. + fi
  7531. +done
  7532. + done
  7533. +IFS=$as_save_IFS
  7534. +
  7535. +fi
  7536. +fi
  7537. +CXX=$ac_cv_prog_CXX
  7538. +if test -n "$CXX"; then
  7539. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7540. +$as_echo "$CXX" >&6; }
  7541. +else
  7542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7543. +$as_echo "no" >&6; }
  7544. +fi
  7545. +
  7546. +
  7547. + test -n "$CXX" && break
  7548. + done
  7549. +fi
  7550. +if test -z "$CXX"; then
  7551. + ac_ct_CXX=$CXX
  7552. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7553. +do
  7554. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  7555. +set dummy $ac_prog; ac_word=$2
  7556. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7557. +$as_echo_n "checking for $ac_word... " >&6; }
  7558. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  7559. + $as_echo_n "(cached) " >&6
  7560. +else
  7561. + if test -n "$ac_ct_CXX"; then
  7562. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7563. +else
  7564. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7565. +for as_dir in $PATH
  7566. +do
  7567. + IFS=$as_save_IFS
  7568. + test -z "$as_dir" && as_dir=.
  7569. + for ac_exec_ext in '' $ac_executable_extensions; do
  7570. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7571. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  7572. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7573. + break 2
  7574. + fi
  7575. +done
  7576. + done
  7577. +IFS=$as_save_IFS
  7578. +
  7579. +fi
  7580. +fi
  7581. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7582. +if test -n "$ac_ct_CXX"; then
  7583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7584. +$as_echo "$ac_ct_CXX" >&6; }
  7585. +else
  7586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7587. +$as_echo "no" >&6; }
  7588. +fi
  7589. +
  7590. +
  7591. + test -n "$ac_ct_CXX" && break
  7592. +done
  7593. +
  7594. + if test "x$ac_ct_CXX" = x; then
  7595. + CXX="g++"
  7596. + else
  7597. + case $cross_compiling:$ac_tool_warned in
  7598. +yes:)
  7599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7600. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7601. +ac_tool_warned=yes ;;
  7602. +esac
  7603. + CXX=$ac_ct_CXX
  7604. + fi
  7605. +fi
  7606. +
  7607. + fi
  7608. +fi
  7609. +# Provide some information about the compiler.
  7610. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7611. +set X $ac_compile
  7612. +ac_compiler=$2
  7613. +for ac_option in --version -v -V -qversion; do
  7614. + { { ac_try="$ac_compiler $ac_option >&5"
  7615. +case "(($ac_try" in
  7616. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7617. + *) ac_try_echo=$ac_try;;
  7618. +esac
  7619. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7620. +$as_echo "$ac_try_echo"; } >&5
  7621. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7622. + ac_status=$?
  7623. + if test -s conftest.err; then
  7624. + sed '10a\
  7625. +... rest of stderr output deleted ...
  7626. + 10q' conftest.err >conftest.er1
  7627. + cat conftest.er1 >&5
  7628. + fi
  7629. + rm -f conftest.er1 conftest.err
  7630. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7631. + test $ac_status = 0; }
  7632. +done
  7633. +
  7634. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7635. +/* end confdefs.h. */
  7636. +
  7637. +int
  7638. +main ()
  7639. +{
  7640. +
  7641. + ;
  7642. + return 0;
  7643. +}
  7644. +_ACEOF
  7645. +ac_clean_files_save=$ac_clean_files
  7646. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  7647. +# Try to create an executable without -o first, disregard a.out.
  7648. +# It will help us diagnose broken compilers, and finding out an intuition
  7649. +# of exeext.
  7650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  7651. +$as_echo_n "checking whether the C++ compiler works... " >&6; }
  7652. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  7653. +
  7654. +# The possible output files:
  7655. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  7656. +
  7657. +ac_rmfiles=
  7658. +for ac_file in $ac_files
  7659. +do
  7660. + case $ac_file in
  7661. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  7662. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  7663. + esac
  7664. +done
  7665. +rm -f $ac_rmfiles
  7666. +
  7667. +if { { ac_try="$ac_link_default"
  7668. +case "(($ac_try" in
  7669. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7670. + *) ac_try_echo=$ac_try;;
  7671. +esac
  7672. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7673. +$as_echo "$ac_try_echo"; } >&5
  7674. + (eval "$ac_link_default") 2>&5
  7675. + ac_status=$?
  7676. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7677. + test $ac_status = 0; }; then :
  7678. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  7679. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  7680. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  7681. +# so that the user can short-circuit this test for compilers unknown to
  7682. +# Autoconf.
  7683. +for ac_file in $ac_files ''
  7684. +do
  7685. + test -f "$ac_file" || continue
  7686. + case $ac_file in
  7687. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  7688. + ;;
  7689. + [ab].out )
  7690. + # We found the default executable, but exeext='' is most
  7691. + # certainly right.
  7692. + break;;
  7693. + *.* )
  7694. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  7695. + then :; else
  7696. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  7697. + fi
  7698. + # We set ac_cv_exeext here because the later test for it is not
  7699. + # safe: cross compilers may not add the suffix if given an `-o'
  7700. + # argument, so we may need to know it at that point already.
  7701. + # Even if this section looks crufty: it has the advantage of
  7702. + # actually working.
  7703. + break;;
  7704. + * )
  7705. + break;;
  7706. + esac
  7707. +done
  7708. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  7709. +
  7710. +else
  7711. + ac_file=''
  7712. +fi
  7713. +if test -z "$ac_file"; then :
  7714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7715. +$as_echo "no" >&6; }
  7716. +$as_echo "$as_me: failed program was:" >&5
  7717. +sed 's/^/| /' conftest.$ac_ext >&5
  7718. +
  7719. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7720. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7721. +{ as_fn_set_status 77
  7722. +as_fn_error "C++ compiler cannot create executables
  7723. +See \`config.log' for more details." "$LINENO" 5; }; }
  7724. +else
  7725. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7726. +$as_echo "yes" >&6; }
  7727. +fi
  7728. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  7729. +$as_echo_n "checking for C++ compiler default output file name... " >&6; }
  7730. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  7731. +$as_echo "$ac_file" >&6; }
  7732. +ac_exeext=$ac_cv_exeext
  7733. +
  7734. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  7735. +ac_clean_files=$ac_clean_files_save
  7736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  7737. +$as_echo_n "checking for suffix of executables... " >&6; }
  7738. +if { { ac_try="$ac_link"
  7739. +case "(($ac_try" in
  7740. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7741. + *) ac_try_echo=$ac_try;;
  7742. +esac
  7743. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7744. +$as_echo "$ac_try_echo"; } >&5
  7745. + (eval "$ac_link") 2>&5
  7746. + ac_status=$?
  7747. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7748. + test $ac_status = 0; }; then :
  7749. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  7750. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  7751. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  7752. +# `rm'.
  7753. +for ac_file in conftest.exe conftest conftest.*; do
  7754. + test -f "$ac_file" || continue
  7755. + case $ac_file in
  7756. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  7757. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  7758. + break;;
  7759. + * ) break;;
  7760. + esac
  7761. +done
  7762. +else
  7763. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7764. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7765. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  7766. +See \`config.log' for more details." "$LINENO" 5; }
  7767. +fi
  7768. +rm -f conftest conftest$ac_cv_exeext
  7769. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  7770. +$as_echo "$ac_cv_exeext" >&6; }
  7771. +
  7772. +rm -f conftest.$ac_ext
  7773. +EXEEXT=$ac_cv_exeext
  7774. +ac_exeext=$EXEEXT
  7775. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7776. +/* end confdefs.h. */
  7777. +#include <stdio.h>
  7778. +int
  7779. +main ()
  7780. +{
  7781. +FILE *f = fopen ("conftest.out", "w");
  7782. + return ferror (f) || fclose (f) != 0;
  7783. +
  7784. + ;
  7785. + return 0;
  7786. +}
  7787. +_ACEOF
  7788. +ac_clean_files="$ac_clean_files conftest.out"
  7789. +# Check that the compiler produces executables we can run. If not, either
  7790. +# the compiler is broken, or we cross compile.
  7791. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  7792. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  7793. +if test "$cross_compiling" != yes; then
  7794. + { { ac_try="$ac_link"
  7795. +case "(($ac_try" in
  7796. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7797. + *) ac_try_echo=$ac_try;;
  7798. +esac
  7799. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7800. +$as_echo "$ac_try_echo"; } >&5
  7801. + (eval "$ac_link") 2>&5
  7802. + ac_status=$?
  7803. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7804. + test $ac_status = 0; }
  7805. + if { ac_try='./conftest$ac_cv_exeext'
  7806. + { { case "(($ac_try" in
  7807. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7808. + *) ac_try_echo=$ac_try;;
  7809. +esac
  7810. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7811. +$as_echo "$ac_try_echo"; } >&5
  7812. + (eval "$ac_try") 2>&5
  7813. + ac_status=$?
  7814. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7815. + test $ac_status = 0; }; }; then
  7816. + cross_compiling=no
  7817. + else
  7818. + if test "$cross_compiling" = maybe; then
  7819. + cross_compiling=yes
  7820. + else
  7821. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7822. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7823. +as_fn_error "cannot run C++ compiled programs.
  7824. +If you meant to cross compile, use \`--host'.
  7825. +See \`config.log' for more details." "$LINENO" 5; }
  7826. + fi
  7827. + fi
  7828. +fi
  7829. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  7830. +$as_echo "$cross_compiling" >&6; }
  7831. +
  7832. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  7833. +ac_clean_files=$ac_clean_files_save
  7834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  7835. +$as_echo_n "checking for suffix of object files... " >&6; }
  7836. +if test "${ac_cv_objext+set}" = set; then :
  7837. + $as_echo_n "(cached) " >&6
  7838. +else
  7839. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7840. +/* end confdefs.h. */
  7841. +
  7842. +int
  7843. +main ()
  7844. +{
  7845. +
  7846. + ;
  7847. + return 0;
  7848. +}
  7849. +_ACEOF
  7850. +rm -f conftest.o conftest.obj
  7851. +if { { ac_try="$ac_compile"
  7852. +case "(($ac_try" in
  7853. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7854. + *) ac_try_echo=$ac_try;;
  7855. +esac
  7856. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7857. +$as_echo "$ac_try_echo"; } >&5
  7858. + (eval "$ac_compile") 2>&5
  7859. + ac_status=$?
  7860. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7861. + test $ac_status = 0; }; then :
  7862. + for ac_file in conftest.o conftest.obj conftest.*; do
  7863. + test -f "$ac_file" || continue;
  7864. + case $ac_file in
  7865. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  7866. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  7867. + break;;
  7868. + esac
  7869. +done
  7870. +else
  7871. + $as_echo "$as_me: failed program was:" >&5
  7872. +sed 's/^/| /' conftest.$ac_ext >&5
  7873. +
  7874. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7875. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7876. +as_fn_error "cannot compute suffix of object files: cannot compile
  7877. +See \`config.log' for more details." "$LINENO" 5; }
  7878. +fi
  7879. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  7880. +fi
  7881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  7882. +$as_echo "$ac_cv_objext" >&6; }
  7883. +OBJEXT=$ac_cv_objext
  7884. +ac_objext=$OBJEXT
  7885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7886. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7887. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  7888. + $as_echo_n "(cached) " >&6
  7889. +else
  7890. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7891. +/* end confdefs.h. */
  7892. +
  7893. +int
  7894. +main ()
  7895. +{
  7896. +#ifndef __GNUC__
  7897. + choke me
  7898. +#endif
  7899. +
  7900. + ;
  7901. + return 0;
  7902. +}
  7903. +_ACEOF
  7904. +if ac_fn_cxx_try_compile "$LINENO"; then :
  7905. + ac_compiler_gnu=yes
  7906. +else
  7907. + ac_compiler_gnu=no
  7908. +fi
  7909. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7910. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7911. +
  7912. +fi
  7913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7914. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7915. +if test $ac_compiler_gnu = yes; then
  7916. + GXX=yes
  7917. +else
  7918. + GXX=
  7919. +fi
  7920. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  7921. +ac_save_CXXFLAGS=$CXXFLAGS
  7922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7923. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7924. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  7925. + $as_echo_n "(cached) " >&6
  7926. +else
  7927. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7928. + ac_cxx_werror_flag=yes
  7929. + ac_cv_prog_cxx_g=no
  7930. + CXXFLAGS="-g"
  7931. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7932. +/* end confdefs.h. */
  7933. +
  7934. +int
  7935. +main ()
  7936. +{
  7937. +
  7938. + ;
  7939. + return 0;
  7940. +}
  7941. +_ACEOF
  7942. +if ac_fn_cxx_try_compile "$LINENO"; then :
  7943. + ac_cv_prog_cxx_g=yes
  7944. +else
  7945. + CXXFLAGS=""
  7946. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7947. +/* end confdefs.h. */
  7948. +
  7949. +int
  7950. +main ()
  7951. +{
  7952. +
  7953. + ;
  7954. + return 0;
  7955. +}
  7956. +_ACEOF
  7957. +if ac_fn_cxx_try_compile "$LINENO"; then :
  7958. +
  7959. +else
  7960. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7961. + CXXFLAGS="-g"
  7962. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7963. +/* end confdefs.h. */
  7964. +
  7965. +int
  7966. +main ()
  7967. +{
  7968. +
  7969. + ;
  7970. + return 0;
  7971. +}
  7972. +_ACEOF
  7973. +if ac_fn_cxx_try_compile "$LINENO"; then :
  7974. + ac_cv_prog_cxx_g=yes
  7975. +fi
  7976. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7977. +fi
  7978. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7979. +fi
  7980. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7981. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7982. +fi
  7983. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7984. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  7985. +if test "$ac_test_CXXFLAGS" = set; then
  7986. + CXXFLAGS=$ac_save_CXXFLAGS
  7987. +elif test $ac_cv_prog_cxx_g = yes; then
  7988. + if test "$GXX" = yes; then
  7989. + CXXFLAGS="-g -O2"
  7990. + else
  7991. + CXXFLAGS="-g"
  7992. + fi
  7993. +else
  7994. + if test "$GXX" = yes; then
  7995. + CXXFLAGS="-O2"
  7996. + else
  7997. + CXXFLAGS=
  7998. + fi
  7999. +fi
  8000. +ac_ext=c
  8001. +ac_cpp='$CPP $CPPFLAGS'
  8002. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8003. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8004. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8005. +DEPDIR="${am__leading_dot}deps"
  8006. +
  8007. +ac_config_commands="$ac_config_commands depfiles"
  8008. +
  8009. +
  8010. +am_make=${MAKE-make}
  8011. +cat > confinc << 'END'
  8012. +am__doit:
  8013. + @echo this is the am__doit target
  8014. +.PHONY: am__doit
  8015. +END
  8016. +# If we don't find an include directive, just comment out the code.
  8017. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  8018. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  8019. +am__include="#"
  8020. +am__quote=
  8021. +_am_result=none
  8022. +# First try GNU make style include.
  8023. +echo "include confinc" > confmf
  8024. +# Ignore all kinds of additional output from `make'.
  8025. +case `$am_make -s -f confmf 2> /dev/null` in #(
  8026. +*the\ am__doit\ target*)
  8027. + am__include=include
  8028. + am__quote=
  8029. + _am_result=GNU
  8030. + ;;
  8031. +esac
  8032. +# Now try BSD make style include.
  8033. +if test "$am__include" = "#"; then
  8034. + echo '.include "confinc"' > confmf
  8035. + case `$am_make -s -f confmf 2> /dev/null` in #(
  8036. + *the\ am__doit\ target*)
  8037. + am__include=.include
  8038. + am__quote="\""
  8039. + _am_result=BSD
  8040. + ;;
  8041. + esac
  8042. +fi
  8043. +
  8044. +
  8045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  8046. +$as_echo "$_am_result" >&6; }
  8047. +rm -f confinc confmf
  8048. +
  8049. +# Check whether --enable-dependency-tracking was given.
  8050. +if test "${enable_dependency_tracking+set}" = set; then :
  8051. + enableval=$enable_dependency_tracking;
  8052. +fi
  8053. +
  8054. +if test "x$enable_dependency_tracking" != xno; then
  8055. + am_depcomp="$ac_aux_dir/depcomp"
  8056. + AMDEPBACKSLASH='\'
  8057. +fi
  8058. + if test "x$enable_dependency_tracking" != xno; then
  8059. + AMDEP_TRUE=
  8060. + AMDEP_FALSE='#'
  8061. +else
  8062. + AMDEP_TRUE='#'
  8063. + AMDEP_FALSE=
  8064. +fi
  8065. +
  8066. +
  8067. +
  8068. +depcc="$CXX" am_compiler_list=
  8069. +
  8070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  8071. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  8072. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  8073. + $as_echo_n "(cached) " >&6
  8074. +else
  8075. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8076. + # We make a subdir and do the tests there. Otherwise we can end up
  8077. + # making bogus files that we don't know about and never remove. For
  8078. + # instance it was reported that on HP-UX the gcc test will end up
  8079. + # making a dummy file named `D' -- because `-MD' means `put the output
  8080. + # in D'.
  8081. + mkdir conftest.dir
  8082. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8083. + # using a relative directory.
  8084. + cp "$am_depcomp" conftest.dir
  8085. + cd conftest.dir
  8086. + # We will build objects and dependencies in a subdirectory because
  8087. + # it helps to detect inapplicable dependency modes. For instance
  8088. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8089. + # side effect of compilation, but ICC will put the dependencies in
  8090. + # the current directory while Tru64 will put them in the object
  8091. + # directory.
  8092. + mkdir sub
  8093. +
  8094. + am_cv_CXX_dependencies_compiler_type=none
  8095. + if test "$am_compiler_list" = ""; then
  8096. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8097. + fi
  8098. + am__universal=false
  8099. + case " $depcc " in #(
  8100. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8101. + esac
  8102. +
  8103. + for depmode in $am_compiler_list; do
  8104. + # Setup a source with many dependencies, because some compilers
  8105. + # like to wrap large dependency lists on column 80 (with \), and
  8106. + # we should not choose a depcomp mode which is confused by this.
  8107. + #
  8108. + # We need to recreate these files for each test, as the compiler may
  8109. + # overwrite some of them when testing with obscure command lines.
  8110. + # This happens at least with the AIX C compiler.
  8111. + : > sub/conftest.c
  8112. + for i in 1 2 3 4 5 6; do
  8113. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8114. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8115. + # Solaris 8's {/usr,}/bin/sh.
  8116. + touch sub/conftst$i.h
  8117. + done
  8118. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8119. +
  8120. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8121. + # mode. It turns out that the SunPro C++ compiler does not properly
  8122. + # handle `-M -o', and we need to detect this. Also, some Intel
  8123. + # versions had trouble with output in subdirs
  8124. + am__obj=sub/conftest.${OBJEXT-o}
  8125. + am__minus_obj="-o $am__obj"
  8126. + case $depmode in
  8127. + gcc)
  8128. + # This depmode causes a compiler race in universal mode.
  8129. + test "$am__universal" = false || continue
  8130. + ;;
  8131. + nosideeffect)
  8132. + # after this tag, mechanisms are not by side-effect, so they'll
  8133. + # only be used when explicitly requested
  8134. + if test "x$enable_dependency_tracking" = xyes; then
  8135. + continue
  8136. + else
  8137. + break
  8138. + fi
  8139. + ;;
  8140. + msvisualcpp | msvcmsys)
  8141. + # This compiler won't grok `-c -o', but also, the minuso test has
  8142. + # not run yet. These depmodes are late enough in the game, and
  8143. + # so weak that their functioning should not be impacted.
  8144. + am__obj=conftest.${OBJEXT-o}
  8145. + am__minus_obj=
  8146. + ;;
  8147. + none) break ;;
  8148. + esac
  8149. + if depmode=$depmode \
  8150. + source=sub/conftest.c object=$am__obj \
  8151. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8152. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8153. + >/dev/null 2>conftest.err &&
  8154. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8155. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8156. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8157. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8158. + # icc doesn't choke on unknown options, it will just issue warnings
  8159. + # or remarks (even with -Werror). So we grep stderr for any message
  8160. + # that says an option was ignored or not supported.
  8161. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8162. + # icc: Command line warning: ignoring option '-M'; no argument required
  8163. + # The diagnosis changed in icc 8.0:
  8164. + # icc: Command line remark: option '-MP' not supported
  8165. + if (grep 'ignoring option' conftest.err ||
  8166. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8167. + am_cv_CXX_dependencies_compiler_type=$depmode
  8168. + break
  8169. + fi
  8170. + fi
  8171. + done
  8172. +
  8173. + cd ..
  8174. + rm -rf conftest.dir
  8175. +else
  8176. + am_cv_CXX_dependencies_compiler_type=none
  8177. +fi
  8178. +
  8179. +fi
  8180. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  8181. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  8182. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  8183. +
  8184. + if
  8185. + test "x$enable_dependency_tracking" != xno \
  8186. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  8187. + am__fastdepCXX_TRUE=
  8188. + am__fastdepCXX_FALSE='#'
  8189. +else
  8190. + am__fastdepCXX_TRUE='#'
  8191. + am__fastdepCXX_FALSE=
  8192. +fi
  8193. +
  8194. +
  8195. +ac_ext=c
  8196. +ac_cpp='$CPP $CPPFLAGS'
  8197. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8198. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8199. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8200. +if test -n "$ac_tool_prefix"; then
  8201. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  8202. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  8203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8204. +$as_echo_n "checking for $ac_word... " >&6; }
  8205. +if test "${ac_cv_prog_CC+set}" = set; then :
  8206. + $as_echo_n "(cached) " >&6
  8207. +else
  8208. + if test -n "$CC"; then
  8209. + ac_cv_prog_CC="$CC" # Let the user override the test.
  8210. +else
  8211. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8212. +for as_dir in $PATH
  8213. +do
  8214. + IFS=$as_save_IFS
  8215. + test -z "$as_dir" && as_dir=.
  8216. + for ac_exec_ext in '' $ac_executable_extensions; do
  8217. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8218. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  8219. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8220. + break 2
  8221. + fi
  8222. +done
  8223. + done
  8224. +IFS=$as_save_IFS
  8225. +
  8226. +fi
  8227. +fi
  8228. +CC=$ac_cv_prog_CC
  8229. +if test -n "$CC"; then
  8230. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8231. +$as_echo "$CC" >&6; }
  8232. +else
  8233. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8234. +$as_echo "no" >&6; }
  8235. +fi
  8236. +
  8237. +
  8238. +fi
  8239. +if test -z "$ac_cv_prog_CC"; then
  8240. + ac_ct_CC=$CC
  8241. + # Extract the first word of "gcc", so it can be a program name with args.
  8242. +set dummy gcc; ac_word=$2
  8243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8244. +$as_echo_n "checking for $ac_word... " >&6; }
  8245. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  8246. + $as_echo_n "(cached) " >&6
  8247. +else
  8248. + if test -n "$ac_ct_CC"; then
  8249. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8250. +else
  8251. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8252. +for as_dir in $PATH
  8253. +do
  8254. + IFS=$as_save_IFS
  8255. + test -z "$as_dir" && as_dir=.
  8256. + for ac_exec_ext in '' $ac_executable_extensions; do
  8257. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8258. + ac_cv_prog_ac_ct_CC="gcc"
  8259. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8260. + break 2
  8261. + fi
  8262. +done
  8263. + done
  8264. +IFS=$as_save_IFS
  8265. +
  8266. +fi
  8267. +fi
  8268. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8269. +if test -n "$ac_ct_CC"; then
  8270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  8271. +$as_echo "$ac_ct_CC" >&6; }
  8272. +else
  8273. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8274. +$as_echo "no" >&6; }
  8275. +fi
  8276. +
  8277. + if test "x$ac_ct_CC" = x; then
  8278. + CC=""
  8279. + else
  8280. + case $cross_compiling:$ac_tool_warned in
  8281. +yes:)
  8282. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8283. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8284. +ac_tool_warned=yes ;;
  8285. +esac
  8286. + CC=$ac_ct_CC
  8287. + fi
  8288. +else
  8289. + CC="$ac_cv_prog_CC"
  8290. +fi
  8291. +
  8292. +if test -z "$CC"; then
  8293. + if test -n "$ac_tool_prefix"; then
  8294. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  8295. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  8296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8297. +$as_echo_n "checking for $ac_word... " >&6; }
  8298. +if test "${ac_cv_prog_CC+set}" = set; then :
  8299. + $as_echo_n "(cached) " >&6
  8300. +else
  8301. + if test -n "$CC"; then
  8302. + ac_cv_prog_CC="$CC" # Let the user override the test.
  8303. +else
  8304. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8305. +for as_dir in $PATH
  8306. +do
  8307. + IFS=$as_save_IFS
  8308. + test -z "$as_dir" && as_dir=.
  8309. + for ac_exec_ext in '' $ac_executable_extensions; do
  8310. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8311. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  8312. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8313. + break 2
  8314. + fi
  8315. +done
  8316. + done
  8317. +IFS=$as_save_IFS
  8318. +
  8319. +fi
  8320. +fi
  8321. +CC=$ac_cv_prog_CC
  8322. +if test -n "$CC"; then
  8323. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8324. +$as_echo "$CC" >&6; }
  8325. +else
  8326. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8327. +$as_echo "no" >&6; }
  8328. +fi
  8329. +
  8330. +
  8331. + fi
  8332. +fi
  8333. +if test -z "$CC"; then
  8334. + # Extract the first word of "cc", so it can be a program name with args.
  8335. +set dummy cc; ac_word=$2
  8336. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8337. +$as_echo_n "checking for $ac_word... " >&6; }
  8338. +if test "${ac_cv_prog_CC+set}" = set; then :
  8339. + $as_echo_n "(cached) " >&6
  8340. +else
  8341. + if test -n "$CC"; then
  8342. + ac_cv_prog_CC="$CC" # Let the user override the test.
  8343. +else
  8344. + ac_prog_rejected=no
  8345. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8346. +for as_dir in $PATH
  8347. +do
  8348. + IFS=$as_save_IFS
  8349. + test -z "$as_dir" && as_dir=.
  8350. + for ac_exec_ext in '' $ac_executable_extensions; do
  8351. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8352. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  8353. + ac_prog_rejected=yes
  8354. + continue
  8355. + fi
  8356. + ac_cv_prog_CC="cc"
  8357. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8358. + break 2
  8359. + fi
  8360. +done
  8361. + done
  8362. +IFS=$as_save_IFS
  8363. +
  8364. +if test $ac_prog_rejected = yes; then
  8365. + # We found a bogon in the path, so make sure we never use it.
  8366. + set dummy $ac_cv_prog_CC
  8367. + shift
  8368. + if test $# != 0; then
  8369. + # We chose a different compiler from the bogus one.
  8370. + # However, it has the same basename, so the bogon will be chosen
  8371. + # first if we set CC to just the basename; use the full file name.
  8372. + shift
  8373. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  8374. + fi
  8375. +fi
  8376. +fi
  8377. +fi
  8378. +CC=$ac_cv_prog_CC
  8379. +if test -n "$CC"; then
  8380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8381. +$as_echo "$CC" >&6; }
  8382. +else
  8383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8384. +$as_echo "no" >&6; }
  8385. +fi
  8386. +
  8387. +
  8388. +fi
  8389. +if test -z "$CC"; then
  8390. + if test -n "$ac_tool_prefix"; then
  8391. + for ac_prog in cl.exe
  8392. + do
  8393. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8394. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8396. +$as_echo_n "checking for $ac_word... " >&6; }
  8397. +if test "${ac_cv_prog_CC+set}" = set; then :
  8398. + $as_echo_n "(cached) " >&6
  8399. +else
  8400. + if test -n "$CC"; then
  8401. + ac_cv_prog_CC="$CC" # Let the user override the test.
  8402. +else
  8403. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8404. +for as_dir in $PATH
  8405. +do
  8406. + IFS=$as_save_IFS
  8407. + test -z "$as_dir" && as_dir=.
  8408. + for ac_exec_ext in '' $ac_executable_extensions; do
  8409. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8410. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  8411. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8412. + break 2
  8413. + fi
  8414. +done
  8415. + done
  8416. +IFS=$as_save_IFS
  8417. +
  8418. +fi
  8419. +fi
  8420. +CC=$ac_cv_prog_CC
  8421. +if test -n "$CC"; then
  8422. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8423. +$as_echo "$CC" >&6; }
  8424. +else
  8425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8426. +$as_echo "no" >&6; }
  8427. +fi
  8428. +
  8429. +
  8430. + test -n "$CC" && break
  8431. + done
  8432. +fi
  8433. +if test -z "$CC"; then
  8434. + ac_ct_CC=$CC
  8435. + for ac_prog in cl.exe
  8436. +do
  8437. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  8438. +set dummy $ac_prog; ac_word=$2
  8439. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8440. +$as_echo_n "checking for $ac_word... " >&6; }
  8441. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  8442. + $as_echo_n "(cached) " >&6
  8443. +else
  8444. + if test -n "$ac_ct_CC"; then
  8445. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8446. +else
  8447. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8448. +for as_dir in $PATH
  8449. +do
  8450. + IFS=$as_save_IFS
  8451. + test -z "$as_dir" && as_dir=.
  8452. + for ac_exec_ext in '' $ac_executable_extensions; do
  8453. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8454. + ac_cv_prog_ac_ct_CC="$ac_prog"
  8455. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8456. + break 2
  8457. + fi
  8458. +done
  8459. + done
  8460. +IFS=$as_save_IFS
  8461. +
  8462. +fi
  8463. +fi
  8464. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8465. +if test -n "$ac_ct_CC"; then
  8466. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  8467. +$as_echo "$ac_ct_CC" >&6; }
  8468. +else
  8469. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8470. +$as_echo "no" >&6; }
  8471. +fi
  8472. +
  8473. +
  8474. + test -n "$ac_ct_CC" && break
  8475. +done
  8476. +
  8477. + if test "x$ac_ct_CC" = x; then
  8478. + CC=""
  8479. + else
  8480. + case $cross_compiling:$ac_tool_warned in
  8481. +yes:)
  8482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8483. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8484. +ac_tool_warned=yes ;;
  8485. +esac
  8486. + CC=$ac_ct_CC
  8487. + fi
  8488. +fi
  8489. +
  8490. +fi
  8491. +
  8492. +
  8493. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8494. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8495. +as_fn_error "no acceptable C compiler found in \$PATH
  8496. +See \`config.log' for more details." "$LINENO" 5; }
  8497. +
  8498. +# Provide some information about the compiler.
  8499. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  8500. +set X $ac_compile
  8501. +ac_compiler=$2
  8502. +for ac_option in --version -v -V -qversion; do
  8503. + { { ac_try="$ac_compiler $ac_option >&5"
  8504. +case "(($ac_try" in
  8505. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8506. + *) ac_try_echo=$ac_try;;
  8507. +esac
  8508. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8509. +$as_echo "$ac_try_echo"; } >&5
  8510. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  8511. + ac_status=$?
  8512. + if test -s conftest.err; then
  8513. + sed '10a\
  8514. +... rest of stderr output deleted ...
  8515. + 10q' conftest.err >conftest.er1
  8516. + cat conftest.er1 >&5
  8517. + fi
  8518. + rm -f conftest.er1 conftest.err
  8519. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8520. + test $ac_status = 0; }
  8521. +done
  8522. +
  8523. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  8524. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  8525. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  8526. + $as_echo_n "(cached) " >&6
  8527. +else
  8528. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8529. +/* end confdefs.h. */
  8530. +
  8531. +int
  8532. +main ()
  8533. +{
  8534. +#ifndef __GNUC__
  8535. + choke me
  8536. +#endif
  8537. +
  8538. + ;
  8539. + return 0;
  8540. +}
  8541. +_ACEOF
  8542. +if ac_fn_c_try_compile "$LINENO"; then :
  8543. + ac_compiler_gnu=yes
  8544. +else
  8545. + ac_compiler_gnu=no
  8546. +fi
  8547. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8548. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  8549. +
  8550. +fi
  8551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  8552. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  8553. +if test $ac_compiler_gnu = yes; then
  8554. + GCC=yes
  8555. +else
  8556. + GCC=
  8557. +fi
  8558. +ac_test_CFLAGS=${CFLAGS+set}
  8559. +ac_save_CFLAGS=$CFLAGS
  8560. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  8561. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  8562. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  8563. + $as_echo_n "(cached) " >&6
  8564. +else
  8565. + ac_save_c_werror_flag=$ac_c_werror_flag
  8566. + ac_c_werror_flag=yes
  8567. + ac_cv_prog_cc_g=no
  8568. + CFLAGS="-g"
  8569. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8570. +/* end confdefs.h. */
  8571. +
  8572. +int
  8573. +main ()
  8574. +{
  8575. +
  8576. + ;
  8577. + return 0;
  8578. +}
  8579. +_ACEOF
  8580. +if ac_fn_c_try_compile "$LINENO"; then :
  8581. + ac_cv_prog_cc_g=yes
  8582. +else
  8583. + CFLAGS=""
  8584. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8585. +/* end confdefs.h. */
  8586. +
  8587. +int
  8588. +main ()
  8589. +{
  8590. +
  8591. + ;
  8592. + return 0;
  8593. +}
  8594. +_ACEOF
  8595. +if ac_fn_c_try_compile "$LINENO"; then :
  8596. +
  8597. +else
  8598. + ac_c_werror_flag=$ac_save_c_werror_flag
  8599. + CFLAGS="-g"
  8600. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8601. +/* end confdefs.h. */
  8602. +
  8603. +int
  8604. +main ()
  8605. +{
  8606. +
  8607. + ;
  8608. + return 0;
  8609. +}
  8610. +_ACEOF
  8611. +if ac_fn_c_try_compile "$LINENO"; then :
  8612. + ac_cv_prog_cc_g=yes
  8613. +fi
  8614. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8615. +fi
  8616. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8617. +fi
  8618. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8619. + ac_c_werror_flag=$ac_save_c_werror_flag
  8620. +fi
  8621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  8622. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  8623. +if test "$ac_test_CFLAGS" = set; then
  8624. + CFLAGS=$ac_save_CFLAGS
  8625. +elif test $ac_cv_prog_cc_g = yes; then
  8626. + if test "$GCC" = yes; then
  8627. + CFLAGS="-g -O2"
  8628. + else
  8629. + CFLAGS="-g"
  8630. + fi
  8631. +else
  8632. + if test "$GCC" = yes; then
  8633. + CFLAGS="-O2"
  8634. + else
  8635. + CFLAGS=
  8636. + fi
  8637. +fi
  8638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  8639. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  8640. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  8641. + $as_echo_n "(cached) " >&6
  8642. +else
  8643. + ac_cv_prog_cc_c89=no
  8644. +ac_save_CC=$CC
  8645. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8646. +/* end confdefs.h. */
  8647. +#include <stdarg.h>
  8648. +#include <stdio.h>
  8649. +#include <sys/types.h>
  8650. +#include <sys/stat.h>
  8651. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  8652. +struct buf { int x; };
  8653. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  8654. +static char *e (p, i)
  8655. + char **p;
  8656. + int i;
  8657. +{
  8658. + return p[i];
  8659. +}
  8660. +static char *f (char * (*g) (char **, int), char **p, ...)
  8661. +{
  8662. + char *s;
  8663. + va_list v;
  8664. + va_start (v,p);
  8665. + s = g (p, va_arg (v,int));
  8666. + va_end (v);
  8667. + return s;
  8668. +}
  8669. +
  8670. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  8671. + function prototypes and stuff, but not '\xHH' hex character constants.
  8672. + These don't provoke an error unfortunately, instead are silently treated
  8673. + as 'x'. The following induces an error, until -std is added to get
  8674. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  8675. + array size at least. It's necessary to write '\x00'==0 to get something
  8676. + that's true only with -std. */
  8677. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  8678. +
  8679. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  8680. + inside strings and character constants. */
  8681. +#define FOO(x) 'x'
  8682. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  8683. +
  8684. +int test (int i, double x);
  8685. +struct s1 {int (*f) (int a);};
  8686. +struct s2 {int (*f) (double a);};
  8687. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  8688. +int argc;
  8689. +char **argv;
  8690. +int
  8691. +main ()
  8692. +{
  8693. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  8694. + ;
  8695. + return 0;
  8696. +}
  8697. +_ACEOF
  8698. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  8699. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8700. +do
  8701. + CC="$ac_save_CC $ac_arg"
  8702. + if ac_fn_c_try_compile "$LINENO"; then :
  8703. + ac_cv_prog_cc_c89=$ac_arg
  8704. +fi
  8705. +rm -f core conftest.err conftest.$ac_objext
  8706. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  8707. +done
  8708. +rm -f conftest.$ac_ext
  8709. +CC=$ac_save_CC
  8710. +
  8711. +fi
  8712. +# AC_CACHE_VAL
  8713. +case "x$ac_cv_prog_cc_c89" in
  8714. + x)
  8715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  8716. +$as_echo "none needed" >&6; } ;;
  8717. + xno)
  8718. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  8719. +$as_echo "unsupported" >&6; } ;;
  8720. + *)
  8721. + CC="$CC $ac_cv_prog_cc_c89"
  8722. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  8723. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  8724. +esac
  8725. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  8726. +
  8727. +fi
  8728. +
  8729. +ac_ext=c
  8730. +ac_cpp='$CPP $CPPFLAGS'
  8731. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8732. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8733. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8734. +
  8735. +depcc="$CC" am_compiler_list=
  8736. +
  8737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  8738. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  8739. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  8740. + $as_echo_n "(cached) " >&6
  8741. +else
  8742. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8743. + # We make a subdir and do the tests there. Otherwise we can end up
  8744. + # making bogus files that we don't know about and never remove. For
  8745. + # instance it was reported that on HP-UX the gcc test will end up
  8746. + # making a dummy file named `D' -- because `-MD' means `put the output
  8747. + # in D'.
  8748. + mkdir conftest.dir
  8749. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8750. + # using a relative directory.
  8751. + cp "$am_depcomp" conftest.dir
  8752. + cd conftest.dir
  8753. + # We will build objects and dependencies in a subdirectory because
  8754. + # it helps to detect inapplicable dependency modes. For instance
  8755. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8756. + # side effect of compilation, but ICC will put the dependencies in
  8757. + # the current directory while Tru64 will put them in the object
  8758. + # directory.
  8759. + mkdir sub
  8760. +
  8761. + am_cv_CC_dependencies_compiler_type=none
  8762. + if test "$am_compiler_list" = ""; then
  8763. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8764. + fi
  8765. + am__universal=false
  8766. + case " $depcc " in #(
  8767. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8768. + esac
  8769. +
  8770. + for depmode in $am_compiler_list; do
  8771. + # Setup a source with many dependencies, because some compilers
  8772. + # like to wrap large dependency lists on column 80 (with \), and
  8773. + # we should not choose a depcomp mode which is confused by this.
  8774. + #
  8775. + # We need to recreate these files for each test, as the compiler may
  8776. + # overwrite some of them when testing with obscure command lines.
  8777. + # This happens at least with the AIX C compiler.
  8778. + : > sub/conftest.c
  8779. + for i in 1 2 3 4 5 6; do
  8780. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8781. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8782. + # Solaris 8's {/usr,}/bin/sh.
  8783. + touch sub/conftst$i.h
  8784. + done
  8785. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8786. +
  8787. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8788. + # mode. It turns out that the SunPro C++ compiler does not properly
  8789. + # handle `-M -o', and we need to detect this. Also, some Intel
  8790. + # versions had trouble with output in subdirs
  8791. + am__obj=sub/conftest.${OBJEXT-o}
  8792. + am__minus_obj="-o $am__obj"
  8793. + case $depmode in
  8794. + gcc)
  8795. + # This depmode causes a compiler race in universal mode.
  8796. + test "$am__universal" = false || continue
  8797. + ;;
  8798. + nosideeffect)
  8799. + # after this tag, mechanisms are not by side-effect, so they'll
  8800. + # only be used when explicitly requested
  8801. + if test "x$enable_dependency_tracking" = xyes; then
  8802. + continue
  8803. + else
  8804. + break
  8805. + fi
  8806. + ;;
  8807. + msvisualcpp | msvcmsys)
  8808. + # This compiler won't grok `-c -o', but also, the minuso test has
  8809. + # not run yet. These depmodes are late enough in the game, and
  8810. + # so weak that their functioning should not be impacted.
  8811. + am__obj=conftest.${OBJEXT-o}
  8812. + am__minus_obj=
  8813. + ;;
  8814. + none) break ;;
  8815. + esac
  8816. + if depmode=$depmode \
  8817. + source=sub/conftest.c object=$am__obj \
  8818. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8819. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8820. + >/dev/null 2>conftest.err &&
  8821. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8822. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8823. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8824. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8825. + # icc doesn't choke on unknown options, it will just issue warnings
  8826. + # or remarks (even with -Werror). So we grep stderr for any message
  8827. + # that says an option was ignored or not supported.
  8828. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8829. + # icc: Command line warning: ignoring option '-M'; no argument required
  8830. + # The diagnosis changed in icc 8.0:
  8831. + # icc: Command line remark: option '-MP' not supported
  8832. + if (grep 'ignoring option' conftest.err ||
  8833. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8834. + am_cv_CC_dependencies_compiler_type=$depmode
  8835. + break
  8836. + fi
  8837. + fi
  8838. + done
  8839. +
  8840. + cd ..
  8841. + rm -rf conftest.dir
  8842. +else
  8843. + am_cv_CC_dependencies_compiler_type=none
  8844. +fi
  8845. +
  8846. +fi
  8847. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  8848. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  8849. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8850. +
  8851. + if
  8852. + test "x$enable_dependency_tracking" != xno \
  8853. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  8854. + am__fastdepCC_TRUE=
  8855. + am__fastdepCC_FALSE='#'
  8856. +else
  8857. + am__fastdepCC_TRUE='#'
  8858. + am__fastdepCC_FALSE=
  8859. +fi
  8860. +
  8861. +
  8862. +ac_ext=c
  8863. +ac_cpp='$CPP $CPPFLAGS'
  8864. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8865. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8866. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8867. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  8868. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  8869. +# On Suns, sometimes $CPP names a directory.
  8870. +if test -n "$CPP" && test -d "$CPP"; then
  8871. + CPP=
  8872. +fi
  8873. +if test -z "$CPP"; then
  8874. + if test "${ac_cv_prog_CPP+set}" = set; then :
  8875. + $as_echo_n "(cached) " >&6
  8876. +else
  8877. + # Double quotes because CPP needs to be expanded
  8878. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  8879. + do
  8880. + ac_preproc_ok=false
  8881. +for ac_c_preproc_warn_flag in '' yes
  8882. +do
  8883. + # Use a header file that comes with gcc, so configuring glibc
  8884. + # with a fresh cross-compiler works.
  8885. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8886. + # <limits.h> exists even on freestanding compilers.
  8887. + # On the NeXT, cc -E runs the code through the compiler's parser,
  8888. + # not just through cpp. "Syntax error" is here to catch this case.
  8889. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8890. +/* end confdefs.h. */
  8891. +#ifdef __STDC__
  8892. +# include <limits.h>
  8893. +#else
  8894. +# include <assert.h>
  8895. +#endif
  8896. + Syntax error
  8897. +_ACEOF
  8898. +if ac_fn_c_try_cpp "$LINENO"; then :
  8899. +
  8900. +else
  8901. + # Broken: fails on valid input.
  8902. +continue
  8903. +fi
  8904. +rm -f conftest.err conftest.$ac_ext
  8905. +
  8906. + # OK, works on sane cases. Now check whether nonexistent headers
  8907. + # can be detected and how.
  8908. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8909. +/* end confdefs.h. */
  8910. +#include <ac_nonexistent.h>
  8911. +_ACEOF
  8912. +if ac_fn_c_try_cpp "$LINENO"; then :
  8913. + # Broken: success on invalid input.
  8914. +continue
  8915. +else
  8916. + # Passes both tests.
  8917. +ac_preproc_ok=:
  8918. +break
  8919. +fi
  8920. +rm -f conftest.err conftest.$ac_ext
  8921. +
  8922. +done
  8923. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8924. +rm -f conftest.err conftest.$ac_ext
  8925. +if $ac_preproc_ok; then :
  8926. + break
  8927. +fi
  8928. +
  8929. + done
  8930. + ac_cv_prog_CPP=$CPP
  8931. +
  8932. +fi
  8933. + CPP=$ac_cv_prog_CPP
  8934. +else
  8935. + ac_cv_prog_CPP=$CPP
  8936. +fi
  8937. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  8938. +$as_echo "$CPP" >&6; }
  8939. +ac_preproc_ok=false
  8940. +for ac_c_preproc_warn_flag in '' yes
  8941. +do
  8942. + # Use a header file that comes with gcc, so configuring glibc
  8943. + # with a fresh cross-compiler works.
  8944. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8945. + # <limits.h> exists even on freestanding compilers.
  8946. + # On the NeXT, cc -E runs the code through the compiler's parser,
  8947. + # not just through cpp. "Syntax error" is here to catch this case.
  8948. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8949. +/* end confdefs.h. */
  8950. +#ifdef __STDC__
  8951. +# include <limits.h>
  8952. +#else
  8953. +# include <assert.h>
  8954. +#endif
  8955. + Syntax error
  8956. +_ACEOF
  8957. +if ac_fn_c_try_cpp "$LINENO"; then :
  8958. +
  8959. +else
  8960. + # Broken: fails on valid input.
  8961. +continue
  8962. +fi
  8963. +rm -f conftest.err conftest.$ac_ext
  8964. +
  8965. + # OK, works on sane cases. Now check whether nonexistent headers
  8966. + # can be detected and how.
  8967. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8968. +/* end confdefs.h. */
  8969. +#include <ac_nonexistent.h>
  8970. +_ACEOF
  8971. +if ac_fn_c_try_cpp "$LINENO"; then :
  8972. + # Broken: success on invalid input.
  8973. +continue
  8974. +else
  8975. + # Passes both tests.
  8976. +ac_preproc_ok=:
  8977. +break
  8978. +fi
  8979. +rm -f conftest.err conftest.$ac_ext
  8980. +
  8981. +done
  8982. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8983. +rm -f conftest.err conftest.$ac_ext
  8984. +if $ac_preproc_ok; then :
  8985. +
  8986. +else
  8987. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8988. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8989. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  8990. +See \`config.log' for more details." "$LINENO" 5; }
  8991. +fi
  8992. +
  8993. +ac_ext=c
  8994. +ac_cpp='$CPP $CPPFLAGS'
  8995. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8996. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8997. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8998. +
  8999. +
  9000. +
  9001. + bb_save_CFLAGS="$CFLAGS"
  9002. + CFLAGS="-fvisibility=hidden $bb_save_CFLAGS"
  9003. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports -fvisibility=hidden" >&5
  9004. +$as_echo_n "checking whether the C compiler supports -fvisibility=hidden... " >&6; }
  9005. +if test "${bb_cv_cc_supports_hidden_visibility+set}" = set; then :
  9006. + $as_echo_n "(cached) " >&6
  9007. +else
  9008. +
  9009. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9010. +/* end confdefs.h. */
  9011. +
  9012. +int
  9013. +main ()
  9014. +{
  9015. +
  9016. + ;
  9017. + return 0;
  9018. +}
  9019. +_ACEOF
  9020. +if ac_fn_c_try_compile "$LINENO"; then :
  9021. + bb_cv_cc_supports_hidden_visibility=yes
  9022. +else
  9023. + bb_cv_cc_supports_hidden_visibility=no
  9024. +fi
  9025. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9026. +
  9027. +fi
  9028. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bb_cv_cc_supports_hidden_visibility" >&5
  9029. +$as_echo "$bb_cv_cc_supports_hidden_visibility" >&6; }
  9030. + CFLAGS="$bb_save_CFLAGS"
  9031. + if test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
  9032. + CFLAGS="-DGCC_HASCLASSVISIBILITY $CFLAGS"
  9033. + fi
  9034. +
  9035. +
  9036. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -fvisibility=hidden" >&5
  9037. +$as_echo_n "checking whether to use -fvisibility=hidden... " >&6; }
  9038. +
  9039. +# Check whether --with-hidden_visibility was given.
  9040. +if test "${with_hidden_visibility+set}" = set; then :
  9041. + withval=$with_hidden_visibility; bb_with_hidden_visibility=$withval
  9042. +else
  9043. + bb_with_hidden_visibility=auto
  9044. +fi
  9045. +
  9046. +
  9047. + if test "x$bb_with_hidden_visibility" != "xno" && \
  9048. + test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
  9049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9050. +$as_echo "yes" >&6; }
  9051. + VIS_CFLAGS="-fvisibility=hidden"
  9052. + else
  9053. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9054. +$as_echo "no" >&6; }
  9055. + fi
  9056. +
  9057. +
  9058. +
  9059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9060. +$as_echo_n "checking whether ln -s works... " >&6; }
  9061. +LN_S=$as_ln_s
  9062. +if test "$LN_S" = "ln -s"; then
  9063. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9064. +$as_echo "yes" >&6; }
  9065. +else
  9066. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9067. +$as_echo "no, using $LN_S" >&6; }
  9068. +fi
  9069. +
  9070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9071. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9072. +set x ${MAKE-make}
  9073. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9074. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  9075. + $as_echo_n "(cached) " >&6
  9076. +else
  9077. + cat >conftest.make <<\_ACEOF
  9078. +SHELL = /bin/sh
  9079. +all:
  9080. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  9081. +_ACEOF
  9082. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  9083. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9084. + *@@@%%%=?*=@@@%%%*)
  9085. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  9086. + *)
  9087. + eval ac_cv_prog_make_${ac_make}_set=no;;
  9088. +esac
  9089. +rm -f conftest.make
  9090. +fi
  9091. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9092. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9093. +$as_echo "yes" >&6; }
  9094. + SET_MAKE=
  9095. +else
  9096. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9097. +$as_echo "no" >&6; }
  9098. + SET_MAKE="MAKE=${MAKE-make}"
  9099. +fi
  9100. +
  9101. +# Check whether --enable-static was given.
  9102. +if test "${enable_static+set}" = set; then :
  9103. + enableval=$enable_static; p=${PACKAGE-default}
  9104. + case $enableval in
  9105. + yes) enable_static=yes ;;
  9106. + no) enable_static=no ;;
  9107. + *)
  9108. + enable_static=no
  9109. + # Look at the argument we got. We use all the common list separators.
  9110. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9111. + for pkg in $enableval; do
  9112. + IFS="$lt_save_ifs"
  9113. + if test "X$pkg" = "X$p"; then
  9114. + enable_static=yes
  9115. + fi
  9116. + done
  9117. + IFS="$lt_save_ifs"
  9118. + ;;
  9119. + esac
  9120. +else
  9121. + enable_static=no
  9122. +fi
  9123. +
  9124. +
  9125. +
  9126. +
  9127. +
  9128. +
  9129. +
  9130. +
  9131. +
  9132. +# Check whether --enable-shared was given.
  9133. +if test "${enable_shared+set}" = set; then :
  9134. + enableval=$enable_shared; p=${PACKAGE-default}
  9135. + case $enableval in
  9136. + yes) enable_shared=yes ;;
  9137. + no) enable_shared=no ;;
  9138. + *)
  9139. + enable_shared=no
  9140. + # Look at the argument we got. We use all the common list separators.
  9141. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9142. + for pkg in $enableval; do
  9143. + IFS="$lt_save_ifs"
  9144. + if test "X$pkg" = "X$p"; then
  9145. + enable_shared=yes
  9146. + fi
  9147. + done
  9148. + IFS="$lt_save_ifs"
  9149. + ;;
  9150. + esac
  9151. +else
  9152. + enable_shared=yes
  9153. +fi
  9154. +
  9155. +
  9156. +
  9157. +
  9158. +
  9159. +
  9160. +
  9161. +
  9162. +
  9163. +enable_dlopen=yes
  9164. +
  9165. +
  9166. +
  9167. +case `pwd` in
  9168. + *\ * | *\ *)
  9169. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  9170. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  9171. +esac
  9172. +
  9173. +
  9174. +
  9175. +macro_version='2.2.6b'
  9176. +macro_revision='1.3017'
  9177. +
  9178. +
  9179. +
  9180. +
  9181. +
  9182. +
  9183. +
  9184. +
  9185. +
  9186. +
  9187. +
  9188. +
  9189. +
  9190. +ltmain="$ac_aux_dir/ltmain.sh"
  9191. +
  9192. +# Make sure we can run config.sub.
  9193. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  9194. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  9195. +
  9196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  9197. +$as_echo_n "checking build system type... " >&6; }
  9198. +if test "${ac_cv_build+set}" = set; then :
  9199. + $as_echo_n "(cached) " >&6
  9200. +else
  9201. + ac_build_alias=$build_alias
  9202. +test "x$ac_build_alias" = x &&
  9203. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  9204. +test "x$ac_build_alias" = x &&
  9205. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  9206. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  9207. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  9208. +
  9209. +fi
  9210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  9211. +$as_echo "$ac_cv_build" >&6; }
  9212. +case $ac_cv_build in
  9213. +*-*-*) ;;
  9214. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  9215. +esac
  9216. +build=$ac_cv_build
  9217. +ac_save_IFS=$IFS; IFS='-'
  9218. +set x $ac_cv_build
  9219. +shift
  9220. +build_cpu=$1
  9221. +build_vendor=$2
  9222. +shift; shift
  9223. +# Remember, the first character of IFS is used to create $*,
  9224. +# except with old shells:
  9225. +build_os=$*
  9226. +IFS=$ac_save_IFS
  9227. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  9228. +
  9229. +
  9230. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  9231. +$as_echo_n "checking host system type... " >&6; }
  9232. +if test "${ac_cv_host+set}" = set; then :
  9233. + $as_echo_n "(cached) " >&6
  9234. +else
  9235. + if test "x$host_alias" = x; then
  9236. + ac_cv_host=$ac_cv_build
  9237. +else
  9238. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  9239. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  9240. +fi
  9241. +
  9242. +fi
  9243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  9244. +$as_echo "$ac_cv_host" >&6; }
  9245. +case $ac_cv_host in
  9246. +*-*-*) ;;
  9247. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  9248. +esac
  9249. +host=$ac_cv_host
  9250. +ac_save_IFS=$IFS; IFS='-'
  9251. +set x $ac_cv_host
  9252. +shift
  9253. +host_cpu=$1
  9254. +host_vendor=$2
  9255. +shift; shift
  9256. +# Remember, the first character of IFS is used to create $*,
  9257. +# except with old shells:
  9258. +host_os=$*
  9259. +IFS=$ac_save_IFS
  9260. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  9261. +
  9262. +
  9263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  9264. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  9265. +if test "${ac_cv_path_SED+set}" = set; then :
  9266. + $as_echo_n "(cached) " >&6
  9267. +else
  9268. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  9269. + for ac_i in 1 2 3 4 5 6 7; do
  9270. + ac_script="$ac_script$as_nl$ac_script"
  9271. + done
  9272. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  9273. + { ac_script=; unset ac_script;}
  9274. + if test -z "$SED"; then
  9275. + ac_path_SED_found=false
  9276. + # Loop through the user's path and test for each of PROGNAME-LIST
  9277. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9278. +for as_dir in $PATH
  9279. +do
  9280. + IFS=$as_save_IFS
  9281. + test -z "$as_dir" && as_dir=.
  9282. + for ac_prog in sed gsed; do
  9283. + for ac_exec_ext in '' $ac_executable_extensions; do
  9284. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  9285. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  9286. +# Check for GNU ac_path_SED and select it if it is found.
  9287. + # Check for GNU $ac_path_SED
  9288. +case `"$ac_path_SED" --version 2>&1` in
  9289. +*GNU*)
  9290. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  9291. +*)
  9292. + ac_count=0
  9293. + $as_echo_n 0123456789 >"conftest.in"
  9294. + while :
  9295. + do
  9296. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9297. + mv "conftest.tmp" "conftest.in"
  9298. + cp "conftest.in" "conftest.nl"
  9299. + $as_echo '' >> "conftest.nl"
  9300. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9301. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9302. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  9303. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  9304. + # Best one so far, save it but keep looking for a better one
  9305. + ac_cv_path_SED="$ac_path_SED"
  9306. + ac_path_SED_max=$ac_count
  9307. + fi
  9308. + # 10*(2^10) chars as input seems more than enough
  9309. + test $ac_count -gt 10 && break
  9310. + done
  9311. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9312. +esac
  9313. +
  9314. + $ac_path_SED_found && break 3
  9315. + done
  9316. + done
  9317. + done
  9318. +IFS=$as_save_IFS
  9319. + if test -z "$ac_cv_path_SED"; then
  9320. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  9321. + fi
  9322. +else
  9323. + ac_cv_path_SED=$SED
  9324. +fi
  9325. +
  9326. +fi
  9327. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  9328. +$as_echo "$ac_cv_path_SED" >&6; }
  9329. + SED="$ac_cv_path_SED"
  9330. + rm -f conftest.sed
  9331. +
  9332. +test -z "$SED" && SED=sed
  9333. +Xsed="$SED -e 1s/^X//"
  9334. +
  9335. +
  9336. +
  9337. +
  9338. +
  9339. +
  9340. +
  9341. +
  9342. +
  9343. +
  9344. +
  9345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  9346. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  9347. +if test "${ac_cv_path_GREP+set}" = set; then :
  9348. + $as_echo_n "(cached) " >&6
  9349. +else
  9350. + if test -z "$GREP"; then
  9351. + ac_path_GREP_found=false
  9352. + # Loop through the user's path and test for each of PROGNAME-LIST
  9353. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9354. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9355. +do
  9356. + IFS=$as_save_IFS
  9357. + test -z "$as_dir" && as_dir=.
  9358. + for ac_prog in grep ggrep; do
  9359. + for ac_exec_ext in '' $ac_executable_extensions; do
  9360. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  9361. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  9362. +# Check for GNU ac_path_GREP and select it if it is found.
  9363. + # Check for GNU $ac_path_GREP
  9364. +case `"$ac_path_GREP" --version 2>&1` in
  9365. +*GNU*)
  9366. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  9367. +*)
  9368. + ac_count=0
  9369. + $as_echo_n 0123456789 >"conftest.in"
  9370. + while :
  9371. + do
  9372. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9373. + mv "conftest.tmp" "conftest.in"
  9374. + cp "conftest.in" "conftest.nl"
  9375. + $as_echo 'GREP' >> "conftest.nl"
  9376. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9377. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9378. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  9379. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  9380. + # Best one so far, save it but keep looking for a better one
  9381. + ac_cv_path_GREP="$ac_path_GREP"
  9382. + ac_path_GREP_max=$ac_count
  9383. + fi
  9384. + # 10*(2^10) chars as input seems more than enough
  9385. + test $ac_count -gt 10 && break
  9386. + done
  9387. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9388. +esac
  9389. +
  9390. + $ac_path_GREP_found && break 3
  9391. + done
  9392. + done
  9393. + done
  9394. +IFS=$as_save_IFS
  9395. + if test -z "$ac_cv_path_GREP"; then
  9396. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9397. + fi
  9398. +else
  9399. + ac_cv_path_GREP=$GREP
  9400. +fi
  9401. +
  9402. +fi
  9403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  9404. +$as_echo "$ac_cv_path_GREP" >&6; }
  9405. + GREP="$ac_cv_path_GREP"
  9406. +
  9407. +
  9408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  9409. +$as_echo_n "checking for egrep... " >&6; }
  9410. +if test "${ac_cv_path_EGREP+set}" = set; then :
  9411. + $as_echo_n "(cached) " >&6
  9412. +else
  9413. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  9414. + then ac_cv_path_EGREP="$GREP -E"
  9415. + else
  9416. + if test -z "$EGREP"; then
  9417. + ac_path_EGREP_found=false
  9418. + # Loop through the user's path and test for each of PROGNAME-LIST
  9419. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9420. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9421. +do
  9422. + IFS=$as_save_IFS
  9423. + test -z "$as_dir" && as_dir=.
  9424. + for ac_prog in egrep; do
  9425. + for ac_exec_ext in '' $ac_executable_extensions; do
  9426. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  9427. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  9428. +# Check for GNU ac_path_EGREP and select it if it is found.
  9429. + # Check for GNU $ac_path_EGREP
  9430. +case `"$ac_path_EGREP" --version 2>&1` in
  9431. +*GNU*)
  9432. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  9433. +*)
  9434. + ac_count=0
  9435. + $as_echo_n 0123456789 >"conftest.in"
  9436. + while :
  9437. + do
  9438. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9439. + mv "conftest.tmp" "conftest.in"
  9440. + cp "conftest.in" "conftest.nl"
  9441. + $as_echo 'EGREP' >> "conftest.nl"
  9442. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9443. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9444. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  9445. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  9446. + # Best one so far, save it but keep looking for a better one
  9447. + ac_cv_path_EGREP="$ac_path_EGREP"
  9448. + ac_path_EGREP_max=$ac_count
  9449. + fi
  9450. + # 10*(2^10) chars as input seems more than enough
  9451. + test $ac_count -gt 10 && break
  9452. + done
  9453. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9454. +esac
  9455. +
  9456. + $ac_path_EGREP_found && break 3
  9457. + done
  9458. + done
  9459. + done
  9460. +IFS=$as_save_IFS
  9461. + if test -z "$ac_cv_path_EGREP"; then
  9462. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9463. + fi
  9464. +else
  9465. + ac_cv_path_EGREP=$EGREP
  9466. +fi
  9467. +
  9468. + fi
  9469. +fi
  9470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  9471. +$as_echo "$ac_cv_path_EGREP" >&6; }
  9472. + EGREP="$ac_cv_path_EGREP"
  9473. +
  9474. +
  9475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  9476. +$as_echo_n "checking for fgrep... " >&6; }
  9477. +if test "${ac_cv_path_FGREP+set}" = set; then :
  9478. + $as_echo_n "(cached) " >&6
  9479. +else
  9480. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  9481. + then ac_cv_path_FGREP="$GREP -F"
  9482. + else
  9483. + if test -z "$FGREP"; then
  9484. + ac_path_FGREP_found=false
  9485. + # Loop through the user's path and test for each of PROGNAME-LIST
  9486. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9487. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9488. +do
  9489. + IFS=$as_save_IFS
  9490. + test -z "$as_dir" && as_dir=.
  9491. + for ac_prog in fgrep; do
  9492. + for ac_exec_ext in '' $ac_executable_extensions; do
  9493. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  9494. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  9495. +# Check for GNU ac_path_FGREP and select it if it is found.
  9496. + # Check for GNU $ac_path_FGREP
  9497. +case `"$ac_path_FGREP" --version 2>&1` in
  9498. +*GNU*)
  9499. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  9500. +*)
  9501. + ac_count=0
  9502. + $as_echo_n 0123456789 >"conftest.in"
  9503. + while :
  9504. + do
  9505. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9506. + mv "conftest.tmp" "conftest.in"
  9507. + cp "conftest.in" "conftest.nl"
  9508. + $as_echo 'FGREP' >> "conftest.nl"
  9509. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9510. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9511. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  9512. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  9513. + # Best one so far, save it but keep looking for a better one
  9514. + ac_cv_path_FGREP="$ac_path_FGREP"
  9515. + ac_path_FGREP_max=$ac_count
  9516. + fi
  9517. + # 10*(2^10) chars as input seems more than enough
  9518. + test $ac_count -gt 10 && break
  9519. + done
  9520. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9521. +esac
  9522. +
  9523. + $ac_path_FGREP_found && break 3
  9524. + done
  9525. + done
  9526. + done
  9527. +IFS=$as_save_IFS
  9528. + if test -z "$ac_cv_path_FGREP"; then
  9529. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9530. + fi
  9531. +else
  9532. + ac_cv_path_FGREP=$FGREP
  9533. +fi
  9534. +
  9535. + fi
  9536. +fi
  9537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  9538. +$as_echo "$ac_cv_path_FGREP" >&6; }
  9539. + FGREP="$ac_cv_path_FGREP"
  9540. +
  9541. +
  9542. +test -z "$GREP" && GREP=grep
  9543. +
  9544. +
  9545. +
  9546. +
  9547. +
  9548. +
  9549. +
  9550. +
  9551. +
  9552. +
  9553. +
  9554. +
  9555. +
  9556. +
  9557. +
  9558. +
  9559. +
  9560. +
  9561. +
  9562. +# Check whether --with-gnu-ld was given.
  9563. +if test "${with_gnu_ld+set}" = set; then :
  9564. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9565. +else
  9566. + with_gnu_ld=no
  9567. +fi
  9568. +
  9569. +ac_prog=ld
  9570. +if test "$GCC" = yes; then
  9571. + # Check if gcc -print-prog-name=ld gives a path.
  9572. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9573. +$as_echo_n "checking for ld used by $CC... " >&6; }
  9574. + case $host in
  9575. + *-*-mingw*)
  9576. + # gcc leaves a trailing carriage return which upsets mingw
  9577. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9578. + *)
  9579. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9580. + esac
  9581. + case $ac_prog in
  9582. + # Accept absolute paths.
  9583. + [\\/]* | ?:[\\/]*)
  9584. + re_direlt='/[^/][^/]*/\.\./'
  9585. + # Canonicalize the pathname of ld
  9586. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9587. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9588. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9589. + done
  9590. + test -z "$LD" && LD="$ac_prog"
  9591. + ;;
  9592. + "")
  9593. + # If it fails, then pretend we aren't using GCC.
  9594. + ac_prog=ld
  9595. + ;;
  9596. + *)
  9597. + # If it is relative, then search for the first ld in PATH.
  9598. + with_gnu_ld=unknown
  9599. + ;;
  9600. + esac
  9601. +elif test "$with_gnu_ld" = yes; then
  9602. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9603. +$as_echo_n "checking for GNU ld... " >&6; }
  9604. +else
  9605. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9606. +$as_echo_n "checking for non-GNU ld... " >&6; }
  9607. +fi
  9608. +if test "${lt_cv_path_LD+set}" = set; then :
  9609. + $as_echo_n "(cached) " >&6
  9610. +else
  9611. + if test -z "$LD"; then
  9612. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9613. + for ac_dir in $PATH; do
  9614. + IFS="$lt_save_ifs"
  9615. + test -z "$ac_dir" && ac_dir=.
  9616. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9617. + lt_cv_path_LD="$ac_dir/$ac_prog"
  9618. + # Check to see if the program is GNU ld. I'd rather use --version,
  9619. + # but apparently some variants of GNU ld only accept -v.
  9620. + # Break only if it was the GNU/non-GNU ld that we prefer.
  9621. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9622. + *GNU* | *'with BFD'*)
  9623. + test "$with_gnu_ld" != no && break
  9624. + ;;
  9625. + *)
  9626. + test "$with_gnu_ld" != yes && break
  9627. + ;;
  9628. + esac
  9629. + fi
  9630. + done
  9631. + IFS="$lt_save_ifs"
  9632. +else
  9633. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9634. +fi
  9635. +fi
  9636. +
  9637. +LD="$lt_cv_path_LD"
  9638. +if test -n "$LD"; then
  9639. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9640. +$as_echo "$LD" >&6; }
  9641. +else
  9642. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9643. +$as_echo "no" >&6; }
  9644. +fi
  9645. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9647. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9648. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9649. + $as_echo_n "(cached) " >&6
  9650. +else
  9651. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9652. +case `$LD -v 2>&1 </dev/null` in
  9653. +*GNU* | *'with BFD'*)
  9654. + lt_cv_prog_gnu_ld=yes
  9655. + ;;
  9656. +*)
  9657. + lt_cv_prog_gnu_ld=no
  9658. + ;;
  9659. +esac
  9660. +fi
  9661. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9662. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9663. +with_gnu_ld=$lt_cv_prog_gnu_ld
  9664. +
  9665. +
  9666. +
  9667. +
  9668. +
  9669. +
  9670. +
  9671. +
  9672. +
  9673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9674. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9675. +if test "${lt_cv_path_NM+set}" = set; then :
  9676. + $as_echo_n "(cached) " >&6
  9677. +else
  9678. + if test -n "$NM"; then
  9679. + # Let the user override the test.
  9680. + lt_cv_path_NM="$NM"
  9681. +else
  9682. + lt_nm_to_check="${ac_tool_prefix}nm"
  9683. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9684. + lt_nm_to_check="$lt_nm_to_check nm"
  9685. + fi
  9686. + for lt_tmp_nm in $lt_nm_to_check; do
  9687. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9688. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9689. + IFS="$lt_save_ifs"
  9690. + test -z "$ac_dir" && ac_dir=.
  9691. + tmp_nm="$ac_dir/$lt_tmp_nm"
  9692. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9693. + # Check to see if the nm accepts a BSD-compat flag.
  9694. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9695. + # nm: unknown option "B" ignored
  9696. + # Tru64's nm complains that /dev/null is an invalid object file
  9697. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9698. + */dev/null* | *'Invalid file or object type'*)
  9699. + lt_cv_path_NM="$tmp_nm -B"
  9700. + break
  9701. + ;;
  9702. + *)
  9703. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9704. + */dev/null*)
  9705. + lt_cv_path_NM="$tmp_nm -p"
  9706. + break
  9707. + ;;
  9708. + *)
  9709. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9710. + continue # so that we can try to find one that supports BSD flags
  9711. + ;;
  9712. + esac
  9713. + ;;
  9714. + esac
  9715. + fi
  9716. + done
  9717. + IFS="$lt_save_ifs"
  9718. + done
  9719. + : ${lt_cv_path_NM=no}
  9720. +fi
  9721. +fi
  9722. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9723. +$as_echo "$lt_cv_path_NM" >&6; }
  9724. +if test "$lt_cv_path_NM" != "no"; then
  9725. + NM="$lt_cv_path_NM"
  9726. +else
  9727. + # Didn't find any BSD compatible name lister, look for dumpbin.
  9728. + if test -n "$ac_tool_prefix"; then
  9729. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  9730. + do
  9731. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9732. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9734. +$as_echo_n "checking for $ac_word... " >&6; }
  9735. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  9736. + $as_echo_n "(cached) " >&6
  9737. +else
  9738. + if test -n "$DUMPBIN"; then
  9739. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9740. +else
  9741. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9742. +for as_dir in $PATH
  9743. +do
  9744. + IFS=$as_save_IFS
  9745. + test -z "$as_dir" && as_dir=.
  9746. + for ac_exec_ext in '' $ac_executable_extensions; do
  9747. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9748. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9749. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9750. + break 2
  9751. + fi
  9752. +done
  9753. + done
  9754. +IFS=$as_save_IFS
  9755. +
  9756. +fi
  9757. +fi
  9758. +DUMPBIN=$ac_cv_prog_DUMPBIN
  9759. +if test -n "$DUMPBIN"; then
  9760. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9761. +$as_echo "$DUMPBIN" >&6; }
  9762. +else
  9763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9764. +$as_echo "no" >&6; }
  9765. +fi
  9766. +
  9767. +
  9768. + test -n "$DUMPBIN" && break
  9769. + done
  9770. +fi
  9771. +if test -z "$DUMPBIN"; then
  9772. + ac_ct_DUMPBIN=$DUMPBIN
  9773. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  9774. +do
  9775. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  9776. +set dummy $ac_prog; ac_word=$2
  9777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9778. +$as_echo_n "checking for $ac_word... " >&6; }
  9779. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  9780. + $as_echo_n "(cached) " >&6
  9781. +else
  9782. + if test -n "$ac_ct_DUMPBIN"; then
  9783. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9784. +else
  9785. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9786. +for as_dir in $PATH
  9787. +do
  9788. + IFS=$as_save_IFS
  9789. + test -z "$as_dir" && as_dir=.
  9790. + for ac_exec_ext in '' $ac_executable_extensions; do
  9791. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9792. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9793. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9794. + break 2
  9795. + fi
  9796. +done
  9797. + done
  9798. +IFS=$as_save_IFS
  9799. +
  9800. +fi
  9801. +fi
  9802. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9803. +if test -n "$ac_ct_DUMPBIN"; then
  9804. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9805. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  9806. +else
  9807. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9808. +$as_echo "no" >&6; }
  9809. +fi
  9810. +
  9811. +
  9812. + test -n "$ac_ct_DUMPBIN" && break
  9813. +done
  9814. +
  9815. + if test "x$ac_ct_DUMPBIN" = x; then
  9816. + DUMPBIN=":"
  9817. + else
  9818. + case $cross_compiling:$ac_tool_warned in
  9819. +yes:)
  9820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9821. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9822. +ac_tool_warned=yes ;;
  9823. +esac
  9824. + DUMPBIN=$ac_ct_DUMPBIN
  9825. + fi
  9826. +fi
  9827. +
  9828. +
  9829. + if test "$DUMPBIN" != ":"; then
  9830. + NM="$DUMPBIN"
  9831. + fi
  9832. +fi
  9833. +test -z "$NM" && NM=nm
  9834. +
  9835. +
  9836. +
  9837. +
  9838. +
  9839. +
  9840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9841. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  9842. +if test "${lt_cv_nm_interface+set}" = set; then :
  9843. + $as_echo_n "(cached) " >&6
  9844. +else
  9845. + lt_cv_nm_interface="BSD nm"
  9846. + echo "int some_variable = 0;" > conftest.$ac_ext
  9847. + (eval echo "\"\$as_me:5438: $ac_compile\"" >&5)
  9848. + (eval "$ac_compile" 2>conftest.err)
  9849. + cat conftest.err >&5
  9850. + (eval echo "\"\$as_me:5441: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9851. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9852. + cat conftest.err >&5
  9853. + (eval echo "\"\$as_me:5444: output\"" >&5)
  9854. + cat conftest.out >&5
  9855. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9856. + lt_cv_nm_interface="MS dumpbin"
  9857. + fi
  9858. + rm -f conftest*
  9859. +fi
  9860. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9861. +$as_echo "$lt_cv_nm_interface" >&6; }
  9862. +
  9863. +# find the maximum length of command line arguments
  9864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9865. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  9866. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  9867. + $as_echo_n "(cached) " >&6
  9868. +else
  9869. + i=0
  9870. + teststring="ABCD"
  9871. +
  9872. + case $build_os in
  9873. + msdosdjgpp*)
  9874. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  9875. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  9876. + # during glob expansion). Even if it were fixed, the result of this
  9877. + # check would be larger than it should be.
  9878. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9879. + ;;
  9880. +
  9881. + gnu*)
  9882. + # Under GNU Hurd, this test is not required because there is
  9883. + # no limit to the length of command line arguments.
  9884. + # Libtool will interpret -1 as no limit whatsoever
  9885. + lt_cv_sys_max_cmd_len=-1;
  9886. + ;;
  9887. +
  9888. + cygwin* | mingw* | cegcc*)
  9889. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  9890. + # about 5 minutes as the teststring grows exponentially.
  9891. + # Worse, since 9x/ME are not pre-emptively multitasking,
  9892. + # you end up with a "frozen" computer, even though with patience
  9893. + # the test eventually succeeds (with a max line length of 256k).
  9894. + # Instead, let's just punt: use the minimum linelength reported by
  9895. + # all of the supported platforms: 8192 (on NT/2K/XP).
  9896. + lt_cv_sys_max_cmd_len=8192;
  9897. + ;;
  9898. +
  9899. + amigaos*)
  9900. + # On AmigaOS with pdksh, this test takes hours, literally.
  9901. + # So we just punt and use a minimum line length of 8192.
  9902. + lt_cv_sys_max_cmd_len=8192;
  9903. + ;;
  9904. +
  9905. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  9906. + # This has been around since 386BSD, at least. Likely further.
  9907. + if test -x /sbin/sysctl; then
  9908. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9909. + elif test -x /usr/sbin/sysctl; then
  9910. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9911. + else
  9912. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9913. + fi
  9914. + # And add a safety zone
  9915. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9916. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9917. + ;;
  9918. +
  9919. + interix*)
  9920. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9921. + lt_cv_sys_max_cmd_len=196608
  9922. + ;;
  9923. +
  9924. + osf*)
  9925. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9926. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9927. + # nice to cause kernel panics so lets avoid the loop below.
  9928. + # First set a reasonable default.
  9929. + lt_cv_sys_max_cmd_len=16384
  9930. + #
  9931. + if test -x /sbin/sysconfig; then
  9932. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9933. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9934. + esac
  9935. + fi
  9936. + ;;
  9937. + sco3.2v5*)
  9938. + lt_cv_sys_max_cmd_len=102400
  9939. + ;;
  9940. + sysv5* | sco5v6* | sysv4.2uw2*)
  9941. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9942. + if test -n "$kargmax"; then
  9943. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  9944. + else
  9945. + lt_cv_sys_max_cmd_len=32768
  9946. + fi
  9947. + ;;
  9948. + *)
  9949. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9950. + if test -n "$lt_cv_sys_max_cmd_len"; then
  9951. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9952. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9953. + else
  9954. + # Make teststring a little bigger before we do anything with it.
  9955. + # a 1K string should be a reasonable start.
  9956. + for i in 1 2 3 4 5 6 7 8 ; do
  9957. + teststring=$teststring$teststring
  9958. + done
  9959. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9960. + # If test is not a shell built-in, we'll probably end up computing a
  9961. + # maximum length that is only half of the actual maximum length, but
  9962. + # we can't tell.
  9963. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  9964. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  9965. + test $i != 17 # 1/2 MB should be enough
  9966. + do
  9967. + i=`expr $i + 1`
  9968. + teststring=$teststring$teststring
  9969. + done
  9970. + # Only check the string length outside the loop.
  9971. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9972. + teststring=
  9973. + # Add a significant safety factor because C++ compilers can tack on
  9974. + # massive amounts of additional arguments before passing them to the
  9975. + # linker. It appears as though 1/2 is a usable value.
  9976. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9977. + fi
  9978. + ;;
  9979. + esac
  9980. +
  9981. +fi
  9982. +
  9983. +if test -n $lt_cv_sys_max_cmd_len ; then
  9984. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9985. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9986. +else
  9987. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9988. +$as_echo "none" >&6; }
  9989. +fi
  9990. +max_cmd_len=$lt_cv_sys_max_cmd_len
  9991. +
  9992. +
  9993. +
  9994. +
  9995. +
  9996. +
  9997. +: ${CP="cp -f"}
  9998. +: ${MV="mv -f"}
  9999. +: ${RM="rm -f"}
  10000. +
  10001. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  10002. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  10003. +# Try some XSI features
  10004. +xsi_shell=no
  10005. +( _lt_dummy="a/b/c"
  10006. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  10007. + = c,a/b,, \
  10008. + && eval 'test $(( 1 + 1 )) -eq 2 \
  10009. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  10010. + && xsi_shell=yes
  10011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  10012. +$as_echo "$xsi_shell" >&6; }
  10013. +
  10014. +
  10015. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  10016. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  10017. +lt_shell_append=no
  10018. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  10019. + >/dev/null 2>&1 \
  10020. + && lt_shell_append=yes
  10021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  10022. +$as_echo "$lt_shell_append" >&6; }
  10023. +
  10024. +
  10025. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10026. + lt_unset=unset
  10027. +else
  10028. + lt_unset=false
  10029. +fi
  10030. +
  10031. +
  10032. +
  10033. +
  10034. +
  10035. +# test EBCDIC or ASCII
  10036. +case `echo X|tr X '\101'` in
  10037. + A) # ASCII based system
  10038. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  10039. + lt_SP2NL='tr \040 \012'
  10040. + lt_NL2SP='tr \015\012 \040\040'
  10041. + ;;
  10042. + *) # EBCDIC based system
  10043. + lt_SP2NL='tr \100 \n'
  10044. + lt_NL2SP='tr \r\n \100\100'
  10045. + ;;
  10046. +esac
  10047. +
  10048. +
  10049. +
  10050. +
  10051. +
  10052. +
  10053. +
  10054. +
  10055. +
  10056. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  10057. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  10058. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  10059. + $as_echo_n "(cached) " >&6
  10060. +else
  10061. + lt_cv_ld_reload_flag='-r'
  10062. +fi
  10063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  10064. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  10065. +reload_flag=$lt_cv_ld_reload_flag
  10066. +case $reload_flag in
  10067. +"" | " "*) ;;
  10068. +*) reload_flag=" $reload_flag" ;;
  10069. +esac
  10070. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10071. +case $host_os in
  10072. + darwin*)
  10073. + if test "$GCC" = yes; then
  10074. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  10075. + else
  10076. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10077. + fi
  10078. + ;;
  10079. +esac
  10080. +
  10081. +
  10082. +
  10083. +
  10084. +
  10085. +
  10086. +
  10087. +
  10088. +
  10089. +if test -n "$ac_tool_prefix"; then
  10090. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10091. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10093. +$as_echo_n "checking for $ac_word... " >&6; }
  10094. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  10095. + $as_echo_n "(cached) " >&6
  10096. +else
  10097. + if test -n "$OBJDUMP"; then
  10098. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10099. +else
  10100. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10101. +for as_dir in $PATH
  10102. +do
  10103. + IFS=$as_save_IFS
  10104. + test -z "$as_dir" && as_dir=.
  10105. + for ac_exec_ext in '' $ac_executable_extensions; do
  10106. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10107. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10108. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10109. + break 2
  10110. + fi
  10111. +done
  10112. + done
  10113. +IFS=$as_save_IFS
  10114. +
  10115. +fi
  10116. +fi
  10117. +OBJDUMP=$ac_cv_prog_OBJDUMP
  10118. +if test -n "$OBJDUMP"; then
  10119. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10120. +$as_echo "$OBJDUMP" >&6; }
  10121. +else
  10122. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10123. +$as_echo "no" >&6; }
  10124. +fi
  10125. +
  10126. +
  10127. +fi
  10128. +if test -z "$ac_cv_prog_OBJDUMP"; then
  10129. + ac_ct_OBJDUMP=$OBJDUMP
  10130. + # Extract the first word of "objdump", so it can be a program name with args.
  10131. +set dummy objdump; ac_word=$2
  10132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10133. +$as_echo_n "checking for $ac_word... " >&6; }
  10134. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  10135. + $as_echo_n "(cached) " >&6
  10136. +else
  10137. + if test -n "$ac_ct_OBJDUMP"; then
  10138. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10139. +else
  10140. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10141. +for as_dir in $PATH
  10142. +do
  10143. + IFS=$as_save_IFS
  10144. + test -z "$as_dir" && as_dir=.
  10145. + for ac_exec_ext in '' $ac_executable_extensions; do
  10146. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10147. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10148. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10149. + break 2
  10150. + fi
  10151. +done
  10152. + done
  10153. +IFS=$as_save_IFS
  10154. +
  10155. +fi
  10156. +fi
  10157. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10158. +if test -n "$ac_ct_OBJDUMP"; then
  10159. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10160. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  10161. +else
  10162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10163. +$as_echo "no" >&6; }
  10164. +fi
  10165. +
  10166. + if test "x$ac_ct_OBJDUMP" = x; then
  10167. + OBJDUMP="false"
  10168. + else
  10169. + case $cross_compiling:$ac_tool_warned in
  10170. +yes:)
  10171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10172. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10173. +ac_tool_warned=yes ;;
  10174. +esac
  10175. + OBJDUMP=$ac_ct_OBJDUMP
  10176. + fi
  10177. +else
  10178. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  10179. +fi
  10180. +
  10181. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10182. +
  10183. +
  10184. +
  10185. +
  10186. +
  10187. +
  10188. +
  10189. +
  10190. +
  10191. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  10192. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  10193. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  10194. + $as_echo_n "(cached) " >&6
  10195. +else
  10196. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  10197. +lt_cv_file_magic_test_file=
  10198. +lt_cv_deplibs_check_method='unknown'
  10199. +# Need to set the preceding variable on all platforms that support
  10200. +# interlibrary dependencies.
  10201. +# 'none' -- dependencies not supported.
  10202. +# `unknown' -- same as none, but documents that we really don't know.
  10203. +# 'pass_all' -- all dependencies passed with no checks.
  10204. +# 'test_compile' -- check by making test program.
  10205. +# 'file_magic [[regex]]' -- check by looking for files in library path
  10206. +# which responds to the $file_magic_cmd with a given extended regex.
  10207. +# If you have `file' or equivalent on your system and you're not sure
  10208. +# whether `pass_all' will *always* work, you probably want this one.
  10209. +
  10210. +case $host_os in
  10211. +aix[4-9]*)
  10212. + lt_cv_deplibs_check_method=pass_all
  10213. + ;;
  10214. +
  10215. +beos*)
  10216. + lt_cv_deplibs_check_method=pass_all
  10217. + ;;
  10218. +
  10219. +bsdi[45]*)
  10220. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  10221. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  10222. + lt_cv_file_magic_test_file=/shlib/libc.so
  10223. + ;;
  10224. +
  10225. +cygwin*)
  10226. + # func_win32_libid is a shell function defined in ltmain.sh
  10227. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10228. + lt_cv_file_magic_cmd='func_win32_libid'
  10229. + ;;
  10230. +
  10231. +mingw* | pw32*)
  10232. + # Base MSYS/MinGW do not provide the 'file' command needed by
  10233. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  10234. + # unless we find 'file', for example because we are cross-compiling.
  10235. + if ( file / ) >/dev/null 2>&1; then
  10236. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10237. + lt_cv_file_magic_cmd='func_win32_libid'
  10238. + else
  10239. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  10240. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  10241. + fi
  10242. + ;;
  10243. +
  10244. +cegcc)
  10245. + # use the weaker test based on 'objdump'. See mingw*.
  10246. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  10247. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  10248. + ;;
  10249. +
  10250. +darwin* | rhapsody*)
  10251. + lt_cv_deplibs_check_method=pass_all
  10252. + ;;
  10253. +
  10254. +freebsd* | dragonfly*)
  10255. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10256. + case $host_cpu in
  10257. + i*86 )
  10258. + # Not sure whether the presence of OpenBSD here was a mistake.
  10259. + # Let's accept both of them until this is cleared up.
  10260. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  10261. + lt_cv_file_magic_cmd=/usr/bin/file
  10262. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  10263. + ;;
  10264. + esac
  10265. + else
  10266. + lt_cv_deplibs_check_method=pass_all
  10267. + fi
  10268. + ;;
  10269. +
  10270. +gnu*)
  10271. + lt_cv_deplibs_check_method=pass_all
  10272. + ;;
  10273. +
  10274. +hpux10.20* | hpux11*)
  10275. + lt_cv_file_magic_cmd=/usr/bin/file
  10276. + case $host_cpu in
  10277. + ia64*)
  10278. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  10279. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  10280. + ;;
  10281. + hppa*64*)
  10282. + 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]'
  10283. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  10284. + ;;
  10285. + *)
  10286. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  10287. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  10288. + ;;
  10289. + esac
  10290. + ;;
  10291. +
  10292. +interix[3-9]*)
  10293. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  10294. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  10295. + ;;
  10296. +
  10297. +irix5* | irix6* | nonstopux*)
  10298. + case $LD in
  10299. + *-32|*"-32 ") libmagic=32-bit;;
  10300. + *-n32|*"-n32 ") libmagic=N32;;
  10301. + *-64|*"-64 ") libmagic=64-bit;;
  10302. + *) libmagic=never-match;;
  10303. + esac
  10304. + lt_cv_deplibs_check_method=pass_all
  10305. + ;;
  10306. +
  10307. +# This must be Linux ELF.
  10308. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10309. + lt_cv_deplibs_check_method=pass_all
  10310. + ;;
  10311. +
  10312. +netbsd* | netbsdelf*-gnu)
  10313. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10314. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10315. + else
  10316. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  10317. + fi
  10318. + ;;
  10319. +
  10320. +newos6*)
  10321. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  10322. + lt_cv_file_magic_cmd=/usr/bin/file
  10323. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  10324. + ;;
  10325. +
  10326. +*nto* | *qnx*)
  10327. + lt_cv_deplibs_check_method=pass_all
  10328. + ;;
  10329. +
  10330. +openbsd*)
  10331. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10332. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  10333. + else
  10334. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10335. + fi
  10336. + ;;
  10337. +
  10338. +osf3* | osf4* | osf5*)
  10339. + lt_cv_deplibs_check_method=pass_all
  10340. + ;;
  10341. +
  10342. +rdos*)
  10343. + lt_cv_deplibs_check_method=pass_all
  10344. + ;;
  10345. +
  10346. +solaris*)
  10347. + lt_cv_deplibs_check_method=pass_all
  10348. + ;;
  10349. +
  10350. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10351. + lt_cv_deplibs_check_method=pass_all
  10352. + ;;
  10353. +
  10354. +sysv4 | sysv4.3*)
  10355. + case $host_vendor in
  10356. + motorola)
  10357. + 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]'
  10358. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  10359. + ;;
  10360. + ncr)
  10361. + lt_cv_deplibs_check_method=pass_all
  10362. + ;;
  10363. + sequent)
  10364. + lt_cv_file_magic_cmd='/bin/file'
  10365. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  10366. + ;;
  10367. + sni)
  10368. + lt_cv_file_magic_cmd='/bin/file'
  10369. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  10370. + lt_cv_file_magic_test_file=/lib/libc.so
  10371. + ;;
  10372. + siemens)
  10373. + lt_cv_deplibs_check_method=pass_all
  10374. + ;;
  10375. + pc)
  10376. + lt_cv_deplibs_check_method=pass_all
  10377. + ;;
  10378. + esac
  10379. + ;;
  10380. +
  10381. +tpf*)
  10382. + lt_cv_deplibs_check_method=pass_all
  10383. + ;;
  10384. +esac
  10385. +
  10386. +fi
  10387. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  10388. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  10389. +file_magic_cmd=$lt_cv_file_magic_cmd
  10390. +deplibs_check_method=$lt_cv_deplibs_check_method
  10391. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  10392. +
  10393. +
  10394. +
  10395. +
  10396. +
  10397. +
  10398. +
  10399. +
  10400. +
  10401. +
  10402. +
  10403. +
  10404. +if test -n "$ac_tool_prefix"; then
  10405. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  10406. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  10407. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10408. +$as_echo_n "checking for $ac_word... " >&6; }
  10409. +if test "${ac_cv_prog_AR+set}" = set; then :
  10410. + $as_echo_n "(cached) " >&6
  10411. +else
  10412. + if test -n "$AR"; then
  10413. + ac_cv_prog_AR="$AR" # Let the user override the test.
  10414. +else
  10415. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10416. +for as_dir in $PATH
  10417. +do
  10418. + IFS=$as_save_IFS
  10419. + test -z "$as_dir" && as_dir=.
  10420. + for ac_exec_ext in '' $ac_executable_extensions; do
  10421. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10422. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  10423. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10424. + break 2
  10425. + fi
  10426. +done
  10427. + done
  10428. +IFS=$as_save_IFS
  10429. +
  10430. +fi
  10431. +fi
  10432. +AR=$ac_cv_prog_AR
  10433. +if test -n "$AR"; then
  10434. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10435. +$as_echo "$AR" >&6; }
  10436. +else
  10437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10438. +$as_echo "no" >&6; }
  10439. +fi
  10440. +
  10441. +
  10442. +fi
  10443. +if test -z "$ac_cv_prog_AR"; then
  10444. + ac_ct_AR=$AR
  10445. + # Extract the first word of "ar", so it can be a program name with args.
  10446. +set dummy ar; ac_word=$2
  10447. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10448. +$as_echo_n "checking for $ac_word... " >&6; }
  10449. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  10450. + $as_echo_n "(cached) " >&6
  10451. +else
  10452. + if test -n "$ac_ct_AR"; then
  10453. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10454. +else
  10455. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10456. +for as_dir in $PATH
  10457. +do
  10458. + IFS=$as_save_IFS
  10459. + test -z "$as_dir" && as_dir=.
  10460. + for ac_exec_ext in '' $ac_executable_extensions; do
  10461. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10462. + ac_cv_prog_ac_ct_AR="ar"
  10463. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10464. + break 2
  10465. + fi
  10466. +done
  10467. + done
  10468. +IFS=$as_save_IFS
  10469. +
  10470. +fi
  10471. +fi
  10472. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10473. +if test -n "$ac_ct_AR"; then
  10474. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10475. +$as_echo "$ac_ct_AR" >&6; }
  10476. +else
  10477. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10478. +$as_echo "no" >&6; }
  10479. +fi
  10480. +
  10481. + if test "x$ac_ct_AR" = x; then
  10482. + AR="false"
  10483. + else
  10484. + case $cross_compiling:$ac_tool_warned in
  10485. +yes:)
  10486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10487. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10488. +ac_tool_warned=yes ;;
  10489. +esac
  10490. + AR=$ac_ct_AR
  10491. + fi
  10492. +else
  10493. + AR="$ac_cv_prog_AR"
  10494. +fi
  10495. +
  10496. +test -z "$AR" && AR=ar
  10497. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  10498. +
  10499. +
  10500. +
  10501. +
  10502. +
  10503. +
  10504. +
  10505. +
  10506. +
  10507. +
  10508. +
  10509. +if test -n "$ac_tool_prefix"; then
  10510. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10511. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  10512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10513. +$as_echo_n "checking for $ac_word... " >&6; }
  10514. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  10515. + $as_echo_n "(cached) " >&6
  10516. +else
  10517. + if test -n "$STRIP"; then
  10518. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10519. +else
  10520. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10521. +for as_dir in $PATH
  10522. +do
  10523. + IFS=$as_save_IFS
  10524. + test -z "$as_dir" && as_dir=.
  10525. + for ac_exec_ext in '' $ac_executable_extensions; do
  10526. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10527. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10528. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10529. + break 2
  10530. + fi
  10531. +done
  10532. + done
  10533. +IFS=$as_save_IFS
  10534. +
  10535. +fi
  10536. +fi
  10537. +STRIP=$ac_cv_prog_STRIP
  10538. +if test -n "$STRIP"; then
  10539. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10540. +$as_echo "$STRIP" >&6; }
  10541. +else
  10542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10543. +$as_echo "no" >&6; }
  10544. +fi
  10545. +
  10546. +
  10547. +fi
  10548. +if test -z "$ac_cv_prog_STRIP"; then
  10549. + ac_ct_STRIP=$STRIP
  10550. + # Extract the first word of "strip", so it can be a program name with args.
  10551. +set dummy strip; ac_word=$2
  10552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10553. +$as_echo_n "checking for $ac_word... " >&6; }
  10554. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  10555. + $as_echo_n "(cached) " >&6
  10556. +else
  10557. + if test -n "$ac_ct_STRIP"; then
  10558. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10559. +else
  10560. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10561. +for as_dir in $PATH
  10562. +do
  10563. + IFS=$as_save_IFS
  10564. + test -z "$as_dir" && as_dir=.
  10565. + for ac_exec_ext in '' $ac_executable_extensions; do
  10566. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10567. + ac_cv_prog_ac_ct_STRIP="strip"
  10568. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10569. + break 2
  10570. + fi
  10571. +done
  10572. + done
  10573. +IFS=$as_save_IFS
  10574. +
  10575. +fi
  10576. +fi
  10577. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10578. +if test -n "$ac_ct_STRIP"; then
  10579. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10580. +$as_echo "$ac_ct_STRIP" >&6; }
  10581. +else
  10582. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10583. +$as_echo "no" >&6; }
  10584. +fi
  10585. +
  10586. + if test "x$ac_ct_STRIP" = x; then
  10587. + STRIP=":"
  10588. + else
  10589. + case $cross_compiling:$ac_tool_warned in
  10590. +yes:)
  10591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10592. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10593. +ac_tool_warned=yes ;;
  10594. +esac
  10595. + STRIP=$ac_ct_STRIP
  10596. + fi
  10597. +else
  10598. + STRIP="$ac_cv_prog_STRIP"
  10599. +fi
  10600. +
  10601. +test -z "$STRIP" && STRIP=:
  10602. +
  10603. +
  10604. +
  10605. +
  10606. +
  10607. +
  10608. +if test -n "$ac_tool_prefix"; then
  10609. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10610. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10611. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10612. +$as_echo_n "checking for $ac_word... " >&6; }
  10613. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  10614. + $as_echo_n "(cached) " >&6
  10615. +else
  10616. + if test -n "$RANLIB"; then
  10617. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10618. +else
  10619. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10620. +for as_dir in $PATH
  10621. +do
  10622. + IFS=$as_save_IFS
  10623. + test -z "$as_dir" && as_dir=.
  10624. + for ac_exec_ext in '' $ac_executable_extensions; do
  10625. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10626. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10627. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10628. + break 2
  10629. + fi
  10630. +done
  10631. + done
  10632. +IFS=$as_save_IFS
  10633. +
  10634. +fi
  10635. +fi
  10636. +RANLIB=$ac_cv_prog_RANLIB
  10637. +if test -n "$RANLIB"; then
  10638. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10639. +$as_echo "$RANLIB" >&6; }
  10640. +else
  10641. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10642. +$as_echo "no" >&6; }
  10643. +fi
  10644. +
  10645. +
  10646. +fi
  10647. +if test -z "$ac_cv_prog_RANLIB"; then
  10648. + ac_ct_RANLIB=$RANLIB
  10649. + # Extract the first word of "ranlib", so it can be a program name with args.
  10650. +set dummy ranlib; ac_word=$2
  10651. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10652. +$as_echo_n "checking for $ac_word... " >&6; }
  10653. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  10654. + $as_echo_n "(cached) " >&6
  10655. +else
  10656. + if test -n "$ac_ct_RANLIB"; then
  10657. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10658. +else
  10659. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10660. +for as_dir in $PATH
  10661. +do
  10662. + IFS=$as_save_IFS
  10663. + test -z "$as_dir" && as_dir=.
  10664. + for ac_exec_ext in '' $ac_executable_extensions; do
  10665. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10666. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  10667. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10668. + break 2
  10669. + fi
  10670. +done
  10671. + done
  10672. +IFS=$as_save_IFS
  10673. +
  10674. +fi
  10675. +fi
  10676. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10677. +if test -n "$ac_ct_RANLIB"; then
  10678. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10679. +$as_echo "$ac_ct_RANLIB" >&6; }
  10680. +else
  10681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10682. +$as_echo "no" >&6; }
  10683. +fi
  10684. +
  10685. + if test "x$ac_ct_RANLIB" = x; then
  10686. + RANLIB=":"
  10687. + else
  10688. + case $cross_compiling:$ac_tool_warned in
  10689. +yes:)
  10690. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10691. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10692. +ac_tool_warned=yes ;;
  10693. +esac
  10694. + RANLIB=$ac_ct_RANLIB
  10695. + fi
  10696. +else
  10697. + RANLIB="$ac_cv_prog_RANLIB"
  10698. +fi
  10699. +
  10700. +test -z "$RANLIB" && RANLIB=:
  10701. +
  10702. +
  10703. +
  10704. +
  10705. +
  10706. +
  10707. +# Determine commands to create old-style static archives.
  10708. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10709. +old_postinstall_cmds='chmod 644 $oldlib'
  10710. +old_postuninstall_cmds=
  10711. +
  10712. +if test -n "$RANLIB"; then
  10713. + case $host_os in
  10714. + openbsd*)
  10715. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  10716. + ;;
  10717. + *)
  10718. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  10719. + ;;
  10720. + esac
  10721. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  10722. +fi
  10723. +
  10724. +
  10725. +
  10726. +
  10727. +
  10728. +
  10729. +
  10730. +
  10731. +
  10732. +
  10733. +
  10734. +
  10735. +
  10736. +
  10737. +
  10738. +
  10739. +
  10740. +
  10741. +
  10742. +
  10743. +
  10744. +
  10745. +
  10746. +
  10747. +
  10748. +
  10749. +
  10750. +
  10751. +
  10752. +
  10753. +
  10754. +
  10755. +
  10756. +
  10757. +# If no C compiler was specified, use CC.
  10758. +LTCC=${LTCC-"$CC"}
  10759. +
  10760. +# If no C compiler flags were specified, use CFLAGS.
  10761. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10762. +
  10763. +# Allow CC to be a program name with arguments.
  10764. +compiler=$CC
  10765. +
  10766. +
  10767. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  10768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10769. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10770. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  10771. + $as_echo_n "(cached) " >&6
  10772. +else
  10773. +
  10774. +# These are sane defaults that work on at least a few old systems.
  10775. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10776. +
  10777. +# Character class describing NM global symbol codes.
  10778. +symcode='[BCDEGRST]'
  10779. +
  10780. +# Regexp to match symbols that can be accessed directly from C.
  10781. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10782. +
  10783. +# Define system-specific variables.
  10784. +case $host_os in
  10785. +aix*)
  10786. + symcode='[BCDT]'
  10787. + ;;
  10788. +cygwin* | mingw* | pw32* | cegcc*)
  10789. + symcode='[ABCDGISTW]'
  10790. + ;;
  10791. +hpux*)
  10792. + if test "$host_cpu" = ia64; then
  10793. + symcode='[ABCDEGRST]'
  10794. + fi
  10795. + ;;
  10796. +irix* | nonstopux*)
  10797. + symcode='[BCDEGRST]'
  10798. + ;;
  10799. +osf*)
  10800. + symcode='[BCDEGQRST]'
  10801. + ;;
  10802. +solaris*)
  10803. + symcode='[BDRT]'
  10804. + ;;
  10805. +sco3.2v5*)
  10806. + symcode='[DT]'
  10807. + ;;
  10808. +sysv4.2uw2*)
  10809. + symcode='[DT]'
  10810. + ;;
  10811. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10812. + symcode='[ABDT]'
  10813. + ;;
  10814. +sysv4)
  10815. + symcode='[DFNSTU]'
  10816. + ;;
  10817. +esac
  10818. +
  10819. +# If we're using GNU nm, then use its standard symbol codes.
  10820. +case `$NM -V 2>&1` in
  10821. +*GNU* | *'with BFD'*)
  10822. + symcode='[ABCDGIRSTW]' ;;
  10823. +esac
  10824. +
  10825. +# Transform an extracted symbol line into a proper C declaration.
  10826. +# Some systems (esp. on ia64) link data and code symbols differently,
  10827. +# so use this general approach.
  10828. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10829. +
  10830. +# Transform an extracted symbol line into symbol name and symbol address
  10831. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  10832. +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'"
  10833. +
  10834. +# Handle CRLF in mingw tool chain
  10835. +opt_cr=
  10836. +case $build_os in
  10837. +mingw*)
  10838. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10839. + ;;
  10840. +esac
  10841. +
  10842. +# Try without a prefix underscore, then with it.
  10843. +for ac_symprfx in "" "_"; do
  10844. +
  10845. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10846. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  10847. +
  10848. + # Write the raw and C identifiers.
  10849. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10850. + # Fake it for dumpbin and say T for any non-static function
  10851. + # and D for any global variable.
  10852. + # Also find C++ and __fastcall symbols from MSVC++,
  10853. + # which start with @ or ?.
  10854. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  10855. +" {last_section=section; section=\$ 3};"\
  10856. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10857. +" \$ 0!~/External *\|/{next};"\
  10858. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10859. +" {if(hide[section]) next};"\
  10860. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10861. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10862. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10863. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10864. +" ' prfx=^$ac_symprfx"
  10865. + else
  10866. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10867. + fi
  10868. +
  10869. + # Check to see that the pipe works correctly.
  10870. + pipe_works=no
  10871. +
  10872. + rm -f conftest*
  10873. + cat > conftest.$ac_ext <<_LT_EOF
  10874. +#ifdef __cplusplus
  10875. +extern "C" {
  10876. +#endif
  10877. +char nm_test_var;
  10878. +void nm_test_func(void);
  10879. +void nm_test_func(void){}
  10880. +#ifdef __cplusplus
  10881. +}
  10882. +#endif
  10883. +int main(){nm_test_var='a';nm_test_func();return(0);}
  10884. +_LT_EOF
  10885. +
  10886. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10887. + (eval $ac_compile) 2>&5
  10888. + ac_status=$?
  10889. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10890. + test $ac_status = 0; }; then
  10891. + # Now try to grab the symbols.
  10892. + nlist=conftest.nm
  10893. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  10894. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  10895. + ac_status=$?
  10896. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10897. + test $ac_status = 0; } && test -s "$nlist"; then
  10898. + # Try sorting and uniquifying the output.
  10899. + if sort "$nlist" | uniq > "$nlist"T; then
  10900. + mv -f "$nlist"T "$nlist"
  10901. + else
  10902. + rm -f "$nlist"T
  10903. + fi
  10904. +
  10905. + # Make sure that we snagged all the symbols we need.
  10906. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10907. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10908. + cat <<_LT_EOF > conftest.$ac_ext
  10909. +#ifdef __cplusplus
  10910. +extern "C" {
  10911. +#endif
  10912. +
  10913. +_LT_EOF
  10914. + # Now generate the symbol file.
  10915. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10916. +
  10917. + cat <<_LT_EOF >> conftest.$ac_ext
  10918. +
  10919. +/* The mapping between symbol names and symbols. */
  10920. +const struct {
  10921. + const char *name;
  10922. + void *address;
  10923. +}
  10924. +lt__PROGRAM__LTX_preloaded_symbols[] =
  10925. +{
  10926. + { "@PROGRAM@", (void *) 0 },
  10927. +_LT_EOF
  10928. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10929. + cat <<\_LT_EOF >> conftest.$ac_ext
  10930. + {0, (void *) 0}
  10931. +};
  10932. +
  10933. +/* This works around a problem in FreeBSD linker */
  10934. +#ifdef FREEBSD_WORKAROUND
  10935. +static const void *lt_preloaded_setup() {
  10936. + return lt__PROGRAM__LTX_preloaded_symbols;
  10937. +}
  10938. +#endif
  10939. +
  10940. +#ifdef __cplusplus
  10941. +}
  10942. +#endif
  10943. +_LT_EOF
  10944. + # Now try linking the two files.
  10945. + mv conftest.$ac_objext conftstm.$ac_objext
  10946. + lt_save_LIBS="$LIBS"
  10947. + lt_save_CFLAGS="$CFLAGS"
  10948. + LIBS="conftstm.$ac_objext"
  10949. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10950. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10951. + (eval $ac_link) 2>&5
  10952. + ac_status=$?
  10953. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10954. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  10955. + pipe_works=yes
  10956. + fi
  10957. + LIBS="$lt_save_LIBS"
  10958. + CFLAGS="$lt_save_CFLAGS"
  10959. + else
  10960. + echo "cannot find nm_test_func in $nlist" >&5
  10961. + fi
  10962. + else
  10963. + echo "cannot find nm_test_var in $nlist" >&5
  10964. + fi
  10965. + else
  10966. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10967. + fi
  10968. + else
  10969. + echo "$progname: failed program was:" >&5
  10970. + cat conftest.$ac_ext >&5
  10971. + fi
  10972. + rm -rf conftest* conftst*
  10973. +
  10974. + # Do not use the global_symbol_pipe unless it works.
  10975. + if test "$pipe_works" = yes; then
  10976. + break
  10977. + else
  10978. + lt_cv_sys_global_symbol_pipe=
  10979. + fi
  10980. +done
  10981. +
  10982. +fi
  10983. +
  10984. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10985. + lt_cv_sys_global_symbol_to_cdecl=
  10986. +fi
  10987. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10988. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10989. +$as_echo "failed" >&6; }
  10990. +else
  10991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10992. +$as_echo "ok" >&6; }
  10993. +fi
  10994. +
  10995. +
  10996. +
  10997. +
  10998. +
  10999. +
  11000. +
  11001. +
  11002. +
  11003. +
  11004. +
  11005. +
  11006. +
  11007. +
  11008. +
  11009. +
  11010. +
  11011. +
  11012. +
  11013. +
  11014. +
  11015. +
  11016. +# Check whether --enable-libtool-lock was given.
  11017. +if test "${enable_libtool_lock+set}" = set; then :
  11018. + enableval=$enable_libtool_lock;
  11019. +fi
  11020. +
  11021. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11022. +
  11023. +# Some flags need to be propagated to the compiler or linker for good
  11024. +# libtool support.
  11025. +case $host in
  11026. +ia64-*-hpux*)
  11027. + # Find out which ABI we are using.
  11028. + echo 'int i;' > conftest.$ac_ext
  11029. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11030. + (eval $ac_compile) 2>&5
  11031. + ac_status=$?
  11032. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11033. + test $ac_status = 0; }; then
  11034. + case `/usr/bin/file conftest.$ac_objext` in
  11035. + *ELF-32*)
  11036. + HPUX_IA64_MODE="32"
  11037. + ;;
  11038. + *ELF-64*)
  11039. + HPUX_IA64_MODE="64"
  11040. + ;;
  11041. + esac
  11042. + fi
  11043. + rm -rf conftest*
  11044. + ;;
  11045. +*-*-irix6*)
  11046. + # Find out which ABI we are using.
  11047. + echo '#line 6638 "configure"' > conftest.$ac_ext
  11048. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11049. + (eval $ac_compile) 2>&5
  11050. + ac_status=$?
  11051. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11052. + test $ac_status = 0; }; then
  11053. + if test "$lt_cv_prog_gnu_ld" = yes; then
  11054. + case `/usr/bin/file conftest.$ac_objext` in
  11055. + *32-bit*)
  11056. + LD="${LD-ld} -melf32bsmip"
  11057. + ;;
  11058. + *N32*)
  11059. + LD="${LD-ld} -melf32bmipn32"
  11060. + ;;
  11061. + *64-bit*)
  11062. + LD="${LD-ld} -melf64bmip"
  11063. + ;;
  11064. + esac
  11065. + else
  11066. + case `/usr/bin/file conftest.$ac_objext` in
  11067. + *32-bit*)
  11068. + LD="${LD-ld} -32"
  11069. + ;;
  11070. + *N32*)
  11071. + LD="${LD-ld} -n32"
  11072. + ;;
  11073. + *64-bit*)
  11074. + LD="${LD-ld} -64"
  11075. + ;;
  11076. + esac
  11077. + fi
  11078. + fi
  11079. + rm -rf conftest*
  11080. + ;;
  11081. +
  11082. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  11083. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  11084. + # Find out which ABI we are using.
  11085. + echo 'int i;' > conftest.$ac_ext
  11086. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11087. + (eval $ac_compile) 2>&5
  11088. + ac_status=$?
  11089. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11090. + test $ac_status = 0; }; then
  11091. + case `/usr/bin/file conftest.o` in
  11092. + *32-bit*)
  11093. + case $host in
  11094. + x86_64-*kfreebsd*-gnu)
  11095. + LD="${LD-ld} -m elf_i386_fbsd"
  11096. + ;;
  11097. + x86_64-*linux*)
  11098. + LD="${LD-ld} -m elf_i386"
  11099. + ;;
  11100. + ppc64-*linux*|powerpc64-*linux*)
  11101. + LD="${LD-ld} -m elf32ppclinux"
  11102. + ;;
  11103. + s390x-*linux*)
  11104. + LD="${LD-ld} -m elf_s390"
  11105. + ;;
  11106. + sparc64-*linux*)
  11107. + LD="${LD-ld} -m elf32_sparc"
  11108. + ;;
  11109. + esac
  11110. + ;;
  11111. + *64-bit*)
  11112. + case $host in
  11113. + x86_64-*kfreebsd*-gnu)
  11114. + LD="${LD-ld} -m elf_x86_64_fbsd"
  11115. + ;;
  11116. + x86_64-*linux*)
  11117. + LD="${LD-ld} -m elf_x86_64"
  11118. + ;;
  11119. + ppc*-*linux*|powerpc*-*linux*)
  11120. + LD="${LD-ld} -m elf64ppc"
  11121. + ;;
  11122. + s390*-*linux*|s390*-*tpf*)
  11123. + LD="${LD-ld} -m elf64_s390"
  11124. + ;;
  11125. + sparc*-*linux*)
  11126. + LD="${LD-ld} -m elf64_sparc"
  11127. + ;;
  11128. + esac
  11129. + ;;
  11130. + esac
  11131. + fi
  11132. + rm -rf conftest*
  11133. + ;;
  11134. +
  11135. +*-*-sco3.2v5*)
  11136. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11137. + SAVE_CFLAGS="$CFLAGS"
  11138. + CFLAGS="$CFLAGS -belf"
  11139. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  11140. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  11141. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  11142. + $as_echo_n "(cached) " >&6
  11143. +else
  11144. + ac_ext=c
  11145. +ac_cpp='$CPP $CPPFLAGS'
  11146. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11147. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11148. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11149. +
  11150. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11151. +/* end confdefs.h. */
  11152. +
  11153. +int
  11154. +main ()
  11155. +{
  11156. +
  11157. + ;
  11158. + return 0;
  11159. +}
  11160. +_ACEOF
  11161. +if ac_fn_c_try_link "$LINENO"; then :
  11162. + lt_cv_cc_needs_belf=yes
  11163. +else
  11164. + lt_cv_cc_needs_belf=no
  11165. +fi
  11166. +rm -f core conftest.err conftest.$ac_objext \
  11167. + conftest$ac_exeext conftest.$ac_ext
  11168. + ac_ext=c
  11169. +ac_cpp='$CPP $CPPFLAGS'
  11170. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11171. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11172. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11173. +
  11174. +fi
  11175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  11176. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  11177. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11178. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  11179. + CFLAGS="$SAVE_CFLAGS"
  11180. + fi
  11181. + ;;
  11182. +sparc*-*solaris*)
  11183. + # Find out which ABI we are using.
  11184. + echo 'int i;' > conftest.$ac_ext
  11185. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11186. + (eval $ac_compile) 2>&5
  11187. + ac_status=$?
  11188. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11189. + test $ac_status = 0; }; then
  11190. + case `/usr/bin/file conftest.o` in
  11191. + *64-bit*)
  11192. + case $lt_cv_prog_gnu_ld in
  11193. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  11194. + *)
  11195. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  11196. + LD="${LD-ld} -64"
  11197. + fi
  11198. + ;;
  11199. + esac
  11200. + ;;
  11201. + esac
  11202. + fi
  11203. + rm -rf conftest*
  11204. + ;;
  11205. +esac
  11206. +
  11207. +need_locks="$enable_libtool_lock"
  11208. +
  11209. +
  11210. + case $host_os in
  11211. + rhapsody* | darwin*)
  11212. + if test -n "$ac_tool_prefix"; then
  11213. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11214. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11216. +$as_echo_n "checking for $ac_word... " >&6; }
  11217. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  11218. + $as_echo_n "(cached) " >&6
  11219. +else
  11220. + if test -n "$DSYMUTIL"; then
  11221. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11222. +else
  11223. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11224. +for as_dir in $PATH
  11225. +do
  11226. + IFS=$as_save_IFS
  11227. + test -z "$as_dir" && as_dir=.
  11228. + for ac_exec_ext in '' $ac_executable_extensions; do
  11229. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11230. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11231. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11232. + break 2
  11233. + fi
  11234. +done
  11235. + done
  11236. +IFS=$as_save_IFS
  11237. +
  11238. +fi
  11239. +fi
  11240. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11241. +if test -n "$DSYMUTIL"; then
  11242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11243. +$as_echo "$DSYMUTIL" >&6; }
  11244. +else
  11245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11246. +$as_echo "no" >&6; }
  11247. +fi
  11248. +
  11249. +
  11250. +fi
  11251. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  11252. + ac_ct_DSYMUTIL=$DSYMUTIL
  11253. + # Extract the first word of "dsymutil", so it can be a program name with args.
  11254. +set dummy dsymutil; ac_word=$2
  11255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11256. +$as_echo_n "checking for $ac_word... " >&6; }
  11257. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  11258. + $as_echo_n "(cached) " >&6
  11259. +else
  11260. + if test -n "$ac_ct_DSYMUTIL"; then
  11261. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11262. +else
  11263. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11264. +for as_dir in $PATH
  11265. +do
  11266. + IFS=$as_save_IFS
  11267. + test -z "$as_dir" && as_dir=.
  11268. + for ac_exec_ext in '' $ac_executable_extensions; do
  11269. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11270. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11271. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11272. + break 2
  11273. + fi
  11274. +done
  11275. + done
  11276. +IFS=$as_save_IFS
  11277. +
  11278. +fi
  11279. +fi
  11280. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11281. +if test -n "$ac_ct_DSYMUTIL"; then
  11282. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11283. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  11284. +else
  11285. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11286. +$as_echo "no" >&6; }
  11287. +fi
  11288. +
  11289. + if test "x$ac_ct_DSYMUTIL" = x; then
  11290. + DSYMUTIL=":"
  11291. + else
  11292. + case $cross_compiling:$ac_tool_warned in
  11293. +yes:)
  11294. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11295. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11296. +ac_tool_warned=yes ;;
  11297. +esac
  11298. + DSYMUTIL=$ac_ct_DSYMUTIL
  11299. + fi
  11300. +else
  11301. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11302. +fi
  11303. +
  11304. + if test -n "$ac_tool_prefix"; then
  11305. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11306. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11307. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11308. +$as_echo_n "checking for $ac_word... " >&6; }
  11309. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  11310. + $as_echo_n "(cached) " >&6
  11311. +else
  11312. + if test -n "$NMEDIT"; then
  11313. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11314. +else
  11315. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11316. +for as_dir in $PATH
  11317. +do
  11318. + IFS=$as_save_IFS
  11319. + test -z "$as_dir" && as_dir=.
  11320. + for ac_exec_ext in '' $ac_executable_extensions; do
  11321. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11322. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11323. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11324. + break 2
  11325. + fi
  11326. +done
  11327. + done
  11328. +IFS=$as_save_IFS
  11329. +
  11330. +fi
  11331. +fi
  11332. +NMEDIT=$ac_cv_prog_NMEDIT
  11333. +if test -n "$NMEDIT"; then
  11334. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11335. +$as_echo "$NMEDIT" >&6; }
  11336. +else
  11337. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11338. +$as_echo "no" >&6; }
  11339. +fi
  11340. +
  11341. +
  11342. +fi
  11343. +if test -z "$ac_cv_prog_NMEDIT"; then
  11344. + ac_ct_NMEDIT=$NMEDIT
  11345. + # Extract the first word of "nmedit", so it can be a program name with args.
  11346. +set dummy nmedit; ac_word=$2
  11347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11348. +$as_echo_n "checking for $ac_word... " >&6; }
  11349. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  11350. + $as_echo_n "(cached) " >&6
  11351. +else
  11352. + if test -n "$ac_ct_NMEDIT"; then
  11353. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11354. +else
  11355. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11356. +for as_dir in $PATH
  11357. +do
  11358. + IFS=$as_save_IFS
  11359. + test -z "$as_dir" && as_dir=.
  11360. + for ac_exec_ext in '' $ac_executable_extensions; do
  11361. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11362. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11363. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11364. + break 2
  11365. + fi
  11366. +done
  11367. + done
  11368. +IFS=$as_save_IFS
  11369. +
  11370. +fi
  11371. +fi
  11372. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11373. +if test -n "$ac_ct_NMEDIT"; then
  11374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11375. +$as_echo "$ac_ct_NMEDIT" >&6; }
  11376. +else
  11377. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11378. +$as_echo "no" >&6; }
  11379. +fi
  11380. +
  11381. + if test "x$ac_ct_NMEDIT" = x; then
  11382. + NMEDIT=":"
  11383. + else
  11384. + case $cross_compiling:$ac_tool_warned in
  11385. +yes:)
  11386. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11387. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11388. +ac_tool_warned=yes ;;
  11389. +esac
  11390. + NMEDIT=$ac_ct_NMEDIT
  11391. + fi
  11392. +else
  11393. + NMEDIT="$ac_cv_prog_NMEDIT"
  11394. +fi
  11395. +
  11396. + if test -n "$ac_tool_prefix"; then
  11397. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11398. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11400. +$as_echo_n "checking for $ac_word... " >&6; }
  11401. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  11402. + $as_echo_n "(cached) " >&6
  11403. +else
  11404. + if test -n "$LIPO"; then
  11405. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11406. +else
  11407. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11408. +for as_dir in $PATH
  11409. +do
  11410. + IFS=$as_save_IFS
  11411. + test -z "$as_dir" && as_dir=.
  11412. + for ac_exec_ext in '' $ac_executable_extensions; do
  11413. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11414. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11415. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11416. + break 2
  11417. + fi
  11418. +done
  11419. + done
  11420. +IFS=$as_save_IFS
  11421. +
  11422. +fi
  11423. +fi
  11424. +LIPO=$ac_cv_prog_LIPO
  11425. +if test -n "$LIPO"; then
  11426. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11427. +$as_echo "$LIPO" >&6; }
  11428. +else
  11429. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11430. +$as_echo "no" >&6; }
  11431. +fi
  11432. +
  11433. +
  11434. +fi
  11435. +if test -z "$ac_cv_prog_LIPO"; then
  11436. + ac_ct_LIPO=$LIPO
  11437. + # Extract the first word of "lipo", so it can be a program name with args.
  11438. +set dummy lipo; ac_word=$2
  11439. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11440. +$as_echo_n "checking for $ac_word... " >&6; }
  11441. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  11442. + $as_echo_n "(cached) " >&6
  11443. +else
  11444. + if test -n "$ac_ct_LIPO"; then
  11445. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11446. +else
  11447. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11448. +for as_dir in $PATH
  11449. +do
  11450. + IFS=$as_save_IFS
  11451. + test -z "$as_dir" && as_dir=.
  11452. + for ac_exec_ext in '' $ac_executable_extensions; do
  11453. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11454. + ac_cv_prog_ac_ct_LIPO="lipo"
  11455. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11456. + break 2
  11457. + fi
  11458. +done
  11459. + done
  11460. +IFS=$as_save_IFS
  11461. +
  11462. +fi
  11463. +fi
  11464. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11465. +if test -n "$ac_ct_LIPO"; then
  11466. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11467. +$as_echo "$ac_ct_LIPO" >&6; }
  11468. +else
  11469. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11470. +$as_echo "no" >&6; }
  11471. +fi
  11472. +
  11473. + if test "x$ac_ct_LIPO" = x; then
  11474. + LIPO=":"
  11475. + else
  11476. + case $cross_compiling:$ac_tool_warned in
  11477. +yes:)
  11478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11479. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11480. +ac_tool_warned=yes ;;
  11481. +esac
  11482. + LIPO=$ac_ct_LIPO
  11483. + fi
  11484. +else
  11485. + LIPO="$ac_cv_prog_LIPO"
  11486. +fi
  11487. +
  11488. + if test -n "$ac_tool_prefix"; then
  11489. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11490. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  11491. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11492. +$as_echo_n "checking for $ac_word... " >&6; }
  11493. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  11494. + $as_echo_n "(cached) " >&6
  11495. +else
  11496. + if test -n "$OTOOL"; then
  11497. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11498. +else
  11499. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11500. +for as_dir in $PATH
  11501. +do
  11502. + IFS=$as_save_IFS
  11503. + test -z "$as_dir" && as_dir=.
  11504. + for ac_exec_ext in '' $ac_executable_extensions; do
  11505. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11506. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11507. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11508. + break 2
  11509. + fi
  11510. +done
  11511. + done
  11512. +IFS=$as_save_IFS
  11513. +
  11514. +fi
  11515. +fi
  11516. +OTOOL=$ac_cv_prog_OTOOL
  11517. +if test -n "$OTOOL"; then
  11518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11519. +$as_echo "$OTOOL" >&6; }
  11520. +else
  11521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11522. +$as_echo "no" >&6; }
  11523. +fi
  11524. +
  11525. +
  11526. +fi
  11527. +if test -z "$ac_cv_prog_OTOOL"; then
  11528. + ac_ct_OTOOL=$OTOOL
  11529. + # Extract the first word of "otool", so it can be a program name with args.
  11530. +set dummy otool; ac_word=$2
  11531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11532. +$as_echo_n "checking for $ac_word... " >&6; }
  11533. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  11534. + $as_echo_n "(cached) " >&6
  11535. +else
  11536. + if test -n "$ac_ct_OTOOL"; then
  11537. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11538. +else
  11539. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11540. +for as_dir in $PATH
  11541. +do
  11542. + IFS=$as_save_IFS
  11543. + test -z "$as_dir" && as_dir=.
  11544. + for ac_exec_ext in '' $ac_executable_extensions; do
  11545. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11546. + ac_cv_prog_ac_ct_OTOOL="otool"
  11547. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11548. + break 2
  11549. + fi
  11550. +done
  11551. + done
  11552. +IFS=$as_save_IFS
  11553. +
  11554. +fi
  11555. +fi
  11556. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11557. +if test -n "$ac_ct_OTOOL"; then
  11558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11559. +$as_echo "$ac_ct_OTOOL" >&6; }
  11560. +else
  11561. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11562. +$as_echo "no" >&6; }
  11563. +fi
  11564. +
  11565. + if test "x$ac_ct_OTOOL" = x; then
  11566. + OTOOL=":"
  11567. + else
  11568. + case $cross_compiling:$ac_tool_warned in
  11569. +yes:)
  11570. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11571. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11572. +ac_tool_warned=yes ;;
  11573. +esac
  11574. + OTOOL=$ac_ct_OTOOL
  11575. + fi
  11576. +else
  11577. + OTOOL="$ac_cv_prog_OTOOL"
  11578. +fi
  11579. +
  11580. + if test -n "$ac_tool_prefix"; then
  11581. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11582. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11584. +$as_echo_n "checking for $ac_word... " >&6; }
  11585. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  11586. + $as_echo_n "(cached) " >&6
  11587. +else
  11588. + if test -n "$OTOOL64"; then
  11589. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11590. +else
  11591. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11592. +for as_dir in $PATH
  11593. +do
  11594. + IFS=$as_save_IFS
  11595. + test -z "$as_dir" && as_dir=.
  11596. + for ac_exec_ext in '' $ac_executable_extensions; do
  11597. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11598. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11599. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11600. + break 2
  11601. + fi
  11602. +done
  11603. + done
  11604. +IFS=$as_save_IFS
  11605. +
  11606. +fi
  11607. +fi
  11608. +OTOOL64=$ac_cv_prog_OTOOL64
  11609. +if test -n "$OTOOL64"; then
  11610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11611. +$as_echo "$OTOOL64" >&6; }
  11612. +else
  11613. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11614. +$as_echo "no" >&6; }
  11615. +fi
  11616. +
  11617. +
  11618. +fi
  11619. +if test -z "$ac_cv_prog_OTOOL64"; then
  11620. + ac_ct_OTOOL64=$OTOOL64
  11621. + # Extract the first word of "otool64", so it can be a program name with args.
  11622. +set dummy otool64; ac_word=$2
  11623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11624. +$as_echo_n "checking for $ac_word... " >&6; }
  11625. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  11626. + $as_echo_n "(cached) " >&6
  11627. +else
  11628. + if test -n "$ac_ct_OTOOL64"; then
  11629. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11630. +else
  11631. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11632. +for as_dir in $PATH
  11633. +do
  11634. + IFS=$as_save_IFS
  11635. + test -z "$as_dir" && as_dir=.
  11636. + for ac_exec_ext in '' $ac_executable_extensions; do
  11637. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11638. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  11639. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11640. + break 2
  11641. + fi
  11642. +done
  11643. + done
  11644. +IFS=$as_save_IFS
  11645. +
  11646. +fi
  11647. +fi
  11648. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11649. +if test -n "$ac_ct_OTOOL64"; then
  11650. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11651. +$as_echo "$ac_ct_OTOOL64" >&6; }
  11652. +else
  11653. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11654. +$as_echo "no" >&6; }
  11655. +fi
  11656. +
  11657. + if test "x$ac_ct_OTOOL64" = x; then
  11658. + OTOOL64=":"
  11659. + else
  11660. + case $cross_compiling:$ac_tool_warned in
  11661. +yes:)
  11662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11663. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11664. +ac_tool_warned=yes ;;
  11665. +esac
  11666. + OTOOL64=$ac_ct_OTOOL64
  11667. + fi
  11668. +else
  11669. + OTOOL64="$ac_cv_prog_OTOOL64"
  11670. +fi
  11671. +
  11672. +
  11673. +
  11674. +
  11675. +
  11676. +
  11677. +
  11678. +
  11679. +
  11680. +
  11681. +
  11682. +
  11683. +
  11684. +
  11685. +
  11686. +
  11687. +
  11688. +
  11689. +
  11690. +
  11691. +
  11692. +
  11693. +
  11694. +
  11695. +
  11696. +
  11697. +
  11698. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11699. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  11700. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  11701. + $as_echo_n "(cached) " >&6
  11702. +else
  11703. + lt_cv_apple_cc_single_mod=no
  11704. + if test -z "${LT_MULTI_MODULE}"; then
  11705. + # By default we will add the -single_module flag. You can override
  11706. + # by either setting the environment variable LT_MULTI_MODULE
  11707. + # non-empty at configure time, or by adding -multi_module to the
  11708. + # link flags.
  11709. + rm -rf libconftest.dylib*
  11710. + echo "int foo(void){return 1;}" > conftest.c
  11711. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11712. +-dynamiclib -Wl,-single_module conftest.c" >&5
  11713. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11714. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11715. + _lt_result=$?
  11716. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  11717. + lt_cv_apple_cc_single_mod=yes
  11718. + else
  11719. + cat conftest.err >&5
  11720. + fi
  11721. + rm -rf libconftest.dylib*
  11722. + rm -f conftest.*
  11723. + fi
  11724. +fi
  11725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11726. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11727. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11728. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11729. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  11730. + $as_echo_n "(cached) " >&6
  11731. +else
  11732. + lt_cv_ld_exported_symbols_list=no
  11733. + save_LDFLAGS=$LDFLAGS
  11734. + echo "_main" > conftest.sym
  11735. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11736. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11737. +/* end confdefs.h. */
  11738. +
  11739. +int
  11740. +main ()
  11741. +{
  11742. +
  11743. + ;
  11744. + return 0;
  11745. +}
  11746. +_ACEOF
  11747. +if ac_fn_c_try_link "$LINENO"; then :
  11748. + lt_cv_ld_exported_symbols_list=yes
  11749. +else
  11750. + lt_cv_ld_exported_symbols_list=no
  11751. +fi
  11752. +rm -f core conftest.err conftest.$ac_objext \
  11753. + conftest$ac_exeext conftest.$ac_ext
  11754. + LDFLAGS="$save_LDFLAGS"
  11755. +
  11756. +fi
  11757. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11758. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11759. + case $host_os in
  11760. + rhapsody* | darwin1.[012])
  11761. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11762. + darwin1.*)
  11763. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11764. + darwin*) # darwin 5.x on
  11765. + # if running on 10.5 or later, the deployment target defaults
  11766. + # to the OS version, if on x86, and 10.4, the deployment
  11767. + # target defaults to 10.4. Don't you love it?
  11768. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11769. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11770. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11771. + 10.[012]*)
  11772. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11773. + 10.*)
  11774. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11775. + esac
  11776. + ;;
  11777. + esac
  11778. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11779. + _lt_dar_single_mod='$single_module'
  11780. + fi
  11781. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11782. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11783. + else
  11784. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11785. + fi
  11786. + if test "$DSYMUTIL" != ":"; then
  11787. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  11788. + else
  11789. + _lt_dsymutil=
  11790. + fi
  11791. + ;;
  11792. + esac
  11793. +
  11794. +
  11795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11796. +$as_echo_n "checking for ANSI C header files... " >&6; }
  11797. +if test "${ac_cv_header_stdc+set}" = set; then :
  11798. + $as_echo_n "(cached) " >&6
  11799. +else
  11800. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11801. +/* end confdefs.h. */
  11802. +#include <stdlib.h>
  11803. +#include <stdarg.h>
  11804. +#include <string.h>
  11805. +#include <float.h>
  11806. +
  11807. +int
  11808. +main ()
  11809. +{
  11810. +
  11811. + ;
  11812. + return 0;
  11813. +}
  11814. +_ACEOF
  11815. +if ac_fn_c_try_compile "$LINENO"; then :
  11816. + ac_cv_header_stdc=yes
  11817. +else
  11818. + ac_cv_header_stdc=no
  11819. +fi
  11820. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11821. +
  11822. +if test $ac_cv_header_stdc = yes; then
  11823. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11824. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. +/* end confdefs.h. */
  11826. +#include <string.h>
  11827. +
  11828. +_ACEOF
  11829. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11830. + $EGREP "memchr" >/dev/null 2>&1; then :
  11831. +
  11832. +else
  11833. + ac_cv_header_stdc=no
  11834. +fi
  11835. +rm -f conftest*
  11836. +
  11837. +fi
  11838. +
  11839. +if test $ac_cv_header_stdc = yes; then
  11840. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11841. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11842. +/* end confdefs.h. */
  11843. +#include <stdlib.h>
  11844. +
  11845. +_ACEOF
  11846. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11847. + $EGREP "free" >/dev/null 2>&1; then :
  11848. +
  11849. +else
  11850. + ac_cv_header_stdc=no
  11851. +fi
  11852. +rm -f conftest*
  11853. +
  11854. +fi
  11855. +
  11856. +if test $ac_cv_header_stdc = yes; then
  11857. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11858. + if test "$cross_compiling" = yes; then :
  11859. + :
  11860. +else
  11861. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11862. +/* end confdefs.h. */
  11863. +#include <ctype.h>
  11864. +#include <stdlib.h>
  11865. +#if ((' ' & 0x0FF) == 0x020)
  11866. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11867. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11868. +#else
  11869. +# define ISLOWER(c) \
  11870. + (('a' <= (c) && (c) <= 'i') \
  11871. + || ('j' <= (c) && (c) <= 'r') \
  11872. + || ('s' <= (c) && (c) <= 'z'))
  11873. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11874. +#endif
  11875. +
  11876. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11877. +int
  11878. +main ()
  11879. +{
  11880. + int i;
  11881. + for (i = 0; i < 256; i++)
  11882. + if (XOR (islower (i), ISLOWER (i))
  11883. + || toupper (i) != TOUPPER (i))
  11884. + return 2;
  11885. + return 0;
  11886. +}
  11887. +_ACEOF
  11888. +if ac_fn_c_try_run "$LINENO"; then :
  11889. +
  11890. +else
  11891. + ac_cv_header_stdc=no
  11892. +fi
  11893. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11894. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  11895. +fi
  11896. +
  11897. +fi
  11898. +fi
  11899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11900. +$as_echo "$ac_cv_header_stdc" >&6; }
  11901. +if test $ac_cv_header_stdc = yes; then
  11902. +
  11903. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11904. +
  11905. +fi
  11906. +
  11907. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  11908. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  11909. + inttypes.h stdint.h unistd.h
  11910. +do :
  11911. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11912. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11913. +"
  11914. +eval as_val=\$$as_ac_Header
  11915. + if test "x$as_val" = x""yes; then :
  11916. + cat >>confdefs.h <<_ACEOF
  11917. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11918. +_ACEOF
  11919. +
  11920. +fi
  11921. +
  11922. +done
  11923. +
  11924. +
  11925. +for ac_header in dlfcn.h
  11926. +do :
  11927. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11928. +"
  11929. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  11930. + cat >>confdefs.h <<_ACEOF
  11931. +#define HAVE_DLFCN_H 1
  11932. +_ACEOF
  11933. +
  11934. +fi
  11935. +
  11936. +done
  11937. +
  11938. +
  11939. +
  11940. +ac_ext=cpp
  11941. +ac_cpp='$CXXCPP $CPPFLAGS'
  11942. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11943. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11944. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11945. +if test -z "$CXX"; then
  11946. + if test -n "$CCC"; then
  11947. + CXX=$CCC
  11948. + else
  11949. + if test -n "$ac_tool_prefix"; then
  11950. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11951. + do
  11952. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11953. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11954. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11955. +$as_echo_n "checking for $ac_word... " >&6; }
  11956. +if test "${ac_cv_prog_CXX+set}" = set; then :
  11957. + $as_echo_n "(cached) " >&6
  11958. +else
  11959. + if test -n "$CXX"; then
  11960. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11961. +else
  11962. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11963. +for as_dir in $PATH
  11964. +do
  11965. + IFS=$as_save_IFS
  11966. + test -z "$as_dir" && as_dir=.
  11967. + for ac_exec_ext in '' $ac_executable_extensions; do
  11968. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11969. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11970. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11971. + break 2
  11972. + fi
  11973. +done
  11974. + done
  11975. +IFS=$as_save_IFS
  11976. +
  11977. +fi
  11978. +fi
  11979. +CXX=$ac_cv_prog_CXX
  11980. +if test -n "$CXX"; then
  11981. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11982. +$as_echo "$CXX" >&6; }
  11983. +else
  11984. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11985. +$as_echo "no" >&6; }
  11986. +fi
  11987. +
  11988. +
  11989. + test -n "$CXX" && break
  11990. + done
  11991. +fi
  11992. +if test -z "$CXX"; then
  11993. + ac_ct_CXX=$CXX
  11994. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11995. +do
  11996. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11997. +set dummy $ac_prog; ac_word=$2
  11998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11999. +$as_echo_n "checking for $ac_word... " >&6; }
  12000. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  12001. + $as_echo_n "(cached) " >&6
  12002. +else
  12003. + if test -n "$ac_ct_CXX"; then
  12004. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12005. +else
  12006. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12007. +for as_dir in $PATH
  12008. +do
  12009. + IFS=$as_save_IFS
  12010. + test -z "$as_dir" && as_dir=.
  12011. + for ac_exec_ext in '' $ac_executable_extensions; do
  12012. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12013. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  12014. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12015. + break 2
  12016. + fi
  12017. +done
  12018. + done
  12019. +IFS=$as_save_IFS
  12020. +
  12021. +fi
  12022. +fi
  12023. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12024. +if test -n "$ac_ct_CXX"; then
  12025. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12026. +$as_echo "$ac_ct_CXX" >&6; }
  12027. +else
  12028. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12029. +$as_echo "no" >&6; }
  12030. +fi
  12031. +
  12032. +
  12033. + test -n "$ac_ct_CXX" && break
  12034. +done
  12035. +
  12036. + if test "x$ac_ct_CXX" = x; then
  12037. + CXX="g++"
  12038. + else
  12039. + case $cross_compiling:$ac_tool_warned in
  12040. +yes:)
  12041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12042. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12043. +ac_tool_warned=yes ;;
  12044. +esac
  12045. + CXX=$ac_ct_CXX
  12046. + fi
  12047. +fi
  12048. +
  12049. + fi
  12050. +fi
  12051. +# Provide some information about the compiler.
  12052. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12053. +set X $ac_compile
  12054. +ac_compiler=$2
  12055. +for ac_option in --version -v -V -qversion; do
  12056. + { { ac_try="$ac_compiler $ac_option >&5"
  12057. +case "(($ac_try" in
  12058. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12059. + *) ac_try_echo=$ac_try;;
  12060. +esac
  12061. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12062. +$as_echo "$ac_try_echo"; } >&5
  12063. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12064. + ac_status=$?
  12065. + if test -s conftest.err; then
  12066. + sed '10a\
  12067. +... rest of stderr output deleted ...
  12068. + 10q' conftest.err >conftest.er1
  12069. + cat conftest.er1 >&5
  12070. + fi
  12071. + rm -f conftest.er1 conftest.err
  12072. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12073. + test $ac_status = 0; }
  12074. +done
  12075. +
  12076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12077. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12078. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  12079. + $as_echo_n "(cached) " >&6
  12080. +else
  12081. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12082. +/* end confdefs.h. */
  12083. +
  12084. +int
  12085. +main ()
  12086. +{
  12087. +#ifndef __GNUC__
  12088. + choke me
  12089. +#endif
  12090. +
  12091. + ;
  12092. + return 0;
  12093. +}
  12094. +_ACEOF
  12095. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12096. + ac_compiler_gnu=yes
  12097. +else
  12098. + ac_compiler_gnu=no
  12099. +fi
  12100. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12101. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12102. +
  12103. +fi
  12104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12105. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12106. +if test $ac_compiler_gnu = yes; then
  12107. + GXX=yes
  12108. +else
  12109. + GXX=
  12110. +fi
  12111. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  12112. +ac_save_CXXFLAGS=$CXXFLAGS
  12113. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12114. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12115. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  12116. + $as_echo_n "(cached) " >&6
  12117. +else
  12118. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12119. + ac_cxx_werror_flag=yes
  12120. + ac_cv_prog_cxx_g=no
  12121. + CXXFLAGS="-g"
  12122. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12123. +/* end confdefs.h. */
  12124. +
  12125. +int
  12126. +main ()
  12127. +{
  12128. +
  12129. + ;
  12130. + return 0;
  12131. +}
  12132. +_ACEOF
  12133. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12134. + ac_cv_prog_cxx_g=yes
  12135. +else
  12136. + CXXFLAGS=""
  12137. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. +/* end confdefs.h. */
  12139. +
  12140. +int
  12141. +main ()
  12142. +{
  12143. +
  12144. + ;
  12145. + return 0;
  12146. +}
  12147. +_ACEOF
  12148. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12149. +
  12150. +else
  12151. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12152. + CXXFLAGS="-g"
  12153. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12154. +/* end confdefs.h. */
  12155. +
  12156. +int
  12157. +main ()
  12158. +{
  12159. +
  12160. + ;
  12161. + return 0;
  12162. +}
  12163. +_ACEOF
  12164. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12165. + ac_cv_prog_cxx_g=yes
  12166. +fi
  12167. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12168. +fi
  12169. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12170. +fi
  12171. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12172. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12173. +fi
  12174. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12175. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  12176. +if test "$ac_test_CXXFLAGS" = set; then
  12177. + CXXFLAGS=$ac_save_CXXFLAGS
  12178. +elif test $ac_cv_prog_cxx_g = yes; then
  12179. + if test "$GXX" = yes; then
  12180. + CXXFLAGS="-g -O2"
  12181. + else
  12182. + CXXFLAGS="-g"
  12183. + fi
  12184. +else
  12185. + if test "$GXX" = yes; then
  12186. + CXXFLAGS="-O2"
  12187. + else
  12188. + CXXFLAGS=
  12189. + fi
  12190. +fi
  12191. +ac_ext=c
  12192. +ac_cpp='$CPP $CPPFLAGS'
  12193. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12194. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12195. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12196. +
  12197. +depcc="$CXX" am_compiler_list=
  12198. +
  12199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12200. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  12201. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  12202. + $as_echo_n "(cached) " >&6
  12203. +else
  12204. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12205. + # We make a subdir and do the tests there. Otherwise we can end up
  12206. + # making bogus files that we don't know about and never remove. For
  12207. + # instance it was reported that on HP-UX the gcc test will end up
  12208. + # making a dummy file named `D' -- because `-MD' means `put the output
  12209. + # in D'.
  12210. + mkdir conftest.dir
  12211. + # Copy depcomp to subdir because otherwise we won't find it if we're
  12212. + # using a relative directory.
  12213. + cp "$am_depcomp" conftest.dir
  12214. + cd conftest.dir
  12215. + # We will build objects and dependencies in a subdirectory because
  12216. + # it helps to detect inapplicable dependency modes. For instance
  12217. + # both Tru64's cc and ICC support -MD to output dependencies as a
  12218. + # side effect of compilation, but ICC will put the dependencies in
  12219. + # the current directory while Tru64 will put them in the object
  12220. + # directory.
  12221. + mkdir sub
  12222. +
  12223. + am_cv_CXX_dependencies_compiler_type=none
  12224. + if test "$am_compiler_list" = ""; then
  12225. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12226. + fi
  12227. + am__universal=false
  12228. + case " $depcc " in #(
  12229. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12230. + esac
  12231. +
  12232. + for depmode in $am_compiler_list; do
  12233. + # Setup a source with many dependencies, because some compilers
  12234. + # like to wrap large dependency lists on column 80 (with \), and
  12235. + # we should not choose a depcomp mode which is confused by this.
  12236. + #
  12237. + # We need to recreate these files for each test, as the compiler may
  12238. + # overwrite some of them when testing with obscure command lines.
  12239. + # This happens at least with the AIX C compiler.
  12240. + : > sub/conftest.c
  12241. + for i in 1 2 3 4 5 6; do
  12242. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12243. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12244. + # Solaris 8's {/usr,}/bin/sh.
  12245. + touch sub/conftst$i.h
  12246. + done
  12247. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12248. +
  12249. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12250. + # mode. It turns out that the SunPro C++ compiler does not properly
  12251. + # handle `-M -o', and we need to detect this. Also, some Intel
  12252. + # versions had trouble with output in subdirs
  12253. + am__obj=sub/conftest.${OBJEXT-o}
  12254. + am__minus_obj="-o $am__obj"
  12255. + case $depmode in
  12256. + gcc)
  12257. + # This depmode causes a compiler race in universal mode.
  12258. + test "$am__universal" = false || continue
  12259. + ;;
  12260. + nosideeffect)
  12261. + # after this tag, mechanisms are not by side-effect, so they'll
  12262. + # only be used when explicitly requested
  12263. + if test "x$enable_dependency_tracking" = xyes; then
  12264. + continue
  12265. + else
  12266. + break
  12267. + fi
  12268. + ;;
  12269. + msvisualcpp | msvcmsys)
  12270. + # This compiler won't grok `-c -o', but also, the minuso test has
  12271. + # not run yet. These depmodes are late enough in the game, and
  12272. + # so weak that their functioning should not be impacted.
  12273. + am__obj=conftest.${OBJEXT-o}
  12274. + am__minus_obj=
  12275. + ;;
  12276. + none) break ;;
  12277. + esac
  12278. + if depmode=$depmode \
  12279. + source=sub/conftest.c object=$am__obj \
  12280. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12281. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12282. + >/dev/null 2>conftest.err &&
  12283. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12284. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12285. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12286. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12287. + # icc doesn't choke on unknown options, it will just issue warnings
  12288. + # or remarks (even with -Werror). So we grep stderr for any message
  12289. + # that says an option was ignored or not supported.
  12290. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  12291. + # icc: Command line warning: ignoring option '-M'; no argument required
  12292. + # The diagnosis changed in icc 8.0:
  12293. + # icc: Command line remark: option '-MP' not supported
  12294. + if (grep 'ignoring option' conftest.err ||
  12295. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12296. + am_cv_CXX_dependencies_compiler_type=$depmode
  12297. + break
  12298. + fi
  12299. + fi
  12300. + done
  12301. +
  12302. + cd ..
  12303. + rm -rf conftest.dir
  12304. +else
  12305. + am_cv_CXX_dependencies_compiler_type=none
  12306. +fi
  12307. +
  12308. +fi
  12309. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12310. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12311. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12312. +
  12313. + if
  12314. + test "x$enable_dependency_tracking" != xno \
  12315. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12316. + am__fastdepCXX_TRUE=
  12317. + am__fastdepCXX_FALSE='#'
  12318. +else
  12319. + am__fastdepCXX_TRUE='#'
  12320. + am__fastdepCXX_FALSE=
  12321. +fi
  12322. +
  12323. +
  12324. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12325. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12326. + (test "X$CXX" != "Xg++"))) ; then
  12327. + ac_ext=cpp
  12328. +ac_cpp='$CXXCPP $CPPFLAGS'
  12329. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12330. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12331. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12333. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12334. +if test -z "$CXXCPP"; then
  12335. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  12336. + $as_echo_n "(cached) " >&6
  12337. +else
  12338. + # Double quotes because CXXCPP needs to be expanded
  12339. + for CXXCPP in "$CXX -E" "/lib/cpp"
  12340. + do
  12341. + ac_preproc_ok=false
  12342. +for ac_cxx_preproc_warn_flag in '' yes
  12343. +do
  12344. + # Use a header file that comes with gcc, so configuring glibc
  12345. + # with a fresh cross-compiler works.
  12346. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12347. + # <limits.h> exists even on freestanding compilers.
  12348. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12349. + # not just through cpp. "Syntax error" is here to catch this case.
  12350. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12351. +/* end confdefs.h. */
  12352. +#ifdef __STDC__
  12353. +# include <limits.h>
  12354. +#else
  12355. +# include <assert.h>
  12356. +#endif
  12357. + Syntax error
  12358. +_ACEOF
  12359. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  12360. +
  12361. +else
  12362. + # Broken: fails on valid input.
  12363. +continue
  12364. +fi
  12365. +rm -f conftest.err conftest.$ac_ext
  12366. +
  12367. + # OK, works on sane cases. Now check whether nonexistent headers
  12368. + # can be detected and how.
  12369. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12370. +/* end confdefs.h. */
  12371. +#include <ac_nonexistent.h>
  12372. +_ACEOF
  12373. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  12374. + # Broken: success on invalid input.
  12375. +continue
  12376. +else
  12377. + # Passes both tests.
  12378. +ac_preproc_ok=:
  12379. +break
  12380. +fi
  12381. +rm -f conftest.err conftest.$ac_ext
  12382. +
  12383. +done
  12384. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12385. +rm -f conftest.err conftest.$ac_ext
  12386. +if $ac_preproc_ok; then :
  12387. + break
  12388. +fi
  12389. +
  12390. + done
  12391. + ac_cv_prog_CXXCPP=$CXXCPP
  12392. +
  12393. +fi
  12394. + CXXCPP=$ac_cv_prog_CXXCPP
  12395. +else
  12396. + ac_cv_prog_CXXCPP=$CXXCPP
  12397. +fi
  12398. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12399. +$as_echo "$CXXCPP" >&6; }
  12400. +ac_preproc_ok=false
  12401. +for ac_cxx_preproc_warn_flag in '' yes
  12402. +do
  12403. + # Use a header file that comes with gcc, so configuring glibc
  12404. + # with a fresh cross-compiler works.
  12405. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12406. + # <limits.h> exists even on freestanding compilers.
  12407. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12408. + # not just through cpp. "Syntax error" is here to catch this case.
  12409. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12410. +/* end confdefs.h. */
  12411. +#ifdef __STDC__
  12412. +# include <limits.h>
  12413. +#else
  12414. +# include <assert.h>
  12415. +#endif
  12416. + Syntax error
  12417. +_ACEOF
  12418. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  12419. +
  12420. +else
  12421. + # Broken: fails on valid input.
  12422. +continue
  12423. +fi
  12424. +rm -f conftest.err conftest.$ac_ext
  12425. +
  12426. + # OK, works on sane cases. Now check whether nonexistent headers
  12427. + # can be detected and how.
  12428. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. +/* end confdefs.h. */
  12430. +#include <ac_nonexistent.h>
  12431. +_ACEOF
  12432. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  12433. + # Broken: success on invalid input.
  12434. +continue
  12435. +else
  12436. + # Passes both tests.
  12437. +ac_preproc_ok=:
  12438. +break
  12439. +fi
  12440. +rm -f conftest.err conftest.$ac_ext
  12441. +
  12442. +done
  12443. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12444. +rm -f conftest.err conftest.$ac_ext
  12445. +if $ac_preproc_ok; then :
  12446. +
  12447. +else
  12448. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12449. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12450. +_lt_caught_CXX_error=yes; }
  12451. +fi
  12452. +
  12453. +ac_ext=c
  12454. +ac_cpp='$CPP $CPPFLAGS'
  12455. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12456. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12457. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12458. +
  12459. +else
  12460. + _lt_caught_CXX_error=yes
  12461. +fi
  12462. +
  12463. +
  12464. +
  12465. +
  12466. +
  12467. +# Set options
  12468. +
  12469. +
  12470. +
  12471. +
  12472. + enable_win32_dll=no
  12473. +
  12474. +
  12475. +
  12476. +
  12477. +
  12478. +# Check whether --with-pic was given.
  12479. +if test "${with_pic+set}" = set; then :
  12480. + withval=$with_pic; pic_mode="$withval"
  12481. +else
  12482. + pic_mode=default
  12483. +fi
  12484. +
  12485. +
  12486. +test -z "$pic_mode" && pic_mode=default
  12487. +
  12488. +
  12489. +
  12490. +
  12491. +
  12492. +
  12493. +
  12494. + # Check whether --enable-fast-install was given.
  12495. +if test "${enable_fast_install+set}" = set; then :
  12496. + enableval=$enable_fast_install; p=${PACKAGE-default}
  12497. + case $enableval in
  12498. + yes) enable_fast_install=yes ;;
  12499. + no) enable_fast_install=no ;;
  12500. + *)
  12501. + enable_fast_install=no
  12502. + # Look at the argument we got. We use all the common list separators.
  12503. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12504. + for pkg in $enableval; do
  12505. + IFS="$lt_save_ifs"
  12506. + if test "X$pkg" = "X$p"; then
  12507. + enable_fast_install=yes
  12508. + fi
  12509. + done
  12510. + IFS="$lt_save_ifs"
  12511. + ;;
  12512. + esac
  12513. +else
  12514. + enable_fast_install=yes
  12515. +fi
  12516. +
  12517. +
  12518. +
  12519. +
  12520. +
  12521. +
  12522. +
  12523. +
  12524. +
  12525. +
  12526. +
  12527. +# This can be used to rebuild libtool when needed
  12528. +LIBTOOL_DEPS="$ltmain"
  12529. +
  12530. +# Always use our own libtool.
  12531. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  12532. +
  12533. +
  12534. +
  12535. +
  12536. +
  12537. +
  12538. +
  12539. +
  12540. +
  12541. +
  12542. +
  12543. +
  12544. +
  12545. +
  12546. +
  12547. +
  12548. +
  12549. +
  12550. +
  12551. +
  12552. +
  12553. +
  12554. +
  12555. +
  12556. +
  12557. +test -z "$LN_S" && LN_S="ln -s"
  12558. +
  12559. +
  12560. +
  12561. +
  12562. +
  12563. +
  12564. +
  12565. +
  12566. +
  12567. +
  12568. +
  12569. +
  12570. +
  12571. +
  12572. +if test -n "${ZSH_VERSION+set}" ; then
  12573. + setopt NO_GLOB_SUBST
  12574. +fi
  12575. +
  12576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  12577. +$as_echo_n "checking for objdir... " >&6; }
  12578. +if test "${lt_cv_objdir+set}" = set; then :
  12579. + $as_echo_n "(cached) " >&6
  12580. +else
  12581. + rm -f .libs 2>/dev/null
  12582. +mkdir .libs 2>/dev/null
  12583. +if test -d .libs; then
  12584. + lt_cv_objdir=.libs
  12585. +else
  12586. + # MS-DOS does not allow filenames that begin with a dot.
  12587. + lt_cv_objdir=_libs
  12588. +fi
  12589. +rmdir .libs 2>/dev/null
  12590. +fi
  12591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  12592. +$as_echo "$lt_cv_objdir" >&6; }
  12593. +objdir=$lt_cv_objdir
  12594. +
  12595. +
  12596. +
  12597. +
  12598. +
  12599. +cat >>confdefs.h <<_ACEOF
  12600. +#define LT_OBJDIR "$lt_cv_objdir/"
  12601. +_ACEOF
  12602. +
  12603. +
  12604. +
  12605. +
  12606. +
  12607. +
  12608. +
  12609. +
  12610. +
  12611. +
  12612. +
  12613. +
  12614. +
  12615. +
  12616. +
  12617. +
  12618. +
  12619. +case $host_os in
  12620. +aix3*)
  12621. + # AIX sometimes has problems with the GCC collect2 program. For some
  12622. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  12623. + # vanish in a puff of smoke.
  12624. + if test "X${COLLECT_NAMES+set}" != Xset; then
  12625. + COLLECT_NAMES=
  12626. + export COLLECT_NAMES
  12627. + fi
  12628. + ;;
  12629. +esac
  12630. +
  12631. +# Sed substitution that helps us do robust quoting. It backslashifies
  12632. +# metacharacters that are still active within double-quoted strings.
  12633. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  12634. +
  12635. +# Same as above, but do not quote variable references.
  12636. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  12637. +
  12638. +# Sed substitution to delay expansion of an escaped shell variable in a
  12639. +# double_quote_subst'ed string.
  12640. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  12641. +
  12642. +# Sed substitution to delay expansion of an escaped single quote.
  12643. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  12644. +
  12645. +# Sed substitution to avoid accidental globbing in evaled expressions
  12646. +no_glob_subst='s/\*/\\\*/g'
  12647. +
  12648. +# Global variables:
  12649. +ofile=libtool
  12650. +can_build_shared=yes
  12651. +
  12652. +# All known linkers require a `.a' archive for static linking (except MSVC,
  12653. +# which needs '.lib').
  12654. +libext=a
  12655. +
  12656. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  12657. +
  12658. +old_CC="$CC"
  12659. +old_CFLAGS="$CFLAGS"
  12660. +
  12661. +# Set sane defaults for various variables
  12662. +test -z "$CC" && CC=cc
  12663. +test -z "$LTCC" && LTCC=$CC
  12664. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  12665. +test -z "$LD" && LD=ld
  12666. +test -z "$ac_objext" && ac_objext=o
  12667. +
  12668. +for cc_temp in $compiler""; do
  12669. + case $cc_temp in
  12670. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12671. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12672. + \-*) ;;
  12673. + *) break;;
  12674. + esac
  12675. +done
  12676. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12677. +
  12678. +
  12679. +# Only perform the check for file, if the check method requires it
  12680. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12681. +case $deplibs_check_method in
  12682. +file_magic*)
  12683. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  12684. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  12685. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  12686. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  12687. + $as_echo_n "(cached) " >&6
  12688. +else
  12689. + case $MAGIC_CMD in
  12690. +[\\/*] | ?:[\\/]*)
  12691. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12692. + ;;
  12693. +*)
  12694. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  12695. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12696. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12697. + for ac_dir in $ac_dummy; do
  12698. + IFS="$lt_save_ifs"
  12699. + test -z "$ac_dir" && ac_dir=.
  12700. + if test -f $ac_dir/${ac_tool_prefix}file; then
  12701. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  12702. + if test -n "$file_magic_test_file"; then
  12703. + case $deplibs_check_method in
  12704. + "file_magic "*)
  12705. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12706. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12707. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12708. + $EGREP "$file_magic_regex" > /dev/null; then
  12709. + :
  12710. + else
  12711. + cat <<_LT_EOF 1>&2
  12712. +
  12713. +*** Warning: the command libtool uses to detect shared libraries,
  12714. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  12715. +*** The result is that libtool may fail to recognize shared libraries
  12716. +*** as such. This will affect the creation of libtool libraries that
  12717. +*** depend on shared libraries, but programs linked with such libtool
  12718. +*** libraries will work regardless of this problem. Nevertheless, you
  12719. +*** may want to report the problem to your system manager and/or to
  12720. +*** bug-libtool@gnu.org
  12721. +
  12722. +_LT_EOF
  12723. + fi ;;
  12724. + esac
  12725. + fi
  12726. + break
  12727. + fi
  12728. + done
  12729. + IFS="$lt_save_ifs"
  12730. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  12731. + ;;
  12732. +esac
  12733. +fi
  12734. +
  12735. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12736. +if test -n "$MAGIC_CMD"; then
  12737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12738. +$as_echo "$MAGIC_CMD" >&6; }
  12739. +else
  12740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12741. +$as_echo "no" >&6; }
  12742. +fi
  12743. +
  12744. +
  12745. +
  12746. +
  12747. +
  12748. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  12749. + if test -n "$ac_tool_prefix"; then
  12750. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  12751. +$as_echo_n "checking for file... " >&6; }
  12752. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  12753. + $as_echo_n "(cached) " >&6
  12754. +else
  12755. + case $MAGIC_CMD in
  12756. +[\\/*] | ?:[\\/]*)
  12757. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12758. + ;;
  12759. +*)
  12760. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  12761. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12762. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12763. + for ac_dir in $ac_dummy; do
  12764. + IFS="$lt_save_ifs"
  12765. + test -z "$ac_dir" && ac_dir=.
  12766. + if test -f $ac_dir/file; then
  12767. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  12768. + if test -n "$file_magic_test_file"; then
  12769. + case $deplibs_check_method in
  12770. + "file_magic "*)
  12771. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12772. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12773. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12774. + $EGREP "$file_magic_regex" > /dev/null; then
  12775. + :
  12776. + else
  12777. + cat <<_LT_EOF 1>&2
  12778. +
  12779. +*** Warning: the command libtool uses to detect shared libraries,
  12780. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  12781. +*** The result is that libtool may fail to recognize shared libraries
  12782. +*** as such. This will affect the creation of libtool libraries that
  12783. +*** depend on shared libraries, but programs linked with such libtool
  12784. +*** libraries will work regardless of this problem. Nevertheless, you
  12785. +*** may want to report the problem to your system manager and/or to
  12786. +*** bug-libtool@gnu.org
  12787. +
  12788. +_LT_EOF
  12789. + fi ;;
  12790. + esac
  12791. + fi
  12792. + break
  12793. + fi
  12794. + done
  12795. + IFS="$lt_save_ifs"
  12796. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  12797. + ;;
  12798. +esac
  12799. +fi
  12800. +
  12801. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12802. +if test -n "$MAGIC_CMD"; then
  12803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12804. +$as_echo "$MAGIC_CMD" >&6; }
  12805. +else
  12806. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12807. +$as_echo "no" >&6; }
  12808. +fi
  12809. +
  12810. +
  12811. + else
  12812. + MAGIC_CMD=:
  12813. + fi
  12814. +fi
  12815. +
  12816. + fi
  12817. + ;;
  12818. +esac
  12819. +
  12820. +# Use C for the default configuration in the libtool script
  12821. +
  12822. +lt_save_CC="$CC"
  12823. +ac_ext=c
  12824. +ac_cpp='$CPP $CPPFLAGS'
  12825. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12826. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12827. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12828. +
  12829. +
  12830. +# Source file extension for C test sources.
  12831. +ac_ext=c
  12832. +
  12833. +# Object file extension for compiled C test sources.
  12834. +objext=o
  12835. +objext=$objext
  12836. +
  12837. +# Code to be used in simple compile tests
  12838. +lt_simple_compile_test_code="int some_variable = 0;"
  12839. +
  12840. +# Code to be used in simple link tests
  12841. +lt_simple_link_test_code='int main(){return(0);}'
  12842. +
  12843. +
  12844. +
  12845. +
  12846. +
  12847. +
  12848. +
  12849. +# If no C compiler was specified, use CC.
  12850. +LTCC=${LTCC-"$CC"}
  12851. +
  12852. +# If no C compiler flags were specified, use CFLAGS.
  12853. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12854. +
  12855. +# Allow CC to be a program name with arguments.
  12856. +compiler=$CC
  12857. +
  12858. +# Save the default compiler, since it gets overwritten when the other
  12859. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12860. +compiler_DEFAULT=$CC
  12861. +
  12862. +# save warnings/boilerplate of simple test code
  12863. +ac_outfile=conftest.$ac_objext
  12864. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12865. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12866. +_lt_compiler_boilerplate=`cat conftest.err`
  12867. +$RM conftest*
  12868. +
  12869. +ac_outfile=conftest.$ac_objext
  12870. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12871. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12872. +_lt_linker_boilerplate=`cat conftest.err`
  12873. +$RM -r conftest*
  12874. +
  12875. +
  12876. +## CAVEAT EMPTOR:
  12877. +## There is no encapsulation within the following macros, do not change
  12878. +## the running order or otherwise move them around unless you know exactly
  12879. +## what you are doing...
  12880. +if test -n "$compiler"; then
  12881. +
  12882. +lt_prog_compiler_no_builtin_flag=
  12883. +
  12884. +if test "$GCC" = yes; then
  12885. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  12886. +
  12887. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12888. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12889. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  12890. + $as_echo_n "(cached) " >&6
  12891. +else
  12892. + lt_cv_prog_compiler_rtti_exceptions=no
  12893. + ac_outfile=conftest.$ac_objext
  12894. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12895. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  12896. + # Insert the option either (1) after the last *FLAGS variable, or
  12897. + # (2) before a word containing "conftest.", or (3) at the end.
  12898. + # Note that $ac_compile itself does not contain backslashes and begins
  12899. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  12900. + # The option is referenced via a variable to avoid confusing sed.
  12901. + lt_compile=`echo "$ac_compile" | $SED \
  12902. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12903. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12904. + -e 's:$: $lt_compiler_flag:'`
  12905. + (eval echo "\"\$as_me:8496: $lt_compile\"" >&5)
  12906. + (eval "$lt_compile" 2>conftest.err)
  12907. + ac_status=$?
  12908. + cat conftest.err >&5
  12909. + echo "$as_me:8500: \$? = $ac_status" >&5
  12910. + if (exit $ac_status) && test -s "$ac_outfile"; then
  12911. + # The compiler can only warn and ignore the option if not recognized
  12912. + # So say no if there are warnings other than the usual output.
  12913. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12914. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12915. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12916. + lt_cv_prog_compiler_rtti_exceptions=yes
  12917. + fi
  12918. + fi
  12919. + $RM conftest*
  12920. +
  12921. +fi
  12922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12923. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12924. +
  12925. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  12926. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12927. +else
  12928. + :
  12929. +fi
  12930. +
  12931. +fi
  12932. +
  12933. +
  12934. +
  12935. +
  12936. +
  12937. +
  12938. + lt_prog_compiler_wl=
  12939. +lt_prog_compiler_pic=
  12940. +lt_prog_compiler_static=
  12941. +
  12942. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12943. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12944. +
  12945. + if test "$GCC" = yes; then
  12946. + lt_prog_compiler_wl='-Wl,'
  12947. + lt_prog_compiler_static='-static'
  12948. +
  12949. + case $host_os in
  12950. + aix*)
  12951. + # All AIX code is PIC.
  12952. + if test "$host_cpu" = ia64; then
  12953. + # AIX 5 now supports IA64 processor
  12954. + lt_prog_compiler_static='-Bstatic'
  12955. + fi
  12956. + ;;
  12957. +
  12958. + amigaos*)
  12959. + case $host_cpu in
  12960. + powerpc)
  12961. + # see comment about AmigaOS4 .so support
  12962. + lt_prog_compiler_pic='-fPIC'
  12963. + ;;
  12964. + m68k)
  12965. + # FIXME: we need at least 68020 code to build shared libraries, but
  12966. + # adding the `-m68020' flag to GCC prevents building anything better,
  12967. + # like `-m68040'.
  12968. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12969. + ;;
  12970. + esac
  12971. + ;;
  12972. +
  12973. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12974. + # PIC is the default for these OSes.
  12975. + ;;
  12976. +
  12977. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  12978. + # This hack is so that the source file can tell whether it is being
  12979. + # built for inclusion in a dll (and should export symbols for example).
  12980. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12981. + # (--disable-auto-import) libraries
  12982. + lt_prog_compiler_pic='-DDLL_EXPORT'
  12983. + ;;
  12984. +
  12985. + darwin* | rhapsody*)
  12986. + # PIC is the default on this platform
  12987. + # Common symbols not allowed in MH_DYLIB files
  12988. + lt_prog_compiler_pic='-fno-common'
  12989. + ;;
  12990. +
  12991. + hpux*)
  12992. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12993. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12994. + # sets the default TLS model and affects inlining.
  12995. + case $host_cpu in
  12996. + hppa*64*)
  12997. + # +Z the default
  12998. + ;;
  12999. + *)
  13000. + lt_prog_compiler_pic='-fPIC'
  13001. + ;;
  13002. + esac
  13003. + ;;
  13004. +
  13005. + interix[3-9]*)
  13006. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13007. + # Instead, we relocate shared libraries at runtime.
  13008. + ;;
  13009. +
  13010. + msdosdjgpp*)
  13011. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  13012. + # on systems that don't support them.
  13013. + lt_prog_compiler_can_build_shared=no
  13014. + enable_shared=no
  13015. + ;;
  13016. +
  13017. + *nto* | *qnx*)
  13018. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  13019. + # it will coredump.
  13020. + lt_prog_compiler_pic='-fPIC -shared'
  13021. + ;;
  13022. +
  13023. + sysv4*MP*)
  13024. + if test -d /usr/nec; then
  13025. + lt_prog_compiler_pic=-Kconform_pic
  13026. + fi
  13027. + ;;
  13028. +
  13029. + *)
  13030. + lt_prog_compiler_pic='-fPIC'
  13031. + ;;
  13032. + esac
  13033. + else
  13034. + # PORTME Check for flag to pass linker flags through the system compiler.
  13035. + case $host_os in
  13036. + aix*)
  13037. + lt_prog_compiler_wl='-Wl,'
  13038. + if test "$host_cpu" = ia64; then
  13039. + # AIX 5 now supports IA64 processor
  13040. + lt_prog_compiler_static='-Bstatic'
  13041. + else
  13042. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  13043. + fi
  13044. + ;;
  13045. +
  13046. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  13047. + # This hack is so that the source file can tell whether it is being
  13048. + # built for inclusion in a dll (and should export symbols for example).
  13049. + lt_prog_compiler_pic='-DDLL_EXPORT'
  13050. + ;;
  13051. +
  13052. + hpux9* | hpux10* | hpux11*)
  13053. + lt_prog_compiler_wl='-Wl,'
  13054. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13055. + # not for PA HP-UX.
  13056. + case $host_cpu in
  13057. + hppa*64*|ia64*)
  13058. + # +Z the default
  13059. + ;;
  13060. + *)
  13061. + lt_prog_compiler_pic='+Z'
  13062. + ;;
  13063. + esac
  13064. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13065. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  13066. + ;;
  13067. +
  13068. + irix5* | irix6* | nonstopux*)
  13069. + lt_prog_compiler_wl='-Wl,'
  13070. + # PIC (with -KPIC) is the default.
  13071. + lt_prog_compiler_static='-non_shared'
  13072. + ;;
  13073. +
  13074. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13075. + case $cc_basename in
  13076. + # old Intel for x86_64 which still supported -KPIC.
  13077. + ecc*)
  13078. + lt_prog_compiler_wl='-Wl,'
  13079. + lt_prog_compiler_pic='-KPIC'
  13080. + lt_prog_compiler_static='-static'
  13081. + ;;
  13082. + # icc used to be incompatible with GCC.
  13083. + # ICC 10 doesn't accept -KPIC any more.
  13084. + icc* | ifort*)
  13085. + lt_prog_compiler_wl='-Wl,'
  13086. + lt_prog_compiler_pic='-fPIC'
  13087. + lt_prog_compiler_static='-static'
  13088. + ;;
  13089. + # Lahey Fortran 8.1.
  13090. + lf95*)
  13091. + lt_prog_compiler_wl='-Wl,'
  13092. + lt_prog_compiler_pic='--shared'
  13093. + lt_prog_compiler_static='--static'
  13094. + ;;
  13095. + pgcc* | pgf77* | pgf90* | pgf95*)
  13096. + # Portland Group compilers (*not* the Pentium gcc compiler,
  13097. + # which looks to be a dead project)
  13098. + lt_prog_compiler_wl='-Wl,'
  13099. + lt_prog_compiler_pic='-fpic'
  13100. + lt_prog_compiler_static='-Bstatic'
  13101. + ;;
  13102. + ccc*)
  13103. + lt_prog_compiler_wl='-Wl,'
  13104. + # All Alpha code is PIC.
  13105. + lt_prog_compiler_static='-non_shared'
  13106. + ;;
  13107. + xl*)
  13108. + # IBM XL C 8.0/Fortran 10.1 on PPC
  13109. + lt_prog_compiler_wl='-Wl,'
  13110. + lt_prog_compiler_pic='-qpic'
  13111. + lt_prog_compiler_static='-qstaticlink'
  13112. + ;;
  13113. + *)
  13114. + case `$CC -V 2>&1 | sed 5q` in
  13115. + *Sun\ C*)
  13116. + # Sun C 5.9
  13117. + lt_prog_compiler_pic='-KPIC'
  13118. + lt_prog_compiler_static='-Bstatic'
  13119. + lt_prog_compiler_wl='-Wl,'
  13120. + ;;
  13121. + *Sun\ F*)
  13122. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13123. + lt_prog_compiler_pic='-KPIC'
  13124. + lt_prog_compiler_static='-Bstatic'
  13125. + lt_prog_compiler_wl=''
  13126. + ;;
  13127. + esac
  13128. + ;;
  13129. + esac
  13130. + ;;
  13131. +
  13132. + newsos6)
  13133. + lt_prog_compiler_pic='-KPIC'
  13134. + lt_prog_compiler_static='-Bstatic'
  13135. + ;;
  13136. +
  13137. + *nto* | *qnx*)
  13138. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  13139. + # it will coredump.
  13140. + lt_prog_compiler_pic='-fPIC -shared'
  13141. + ;;
  13142. +
  13143. + osf3* | osf4* | osf5*)
  13144. + lt_prog_compiler_wl='-Wl,'
  13145. + # All OSF/1 code is PIC.
  13146. + lt_prog_compiler_static='-non_shared'
  13147. + ;;
  13148. +
  13149. + rdos*)
  13150. + lt_prog_compiler_static='-non_shared'
  13151. + ;;
  13152. +
  13153. + solaris*)
  13154. + lt_prog_compiler_pic='-KPIC'
  13155. + lt_prog_compiler_static='-Bstatic'
  13156. + case $cc_basename in
  13157. + f77* | f90* | f95*)
  13158. + lt_prog_compiler_wl='-Qoption ld ';;
  13159. + *)
  13160. + lt_prog_compiler_wl='-Wl,';;
  13161. + esac
  13162. + ;;
  13163. +
  13164. + sunos4*)
  13165. + lt_prog_compiler_wl='-Qoption ld '
  13166. + lt_prog_compiler_pic='-PIC'
  13167. + lt_prog_compiler_static='-Bstatic'
  13168. + ;;
  13169. +
  13170. + sysv4 | sysv4.2uw2* | sysv4.3*)
  13171. + lt_prog_compiler_wl='-Wl,'
  13172. + lt_prog_compiler_pic='-KPIC'
  13173. + lt_prog_compiler_static='-Bstatic'
  13174. + ;;
  13175. +
  13176. + sysv4*MP*)
  13177. + if test -d /usr/nec ;then
  13178. + lt_prog_compiler_pic='-Kconform_pic'
  13179. + lt_prog_compiler_static='-Bstatic'
  13180. + fi
  13181. + ;;
  13182. +
  13183. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13184. + lt_prog_compiler_wl='-Wl,'
  13185. + lt_prog_compiler_pic='-KPIC'
  13186. + lt_prog_compiler_static='-Bstatic'
  13187. + ;;
  13188. +
  13189. + unicos*)
  13190. + lt_prog_compiler_wl='-Wl,'
  13191. + lt_prog_compiler_can_build_shared=no
  13192. + ;;
  13193. +
  13194. + uts4*)
  13195. + lt_prog_compiler_pic='-pic'
  13196. + lt_prog_compiler_static='-Bstatic'
  13197. + ;;
  13198. +
  13199. + *)
  13200. + lt_prog_compiler_can_build_shared=no
  13201. + ;;
  13202. + esac
  13203. + fi
  13204. +
  13205. +case $host_os in
  13206. + # For platforms which do not support PIC, -DPIC is meaningless:
  13207. + *djgpp*)
  13208. + lt_prog_compiler_pic=
  13209. + ;;
  13210. + *)
  13211. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  13212. + ;;
  13213. +esac
  13214. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  13215. +$as_echo "$lt_prog_compiler_pic" >&6; }
  13216. +
  13217. +
  13218. +
  13219. +
  13220. +
  13221. +
  13222. +#
  13223. +# Check to make sure the PIC flag actually works.
  13224. +#
  13225. +if test -n "$lt_prog_compiler_pic"; then
  13226. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  13227. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  13228. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  13229. + $as_echo_n "(cached) " >&6
  13230. +else
  13231. + lt_cv_prog_compiler_pic_works=no
  13232. + ac_outfile=conftest.$ac_objext
  13233. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13234. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  13235. + # Insert the option either (1) after the last *FLAGS variable, or
  13236. + # (2) before a word containing "conftest.", or (3) at the end.
  13237. + # Note that $ac_compile itself does not contain backslashes and begins
  13238. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  13239. + # The option is referenced via a variable to avoid confusing sed.
  13240. + lt_compile=`echo "$ac_compile" | $SED \
  13241. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13242. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13243. + -e 's:$: $lt_compiler_flag:'`
  13244. + (eval echo "\"\$as_me:8835: $lt_compile\"" >&5)
  13245. + (eval "$lt_compile" 2>conftest.err)
  13246. + ac_status=$?
  13247. + cat conftest.err >&5
  13248. + echo "$as_me:8839: \$? = $ac_status" >&5
  13249. + if (exit $ac_status) && test -s "$ac_outfile"; then
  13250. + # The compiler can only warn and ignore the option if not recognized
  13251. + # So say no if there are warnings other than the usual output.
  13252. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13253. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13254. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13255. + lt_cv_prog_compiler_pic_works=yes
  13256. + fi
  13257. + fi
  13258. + $RM conftest*
  13259. +
  13260. +fi
  13261. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  13262. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  13263. +
  13264. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  13265. + case $lt_prog_compiler_pic in
  13266. + "" | " "*) ;;
  13267. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  13268. + esac
  13269. +else
  13270. + lt_prog_compiler_pic=
  13271. + lt_prog_compiler_can_build_shared=no
  13272. +fi
  13273. +
  13274. +fi
  13275. +
  13276. +
  13277. +
  13278. +
  13279. +
  13280. +
  13281. +#
  13282. +# Check to make sure the static flag actually works.
  13283. +#
  13284. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  13285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13286. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13287. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  13288. + $as_echo_n "(cached) " >&6
  13289. +else
  13290. + lt_cv_prog_compiler_static_works=no
  13291. + save_LDFLAGS="$LDFLAGS"
  13292. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13293. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13294. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13295. + # The linker can only warn and ignore the option if not recognized
  13296. + # So say no if there are warnings
  13297. + if test -s conftest.err; then
  13298. + # Append any errors to the config.log.
  13299. + cat conftest.err 1>&5
  13300. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13301. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13302. + if diff conftest.exp conftest.er2 >/dev/null; then
  13303. + lt_cv_prog_compiler_static_works=yes
  13304. + fi
  13305. + else
  13306. + lt_cv_prog_compiler_static_works=yes
  13307. + fi
  13308. + fi
  13309. + $RM -r conftest*
  13310. + LDFLAGS="$save_LDFLAGS"
  13311. +
  13312. +fi
  13313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  13314. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  13315. +
  13316. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  13317. + :
  13318. +else
  13319. + lt_prog_compiler_static=
  13320. +fi
  13321. +
  13322. +
  13323. +
  13324. +
  13325. +
  13326. +
  13327. +
  13328. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13329. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13330. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  13331. + $as_echo_n "(cached) " >&6
  13332. +else
  13333. + lt_cv_prog_compiler_c_o=no
  13334. + $RM -r conftest 2>/dev/null
  13335. + mkdir conftest
  13336. + cd conftest
  13337. + mkdir out
  13338. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13339. +
  13340. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  13341. + # Insert the option either (1) after the last *FLAGS variable, or
  13342. + # (2) before a word containing "conftest.", or (3) at the end.
  13343. + # Note that $ac_compile itself does not contain backslashes and begins
  13344. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  13345. + lt_compile=`echo "$ac_compile" | $SED \
  13346. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13347. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13348. + -e 's:$: $lt_compiler_flag:'`
  13349. + (eval echo "\"\$as_me:8940: $lt_compile\"" >&5)
  13350. + (eval "$lt_compile" 2>out/conftest.err)
  13351. + ac_status=$?
  13352. + cat out/conftest.err >&5
  13353. + echo "$as_me:8944: \$? = $ac_status" >&5
  13354. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13355. + then
  13356. + # The compiler can only warn and ignore the option if not recognized
  13357. + # So say no if there are warnings
  13358. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13359. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13360. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13361. + lt_cv_prog_compiler_c_o=yes
  13362. + fi
  13363. + fi
  13364. + chmod u+w . 2>&5
  13365. + $RM conftest*
  13366. + # SGI C++ compiler will create directory out/ii_files/ for
  13367. + # template instantiation
  13368. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13369. + $RM out/* && rmdir out
  13370. + cd ..
  13371. + $RM -r conftest
  13372. + $RM conftest*
  13373. +
  13374. +fi
  13375. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  13376. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  13377. +
  13378. +
  13379. +
  13380. +
  13381. +
  13382. +
  13383. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13384. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13385. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  13386. + $as_echo_n "(cached) " >&6
  13387. +else
  13388. + lt_cv_prog_compiler_c_o=no
  13389. + $RM -r conftest 2>/dev/null
  13390. + mkdir conftest
  13391. + cd conftest
  13392. + mkdir out
  13393. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13394. +
  13395. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  13396. + # Insert the option either (1) after the last *FLAGS variable, or
  13397. + # (2) before a word containing "conftest.", or (3) at the end.
  13398. + # Note that $ac_compile itself does not contain backslashes and begins
  13399. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  13400. + lt_compile=`echo "$ac_compile" | $SED \
  13401. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13402. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13403. + -e 's:$: $lt_compiler_flag:'`
  13404. + (eval echo "\"\$as_me:8995: $lt_compile\"" >&5)
  13405. + (eval "$lt_compile" 2>out/conftest.err)
  13406. + ac_status=$?
  13407. + cat out/conftest.err >&5
  13408. + echo "$as_me:8999: \$? = $ac_status" >&5
  13409. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13410. + then
  13411. + # The compiler can only warn and ignore the option if not recognized
  13412. + # So say no if there are warnings
  13413. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13414. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13415. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13416. + lt_cv_prog_compiler_c_o=yes
  13417. + fi
  13418. + fi
  13419. + chmod u+w . 2>&5
  13420. + $RM conftest*
  13421. + # SGI C++ compiler will create directory out/ii_files/ for
  13422. + # template instantiation
  13423. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13424. + $RM out/* && rmdir out
  13425. + cd ..
  13426. + $RM -r conftest
  13427. + $RM conftest*
  13428. +
  13429. +fi
  13430. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  13431. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  13432. +
  13433. +
  13434. +
  13435. +
  13436. +hard_links="nottested"
  13437. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  13438. + # do not overwrite the value of need_locks provided by the user
  13439. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13440. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  13441. + hard_links=yes
  13442. + $RM conftest*
  13443. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13444. + touch conftest.a
  13445. + ln conftest.a conftest.b 2>&5 || hard_links=no
  13446. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13447. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13448. +$as_echo "$hard_links" >&6; }
  13449. + if test "$hard_links" = no; then
  13450. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13451. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13452. + need_locks=warn
  13453. + fi
  13454. +else
  13455. + need_locks=no
  13456. +fi
  13457. +
  13458. +
  13459. +
  13460. +
  13461. +
  13462. +
  13463. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13464. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13465. +
  13466. + runpath_var=
  13467. + allow_undefined_flag=
  13468. + always_export_symbols=no
  13469. + archive_cmds=
  13470. + archive_expsym_cmds=
  13471. + compiler_needs_object=no
  13472. + enable_shared_with_static_runtimes=no
  13473. + export_dynamic_flag_spec=
  13474. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13475. + hardcode_automatic=no
  13476. + hardcode_direct=no
  13477. + hardcode_direct_absolute=no
  13478. + hardcode_libdir_flag_spec=
  13479. + hardcode_libdir_flag_spec_ld=
  13480. + hardcode_libdir_separator=
  13481. + hardcode_minus_L=no
  13482. + hardcode_shlibpath_var=unsupported
  13483. + inherit_rpath=no
  13484. + link_all_deplibs=unknown
  13485. + module_cmds=
  13486. + module_expsym_cmds=
  13487. + old_archive_from_new_cmds=
  13488. + old_archive_from_expsyms_cmds=
  13489. + thread_safe_flag_spec=
  13490. + whole_archive_flag_spec=
  13491. + # include_expsyms should be a list of space-separated symbols to be *always*
  13492. + # included in the symbol list
  13493. + include_expsyms=
  13494. + # exclude_expsyms can be an extended regexp of symbols to exclude
  13495. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13496. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13497. + # as well as any symbol that contains `d'.
  13498. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13499. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13500. + # platforms (ab)use it in PIC code, but their linkers get confused if
  13501. + # the symbol is explicitly referenced. Since portable code cannot
  13502. + # rely on this symbol name, it's probably fine to never include it in
  13503. + # preloaded symbol tables.
  13504. + # Exclude shared library initialization/finalization symbols.
  13505. + extract_expsyms_cmds=
  13506. +
  13507. + case $host_os in
  13508. + cygwin* | mingw* | pw32* | cegcc*)
  13509. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13510. + # When not using gcc, we currently assume that we are using
  13511. + # Microsoft Visual C++.
  13512. + if test "$GCC" != yes; then
  13513. + with_gnu_ld=no
  13514. + fi
  13515. + ;;
  13516. + interix*)
  13517. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  13518. + with_gnu_ld=yes
  13519. + ;;
  13520. + openbsd*)
  13521. + with_gnu_ld=no
  13522. + ;;
  13523. + linux* | k*bsd*-gnu)
  13524. + link_all_deplibs=no
  13525. + ;;
  13526. + esac
  13527. +
  13528. + ld_shlibs=yes
  13529. + if test "$with_gnu_ld" = yes; then
  13530. + # If archive_cmds runs LD, not CC, wlarc should be empty
  13531. + wlarc='${wl}'
  13532. +
  13533. + # Set some defaults for GNU ld with shared library support. These
  13534. + # are reset later if shared libraries are not supported. Putting them
  13535. + # here allows them to be overridden if necessary.
  13536. + runpath_var=LD_RUN_PATH
  13537. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13538. + export_dynamic_flag_spec='${wl}--export-dynamic'
  13539. + # ancient GNU ld didn't support --whole-archive et. al.
  13540. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  13541. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13542. + else
  13543. + whole_archive_flag_spec=
  13544. + fi
  13545. + supports_anon_versioning=no
  13546. + case `$LD -v 2>&1` in
  13547. + *GNU\ gold*) supports_anon_versioning=yes ;;
  13548. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13549. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13550. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13551. + *\ 2.11.*) ;; # other 2.11 versions
  13552. + *) supports_anon_versioning=yes ;;
  13553. + esac
  13554. +
  13555. + # See if GNU ld supports shared libraries.
  13556. + case $host_os in
  13557. + aix[3-9]*)
  13558. + # On AIX/PPC, the GNU linker is very broken
  13559. + if test "$host_cpu" != ia64; then
  13560. + ld_shlibs=no
  13561. + cat <<_LT_EOF 1>&2
  13562. +
  13563. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13564. +*** to be unable to reliably create shared libraries on AIX.
  13565. +*** Therefore, libtool is disabling shared libraries support. If you
  13566. +*** really care for shared libraries, you may want to modify your PATH
  13567. +*** so that a non-GNU linker is found, and then restart.
  13568. +
  13569. +_LT_EOF
  13570. + fi
  13571. + ;;
  13572. +
  13573. + amigaos*)
  13574. + case $host_cpu in
  13575. + powerpc)
  13576. + # see comment about AmigaOS4 .so support
  13577. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13578. + archive_expsym_cmds=''
  13579. + ;;
  13580. + m68k)
  13581. + 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)'
  13582. + hardcode_libdir_flag_spec='-L$libdir'
  13583. + hardcode_minus_L=yes
  13584. + ;;
  13585. + esac
  13586. + ;;
  13587. +
  13588. + beos*)
  13589. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13590. + allow_undefined_flag=unsupported
  13591. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13592. + # support --undefined. This deserves some investigation. FIXME
  13593. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13594. + else
  13595. + ld_shlibs=no
  13596. + fi
  13597. + ;;
  13598. +
  13599. + cygwin* | mingw* | pw32* | cegcc*)
  13600. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  13601. + # as there is no search path for DLLs.
  13602. + hardcode_libdir_flag_spec='-L$libdir'
  13603. + allow_undefined_flag=unsupported
  13604. + always_export_symbols=no
  13605. + enable_shared_with_static_runtimes=yes
  13606. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13607. +
  13608. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13609. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13610. + # If the export-symbols file already is a .def file (1st line
  13611. + # is EXPORTS), use it as is; otherwise, prepend...
  13612. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13613. + cp $export_symbols $output_objdir/$soname.def;
  13614. + else
  13615. + echo EXPORTS > $output_objdir/$soname.def;
  13616. + cat $export_symbols >> $output_objdir/$soname.def;
  13617. + fi~
  13618. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13619. + else
  13620. + ld_shlibs=no
  13621. + fi
  13622. + ;;
  13623. +
  13624. + interix[3-9]*)
  13625. + hardcode_direct=no
  13626. + hardcode_shlibpath_var=no
  13627. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13628. + export_dynamic_flag_spec='${wl}-E'
  13629. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13630. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  13631. + # default) and relocated if they conflict, which is a slow very memory
  13632. + # consuming and fragmenting process. To avoid this, we pick a random,
  13633. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13634. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13635. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13636. + 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'
  13637. + ;;
  13638. +
  13639. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  13640. + tmp_diet=no
  13641. + if test "$host_os" = linux-dietlibc; then
  13642. + case $cc_basename in
  13643. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  13644. + esac
  13645. + fi
  13646. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  13647. + && test "$tmp_diet" = no
  13648. + then
  13649. + tmp_addflag=
  13650. + tmp_sharedflag='-shared'
  13651. + case $cc_basename,$host_cpu in
  13652. + pgcc*) # Portland Group C compiler
  13653. + 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'
  13654. + tmp_addflag=' $pic_flag'
  13655. + ;;
  13656. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13657. + 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'
  13658. + tmp_addflag=' $pic_flag -Mnomain' ;;
  13659. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13660. + tmp_addflag=' -i_dynamic' ;;
  13661. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13662. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  13663. + ifc* | ifort*) # Intel Fortran compiler
  13664. + tmp_addflag=' -nofor_main' ;;
  13665. + lf95*) # Lahey Fortran 8.1
  13666. + whole_archive_flag_spec=
  13667. + tmp_sharedflag='--shared' ;;
  13668. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  13669. + tmp_sharedflag='-qmkshrobj'
  13670. + tmp_addflag= ;;
  13671. + esac
  13672. + case `$CC -V 2>&1 | sed 5q` in
  13673. + *Sun\ C*) # Sun C 5.9
  13674. + 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'
  13675. + compiler_needs_object=yes
  13676. + tmp_sharedflag='-G' ;;
  13677. + *Sun\ F*) # Sun Fortran 8.3
  13678. + tmp_sharedflag='-G' ;;
  13679. + esac
  13680. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13681. +
  13682. + if test "x$supports_anon_versioning" = xyes; then
  13683. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13684. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13685. + echo "local: *; };" >> $output_objdir/$libname.ver~
  13686. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13687. + fi
  13688. +
  13689. + case $cc_basename in
  13690. + xlf*)
  13691. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  13692. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  13693. + hardcode_libdir_flag_spec=
  13694. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  13695. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  13696. + if test "x$supports_anon_versioning" = xyes; then
  13697. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13698. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13699. + echo "local: *; };" >> $output_objdir/$libname.ver~
  13700. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  13701. + fi
  13702. + ;;
  13703. + esac
  13704. + else
  13705. + ld_shlibs=no
  13706. + fi
  13707. + ;;
  13708. +
  13709. + netbsd* | netbsdelf*-gnu)
  13710. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13711. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13712. + wlarc=
  13713. + else
  13714. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13715. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13716. + fi
  13717. + ;;
  13718. +
  13719. + solaris*)
  13720. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  13721. + ld_shlibs=no
  13722. + cat <<_LT_EOF 1>&2
  13723. +
  13724. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13725. +*** create shared libraries on Solaris systems. Therefore, libtool
  13726. +*** is disabling shared libraries support. We urge you to upgrade GNU
  13727. +*** binutils to release 2.9.1 or newer. Another option is to modify
  13728. +*** your PATH or compiler configuration so that the native linker is
  13729. +*** used, and then restart.
  13730. +
  13731. +_LT_EOF
  13732. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13733. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13734. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13735. + else
  13736. + ld_shlibs=no
  13737. + fi
  13738. + ;;
  13739. +
  13740. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13741. + case `$LD -v 2>&1` in
  13742. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13743. + ld_shlibs=no
  13744. + cat <<_LT_EOF 1>&2
  13745. +
  13746. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13747. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  13748. +*** is disabling shared libraries support. We urge you to upgrade GNU
  13749. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13750. +*** your PATH or compiler configuration so that the native linker is
  13751. +*** used, and then restart.
  13752. +
  13753. +_LT_EOF
  13754. + ;;
  13755. + *)
  13756. + # For security reasons, it is highly recommended that you always
  13757. + # use absolute paths for naming shared libraries, and exclude the
  13758. + # DT_RUNPATH tag from executables and libraries. But doing so
  13759. + # requires that you compile everything twice, which is a pain.
  13760. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13761. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13762. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13763. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13764. + else
  13765. + ld_shlibs=no
  13766. + fi
  13767. + ;;
  13768. + esac
  13769. + ;;
  13770. +
  13771. + sunos4*)
  13772. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13773. + wlarc=
  13774. + hardcode_direct=yes
  13775. + hardcode_shlibpath_var=no
  13776. + ;;
  13777. +
  13778. + *)
  13779. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13780. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13781. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13782. + else
  13783. + ld_shlibs=no
  13784. + fi
  13785. + ;;
  13786. + esac
  13787. +
  13788. + if test "$ld_shlibs" = no; then
  13789. + runpath_var=
  13790. + hardcode_libdir_flag_spec=
  13791. + export_dynamic_flag_spec=
  13792. + whole_archive_flag_spec=
  13793. + fi
  13794. + else
  13795. + # PORTME fill in a description of your system's linker (not GNU ld)
  13796. + case $host_os in
  13797. + aix3*)
  13798. + allow_undefined_flag=unsupported
  13799. + always_export_symbols=yes
  13800. + 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'
  13801. + # Note: this linker hardcodes the directories in LIBPATH if there
  13802. + # are no directories specified by -L.
  13803. + hardcode_minus_L=yes
  13804. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13805. + # Neither direct hardcoding nor static linking is supported with a
  13806. + # broken collect2.
  13807. + hardcode_direct=unsupported
  13808. + fi
  13809. + ;;
  13810. +
  13811. + aix[4-9]*)
  13812. + if test "$host_cpu" = ia64; then
  13813. + # On IA64, the linker does run time linking by default, so we don't
  13814. + # have to do anything special.
  13815. + aix_use_runtimelinking=no
  13816. + exp_sym_flag='-Bexport'
  13817. + no_entry_flag=""
  13818. + else
  13819. + # If we're using GNU nm, then we don't want the "-C" option.
  13820. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13821. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13822. + 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'
  13823. + else
  13824. + 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'
  13825. + fi
  13826. + aix_use_runtimelinking=no
  13827. +
  13828. + # Test if we are trying to use run time linking or normal
  13829. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13830. + # need to do runtime linking.
  13831. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13832. + for ld_flag in $LDFLAGS; do
  13833. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13834. + aix_use_runtimelinking=yes
  13835. + break
  13836. + fi
  13837. + done
  13838. + ;;
  13839. + esac
  13840. +
  13841. + exp_sym_flag='-bexport'
  13842. + no_entry_flag='-bnoentry'
  13843. + fi
  13844. +
  13845. + # When large executables or shared objects are built, AIX ld can
  13846. + # have problems creating the table of contents. If linking a library
  13847. + # or program results in "error TOC overflow" add -mminimal-toc to
  13848. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13849. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13850. +
  13851. + archive_cmds=''
  13852. + hardcode_direct=yes
  13853. + hardcode_direct_absolute=yes
  13854. + hardcode_libdir_separator=':'
  13855. + link_all_deplibs=yes
  13856. + file_list_spec='${wl}-f,'
  13857. +
  13858. + if test "$GCC" = yes; then
  13859. + case $host_os in aix4.[012]|aix4.[012].*)
  13860. + # We only want to do this on AIX 4.2 and lower, the check
  13861. + # below for broken collect2 doesn't work under 4.3+
  13862. + collect2name=`${CC} -print-prog-name=collect2`
  13863. + if test -f "$collect2name" &&
  13864. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13865. + then
  13866. + # We have reworked collect2
  13867. + :
  13868. + else
  13869. + # We have old collect2
  13870. + hardcode_direct=unsupported
  13871. + # It fails to find uninstalled libraries when the uninstalled
  13872. + # path is not listed in the libpath. Setting hardcode_minus_L
  13873. + # to unsupported forces relinking
  13874. + hardcode_minus_L=yes
  13875. + hardcode_libdir_flag_spec='-L$libdir'
  13876. + hardcode_libdir_separator=
  13877. + fi
  13878. + ;;
  13879. + esac
  13880. + shared_flag='-shared'
  13881. + if test "$aix_use_runtimelinking" = yes; then
  13882. + shared_flag="$shared_flag "'${wl}-G'
  13883. + fi
  13884. + link_all_deplibs=no
  13885. + else
  13886. + # not using gcc
  13887. + if test "$host_cpu" = ia64; then
  13888. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13889. + # chokes on -Wl,-G. The following line is correct:
  13890. + shared_flag='-G'
  13891. + else
  13892. + if test "$aix_use_runtimelinking" = yes; then
  13893. + shared_flag='${wl}-G'
  13894. + else
  13895. + shared_flag='${wl}-bM:SRE'
  13896. + fi
  13897. + fi
  13898. + fi
  13899. +
  13900. + export_dynamic_flag_spec='${wl}-bexpall'
  13901. + # It seems that -bexpall does not export symbols beginning with
  13902. + # underscore (_), so it is better to generate a list of symbols to export.
  13903. + always_export_symbols=yes
  13904. + if test "$aix_use_runtimelinking" = yes; then
  13905. + # Warning - without using the other runtime loading flags (-brtl),
  13906. + # -berok will link without error, but may produce a broken library.
  13907. + allow_undefined_flag='-berok'
  13908. + # Determine the default libpath from the value encoded in an
  13909. + # empty executable.
  13910. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13911. +/* end confdefs.h. */
  13912. +
  13913. +int
  13914. +main ()
  13915. +{
  13916. +
  13917. + ;
  13918. + return 0;
  13919. +}
  13920. +_ACEOF
  13921. +if ac_fn_c_try_link "$LINENO"; then :
  13922. +
  13923. +lt_aix_libpath_sed='
  13924. + /Import File Strings/,/^$/ {
  13925. + /^0/ {
  13926. + s/^0 *\(.*\)$/\1/
  13927. + p
  13928. + }
  13929. + }'
  13930. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13931. +# Check for a 64-bit object if we didn't find anything.
  13932. +if test -z "$aix_libpath"; then
  13933. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13934. +fi
  13935. +fi
  13936. +rm -f core conftest.err conftest.$ac_objext \
  13937. + conftest$ac_exeext conftest.$ac_ext
  13938. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13939. +
  13940. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13941. + 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"
  13942. + else
  13943. + if test "$host_cpu" = ia64; then
  13944. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  13945. + allow_undefined_flag="-z nodefs"
  13946. + 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"
  13947. + else
  13948. + # Determine the default libpath from the value encoded in an
  13949. + # empty executable.
  13950. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13951. +/* end confdefs.h. */
  13952. +
  13953. +int
  13954. +main ()
  13955. +{
  13956. +
  13957. + ;
  13958. + return 0;
  13959. +}
  13960. +_ACEOF
  13961. +if ac_fn_c_try_link "$LINENO"; then :
  13962. +
  13963. +lt_aix_libpath_sed='
  13964. + /Import File Strings/,/^$/ {
  13965. + /^0/ {
  13966. + s/^0 *\(.*\)$/\1/
  13967. + p
  13968. + }
  13969. + }'
  13970. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13971. +# Check for a 64-bit object if we didn't find anything.
  13972. +if test -z "$aix_libpath"; then
  13973. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13974. +fi
  13975. +fi
  13976. +rm -f core conftest.err conftest.$ac_objext \
  13977. + conftest$ac_exeext conftest.$ac_ext
  13978. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13979. +
  13980. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13981. + # Warning - without using the other run time loading flags,
  13982. + # -berok will link without error, but may produce a broken library.
  13983. + no_undefined_flag=' ${wl}-bernotok'
  13984. + allow_undefined_flag=' ${wl}-berok'
  13985. + # Exported symbols can be pulled into shared objects from archives
  13986. + whole_archive_flag_spec='$convenience'
  13987. + archive_cmds_need_lc=yes
  13988. + # This is similar to how AIX traditionally builds its shared libraries.
  13989. + 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'
  13990. + fi
  13991. + fi
  13992. + ;;
  13993. +
  13994. + amigaos*)
  13995. + case $host_cpu in
  13996. + powerpc)
  13997. + # see comment about AmigaOS4 .so support
  13998. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13999. + archive_expsym_cmds=''
  14000. + ;;
  14001. + m68k)
  14002. + 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)'
  14003. + hardcode_libdir_flag_spec='-L$libdir'
  14004. + hardcode_minus_L=yes
  14005. + ;;
  14006. + esac
  14007. + ;;
  14008. +
  14009. + bsdi[45]*)
  14010. + export_dynamic_flag_spec=-rdynamic
  14011. + ;;
  14012. +
  14013. + cygwin* | mingw* | pw32* | cegcc*)
  14014. + # When not using gcc, we currently assume that we are using
  14015. + # Microsoft Visual C++.
  14016. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  14017. + # no search path for DLLs.
  14018. + hardcode_libdir_flag_spec=' '
  14019. + allow_undefined_flag=unsupported
  14020. + # Tell ltmain to make .lib files, not .a files.
  14021. + libext=lib
  14022. + # Tell ltmain to make .dll files, not .so files.
  14023. + shrext_cmds=".dll"
  14024. + # FIXME: Setting linknames here is a bad hack.
  14025. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14026. + # The linker will automatically build a .lib file if we build a DLL.
  14027. + old_archive_from_new_cmds='true'
  14028. + # FIXME: Should let the user specify the lib program.
  14029. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  14030. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  14031. + enable_shared_with_static_runtimes=yes
  14032. + ;;
  14033. +
  14034. + darwin* | rhapsody*)
  14035. +
  14036. +
  14037. + archive_cmds_need_lc=no
  14038. + hardcode_direct=no
  14039. + hardcode_automatic=yes
  14040. + hardcode_shlibpath_var=unsupported
  14041. + whole_archive_flag_spec=''
  14042. + link_all_deplibs=yes
  14043. + allow_undefined_flag="$_lt_dar_allow_undefined"
  14044. + case $cc_basename in
  14045. + ifort*) _lt_dar_can_shared=yes ;;
  14046. + *) _lt_dar_can_shared=$GCC ;;
  14047. + esac
  14048. + if test "$_lt_dar_can_shared" = "yes"; then
  14049. + output_verbose_link_cmd=echo
  14050. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  14051. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14052. + 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}"
  14053. + 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}"
  14054. +
  14055. + else
  14056. + ld_shlibs=no
  14057. + fi
  14058. +
  14059. + ;;
  14060. +
  14061. + dgux*)
  14062. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14063. + hardcode_libdir_flag_spec='-L$libdir'
  14064. + hardcode_shlibpath_var=no
  14065. + ;;
  14066. +
  14067. + freebsd1*)
  14068. + ld_shlibs=no
  14069. + ;;
  14070. +
  14071. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14072. + # support. Future versions do this automatically, but an explicit c++rt0.o
  14073. + # does not break anything, and helps significantly (at the cost of a little
  14074. + # extra space).
  14075. + freebsd2.2*)
  14076. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14077. + hardcode_libdir_flag_spec='-R$libdir'
  14078. + hardcode_direct=yes
  14079. + hardcode_shlibpath_var=no
  14080. + ;;
  14081. +
  14082. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14083. + freebsd2*)
  14084. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14085. + hardcode_direct=yes
  14086. + hardcode_minus_L=yes
  14087. + hardcode_shlibpath_var=no
  14088. + ;;
  14089. +
  14090. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14091. + freebsd* | dragonfly*)
  14092. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14093. + hardcode_libdir_flag_spec='-R$libdir'
  14094. + hardcode_direct=yes
  14095. + hardcode_shlibpath_var=no
  14096. + ;;
  14097. +
  14098. + hpux9*)
  14099. + if test "$GCC" = yes; then
  14100. + 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'
  14101. + else
  14102. + 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'
  14103. + fi
  14104. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14105. + hardcode_libdir_separator=:
  14106. + hardcode_direct=yes
  14107. +
  14108. + # hardcode_minus_L: Not really in the search PATH,
  14109. + # but as the default location of the library.
  14110. + hardcode_minus_L=yes
  14111. + export_dynamic_flag_spec='${wl}-E'
  14112. + ;;
  14113. +
  14114. + hpux10*)
  14115. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14116. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14117. + else
  14118. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14119. + fi
  14120. + if test "$with_gnu_ld" = no; then
  14121. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14122. + hardcode_libdir_flag_spec_ld='+b $libdir'
  14123. + hardcode_libdir_separator=:
  14124. + hardcode_direct=yes
  14125. + hardcode_direct_absolute=yes
  14126. + export_dynamic_flag_spec='${wl}-E'
  14127. + # hardcode_minus_L: Not really in the search PATH,
  14128. + # but as the default location of the library.
  14129. + hardcode_minus_L=yes
  14130. + fi
  14131. + ;;
  14132. +
  14133. + hpux11*)
  14134. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14135. + case $host_cpu in
  14136. + hppa*64*)
  14137. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14138. + ;;
  14139. + ia64*)
  14140. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14141. + ;;
  14142. + *)
  14143. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14144. + ;;
  14145. + esac
  14146. + else
  14147. + case $host_cpu in
  14148. + hppa*64*)
  14149. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14150. + ;;
  14151. + ia64*)
  14152. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14153. + ;;
  14154. + *)
  14155. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14156. + ;;
  14157. + esac
  14158. + fi
  14159. + if test "$with_gnu_ld" = no; then
  14160. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14161. + hardcode_libdir_separator=:
  14162. +
  14163. + case $host_cpu in
  14164. + hppa*64*|ia64*)
  14165. + hardcode_direct=no
  14166. + hardcode_shlibpath_var=no
  14167. + ;;
  14168. + *)
  14169. + hardcode_direct=yes
  14170. + hardcode_direct_absolute=yes
  14171. + export_dynamic_flag_spec='${wl}-E'
  14172. +
  14173. + # hardcode_minus_L: Not really in the search PATH,
  14174. + # but as the default location of the library.
  14175. + hardcode_minus_L=yes
  14176. + ;;
  14177. + esac
  14178. + fi
  14179. + ;;
  14180. +
  14181. + irix5* | irix6* | nonstopux*)
  14182. + if test "$GCC" = yes; then
  14183. + 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'
  14184. + # Try to use the -exported_symbol ld option, if it does not
  14185. + # work, assume that -exports_file does not work either and
  14186. + # implicitly export all symbols.
  14187. + save_LDFLAGS="$LDFLAGS"
  14188. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  14189. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14190. +/* end confdefs.h. */
  14191. +int foo(void) {}
  14192. +_ACEOF
  14193. +if ac_fn_c_try_link "$LINENO"; then :
  14194. + 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'
  14195. +
  14196. +fi
  14197. +rm -f core conftest.err conftest.$ac_objext \
  14198. + conftest$ac_exeext conftest.$ac_ext
  14199. + LDFLAGS="$save_LDFLAGS"
  14200. + else
  14201. + 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'
  14202. + 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'
  14203. + fi
  14204. + archive_cmds_need_lc='no'
  14205. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14206. + hardcode_libdir_separator=:
  14207. + inherit_rpath=yes
  14208. + link_all_deplibs=yes
  14209. + ;;
  14210. +
  14211. + netbsd* | netbsdelf*-gnu)
  14212. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14213. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14214. + else
  14215. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14216. + fi
  14217. + hardcode_libdir_flag_spec='-R$libdir'
  14218. + hardcode_direct=yes
  14219. + hardcode_shlibpath_var=no
  14220. + ;;
  14221. +
  14222. + newsos6)
  14223. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14224. + hardcode_direct=yes
  14225. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14226. + hardcode_libdir_separator=:
  14227. + hardcode_shlibpath_var=no
  14228. + ;;
  14229. +
  14230. + *nto* | *qnx*)
  14231. + ;;
  14232. +
  14233. + openbsd*)
  14234. + if test -f /usr/libexec/ld.so; then
  14235. + hardcode_direct=yes
  14236. + hardcode_shlibpath_var=no
  14237. + hardcode_direct_absolute=yes
  14238. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14239. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14240. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14241. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14242. + export_dynamic_flag_spec='${wl}-E'
  14243. + else
  14244. + case $host_os in
  14245. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14246. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14247. + hardcode_libdir_flag_spec='-R$libdir'
  14248. + ;;
  14249. + *)
  14250. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14251. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14252. + ;;
  14253. + esac
  14254. + fi
  14255. + else
  14256. + ld_shlibs=no
  14257. + fi
  14258. + ;;
  14259. +
  14260. + os2*)
  14261. + hardcode_libdir_flag_spec='-L$libdir'
  14262. + hardcode_minus_L=yes
  14263. + allow_undefined_flag=unsupported
  14264. + 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'
  14265. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14266. + ;;
  14267. +
  14268. + osf3*)
  14269. + if test "$GCC" = yes; then
  14270. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14271. + 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'
  14272. + else
  14273. + allow_undefined_flag=' -expect_unresolved \*'
  14274. + 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'
  14275. + fi
  14276. + archive_cmds_need_lc='no'
  14277. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14278. + hardcode_libdir_separator=:
  14279. + ;;
  14280. +
  14281. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  14282. + if test "$GCC" = yes; then
  14283. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14284. + 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'
  14285. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14286. + else
  14287. + allow_undefined_flag=' -expect_unresolved \*'
  14288. + 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'
  14289. + 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~
  14290. + $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'
  14291. +
  14292. + # Both c and cxx compiler support -rpath directly
  14293. + hardcode_libdir_flag_spec='-rpath $libdir'
  14294. + fi
  14295. + archive_cmds_need_lc='no'
  14296. + hardcode_libdir_separator=:
  14297. + ;;
  14298. +
  14299. + solaris*)
  14300. + no_undefined_flag=' -z defs'
  14301. + if test "$GCC" = yes; then
  14302. + wlarc='${wl}'
  14303. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14304. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14305. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  14306. + else
  14307. + case `$CC -V 2>&1` in
  14308. + *"Compilers 5.0"*)
  14309. + wlarc=''
  14310. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14311. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14312. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  14313. + ;;
  14314. + *)
  14315. + wlarc='${wl}'
  14316. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14317. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14318. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  14319. + ;;
  14320. + esac
  14321. + fi
  14322. + hardcode_libdir_flag_spec='-R$libdir'
  14323. + hardcode_shlibpath_var=no
  14324. + case $host_os in
  14325. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  14326. + *)
  14327. + # The compiler driver will combine and reorder linker options,
  14328. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  14329. + # but is careful enough not to reorder.
  14330. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  14331. + if test "$GCC" = yes; then
  14332. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14333. + else
  14334. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  14335. + fi
  14336. + ;;
  14337. + esac
  14338. + link_all_deplibs=yes
  14339. + ;;
  14340. +
  14341. + sunos4*)
  14342. + if test "x$host_vendor" = xsequent; then
  14343. + # Use $CC to link under sequent, because it throws in some extra .o
  14344. + # files that make .init and .fini sections work.
  14345. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14346. + else
  14347. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14348. + fi
  14349. + hardcode_libdir_flag_spec='-L$libdir'
  14350. + hardcode_direct=yes
  14351. + hardcode_minus_L=yes
  14352. + hardcode_shlibpath_var=no
  14353. + ;;
  14354. +
  14355. + sysv4)
  14356. + case $host_vendor in
  14357. + sni)
  14358. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14359. + hardcode_direct=yes # is this really true???
  14360. + ;;
  14361. + siemens)
  14362. + ## LD is ld it makes a PLAMLIB
  14363. + ## CC just makes a GrossModule.
  14364. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14365. + reload_cmds='$CC -r -o $output$reload_objs'
  14366. + hardcode_direct=no
  14367. + ;;
  14368. + motorola)
  14369. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14370. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  14371. + ;;
  14372. + esac
  14373. + runpath_var='LD_RUN_PATH'
  14374. + hardcode_shlibpath_var=no
  14375. + ;;
  14376. +
  14377. + sysv4.3*)
  14378. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14379. + hardcode_shlibpath_var=no
  14380. + export_dynamic_flag_spec='-Bexport'
  14381. + ;;
  14382. +
  14383. + sysv4*MP*)
  14384. + if test -d /usr/nec; then
  14385. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14386. + hardcode_shlibpath_var=no
  14387. + runpath_var=LD_RUN_PATH
  14388. + hardcode_runpath_var=yes
  14389. + ld_shlibs=yes
  14390. + fi
  14391. + ;;
  14392. +
  14393. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14394. + no_undefined_flag='${wl}-z,text'
  14395. + archive_cmds_need_lc=no
  14396. + hardcode_shlibpath_var=no
  14397. + runpath_var='LD_RUN_PATH'
  14398. +
  14399. + if test "$GCC" = yes; then
  14400. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14401. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14402. + else
  14403. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14404. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14405. + fi
  14406. + ;;
  14407. +
  14408. + sysv5* | sco3.2v5* | sco5v6*)
  14409. + # Note: We can NOT use -z defs as we might desire, because we do not
  14410. + # link with -lc, and that would cause any symbols used from libc to
  14411. + # always be unresolved, which means just about no library would
  14412. + # ever link correctly. If we're not using GNU ld we use -z text
  14413. + # though, which does catch some bad symbols but isn't as heavy-handed
  14414. + # as -z defs.
  14415. + no_undefined_flag='${wl}-z,text'
  14416. + allow_undefined_flag='${wl}-z,nodefs'
  14417. + archive_cmds_need_lc=no
  14418. + hardcode_shlibpath_var=no
  14419. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  14420. + hardcode_libdir_separator=':'
  14421. + link_all_deplibs=yes
  14422. + export_dynamic_flag_spec='${wl}-Bexport'
  14423. + runpath_var='LD_RUN_PATH'
  14424. +
  14425. + if test "$GCC" = yes; then
  14426. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14427. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14428. + else
  14429. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14430. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14431. + fi
  14432. + ;;
  14433. +
  14434. + uts4*)
  14435. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14436. + hardcode_libdir_flag_spec='-L$libdir'
  14437. + hardcode_shlibpath_var=no
  14438. + ;;
  14439. +
  14440. + *)
  14441. + ld_shlibs=no
  14442. + ;;
  14443. + esac
  14444. +
  14445. + if test x$host_vendor = xsni; then
  14446. + case $host in
  14447. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14448. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  14449. + ;;
  14450. + esac
  14451. + fi
  14452. + fi
  14453. +
  14454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  14455. +$as_echo "$ld_shlibs" >&6; }
  14456. +test "$ld_shlibs" = no && can_build_shared=no
  14457. +
  14458. +with_gnu_ld=$with_gnu_ld
  14459. +
  14460. +
  14461. +
  14462. +
  14463. +
  14464. +
  14465. +
  14466. +
  14467. +
  14468. +
  14469. +
  14470. +
  14471. +
  14472. +
  14473. +
  14474. +#
  14475. +# Do we need to explicitly link libc?
  14476. +#
  14477. +case "x$archive_cmds_need_lc" in
  14478. +x|xyes)
  14479. + # Assume -lc should be added
  14480. + archive_cmds_need_lc=yes
  14481. +
  14482. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  14483. + case $archive_cmds in
  14484. + *'~'*)
  14485. + # FIXME: we may have to deal with multi-command sequences.
  14486. + ;;
  14487. + '$CC '*)
  14488. + # Test whether the compiler implicitly links with -lc since on some
  14489. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14490. + # to ld, don't add -lc before -lgcc.
  14491. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14492. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14493. + $RM conftest*
  14494. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14495. +
  14496. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14497. + (eval $ac_compile) 2>&5
  14498. + ac_status=$?
  14499. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14500. + test $ac_status = 0; } 2>conftest.err; then
  14501. + soname=conftest
  14502. + lib=conftest
  14503. + libobjs=conftest.$ac_objext
  14504. + deplibs=
  14505. + wl=$lt_prog_compiler_wl
  14506. + pic_flag=$lt_prog_compiler_pic
  14507. + compiler_flags=-v
  14508. + linker_flags=-v
  14509. + verstring=
  14510. + output_objdir=.
  14511. + libname=conftest
  14512. + lt_save_allow_undefined_flag=$allow_undefined_flag
  14513. + allow_undefined_flag=
  14514. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14515. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14516. + ac_status=$?
  14517. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14518. + test $ac_status = 0; }
  14519. + then
  14520. + archive_cmds_need_lc=no
  14521. + else
  14522. + archive_cmds_need_lc=yes
  14523. + fi
  14524. + allow_undefined_flag=$lt_save_allow_undefined_flag
  14525. + else
  14526. + cat conftest.err 1>&5
  14527. + fi
  14528. + $RM conftest*
  14529. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  14530. +$as_echo "$archive_cmds_need_lc" >&6; }
  14531. + ;;
  14532. + esac
  14533. + fi
  14534. + ;;
  14535. +esac
  14536. +
  14537. +
  14538. +
  14539. +
  14540. +
  14541. +
  14542. +
  14543. +
  14544. +
  14545. +
  14546. +
  14547. +
  14548. +
  14549. +
  14550. +
  14551. +
  14552. +
  14553. +
  14554. +
  14555. +
  14556. +
  14557. +
  14558. +
  14559. +
  14560. +
  14561. +
  14562. +
  14563. +
  14564. +
  14565. +
  14566. +
  14567. +
  14568. +
  14569. +
  14570. +
  14571. +
  14572. +
  14573. +
  14574. +
  14575. +
  14576. +
  14577. +
  14578. +
  14579. +
  14580. +
  14581. +
  14582. +
  14583. +
  14584. +
  14585. +
  14586. +
  14587. +
  14588. +
  14589. +
  14590. +
  14591. +
  14592. +
  14593. +
  14594. +
  14595. +
  14596. +
  14597. +
  14598. +
  14599. +
  14600. +
  14601. +
  14602. +
  14603. +
  14604. +
  14605. +
  14606. +
  14607. +
  14608. +
  14609. +
  14610. +
  14611. +
  14612. +
  14613. +
  14614. +
  14615. +
  14616. +
  14617. +
  14618. +
  14619. +
  14620. +
  14621. +
  14622. +
  14623. +
  14624. +
  14625. +
  14626. +
  14627. +
  14628. +
  14629. +
  14630. +
  14631. +
  14632. +
  14633. +
  14634. +
  14635. +
  14636. +
  14637. +
  14638. +
  14639. +
  14640. +
  14641. +
  14642. +
  14643. +
  14644. +
  14645. +
  14646. +
  14647. +
  14648. +
  14649. +
  14650. +
  14651. +
  14652. +
  14653. +
  14654. +
  14655. +
  14656. +
  14657. +
  14658. +
  14659. +
  14660. +
  14661. +
  14662. +
  14663. +
  14664. +
  14665. +
  14666. +
  14667. +
  14668. +
  14669. +
  14670. +
  14671. +
  14672. +
  14673. +
  14674. +
  14675. +
  14676. +
  14677. +
  14678. +
  14679. +
  14680. +
  14681. +
  14682. +
  14683. +
  14684. +
  14685. +
  14686. +
  14687. +
  14688. +
  14689. +
  14690. +
  14691. +
  14692. +
  14693. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14694. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  14695. +
  14696. +if test "$GCC" = yes; then
  14697. + case $host_os in
  14698. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  14699. + *) lt_awk_arg="/^libraries:/" ;;
  14700. + esac
  14701. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14702. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  14703. + # if the path contains ";" then we assume it to be the separator
  14704. + # otherwise default to the standard path separator (i.e. ":") - it is
  14705. + # assumed that no part of a normal pathname contains ";" but that should
  14706. + # okay in the real world where ";" in dirpaths is itself problematic.
  14707. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  14708. + else
  14709. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14710. + fi
  14711. + # Ok, now we have the path, separated by spaces, we can step through it
  14712. + # and add multilib dir if necessary.
  14713. + lt_tmp_lt_search_path_spec=
  14714. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14715. + for lt_sys_path in $lt_search_path_spec; do
  14716. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  14717. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  14718. + else
  14719. + test -d "$lt_sys_path" && \
  14720. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14721. + fi
  14722. + done
  14723. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  14724. +BEGIN {RS=" "; FS="/|\n";} {
  14725. + lt_foo="";
  14726. + lt_count=0;
  14727. + for (lt_i = NF; lt_i > 0; lt_i--) {
  14728. + if ($lt_i != "" && $lt_i != ".") {
  14729. + if ($lt_i == "..") {
  14730. + lt_count++;
  14731. + } else {
  14732. + if (lt_count == 0) {
  14733. + lt_foo="/" $lt_i lt_foo;
  14734. + } else {
  14735. + lt_count--;
  14736. + }
  14737. + }
  14738. + }
  14739. + }
  14740. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  14741. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14742. +}'`
  14743. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  14744. +else
  14745. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14746. +fi
  14747. +library_names_spec=
  14748. +libname_spec='lib$name'
  14749. +soname_spec=
  14750. +shrext_cmds=".so"
  14751. +postinstall_cmds=
  14752. +postuninstall_cmds=
  14753. +finish_cmds=
  14754. +finish_eval=
  14755. +shlibpath_var=
  14756. +shlibpath_overrides_runpath=unknown
  14757. +version_type=none
  14758. +dynamic_linker="$host_os ld.so"
  14759. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14760. +need_lib_prefix=unknown
  14761. +hardcode_into_libs=no
  14762. +
  14763. +# when you set need_version to no, make sure it does not cause -set_version
  14764. +# flags to be left without arguments
  14765. +need_version=unknown
  14766. +
  14767. +case $host_os in
  14768. +aix3*)
  14769. + version_type=linux
  14770. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14771. + shlibpath_var=LIBPATH
  14772. +
  14773. + # AIX 3 has no versioning support, so we append a major version to the name.
  14774. + soname_spec='${libname}${release}${shared_ext}$major'
  14775. + ;;
  14776. +
  14777. +aix[4-9]*)
  14778. + version_type=linux
  14779. + need_lib_prefix=no
  14780. + need_version=no
  14781. + hardcode_into_libs=yes
  14782. + if test "$host_cpu" = ia64; then
  14783. + # AIX 5 supports IA64
  14784. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14785. + shlibpath_var=LD_LIBRARY_PATH
  14786. + else
  14787. + # With GCC up to 2.95.x, collect2 would create an import file
  14788. + # for dependence libraries. The import file would start with
  14789. + # the line `#! .'. This would cause the generated library to
  14790. + # depend on `.', always an invalid library. This was fixed in
  14791. + # development snapshots of GCC prior to 3.0.
  14792. + case $host_os in
  14793. + aix4 | aix4.[01] | aix4.[01].*)
  14794. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14795. + echo ' yes '
  14796. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14797. + :
  14798. + else
  14799. + can_build_shared=no
  14800. + fi
  14801. + ;;
  14802. + esac
  14803. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14804. + # soname into executable. Probably we can add versioning support to
  14805. + # collect2, so additional links can be useful in future.
  14806. + if test "$aix_use_runtimelinking" = yes; then
  14807. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14808. + # instead of lib<name>.a to let people know that these are not
  14809. + # typical AIX shared libraries.
  14810. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14811. + else
  14812. + # We preserve .a as extension for shared libraries through AIX4.2
  14813. + # and later when we are not doing run time linking.
  14814. + library_names_spec='${libname}${release}.a $libname.a'
  14815. + soname_spec='${libname}${release}${shared_ext}$major'
  14816. + fi
  14817. + shlibpath_var=LIBPATH
  14818. + fi
  14819. + ;;
  14820. +
  14821. +amigaos*)
  14822. + case $host_cpu in
  14823. + powerpc)
  14824. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  14825. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14826. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14827. + ;;
  14828. + m68k)
  14829. + library_names_spec='$libname.ixlibrary $libname.a'
  14830. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14831. + 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'
  14832. + ;;
  14833. + esac
  14834. + ;;
  14835. +
  14836. +beos*)
  14837. + library_names_spec='${libname}${shared_ext}'
  14838. + dynamic_linker="$host_os ld.so"
  14839. + shlibpath_var=LIBRARY_PATH
  14840. + ;;
  14841. +
  14842. +bsdi[45]*)
  14843. + version_type=linux
  14844. + need_version=no
  14845. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14846. + soname_spec='${libname}${release}${shared_ext}$major'
  14847. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14848. + shlibpath_var=LD_LIBRARY_PATH
  14849. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14850. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14851. + # the default ld.so.conf also contains /usr/contrib/lib and
  14852. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14853. + # libtool to hard-code these into programs
  14854. + ;;
  14855. +
  14856. +cygwin* | mingw* | pw32* | cegcc*)
  14857. + version_type=windows
  14858. + shrext_cmds=".dll"
  14859. + need_version=no
  14860. + need_lib_prefix=no
  14861. +
  14862. + case $GCC,$host_os in
  14863. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  14864. + library_names_spec='$libname.dll.a'
  14865. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14866. + postinstall_cmds='base_file=`basename \${file}`~
  14867. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14868. + dldir=$destdir/`dirname \$dlpath`~
  14869. + test -d \$dldir || mkdir -p \$dldir~
  14870. + $install_prog $dir/$dlname \$dldir/$dlname~
  14871. + chmod a+x \$dldir/$dlname~
  14872. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14873. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14874. + fi'
  14875. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14876. + dlpath=$dir/\$dldll~
  14877. + $RM \$dlpath'
  14878. + shlibpath_overrides_runpath=yes
  14879. +
  14880. + case $host_os in
  14881. + cygwin*)
  14882. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14883. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14884. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14885. + ;;
  14886. + mingw* | cegcc*)
  14887. + # MinGW DLLs use traditional 'lib' prefix
  14888. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14889. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14890. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14891. + # It is most probably a Windows format PATH printed by
  14892. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14893. + # path with ; separators, and with drive letters. We can handle the
  14894. + # drive letters (cygwin fileutils understands them), so leave them,
  14895. + # especially as we might pass files found there to a mingw objdump,
  14896. + # which wouldn't understand a cygwinified path. Ahh.
  14897. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14898. + else
  14899. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14900. + fi
  14901. + ;;
  14902. + pw32*)
  14903. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  14904. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14905. + ;;
  14906. + esac
  14907. + ;;
  14908. +
  14909. + *)
  14910. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14911. + ;;
  14912. + esac
  14913. + dynamic_linker='Win32 ld.exe'
  14914. + # FIXME: first we should search . and the directory the executable is in
  14915. + shlibpath_var=PATH
  14916. + ;;
  14917. +
  14918. +darwin* | rhapsody*)
  14919. + dynamic_linker="$host_os dyld"
  14920. + version_type=darwin
  14921. + need_lib_prefix=no
  14922. + need_version=no
  14923. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14924. + soname_spec='${libname}${release}${major}$shared_ext'
  14925. + shlibpath_overrides_runpath=yes
  14926. + shlibpath_var=DYLD_LIBRARY_PATH
  14927. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14928. +
  14929. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14930. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14931. + ;;
  14932. +
  14933. +dgux*)
  14934. + version_type=linux
  14935. + need_lib_prefix=no
  14936. + need_version=no
  14937. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14938. + soname_spec='${libname}${release}${shared_ext}$major'
  14939. + shlibpath_var=LD_LIBRARY_PATH
  14940. + ;;
  14941. +
  14942. +freebsd1*)
  14943. + dynamic_linker=no
  14944. + ;;
  14945. +
  14946. +freebsd* | dragonfly*)
  14947. + # DragonFly does not have aout. When/if they implement a new
  14948. + # versioning mechanism, adjust this.
  14949. + if test -x /usr/bin/objformat; then
  14950. + objformat=`/usr/bin/objformat`
  14951. + else
  14952. + case $host_os in
  14953. + freebsd[123]*) objformat=aout ;;
  14954. + *) objformat=elf ;;
  14955. + esac
  14956. + fi
  14957. + version_type=freebsd-$objformat
  14958. + case $version_type in
  14959. + freebsd-elf*)
  14960. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14961. + need_version=no
  14962. + need_lib_prefix=no
  14963. + ;;
  14964. + freebsd-*)
  14965. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14966. + need_version=yes
  14967. + ;;
  14968. + esac
  14969. + shlibpath_var=LD_LIBRARY_PATH
  14970. + case $host_os in
  14971. + freebsd2*)
  14972. + shlibpath_overrides_runpath=yes
  14973. + ;;
  14974. + freebsd3.[01]* | freebsdelf3.[01]*)
  14975. + shlibpath_overrides_runpath=yes
  14976. + hardcode_into_libs=yes
  14977. + ;;
  14978. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14979. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14980. + shlibpath_overrides_runpath=no
  14981. + hardcode_into_libs=yes
  14982. + ;;
  14983. + *) # from 4.6 on, and DragonFly
  14984. + shlibpath_overrides_runpath=yes
  14985. + hardcode_into_libs=yes
  14986. + ;;
  14987. + esac
  14988. + ;;
  14989. +
  14990. +gnu*)
  14991. + version_type=linux
  14992. + need_lib_prefix=no
  14993. + need_version=no
  14994. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14995. + soname_spec='${libname}${release}${shared_ext}$major'
  14996. + shlibpath_var=LD_LIBRARY_PATH
  14997. + hardcode_into_libs=yes
  14998. + ;;
  14999. +
  15000. +hpux9* | hpux10* | hpux11*)
  15001. + # Give a soname corresponding to the major version so that dld.sl refuses to
  15002. + # link against other versions.
  15003. + version_type=sunos
  15004. + need_lib_prefix=no
  15005. + need_version=no
  15006. + case $host_cpu in
  15007. + ia64*)
  15008. + shrext_cmds='.so'
  15009. + hardcode_into_libs=yes
  15010. + dynamic_linker="$host_os dld.so"
  15011. + shlibpath_var=LD_LIBRARY_PATH
  15012. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15013. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15014. + soname_spec='${libname}${release}${shared_ext}$major'
  15015. + if test "X$HPUX_IA64_MODE" = X32; then
  15016. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15017. + else
  15018. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15019. + fi
  15020. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15021. + ;;
  15022. + hppa*64*)
  15023. + shrext_cmds='.sl'
  15024. + hardcode_into_libs=yes
  15025. + dynamic_linker="$host_os dld.sl"
  15026. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15027. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15028. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15029. + soname_spec='${libname}${release}${shared_ext}$major'
  15030. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15031. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15032. + ;;
  15033. + *)
  15034. + shrext_cmds='.sl'
  15035. + dynamic_linker="$host_os dld.sl"
  15036. + shlibpath_var=SHLIB_PATH
  15037. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15038. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15039. + soname_spec='${libname}${release}${shared_ext}$major'
  15040. + ;;
  15041. + esac
  15042. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15043. + postinstall_cmds='chmod 555 $lib'
  15044. + ;;
  15045. +
  15046. +interix[3-9]*)
  15047. + version_type=linux
  15048. + need_lib_prefix=no
  15049. + need_version=no
  15050. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15051. + soname_spec='${libname}${release}${shared_ext}$major'
  15052. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15053. + shlibpath_var=LD_LIBRARY_PATH
  15054. + shlibpath_overrides_runpath=no
  15055. + hardcode_into_libs=yes
  15056. + ;;
  15057. +
  15058. +irix5* | irix6* | nonstopux*)
  15059. + case $host_os in
  15060. + nonstopux*) version_type=nonstopux ;;
  15061. + *)
  15062. + if test "$lt_cv_prog_gnu_ld" = yes; then
  15063. + version_type=linux
  15064. + else
  15065. + version_type=irix
  15066. + fi ;;
  15067. + esac
  15068. + need_lib_prefix=no
  15069. + need_version=no
  15070. + soname_spec='${libname}${release}${shared_ext}$major'
  15071. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15072. + case $host_os in
  15073. + irix5* | nonstopux*)
  15074. + libsuff= shlibsuff=
  15075. + ;;
  15076. + *)
  15077. + case $LD in # libtool.m4 will add one of these switches to LD
  15078. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15079. + libsuff= shlibsuff= libmagic=32-bit;;
  15080. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15081. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  15082. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15083. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15084. + *) libsuff= shlibsuff= libmagic=never-match;;
  15085. + esac
  15086. + ;;
  15087. + esac
  15088. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15089. + shlibpath_overrides_runpath=no
  15090. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15091. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15092. + hardcode_into_libs=yes
  15093. + ;;
  15094. +
  15095. +# No shared lib support for Linux oldld, aout, or coff.
  15096. +linux*oldld* | linux*aout* | linux*coff*)
  15097. + dynamic_linker=no
  15098. + ;;
  15099. +
  15100. +# This must be Linux ELF.
  15101. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15102. + version_type=linux
  15103. + need_lib_prefix=no
  15104. + need_version=no
  15105. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15106. + soname_spec='${libname}${release}${shared_ext}$major'
  15107. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15108. + shlibpath_var=LD_LIBRARY_PATH
  15109. + shlibpath_overrides_runpath=no
  15110. + # Some binutils ld are patched to set DT_RUNPATH
  15111. + save_LDFLAGS=$LDFLAGS
  15112. + save_libdir=$libdir
  15113. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  15114. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  15115. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15116. +/* end confdefs.h. */
  15117. +
  15118. +int
  15119. +main ()
  15120. +{
  15121. +
  15122. + ;
  15123. + return 0;
  15124. +}
  15125. +_ACEOF
  15126. +if ac_fn_c_try_link "$LINENO"; then :
  15127. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15128. + shlibpath_overrides_runpath=yes
  15129. +fi
  15130. +fi
  15131. +rm -f core conftest.err conftest.$ac_objext \
  15132. + conftest$ac_exeext conftest.$ac_ext
  15133. + LDFLAGS=$save_LDFLAGS
  15134. + libdir=$save_libdir
  15135. +
  15136. + # This implies no fast_install, which is unacceptable.
  15137. + # Some rework will be needed to allow for fast_install
  15138. + # before this can be enabled.
  15139. + hardcode_into_libs=yes
  15140. +
  15141. + # Append ld.so.conf contents to the search path
  15142. + if test -f /etc/ld.so.conf; then
  15143. + 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' ' '`
  15144. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15145. + fi
  15146. +
  15147. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  15148. + # powerpc, because MkLinux only supported shared libraries with the
  15149. + # GNU dynamic linker. Since this was broken with cross compilers,
  15150. + # most powerpc-linux boxes support dynamic linking these days and
  15151. + # people can always --disable-shared, the test was removed, and we
  15152. + # assume the GNU/Linux dynamic linker is in use.
  15153. + dynamic_linker='GNU/Linux ld.so'
  15154. + ;;
  15155. +
  15156. +netbsdelf*-gnu)
  15157. + version_type=linux
  15158. + need_lib_prefix=no
  15159. + need_version=no
  15160. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15161. + soname_spec='${libname}${release}${shared_ext}$major'
  15162. + shlibpath_var=LD_LIBRARY_PATH
  15163. + shlibpath_overrides_runpath=no
  15164. + hardcode_into_libs=yes
  15165. + dynamic_linker='NetBSD ld.elf_so'
  15166. + ;;
  15167. +
  15168. +netbsd*)
  15169. + version_type=sunos
  15170. + need_lib_prefix=no
  15171. + need_version=no
  15172. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15173. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15174. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15175. + dynamic_linker='NetBSD (a.out) ld.so'
  15176. + else
  15177. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15178. + soname_spec='${libname}${release}${shared_ext}$major'
  15179. + dynamic_linker='NetBSD ld.elf_so'
  15180. + fi
  15181. + shlibpath_var=LD_LIBRARY_PATH
  15182. + shlibpath_overrides_runpath=yes
  15183. + hardcode_into_libs=yes
  15184. + ;;
  15185. +
  15186. +newsos6)
  15187. + version_type=linux
  15188. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15189. + shlibpath_var=LD_LIBRARY_PATH
  15190. + shlibpath_overrides_runpath=yes
  15191. + ;;
  15192. +
  15193. +*nto* | *qnx*)
  15194. + version_type=qnx
  15195. + need_lib_prefix=no
  15196. + need_version=no
  15197. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15198. + soname_spec='${libname}${release}${shared_ext}$major'
  15199. + shlibpath_var=LD_LIBRARY_PATH
  15200. + shlibpath_overrides_runpath=no
  15201. + hardcode_into_libs=yes
  15202. + dynamic_linker='ldqnx.so'
  15203. + ;;
  15204. +
  15205. +openbsd*)
  15206. + version_type=sunos
  15207. + sys_lib_dlsearch_path_spec="/usr/lib"
  15208. + need_lib_prefix=no
  15209. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15210. + case $host_os in
  15211. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15212. + *) need_version=no ;;
  15213. + esac
  15214. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15215. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15216. + shlibpath_var=LD_LIBRARY_PATH
  15217. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15218. + case $host_os in
  15219. + openbsd2.[89] | openbsd2.[89].*)
  15220. + shlibpath_overrides_runpath=no
  15221. + ;;
  15222. + *)
  15223. + shlibpath_overrides_runpath=yes
  15224. + ;;
  15225. + esac
  15226. + else
  15227. + shlibpath_overrides_runpath=yes
  15228. + fi
  15229. + ;;
  15230. +
  15231. +os2*)
  15232. + libname_spec='$name'
  15233. + shrext_cmds=".dll"
  15234. + need_lib_prefix=no
  15235. + library_names_spec='$libname${shared_ext} $libname.a'
  15236. + dynamic_linker='OS/2 ld.exe'
  15237. + shlibpath_var=LIBPATH
  15238. + ;;
  15239. +
  15240. +osf3* | osf4* | osf5*)
  15241. + version_type=osf
  15242. + need_lib_prefix=no
  15243. + need_version=no
  15244. + soname_spec='${libname}${release}${shared_ext}$major'
  15245. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15246. + shlibpath_var=LD_LIBRARY_PATH
  15247. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15248. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15249. + ;;
  15250. +
  15251. +rdos*)
  15252. + dynamic_linker=no
  15253. + ;;
  15254. +
  15255. +solaris*)
  15256. + version_type=linux
  15257. + need_lib_prefix=no
  15258. + need_version=no
  15259. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15260. + soname_spec='${libname}${release}${shared_ext}$major'
  15261. + shlibpath_var=LD_LIBRARY_PATH
  15262. + shlibpath_overrides_runpath=yes
  15263. + hardcode_into_libs=yes
  15264. + # ldd complains unless libraries are executable
  15265. + postinstall_cmds='chmod +x $lib'
  15266. + ;;
  15267. +
  15268. +sunos4*)
  15269. + version_type=sunos
  15270. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15271. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15272. + shlibpath_var=LD_LIBRARY_PATH
  15273. + shlibpath_overrides_runpath=yes
  15274. + if test "$with_gnu_ld" = yes; then
  15275. + need_lib_prefix=no
  15276. + fi
  15277. + need_version=yes
  15278. + ;;
  15279. +
  15280. +sysv4 | sysv4.3*)
  15281. + version_type=linux
  15282. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15283. + soname_spec='${libname}${release}${shared_ext}$major'
  15284. + shlibpath_var=LD_LIBRARY_PATH
  15285. + case $host_vendor in
  15286. + sni)
  15287. + shlibpath_overrides_runpath=no
  15288. + need_lib_prefix=no
  15289. + runpath_var=LD_RUN_PATH
  15290. + ;;
  15291. + siemens)
  15292. + need_lib_prefix=no
  15293. + ;;
  15294. + motorola)
  15295. + need_lib_prefix=no
  15296. + need_version=no
  15297. + shlibpath_overrides_runpath=no
  15298. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15299. + ;;
  15300. + esac
  15301. + ;;
  15302. +
  15303. +sysv4*MP*)
  15304. + if test -d /usr/nec ;then
  15305. + version_type=linux
  15306. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15307. + soname_spec='$libname${shared_ext}.$major'
  15308. + shlibpath_var=LD_LIBRARY_PATH
  15309. + fi
  15310. + ;;
  15311. +
  15312. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15313. + version_type=freebsd-elf
  15314. + need_lib_prefix=no
  15315. + need_version=no
  15316. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15317. + soname_spec='${libname}${release}${shared_ext}$major'
  15318. + shlibpath_var=LD_LIBRARY_PATH
  15319. + shlibpath_overrides_runpath=yes
  15320. + hardcode_into_libs=yes
  15321. + if test "$with_gnu_ld" = yes; then
  15322. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15323. + else
  15324. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15325. + case $host_os in
  15326. + sco3.2v5*)
  15327. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15328. + ;;
  15329. + esac
  15330. + fi
  15331. + sys_lib_dlsearch_path_spec='/usr/lib'
  15332. + ;;
  15333. +
  15334. +tpf*)
  15335. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15336. + version_type=linux
  15337. + need_lib_prefix=no
  15338. + need_version=no
  15339. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15340. + shlibpath_var=LD_LIBRARY_PATH
  15341. + shlibpath_overrides_runpath=no
  15342. + hardcode_into_libs=yes
  15343. + ;;
  15344. +
  15345. +uts4*)
  15346. + version_type=linux
  15347. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15348. + soname_spec='${libname}${release}${shared_ext}$major'
  15349. + shlibpath_var=LD_LIBRARY_PATH
  15350. + ;;
  15351. +
  15352. +*)
  15353. + dynamic_linker=no
  15354. + ;;
  15355. +esac
  15356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15357. +$as_echo "$dynamic_linker" >&6; }
  15358. +test "$dynamic_linker" = no && can_build_shared=no
  15359. +
  15360. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15361. +if test "$GCC" = yes; then
  15362. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15363. +fi
  15364. +
  15365. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  15366. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  15367. +fi
  15368. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  15369. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  15370. +fi
  15371. +
  15372. +
  15373. +
  15374. +
  15375. +
  15376. +
  15377. +
  15378. +
  15379. +
  15380. +
  15381. +
  15382. +
  15383. +
  15384. +
  15385. +
  15386. +
  15387. +
  15388. +
  15389. +
  15390. +
  15391. +
  15392. +
  15393. +
  15394. +
  15395. +
  15396. +
  15397. +
  15398. +
  15399. +
  15400. +
  15401. +
  15402. +
  15403. +
  15404. +
  15405. +
  15406. +
  15407. +
  15408. +
  15409. +
  15410. +
  15411. +
  15412. +
  15413. +
  15414. +
  15415. +
  15416. +
  15417. +
  15418. +
  15419. +
  15420. +
  15421. +
  15422. +
  15423. +
  15424. +
  15425. +
  15426. +
  15427. +
  15428. +
  15429. +
  15430. +
  15431. +
  15432. +
  15433. +
  15434. +
  15435. +
  15436. +
  15437. +
  15438. +
  15439. +
  15440. +
  15441. +
  15442. +
  15443. +
  15444. +
  15445. +
  15446. +
  15447. +
  15448. +
  15449. +
  15450. +
  15451. +
  15452. +
  15453. +
  15454. +
  15455. +
  15456. +
  15457. +
  15458. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15459. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15460. +hardcode_action=
  15461. +if test -n "$hardcode_libdir_flag_spec" ||
  15462. + test -n "$runpath_var" ||
  15463. + test "X$hardcode_automatic" = "Xyes" ; then
  15464. +
  15465. + # We can hardcode non-existent directories.
  15466. + if test "$hardcode_direct" != no &&
  15467. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15468. + # have to relink, otherwise we might link with an installed library
  15469. + # when we should be linking with a yet-to-be-installed one
  15470. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  15471. + test "$hardcode_minus_L" != no; then
  15472. + # Linking always hardcodes the temporary library directory.
  15473. + hardcode_action=relink
  15474. + else
  15475. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15476. + hardcode_action=immediate
  15477. + fi
  15478. +else
  15479. + # We cannot hardcode anything, or else we can only hardcode existing
  15480. + # directories.
  15481. + hardcode_action=unsupported
  15482. +fi
  15483. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  15484. +$as_echo "$hardcode_action" >&6; }
  15485. +
  15486. +if test "$hardcode_action" = relink ||
  15487. + test "$inherit_rpath" = yes; then
  15488. + # Fast installation is not supported
  15489. + enable_fast_install=no
  15490. +elif test "$shlibpath_overrides_runpath" = yes ||
  15491. + test "$enable_shared" = no; then
  15492. + # Fast installation is not necessary
  15493. + enable_fast_install=needless
  15494. +fi
  15495. +
  15496. +
  15497. +
  15498. +
  15499. +
  15500. +
  15501. + if test "x$enable_dlopen" != xyes; then
  15502. + enable_dlopen=unknown
  15503. + enable_dlopen_self=unknown
  15504. + enable_dlopen_self_static=unknown
  15505. +else
  15506. + lt_cv_dlopen=no
  15507. + lt_cv_dlopen_libs=
  15508. +
  15509. + case $host_os in
  15510. + beos*)
  15511. + lt_cv_dlopen="load_add_on"
  15512. + lt_cv_dlopen_libs=
  15513. + lt_cv_dlopen_self=yes
  15514. + ;;
  15515. +
  15516. + mingw* | pw32* | cegcc*)
  15517. + lt_cv_dlopen="LoadLibrary"
  15518. + lt_cv_dlopen_libs=
  15519. + ;;
  15520. +
  15521. + cygwin*)
  15522. + lt_cv_dlopen="dlopen"
  15523. + lt_cv_dlopen_libs=
  15524. + ;;
  15525. +
  15526. + darwin*)
  15527. + # if libdl is installed we need to link against it
  15528. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15529. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  15530. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  15531. + $as_echo_n "(cached) " >&6
  15532. +else
  15533. + ac_check_lib_save_LIBS=$LIBS
  15534. +LIBS="-ldl $LIBS"
  15535. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15536. +/* end confdefs.h. */
  15537. +
  15538. +/* Override any GCC internal prototype to avoid an error.
  15539. + Use char because int might match the return type of a GCC
  15540. + builtin and then its argument prototype would still apply. */
  15541. +#ifdef __cplusplus
  15542. +extern "C"
  15543. +#endif
  15544. +char dlopen ();
  15545. +int
  15546. +main ()
  15547. +{
  15548. +return dlopen ();
  15549. + ;
  15550. + return 0;
  15551. +}
  15552. +_ACEOF
  15553. +if ac_fn_c_try_link "$LINENO"; then :
  15554. + ac_cv_lib_dl_dlopen=yes
  15555. +else
  15556. + ac_cv_lib_dl_dlopen=no
  15557. +fi
  15558. +rm -f core conftest.err conftest.$ac_objext \
  15559. + conftest$ac_exeext conftest.$ac_ext
  15560. +LIBS=$ac_check_lib_save_LIBS
  15561. +fi
  15562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15563. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15564. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  15565. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15566. +else
  15567. +
  15568. + lt_cv_dlopen="dyld"
  15569. + lt_cv_dlopen_libs=
  15570. + lt_cv_dlopen_self=yes
  15571. +
  15572. +fi
  15573. +
  15574. + ;;
  15575. +
  15576. + *)
  15577. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15578. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  15579. + lt_cv_dlopen="shl_load"
  15580. +else
  15581. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  15582. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  15583. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  15584. + $as_echo_n "(cached) " >&6
  15585. +else
  15586. + ac_check_lib_save_LIBS=$LIBS
  15587. +LIBS="-ldld $LIBS"
  15588. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15589. +/* end confdefs.h. */
  15590. +
  15591. +/* Override any GCC internal prototype to avoid an error.
  15592. + Use char because int might match the return type of a GCC
  15593. + builtin and then its argument prototype would still apply. */
  15594. +#ifdef __cplusplus
  15595. +extern "C"
  15596. +#endif
  15597. +char shl_load ();
  15598. +int
  15599. +main ()
  15600. +{
  15601. +return shl_load ();
  15602. + ;
  15603. + return 0;
  15604. +}
  15605. +_ACEOF
  15606. +if ac_fn_c_try_link "$LINENO"; then :
  15607. + ac_cv_lib_dld_shl_load=yes
  15608. +else
  15609. + ac_cv_lib_dld_shl_load=no
  15610. +fi
  15611. +rm -f core conftest.err conftest.$ac_objext \
  15612. + conftest$ac_exeext conftest.$ac_ext
  15613. +LIBS=$ac_check_lib_save_LIBS
  15614. +fi
  15615. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15616. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  15617. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  15618. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  15619. +else
  15620. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15621. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  15622. + lt_cv_dlopen="dlopen"
  15623. +else
  15624. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15625. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  15626. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  15627. + $as_echo_n "(cached) " >&6
  15628. +else
  15629. + ac_check_lib_save_LIBS=$LIBS
  15630. +LIBS="-ldl $LIBS"
  15631. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15632. +/* end confdefs.h. */
  15633. +
  15634. +/* Override any GCC internal prototype to avoid an error.
  15635. + Use char because int might match the return type of a GCC
  15636. + builtin and then its argument prototype would still apply. */
  15637. +#ifdef __cplusplus
  15638. +extern "C"
  15639. +#endif
  15640. +char dlopen ();
  15641. +int
  15642. +main ()
  15643. +{
  15644. +return dlopen ();
  15645. + ;
  15646. + return 0;
  15647. +}
  15648. +_ACEOF
  15649. +if ac_fn_c_try_link "$LINENO"; then :
  15650. + ac_cv_lib_dl_dlopen=yes
  15651. +else
  15652. + ac_cv_lib_dl_dlopen=no
  15653. +fi
  15654. +rm -f core conftest.err conftest.$ac_objext \
  15655. + conftest$ac_exeext conftest.$ac_ext
  15656. +LIBS=$ac_check_lib_save_LIBS
  15657. +fi
  15658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15659. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15660. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  15661. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15662. +else
  15663. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  15664. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  15665. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  15666. + $as_echo_n "(cached) " >&6
  15667. +else
  15668. + ac_check_lib_save_LIBS=$LIBS
  15669. +LIBS="-lsvld $LIBS"
  15670. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15671. +/* end confdefs.h. */
  15672. +
  15673. +/* Override any GCC internal prototype to avoid an error.
  15674. + Use char because int might match the return type of a GCC
  15675. + builtin and then its argument prototype would still apply. */
  15676. +#ifdef __cplusplus
  15677. +extern "C"
  15678. +#endif
  15679. +char dlopen ();
  15680. +int
  15681. +main ()
  15682. +{
  15683. +return dlopen ();
  15684. + ;
  15685. + return 0;
  15686. +}
  15687. +_ACEOF
  15688. +if ac_fn_c_try_link "$LINENO"; then :
  15689. + ac_cv_lib_svld_dlopen=yes
  15690. +else
  15691. + ac_cv_lib_svld_dlopen=no
  15692. +fi
  15693. +rm -f core conftest.err conftest.$ac_objext \
  15694. + conftest$ac_exeext conftest.$ac_ext
  15695. +LIBS=$ac_check_lib_save_LIBS
  15696. +fi
  15697. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  15698. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  15699. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  15700. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15701. +else
  15702. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  15703. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  15704. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  15705. + $as_echo_n "(cached) " >&6
  15706. +else
  15707. + ac_check_lib_save_LIBS=$LIBS
  15708. +LIBS="-ldld $LIBS"
  15709. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15710. +/* end confdefs.h. */
  15711. +
  15712. +/* Override any GCC internal prototype to avoid an error.
  15713. + Use char because int might match the return type of a GCC
  15714. + builtin and then its argument prototype would still apply. */
  15715. +#ifdef __cplusplus
  15716. +extern "C"
  15717. +#endif
  15718. +char dld_link ();
  15719. +int
  15720. +main ()
  15721. +{
  15722. +return dld_link ();
  15723. + ;
  15724. + return 0;
  15725. +}
  15726. +_ACEOF
  15727. +if ac_fn_c_try_link "$LINENO"; then :
  15728. + ac_cv_lib_dld_dld_link=yes
  15729. +else
  15730. + ac_cv_lib_dld_dld_link=no
  15731. +fi
  15732. +rm -f core conftest.err conftest.$ac_objext \
  15733. + conftest$ac_exeext conftest.$ac_ext
  15734. +LIBS=$ac_check_lib_save_LIBS
  15735. +fi
  15736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15737. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  15738. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  15739. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  15740. +fi
  15741. +
  15742. +
  15743. +fi
  15744. +
  15745. +
  15746. +fi
  15747. +
  15748. +
  15749. +fi
  15750. +
  15751. +
  15752. +fi
  15753. +
  15754. +
  15755. +fi
  15756. +
  15757. + ;;
  15758. + esac
  15759. +
  15760. + if test "x$lt_cv_dlopen" != xno; then
  15761. + enable_dlopen=yes
  15762. + else
  15763. + enable_dlopen=no
  15764. + fi
  15765. +
  15766. + case $lt_cv_dlopen in
  15767. + dlopen)
  15768. + save_CPPFLAGS="$CPPFLAGS"
  15769. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15770. +
  15771. + save_LDFLAGS="$LDFLAGS"
  15772. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15773. +
  15774. + save_LIBS="$LIBS"
  15775. + LIBS="$lt_cv_dlopen_libs $LIBS"
  15776. +
  15777. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  15778. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  15779. +if test "${lt_cv_dlopen_self+set}" = set; then :
  15780. + $as_echo_n "(cached) " >&6
  15781. +else
  15782. + if test "$cross_compiling" = yes; then :
  15783. + lt_cv_dlopen_self=cross
  15784. +else
  15785. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15786. + lt_status=$lt_dlunknown
  15787. + cat > conftest.$ac_ext <<_LT_EOF
  15788. +#line 11379 "configure"
  15789. +#include "confdefs.h"
  15790. +
  15791. +#if HAVE_DLFCN_H
  15792. +#include <dlfcn.h>
  15793. +#endif
  15794. +
  15795. +#include <stdio.h>
  15796. +
  15797. +#ifdef RTLD_GLOBAL
  15798. +# define LT_DLGLOBAL RTLD_GLOBAL
  15799. +#else
  15800. +# ifdef DL_GLOBAL
  15801. +# define LT_DLGLOBAL DL_GLOBAL
  15802. +# else
  15803. +# define LT_DLGLOBAL 0
  15804. +# endif
  15805. +#endif
  15806. +
  15807. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15808. + find out it does not work in some platform. */
  15809. +#ifndef LT_DLLAZY_OR_NOW
  15810. +# ifdef RTLD_LAZY
  15811. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  15812. +# else
  15813. +# ifdef DL_LAZY
  15814. +# define LT_DLLAZY_OR_NOW DL_LAZY
  15815. +# else
  15816. +# ifdef RTLD_NOW
  15817. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  15818. +# else
  15819. +# ifdef DL_NOW
  15820. +# define LT_DLLAZY_OR_NOW DL_NOW
  15821. +# else
  15822. +# define LT_DLLAZY_OR_NOW 0
  15823. +# endif
  15824. +# endif
  15825. +# endif
  15826. +# endif
  15827. +#endif
  15828. +
  15829. +void fnord() { int i=42;}
  15830. +int main ()
  15831. +{
  15832. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15833. + int status = $lt_dlunknown;
  15834. +
  15835. + if (self)
  15836. + {
  15837. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15838. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15839. + /* dlclose (self); */
  15840. + }
  15841. + else
  15842. + puts (dlerror ());
  15843. +
  15844. + return status;
  15845. +}
  15846. +_LT_EOF
  15847. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15848. + (eval $ac_link) 2>&5
  15849. + ac_status=$?
  15850. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15851. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15852. + (./conftest; exit; ) >&5 2>/dev/null
  15853. + lt_status=$?
  15854. + case x$lt_status in
  15855. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15856. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15857. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15858. + esac
  15859. + else :
  15860. + # compilation failed
  15861. + lt_cv_dlopen_self=no
  15862. + fi
  15863. +fi
  15864. +rm -fr conftest*
  15865. +
  15866. +
  15867. +fi
  15868. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  15869. +$as_echo "$lt_cv_dlopen_self" >&6; }
  15870. +
  15871. + if test "x$lt_cv_dlopen_self" = xyes; then
  15872. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15873. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15874. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  15875. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  15876. + $as_echo_n "(cached) " >&6
  15877. +else
  15878. + if test "$cross_compiling" = yes; then :
  15879. + lt_cv_dlopen_self_static=cross
  15880. +else
  15881. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15882. + lt_status=$lt_dlunknown
  15883. + cat > conftest.$ac_ext <<_LT_EOF
  15884. +#line 11475 "configure"
  15885. +#include "confdefs.h"
  15886. +
  15887. +#if HAVE_DLFCN_H
  15888. +#include <dlfcn.h>
  15889. +#endif
  15890. +
  15891. +#include <stdio.h>
  15892. +
  15893. +#ifdef RTLD_GLOBAL
  15894. +# define LT_DLGLOBAL RTLD_GLOBAL
  15895. +#else
  15896. +# ifdef DL_GLOBAL
  15897. +# define LT_DLGLOBAL DL_GLOBAL
  15898. +# else
  15899. +# define LT_DLGLOBAL 0
  15900. +# endif
  15901. +#endif
  15902. +
  15903. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15904. + find out it does not work in some platform. */
  15905. +#ifndef LT_DLLAZY_OR_NOW
  15906. +# ifdef RTLD_LAZY
  15907. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  15908. +# else
  15909. +# ifdef DL_LAZY
  15910. +# define LT_DLLAZY_OR_NOW DL_LAZY
  15911. +# else
  15912. +# ifdef RTLD_NOW
  15913. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  15914. +# else
  15915. +# ifdef DL_NOW
  15916. +# define LT_DLLAZY_OR_NOW DL_NOW
  15917. +# else
  15918. +# define LT_DLLAZY_OR_NOW 0
  15919. +# endif
  15920. +# endif
  15921. +# endif
  15922. +# endif
  15923. +#endif
  15924. +
  15925. +void fnord() { int i=42;}
  15926. +int main ()
  15927. +{
  15928. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15929. + int status = $lt_dlunknown;
  15930. +
  15931. + if (self)
  15932. + {
  15933. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15934. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15935. + /* dlclose (self); */
  15936. + }
  15937. + else
  15938. + puts (dlerror ());
  15939. +
  15940. + return status;
  15941. +}
  15942. +_LT_EOF
  15943. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15944. + (eval $ac_link) 2>&5
  15945. + ac_status=$?
  15946. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15947. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15948. + (./conftest; exit; ) >&5 2>/dev/null
  15949. + lt_status=$?
  15950. + case x$lt_status in
  15951. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15952. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15953. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15954. + esac
  15955. + else :
  15956. + # compilation failed
  15957. + lt_cv_dlopen_self_static=no
  15958. + fi
  15959. +fi
  15960. +rm -fr conftest*
  15961. +
  15962. +
  15963. +fi
  15964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15965. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  15966. + fi
  15967. +
  15968. + CPPFLAGS="$save_CPPFLAGS"
  15969. + LDFLAGS="$save_LDFLAGS"
  15970. + LIBS="$save_LIBS"
  15971. + ;;
  15972. + esac
  15973. +
  15974. + case $lt_cv_dlopen_self in
  15975. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15976. + *) enable_dlopen_self=unknown ;;
  15977. + esac
  15978. +
  15979. + case $lt_cv_dlopen_self_static in
  15980. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15981. + *) enable_dlopen_self_static=unknown ;;
  15982. + esac
  15983. +fi
  15984. +
  15985. +
  15986. +
  15987. +
  15988. +
  15989. +
  15990. +
  15991. +
  15992. +
  15993. +
  15994. +
  15995. +
  15996. +
  15997. +
  15998. +
  15999. +
  16000. +
  16001. +striplib=
  16002. +old_striplib=
  16003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  16004. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  16005. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  16006. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16007. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16008. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16009. +$as_echo "yes" >&6; }
  16010. +else
  16011. +# FIXME - insert some real tests, host_os isn't really good enough
  16012. + case $host_os in
  16013. + darwin*)
  16014. + if test -n "$STRIP" ; then
  16015. + striplib="$STRIP -x"
  16016. + old_striplib="$STRIP -S"
  16017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16018. +$as_echo "yes" >&6; }
  16019. + else
  16020. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16021. +$as_echo "no" >&6; }
  16022. + fi
  16023. + ;;
  16024. + *)
  16025. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16026. +$as_echo "no" >&6; }
  16027. + ;;
  16028. + esac
  16029. +fi
  16030. +
  16031. +
  16032. +
  16033. +
  16034. +
  16035. +
  16036. +
  16037. +
  16038. +
  16039. +
  16040. +
  16041. +
  16042. + # Report which library types will actually be built
  16043. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  16044. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  16045. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  16046. +$as_echo "$can_build_shared" >&6; }
  16047. +
  16048. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  16049. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  16050. + test "$can_build_shared" = "no" && enable_shared=no
  16051. +
  16052. + # On AIX, shared libraries and static libraries use the same namespace, and
  16053. + # are all built from PIC.
  16054. + case $host_os in
  16055. + aix3*)
  16056. + test "$enable_shared" = yes && enable_static=no
  16057. + if test -n "$RANLIB"; then
  16058. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  16059. + postinstall_cmds='$RANLIB $lib'
  16060. + fi
  16061. + ;;
  16062. +
  16063. + aix[4-9]*)
  16064. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  16065. + test "$enable_shared" = yes && enable_static=no
  16066. + fi
  16067. + ;;
  16068. + esac
  16069. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  16070. +$as_echo "$enable_shared" >&6; }
  16071. +
  16072. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  16073. +$as_echo_n "checking whether to build static libraries... " >&6; }
  16074. + # Make sure either enable_shared or enable_static is yes.
  16075. + test "$enable_shared" = yes || enable_static=yes
  16076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  16077. +$as_echo "$enable_static" >&6; }
  16078. +
  16079. +
  16080. +
  16081. +
  16082. +fi
  16083. +ac_ext=c
  16084. +ac_cpp='$CPP $CPPFLAGS'
  16085. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16086. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16087. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16088. +
  16089. +CC="$lt_save_CC"
  16090. +
  16091. +
  16092. +ac_ext=cpp
  16093. +ac_cpp='$CXXCPP $CPPFLAGS'
  16094. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16095. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16096. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16097. +
  16098. +archive_cmds_need_lc_CXX=no
  16099. +allow_undefined_flag_CXX=
  16100. +always_export_symbols_CXX=no
  16101. +archive_expsym_cmds_CXX=
  16102. +compiler_needs_object_CXX=no
  16103. +export_dynamic_flag_spec_CXX=
  16104. +hardcode_direct_CXX=no
  16105. +hardcode_direct_absolute_CXX=no
  16106. +hardcode_libdir_flag_spec_CXX=
  16107. +hardcode_libdir_flag_spec_ld_CXX=
  16108. +hardcode_libdir_separator_CXX=
  16109. +hardcode_minus_L_CXX=no
  16110. +hardcode_shlibpath_var_CXX=unsupported
  16111. +hardcode_automatic_CXX=no
  16112. +inherit_rpath_CXX=no
  16113. +module_cmds_CXX=
  16114. +module_expsym_cmds_CXX=
  16115. +link_all_deplibs_CXX=unknown
  16116. +old_archive_cmds_CXX=$old_archive_cmds
  16117. +no_undefined_flag_CXX=
  16118. +whole_archive_flag_spec_CXX=
  16119. +enable_shared_with_static_runtimes_CXX=no
  16120. +
  16121. +# Source file extension for C++ test sources.
  16122. +ac_ext=cpp
  16123. +
  16124. +# Object file extension for compiled C++ test sources.
  16125. +objext=o
  16126. +objext_CXX=$objext
  16127. +
  16128. +# No sense in running all these tests if we already determined that
  16129. +# the CXX compiler isn't working. Some variables (like enable_shared)
  16130. +# are currently assumed to apply to all compilers on this platform,
  16131. +# and will be corrupted by setting them based on a non-working compiler.
  16132. +if test "$_lt_caught_CXX_error" != yes; then
  16133. + # Code to be used in simple compile tests
  16134. + lt_simple_compile_test_code="int some_variable = 0;"
  16135. +
  16136. + # Code to be used in simple link tests
  16137. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  16138. +
  16139. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16140. +
  16141. +
  16142. +
  16143. +
  16144. +
  16145. +
  16146. +# If no C compiler was specified, use CC.
  16147. +LTCC=${LTCC-"$CC"}
  16148. +
  16149. +# If no C compiler flags were specified, use CFLAGS.
  16150. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16151. +
  16152. +# Allow CC to be a program name with arguments.
  16153. +compiler=$CC
  16154. +
  16155. +
  16156. + # save warnings/boilerplate of simple test code
  16157. + ac_outfile=conftest.$ac_objext
  16158. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  16159. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16160. +_lt_compiler_boilerplate=`cat conftest.err`
  16161. +$RM conftest*
  16162. +
  16163. + ac_outfile=conftest.$ac_objext
  16164. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  16165. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16166. +_lt_linker_boilerplate=`cat conftest.err`
  16167. +$RM -r conftest*
  16168. +
  16169. +
  16170. + # Allow CC to be a program name with arguments.
  16171. + lt_save_CC=$CC
  16172. + lt_save_LD=$LD
  16173. + lt_save_GCC=$GCC
  16174. + GCC=$GXX
  16175. + lt_save_with_gnu_ld=$with_gnu_ld
  16176. + lt_save_path_LD=$lt_cv_path_LD
  16177. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  16178. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  16179. + else
  16180. + $as_unset lt_cv_prog_gnu_ld
  16181. + fi
  16182. + if test -n "${lt_cv_path_LDCXX+set}"; then
  16183. + lt_cv_path_LD=$lt_cv_path_LDCXX
  16184. + else
  16185. + $as_unset lt_cv_path_LD
  16186. + fi
  16187. + test -z "${LDCXX+set}" || LD=$LDCXX
  16188. + CC=${CXX-"c++"}
  16189. + compiler=$CC
  16190. + compiler_CXX=$CC
  16191. + for cc_temp in $compiler""; do
  16192. + case $cc_temp in
  16193. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16194. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16195. + \-*) ;;
  16196. + *) break;;
  16197. + esac
  16198. +done
  16199. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16200. +
  16201. +
  16202. + if test -n "$compiler"; then
  16203. + # We don't want -fno-exception when compiling C++ code, so set the
  16204. + # no_builtin_flag separately
  16205. + if test "$GXX" = yes; then
  16206. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  16207. + else
  16208. + lt_prog_compiler_no_builtin_flag_CXX=
  16209. + fi
  16210. +
  16211. + if test "$GXX" = yes; then
  16212. + # Set up default GNU C++ configuration
  16213. +
  16214. +
  16215. +
  16216. +# Check whether --with-gnu-ld was given.
  16217. +if test "${with_gnu_ld+set}" = set; then :
  16218. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16219. +else
  16220. + with_gnu_ld=no
  16221. +fi
  16222. +
  16223. +ac_prog=ld
  16224. +if test "$GCC" = yes; then
  16225. + # Check if gcc -print-prog-name=ld gives a path.
  16226. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16227. +$as_echo_n "checking for ld used by $CC... " >&6; }
  16228. + case $host in
  16229. + *-*-mingw*)
  16230. + # gcc leaves a trailing carriage return which upsets mingw
  16231. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16232. + *)
  16233. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16234. + esac
  16235. + case $ac_prog in
  16236. + # Accept absolute paths.
  16237. + [\\/]* | ?:[\\/]*)
  16238. + re_direlt='/[^/][^/]*/\.\./'
  16239. + # Canonicalize the pathname of ld
  16240. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  16241. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  16242. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  16243. + done
  16244. + test -z "$LD" && LD="$ac_prog"
  16245. + ;;
  16246. + "")
  16247. + # If it fails, then pretend we aren't using GCC.
  16248. + ac_prog=ld
  16249. + ;;
  16250. + *)
  16251. + # If it is relative, then search for the first ld in PATH.
  16252. + with_gnu_ld=unknown
  16253. + ;;
  16254. + esac
  16255. +elif test "$with_gnu_ld" = yes; then
  16256. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16257. +$as_echo_n "checking for GNU ld... " >&6; }
  16258. +else
  16259. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16260. +$as_echo_n "checking for non-GNU ld... " >&6; }
  16261. +fi
  16262. +if test "${lt_cv_path_LD+set}" = set; then :
  16263. + $as_echo_n "(cached) " >&6
  16264. +else
  16265. + if test -z "$LD"; then
  16266. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16267. + for ac_dir in $PATH; do
  16268. + IFS="$lt_save_ifs"
  16269. + test -z "$ac_dir" && ac_dir=.
  16270. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16271. + lt_cv_path_LD="$ac_dir/$ac_prog"
  16272. + # Check to see if the program is GNU ld. I'd rather use --version,
  16273. + # but apparently some variants of GNU ld only accept -v.
  16274. + # Break only if it was the GNU/non-GNU ld that we prefer.
  16275. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  16276. + *GNU* | *'with BFD'*)
  16277. + test "$with_gnu_ld" != no && break
  16278. + ;;
  16279. + *)
  16280. + test "$with_gnu_ld" != yes && break
  16281. + ;;
  16282. + esac
  16283. + fi
  16284. + done
  16285. + IFS="$lt_save_ifs"
  16286. +else
  16287. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  16288. +fi
  16289. +fi
  16290. +
  16291. +LD="$lt_cv_path_LD"
  16292. +if test -n "$LD"; then
  16293. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16294. +$as_echo "$LD" >&6; }
  16295. +else
  16296. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16297. +$as_echo "no" >&6; }
  16298. +fi
  16299. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  16300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16301. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16302. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  16303. + $as_echo_n "(cached) " >&6
  16304. +else
  16305. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16306. +case `$LD -v 2>&1 </dev/null` in
  16307. +*GNU* | *'with BFD'*)
  16308. + lt_cv_prog_gnu_ld=yes
  16309. + ;;
  16310. +*)
  16311. + lt_cv_prog_gnu_ld=no
  16312. + ;;
  16313. +esac
  16314. +fi
  16315. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  16316. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  16317. +with_gnu_ld=$lt_cv_prog_gnu_ld
  16318. +
  16319. +
  16320. +
  16321. +
  16322. +
  16323. +
  16324. +
  16325. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  16326. + # archiving commands below assume that GNU ld is being used.
  16327. + if test "$with_gnu_ld" = yes; then
  16328. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16329. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16330. +
  16331. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16332. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16333. +
  16334. + # If archive_cmds runs LD, not CC, wlarc should be empty
  16335. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  16336. + # investigate it a little bit more. (MM)
  16337. + wlarc='${wl}'
  16338. +
  16339. + # ancient GNU ld didn't support --whole-archive et. al.
  16340. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  16341. + $GREP 'no-whole-archive' > /dev/null; then
  16342. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16343. + else
  16344. + whole_archive_flag_spec_CXX=
  16345. + fi
  16346. + else
  16347. + with_gnu_ld=no
  16348. + wlarc=
  16349. +
  16350. + # A generic and very simple default shared library creation
  16351. + # command for GNU C++ for the case where it uses the native
  16352. + # linker, instead of GNU ld. If possible, this setting should
  16353. + # overridden to take advantage of the native linker features on
  16354. + # the platform it is being used on.
  16355. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  16356. + fi
  16357. +
  16358. + # Commands to make compiler produce verbose output that lists
  16359. + # what "hidden" libraries, object files and flags are used when
  16360. + # linking a shared library.
  16361. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  16362. +
  16363. + else
  16364. + GXX=no
  16365. + with_gnu_ld=no
  16366. + wlarc=
  16367. + fi
  16368. +
  16369. + # PORTME: fill in a description of your system's C++ link characteristics
  16370. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16371. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  16372. + ld_shlibs_CXX=yes
  16373. + case $host_os in
  16374. + aix3*)
  16375. + # FIXME: insert proper C++ library support
  16376. + ld_shlibs_CXX=no
  16377. + ;;
  16378. + aix[4-9]*)
  16379. + if test "$host_cpu" = ia64; then
  16380. + # On IA64, the linker does run time linking by default, so we don't
  16381. + # have to do anything special.
  16382. + aix_use_runtimelinking=no
  16383. + exp_sym_flag='-Bexport'
  16384. + no_entry_flag=""
  16385. + else
  16386. + aix_use_runtimelinking=no
  16387. +
  16388. + # Test if we are trying to use run time linking or normal
  16389. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16390. + # need to do runtime linking.
  16391. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  16392. + for ld_flag in $LDFLAGS; do
  16393. + case $ld_flag in
  16394. + *-brtl*)
  16395. + aix_use_runtimelinking=yes
  16396. + break
  16397. + ;;
  16398. + esac
  16399. + done
  16400. + ;;
  16401. + esac
  16402. +
  16403. + exp_sym_flag='-bexport'
  16404. + no_entry_flag='-bnoentry'
  16405. + fi
  16406. +
  16407. + # When large executables or shared objects are built, AIX ld can
  16408. + # have problems creating the table of contents. If linking a library
  16409. + # or program results in "error TOC overflow" add -mminimal-toc to
  16410. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16411. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16412. +
  16413. + archive_cmds_CXX=''
  16414. + hardcode_direct_CXX=yes
  16415. + hardcode_direct_absolute_CXX=yes
  16416. + hardcode_libdir_separator_CXX=':'
  16417. + link_all_deplibs_CXX=yes
  16418. + file_list_spec_CXX='${wl}-f,'
  16419. +
  16420. + if test "$GXX" = yes; then
  16421. + case $host_os in aix4.[012]|aix4.[012].*)
  16422. + # We only want to do this on AIX 4.2 and lower, the check
  16423. + # below for broken collect2 doesn't work under 4.3+
  16424. + collect2name=`${CC} -print-prog-name=collect2`
  16425. + if test -f "$collect2name" &&
  16426. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  16427. + then
  16428. + # We have reworked collect2
  16429. + :
  16430. + else
  16431. + # We have old collect2
  16432. + hardcode_direct_CXX=unsupported
  16433. + # It fails to find uninstalled libraries when the uninstalled
  16434. + # path is not listed in the libpath. Setting hardcode_minus_L
  16435. + # to unsupported forces relinking
  16436. + hardcode_minus_L_CXX=yes
  16437. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  16438. + hardcode_libdir_separator_CXX=
  16439. + fi
  16440. + esac
  16441. + shared_flag='-shared'
  16442. + if test "$aix_use_runtimelinking" = yes; then
  16443. + shared_flag="$shared_flag "'${wl}-G'
  16444. + fi
  16445. + else
  16446. + # not using gcc
  16447. + if test "$host_cpu" = ia64; then
  16448. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16449. + # chokes on -Wl,-G. The following line is correct:
  16450. + shared_flag='-G'
  16451. + else
  16452. + if test "$aix_use_runtimelinking" = yes; then
  16453. + shared_flag='${wl}-G'
  16454. + else
  16455. + shared_flag='${wl}-bM:SRE'
  16456. + fi
  16457. + fi
  16458. + fi
  16459. +
  16460. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  16461. + # It seems that -bexpall does not export symbols beginning with
  16462. + # underscore (_), so it is better to generate a list of symbols to
  16463. + # export.
  16464. + always_export_symbols_CXX=yes
  16465. + if test "$aix_use_runtimelinking" = yes; then
  16466. + # Warning - without using the other runtime loading flags (-brtl),
  16467. + # -berok will link without error, but may produce a broken library.
  16468. + allow_undefined_flag_CXX='-berok'
  16469. + # Determine the default libpath from the value encoded in an empty
  16470. + # executable.
  16471. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. +/* end confdefs.h. */
  16473. +
  16474. +int
  16475. +main ()
  16476. +{
  16477. +
  16478. + ;
  16479. + return 0;
  16480. +}
  16481. +_ACEOF
  16482. +if ac_fn_cxx_try_link "$LINENO"; then :
  16483. +
  16484. +lt_aix_libpath_sed='
  16485. + /Import File Strings/,/^$/ {
  16486. + /^0/ {
  16487. + s/^0 *\(.*\)$/\1/
  16488. + p
  16489. + }
  16490. + }'
  16491. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16492. +# Check for a 64-bit object if we didn't find anything.
  16493. +if test -z "$aix_libpath"; then
  16494. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16495. +fi
  16496. +fi
  16497. +rm -f core conftest.err conftest.$ac_objext \
  16498. + conftest$ac_exeext conftest.$ac_ext
  16499. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16500. +
  16501. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  16502. +
  16503. + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16504. + else
  16505. + if test "$host_cpu" = ia64; then
  16506. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  16507. + allow_undefined_flag_CXX="-z nodefs"
  16508. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  16509. + else
  16510. + # Determine the default libpath from the value encoded in an
  16511. + # empty executable.
  16512. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16513. +/* end confdefs.h. */
  16514. +
  16515. +int
  16516. +main ()
  16517. +{
  16518. +
  16519. + ;
  16520. + return 0;
  16521. +}
  16522. +_ACEOF
  16523. +if ac_fn_cxx_try_link "$LINENO"; then :
  16524. +
  16525. +lt_aix_libpath_sed='
  16526. + /Import File Strings/,/^$/ {
  16527. + /^0/ {
  16528. + s/^0 *\(.*\)$/\1/
  16529. + p
  16530. + }
  16531. + }'
  16532. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16533. +# Check for a 64-bit object if we didn't find anything.
  16534. +if test -z "$aix_libpath"; then
  16535. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16536. +fi
  16537. +fi
  16538. +rm -f core conftest.err conftest.$ac_objext \
  16539. + conftest$ac_exeext conftest.$ac_ext
  16540. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16541. +
  16542. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  16543. + # Warning - without using the other run time loading flags,
  16544. + # -berok will link without error, but may produce a broken library.
  16545. + no_undefined_flag_CXX=' ${wl}-bernotok'
  16546. + allow_undefined_flag_CXX=' ${wl}-berok'
  16547. + # Exported symbols can be pulled into shared objects from archives
  16548. + whole_archive_flag_spec_CXX='$convenience'
  16549. + archive_cmds_need_lc_CXX=yes
  16550. + # This is similar to how AIX traditionally builds its shared
  16551. + # libraries.
  16552. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  16553. + fi
  16554. + fi
  16555. + ;;
  16556. +
  16557. + beos*)
  16558. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  16559. + allow_undefined_flag_CXX=unsupported
  16560. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16561. + # support --undefined. This deserves some investigation. FIXME
  16562. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16563. + else
  16564. + ld_shlibs_CXX=no
  16565. + fi
  16566. + ;;
  16567. +
  16568. + chorus*)
  16569. + case $cc_basename in
  16570. + *)
  16571. + # FIXME: insert proper C++ library support
  16572. + ld_shlibs_CXX=no
  16573. + ;;
  16574. + esac
  16575. + ;;
  16576. +
  16577. + cygwin* | mingw* | pw32* | cegcc*)
  16578. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  16579. + # as there is no search path for DLLs.
  16580. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  16581. + allow_undefined_flag_CXX=unsupported
  16582. + always_export_symbols_CXX=no
  16583. + enable_shared_with_static_runtimes_CXX=yes
  16584. +
  16585. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  16586. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16587. + # If the export-symbols file already is a .def file (1st line
  16588. + # is EXPORTS), use it as is; otherwise, prepend...
  16589. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16590. + cp $export_symbols $output_objdir/$soname.def;
  16591. + else
  16592. + echo EXPORTS > $output_objdir/$soname.def;
  16593. + cat $export_symbols >> $output_objdir/$soname.def;
  16594. + fi~
  16595. + $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'
  16596. + else
  16597. + ld_shlibs_CXX=no
  16598. + fi
  16599. + ;;
  16600. + darwin* | rhapsody*)
  16601. +
  16602. +
  16603. + archive_cmds_need_lc_CXX=no
  16604. + hardcode_direct_CXX=no
  16605. + hardcode_automatic_CXX=yes
  16606. + hardcode_shlibpath_var_CXX=unsupported
  16607. + whole_archive_flag_spec_CXX=''
  16608. + link_all_deplibs_CXX=yes
  16609. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  16610. + case $cc_basename in
  16611. + ifort*) _lt_dar_can_shared=yes ;;
  16612. + *) _lt_dar_can_shared=$GCC ;;
  16613. + esac
  16614. + if test "$_lt_dar_can_shared" = "yes"; then
  16615. + output_verbose_link_cmd=echo
  16616. + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  16617. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16618. + archive_expsym_cmds_CXX="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}"
  16619. + module_expsym_cmds_CXX="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}"
  16620. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  16621. + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  16622. + archive_expsym_cmds_CXX="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}"
  16623. + fi
  16624. +
  16625. + else
  16626. + ld_shlibs_CXX=no
  16627. + fi
  16628. +
  16629. + ;;
  16630. +
  16631. + dgux*)
  16632. + case $cc_basename in
  16633. + ec++*)
  16634. + # FIXME: insert proper C++ library support
  16635. + ld_shlibs_CXX=no
  16636. + ;;
  16637. + ghcx*)
  16638. + # Green Hills C++ Compiler
  16639. + # FIXME: insert proper C++ library support
  16640. + ld_shlibs_CXX=no
  16641. + ;;
  16642. + *)
  16643. + # FIXME: insert proper C++ library support
  16644. + ld_shlibs_CXX=no
  16645. + ;;
  16646. + esac
  16647. + ;;
  16648. +
  16649. + freebsd[12]*)
  16650. + # C++ shared libraries reported to be fairly broken before
  16651. + # switch to ELF
  16652. + ld_shlibs_CXX=no
  16653. + ;;
  16654. +
  16655. + freebsd-elf*)
  16656. + archive_cmds_need_lc_CXX=no
  16657. + ;;
  16658. +
  16659. + freebsd* | dragonfly*)
  16660. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  16661. + # conventions
  16662. + ld_shlibs_CXX=yes
  16663. + ;;
  16664. +
  16665. + gnu*)
  16666. + ;;
  16667. +
  16668. + hpux9*)
  16669. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16670. + hardcode_libdir_separator_CXX=:
  16671. + export_dynamic_flag_spec_CXX='${wl}-E'
  16672. + hardcode_direct_CXX=yes
  16673. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  16674. + # but as the default
  16675. + # location of the library.
  16676. +
  16677. + case $cc_basename in
  16678. + CC*)
  16679. + # FIXME: insert proper C++ library support
  16680. + ld_shlibs_CXX=no
  16681. + ;;
  16682. + aCC*)
  16683. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16684. + # Commands to make compiler produce verbose output that lists
  16685. + # what "hidden" libraries, object files and flags are used when
  16686. + # linking a shared library.
  16687. + #
  16688. + # There doesn't appear to be a way to prevent this compiler from
  16689. + # explicitly linking system object files so we need to strip them
  16690. + # from the output so that they don't get included in the library
  16691. + # dependencies.
  16692. + 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'
  16693. + ;;
  16694. + *)
  16695. + if test "$GXX" = yes; then
  16696. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16697. + else
  16698. + # FIXME: insert proper C++ library support
  16699. + ld_shlibs_CXX=no
  16700. + fi
  16701. + ;;
  16702. + esac
  16703. + ;;
  16704. +
  16705. + hpux10*|hpux11*)
  16706. + if test $with_gnu_ld = no; then
  16707. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16708. + hardcode_libdir_separator_CXX=:
  16709. +
  16710. + case $host_cpu in
  16711. + hppa*64*|ia64*)
  16712. + ;;
  16713. + *)
  16714. + export_dynamic_flag_spec_CXX='${wl}-E'
  16715. + ;;
  16716. + esac
  16717. + fi
  16718. + case $host_cpu in
  16719. + hppa*64*|ia64*)
  16720. + hardcode_direct_CXX=no
  16721. + hardcode_shlibpath_var_CXX=no
  16722. + ;;
  16723. + *)
  16724. + hardcode_direct_CXX=yes
  16725. + hardcode_direct_absolute_CXX=yes
  16726. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  16727. + # but as the default
  16728. + # location of the library.
  16729. + ;;
  16730. + esac
  16731. +
  16732. + case $cc_basename in
  16733. + CC*)
  16734. + # FIXME: insert proper C++ library support
  16735. + ld_shlibs_CXX=no
  16736. + ;;
  16737. + aCC*)
  16738. + case $host_cpu in
  16739. + hppa*64*)
  16740. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16741. + ;;
  16742. + ia64*)
  16743. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16744. + ;;
  16745. + *)
  16746. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16747. + ;;
  16748. + esac
  16749. + # Commands to make compiler produce verbose output that lists
  16750. + # what "hidden" libraries, object files and flags are used when
  16751. + # linking a shared library.
  16752. + #
  16753. + # There doesn't appear to be a way to prevent this compiler from
  16754. + # explicitly linking system object files so we need to strip them
  16755. + # from the output so that they don't get included in the library
  16756. + # dependencies.
  16757. + 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'
  16758. + ;;
  16759. + *)
  16760. + if test "$GXX" = yes; then
  16761. + if test $with_gnu_ld = no; then
  16762. + case $host_cpu in
  16763. + hppa*64*)
  16764. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16765. + ;;
  16766. + ia64*)
  16767. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16768. + ;;
  16769. + *)
  16770. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16771. + ;;
  16772. + esac
  16773. + fi
  16774. + else
  16775. + # FIXME: insert proper C++ library support
  16776. + ld_shlibs_CXX=no
  16777. + fi
  16778. + ;;
  16779. + esac
  16780. + ;;
  16781. +
  16782. + interix[3-9]*)
  16783. + hardcode_direct_CXX=no
  16784. + hardcode_shlibpath_var_CXX=no
  16785. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16786. + export_dynamic_flag_spec_CXX='${wl}-E'
  16787. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  16788. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  16789. + # default) and relocated if they conflict, which is a slow very memory
  16790. + # consuming and fragmenting process. To avoid this, we pick a random,
  16791. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  16792. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  16793. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16794. + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16795. + ;;
  16796. + irix5* | irix6*)
  16797. + case $cc_basename in
  16798. + CC*)
  16799. + # SGI C++
  16800. + archive_cmds_CXX='$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'
  16801. +
  16802. + # Archives containing C++ object files must be created using
  16803. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  16804. + # necessary to make sure instantiated templates are included
  16805. + # in the archive.
  16806. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  16807. + ;;
  16808. + *)
  16809. + if test "$GXX" = yes; then
  16810. + if test "$with_gnu_ld" = no; then
  16811. + archive_cmds_CXX='$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'
  16812. + else
  16813. + archive_cmds_CXX='$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'
  16814. + fi
  16815. + fi
  16816. + link_all_deplibs_CXX=yes
  16817. + ;;
  16818. + esac
  16819. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16820. + hardcode_libdir_separator_CXX=:
  16821. + inherit_rpath_CXX=yes
  16822. + ;;
  16823. +
  16824. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16825. + case $cc_basename in
  16826. + KCC*)
  16827. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  16828. +
  16829. + # KCC will only create a shared library if the output file
  16830. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16831. + # to its proper name (with version) after linking.
  16832. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  16833. + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  16834. + # Commands to make compiler produce verbose output that lists
  16835. + # what "hidden" libraries, object files and flags are used when
  16836. + # linking a shared library.
  16837. + #
  16838. + # There doesn't appear to be a way to prevent this compiler from
  16839. + # explicitly linking system object files so we need to strip them
  16840. + # from the output so that they don't get included in the library
  16841. + # dependencies.
  16842. + 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'
  16843. +
  16844. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16845. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16846. +
  16847. + # Archives containing C++ object files must be created using
  16848. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  16849. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  16850. + ;;
  16851. + icpc* | ecpc* )
  16852. + # Intel C++
  16853. + with_gnu_ld=yes
  16854. + # version 8.0 and above of icpc choke on multiply defined symbols
  16855. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  16856. + # earlier do not add the objects themselves.
  16857. + case `$CC -V 2>&1` in
  16858. + *"Version 7."*)
  16859. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16860. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16861. + ;;
  16862. + *) # Version 8.0 or newer
  16863. + tmp_idyn=
  16864. + case $host_cpu in
  16865. + ia64*) tmp_idyn=' -i_dynamic';;
  16866. + esac
  16867. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16868. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16869. + ;;
  16870. + esac
  16871. + archive_cmds_need_lc_CXX=no
  16872. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16873. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16874. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16875. + ;;
  16876. + pgCC* | pgcpp*)
  16877. + # Portland Group C++ compiler
  16878. + case `$CC -V` in
  16879. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  16880. + prelink_cmds_CXX='tpldir=Template.dir~
  16881. + rm -rf $tpldir~
  16882. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  16883. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  16884. + old_archive_cmds_CXX='tpldir=Template.dir~
  16885. + rm -rf $tpldir~
  16886. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  16887. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  16888. + $RANLIB $oldlib'
  16889. + archive_cmds_CXX='tpldir=Template.dir~
  16890. + rm -rf $tpldir~
  16891. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16892. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16893. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  16894. + rm -rf $tpldir~
  16895. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16896. + $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'
  16897. + ;;
  16898. + *) # Version 6 will use weak symbols
  16899. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16900. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  16901. + ;;
  16902. + esac
  16903. +
  16904. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  16905. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16906. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  16907. + ;;
  16908. + cxx*)
  16909. + # Compaq C++
  16910. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16911. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  16912. +
  16913. + runpath_var=LD_RUN_PATH
  16914. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16915. + hardcode_libdir_separator_CXX=:
  16916. +
  16917. + # Commands to make compiler produce verbose output that lists
  16918. + # what "hidden" libraries, object files and flags are used when
  16919. + # linking a shared library.
  16920. + #
  16921. + # There doesn't appear to be a way to prevent this compiler from
  16922. + # explicitly linking system object files so we need to strip them
  16923. + # from the output so that they don't get included in the library
  16924. + # dependencies.
  16925. + 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'
  16926. + ;;
  16927. + xl*)
  16928. + # IBM XL 8.0 on PPC, with GNU ld
  16929. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16930. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16931. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16932. + if test "x$supports_anon_versioning" = xyes; then
  16933. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  16934. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16935. + echo "local: *; };" >> $output_objdir/$libname.ver~
  16936. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16937. + fi
  16938. + ;;
  16939. + *)
  16940. + case `$CC -V 2>&1 | sed 5q` in
  16941. + *Sun\ C*)
  16942. + # Sun C++ 5.9
  16943. + no_undefined_flag_CXX=' -zdefs'
  16944. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16945. + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  16946. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  16947. + whole_archive_flag_spec_CXX='${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'
  16948. + compiler_needs_object_CXX=yes
  16949. +
  16950. + # Not sure whether something based on
  16951. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  16952. + # would be better.
  16953. + output_verbose_link_cmd='echo'
  16954. +
  16955. + # Archives containing C++ object files must be created using
  16956. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  16957. + # necessary to make sure instantiated templates are included
  16958. + # in the archive.
  16959. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16960. + ;;
  16961. + esac
  16962. + ;;
  16963. + esac
  16964. + ;;
  16965. +
  16966. + lynxos*)
  16967. + # FIXME: insert proper C++ library support
  16968. + ld_shlibs_CXX=no
  16969. + ;;
  16970. +
  16971. + m88k*)
  16972. + # FIXME: insert proper C++ library support
  16973. + ld_shlibs_CXX=no
  16974. + ;;
  16975. +
  16976. + mvs*)
  16977. + case $cc_basename in
  16978. + cxx*)
  16979. + # FIXME: insert proper C++ library support
  16980. + ld_shlibs_CXX=no
  16981. + ;;
  16982. + *)
  16983. + # FIXME: insert proper C++ library support
  16984. + ld_shlibs_CXX=no
  16985. + ;;
  16986. + esac
  16987. + ;;
  16988. +
  16989. + netbsd*)
  16990. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16991. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  16992. + wlarc=
  16993. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  16994. + hardcode_direct_CXX=yes
  16995. + hardcode_shlibpath_var_CXX=no
  16996. + fi
  16997. + # Workaround some broken pre-1.5 toolchains
  16998. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  16999. + ;;
  17000. +
  17001. + *nto* | *qnx*)
  17002. + ld_shlibs_CXX=yes
  17003. + ;;
  17004. +
  17005. + openbsd2*)
  17006. + # C++ shared libraries are fairly broken
  17007. + ld_shlibs_CXX=no
  17008. + ;;
  17009. +
  17010. + openbsd*)
  17011. + if test -f /usr/libexec/ld.so; then
  17012. + hardcode_direct_CXX=yes
  17013. + hardcode_shlibpath_var_CXX=no
  17014. + hardcode_direct_absolute_CXX=yes
  17015. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  17016. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17017. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17018. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  17019. + export_dynamic_flag_spec_CXX='${wl}-E'
  17020. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17021. + fi
  17022. + output_verbose_link_cmd=echo
  17023. + else
  17024. + ld_shlibs_CXX=no
  17025. + fi
  17026. + ;;
  17027. +
  17028. + osf3* | osf4* | osf5*)
  17029. + case $cc_basename in
  17030. + KCC*)
  17031. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  17032. +
  17033. + # KCC will only create a shared library if the output file
  17034. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  17035. + # to its proper name (with version) after linking.
  17036. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  17037. +
  17038. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17039. + hardcode_libdir_separator_CXX=:
  17040. +
  17041. + # Archives containing C++ object files must be created using
  17042. + # the KAI C++ compiler.
  17043. + case $host in
  17044. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  17045. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  17046. + esac
  17047. + ;;
  17048. + RCC*)
  17049. + # Rational C++ 2.4.1
  17050. + # FIXME: insert proper C++ library support
  17051. + ld_shlibs_CXX=no
  17052. + ;;
  17053. + cxx*)
  17054. + case $host in
  17055. + osf3*)
  17056. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  17057. + archive_cmds_CXX='$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'
  17058. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17059. + ;;
  17060. + *)
  17061. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  17062. + archive_cmds_CXX='$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'
  17063. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  17064. + echo "-hidden">> $lib.exp~
  17065. + $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~
  17066. + $RM $lib.exp'
  17067. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  17068. + ;;
  17069. + esac
  17070. +
  17071. + hardcode_libdir_separator_CXX=:
  17072. +
  17073. + # Commands to make compiler produce verbose output that lists
  17074. + # what "hidden" libraries, object files and flags are used when
  17075. + # linking a shared library.
  17076. + #
  17077. + # There doesn't appear to be a way to prevent this compiler from
  17078. + # explicitly linking system object files so we need to strip them
  17079. + # from the output so that they don't get included in the library
  17080. + # dependencies.
  17081. + 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'
  17082. + ;;
  17083. + *)
  17084. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  17085. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  17086. + case $host in
  17087. + osf3*)
  17088. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17089. + ;;
  17090. + *)
  17091. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17092. + ;;
  17093. + esac
  17094. +
  17095. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17096. + hardcode_libdir_separator_CXX=:
  17097. +
  17098. + # Commands to make compiler produce verbose output that lists
  17099. + # what "hidden" libraries, object files and flags are used when
  17100. + # linking a shared library.
  17101. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  17102. +
  17103. + else
  17104. + # FIXME: insert proper C++ library support
  17105. + ld_shlibs_CXX=no
  17106. + fi
  17107. + ;;
  17108. + esac
  17109. + ;;
  17110. +
  17111. + psos*)
  17112. + # FIXME: insert proper C++ library support
  17113. + ld_shlibs_CXX=no
  17114. + ;;
  17115. +
  17116. + sunos4*)
  17117. + case $cc_basename in
  17118. + CC*)
  17119. + # Sun C++ 4.x
  17120. + # FIXME: insert proper C++ library support
  17121. + ld_shlibs_CXX=no
  17122. + ;;
  17123. + lcc*)
  17124. + # Lucid
  17125. + # FIXME: insert proper C++ library support
  17126. + ld_shlibs_CXX=no
  17127. + ;;
  17128. + *)
  17129. + # FIXME: insert proper C++ library support
  17130. + ld_shlibs_CXX=no
  17131. + ;;
  17132. + esac
  17133. + ;;
  17134. +
  17135. + solaris*)
  17136. + case $cc_basename in
  17137. + CC*)
  17138. + # Sun C++ 4.2, 5.x and Centerline C++
  17139. + archive_cmds_need_lc_CXX=yes
  17140. + no_undefined_flag_CXX=' -zdefs'
  17141. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17142. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  17143. + $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'
  17144. +
  17145. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  17146. + hardcode_shlibpath_var_CXX=no
  17147. + case $host_os in
  17148. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  17149. + *)
  17150. + # The compiler driver will combine and reorder linker options,
  17151. + # but understands `-z linker_flag'.
  17152. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  17153. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  17154. + ;;
  17155. + esac
  17156. + link_all_deplibs_CXX=yes
  17157. +
  17158. + output_verbose_link_cmd='echo'
  17159. +
  17160. + # Archives containing C++ object files must be created using
  17161. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  17162. + # necessary to make sure instantiated templates are included
  17163. + # in the archive.
  17164. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  17165. + ;;
  17166. + gcx*)
  17167. + # Green Hills C++ Compiler
  17168. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17169. +
  17170. + # The C++ compiler must be used to create the archive.
  17171. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  17172. + ;;
  17173. + *)
  17174. + # GNU C++ compiler with Solaris linker
  17175. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  17176. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  17177. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  17178. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17179. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  17180. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  17181. +
  17182. + # Commands to make compiler produce verbose output that lists
  17183. + # what "hidden" libraries, object files and flags are used when
  17184. + # linking a shared library.
  17185. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  17186. + else
  17187. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  17188. + # platform.
  17189. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17190. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  17191. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  17192. +
  17193. + # Commands to make compiler produce verbose output that lists
  17194. + # what "hidden" libraries, object files and flags are used when
  17195. + # linking a shared library.
  17196. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  17197. + fi
  17198. +
  17199. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  17200. + case $host_os in
  17201. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  17202. + *)
  17203. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  17204. + ;;
  17205. + esac
  17206. + fi
  17207. + ;;
  17208. + esac
  17209. + ;;
  17210. +
  17211. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  17212. + no_undefined_flag_CXX='${wl}-z,text'
  17213. + archive_cmds_need_lc_CXX=no
  17214. + hardcode_shlibpath_var_CXX=no
  17215. + runpath_var='LD_RUN_PATH'
  17216. +
  17217. + case $cc_basename in
  17218. + CC*)
  17219. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17220. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17221. + ;;
  17222. + *)
  17223. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17224. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17225. + ;;
  17226. + esac
  17227. + ;;
  17228. +
  17229. + sysv5* | sco3.2v5* | sco5v6*)
  17230. + # Note: We can NOT use -z defs as we might desire, because we do not
  17231. + # link with -lc, and that would cause any symbols used from libc to
  17232. + # always be unresolved, which means just about no library would
  17233. + # ever link correctly. If we're not using GNU ld we use -z text
  17234. + # though, which does catch some bad symbols but isn't as heavy-handed
  17235. + # as -z defs.
  17236. + no_undefined_flag_CXX='${wl}-z,text'
  17237. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  17238. + archive_cmds_need_lc_CXX=no
  17239. + hardcode_shlibpath_var_CXX=no
  17240. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  17241. + hardcode_libdir_separator_CXX=':'
  17242. + link_all_deplibs_CXX=yes
  17243. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  17244. + runpath_var='LD_RUN_PATH'
  17245. +
  17246. + case $cc_basename in
  17247. + CC*)
  17248. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17249. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17250. + ;;
  17251. + *)
  17252. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17253. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17254. + ;;
  17255. + esac
  17256. + ;;
  17257. +
  17258. + tandem*)
  17259. + case $cc_basename in
  17260. + NCC*)
  17261. + # NonStop-UX NCC 3.20
  17262. + # FIXME: insert proper C++ library support
  17263. + ld_shlibs_CXX=no
  17264. + ;;
  17265. + *)
  17266. + # FIXME: insert proper C++ library support
  17267. + ld_shlibs_CXX=no
  17268. + ;;
  17269. + esac
  17270. + ;;
  17271. +
  17272. + vxworks*)
  17273. + # FIXME: insert proper C++ library support
  17274. + ld_shlibs_CXX=no
  17275. + ;;
  17276. +
  17277. + *)
  17278. + # FIXME: insert proper C++ library support
  17279. + ld_shlibs_CXX=no
  17280. + ;;
  17281. + esac
  17282. +
  17283. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  17284. +$as_echo "$ld_shlibs_CXX" >&6; }
  17285. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  17286. +
  17287. + GCC_CXX="$GXX"
  17288. + LD_CXX="$LD"
  17289. +
  17290. + ## CAVEAT EMPTOR:
  17291. + ## There is no encapsulation within the following macros, do not change
  17292. + ## the running order or otherwise move them around unless you know exactly
  17293. + ## what you are doing...
  17294. + # Dependencies to place before and after the object being linked:
  17295. +predep_objects_CXX=
  17296. +postdep_objects_CXX=
  17297. +predeps_CXX=
  17298. +postdeps_CXX=
  17299. +compiler_lib_search_path_CXX=
  17300. +
  17301. +cat > conftest.$ac_ext <<_LT_EOF
  17302. +class Foo
  17303. +{
  17304. +public:
  17305. + Foo (void) { a = 0; }
  17306. +private:
  17307. + int a;
  17308. +};
  17309. +_LT_EOF
  17310. +
  17311. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17312. + (eval $ac_compile) 2>&5
  17313. + ac_status=$?
  17314. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17315. + test $ac_status = 0; }; then
  17316. + # Parse the compiler output and extract the necessary
  17317. + # objects, libraries and library flags.
  17318. +
  17319. + # Sentinel used to keep track of whether or not we are before
  17320. + # the conftest object file.
  17321. + pre_test_object_deps_done=no
  17322. +
  17323. + for p in `eval "$output_verbose_link_cmd"`; do
  17324. + case $p in
  17325. +
  17326. + -L* | -R* | -l*)
  17327. + # Some compilers place space between "-{L,R}" and the path.
  17328. + # Remove the space.
  17329. + if test $p = "-L" ||
  17330. + test $p = "-R"; then
  17331. + prev=$p
  17332. + continue
  17333. + else
  17334. + prev=
  17335. + fi
  17336. +
  17337. + if test "$pre_test_object_deps_done" = no; then
  17338. + case $p in
  17339. + -L* | -R*)
  17340. + # Internal compiler library paths should come after those
  17341. + # provided the user. The postdeps already come after the
  17342. + # user supplied libs so there is no need to process them.
  17343. + if test -z "$compiler_lib_search_path_CXX"; then
  17344. + compiler_lib_search_path_CXX="${prev}${p}"
  17345. + else
  17346. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  17347. + fi
  17348. + ;;
  17349. + # The "-l" case would never come before the object being
  17350. + # linked, so don't bother handling this case.
  17351. + esac
  17352. + else
  17353. + if test -z "$postdeps_CXX"; then
  17354. + postdeps_CXX="${prev}${p}"
  17355. + else
  17356. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  17357. + fi
  17358. + fi
  17359. + ;;
  17360. +
  17361. + *.$objext)
  17362. + # This assumes that the test object file only shows up
  17363. + # once in the compiler output.
  17364. + if test "$p" = "conftest.$objext"; then
  17365. + pre_test_object_deps_done=yes
  17366. + continue
  17367. + fi
  17368. +
  17369. + if test "$pre_test_object_deps_done" = no; then
  17370. + if test -z "$predep_objects_CXX"; then
  17371. + predep_objects_CXX="$p"
  17372. + else
  17373. + predep_objects_CXX="$predep_objects_CXX $p"
  17374. + fi
  17375. + else
  17376. + if test -z "$postdep_objects_CXX"; then
  17377. + postdep_objects_CXX="$p"
  17378. + else
  17379. + postdep_objects_CXX="$postdep_objects_CXX $p"
  17380. + fi
  17381. + fi
  17382. + ;;
  17383. +
  17384. + *) ;; # Ignore the rest.
  17385. +
  17386. + esac
  17387. + done
  17388. +
  17389. + # Clean up.
  17390. + rm -f a.out a.exe
  17391. +else
  17392. + echo "libtool.m4: error: problem compiling CXX test program"
  17393. +fi
  17394. +
  17395. +$RM -f confest.$objext
  17396. +
  17397. +# PORTME: override above test on systems where it is broken
  17398. +case $host_os in
  17399. +interix[3-9]*)
  17400. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  17401. + # hack all around it, let's just trust "g++" to DTRT.
  17402. + predep_objects_CXX=
  17403. + postdep_objects_CXX=
  17404. + postdeps_CXX=
  17405. + ;;
  17406. +
  17407. +linux*)
  17408. + case `$CC -V 2>&1 | sed 5q` in
  17409. + *Sun\ C*)
  17410. + # Sun C++ 5.9
  17411. +
  17412. + # The more standards-conforming stlport4 library is
  17413. + # incompatible with the Cstd library. Avoid specifying
  17414. + # it if it's in CXXFLAGS. Ignore libCrun as
  17415. + # -library=stlport4 depends on it.
  17416. + case " $CXX $CXXFLAGS " in
  17417. + *" -library=stlport4 "*)
  17418. + solaris_use_stlport4=yes
  17419. + ;;
  17420. + esac
  17421. +
  17422. + if test "$solaris_use_stlport4" != yes; then
  17423. + postdeps_CXX='-library=Cstd -library=Crun'
  17424. + fi
  17425. + ;;
  17426. + esac
  17427. + ;;
  17428. +
  17429. +solaris*)
  17430. + case $cc_basename in
  17431. + CC*)
  17432. + # The more standards-conforming stlport4 library is
  17433. + # incompatible with the Cstd library. Avoid specifying
  17434. + # it if it's in CXXFLAGS. Ignore libCrun as
  17435. + # -library=stlport4 depends on it.
  17436. + case " $CXX $CXXFLAGS " in
  17437. + *" -library=stlport4 "*)
  17438. + solaris_use_stlport4=yes
  17439. + ;;
  17440. + esac
  17441. +
  17442. + # Adding this requires a known-good setup of shared libraries for
  17443. + # Sun compiler versions before 5.6, else PIC objects from an old
  17444. + # archive will be linked into the output, leading to subtle bugs.
  17445. + if test "$solaris_use_stlport4" != yes; then
  17446. + postdeps_CXX='-library=Cstd -library=Crun'
  17447. + fi
  17448. + ;;
  17449. + esac
  17450. + ;;
  17451. +esac
  17452. +
  17453. +
  17454. +case " $postdeps_CXX " in
  17455. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  17456. +esac
  17457. + compiler_lib_search_dirs_CXX=
  17458. +if test -n "${compiler_lib_search_path_CXX}"; then
  17459. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  17460. +fi
  17461. +
  17462. +
  17463. +
  17464. +
  17465. +
  17466. +
  17467. +
  17468. +
  17469. +
  17470. +
  17471. +
  17472. +
  17473. +
  17474. +
  17475. +
  17476. +
  17477. +
  17478. +
  17479. +
  17480. +
  17481. +
  17482. +
  17483. +
  17484. +
  17485. +
  17486. +
  17487. +
  17488. +
  17489. +
  17490. +
  17491. +
  17492. + lt_prog_compiler_wl_CXX=
  17493. +lt_prog_compiler_pic_CXX=
  17494. +lt_prog_compiler_static_CXX=
  17495. +
  17496. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  17497. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  17498. +
  17499. + # C++ specific cases for pic, static, wl, etc.
  17500. + if test "$GXX" = yes; then
  17501. + lt_prog_compiler_wl_CXX='-Wl,'
  17502. + lt_prog_compiler_static_CXX='-static'
  17503. +
  17504. + case $host_os in
  17505. + aix*)
  17506. + # All AIX code is PIC.
  17507. + if test "$host_cpu" = ia64; then
  17508. + # AIX 5 now supports IA64 processor
  17509. + lt_prog_compiler_static_CXX='-Bstatic'
  17510. + fi
  17511. + ;;
  17512. +
  17513. + amigaos*)
  17514. + case $host_cpu in
  17515. + powerpc)
  17516. + # see comment about AmigaOS4 .so support
  17517. + lt_prog_compiler_pic_CXX='-fPIC'
  17518. + ;;
  17519. + m68k)
  17520. + # FIXME: we need at least 68020 code to build shared libraries, but
  17521. + # adding the `-m68020' flag to GCC prevents building anything better,
  17522. + # like `-m68040'.
  17523. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  17524. + ;;
  17525. + esac
  17526. + ;;
  17527. +
  17528. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17529. + # PIC is the default for these OSes.
  17530. + ;;
  17531. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  17532. + # This hack is so that the source file can tell whether it is being
  17533. + # built for inclusion in a dll (and should export symbols for example).
  17534. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17535. + # (--disable-auto-import) libraries
  17536. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17537. + ;;
  17538. + darwin* | rhapsody*)
  17539. + # PIC is the default on this platform
  17540. + # Common symbols not allowed in MH_DYLIB files
  17541. + lt_prog_compiler_pic_CXX='-fno-common'
  17542. + ;;
  17543. + *djgpp*)
  17544. + # DJGPP does not support shared libraries at all
  17545. + lt_prog_compiler_pic_CXX=
  17546. + ;;
  17547. + interix[3-9]*)
  17548. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17549. + # Instead, we relocate shared libraries at runtime.
  17550. + ;;
  17551. + sysv4*MP*)
  17552. + if test -d /usr/nec; then
  17553. + lt_prog_compiler_pic_CXX=-Kconform_pic
  17554. + fi
  17555. + ;;
  17556. + hpux*)
  17557. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  17558. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  17559. + # sets the default TLS model and affects inlining.
  17560. + case $host_cpu in
  17561. + hppa*64*)
  17562. + ;;
  17563. + *)
  17564. + lt_prog_compiler_pic_CXX='-fPIC'
  17565. + ;;
  17566. + esac
  17567. + ;;
  17568. + *qnx* | *nto*)
  17569. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  17570. + # it will coredump.
  17571. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  17572. + ;;
  17573. + *)
  17574. + lt_prog_compiler_pic_CXX='-fPIC'
  17575. + ;;
  17576. + esac
  17577. + else
  17578. + case $host_os in
  17579. + aix[4-9]*)
  17580. + # All AIX code is PIC.
  17581. + if test "$host_cpu" = ia64; then
  17582. + # AIX 5 now supports IA64 processor
  17583. + lt_prog_compiler_static_CXX='-Bstatic'
  17584. + else
  17585. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  17586. + fi
  17587. + ;;
  17588. + chorus*)
  17589. + case $cc_basename in
  17590. + cxch68*)
  17591. + # Green Hills C++ Compiler
  17592. + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  17593. + ;;
  17594. + esac
  17595. + ;;
  17596. + dgux*)
  17597. + case $cc_basename in
  17598. + ec++*)
  17599. + lt_prog_compiler_pic_CXX='-KPIC'
  17600. + ;;
  17601. + ghcx*)
  17602. + # Green Hills C++ Compiler
  17603. + lt_prog_compiler_pic_CXX='-pic'
  17604. + ;;
  17605. + *)
  17606. + ;;
  17607. + esac
  17608. + ;;
  17609. + freebsd* | dragonfly*)
  17610. + # FreeBSD uses GNU C++
  17611. + ;;
  17612. + hpux9* | hpux10* | hpux11*)
  17613. + case $cc_basename in
  17614. + CC*)
  17615. + lt_prog_compiler_wl_CXX='-Wl,'
  17616. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17617. + if test "$host_cpu" != ia64; then
  17618. + lt_prog_compiler_pic_CXX='+Z'
  17619. + fi
  17620. + ;;
  17621. + aCC*)
  17622. + lt_prog_compiler_wl_CXX='-Wl,'
  17623. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17624. + case $host_cpu in
  17625. + hppa*64*|ia64*)
  17626. + # +Z the default
  17627. + ;;
  17628. + *)
  17629. + lt_prog_compiler_pic_CXX='+Z'
  17630. + ;;
  17631. + esac
  17632. + ;;
  17633. + *)
  17634. + ;;
  17635. + esac
  17636. + ;;
  17637. + interix*)
  17638. + # This is c89, which is MS Visual C++ (no shared libs)
  17639. + # Anyone wants to do a port?
  17640. + ;;
  17641. + irix5* | irix6* | nonstopux*)
  17642. + case $cc_basename in
  17643. + CC*)
  17644. + lt_prog_compiler_wl_CXX='-Wl,'
  17645. + lt_prog_compiler_static_CXX='-non_shared'
  17646. + # CC pic flag -KPIC is the default.
  17647. + ;;
  17648. + *)
  17649. + ;;
  17650. + esac
  17651. + ;;
  17652. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17653. + case $cc_basename in
  17654. + KCC*)
  17655. + # KAI C++ Compiler
  17656. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  17657. + lt_prog_compiler_pic_CXX='-fPIC'
  17658. + ;;
  17659. + ecpc* )
  17660. + # old Intel C++ for x86_64 which still supported -KPIC.
  17661. + lt_prog_compiler_wl_CXX='-Wl,'
  17662. + lt_prog_compiler_pic_CXX='-KPIC'
  17663. + lt_prog_compiler_static_CXX='-static'
  17664. + ;;
  17665. + icpc* )
  17666. + # Intel C++, used to be incompatible with GCC.
  17667. + # ICC 10 doesn't accept -KPIC any more.
  17668. + lt_prog_compiler_wl_CXX='-Wl,'
  17669. + lt_prog_compiler_pic_CXX='-fPIC'
  17670. + lt_prog_compiler_static_CXX='-static'
  17671. + ;;
  17672. + pgCC* | pgcpp*)
  17673. + # Portland Group C++ compiler
  17674. + lt_prog_compiler_wl_CXX='-Wl,'
  17675. + lt_prog_compiler_pic_CXX='-fpic'
  17676. + lt_prog_compiler_static_CXX='-Bstatic'
  17677. + ;;
  17678. + cxx*)
  17679. + # Compaq C++
  17680. + # Make sure the PIC flag is empty. It appears that all Alpha
  17681. + # Linux and Compaq Tru64 Unix objects are PIC.
  17682. + lt_prog_compiler_pic_CXX=
  17683. + lt_prog_compiler_static_CXX='-non_shared'
  17684. + ;;
  17685. + xlc* | xlC*)
  17686. + # IBM XL 8.0 on PPC
  17687. + lt_prog_compiler_wl_CXX='-Wl,'
  17688. + lt_prog_compiler_pic_CXX='-qpic'
  17689. + lt_prog_compiler_static_CXX='-qstaticlink'
  17690. + ;;
  17691. + *)
  17692. + case `$CC -V 2>&1 | sed 5q` in
  17693. + *Sun\ C*)
  17694. + # Sun C++ 5.9
  17695. + lt_prog_compiler_pic_CXX='-KPIC'
  17696. + lt_prog_compiler_static_CXX='-Bstatic'
  17697. + lt_prog_compiler_wl_CXX='-Qoption ld '
  17698. + ;;
  17699. + esac
  17700. + ;;
  17701. + esac
  17702. + ;;
  17703. + lynxos*)
  17704. + ;;
  17705. + m88k*)
  17706. + ;;
  17707. + mvs*)
  17708. + case $cc_basename in
  17709. + cxx*)
  17710. + lt_prog_compiler_pic_CXX='-W c,exportall'
  17711. + ;;
  17712. + *)
  17713. + ;;
  17714. + esac
  17715. + ;;
  17716. + netbsd* | netbsdelf*-gnu)
  17717. + ;;
  17718. + *qnx* | *nto*)
  17719. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  17720. + # it will coredump.
  17721. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  17722. + ;;
  17723. + osf3* | osf4* | osf5*)
  17724. + case $cc_basename in
  17725. + KCC*)
  17726. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  17727. + ;;
  17728. + RCC*)
  17729. + # Rational C++ 2.4.1
  17730. + lt_prog_compiler_pic_CXX='-pic'
  17731. + ;;
  17732. + cxx*)
  17733. + # Digital/Compaq C++
  17734. + lt_prog_compiler_wl_CXX='-Wl,'
  17735. + # Make sure the PIC flag is empty. It appears that all Alpha
  17736. + # Linux and Compaq Tru64 Unix objects are PIC.
  17737. + lt_prog_compiler_pic_CXX=
  17738. + lt_prog_compiler_static_CXX='-non_shared'
  17739. + ;;
  17740. + *)
  17741. + ;;
  17742. + esac
  17743. + ;;
  17744. + psos*)
  17745. + ;;
  17746. + solaris*)
  17747. + case $cc_basename in
  17748. + CC*)
  17749. + # Sun C++ 4.2, 5.x and Centerline C++
  17750. + lt_prog_compiler_pic_CXX='-KPIC'
  17751. + lt_prog_compiler_static_CXX='-Bstatic'
  17752. + lt_prog_compiler_wl_CXX='-Qoption ld '
  17753. + ;;
  17754. + gcx*)
  17755. + # Green Hills C++ Compiler
  17756. + lt_prog_compiler_pic_CXX='-PIC'
  17757. + ;;
  17758. + *)
  17759. + ;;
  17760. + esac
  17761. + ;;
  17762. + sunos4*)
  17763. + case $cc_basename in
  17764. + CC*)
  17765. + # Sun C++ 4.x
  17766. + lt_prog_compiler_pic_CXX='-pic'
  17767. + lt_prog_compiler_static_CXX='-Bstatic'
  17768. + ;;
  17769. + lcc*)
  17770. + # Lucid
  17771. + lt_prog_compiler_pic_CXX='-pic'
  17772. + ;;
  17773. + *)
  17774. + ;;
  17775. + esac
  17776. + ;;
  17777. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17778. + case $cc_basename in
  17779. + CC*)
  17780. + lt_prog_compiler_wl_CXX='-Wl,'
  17781. + lt_prog_compiler_pic_CXX='-KPIC'
  17782. + lt_prog_compiler_static_CXX='-Bstatic'
  17783. + ;;
  17784. + esac
  17785. + ;;
  17786. + tandem*)
  17787. + case $cc_basename in
  17788. + NCC*)
  17789. + # NonStop-UX NCC 3.20
  17790. + lt_prog_compiler_pic_CXX='-KPIC'
  17791. + ;;
  17792. + *)
  17793. + ;;
  17794. + esac
  17795. + ;;
  17796. + vxworks*)
  17797. + ;;
  17798. + *)
  17799. + lt_prog_compiler_can_build_shared_CXX=no
  17800. + ;;
  17801. + esac
  17802. + fi
  17803. +
  17804. +case $host_os in
  17805. + # For platforms which do not support PIC, -DPIC is meaningless:
  17806. + *djgpp*)
  17807. + lt_prog_compiler_pic_CXX=
  17808. + ;;
  17809. + *)
  17810. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  17811. + ;;
  17812. +esac
  17813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  17814. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  17815. +
  17816. +
  17817. +
  17818. +#
  17819. +# Check to make sure the PIC flag actually works.
  17820. +#
  17821. +if test -n "$lt_prog_compiler_pic_CXX"; then
  17822. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  17823. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  17824. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  17825. + $as_echo_n "(cached) " >&6
  17826. +else
  17827. + lt_cv_prog_compiler_pic_works_CXX=no
  17828. + ac_outfile=conftest.$ac_objext
  17829. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17830. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  17831. + # Insert the option either (1) after the last *FLAGS variable, or
  17832. + # (2) before a word containing "conftest.", or (3) at the end.
  17833. + # Note that $ac_compile itself does not contain backslashes and begins
  17834. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  17835. + # The option is referenced via a variable to avoid confusing sed.
  17836. + lt_compile=`echo "$ac_compile" | $SED \
  17837. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17838. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17839. + -e 's:$: $lt_compiler_flag:'`
  17840. + (eval echo "\"\$as_me:13431: $lt_compile\"" >&5)
  17841. + (eval "$lt_compile" 2>conftest.err)
  17842. + ac_status=$?
  17843. + cat conftest.err >&5
  17844. + echo "$as_me:13435: \$? = $ac_status" >&5
  17845. + if (exit $ac_status) && test -s "$ac_outfile"; then
  17846. + # The compiler can only warn and ignore the option if not recognized
  17847. + # So say no if there are warnings other than the usual output.
  17848. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17849. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17850. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17851. + lt_cv_prog_compiler_pic_works_CXX=yes
  17852. + fi
  17853. + fi
  17854. + $RM conftest*
  17855. +
  17856. +fi
  17857. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  17858. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  17859. +
  17860. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  17861. + case $lt_prog_compiler_pic_CXX in
  17862. + "" | " "*) ;;
  17863. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  17864. + esac
  17865. +else
  17866. + lt_prog_compiler_pic_CXX=
  17867. + lt_prog_compiler_can_build_shared_CXX=no
  17868. +fi
  17869. +
  17870. +fi
  17871. +
  17872. +
  17873. +
  17874. +#
  17875. +# Check to make sure the static flag actually works.
  17876. +#
  17877. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  17878. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17879. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  17880. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  17881. + $as_echo_n "(cached) " >&6
  17882. +else
  17883. + lt_cv_prog_compiler_static_works_CXX=no
  17884. + save_LDFLAGS="$LDFLAGS"
  17885. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17886. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17887. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17888. + # The linker can only warn and ignore the option if not recognized
  17889. + # So say no if there are warnings
  17890. + if test -s conftest.err; then
  17891. + # Append any errors to the config.log.
  17892. + cat conftest.err 1>&5
  17893. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  17894. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17895. + if diff conftest.exp conftest.er2 >/dev/null; then
  17896. + lt_cv_prog_compiler_static_works_CXX=yes
  17897. + fi
  17898. + else
  17899. + lt_cv_prog_compiler_static_works_CXX=yes
  17900. + fi
  17901. + fi
  17902. + $RM -r conftest*
  17903. + LDFLAGS="$save_LDFLAGS"
  17904. +
  17905. +fi
  17906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  17907. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  17908. +
  17909. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  17910. + :
  17911. +else
  17912. + lt_prog_compiler_static_CXX=
  17913. +fi
  17914. +
  17915. +
  17916. +
  17917. +
  17918. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17919. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17920. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  17921. + $as_echo_n "(cached) " >&6
  17922. +else
  17923. + lt_cv_prog_compiler_c_o_CXX=no
  17924. + $RM -r conftest 2>/dev/null
  17925. + mkdir conftest
  17926. + cd conftest
  17927. + mkdir out
  17928. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17929. +
  17930. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  17931. + # Insert the option either (1) after the last *FLAGS variable, or
  17932. + # (2) before a word containing "conftest.", or (3) at the end.
  17933. + # Note that $ac_compile itself does not contain backslashes and begins
  17934. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  17935. + lt_compile=`echo "$ac_compile" | $SED \
  17936. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17937. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17938. + -e 's:$: $lt_compiler_flag:'`
  17939. + (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
  17940. + (eval "$lt_compile" 2>out/conftest.err)
  17941. + ac_status=$?
  17942. + cat out/conftest.err >&5
  17943. + echo "$as_me:13534: \$? = $ac_status" >&5
  17944. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17945. + then
  17946. + # The compiler can only warn and ignore the option if not recognized
  17947. + # So say no if there are warnings
  17948. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  17949. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17950. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17951. + lt_cv_prog_compiler_c_o_CXX=yes
  17952. + fi
  17953. + fi
  17954. + chmod u+w . 2>&5
  17955. + $RM conftest*
  17956. + # SGI C++ compiler will create directory out/ii_files/ for
  17957. + # template instantiation
  17958. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17959. + $RM out/* && rmdir out
  17960. + cd ..
  17961. + $RM -r conftest
  17962. + $RM conftest*
  17963. +
  17964. +fi
  17965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17966. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17967. +
  17968. +
  17969. +
  17970. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17971. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17972. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  17973. + $as_echo_n "(cached) " >&6
  17974. +else
  17975. + lt_cv_prog_compiler_c_o_CXX=no
  17976. + $RM -r conftest 2>/dev/null
  17977. + mkdir conftest
  17978. + cd conftest
  17979. + mkdir out
  17980. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17981. +
  17982. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  17983. + # Insert the option either (1) after the last *FLAGS variable, or
  17984. + # (2) before a word containing "conftest.", or (3) at the end.
  17985. + # Note that $ac_compile itself does not contain backslashes and begins
  17986. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  17987. + lt_compile=`echo "$ac_compile" | $SED \
  17988. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17989. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17990. + -e 's:$: $lt_compiler_flag:'`
  17991. + (eval echo "\"\$as_me:13582: $lt_compile\"" >&5)
  17992. + (eval "$lt_compile" 2>out/conftest.err)
  17993. + ac_status=$?
  17994. + cat out/conftest.err >&5
  17995. + echo "$as_me:13586: \$? = $ac_status" >&5
  17996. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17997. + then
  17998. + # The compiler can only warn and ignore the option if not recognized
  17999. + # So say no if there are warnings
  18000. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18001. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  18002. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  18003. + lt_cv_prog_compiler_c_o_CXX=yes
  18004. + fi
  18005. + fi
  18006. + chmod u+w . 2>&5
  18007. + $RM conftest*
  18008. + # SGI C++ compiler will create directory out/ii_files/ for
  18009. + # template instantiation
  18010. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  18011. + $RM out/* && rmdir out
  18012. + cd ..
  18013. + $RM -r conftest
  18014. + $RM conftest*
  18015. +
  18016. +fi
  18017. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  18018. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  18019. +
  18020. +
  18021. +
  18022. +
  18023. +hard_links="nottested"
  18024. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  18025. + # do not overwrite the value of need_locks provided by the user
  18026. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  18027. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  18028. + hard_links=yes
  18029. + $RM conftest*
  18030. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18031. + touch conftest.a
  18032. + ln conftest.a conftest.b 2>&5 || hard_links=no
  18033. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18034. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  18035. +$as_echo "$hard_links" >&6; }
  18036. + if test "$hard_links" = no; then
  18037. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  18038. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  18039. + need_locks=warn
  18040. + fi
  18041. +else
  18042. + need_locks=no
  18043. +fi
  18044. +
  18045. +
  18046. +
  18047. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  18048. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  18049. +
  18050. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  18051. + case $host_os in
  18052. + aix[4-9]*)
  18053. + # If we're using GNU nm, then we don't want the "-C" option.
  18054. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  18055. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  18056. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  18057. + else
  18058. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  18059. + fi
  18060. + ;;
  18061. + pw32*)
  18062. + export_symbols_cmds_CXX="$ltdll_cmds"
  18063. + ;;
  18064. + cygwin* | mingw* | cegcc*)
  18065. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  18066. + ;;
  18067. + linux* | k*bsd*-gnu)
  18068. + link_all_deplibs_CXX=no
  18069. + ;;
  18070. + *)
  18071. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  18072. + ;;
  18073. + esac
  18074. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  18075. +
  18076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  18077. +$as_echo "$ld_shlibs_CXX" >&6; }
  18078. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  18079. +
  18080. +with_gnu_ld_CXX=$with_gnu_ld
  18081. +
  18082. +
  18083. +
  18084. +
  18085. +
  18086. +
  18087. +#
  18088. +# Do we need to explicitly link libc?
  18089. +#
  18090. +case "x$archive_cmds_need_lc_CXX" in
  18091. +x|xyes)
  18092. + # Assume -lc should be added
  18093. + archive_cmds_need_lc_CXX=yes
  18094. +
  18095. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  18096. + case $archive_cmds_CXX in
  18097. + *'~'*)
  18098. + # FIXME: we may have to deal with multi-command sequences.
  18099. + ;;
  18100. + '$CC '*)
  18101. + # Test whether the compiler implicitly links with -lc since on some
  18102. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  18103. + # to ld, don't add -lc before -lgcc.
  18104. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  18105. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  18106. + $RM conftest*
  18107. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18108. +
  18109. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18110. + (eval $ac_compile) 2>&5
  18111. + ac_status=$?
  18112. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18113. + test $ac_status = 0; } 2>conftest.err; then
  18114. + soname=conftest
  18115. + lib=conftest
  18116. + libobjs=conftest.$ac_objext
  18117. + deplibs=
  18118. + wl=$lt_prog_compiler_wl_CXX
  18119. + pic_flag=$lt_prog_compiler_pic_CXX
  18120. + compiler_flags=-v
  18121. + linker_flags=-v
  18122. + verstring=
  18123. + output_objdir=.
  18124. + libname=conftest
  18125. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  18126. + allow_undefined_flag_CXX=
  18127. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  18128. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  18129. + ac_status=$?
  18130. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18131. + test $ac_status = 0; }
  18132. + then
  18133. + archive_cmds_need_lc_CXX=no
  18134. + else
  18135. + archive_cmds_need_lc_CXX=yes
  18136. + fi
  18137. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  18138. + else
  18139. + cat conftest.err 1>&5
  18140. + fi
  18141. + $RM conftest*
  18142. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  18143. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  18144. + ;;
  18145. + esac
  18146. + fi
  18147. + ;;
  18148. +esac
  18149. +
  18150. +
  18151. +
  18152. +
  18153. +
  18154. +
  18155. +
  18156. +
  18157. +
  18158. +
  18159. +
  18160. +
  18161. +
  18162. +
  18163. +
  18164. +
  18165. +
  18166. +
  18167. +
  18168. +
  18169. +
  18170. +
  18171. +
  18172. +
  18173. +
  18174. +
  18175. +
  18176. +
  18177. +
  18178. +
  18179. +
  18180. +
  18181. +
  18182. +
  18183. +
  18184. +
  18185. +
  18186. +
  18187. +
  18188. +
  18189. +
  18190. +
  18191. +
  18192. +
  18193. +
  18194. +
  18195. +
  18196. +
  18197. +
  18198. +
  18199. +
  18200. +
  18201. +
  18202. +
  18203. +
  18204. +
  18205. +
  18206. +
  18207. +
  18208. +
  18209. +
  18210. +
  18211. +
  18212. +
  18213. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  18214. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  18215. +
  18216. +library_names_spec=
  18217. +libname_spec='lib$name'
  18218. +soname_spec=
  18219. +shrext_cmds=".so"
  18220. +postinstall_cmds=
  18221. +postuninstall_cmds=
  18222. +finish_cmds=
  18223. +finish_eval=
  18224. +shlibpath_var=
  18225. +shlibpath_overrides_runpath=unknown
  18226. +version_type=none
  18227. +dynamic_linker="$host_os ld.so"
  18228. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  18229. +need_lib_prefix=unknown
  18230. +hardcode_into_libs=no
  18231. +
  18232. +# when you set need_version to no, make sure it does not cause -set_version
  18233. +# flags to be left without arguments
  18234. +need_version=unknown
  18235. +
  18236. +case $host_os in
  18237. +aix3*)
  18238. + version_type=linux
  18239. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  18240. + shlibpath_var=LIBPATH
  18241. +
  18242. + # AIX 3 has no versioning support, so we append a major version to the name.
  18243. + soname_spec='${libname}${release}${shared_ext}$major'
  18244. + ;;
  18245. +
  18246. +aix[4-9]*)
  18247. + version_type=linux
  18248. + need_lib_prefix=no
  18249. + need_version=no
  18250. + hardcode_into_libs=yes
  18251. + if test "$host_cpu" = ia64; then
  18252. + # AIX 5 supports IA64
  18253. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  18254. + shlibpath_var=LD_LIBRARY_PATH
  18255. + else
  18256. + # With GCC up to 2.95.x, collect2 would create an import file
  18257. + # for dependence libraries. The import file would start with
  18258. + # the line `#! .'. This would cause the generated library to
  18259. + # depend on `.', always an invalid library. This was fixed in
  18260. + # development snapshots of GCC prior to 3.0.
  18261. + case $host_os in
  18262. + aix4 | aix4.[01] | aix4.[01].*)
  18263. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  18264. + echo ' yes '
  18265. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  18266. + :
  18267. + else
  18268. + can_build_shared=no
  18269. + fi
  18270. + ;;
  18271. + esac
  18272. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  18273. + # soname into executable. Probably we can add versioning support to
  18274. + # collect2, so additional links can be useful in future.
  18275. + if test "$aix_use_runtimelinking" = yes; then
  18276. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  18277. + # instead of lib<name>.a to let people know that these are not
  18278. + # typical AIX shared libraries.
  18279. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18280. + else
  18281. + # We preserve .a as extension for shared libraries through AIX4.2
  18282. + # and later when we are not doing run time linking.
  18283. + library_names_spec='${libname}${release}.a $libname.a'
  18284. + soname_spec='${libname}${release}${shared_ext}$major'
  18285. + fi
  18286. + shlibpath_var=LIBPATH
  18287. + fi
  18288. + ;;
  18289. +
  18290. +amigaos*)
  18291. + case $host_cpu in
  18292. + powerpc)
  18293. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  18294. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  18295. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18296. + ;;
  18297. + m68k)
  18298. + library_names_spec='$libname.ixlibrary $libname.a'
  18299. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  18300. + 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'
  18301. + ;;
  18302. + esac
  18303. + ;;
  18304. +
  18305. +beos*)
  18306. + library_names_spec='${libname}${shared_ext}'
  18307. + dynamic_linker="$host_os ld.so"
  18308. + shlibpath_var=LIBRARY_PATH
  18309. + ;;
  18310. +
  18311. +bsdi[45]*)
  18312. + version_type=linux
  18313. + need_version=no
  18314. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18315. + soname_spec='${libname}${release}${shared_ext}$major'
  18316. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  18317. + shlibpath_var=LD_LIBRARY_PATH
  18318. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  18319. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  18320. + # the default ld.so.conf also contains /usr/contrib/lib and
  18321. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  18322. + # libtool to hard-code these into programs
  18323. + ;;
  18324. +
  18325. +cygwin* | mingw* | pw32* | cegcc*)
  18326. + version_type=windows
  18327. + shrext_cmds=".dll"
  18328. + need_version=no
  18329. + need_lib_prefix=no
  18330. +
  18331. + case $GCC,$host_os in
  18332. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  18333. + library_names_spec='$libname.dll.a'
  18334. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  18335. + postinstall_cmds='base_file=`basename \${file}`~
  18336. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  18337. + dldir=$destdir/`dirname \$dlpath`~
  18338. + test -d \$dldir || mkdir -p \$dldir~
  18339. + $install_prog $dir/$dlname \$dldir/$dlname~
  18340. + chmod a+x \$dldir/$dlname~
  18341. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  18342. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  18343. + fi'
  18344. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  18345. + dlpath=$dir/\$dldll~
  18346. + $RM \$dlpath'
  18347. + shlibpath_overrides_runpath=yes
  18348. +
  18349. + case $host_os in
  18350. + cygwin*)
  18351. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  18352. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18353. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  18354. + ;;
  18355. + mingw* | cegcc*)
  18356. + # MinGW DLLs use traditional 'lib' prefix
  18357. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18358. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  18359. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  18360. + # It is most probably a Windows format PATH printed by
  18361. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  18362. + # path with ; separators, and with drive letters. We can handle the
  18363. + # drive letters (cygwin fileutils understands them), so leave them,
  18364. + # especially as we might pass files found there to a mingw objdump,
  18365. + # which wouldn't understand a cygwinified path. Ahh.
  18366. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  18367. + else
  18368. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18369. + fi
  18370. + ;;
  18371. + pw32*)
  18372. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  18373. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18374. + ;;
  18375. + esac
  18376. + ;;
  18377. +
  18378. + *)
  18379. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  18380. + ;;
  18381. + esac
  18382. + dynamic_linker='Win32 ld.exe'
  18383. + # FIXME: first we should search . and the directory the executable is in
  18384. + shlibpath_var=PATH
  18385. + ;;
  18386. +
  18387. +darwin* | rhapsody*)
  18388. + dynamic_linker="$host_os dyld"
  18389. + version_type=darwin
  18390. + need_lib_prefix=no
  18391. + need_version=no
  18392. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  18393. + soname_spec='${libname}${release}${major}$shared_ext'
  18394. + shlibpath_overrides_runpath=yes
  18395. + shlibpath_var=DYLD_LIBRARY_PATH
  18396. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  18397. +
  18398. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  18399. + ;;
  18400. +
  18401. +dgux*)
  18402. + version_type=linux
  18403. + need_lib_prefix=no
  18404. + need_version=no
  18405. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  18406. + soname_spec='${libname}${release}${shared_ext}$major'
  18407. + shlibpath_var=LD_LIBRARY_PATH
  18408. + ;;
  18409. +
  18410. +freebsd1*)
  18411. + dynamic_linker=no
  18412. + ;;
  18413. +
  18414. +freebsd* | dragonfly*)
  18415. + # DragonFly does not have aout. When/if they implement a new
  18416. + # versioning mechanism, adjust this.
  18417. + if test -x /usr/bin/objformat; then
  18418. + objformat=`/usr/bin/objformat`
  18419. + else
  18420. + case $host_os in
  18421. + freebsd[123]*) objformat=aout ;;
  18422. + *) objformat=elf ;;
  18423. + esac
  18424. + fi
  18425. + version_type=freebsd-$objformat
  18426. + case $version_type in
  18427. + freebsd-elf*)
  18428. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18429. + need_version=no
  18430. + need_lib_prefix=no
  18431. + ;;
  18432. + freebsd-*)
  18433. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  18434. + need_version=yes
  18435. + ;;
  18436. + esac
  18437. + shlibpath_var=LD_LIBRARY_PATH
  18438. + case $host_os in
  18439. + freebsd2*)
  18440. + shlibpath_overrides_runpath=yes
  18441. + ;;
  18442. + freebsd3.[01]* | freebsdelf3.[01]*)
  18443. + shlibpath_overrides_runpath=yes
  18444. + hardcode_into_libs=yes
  18445. + ;;
  18446. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  18447. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  18448. + shlibpath_overrides_runpath=no
  18449. + hardcode_into_libs=yes
  18450. + ;;
  18451. + *) # from 4.6 on, and DragonFly
  18452. + shlibpath_overrides_runpath=yes
  18453. + hardcode_into_libs=yes
  18454. + ;;
  18455. + esac
  18456. + ;;
  18457. +
  18458. +gnu*)
  18459. + version_type=linux
  18460. + need_lib_prefix=no
  18461. + need_version=no
  18462. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  18463. + soname_spec='${libname}${release}${shared_ext}$major'
  18464. + shlibpath_var=LD_LIBRARY_PATH
  18465. + hardcode_into_libs=yes
  18466. + ;;
  18467. +
  18468. +hpux9* | hpux10* | hpux11*)
  18469. + # Give a soname corresponding to the major version so that dld.sl refuses to
  18470. + # link against other versions.
  18471. + version_type=sunos
  18472. + need_lib_prefix=no
  18473. + need_version=no
  18474. + case $host_cpu in
  18475. + ia64*)
  18476. + shrext_cmds='.so'
  18477. + hardcode_into_libs=yes
  18478. + dynamic_linker="$host_os dld.so"
  18479. + shlibpath_var=LD_LIBRARY_PATH
  18480. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18481. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18482. + soname_spec='${libname}${release}${shared_ext}$major'
  18483. + if test "X$HPUX_IA64_MODE" = X32; then
  18484. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  18485. + else
  18486. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  18487. + fi
  18488. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18489. + ;;
  18490. + hppa*64*)
  18491. + shrext_cmds='.sl'
  18492. + hardcode_into_libs=yes
  18493. + dynamic_linker="$host_os dld.sl"
  18494. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  18495. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18496. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18497. + soname_spec='${libname}${release}${shared_ext}$major'
  18498. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  18499. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18500. + ;;
  18501. + *)
  18502. + shrext_cmds='.sl'
  18503. + dynamic_linker="$host_os dld.sl"
  18504. + shlibpath_var=SHLIB_PATH
  18505. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  18506. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18507. + soname_spec='${libname}${release}${shared_ext}$major'
  18508. + ;;
  18509. + esac
  18510. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  18511. + postinstall_cmds='chmod 555 $lib'
  18512. + ;;
  18513. +
  18514. +interix[3-9]*)
  18515. + version_type=linux
  18516. + need_lib_prefix=no
  18517. + need_version=no
  18518. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18519. + soname_spec='${libname}${release}${shared_ext}$major'
  18520. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  18521. + shlibpath_var=LD_LIBRARY_PATH
  18522. + shlibpath_overrides_runpath=no
  18523. + hardcode_into_libs=yes
  18524. + ;;
  18525. +
  18526. +irix5* | irix6* | nonstopux*)
  18527. + case $host_os in
  18528. + nonstopux*) version_type=nonstopux ;;
  18529. + *)
  18530. + if test "$lt_cv_prog_gnu_ld" = yes; then
  18531. + version_type=linux
  18532. + else
  18533. + version_type=irix
  18534. + fi ;;
  18535. + esac
  18536. + need_lib_prefix=no
  18537. + need_version=no
  18538. + soname_spec='${libname}${release}${shared_ext}$major'
  18539. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  18540. + case $host_os in
  18541. + irix5* | nonstopux*)
  18542. + libsuff= shlibsuff=
  18543. + ;;
  18544. + *)
  18545. + case $LD in # libtool.m4 will add one of these switches to LD
  18546. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  18547. + libsuff= shlibsuff= libmagic=32-bit;;
  18548. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  18549. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  18550. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  18551. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  18552. + *) libsuff= shlibsuff= libmagic=never-match;;
  18553. + esac
  18554. + ;;
  18555. + esac
  18556. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  18557. + shlibpath_overrides_runpath=no
  18558. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  18559. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  18560. + hardcode_into_libs=yes
  18561. + ;;
  18562. +
  18563. +# No shared lib support for Linux oldld, aout, or coff.
  18564. +linux*oldld* | linux*aout* | linux*coff*)
  18565. + dynamic_linker=no
  18566. + ;;
  18567. +
  18568. +# This must be Linux ELF.
  18569. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  18570. + version_type=linux
  18571. + need_lib_prefix=no
  18572. + need_version=no
  18573. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18574. + soname_spec='${libname}${release}${shared_ext}$major'
  18575. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  18576. + shlibpath_var=LD_LIBRARY_PATH
  18577. + shlibpath_overrides_runpath=no
  18578. + # Some binutils ld are patched to set DT_RUNPATH
  18579. + save_LDFLAGS=$LDFLAGS
  18580. + save_libdir=$libdir
  18581. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  18582. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  18583. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18584. +/* end confdefs.h. */
  18585. +
  18586. +int
  18587. +main ()
  18588. +{
  18589. +
  18590. + ;
  18591. + return 0;
  18592. +}
  18593. +_ACEOF
  18594. +if ac_fn_cxx_try_link "$LINENO"; then :
  18595. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  18596. + shlibpath_overrides_runpath=yes
  18597. +fi
  18598. +fi
  18599. +rm -f core conftest.err conftest.$ac_objext \
  18600. + conftest$ac_exeext conftest.$ac_ext
  18601. + LDFLAGS=$save_LDFLAGS
  18602. + libdir=$save_libdir
  18603. +
  18604. + # This implies no fast_install, which is unacceptable.
  18605. + # Some rework will be needed to allow for fast_install
  18606. + # before this can be enabled.
  18607. + hardcode_into_libs=yes
  18608. +
  18609. + # Append ld.so.conf contents to the search path
  18610. + if test -f /etc/ld.so.conf; then
  18611. + 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' ' '`
  18612. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18613. + fi
  18614. +
  18615. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  18616. + # powerpc, because MkLinux only supported shared libraries with the
  18617. + # GNU dynamic linker. Since this was broken with cross compilers,
  18618. + # most powerpc-linux boxes support dynamic linking these days and
  18619. + # people can always --disable-shared, the test was removed, and we
  18620. + # assume the GNU/Linux dynamic linker is in use.
  18621. + dynamic_linker='GNU/Linux ld.so'
  18622. + ;;
  18623. +
  18624. +netbsdelf*-gnu)
  18625. + version_type=linux
  18626. + need_lib_prefix=no
  18627. + need_version=no
  18628. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18629. + soname_spec='${libname}${release}${shared_ext}$major'
  18630. + shlibpath_var=LD_LIBRARY_PATH
  18631. + shlibpath_overrides_runpath=no
  18632. + hardcode_into_libs=yes
  18633. + dynamic_linker='NetBSD ld.elf_so'
  18634. + ;;
  18635. +
  18636. +netbsd*)
  18637. + version_type=sunos
  18638. + need_lib_prefix=no
  18639. + need_version=no
  18640. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  18641. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18642. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18643. + dynamic_linker='NetBSD (a.out) ld.so'
  18644. + else
  18645. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18646. + soname_spec='${libname}${release}${shared_ext}$major'
  18647. + dynamic_linker='NetBSD ld.elf_so'
  18648. + fi
  18649. + shlibpath_var=LD_LIBRARY_PATH
  18650. + shlibpath_overrides_runpath=yes
  18651. + hardcode_into_libs=yes
  18652. + ;;
  18653. +
  18654. +newsos6)
  18655. + version_type=linux
  18656. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18657. + shlibpath_var=LD_LIBRARY_PATH
  18658. + shlibpath_overrides_runpath=yes
  18659. + ;;
  18660. +
  18661. +*nto* | *qnx*)
  18662. + version_type=qnx
  18663. + need_lib_prefix=no
  18664. + need_version=no
  18665. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18666. + soname_spec='${libname}${release}${shared_ext}$major'
  18667. + shlibpath_var=LD_LIBRARY_PATH
  18668. + shlibpath_overrides_runpath=no
  18669. + hardcode_into_libs=yes
  18670. + dynamic_linker='ldqnx.so'
  18671. + ;;
  18672. +
  18673. +openbsd*)
  18674. + version_type=sunos
  18675. + sys_lib_dlsearch_path_spec="/usr/lib"
  18676. + need_lib_prefix=no
  18677. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  18678. + case $host_os in
  18679. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  18680. + *) need_version=no ;;
  18681. + esac
  18682. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18683. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18684. + shlibpath_var=LD_LIBRARY_PATH
  18685. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18686. + case $host_os in
  18687. + openbsd2.[89] | openbsd2.[89].*)
  18688. + shlibpath_overrides_runpath=no
  18689. + ;;
  18690. + *)
  18691. + shlibpath_overrides_runpath=yes
  18692. + ;;
  18693. + esac
  18694. + else
  18695. + shlibpath_overrides_runpath=yes
  18696. + fi
  18697. + ;;
  18698. +
  18699. +os2*)
  18700. + libname_spec='$name'
  18701. + shrext_cmds=".dll"
  18702. + need_lib_prefix=no
  18703. + library_names_spec='$libname${shared_ext} $libname.a'
  18704. + dynamic_linker='OS/2 ld.exe'
  18705. + shlibpath_var=LIBPATH
  18706. + ;;
  18707. +
  18708. +osf3* | osf4* | osf5*)
  18709. + version_type=osf
  18710. + need_lib_prefix=no
  18711. + need_version=no
  18712. + soname_spec='${libname}${release}${shared_ext}$major'
  18713. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18714. + shlibpath_var=LD_LIBRARY_PATH
  18715. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18716. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18717. + ;;
  18718. +
  18719. +rdos*)
  18720. + dynamic_linker=no
  18721. + ;;
  18722. +
  18723. +solaris*)
  18724. + version_type=linux
  18725. + need_lib_prefix=no
  18726. + need_version=no
  18727. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18728. + soname_spec='${libname}${release}${shared_ext}$major'
  18729. + shlibpath_var=LD_LIBRARY_PATH
  18730. + shlibpath_overrides_runpath=yes
  18731. + hardcode_into_libs=yes
  18732. + # ldd complains unless libraries are executable
  18733. + postinstall_cmds='chmod +x $lib'
  18734. + ;;
  18735. +
  18736. +sunos4*)
  18737. + version_type=sunos
  18738. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18739. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18740. + shlibpath_var=LD_LIBRARY_PATH
  18741. + shlibpath_overrides_runpath=yes
  18742. + if test "$with_gnu_ld" = yes; then
  18743. + need_lib_prefix=no
  18744. + fi
  18745. + need_version=yes
  18746. + ;;
  18747. +
  18748. +sysv4 | sysv4.3*)
  18749. + version_type=linux
  18750. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18751. + soname_spec='${libname}${release}${shared_ext}$major'
  18752. + shlibpath_var=LD_LIBRARY_PATH
  18753. + case $host_vendor in
  18754. + sni)
  18755. + shlibpath_overrides_runpath=no
  18756. + need_lib_prefix=no
  18757. + runpath_var=LD_RUN_PATH
  18758. + ;;
  18759. + siemens)
  18760. + need_lib_prefix=no
  18761. + ;;
  18762. + motorola)
  18763. + need_lib_prefix=no
  18764. + need_version=no
  18765. + shlibpath_overrides_runpath=no
  18766. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18767. + ;;
  18768. + esac
  18769. + ;;
  18770. +
  18771. +sysv4*MP*)
  18772. + if test -d /usr/nec ;then
  18773. + version_type=linux
  18774. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18775. + soname_spec='$libname${shared_ext}.$major'
  18776. + shlibpath_var=LD_LIBRARY_PATH
  18777. + fi
  18778. + ;;
  18779. +
  18780. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18781. + version_type=freebsd-elf
  18782. + need_lib_prefix=no
  18783. + need_version=no
  18784. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18785. + soname_spec='${libname}${release}${shared_ext}$major'
  18786. + shlibpath_var=LD_LIBRARY_PATH
  18787. + shlibpath_overrides_runpath=yes
  18788. + hardcode_into_libs=yes
  18789. + if test "$with_gnu_ld" = yes; then
  18790. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  18791. + else
  18792. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  18793. + case $host_os in
  18794. + sco3.2v5*)
  18795. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  18796. + ;;
  18797. + esac
  18798. + fi
  18799. + sys_lib_dlsearch_path_spec='/usr/lib'
  18800. + ;;
  18801. +
  18802. +tpf*)
  18803. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  18804. + version_type=linux
  18805. + need_lib_prefix=no
  18806. + need_version=no
  18807. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18808. + shlibpath_var=LD_LIBRARY_PATH
  18809. + shlibpath_overrides_runpath=no
  18810. + hardcode_into_libs=yes
  18811. + ;;
  18812. +
  18813. +uts4*)
  18814. + version_type=linux
  18815. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18816. + soname_spec='${libname}${release}${shared_ext}$major'
  18817. + shlibpath_var=LD_LIBRARY_PATH
  18818. + ;;
  18819. +
  18820. +*)
  18821. + dynamic_linker=no
  18822. + ;;
  18823. +esac
  18824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  18825. +$as_echo "$dynamic_linker" >&6; }
  18826. +test "$dynamic_linker" = no && can_build_shared=no
  18827. +
  18828. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18829. +if test "$GCC" = yes; then
  18830. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18831. +fi
  18832. +
  18833. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  18834. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  18835. +fi
  18836. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  18837. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  18838. +fi
  18839. +
  18840. +
  18841. +
  18842. +
  18843. +
  18844. +
  18845. +
  18846. +
  18847. +
  18848. +
  18849. +
  18850. +
  18851. +
  18852. +
  18853. +
  18854. +
  18855. +
  18856. +
  18857. +
  18858. +
  18859. +
  18860. +
  18861. +
  18862. +
  18863. +
  18864. +
  18865. +
  18866. +
  18867. +
  18868. +
  18869. +
  18870. +
  18871. +
  18872. +
  18873. +
  18874. +
  18875. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  18876. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  18877. +hardcode_action_CXX=
  18878. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  18879. + test -n "$runpath_var_CXX" ||
  18880. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  18881. +
  18882. + # We can hardcode non-existent directories.
  18883. + if test "$hardcode_direct_CXX" != no &&
  18884. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18885. + # have to relink, otherwise we might link with an installed library
  18886. + # when we should be linking with a yet-to-be-installed one
  18887. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  18888. + test "$hardcode_minus_L_CXX" != no; then
  18889. + # Linking always hardcodes the temporary library directory.
  18890. + hardcode_action_CXX=relink
  18891. + else
  18892. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18893. + hardcode_action_CXX=immediate
  18894. + fi
  18895. +else
  18896. + # We cannot hardcode anything, or else we can only hardcode existing
  18897. + # directories.
  18898. + hardcode_action_CXX=unsupported
  18899. +fi
  18900. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  18901. +$as_echo "$hardcode_action_CXX" >&6; }
  18902. +
  18903. +if test "$hardcode_action_CXX" = relink ||
  18904. + test "$inherit_rpath_CXX" = yes; then
  18905. + # Fast installation is not supported
  18906. + enable_fast_install=no
  18907. +elif test "$shlibpath_overrides_runpath" = yes ||
  18908. + test "$enable_shared" = no; then
  18909. + # Fast installation is not necessary
  18910. + enable_fast_install=needless
  18911. +fi
  18912. +
  18913. +
  18914. +
  18915. +
  18916. +
  18917. +
  18918. +
  18919. + fi # test -n "$compiler"
  18920. +
  18921. + CC=$lt_save_CC
  18922. + LDCXX=$LD
  18923. + LD=$lt_save_LD
  18924. + GCC=$lt_save_GCC
  18925. + with_gnu_ld=$lt_save_with_gnu_ld
  18926. + lt_cv_path_LDCXX=$lt_cv_path_LD
  18927. + lt_cv_path_LD=$lt_save_path_LD
  18928. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  18929. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  18930. +fi # test "$_lt_caught_CXX_error" != yes
  18931. +
  18932. +ac_ext=c
  18933. +ac_cpp='$CPP $CPPFLAGS'
  18934. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18935. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18936. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18937. +
  18938. +
  18939. +
  18940. +
  18941. +
  18942. +
  18943. +
  18944. +
  18945. +
  18946. +
  18947. +
  18948. +
  18949. +
  18950. + ac_config_commands="$ac_config_commands libtool"
  18951. +
  18952. +
  18953. +
  18954. +
  18955. +# Only expand once:
  18956. +
  18957. +
  18958. +
  18959. +# Checks for libraries.
  18960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18961. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  18962. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  18963. + $as_echo_n "(cached) " >&6
  18964. +else
  18965. + ac_check_lib_save_LIBS=$LIBS
  18966. +LIBS="-ldl $LIBS"
  18967. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. +/* end confdefs.h. */
  18969. +
  18970. +/* Override any GCC internal prototype to avoid an error.
  18971. + Use char because int might match the return type of a GCC
  18972. + builtin and then its argument prototype would still apply. */
  18973. +#ifdef __cplusplus
  18974. +extern "C"
  18975. +#endif
  18976. +char dlopen ();
  18977. +int
  18978. +main ()
  18979. +{
  18980. +return dlopen ();
  18981. + ;
  18982. + return 0;
  18983. +}
  18984. +_ACEOF
  18985. +if ac_fn_c_try_link "$LINENO"; then :
  18986. + ac_cv_lib_dl_dlopen=yes
  18987. +else
  18988. + ac_cv_lib_dl_dlopen=no
  18989. +fi
  18990. +rm -f core conftest.err conftest.$ac_objext \
  18991. + conftest$ac_exeext conftest.$ac_ext
  18992. +LIBS=$ac_check_lib_save_LIBS
  18993. +fi
  18994. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18995. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18996. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  18997. + cat >>confdefs.h <<_ACEOF
  18998. +#define HAVE_LIBDL 1
  18999. +_ACEOF
  19000. +
  19001. + LIBS="-ldl $LIBS"
  19002. +
  19003. +fi
  19004. +
  19005. +
  19006. +# Checks for header files.
  19007. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  19008. +# for constant arguments. Useless!
  19009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  19010. +$as_echo_n "checking for working alloca.h... " >&6; }
  19011. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  19012. + $as_echo_n "(cached) " >&6
  19013. +else
  19014. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19015. +/* end confdefs.h. */
  19016. +#include <alloca.h>
  19017. +int
  19018. +main ()
  19019. +{
  19020. +char *p = (char *) alloca (2 * sizeof (int));
  19021. + if (p) return 0;
  19022. + ;
  19023. + return 0;
  19024. +}
  19025. +_ACEOF
  19026. +if ac_fn_c_try_link "$LINENO"; then :
  19027. + ac_cv_working_alloca_h=yes
  19028. +else
  19029. + ac_cv_working_alloca_h=no
  19030. +fi
  19031. +rm -f core conftest.err conftest.$ac_objext \
  19032. + conftest$ac_exeext conftest.$ac_ext
  19033. +fi
  19034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  19035. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  19036. +if test $ac_cv_working_alloca_h = yes; then
  19037. +
  19038. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  19039. +
  19040. +fi
  19041. +
  19042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  19043. +$as_echo_n "checking for alloca... " >&6; }
  19044. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  19045. + $as_echo_n "(cached) " >&6
  19046. +else
  19047. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. +/* end confdefs.h. */
  19049. +#ifdef __GNUC__
  19050. +# define alloca __builtin_alloca
  19051. +#else
  19052. +# ifdef _MSC_VER
  19053. +# include <malloc.h>
  19054. +# define alloca _alloca
  19055. +# else
  19056. +# ifdef HAVE_ALLOCA_H
  19057. +# include <alloca.h>
  19058. +# else
  19059. +# ifdef _AIX
  19060. + #pragma alloca
  19061. +# else
  19062. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  19063. +char *alloca ();
  19064. +# endif
  19065. +# endif
  19066. +# endif
  19067. +# endif
  19068. +#endif
  19069. +
  19070. +int
  19071. +main ()
  19072. +{
  19073. +char *p = (char *) alloca (1);
  19074. + if (p) return 0;
  19075. + ;
  19076. + return 0;
  19077. +}
  19078. +_ACEOF
  19079. +if ac_fn_c_try_link "$LINENO"; then :
  19080. + ac_cv_func_alloca_works=yes
  19081. +else
  19082. + ac_cv_func_alloca_works=no
  19083. +fi
  19084. +rm -f core conftest.err conftest.$ac_objext \
  19085. + conftest$ac_exeext conftest.$ac_ext
  19086. +fi
  19087. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  19088. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  19089. +
  19090. +if test $ac_cv_func_alloca_works = yes; then
  19091. +
  19092. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  19093. +
  19094. +else
  19095. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  19096. +# that cause trouble. Some versions do not even contain alloca or
  19097. +# contain a buggy version. If you still want to use their alloca,
  19098. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  19099. +
  19100. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  19101. +
  19102. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  19103. +
  19104. +
  19105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  19106. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  19107. +if test "${ac_cv_os_cray+set}" = set; then :
  19108. + $as_echo_n "(cached) " >&6
  19109. +else
  19110. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19111. +/* end confdefs.h. */
  19112. +#if defined CRAY && ! defined CRAY2
  19113. +webecray
  19114. +#else
  19115. +wenotbecray
  19116. +#endif
  19117. +
  19118. +_ACEOF
  19119. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19120. + $EGREP "webecray" >/dev/null 2>&1; then :
  19121. + ac_cv_os_cray=yes
  19122. +else
  19123. + ac_cv_os_cray=no
  19124. +fi
  19125. +rm -f conftest*
  19126. +
  19127. +fi
  19128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  19129. +$as_echo "$ac_cv_os_cray" >&6; }
  19130. +if test $ac_cv_os_cray = yes; then
  19131. + for ac_func in _getb67 GETB67 getb67; do
  19132. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19133. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19134. +eval as_val=\$$as_ac_var
  19135. + if test "x$as_val" = x""yes; then :
  19136. +
  19137. +cat >>confdefs.h <<_ACEOF
  19138. +#define CRAY_STACKSEG_END $ac_func
  19139. +_ACEOF
  19140. +
  19141. + break
  19142. +fi
  19143. +
  19144. + done
  19145. +fi
  19146. +
  19147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  19148. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  19149. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  19150. + $as_echo_n "(cached) " >&6
  19151. +else
  19152. + if test "$cross_compiling" = yes; then :
  19153. + ac_cv_c_stack_direction=0
  19154. +else
  19155. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19156. +/* end confdefs.h. */
  19157. +$ac_includes_default
  19158. +int
  19159. +find_stack_direction ()
  19160. +{
  19161. + static char *addr = 0;
  19162. + auto char dummy;
  19163. + if (addr == 0)
  19164. + {
  19165. + addr = &dummy;
  19166. + return find_stack_direction ();
  19167. + }
  19168. + else
  19169. + return (&dummy > addr) ? 1 : -1;
  19170. +}
  19171. +
  19172. +int
  19173. +main ()
  19174. +{
  19175. + return find_stack_direction () < 0;
  19176. +}
  19177. +_ACEOF
  19178. +if ac_fn_c_try_run "$LINENO"; then :
  19179. + ac_cv_c_stack_direction=1
  19180. +else
  19181. + ac_cv_c_stack_direction=-1
  19182. +fi
  19183. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19184. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19185. +fi
  19186. +
  19187. +fi
  19188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  19189. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  19190. +cat >>confdefs.h <<_ACEOF
  19191. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  19192. +_ACEOF
  19193. +
  19194. +
  19195. +fi
  19196. +
  19197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  19198. +$as_echo_n "checking for ANSI C header files... " >&6; }
  19199. +if test "${ac_cv_header_stdc+set}" = set; then :
  19200. + $as_echo_n "(cached) " >&6
  19201. +else
  19202. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19203. +/* end confdefs.h. */
  19204. +#include <stdlib.h>
  19205. +#include <stdarg.h>
  19206. +#include <string.h>
  19207. +#include <float.h>
  19208. +
  19209. +int
  19210. +main ()
  19211. +{
  19212. +
  19213. + ;
  19214. + return 0;
  19215. +}
  19216. +_ACEOF
  19217. +if ac_fn_c_try_compile "$LINENO"; then :
  19218. + ac_cv_header_stdc=yes
  19219. +else
  19220. + ac_cv_header_stdc=no
  19221. +fi
  19222. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19223. +
  19224. +if test $ac_cv_header_stdc = yes; then
  19225. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19226. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19227. +/* end confdefs.h. */
  19228. +#include <string.h>
  19229. +
  19230. +_ACEOF
  19231. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19232. + $EGREP "memchr" >/dev/null 2>&1; then :
  19233. +
  19234. +else
  19235. + ac_cv_header_stdc=no
  19236. +fi
  19237. +rm -f conftest*
  19238. +
  19239. +fi
  19240. +
  19241. +if test $ac_cv_header_stdc = yes; then
  19242. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19243. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19244. +/* end confdefs.h. */
  19245. +#include <stdlib.h>
  19246. +
  19247. +_ACEOF
  19248. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19249. + $EGREP "free" >/dev/null 2>&1; then :
  19250. +
  19251. +else
  19252. + ac_cv_header_stdc=no
  19253. +fi
  19254. +rm -f conftest*
  19255. +
  19256. +fi
  19257. +
  19258. +if test $ac_cv_header_stdc = yes; then
  19259. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19260. + if test "$cross_compiling" = yes; then :
  19261. + :
  19262. +else
  19263. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19264. +/* end confdefs.h. */
  19265. +#include <ctype.h>
  19266. +#include <stdlib.h>
  19267. +#if ((' ' & 0x0FF) == 0x020)
  19268. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19269. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19270. +#else
  19271. +# define ISLOWER(c) \
  19272. + (('a' <= (c) && (c) <= 'i') \
  19273. + || ('j' <= (c) && (c) <= 'r') \
  19274. + || ('s' <= (c) && (c) <= 'z'))
  19275. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19276. +#endif
  19277. +
  19278. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19279. +int
  19280. +main ()
  19281. +{
  19282. + int i;
  19283. + for (i = 0; i < 256; i++)
  19284. + if (XOR (islower (i), ISLOWER (i))
  19285. + || toupper (i) != TOUPPER (i))
  19286. + return 2;
  19287. + return 0;
  19288. +}
  19289. +_ACEOF
  19290. +if ac_fn_c_try_run "$LINENO"; then :
  19291. +
  19292. +else
  19293. + ac_cv_header_stdc=no
  19294. +fi
  19295. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19296. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19297. +fi
  19298. +
  19299. +fi
  19300. +fi
  19301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  19302. +$as_echo "$ac_cv_header_stdc" >&6; }
  19303. +if test $ac_cv_header_stdc = yes; then
  19304. +
  19305. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  19306. +
  19307. +fi
  19308. +
  19309. +for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h
  19310. +do :
  19311. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19312. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19313. +eval as_val=\$$as_ac_Header
  19314. + if test "x$as_val" = x""yes; then :
  19315. + cat >>confdefs.h <<_ACEOF
  19316. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19317. +_ACEOF
  19318. +
  19319. +fi
  19320. +
  19321. +done
  19322. +
  19323. +
  19324. +# Checks for typedefs, structures, and compiler characteristics.
  19325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  19326. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  19327. +if test "${ac_cv_c_const+set}" = set; then :
  19328. + $as_echo_n "(cached) " >&6
  19329. +else
  19330. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19331. +/* end confdefs.h. */
  19332. +
  19333. +int
  19334. +main ()
  19335. +{
  19336. +/* FIXME: Include the comments suggested by Paul. */
  19337. +#ifndef __cplusplus
  19338. + /* Ultrix mips cc rejects this. */
  19339. + typedef int charset[2];
  19340. + const charset cs;
  19341. + /* SunOS 4.1.1 cc rejects this. */
  19342. + char const *const *pcpcc;
  19343. + char **ppc;
  19344. + /* NEC SVR4.0.2 mips cc rejects this. */
  19345. + struct point {int x, y;};
  19346. + static struct point const zero = {0,0};
  19347. + /* AIX XL C 1.02.0.0 rejects this.
  19348. + It does not let you subtract one const X* pointer from another in
  19349. + an arm of an if-expression whose if-part is not a constant
  19350. + expression */
  19351. + const char *g = "string";
  19352. + pcpcc = &g + (g ? g-g : 0);
  19353. + /* HPUX 7.0 cc rejects these. */
  19354. + ++pcpcc;
  19355. + ppc = (char**) pcpcc;
  19356. + pcpcc = (char const *const *) ppc;
  19357. + { /* SCO 3.2v4 cc rejects this. */
  19358. + char *t;
  19359. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  19360. +
  19361. + *t++ = 0;
  19362. + if (s) return 0;
  19363. + }
  19364. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19365. + int x[] = {25, 17};
  19366. + const int *foo = &x[0];
  19367. + ++foo;
  19368. + }
  19369. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19370. + typedef const int *iptr;
  19371. + iptr p = 0;
  19372. + ++p;
  19373. + }
  19374. + { /* AIX XL C 1.02.0.0 rejects this saying
  19375. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19376. + struct s { int j; const int *ap[3]; };
  19377. + struct s *b; b->j = 5;
  19378. + }
  19379. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19380. + const int foo = 10;
  19381. + if (!foo) return 0;
  19382. + }
  19383. + return !cs[0] && !zero.x;
  19384. +#endif
  19385. +
  19386. + ;
  19387. + return 0;
  19388. +}
  19389. +_ACEOF
  19390. +if ac_fn_c_try_compile "$LINENO"; then :
  19391. + ac_cv_c_const=yes
  19392. +else
  19393. + ac_cv_c_const=no
  19394. +fi
  19395. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19396. +fi
  19397. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  19398. +$as_echo "$ac_cv_c_const" >&6; }
  19399. +if test $ac_cv_c_const = no; then
  19400. +
  19401. +$as_echo "#define const /**/" >>confdefs.h
  19402. +
  19403. +fi
  19404. +
  19405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  19406. +$as_echo_n "checking for inline... " >&6; }
  19407. +if test "${ac_cv_c_inline+set}" = set; then :
  19408. + $as_echo_n "(cached) " >&6
  19409. +else
  19410. + ac_cv_c_inline=no
  19411. +for ac_kw in inline __inline__ __inline; do
  19412. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19413. +/* end confdefs.h. */
  19414. +#ifndef __cplusplus
  19415. +typedef int foo_t;
  19416. +static $ac_kw foo_t static_foo () {return 0; }
  19417. +$ac_kw foo_t foo () {return 0; }
  19418. +#endif
  19419. +
  19420. +_ACEOF
  19421. +if ac_fn_c_try_compile "$LINENO"; then :
  19422. + ac_cv_c_inline=$ac_kw
  19423. +fi
  19424. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19425. + test "$ac_cv_c_inline" != no && break
  19426. +done
  19427. +
  19428. +fi
  19429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  19430. +$as_echo "$ac_cv_c_inline" >&6; }
  19431. +
  19432. +case $ac_cv_c_inline in
  19433. + inline | yes) ;;
  19434. + *)
  19435. + case $ac_cv_c_inline in
  19436. + no) ac_val=;;
  19437. + *) ac_val=$ac_cv_c_inline;;
  19438. + esac
  19439. + cat >>confdefs.h <<_ACEOF
  19440. +#ifndef __cplusplus
  19441. +#define inline $ac_val
  19442. +#endif
  19443. +_ACEOF
  19444. + ;;
  19445. +esac
  19446. +
  19447. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  19448. +if test "x$ac_cv_type_size_t" = x""yes; then :
  19449. +
  19450. +else
  19451. +
  19452. +cat >>confdefs.h <<_ACEOF
  19453. +#define size_t unsigned int
  19454. +_ACEOF
  19455. +
  19456. +fi
  19457. +
  19458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  19459. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  19460. +if test "${ac_cv_header_time+set}" = set; then :
  19461. + $as_echo_n "(cached) " >&6
  19462. +else
  19463. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19464. +/* end confdefs.h. */
  19465. +#include <sys/types.h>
  19466. +#include <sys/time.h>
  19467. +#include <time.h>
  19468. +
  19469. +int
  19470. +main ()
  19471. +{
  19472. +if ((struct tm *) 0)
  19473. +return 0;
  19474. + ;
  19475. + return 0;
  19476. +}
  19477. +_ACEOF
  19478. +if ac_fn_c_try_compile "$LINENO"; then :
  19479. + ac_cv_header_time=yes
  19480. +else
  19481. + ac_cv_header_time=no
  19482. +fi
  19483. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19484. +fi
  19485. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  19486. +$as_echo "$ac_cv_header_time" >&6; }
  19487. +if test $ac_cv_header_time = yes; then
  19488. +
  19489. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  19490. +
  19491. +fi
  19492. +
  19493. +
  19494. +# Checks for library functions.
  19495. +if test $ac_cv_c_compiler_gnu = yes; then
  19496. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  19497. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  19498. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  19499. + $as_echo_n "(cached) " >&6
  19500. +else
  19501. + ac_pattern="Autoconf.*'x'"
  19502. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19503. +/* end confdefs.h. */
  19504. +#include <sgtty.h>
  19505. +Autoconf TIOCGETP
  19506. +_ACEOF
  19507. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19508. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  19509. + ac_cv_prog_gcc_traditional=yes
  19510. +else
  19511. + ac_cv_prog_gcc_traditional=no
  19512. +fi
  19513. +rm -f conftest*
  19514. +
  19515. +
  19516. + if test $ac_cv_prog_gcc_traditional = no; then
  19517. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19518. +/* end confdefs.h. */
  19519. +#include <termio.h>
  19520. +Autoconf TCGETA
  19521. +_ACEOF
  19522. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19523. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  19524. + ac_cv_prog_gcc_traditional=yes
  19525. +fi
  19526. +rm -f conftest*
  19527. +
  19528. + fi
  19529. +fi
  19530. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  19531. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  19532. + if test $ac_cv_prog_gcc_traditional = yes; then
  19533. + CC="$CC -traditional"
  19534. + fi
  19535. +fi
  19536. +
  19537. +for ac_header in stdlib.h
  19538. +do :
  19539. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  19540. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  19541. + cat >>confdefs.h <<_ACEOF
  19542. +#define HAVE_STDLIB_H 1
  19543. +_ACEOF
  19544. +
  19545. +fi
  19546. +
  19547. +done
  19548. +
  19549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  19550. +$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  19551. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  19552. + $as_echo_n "(cached) " >&6
  19553. +else
  19554. + if test "$cross_compiling" = yes; then :
  19555. + ac_cv_func_malloc_0_nonnull=no
  19556. +else
  19557. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19558. +/* end confdefs.h. */
  19559. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  19560. +# include <stdlib.h>
  19561. +#else
  19562. +char *malloc ();
  19563. +#endif
  19564. +
  19565. +int
  19566. +main ()
  19567. +{
  19568. +return ! malloc (0);
  19569. + ;
  19570. + return 0;
  19571. +}
  19572. +_ACEOF
  19573. +if ac_fn_c_try_run "$LINENO"; then :
  19574. + ac_cv_func_malloc_0_nonnull=yes
  19575. +else
  19576. + ac_cv_func_malloc_0_nonnull=no
  19577. +fi
  19578. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19579. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19580. +fi
  19581. +
  19582. +fi
  19583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  19584. +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  19585. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  19586. +
  19587. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  19588. +
  19589. +else
  19590. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  19591. +
  19592. + case " $LIBOBJS " in
  19593. + *" malloc.$ac_objext "* ) ;;
  19594. + *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  19595. + ;;
  19596. +esac
  19597. +
  19598. +
  19599. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  19600. +
  19601. +fi
  19602. +
  19603. +
  19604. +
  19605. +
  19606. +
  19607. + for ac_header in $ac_header_list
  19608. +do :
  19609. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19610. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  19611. +"
  19612. +eval as_val=\$$as_ac_Header
  19613. + if test "x$as_val" = x""yes; then :
  19614. + cat >>confdefs.h <<_ACEOF
  19615. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19616. +_ACEOF
  19617. +
  19618. +fi
  19619. +
  19620. +done
  19621. +
  19622. +
  19623. +
  19624. +
  19625. +
  19626. +
  19627. +
  19628. +
  19629. +for ac_func in getpagesize
  19630. +do :
  19631. + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  19632. +if test "x$ac_cv_func_getpagesize" = x""yes; then :
  19633. + cat >>confdefs.h <<_ACEOF
  19634. +#define HAVE_GETPAGESIZE 1
  19635. +_ACEOF
  19636. +
  19637. +fi
  19638. +done
  19639. +
  19640. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  19641. +$as_echo_n "checking for working mmap... " >&6; }
  19642. +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  19643. + $as_echo_n "(cached) " >&6
  19644. +else
  19645. + if test "$cross_compiling" = yes; then :
  19646. + ac_cv_func_mmap_fixed_mapped=no
  19647. +else
  19648. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19649. +/* end confdefs.h. */
  19650. +$ac_includes_default
  19651. +/* malloc might have been renamed as rpl_malloc. */
  19652. +#undef malloc
  19653. +
  19654. +/* Thanks to Mike Haertel and Jim Avera for this test.
  19655. + Here is a matrix of mmap possibilities:
  19656. + mmap private not fixed
  19657. + mmap private fixed at somewhere currently unmapped
  19658. + mmap private fixed at somewhere already mapped
  19659. + mmap shared not fixed
  19660. + mmap shared fixed at somewhere currently unmapped
  19661. + mmap shared fixed at somewhere already mapped
  19662. + For private mappings, we should verify that changes cannot be read()
  19663. + back from the file, nor mmap's back from the file at a different
  19664. + address. (There have been systems where private was not correctly
  19665. + implemented like the infamous i386 svr4.0, and systems where the
  19666. + VM page cache was not coherent with the file system buffer cache
  19667. + like early versions of FreeBSD and possibly contemporary NetBSD.)
  19668. + For shared mappings, we should conversely verify that changes get
  19669. + propagated back to all the places they're supposed to be.
  19670. +
  19671. + Grep wants private fixed already mapped.
  19672. + The main things grep needs to know about mmap are:
  19673. + * does it exist and is it safe to write into the mmap'd area
  19674. + * how to use it (BSD variants) */
  19675. +
  19676. +#include <fcntl.h>
  19677. +#include <sys/mman.h>
  19678. +
  19679. +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  19680. +char *malloc ();
  19681. +#endif
  19682. +
  19683. +/* This mess was copied from the GNU getpagesize.h. */
  19684. +#ifndef HAVE_GETPAGESIZE
  19685. +# ifdef _SC_PAGESIZE
  19686. +# define getpagesize() sysconf(_SC_PAGESIZE)
  19687. +# else /* no _SC_PAGESIZE */
  19688. +# ifdef HAVE_SYS_PARAM_H
  19689. +# include <sys/param.h>
  19690. +# ifdef EXEC_PAGESIZE
  19691. +# define getpagesize() EXEC_PAGESIZE
  19692. +# else /* no EXEC_PAGESIZE */
  19693. +# ifdef NBPG
  19694. +# define getpagesize() NBPG * CLSIZE
  19695. +# ifndef CLSIZE
  19696. +# define CLSIZE 1
  19697. +# endif /* no CLSIZE */
  19698. +# else /* no NBPG */
  19699. +# ifdef NBPC
  19700. +# define getpagesize() NBPC
  19701. +# else /* no NBPC */
  19702. +# ifdef PAGESIZE
  19703. +# define getpagesize() PAGESIZE
  19704. +# endif /* PAGESIZE */
  19705. +# endif /* no NBPC */
  19706. +# endif /* no NBPG */
  19707. +# endif /* no EXEC_PAGESIZE */
  19708. +# else /* no HAVE_SYS_PARAM_H */
  19709. +# define getpagesize() 8192 /* punt totally */
  19710. +# endif /* no HAVE_SYS_PARAM_H */
  19711. +# endif /* no _SC_PAGESIZE */
  19712. +
  19713. +#endif /* no HAVE_GETPAGESIZE */
  19714. +
  19715. +int
  19716. +main ()
  19717. +{
  19718. + char *data, *data2, *data3;
  19719. + const char *cdata2;
  19720. + int i, pagesize;
  19721. + int fd, fd2;
  19722. +
  19723. + pagesize = getpagesize ();
  19724. +
  19725. + /* First, make a file with some known garbage in it. */
  19726. + data = (char *) malloc (pagesize);
  19727. + if (!data)
  19728. + return 1;
  19729. + for (i = 0; i < pagesize; ++i)
  19730. + *(data + i) = rand ();
  19731. + umask (0);
  19732. + fd = creat ("conftest.mmap", 0600);
  19733. + if (fd < 0)
  19734. + return 2;
  19735. + if (write (fd, data, pagesize) != pagesize)
  19736. + return 3;
  19737. + close (fd);
  19738. +
  19739. + /* Next, check that the tail of a page is zero-filled. File must have
  19740. + non-zero length, otherwise we risk SIGBUS for entire page. */
  19741. + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  19742. + if (fd2 < 0)
  19743. + return 4;
  19744. + cdata2 = "";
  19745. + if (write (fd2, cdata2, 1) != 1)
  19746. + return 5;
  19747. + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  19748. + if (data2 == MAP_FAILED)
  19749. + return 6;
  19750. + for (i = 0; i < pagesize; ++i)
  19751. + if (*(data2 + i))
  19752. + return 7;
  19753. + close (fd2);
  19754. + if (munmap (data2, pagesize))
  19755. + return 8;
  19756. +
  19757. + /* Next, try to mmap the file at a fixed address which already has
  19758. + something else allocated at it. If we can, also make sure that
  19759. + we see the same garbage. */
  19760. + fd = open ("conftest.mmap", O_RDWR);
  19761. + if (fd < 0)
  19762. + return 9;
  19763. + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19764. + MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19765. + return 10;
  19766. + for (i = 0; i < pagesize; ++i)
  19767. + if (*(data + i) != *(data2 + i))
  19768. + return 11;
  19769. +
  19770. + /* Finally, make sure that changes to the mapped area do not
  19771. + percolate back to the file as seen by read(). (This is a bug on
  19772. + some variants of i386 svr4.0.) */
  19773. + for (i = 0; i < pagesize; ++i)
  19774. + *(data2 + i) = *(data2 + i) + 1;
  19775. + data3 = (char *) malloc (pagesize);
  19776. + if (!data3)
  19777. + return 12;
  19778. + if (read (fd, data3, pagesize) != pagesize)
  19779. + return 13;
  19780. + for (i = 0; i < pagesize; ++i)
  19781. + if (*(data + i) != *(data3 + i))
  19782. + return 14;
  19783. + close (fd);
  19784. + return 0;
  19785. +}
  19786. +_ACEOF
  19787. +if ac_fn_c_try_run "$LINENO"; then :
  19788. + ac_cv_func_mmap_fixed_mapped=yes
  19789. +else
  19790. + ac_cv_func_mmap_fixed_mapped=no
  19791. +fi
  19792. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19793. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19794. +fi
  19795. +
  19796. +fi
  19797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19798. +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  19799. +if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19800. +
  19801. +$as_echo "#define HAVE_MMAP 1" >>confdefs.h
  19802. +
  19803. +fi
  19804. +rm -f conftest.mmap conftest.txt
  19805. +
  19806. +for ac_header in sys/select.h sys/socket.h
  19807. +do :
  19808. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19809. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19810. +eval as_val=\$$as_ac_Header
  19811. + if test "x$as_val" = x""yes; then :
  19812. + cat >>confdefs.h <<_ACEOF
  19813. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19814. +_ACEOF
  19815. +
  19816. +fi
  19817. +
  19818. +done
  19819. +
  19820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  19821. +$as_echo_n "checking types of arguments for select... " >&6; }
  19822. +if test "${ac_cv_func_select_args+set}" = set; then :
  19823. + $as_echo_n "(cached) " >&6
  19824. +else
  19825. + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  19826. + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  19827. + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  19828. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19829. +/* end confdefs.h. */
  19830. +$ac_includes_default
  19831. +#ifdef HAVE_SYS_SELECT_H
  19832. +# include <sys/select.h>
  19833. +#endif
  19834. +#ifdef HAVE_SYS_SOCKET_H
  19835. +# include <sys/socket.h>
  19836. +#endif
  19837. +
  19838. +int
  19839. +main ()
  19840. +{
  19841. +extern int select ($ac_arg1,
  19842. + $ac_arg234, $ac_arg234, $ac_arg234,
  19843. + $ac_arg5);
  19844. + ;
  19845. + return 0;
  19846. +}
  19847. +_ACEOF
  19848. +if ac_fn_c_try_compile "$LINENO"; then :
  19849. + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  19850. +fi
  19851. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19852. + done
  19853. + done
  19854. +done
  19855. +# Provide a safe default value.
  19856. +: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  19857. +
  19858. +fi
  19859. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  19860. +$as_echo "$ac_cv_func_select_args" >&6; }
  19861. +ac_save_IFS=$IFS; IFS=','
  19862. +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  19863. +IFS=$ac_save_IFS
  19864. +shift
  19865. +
  19866. +cat >>confdefs.h <<_ACEOF
  19867. +#define SELECT_TYPE_ARG1 $1
  19868. +_ACEOF
  19869. +
  19870. +
  19871. +cat >>confdefs.h <<_ACEOF
  19872. +#define SELECT_TYPE_ARG234 ($2)
  19873. +_ACEOF
  19874. +
  19875. +
  19876. +cat >>confdefs.h <<_ACEOF
  19877. +#define SELECT_TYPE_ARG5 ($3)
  19878. +_ACEOF
  19879. +
  19880. +rm -f conftest*
  19881. +
  19882. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  19883. +$as_echo_n "checking return type of signal handlers... " >&6; }
  19884. +if test "${ac_cv_type_signal+set}" = set; then :
  19885. + $as_echo_n "(cached) " >&6
  19886. +else
  19887. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19888. +/* end confdefs.h. */
  19889. +#include <sys/types.h>
  19890. +#include <signal.h>
  19891. +
  19892. +int
  19893. +main ()
  19894. +{
  19895. +return *(signal (0, 0)) (0) == 1;
  19896. + ;
  19897. + return 0;
  19898. +}
  19899. +_ACEOF
  19900. +if ac_fn_c_try_compile "$LINENO"; then :
  19901. + ac_cv_type_signal=int
  19902. +else
  19903. + ac_cv_type_signal=void
  19904. +fi
  19905. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. +fi
  19907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  19908. +$as_echo "$ac_cv_type_signal" >&6; }
  19909. +
  19910. +cat >>confdefs.h <<_ACEOF
  19911. +#define RETSIGTYPE $ac_cv_type_signal
  19912. +_ACEOF
  19913. +
  19914. +
  19915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  19916. +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  19917. +if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  19918. + $as_echo_n "(cached) " >&6
  19919. +else
  19920. + rm -f conftest.sym conftest.file
  19921. +echo >conftest.file
  19922. +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19923. + if test "$cross_compiling" = yes; then :
  19924. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  19925. +else
  19926. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19927. +/* end confdefs.h. */
  19928. +$ac_includes_default
  19929. +int
  19930. +main ()
  19931. +{
  19932. +struct stat sbuf;
  19933. + /* Linux will dereference the symlink and fail, as required by POSIX.
  19934. + That is better in the sense that it means we will not
  19935. + have to compile and use the lstat wrapper. */
  19936. + return lstat ("conftest.sym/", &sbuf) == 0;
  19937. + ;
  19938. + return 0;
  19939. +}
  19940. +_ACEOF
  19941. +if ac_fn_c_try_run "$LINENO"; then :
  19942. + ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19943. +else
  19944. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  19945. +fi
  19946. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19947. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19948. +fi
  19949. +
  19950. +else
  19951. + # If the `ln -s' command failed, then we probably don't even
  19952. + # have an lstat function.
  19953. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  19954. +fi
  19955. +rm -f conftest.sym conftest.file
  19956. +
  19957. +fi
  19958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19959. +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  19960. +
  19961. +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19962. +
  19963. +cat >>confdefs.h <<_ACEOF
  19964. +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19965. +_ACEOF
  19966. +
  19967. +
  19968. +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  19969. + case " $LIBOBJS " in
  19970. + *" lstat.$ac_objext "* ) ;;
  19971. + *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  19972. + ;;
  19973. +esac
  19974. +
  19975. +fi
  19976. +
  19977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  19978. +$as_echo_n "checking whether stat accepts an empty string... " >&6; }
  19979. +if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  19980. + $as_echo_n "(cached) " >&6
  19981. +else
  19982. + if test "$cross_compiling" = yes; then :
  19983. + ac_cv_func_stat_empty_string_bug=yes
  19984. +else
  19985. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19986. +/* end confdefs.h. */
  19987. +$ac_includes_default
  19988. +int
  19989. +main ()
  19990. +{
  19991. +struct stat sbuf;
  19992. + return stat ("", &sbuf) == 0;
  19993. + ;
  19994. + return 0;
  19995. +}
  19996. +_ACEOF
  19997. +if ac_fn_c_try_run "$LINENO"; then :
  19998. + ac_cv_func_stat_empty_string_bug=no
  19999. +else
  20000. + ac_cv_func_stat_empty_string_bug=yes
  20001. +fi
  20002. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20003. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20004. +fi
  20005. +
  20006. +fi
  20007. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  20008. +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  20009. +if test $ac_cv_func_stat_empty_string_bug = yes; then
  20010. + case " $LIBOBJS " in
  20011. + *" stat.$ac_objext "* ) ;;
  20012. + *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  20013. + ;;
  20014. +esac
  20015. +
  20016. +
  20017. +cat >>confdefs.h <<_ACEOF
  20018. +#define HAVE_STAT_EMPTY_STRING_BUG 1
  20019. +_ACEOF
  20020. +
  20021. +fi
  20022. +
  20023. +for ac_func in vprintf
  20024. +do :
  20025. + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20026. +if test "x$ac_cv_func_vprintf" = x""yes; then :
  20027. + cat >>confdefs.h <<_ACEOF
  20028. +#define HAVE_VPRINTF 1
  20029. +_ACEOF
  20030. +
  20031. +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20032. +if test "x$ac_cv_func__doprnt" = x""yes; then :
  20033. +
  20034. +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20035. +
  20036. +fi
  20037. +
  20038. +fi
  20039. +done
  20040. +
  20041. +
  20042. +for ac_func in bzero gettimeofday memmove memset munmap select strcasecmp strchr strdup strtoul
  20043. +do :
  20044. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20045. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20046. +eval as_val=\$$as_ac_var
  20047. + if test "x$as_val" = x""yes; then :
  20048. + cat >>confdefs.h <<_ACEOF
  20049. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20050. +_ACEOF
  20051. +
  20052. +fi
  20053. +done
  20054. +
  20055. +
  20056. +# filters
  20057. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linear modules is requested" >&5
  20058. +$as_echo_n "checking whether linear modules is requested... " >&6; }
  20059. +# Check whether --enable-linear was given.
  20060. +if test "${enable_linear+set}" = set; then :
  20061. + enableval=$enable_linear; linear_module=$enableval
  20062. +else
  20063. + linear_module=yes
  20064. +fi
  20065. +
  20066. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $linear_module" >&5
  20067. +$as_echo "$linear_module" >&6; }
  20068. + if test "$linear_module" = "yes"; then
  20069. + ENABLE_LINEAR_MODULE_TRUE=
  20070. + ENABLE_LINEAR_MODULE_FALSE='#'
  20071. +else
  20072. + ENABLE_LINEAR_MODULE_TRUE='#'
  20073. + ENABLE_LINEAR_MODULE_FALSE=
  20074. +fi
  20075. +
  20076. +
  20077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dejitter module is requested" >&5
  20078. +$as_echo_n "checking whether dejitter module is requested... " >&6; }
  20079. +# Check whether --enable-dejitter was given.
  20080. +if test "${enable_dejitter+set}" = set; then :
  20081. + enableval=$enable_dejitter; dejitter_module=$enableval
  20082. +else
  20083. + dejitter_module=yes
  20084. +fi
  20085. +
  20086. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejitter_module" >&5
  20087. +$as_echo "$dejitter_module" >&6; }
  20088. + if test "$dejitter_module" = "yes"; then
  20089. + ENABLE_DEJITTER_MODULE_TRUE=
  20090. + ENABLE_DEJITTER_MODULE_FALSE='#'
  20091. +else
  20092. + ENABLE_DEJITTER_MODULE_TRUE='#'
  20093. + ENABLE_DEJITTER_MODULE_FALSE=
  20094. +fi
  20095. +
  20096. +
  20097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linear-h2200 module is requested" >&5
  20098. +$as_echo_n "checking whether linear-h2200 module is requested... " >&6; }
  20099. +# Check whether --enable-linear-h2200 was given.
  20100. +if test "${enable_linear_h2200+set}" = set; then :
  20101. + enableval=$enable_linear_h2200; h2200_linear_module=$enableval
  20102. +else
  20103. + h2200_linear_module=yes
  20104. +fi
  20105. +
  20106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $h2200_linear_module" >&5
  20107. +$as_echo "$h2200_linear_module" >&6; }
  20108. + if test "$h2200_linear_module" = "yes"; then
  20109. + ENABLE_H2200_LINEAR_MODULE_TRUE=
  20110. + ENABLE_H2200_LINEAR_MODULE_FALSE='#'
  20111. +else
  20112. + ENABLE_H2200_LINEAR_MODULE_TRUE='#'
  20113. + ENABLE_H2200_LINEAR_MODULE_FALSE=
  20114. +fi
  20115. +
  20116. +
  20117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether variance module is requested" >&5
  20118. +$as_echo_n "checking whether variance module is requested... " >&6; }
  20119. +# Check whether --enable-variance was given.
  20120. +if test "${enable_variance+set}" = set; then :
  20121. + enableval=$enable_variance; variance_module=$enableval
  20122. +else
  20123. + variance_module=yes
  20124. +fi
  20125. +
  20126. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $variance_module" >&5
  20127. +$as_echo "$variance_module" >&6; }
  20128. + if test "$variance_module" = "yes"; then
  20129. + ENABLE_VARIANCE_MODULE_TRUE=
  20130. + ENABLE_VARIANCE_MODULE_FALSE='#'
  20131. +else
  20132. + ENABLE_VARIANCE_MODULE_TRUE='#'
  20133. + ENABLE_VARIANCE_MODULE_FALSE=
  20134. +fi
  20135. +
  20136. +
  20137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthres module is requested" >&5
  20138. +$as_echo_n "checking whether pthres module is requested... " >&6; }
  20139. +# Check whether --enable-pthres was given.
  20140. +if test "${enable_pthres+set}" = set; then :
  20141. + enableval=$enable_pthres; pthres_module=$enableval
  20142. +else
  20143. + pthres_module=yes
  20144. +fi
  20145. +
  20146. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthres_module" >&5
  20147. +$as_echo "$pthres_module" >&6; }
  20148. + if test "$pthres_module" = "yes"; then
  20149. + ENABLE_PTHRES_MODULE_TRUE=
  20150. + ENABLE_PTHRES_MODULE_FALSE='#'
  20151. +else
  20152. + ENABLE_PTHRES_MODULE_TRUE='#'
  20153. + ENABLE_PTHRES_MODULE_FALSE=
  20154. +fi
  20155. +
  20156. +
  20157. +
  20158. +# hardware access modules
  20159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ucb1x00 module is requested" >&5
  20160. +$as_echo_n "checking whether ucb1x00 module is requested... " >&6; }
  20161. +# Check whether --enable-ucb1x00 was given.
  20162. +if test "${enable_ucb1x00+set}" = set; then :
  20163. + enableval=$enable_ucb1x00; ucb1x00_module=$enableval
  20164. +else
  20165. + ucb1x00_module=yes
  20166. +fi
  20167. +
  20168. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ucb1x00_module" >&5
  20169. +$as_echo "$ucb1x00_module" >&6; }
  20170. + if test "$ucb1x00_module" = "yes"; then
  20171. + ENABLE_UCB1X00_MODULE_TRUE=
  20172. + ENABLE_UCB1X00_MODULE_FALSE='#'
  20173. +else
  20174. + ENABLE_UCB1X00_MODULE_TRUE='#'
  20175. + ENABLE_UCB1X00_MODULE_FALSE=
  20176. +fi
  20177. +
  20178. +
  20179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether corgi module is requested" >&5
  20180. +$as_echo_n "checking whether corgi module is requested... " >&6; }
  20181. +# Check whether --enable-corgi was given.
  20182. +if test "${enable_corgi+set}" = set; then :
  20183. + enableval=$enable_corgi; corgi_module=$enableval
  20184. +else
  20185. + corgi_module=yes
  20186. +fi
  20187. +
  20188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $corgi_module" >&5
  20189. +$as_echo "$corgi_module" >&6; }
  20190. + if test "$corgi_module" = "yes"; then
  20191. + ENABLE_CORGI_MODULE_TRUE=
  20192. + ENABLE_CORGI_MODULE_FALSE='#'
  20193. +else
  20194. + ENABLE_CORGI_MODULE_TRUE='#'
  20195. + ENABLE_CORGI_MODULE_FALSE=
  20196. +fi
  20197. +
  20198. +
  20199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether collie module is requested" >&5
  20200. +$as_echo_n "checking whether collie module is requested... " >&6; }
  20201. +# Check whether --enable-collie was given.
  20202. +if test "${enable_collie+set}" = set; then :
  20203. + enableval=$enable_collie; collie_module=$enableval
  20204. +else
  20205. + collie_module=yes
  20206. +fi
  20207. +
  20208. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $collie_module" >&5
  20209. +$as_echo "$collie_module" >&6; }
  20210. + if test "$collie_module" = "yes"; then
  20211. + ENABLE_COLLIE_MODULE_TRUE=
  20212. + ENABLE_COLLIE_MODULE_FALSE='#'
  20213. +else
  20214. + ENABLE_COLLIE_MODULE_TRUE='#'
  20215. + ENABLE_COLLIE_MODULE_FALSE=
  20216. +fi
  20217. +
  20218. +
  20219. +
  20220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether h3600 module is requested" >&5
  20221. +$as_echo_n "checking whether h3600 module is requested... " >&6; }
  20222. +# Check whether --enable-h3600 was given.
  20223. +if test "${enable_h3600+set}" = set; then :
  20224. + enableval=$enable_h3600; h3600_module=$enableval
  20225. +else
  20226. + h3600_module=yes
  20227. +fi
  20228. +
  20229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $h3600_module" >&5
  20230. +$as_echo "$h3600_module" >&6; }
  20231. + if test "$h3600_module" = "yes"; then
  20232. + ENABLE_H3600_MODULE_TRUE=
  20233. + ENABLE_H3600_MODULE_FALSE='#'
  20234. +else
  20235. + ENABLE_H3600_MODULE_TRUE='#'
  20236. + ENABLE_H3600_MODULE_FALSE=
  20237. +fi
  20238. +
  20239. +
  20240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mk712 module is requested" >&5
  20241. +$as_echo_n "checking whether mk712 module is requested... " >&6; }
  20242. +# Check whether --enable-mk712 was given.
  20243. +if test "${enable_mk712+set}" = set; then :
  20244. + enableval=$enable_mk712; mk712_module=$enableval
  20245. +else
  20246. + mk712_module=yes
  20247. +fi
  20248. +
  20249. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mk712_module" >&5
  20250. +$as_echo "$mk712_module" >&6; }
  20251. + if test "$mk712_module" = "yes"; then
  20252. + ENABLE_MK712_MODULE_TRUE=
  20253. + ENABLE_MK712_MODULE_FALSE='#'
  20254. +else
  20255. + ENABLE_MK712_MODULE_TRUE='#'
  20256. + ENABLE_MK712_MODULE_FALSE=
  20257. +fi
  20258. +
  20259. +
  20260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether arctic2 module is requested" >&5
  20261. +$as_echo_n "checking whether arctic2 module is requested... " >&6; }
  20262. +# Check whether --enable-arctic2 was given.
  20263. +if test "${enable_arctic2+set}" = set; then :
  20264. + enableval=$enable_arctic2; arctic2_module=$enableval
  20265. +else
  20266. + arctic2_module=yes
  20267. +fi
  20268. +
  20269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $arctic2_module" >&5
  20270. +$as_echo "$arctic2_module" >&6; }
  20271. + if test "$arctic2_module" = "yes"; then
  20272. + ENABLE_ARCTIC2_MODULE_TRUE=
  20273. + ENABLE_ARCTIC2_MODULE_FALSE='#'
  20274. +else
  20275. + ENABLE_ARCTIC2_MODULE_TRUE='#'
  20276. + ENABLE_ARCTIC2_MODULE_FALSE=
  20277. +fi
  20278. +
  20279. +
  20280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether input module is requested" >&5
  20281. +$as_echo_n "checking whether input module is requested... " >&6; }
  20282. +# Check whether --enable-input was given.
  20283. +if test "${enable_input+set}" = set; then :
  20284. + enableval=$enable_input; input_module=$enableval
  20285. +else
  20286. + input_module=yes
  20287. +fi
  20288. +
  20289. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $input_module" >&5
  20290. +$as_echo "$input_module" >&6; }
  20291. + if test "$input_module" = "yes"; then
  20292. + ENABLE_INPUT_MODULE_TRUE=
  20293. + ENABLE_INPUT_MODULE_FALSE='#'
  20294. +else
  20295. + ENABLE_INPUT_MODULE_TRUE='#'
  20296. + ENABLE_INPUT_MODULE_FALSE=
  20297. +fi
  20298. +
  20299. +
  20300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to place modules" >&5
  20301. +$as_echo_n "checking where to place modules... " >&6; }
  20302. +
  20303. +# Check whether --with-plugindir was given.
  20304. +if test "${with_plugindir+set}" = set; then :
  20305. + withval=$with_plugindir; PLUGIN_DIR=$withval
  20306. +else
  20307. + PLUGIN_DIR='${libdir}/ts/'
  20308. +fi
  20309. +
  20310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLUGIN_DIR" >&5
  20311. +$as_echo "$PLUGIN_DIR" >&6; }
  20312. +
  20313. +
  20314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  20315. +$as_echo_n "checking whether to enable debugging... " >&6; }
  20316. +# Check whether --enable-debug was given.
  20317. +if test "${enable_debug+set}" = set; then :
  20318. + enableval=$enable_debug;
  20319. +else
  20320. + enable_debug="no"
  20321. +fi
  20322. +
  20323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
  20324. +$as_echo "$enable_debug" >&6; }
  20325. +if test "$enable_debug" = "yes"; then
  20326. + DEBUGFLAGS="-g -ggdb -DDEBUG"
  20327. +else
  20328. + DEBUGFLAGS=""
  20329. +fi
  20330. +
  20331. +
  20332. +LIBFLAGS="-DTSLIB_INTERNAL"
  20333. +
  20334. +
  20335. +TS_CONF='${sysconfdir}/ts.conf'
  20336. +
  20337. +
  20338. +# Library versioning
  20339. +LT_RELEASE=0.0
  20340. +LT_CURRENT=1
  20341. +LT_REVISION=1
  20342. +LT_AGE=1
  20343. +
  20344. +
  20345. +
  20346. +
  20347. +
  20348. +ac_config_files="$ac_config_files Makefile etc/Makefile plugins/Makefile src/Makefile tests/Makefile tslib-$LT_RELEASE.pc:tslib.pc.in"
  20349. +
  20350. +cat >confcache <<\_ACEOF
  20351. +# This file is a shell script that caches the results of configure
  20352. +# tests run on this system so they can be shared between configure
  20353. +# scripts and configure runs, see configure's option --config-cache.
  20354. +# It is not useful on other systems. If it contains results you don't
  20355. +# want to keep, you may remove or edit it.
  20356. +#
  20357. +# config.status only pays attention to the cache file if you give it
  20358. +# the --recheck option to rerun configure.
  20359. +#
  20360. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  20361. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  20362. +# following values.
  20363. +
  20364. +_ACEOF
  20365. +
  20366. +# The following way of writing the cache mishandles newlines in values,
  20367. +# but we know of no workaround that is simple, portable, and efficient.
  20368. +# So, we kill variables containing newlines.
  20369. +# Ultrix sh set writes to stderr and can't be redirected directly,
  20370. +# and sets the high bit in the cache file unless we assign to the vars.
  20371. +(
  20372. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20373. + eval ac_val=\$$ac_var
  20374. + case $ac_val in #(
  20375. + *${as_nl}*)
  20376. + case $ac_var in #(
  20377. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20378. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20379. + esac
  20380. + case $ac_var in #(
  20381. + _ | IFS | as_nl) ;; #(
  20382. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20383. + *) { eval $ac_var=; unset $ac_var;} ;;
  20384. + esac ;;
  20385. + esac
  20386. + done
  20387. +
  20388. + (set) 2>&1 |
  20389. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20390. + *${as_nl}ac_space=\ *)
  20391. + # `set' does not quote correctly, so add quotes: double-quote
  20392. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  20393. + sed -n \
  20394. + "s/'/'\\\\''/g;
  20395. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20396. + ;; #(
  20397. + *)
  20398. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  20399. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20400. + ;;
  20401. + esac |
  20402. + sort
  20403. +) |
  20404. + sed '
  20405. + /^ac_cv_env_/b end
  20406. + t clear
  20407. + :clear
  20408. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20409. + t end
  20410. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20411. + :end' >>confcache
  20412. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20413. + if test -w "$cache_file"; then
  20414. + test "x$cache_file" != "x/dev/null" &&
  20415. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20416. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  20417. + cat confcache >$cache_file
  20418. + else
  20419. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20420. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20421. + fi
  20422. +fi
  20423. +rm -f confcache
  20424. +
  20425. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20426. +# Let make expand exec_prefix.
  20427. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20428. +
  20429. +DEFS=-DHAVE_CONFIG_H
  20430. +
  20431. +ac_libobjs=
  20432. +ac_ltlibobjs=
  20433. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20434. + # 1. Remove the extension, and $U if already installed.
  20435. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20436. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20437. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20438. + # will be set to the directory where LIBOBJS objects are built.
  20439. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20440. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20441. +done
  20442. +LIBOBJS=$ac_libobjs
  20443. +
  20444. +LTLIBOBJS=$ac_ltlibobjs
  20445. +
  20446. +
  20447. + if test -n "$EXEEXT"; then
  20448. + am__EXEEXT_TRUE=
  20449. + am__EXEEXT_FALSE='#'
  20450. +else
  20451. + am__EXEEXT_TRUE='#'
  20452. + am__EXEEXT_FALSE=
  20453. +fi
  20454. +
  20455. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20456. + as_fn_error "conditional \"AMDEP\" was never defined.
  20457. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20458. +fi
  20459. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20460. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  20461. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20462. +fi
  20463. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20464. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  20465. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20466. +fi
  20467. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20468. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  20469. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20470. +fi
  20471. +if test -z "${ENABLE_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_LINEAR_MODULE_FALSE}"; then
  20472. + as_fn_error "conditional \"ENABLE_LINEAR_MODULE\" was never defined.
  20473. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20474. +fi
  20475. +if test -z "${ENABLE_DEJITTER_MODULE_TRUE}" && test -z "${ENABLE_DEJITTER_MODULE_FALSE}"; then
  20476. + as_fn_error "conditional \"ENABLE_DEJITTER_MODULE\" was never defined.
  20477. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20478. +fi
  20479. +if test -z "${ENABLE_H2200_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_H2200_LINEAR_MODULE_FALSE}"; then
  20480. + as_fn_error "conditional \"ENABLE_H2200_LINEAR_MODULE\" was never defined.
  20481. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20482. +fi
  20483. +if test -z "${ENABLE_VARIANCE_MODULE_TRUE}" && test -z "${ENABLE_VARIANCE_MODULE_FALSE}"; then
  20484. + as_fn_error "conditional \"ENABLE_VARIANCE_MODULE\" was never defined.
  20485. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20486. +fi
  20487. +if test -z "${ENABLE_PTHRES_MODULE_TRUE}" && test -z "${ENABLE_PTHRES_MODULE_FALSE}"; then
  20488. + as_fn_error "conditional \"ENABLE_PTHRES_MODULE\" was never defined.
  20489. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20490. +fi
  20491. +if test -z "${ENABLE_UCB1X00_MODULE_TRUE}" && test -z "${ENABLE_UCB1X00_MODULE_FALSE}"; then
  20492. + as_fn_error "conditional \"ENABLE_UCB1X00_MODULE\" was never defined.
  20493. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20494. +fi
  20495. +if test -z "${ENABLE_CORGI_MODULE_TRUE}" && test -z "${ENABLE_CORGI_MODULE_FALSE}"; then
  20496. + as_fn_error "conditional \"ENABLE_CORGI_MODULE\" was never defined.
  20497. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20498. +fi
  20499. +if test -z "${ENABLE_COLLIE_MODULE_TRUE}" && test -z "${ENABLE_COLLIE_MODULE_FALSE}"; then
  20500. + as_fn_error "conditional \"ENABLE_COLLIE_MODULE\" was never defined.
  20501. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20502. +fi
  20503. +if test -z "${ENABLE_H3600_MODULE_TRUE}" && test -z "${ENABLE_H3600_MODULE_FALSE}"; then
  20504. + as_fn_error "conditional \"ENABLE_H3600_MODULE\" was never defined.
  20505. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20506. +fi
  20507. +if test -z "${ENABLE_MK712_MODULE_TRUE}" && test -z "${ENABLE_MK712_MODULE_FALSE}"; then
  20508. + as_fn_error "conditional \"ENABLE_MK712_MODULE\" was never defined.
  20509. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20510. +fi
  20511. +if test -z "${ENABLE_ARCTIC2_MODULE_TRUE}" && test -z "${ENABLE_ARCTIC2_MODULE_FALSE}"; then
  20512. + as_fn_error "conditional \"ENABLE_ARCTIC2_MODULE\" was never defined.
  20513. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20514. +fi
  20515. +if test -z "${ENABLE_INPUT_MODULE_TRUE}" && test -z "${ENABLE_INPUT_MODULE_FALSE}"; then
  20516. + as_fn_error "conditional \"ENABLE_INPUT_MODULE\" was never defined.
  20517. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20518. +fi
  20519. +
  20520. +: ${CONFIG_STATUS=./config.status}
  20521. +ac_write_fail=0
  20522. +ac_clean_files_save=$ac_clean_files
  20523. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20525. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20526. +as_write_fail=0
  20527. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20528. +#! $SHELL
  20529. +# Generated by $as_me.
  20530. +# Run this file to recreate the current configuration.
  20531. +# Compiler output produced by configure, useful for debugging
  20532. +# configure, is in config.log if it exists.
  20533. +
  20534. +debug=false
  20535. +ac_cs_recheck=false
  20536. +ac_cs_silent=false
  20537. +
  20538. +SHELL=\${CONFIG_SHELL-$SHELL}
  20539. +export SHELL
  20540. +_ASEOF
  20541. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20542. +## -------------------- ##
  20543. +## M4sh Initialization. ##
  20544. +## -------------------- ##
  20545. +
  20546. +# Be more Bourne compatible
  20547. +DUALCASE=1; export DUALCASE # for MKS sh
  20548. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20549. + emulate sh
  20550. + NULLCMD=:
  20551. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20552. + # is contrary to our usage. Disable this feature.
  20553. + alias -g '${1+"$@"}'='"$@"'
  20554. + setopt NO_GLOB_SUBST
  20555. +else
  20556. + case `(set -o) 2>/dev/null` in #(
  20557. + *posix*) :
  20558. + set -o posix ;; #(
  20559. + *) :
  20560. + ;;
  20561. +esac
  20562. +fi
  20563. +
  20564. +
  20565. +as_nl='
  20566. +'
  20567. +export as_nl
  20568. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  20569. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20570. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20571. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20572. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  20573. +# but without wasting forks for bash or zsh.
  20574. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  20575. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20576. + as_echo='print -r --'
  20577. + as_echo_n='print -rn --'
  20578. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20579. + as_echo='printf %s\n'
  20580. + as_echo_n='printf %s'
  20581. +else
  20582. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20583. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20584. + as_echo_n='/usr/ucb/echo -n'
  20585. + else
  20586. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20587. + as_echo_n_body='eval
  20588. + arg=$1;
  20589. + case $arg in #(
  20590. + *"$as_nl"*)
  20591. + expr "X$arg" : "X\\(.*\\)$as_nl";
  20592. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20593. + esac;
  20594. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20595. + '
  20596. + export as_echo_n_body
  20597. + as_echo_n='sh -c $as_echo_n_body as_echo'
  20598. + fi
  20599. + export as_echo_body
  20600. + as_echo='sh -c $as_echo_body as_echo'
  20601. +fi
  20602. +
  20603. +# The user is always right.
  20604. +if test "${PATH_SEPARATOR+set}" != set; then
  20605. + PATH_SEPARATOR=:
  20606. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20607. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20608. + PATH_SEPARATOR=';'
  20609. + }
  20610. +fi
  20611. +
  20612. +
  20613. +# IFS
  20614. +# We need space, tab and new line, in precisely that order. Quoting is
  20615. +# there to prevent editors from complaining about space-tab.
  20616. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20617. +# splitting by setting IFS to empty value.)
  20618. +IFS=" "" $as_nl"
  20619. +
  20620. +# Find who we are. Look in the path if we contain no directory separator.
  20621. +case $0 in #((
  20622. + *[\\/]* ) as_myself=$0 ;;
  20623. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20624. +for as_dir in $PATH
  20625. +do
  20626. + IFS=$as_save_IFS
  20627. + test -z "$as_dir" && as_dir=.
  20628. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20629. + done
  20630. +IFS=$as_save_IFS
  20631. +
  20632. + ;;
  20633. +esac
  20634. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  20635. +# in which case we are not to be found in the path.
  20636. +if test "x$as_myself" = x; then
  20637. + as_myself=$0
  20638. +fi
  20639. +if test ! -f "$as_myself"; then
  20640. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20641. + exit 1
  20642. +fi
  20643. +
  20644. +# Unset variables that we do not need and which cause bugs (e.g. in
  20645. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20646. +# suppresses any "Segmentation fault" message there. '((' could
  20647. +# trigger a bug in pdksh 5.2.14.
  20648. +for as_var in BASH_ENV ENV MAIL MAILPATH
  20649. +do eval test x\${$as_var+set} = xset \
  20650. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20651. +done
  20652. +PS1='$ '
  20653. +PS2='> '
  20654. +PS4='+ '
  20655. +
  20656. +# NLS nuisances.
  20657. +LC_ALL=C
  20658. +export LC_ALL
  20659. +LANGUAGE=C
  20660. +export LANGUAGE
  20661. +
  20662. +# CDPATH.
  20663. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20664. +
  20665. +
  20666. +# as_fn_error ERROR [LINENO LOG_FD]
  20667. +# ---------------------------------
  20668. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20669. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20670. +# script with status $?, using 1 if that was 0.
  20671. +as_fn_error ()
  20672. +{
  20673. + as_status=$?; test $as_status -eq 0 && as_status=1
  20674. + if test "$3"; then
  20675. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20676. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  20677. + fi
  20678. + $as_echo "$as_me: error: $1" >&2
  20679. + as_fn_exit $as_status
  20680. +} # as_fn_error
  20681. +
  20682. +
  20683. +# as_fn_set_status STATUS
  20684. +# -----------------------
  20685. +# Set $? to STATUS, without forking.
  20686. +as_fn_set_status ()
  20687. +{
  20688. + return $1
  20689. +} # as_fn_set_status
  20690. +
  20691. +# as_fn_exit STATUS
  20692. +# -----------------
  20693. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20694. +as_fn_exit ()
  20695. +{
  20696. + set +e
  20697. + as_fn_set_status $1
  20698. + exit $1
  20699. +} # as_fn_exit
  20700. +
  20701. +# as_fn_unset VAR
  20702. +# ---------------
  20703. +# Portably unset VAR.
  20704. +as_fn_unset ()
  20705. +{
  20706. + { eval $1=; unset $1;}
  20707. +}
  20708. +as_unset=as_fn_unset
  20709. +# as_fn_append VAR VALUE
  20710. +# ----------------------
  20711. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  20712. +# advantage of any shell optimizations that allow amortized linear growth over
  20713. +# repeated appends, instead of the typical quadratic growth present in naive
  20714. +# implementations.
  20715. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20716. + eval 'as_fn_append ()
  20717. + {
  20718. + eval $1+=\$2
  20719. + }'
  20720. +else
  20721. + as_fn_append ()
  20722. + {
  20723. + eval $1=\$$1\$2
  20724. + }
  20725. +fi # as_fn_append
  20726. +
  20727. +# as_fn_arith ARG...
  20728. +# ------------------
  20729. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  20730. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  20731. +# must be portable across $(()) and expr.
  20732. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20733. + eval 'as_fn_arith ()
  20734. + {
  20735. + as_val=$(( $* ))
  20736. + }'
  20737. +else
  20738. + as_fn_arith ()
  20739. + {
  20740. + as_val=`expr "$@" || test $? -eq 1`
  20741. + }
  20742. +fi # as_fn_arith
  20743. +
  20744. +
  20745. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  20746. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20747. + as_expr=expr
  20748. +else
  20749. + as_expr=false
  20750. +fi
  20751. +
  20752. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20753. + as_basename=basename
  20754. +else
  20755. + as_basename=false
  20756. +fi
  20757. +
  20758. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20759. + as_dirname=dirname
  20760. +else
  20761. + as_dirname=false
  20762. +fi
  20763. +
  20764. +as_me=`$as_basename -- "$0" ||
  20765. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20766. + X"$0" : 'X\(//\)$' \| \
  20767. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20768. +$as_echo X/"$0" |
  20769. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  20770. + s//\1/
  20771. + q
  20772. + }
  20773. + /^X\/\(\/\/\)$/{
  20774. + s//\1/
  20775. + q
  20776. + }
  20777. + /^X\/\(\/\).*/{
  20778. + s//\1/
  20779. + q
  20780. + }
  20781. + s/.*/./; q'`
  20782. +
  20783. +# Avoid depending upon Character Ranges.
  20784. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20785. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20786. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20787. +as_cr_digits='0123456789'
  20788. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  20789. +
  20790. +ECHO_C= ECHO_N= ECHO_T=
  20791. +case `echo -n x` in #(((((
  20792. +-n*)
  20793. + case `echo 'xy\c'` in
  20794. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20795. + xy) ECHO_C='\c';;
  20796. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20797. + ECHO_T=' ';;
  20798. + esac;;
  20799. +*)
  20800. + ECHO_N='-n';;
  20801. +esac
  20802. +
  20803. +rm -f conf$$ conf$$.exe conf$$.file
  20804. +if test -d conf$$.dir; then
  20805. + rm -f conf$$.dir/conf$$.file
  20806. +else
  20807. + rm -f conf$$.dir
  20808. + mkdir conf$$.dir 2>/dev/null
  20809. +fi
  20810. +if (echo >conf$$.file) 2>/dev/null; then
  20811. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  20812. + as_ln_s='ln -s'
  20813. + # ... but there are two gotchas:
  20814. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20815. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20816. + # In both cases, we have to default to `cp -p'.
  20817. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20818. + as_ln_s='cp -p'
  20819. + elif ln conf$$.file conf$$ 2>/dev/null; then
  20820. + as_ln_s=ln
  20821. + else
  20822. + as_ln_s='cp -p'
  20823. + fi
  20824. +else
  20825. + as_ln_s='cp -p'
  20826. +fi
  20827. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20828. +rmdir conf$$.dir 2>/dev/null
  20829. +
  20830. +
  20831. +# as_fn_mkdir_p
  20832. +# -------------
  20833. +# Create "$as_dir" as a directory, including parents if necessary.
  20834. +as_fn_mkdir_p ()
  20835. +{
  20836. +
  20837. + case $as_dir in #(
  20838. + -*) as_dir=./$as_dir;;
  20839. + esac
  20840. + test -d "$as_dir" || eval $as_mkdir_p || {
  20841. + as_dirs=
  20842. + while :; do
  20843. + case $as_dir in #(
  20844. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20845. + *) as_qdir=$as_dir;;
  20846. + esac
  20847. + as_dirs="'$as_qdir' $as_dirs"
  20848. + as_dir=`$as_dirname -- "$as_dir" ||
  20849. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20850. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20851. + X"$as_dir" : 'X\(//\)$' \| \
  20852. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20853. +$as_echo X"$as_dir" |
  20854. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20855. + s//\1/
  20856. + q
  20857. + }
  20858. + /^X\(\/\/\)[^/].*/{
  20859. + s//\1/
  20860. + q
  20861. + }
  20862. + /^X\(\/\/\)$/{
  20863. + s//\1/
  20864. + q
  20865. + }
  20866. + /^X\(\/\).*/{
  20867. + s//\1/
  20868. + q
  20869. + }
  20870. + s/.*/./; q'`
  20871. + test -d "$as_dir" && break
  20872. + done
  20873. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  20874. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  20875. +
  20876. +
  20877. +} # as_fn_mkdir_p
  20878. +if mkdir -p . 2>/dev/null; then
  20879. + as_mkdir_p='mkdir -p "$as_dir"'
  20880. +else
  20881. + test -d ./-p && rmdir ./-p
  20882. + as_mkdir_p=false
  20883. +fi
  20884. +
  20885. +if test -x / >/dev/null 2>&1; then
  20886. + as_test_x='test -x'
  20887. +else
  20888. + if ls -dL / >/dev/null 2>&1; then
  20889. + as_ls_L_option=L
  20890. + else
  20891. + as_ls_L_option=
  20892. + fi
  20893. + as_test_x='
  20894. + eval sh -c '\''
  20895. + if test -d "$1"; then
  20896. + test -d "$1/.";
  20897. + else
  20898. + case $1 in #(
  20899. + -*)set "./$1";;
  20900. + esac;
  20901. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  20902. + ???[sx]*):;;*)false;;esac;fi
  20903. + '\'' sh
  20904. + '
  20905. +fi
  20906. +as_executable_p=$as_test_x
  20907. +
  20908. +# Sed expression to map a string onto a valid CPP name.
  20909. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20910. +
  20911. +# Sed expression to map a string onto a valid variable name.
  20912. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20913. +
  20914. +
  20915. +exec 6>&1
  20916. +## ----------------------------------- ##
  20917. +## Main body of $CONFIG_STATUS script. ##
  20918. +## ----------------------------------- ##
  20919. +_ASEOF
  20920. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20921. +
  20922. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20923. +# Save the log message, to keep $0 and so on meaningful, and to
  20924. +# report actual input values of CONFIG_FILES etc. instead of their
  20925. +# values after options handling.
  20926. +ac_log="
  20927. +This file was extended by tslib $as_me 0.0.2, which was
  20928. +generated by GNU Autoconf 2.65. Invocation command line was
  20929. +
  20930. + CONFIG_FILES = $CONFIG_FILES
  20931. + CONFIG_HEADERS = $CONFIG_HEADERS
  20932. + CONFIG_LINKS = $CONFIG_LINKS
  20933. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  20934. + $ $0 $@
  20935. +
  20936. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20937. +"
  20938. +
  20939. +_ACEOF
  20940. +
  20941. +case $ac_config_files in *"
  20942. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  20943. +esac
  20944. +
  20945. +case $ac_config_headers in *"
  20946. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20947. +esac
  20948. +
  20949. +
  20950. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20951. +# Files that config.status was made for.
  20952. +config_files="$ac_config_files"
  20953. +config_headers="$ac_config_headers"
  20954. +config_commands="$ac_config_commands"
  20955. +
  20956. +_ACEOF
  20957. +
  20958. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20959. +ac_cs_usage="\
  20960. +\`$as_me' instantiates files and other configuration actions
  20961. +from templates according to the current configuration. Unless the files
  20962. +and actions are specified as TAGs, all are instantiated by default.
  20963. +
  20964. +Usage: $0 [OPTION]... [TAG]...
  20965. +
  20966. + -h, --help print this help, then exit
  20967. + -V, --version print version number and configuration settings, then exit
  20968. + --config print configuration, then exit
  20969. + -q, --quiet, --silent
  20970. + do not print progress messages
  20971. + -d, --debug don't remove temporary files
  20972. + --recheck update $as_me by reconfiguring in the same conditions
  20973. + --file=FILE[:TEMPLATE]
  20974. + instantiate the configuration file FILE
  20975. + --header=FILE[:TEMPLATE]
  20976. + instantiate the configuration header FILE
  20977. +
  20978. +Configuration files:
  20979. +$config_files
  20980. +
  20981. +Configuration headers:
  20982. +$config_headers
  20983. +
  20984. +Configuration commands:
  20985. +$config_commands
  20986. +
  20987. +Report bugs to <kergoth@handhelds.org>."
  20988. +
  20989. +_ACEOF
  20990. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20991. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20992. +ac_cs_version="\\
  20993. +tslib config.status 0.0.2
  20994. +configured by $0, generated by GNU Autoconf 2.65,
  20995. + with options \\"\$ac_cs_config\\"
  20996. +
  20997. +Copyright (C) 2009 Free Software Foundation, Inc.
  20998. +This config.status script is free software; the Free Software Foundation
  20999. +gives unlimited permission to copy, distribute and modify it."
  21000. +
  21001. +ac_pwd='$ac_pwd'
  21002. +srcdir='$srcdir'
  21003. +INSTALL='$INSTALL'
  21004. +MKDIR_P='$MKDIR_P'
  21005. +AWK='$AWK'
  21006. +test -n "\$AWK" || AWK=awk
  21007. +_ACEOF
  21008. +
  21009. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21010. +# The default lists apply if the user does not specify any file.
  21011. +ac_need_defaults=:
  21012. +while test $# != 0
  21013. +do
  21014. + case $1 in
  21015. + --*=*)
  21016. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21017. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21018. + ac_shift=:
  21019. + ;;
  21020. + *)
  21021. + ac_option=$1
  21022. + ac_optarg=$2
  21023. + ac_shift=shift
  21024. + ;;
  21025. + esac
  21026. +
  21027. + case $ac_option in
  21028. + # Handling of the options.
  21029. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21030. + ac_cs_recheck=: ;;
  21031. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21032. + $as_echo "$ac_cs_version"; exit ;;
  21033. + --config | --confi | --conf | --con | --co | --c )
  21034. + $as_echo "$ac_cs_config"; exit ;;
  21035. + --debug | --debu | --deb | --de | --d | -d )
  21036. + debug=: ;;
  21037. + --file | --fil | --fi | --f )
  21038. + $ac_shift
  21039. + case $ac_optarg in
  21040. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21041. + esac
  21042. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  21043. + ac_need_defaults=false;;
  21044. + --header | --heade | --head | --hea )
  21045. + $ac_shift
  21046. + case $ac_optarg in
  21047. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21048. + esac
  21049. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21050. + ac_need_defaults=false;;
  21051. + --he | --h)
  21052. + # Conflict between --help and --header
  21053. + as_fn_error "ambiguous option: \`$1'
  21054. +Try \`$0 --help' for more information.";;
  21055. + --help | --hel | -h )
  21056. + $as_echo "$ac_cs_usage"; exit ;;
  21057. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21058. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21059. + ac_cs_silent=: ;;
  21060. +
  21061. + # This is an error.
  21062. + -*) as_fn_error "unrecognized option: \`$1'
  21063. +Try \`$0 --help' for more information." ;;
  21064. +
  21065. + *) as_fn_append ac_config_targets " $1"
  21066. + ac_need_defaults=false ;;
  21067. +
  21068. + esac
  21069. + shift
  21070. +done
  21071. +
  21072. +ac_configure_extra_args=
  21073. +
  21074. +if $ac_cs_silent; then
  21075. + exec 6>/dev/null
  21076. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  21077. +fi
  21078. +
  21079. +_ACEOF
  21080. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21081. +if \$ac_cs_recheck; then
  21082. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21083. + shift
  21084. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21085. + CONFIG_SHELL='$SHELL'
  21086. + export CONFIG_SHELL
  21087. + exec "\$@"
  21088. +fi
  21089. +
  21090. +_ACEOF
  21091. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21092. +exec 5>>config.log
  21093. +{
  21094. + echo
  21095. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21096. +## Running $as_me. ##
  21097. +_ASBOX
  21098. + $as_echo "$ac_log"
  21099. +} >&5
  21100. +
  21101. +_ACEOF
  21102. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21103. +#
  21104. +# INIT-COMMANDS
  21105. +#
  21106. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21107. +
  21108. +
  21109. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  21110. +# if CDPATH is set.
  21111. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21112. +
  21113. +sed_quote_subst='$sed_quote_subst'
  21114. +double_quote_subst='$double_quote_subst'
  21115. +delay_variable_subst='$delay_variable_subst'
  21116. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  21117. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  21118. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  21119. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  21120. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  21121. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  21122. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  21123. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  21124. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  21125. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  21126. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  21127. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  21128. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  21129. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  21130. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  21131. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  21132. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  21133. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  21134. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  21135. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  21136. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  21137. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  21138. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  21139. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  21140. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  21141. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  21142. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  21143. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21144. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  21145. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  21146. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  21147. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  21148. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  21149. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  21150. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  21151. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21152. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21153. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21154. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  21155. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  21156. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  21157. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  21158. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  21159. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  21160. +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"`'
  21161. +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"`'
  21162. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  21163. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  21164. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  21165. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  21166. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  21167. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  21168. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  21169. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  21170. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  21171. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  21172. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  21173. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  21174. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  21175. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  21176. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  21177. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  21178. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21179. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21180. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  21181. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  21182. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21183. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21184. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  21185. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21186. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21187. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21188. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21189. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21190. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21191. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  21192. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  21193. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  21194. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21195. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  21196. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  21197. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  21198. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  21199. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  21200. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  21201. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  21202. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  21203. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  21204. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  21205. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  21206. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21207. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  21208. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  21209. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21210. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21211. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  21212. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  21213. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  21214. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  21215. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  21216. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  21217. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  21218. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21219. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21220. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21221. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21222. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21223. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  21224. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  21225. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  21226. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21227. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  21228. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  21229. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  21230. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  21231. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  21232. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  21233. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  21234. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  21235. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  21236. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  21237. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  21238. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  21239. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  21240. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21241. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21242. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21243. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21244. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21245. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21246. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21247. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21248. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21249. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21250. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21251. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21252. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21253. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21254. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21255. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21256. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21257. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21258. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21259. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21260. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21261. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21262. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21263. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21264. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21265. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21266. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21267. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21268. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21269. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21270. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21271. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21272. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21273. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21274. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21275. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21276. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21277. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21278. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21279. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21280. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21281. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21282. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21283. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21284. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21285. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21286. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  21287. +
  21288. +LTCC='$LTCC'
  21289. +LTCFLAGS='$LTCFLAGS'
  21290. +compiler='$compiler_DEFAULT'
  21291. +
  21292. +# Quote evaled strings.
  21293. +for var in SED \
  21294. +GREP \
  21295. +EGREP \
  21296. +FGREP \
  21297. +LD \
  21298. +NM \
  21299. +LN_S \
  21300. +lt_SP2NL \
  21301. +lt_NL2SP \
  21302. +reload_flag \
  21303. +OBJDUMP \
  21304. +deplibs_check_method \
  21305. +file_magic_cmd \
  21306. +AR \
  21307. +AR_FLAGS \
  21308. +STRIP \
  21309. +RANLIB \
  21310. +CC \
  21311. +CFLAGS \
  21312. +compiler \
  21313. +lt_cv_sys_global_symbol_pipe \
  21314. +lt_cv_sys_global_symbol_to_cdecl \
  21315. +lt_cv_sys_global_symbol_to_c_name_address \
  21316. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21317. +SHELL \
  21318. +ECHO \
  21319. +lt_prog_compiler_no_builtin_flag \
  21320. +lt_prog_compiler_wl \
  21321. +lt_prog_compiler_pic \
  21322. +lt_prog_compiler_static \
  21323. +lt_cv_prog_compiler_c_o \
  21324. +need_locks \
  21325. +DSYMUTIL \
  21326. +NMEDIT \
  21327. +LIPO \
  21328. +OTOOL \
  21329. +OTOOL64 \
  21330. +shrext_cmds \
  21331. +export_dynamic_flag_spec \
  21332. +whole_archive_flag_spec \
  21333. +compiler_needs_object \
  21334. +with_gnu_ld \
  21335. +allow_undefined_flag \
  21336. +no_undefined_flag \
  21337. +hardcode_libdir_flag_spec \
  21338. +hardcode_libdir_flag_spec_ld \
  21339. +hardcode_libdir_separator \
  21340. +fix_srcfile_path \
  21341. +exclude_expsyms \
  21342. +include_expsyms \
  21343. +file_list_spec \
  21344. +variables_saved_for_relink \
  21345. +libname_spec \
  21346. +library_names_spec \
  21347. +soname_spec \
  21348. +finish_eval \
  21349. +old_striplib \
  21350. +striplib \
  21351. +compiler_lib_search_dirs \
  21352. +predep_objects \
  21353. +postdep_objects \
  21354. +predeps \
  21355. +postdeps \
  21356. +compiler_lib_search_path \
  21357. +LD_CXX \
  21358. +compiler_CXX \
  21359. +lt_prog_compiler_no_builtin_flag_CXX \
  21360. +lt_prog_compiler_wl_CXX \
  21361. +lt_prog_compiler_pic_CXX \
  21362. +lt_prog_compiler_static_CXX \
  21363. +lt_cv_prog_compiler_c_o_CXX \
  21364. +export_dynamic_flag_spec_CXX \
  21365. +whole_archive_flag_spec_CXX \
  21366. +compiler_needs_object_CXX \
  21367. +with_gnu_ld_CXX \
  21368. +allow_undefined_flag_CXX \
  21369. +no_undefined_flag_CXX \
  21370. +hardcode_libdir_flag_spec_CXX \
  21371. +hardcode_libdir_flag_spec_ld_CXX \
  21372. +hardcode_libdir_separator_CXX \
  21373. +fix_srcfile_path_CXX \
  21374. +exclude_expsyms_CXX \
  21375. +include_expsyms_CXX \
  21376. +file_list_spec_CXX \
  21377. +compiler_lib_search_dirs_CXX \
  21378. +predep_objects_CXX \
  21379. +postdep_objects_CXX \
  21380. +predeps_CXX \
  21381. +postdeps_CXX \
  21382. +compiler_lib_search_path_CXX; do
  21383. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  21384. + *[\\\\\\\`\\"\\\$]*)
  21385. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21386. + ;;
  21387. + *)
  21388. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21389. + ;;
  21390. + esac
  21391. +done
  21392. +
  21393. +# Double-quote double-evaled strings.
  21394. +for var in reload_cmds \
  21395. +old_postinstall_cmds \
  21396. +old_postuninstall_cmds \
  21397. +old_archive_cmds \
  21398. +extract_expsyms_cmds \
  21399. +old_archive_from_new_cmds \
  21400. +old_archive_from_expsyms_cmds \
  21401. +archive_cmds \
  21402. +archive_expsym_cmds \
  21403. +module_cmds \
  21404. +module_expsym_cmds \
  21405. +export_symbols_cmds \
  21406. +prelink_cmds \
  21407. +postinstall_cmds \
  21408. +postuninstall_cmds \
  21409. +finish_cmds \
  21410. +sys_lib_search_path_spec \
  21411. +sys_lib_dlsearch_path_spec \
  21412. +old_archive_cmds_CXX \
  21413. +old_archive_from_new_cmds_CXX \
  21414. +old_archive_from_expsyms_cmds_CXX \
  21415. +archive_cmds_CXX \
  21416. +archive_expsym_cmds_CXX \
  21417. +module_cmds_CXX \
  21418. +module_expsym_cmds_CXX \
  21419. +export_symbols_cmds_CXX \
  21420. +prelink_cmds_CXX; do
  21421. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  21422. + *[\\\\\\\`\\"\\\$]*)
  21423. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21424. + ;;
  21425. + *)
  21426. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21427. + ;;
  21428. + esac
  21429. +done
  21430. +
  21431. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  21432. +case \$lt_ECHO in
  21433. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  21434. + ;;
  21435. +esac
  21436. +
  21437. +ac_aux_dir='$ac_aux_dir'
  21438. +xsi_shell='$xsi_shell'
  21439. +lt_shell_append='$lt_shell_append'
  21440. +
  21441. +# See if we are running on zsh, and set the options which allow our
  21442. +# commands through without removal of \ escapes INIT.
  21443. +if test -n "\${ZSH_VERSION+set}" ; then
  21444. + setopt NO_GLOB_SUBST
  21445. +fi
  21446. +
  21447. +
  21448. + PACKAGE='$PACKAGE'
  21449. + VERSION='$VERSION'
  21450. + TIMESTAMP='$TIMESTAMP'
  21451. + RM='$RM'
  21452. + ofile='$ofile'
  21453. +
  21454. +
  21455. +
  21456. +
  21457. +
  21458. +
  21459. +_ACEOF
  21460. +
  21461. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21462. +
  21463. +# Handling of arguments.
  21464. +for ac_config_target in $ac_config_targets
  21465. +do
  21466. + case $ac_config_target in
  21467. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21468. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21469. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21470. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21471. + "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
  21472. + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  21473. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21474. + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21475. + "tslib-$LT_RELEASE.pc") CONFIG_FILES="$CONFIG_FILES tslib-$LT_RELEASE.pc:tslib.pc.in" ;;
  21476. +
  21477. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21478. + esac
  21479. +done
  21480. +
  21481. +
  21482. +# If the user did not use the arguments to specify the items to instantiate,
  21483. +# then the envvar interface is used. Set only those that are not.
  21484. +# We use the long form for the default assignment because of an extremely
  21485. +# bizarre bug on SunOS 4.1.3.
  21486. +if $ac_need_defaults; then
  21487. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21488. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21489. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21490. +fi
  21491. +
  21492. +# Have a temporary directory for convenience. Make it in the build tree
  21493. +# simply because there is no reason against having it here, and in addition,
  21494. +# creating and moving files from /tmp can sometimes cause problems.
  21495. +# Hook for its removal unless debugging.
  21496. +# Note that there is a small window in which the directory will not be cleaned:
  21497. +# after its creation but before its name has been assigned to `$tmp'.
  21498. +$debug ||
  21499. +{
  21500. + tmp=
  21501. + trap 'exit_status=$?
  21502. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21503. +' 0
  21504. + trap 'as_fn_exit 1' 1 2 13 15
  21505. +}
  21506. +# Create a (secure) tmp directory for tmp files.
  21507. +
  21508. +{
  21509. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21510. + test -n "$tmp" && test -d "$tmp"
  21511. +} ||
  21512. +{
  21513. + tmp=./conf$$-$RANDOM
  21514. + (umask 077 && mkdir "$tmp")
  21515. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  21516. +
  21517. +# Set up the scripts for CONFIG_FILES section.
  21518. +# No need to generate them if there are no CONFIG_FILES.
  21519. +# This happens for instance with `./config.status config.h'.
  21520. +if test -n "$CONFIG_FILES"; then
  21521. +
  21522. +
  21523. +ac_cr=`echo X | tr X '\015'`
  21524. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  21525. +# But we know of no other shell where ac_cr would be empty at this
  21526. +# point, so we can use a bashism as a fallback.
  21527. +if test "x$ac_cr" = x; then
  21528. + eval ac_cr=\$\'\\r\'
  21529. +fi
  21530. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21531. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21532. + ac_cs_awk_cr='\r'
  21533. +else
  21534. + ac_cs_awk_cr=$ac_cr
  21535. +fi
  21536. +
  21537. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21538. +_ACEOF
  21539. +
  21540. +
  21541. +{
  21542. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  21543. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21544. + echo "_ACEOF"
  21545. +} >conf$$subs.sh ||
  21546. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  21547. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21548. +ac_delim='%!_!# '
  21549. +for ac_last_try in false false false false false :; do
  21550. + . ./conf$$subs.sh ||
  21551. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  21552. +
  21553. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21554. + if test $ac_delim_n = $ac_delim_num; then
  21555. + break
  21556. + elif $ac_last_try; then
  21557. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  21558. + else
  21559. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21560. + fi
  21561. +done
  21562. +rm -f conf$$subs.sh
  21563. +
  21564. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21565. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21566. +_ACEOF
  21567. +sed -n '
  21568. +h
  21569. +s/^/S["/; s/!.*/"]=/
  21570. +p
  21571. +g
  21572. +s/^[^!]*!//
  21573. +:repl
  21574. +t repl
  21575. +s/'"$ac_delim"'$//
  21576. +t delim
  21577. +:nl
  21578. +h
  21579. +s/\(.\{148\}\)..*/\1/
  21580. +t more1
  21581. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21582. +p
  21583. +n
  21584. +b repl
  21585. +:more1
  21586. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21587. +p
  21588. +g
  21589. +s/.\{148\}//
  21590. +t nl
  21591. +:delim
  21592. +h
  21593. +s/\(.\{148\}\)..*/\1/
  21594. +t more2
  21595. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  21596. +p
  21597. +b
  21598. +:more2
  21599. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21600. +p
  21601. +g
  21602. +s/.\{148\}//
  21603. +t delim
  21604. +' <conf$$subs.awk | sed '
  21605. +/^[^""]/{
  21606. + N
  21607. + s/\n//
  21608. +}
  21609. +' >>$CONFIG_STATUS || ac_write_fail=1
  21610. +rm -f conf$$subs.awk
  21611. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21612. +_ACAWK
  21613. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21614. + for (key in S) S_is_set[key] = 1
  21615. + FS = ""
  21616. +
  21617. +}
  21618. +{
  21619. + line = $ 0
  21620. + nfields = split(line, field, "@")
  21621. + substed = 0
  21622. + len = length(field[1])
  21623. + for (i = 2; i < nfields; i++) {
  21624. + key = field[i]
  21625. + keylen = length(key)
  21626. + if (S_is_set[key]) {
  21627. + value = S[key]
  21628. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21629. + len += length(value) + length(field[++i])
  21630. + substed = 1
  21631. + } else
  21632. + len += 1 + keylen
  21633. + }
  21634. +
  21635. + print line
  21636. +}
  21637. +
  21638. +_ACAWK
  21639. +_ACEOF
  21640. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21641. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21642. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21643. +else
  21644. + cat
  21645. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21646. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  21647. +_ACEOF
  21648. +
  21649. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  21650. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21651. +# trailing colons and then remove the whole line if VPATH becomes empty
  21652. +# (actually we leave an empty line to preserve line numbers).
  21653. +if test "x$srcdir" = x.; then
  21654. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21655. +s/:*\$(srcdir):*/:/
  21656. +s/:*\${srcdir}:*/:/
  21657. +s/:*@srcdir@:*/:/
  21658. +s/^\([^=]*=[ ]*\):*/\1/
  21659. +s/:*$//
  21660. +s/^[^=]*=[ ]*$//
  21661. +}'
  21662. +fi
  21663. +
  21664. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21665. +fi # test -n "$CONFIG_FILES"
  21666. +
  21667. +# Set up the scripts for CONFIG_HEADERS section.
  21668. +# No need to generate them if there are no CONFIG_HEADERS.
  21669. +# This happens for instance with `./config.status Makefile'.
  21670. +if test -n "$CONFIG_HEADERS"; then
  21671. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  21672. +BEGIN {
  21673. +_ACEOF
  21674. +
  21675. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  21676. +# here-document in config.status, that substitutes the proper values into
  21677. +# config.h.in to produce config.h.
  21678. +
  21679. +# Create a delimiter string that does not exist in confdefs.h, to ease
  21680. +# handling of long lines.
  21681. +ac_delim='%!_!# '
  21682. +for ac_last_try in false false :; do
  21683. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21684. + if test -z "$ac_t"; then
  21685. + break
  21686. + elif $ac_last_try; then
  21687. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  21688. + else
  21689. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21690. + fi
  21691. +done
  21692. +
  21693. +# For the awk script, D is an array of macro values keyed by name,
  21694. +# likewise P contains macro parameters if any. Preserve backslash
  21695. +# newline sequences.
  21696. +
  21697. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21698. +sed -n '
  21699. +s/.\{148\}/&'"$ac_delim"'/g
  21700. +t rset
  21701. +:rset
  21702. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  21703. +t def
  21704. +d
  21705. +:def
  21706. +s/\\$//
  21707. +t bsnl
  21708. +s/["\\]/\\&/g
  21709. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21710. +D["\1"]=" \3"/p
  21711. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21712. +d
  21713. +:bsnl
  21714. +s/["\\]/\\&/g
  21715. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21716. +D["\1"]=" \3\\\\\\n"\\/p
  21717. +t cont
  21718. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21719. +t cont
  21720. +d
  21721. +:cont
  21722. +n
  21723. +s/.\{148\}/&'"$ac_delim"'/g
  21724. +t clear
  21725. +:clear
  21726. +s/\\$//
  21727. +t bsnlc
  21728. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21729. +d
  21730. +:bsnlc
  21731. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21732. +b cont
  21733. +' <confdefs.h | sed '
  21734. +s/'"$ac_delim"'/"\\\
  21735. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  21736. +
  21737. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21738. + for (key in D) D_is_set[key] = 1
  21739. + FS = ""
  21740. +}
  21741. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21742. + line = \$ 0
  21743. + split(line, arg, " ")
  21744. + if (arg[1] == "#") {
  21745. + defundef = arg[2]
  21746. + mac1 = arg[3]
  21747. + } else {
  21748. + defundef = substr(arg[1], 2)
  21749. + mac1 = arg[2]
  21750. + }
  21751. + split(mac1, mac2, "(") #)
  21752. + macro = mac2[1]
  21753. + prefix = substr(line, 1, index(line, defundef) - 1)
  21754. + if (D_is_set[macro]) {
  21755. + # Preserve the white space surrounding the "#".
  21756. + print prefix "define", macro P[macro] D[macro]
  21757. + next
  21758. + } else {
  21759. + # Replace #undef with comments. This is necessary, for example,
  21760. + # in the case of _POSIX_SOURCE, which is predefined and required
  21761. + # on some systems where configure will not decide to define it.
  21762. + if (defundef == "undef") {
  21763. + print "/*", prefix defundef, macro, "*/"
  21764. + next
  21765. + }
  21766. + }
  21767. +}
  21768. +{ print }
  21769. +_ACAWK
  21770. +_ACEOF
  21771. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21772. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  21773. +fi # test -n "$CONFIG_HEADERS"
  21774. +
  21775. +
  21776. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21777. +shift
  21778. +for ac_tag
  21779. +do
  21780. + case $ac_tag in
  21781. + :[FHLC]) ac_mode=$ac_tag; continue;;
  21782. + esac
  21783. + case $ac_mode$ac_tag in
  21784. + :[FHL]*:*);;
  21785. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21786. + :[FH]-) ac_tag=-:-;;
  21787. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21788. + esac
  21789. + ac_save_IFS=$IFS
  21790. + IFS=:
  21791. + set x $ac_tag
  21792. + IFS=$ac_save_IFS
  21793. + shift
  21794. + ac_file=$1
  21795. + shift
  21796. +
  21797. + case $ac_mode in
  21798. + :L) ac_source=$1;;
  21799. + :[FH])
  21800. + ac_file_inputs=
  21801. + for ac_f
  21802. + do
  21803. + case $ac_f in
  21804. + -) ac_f="$tmp/stdin";;
  21805. + *) # Look for the file first in the build tree, then in the source tree
  21806. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  21807. + # because $ac_f cannot contain `:'.
  21808. + test -f "$ac_f" ||
  21809. + case $ac_f in
  21810. + [\\/$]*) false;;
  21811. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21812. + esac ||
  21813. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21814. + esac
  21815. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21816. + as_fn_append ac_file_inputs " '$ac_f'"
  21817. + done
  21818. +
  21819. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  21820. + # use $as_me), people would be surprised to read:
  21821. + # /* config.h. Generated by config.status. */
  21822. + configure_input='Generated from '`
  21823. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21824. + `' by configure.'
  21825. + if test x"$ac_file" != x-; then
  21826. + configure_input="$ac_file. $configure_input"
  21827. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21828. +$as_echo "$as_me: creating $ac_file" >&6;}
  21829. + fi
  21830. + # Neutralize special characters interpreted by sed in replacement strings.
  21831. + case $configure_input in #(
  21832. + *\&* | *\|* | *\\* )
  21833. + ac_sed_conf_input=`$as_echo "$configure_input" |
  21834. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21835. + *) ac_sed_conf_input=$configure_input;;
  21836. + esac
  21837. +
  21838. + case $ac_tag in
  21839. + *:-:* | *:-) cat >"$tmp/stdin" \
  21840. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  21841. + esac
  21842. + ;;
  21843. + esac
  21844. +
  21845. + ac_dir=`$as_dirname -- "$ac_file" ||
  21846. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21847. + X"$ac_file" : 'X\(//\)[^/]' \| \
  21848. + X"$ac_file" : 'X\(//\)$' \| \
  21849. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21850. +$as_echo X"$ac_file" |
  21851. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21852. + s//\1/
  21853. + q
  21854. + }
  21855. + /^X\(\/\/\)[^/].*/{
  21856. + s//\1/
  21857. + q
  21858. + }
  21859. + /^X\(\/\/\)$/{
  21860. + s//\1/
  21861. + q
  21862. + }
  21863. + /^X\(\/\).*/{
  21864. + s//\1/
  21865. + q
  21866. + }
  21867. + s/.*/./; q'`
  21868. + as_dir="$ac_dir"; as_fn_mkdir_p
  21869. + ac_builddir=.
  21870. +
  21871. +case "$ac_dir" in
  21872. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21873. +*)
  21874. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21875. + # A ".." for each directory in $ac_dir_suffix.
  21876. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21877. + case $ac_top_builddir_sub in
  21878. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21879. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21880. + esac ;;
  21881. +esac
  21882. +ac_abs_top_builddir=$ac_pwd
  21883. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21884. +# for backward compatibility:
  21885. +ac_top_builddir=$ac_top_build_prefix
  21886. +
  21887. +case $srcdir in
  21888. + .) # We are building in place.
  21889. + ac_srcdir=.
  21890. + ac_top_srcdir=$ac_top_builddir_sub
  21891. + ac_abs_top_srcdir=$ac_pwd ;;
  21892. + [\\/]* | ?:[\\/]* ) # Absolute name.
  21893. + ac_srcdir=$srcdir$ac_dir_suffix;
  21894. + ac_top_srcdir=$srcdir
  21895. + ac_abs_top_srcdir=$srcdir ;;
  21896. + *) # Relative name.
  21897. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21898. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  21899. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21900. +esac
  21901. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21902. +
  21903. +
  21904. + case $ac_mode in
  21905. + :F)
  21906. + #
  21907. + # CONFIG_FILE
  21908. + #
  21909. +
  21910. + case $INSTALL in
  21911. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21912. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21913. + esac
  21914. + ac_MKDIR_P=$MKDIR_P
  21915. + case $MKDIR_P in
  21916. + [\\/$]* | ?:[\\/]* ) ;;
  21917. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21918. + esac
  21919. +_ACEOF
  21920. +
  21921. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21922. +# If the template does not know about datarootdir, expand it.
  21923. +# FIXME: This hack should be removed a few years after 2.60.
  21924. +ac_datarootdir_hack=; ac_datarootdir_seen=
  21925. +ac_sed_dataroot='
  21926. +/datarootdir/ {
  21927. + p
  21928. + q
  21929. +}
  21930. +/@datadir@/p
  21931. +/@docdir@/p
  21932. +/@infodir@/p
  21933. +/@localedir@/p
  21934. +/@mandir@/p'
  21935. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21936. +*datarootdir*) ac_datarootdir_seen=yes;;
  21937. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21938. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21939. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21940. +_ACEOF
  21941. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21942. + ac_datarootdir_hack='
  21943. + s&@datadir@&$datadir&g
  21944. + s&@docdir@&$docdir&g
  21945. + s&@infodir@&$infodir&g
  21946. + s&@localedir@&$localedir&g
  21947. + s&@mandir@&$mandir&g
  21948. + s&\\\${datarootdir}&$datarootdir&g' ;;
  21949. +esac
  21950. +_ACEOF
  21951. +
  21952. +# Neutralize VPATH when `$srcdir' = `.'.
  21953. +# Shell code in configure.ac might set extrasub.
  21954. +# FIXME: do we really want to maintain this feature?
  21955. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21956. +ac_sed_extra="$ac_vpsub
  21957. +$extrasub
  21958. +_ACEOF
  21959. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21960. +:t
  21961. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21962. +s|@configure_input@|$ac_sed_conf_input|;t t
  21963. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  21964. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21965. +s&@srcdir@&$ac_srcdir&;t t
  21966. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21967. +s&@top_srcdir@&$ac_top_srcdir&;t t
  21968. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21969. +s&@builddir@&$ac_builddir&;t t
  21970. +s&@abs_builddir@&$ac_abs_builddir&;t t
  21971. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21972. +s&@INSTALL@&$ac_INSTALL&;t t
  21973. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21974. +$ac_datarootdir_hack
  21975. +"
  21976. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  21977. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  21978. +
  21979. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21980. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21981. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21982. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21983. +which seems to be undefined. Please make sure it is defined." >&5
  21984. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21985. +which seems to be undefined. Please make sure it is defined." >&2;}
  21986. +
  21987. + rm -f "$tmp/stdin"
  21988. + case $ac_file in
  21989. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  21990. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  21991. + esac \
  21992. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  21993. + ;;
  21994. + :H)
  21995. + #
  21996. + # CONFIG_HEADER
  21997. + #
  21998. + if test x"$ac_file" != x-; then
  21999. + {
  22000. + $as_echo "/* $configure_input */" \
  22001. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22002. + } >"$tmp/config.h" \
  22003. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  22004. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  22005. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22006. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  22007. + else
  22008. + rm -f "$ac_file"
  22009. + mv "$tmp/config.h" "$ac_file" \
  22010. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  22011. + fi
  22012. + else
  22013. + $as_echo "/* $configure_input */" \
  22014. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22015. + || as_fn_error "could not create -" "$LINENO" 5
  22016. + fi
  22017. +# Compute "$ac_file"'s index in $config_headers.
  22018. +_am_arg="$ac_file"
  22019. +_am_stamp_count=1
  22020. +for _am_header in $config_headers :; do
  22021. + case $_am_header in
  22022. + $_am_arg | $_am_arg:* )
  22023. + break ;;
  22024. + * )
  22025. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22026. + esac
  22027. +done
  22028. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22029. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22030. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  22031. + X"$_am_arg" : 'X\(//\)$' \| \
  22032. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22033. +$as_echo X"$_am_arg" |
  22034. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22035. + s//\1/
  22036. + q
  22037. + }
  22038. + /^X\(\/\/\)[^/].*/{
  22039. + s//\1/
  22040. + q
  22041. + }
  22042. + /^X\(\/\/\)$/{
  22043. + s//\1/
  22044. + q
  22045. + }
  22046. + /^X\(\/\).*/{
  22047. + s//\1/
  22048. + q
  22049. + }
  22050. + s/.*/./; q'`/stamp-h$_am_stamp_count
  22051. + ;;
  22052. +
  22053. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22054. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  22055. + ;;
  22056. + esac
  22057. +
  22058. +
  22059. + case $ac_file$ac_mode in
  22060. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  22061. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22062. + # are listed without --file. Let's play safe and only enable the eval
  22063. + # if we detect the quoting.
  22064. + case $CONFIG_FILES in
  22065. + *\'*) eval set x "$CONFIG_FILES" ;;
  22066. + *) set x $CONFIG_FILES ;;
  22067. + esac
  22068. + shift
  22069. + for mf
  22070. + do
  22071. + # Strip MF so we end up with the name of the file.
  22072. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  22073. + # Check whether this is an Automake generated Makefile or not.
  22074. + # We used to match only the files named `Makefile.in', but
  22075. + # some people rename them; so instead we look at the file content.
  22076. + # Grep'ing the first line is not enough: some people post-process
  22077. + # each Makefile.in and add a new line on top of each file to say so.
  22078. + # Grep'ing the whole file is not good either: AIX grep has a line
  22079. + # limit of 2048, but all sed's we know have understand at least 4000.
  22080. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22081. + dirpart=`$as_dirname -- "$mf" ||
  22082. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22083. + X"$mf" : 'X\(//\)[^/]' \| \
  22084. + X"$mf" : 'X\(//\)$' \| \
  22085. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22086. +$as_echo X"$mf" |
  22087. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22088. + s//\1/
  22089. + q
  22090. + }
  22091. + /^X\(\/\/\)[^/].*/{
  22092. + s//\1/
  22093. + q
  22094. + }
  22095. + /^X\(\/\/\)$/{
  22096. + s//\1/
  22097. + q
  22098. + }
  22099. + /^X\(\/\).*/{
  22100. + s//\1/
  22101. + q
  22102. + }
  22103. + s/.*/./; q'`
  22104. + else
  22105. + continue
  22106. + fi
  22107. + # Extract the definition of DEPDIR, am__include, and am__quote
  22108. + # from the Makefile without running `make'.
  22109. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22110. + test -z "$DEPDIR" && continue
  22111. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22112. + test -z "am__include" && continue
  22113. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22114. + # When using ansi2knr, U may be empty or an underscore; expand it
  22115. + U=`sed -n 's/^U = //p' < "$mf"`
  22116. + # Find all dependency output files, they are included files with
  22117. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  22118. + # simplest approach to changing $(DEPDIR) to its actual value in the
  22119. + # expansion.
  22120. + for file in `sed -n "
  22121. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22122. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22123. + # Make sure the directory exists.
  22124. + test -f "$dirpart/$file" && continue
  22125. + fdir=`$as_dirname -- "$file" ||
  22126. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22127. + X"$file" : 'X\(//\)[^/]' \| \
  22128. + X"$file" : 'X\(//\)$' \| \
  22129. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22130. +$as_echo X"$file" |
  22131. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22132. + s//\1/
  22133. + q
  22134. + }
  22135. + /^X\(\/\/\)[^/].*/{
  22136. + s//\1/
  22137. + q
  22138. + }
  22139. + /^X\(\/\/\)$/{
  22140. + s//\1/
  22141. + q
  22142. + }
  22143. + /^X\(\/\).*/{
  22144. + s//\1/
  22145. + q
  22146. + }
  22147. + s/.*/./; q'`
  22148. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  22149. + # echo "creating $dirpart/$file"
  22150. + echo '# dummy' > "$dirpart/$file"
  22151. + done
  22152. + done
  22153. +}
  22154. + ;;
  22155. + "libtool":C)
  22156. +
  22157. + # See if we are running on zsh, and set the options which allow our
  22158. + # commands through without removal of \ escapes.
  22159. + if test -n "${ZSH_VERSION+set}" ; then
  22160. + setopt NO_GLOB_SUBST
  22161. + fi
  22162. +
  22163. + cfgfile="${ofile}T"
  22164. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22165. + $RM "$cfgfile"
  22166. +
  22167. + cat <<_LT_EOF >> "$cfgfile"
  22168. +#! $SHELL
  22169. +
  22170. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22171. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22172. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22173. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22174. +#
  22175. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22176. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  22177. +# Written by Gordon Matzigkeit, 1996
  22178. +#
  22179. +# This file is part of GNU Libtool.
  22180. +#
  22181. +# GNU Libtool is free software; you can redistribute it and/or
  22182. +# modify it under the terms of the GNU General Public License as
  22183. +# published by the Free Software Foundation; either version 2 of
  22184. +# the License, or (at your option) any later version.
  22185. +#
  22186. +# As a special exception to the GNU General Public License,
  22187. +# if you distribute this file as part of a program or library that
  22188. +# is built using GNU Libtool, you may include this file under the
  22189. +# same distribution terms that you use for the rest of that program.
  22190. +#
  22191. +# GNU Libtool is distributed in the hope that it will be useful,
  22192. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  22193. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22194. +# GNU General Public License for more details.
  22195. +#
  22196. +# You should have received a copy of the GNU General Public License
  22197. +# along with GNU Libtool; see the file COPYING. If not, a copy
  22198. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22199. +# obtained by writing to the Free Software Foundation, Inc.,
  22200. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22201. +
  22202. +
  22203. +# The names of the tagged configurations supported by this script.
  22204. +available_tags="CXX "
  22205. +
  22206. +# ### BEGIN LIBTOOL CONFIG
  22207. +
  22208. +# Whether or not to build static libraries.
  22209. +build_old_libs=$enable_static
  22210. +
  22211. +# Whether or not to build shared libraries.
  22212. +build_libtool_libs=$enable_shared
  22213. +
  22214. +# Which release of libtool.m4 was used?
  22215. +macro_version=$macro_version
  22216. +macro_revision=$macro_revision
  22217. +
  22218. +# What type of objects to build.
  22219. +pic_mode=$pic_mode
  22220. +
  22221. +# Whether or not to optimize for fast installation.
  22222. +fast_install=$enable_fast_install
  22223. +
  22224. +# The host system.
  22225. +host_alias=$host_alias
  22226. +host=$host
  22227. +host_os=$host_os
  22228. +
  22229. +# The build system.
  22230. +build_alias=$build_alias
  22231. +build=$build
  22232. +build_os=$build_os
  22233. +
  22234. +# A sed program that does not truncate output.
  22235. +SED=$lt_SED
  22236. +
  22237. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22238. +Xsed="\$SED -e 1s/^X//"
  22239. +
  22240. +# A grep program that handles long lines.
  22241. +GREP=$lt_GREP
  22242. +
  22243. +# An ERE matcher.
  22244. +EGREP=$lt_EGREP
  22245. +
  22246. +# A literal string matcher.
  22247. +FGREP=$lt_FGREP
  22248. +
  22249. +# A BSD- or MS-compatible name lister.
  22250. +NM=$lt_NM
  22251. +
  22252. +# Whether we need soft or hard links.
  22253. +LN_S=$lt_LN_S
  22254. +
  22255. +# What is the maximum length of a command?
  22256. +max_cmd_len=$max_cmd_len
  22257. +
  22258. +# Object file suffix (normally "o").
  22259. +objext=$ac_objext
  22260. +
  22261. +# Executable file suffix (normally "").
  22262. +exeext=$exeext
  22263. +
  22264. +# whether the shell understands "unset".
  22265. +lt_unset=$lt_unset
  22266. +
  22267. +# turn spaces into newlines.
  22268. +SP2NL=$lt_lt_SP2NL
  22269. +
  22270. +# turn newlines into spaces.
  22271. +NL2SP=$lt_lt_NL2SP
  22272. +
  22273. +# How to create reloadable object files.
  22274. +reload_flag=$lt_reload_flag
  22275. +reload_cmds=$lt_reload_cmds
  22276. +
  22277. +# An object symbol dumper.
  22278. +OBJDUMP=$lt_OBJDUMP
  22279. +
  22280. +# Method to check whether dependent libraries are shared objects.
  22281. +deplibs_check_method=$lt_deplibs_check_method
  22282. +
  22283. +# Command to use when deplibs_check_method == "file_magic".
  22284. +file_magic_cmd=$lt_file_magic_cmd
  22285. +
  22286. +# The archiver.
  22287. +AR=$lt_AR
  22288. +AR_FLAGS=$lt_AR_FLAGS
  22289. +
  22290. +# A symbol stripping program.
  22291. +STRIP=$lt_STRIP
  22292. +
  22293. +# Commands used to install an old-style archive.
  22294. +RANLIB=$lt_RANLIB
  22295. +old_postinstall_cmds=$lt_old_postinstall_cmds
  22296. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22297. +
  22298. +# A C compiler.
  22299. +LTCC=$lt_CC
  22300. +
  22301. +# LTCC compiler flags.
  22302. +LTCFLAGS=$lt_CFLAGS
  22303. +
  22304. +# Take the output of nm and produce a listing of raw symbols and C names.
  22305. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22306. +
  22307. +# Transform the output of nm in a proper C declaration.
  22308. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22309. +
  22310. +# Transform the output of nm in a C name address pair.
  22311. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22312. +
  22313. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  22314. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22315. +
  22316. +# The name of the directory that contains temporary libtool files.
  22317. +objdir=$objdir
  22318. +
  22319. +# Shell to use when invoking shell scripts.
  22320. +SHELL=$lt_SHELL
  22321. +
  22322. +# An echo program that does not interpret backslashes.
  22323. +ECHO=$lt_ECHO
  22324. +
  22325. +# Used to examine libraries when file_magic_cmd begins with "file".
  22326. +MAGIC_CMD=$MAGIC_CMD
  22327. +
  22328. +# Must we lock files when doing compilation?
  22329. +need_locks=$lt_need_locks
  22330. +
  22331. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22332. +DSYMUTIL=$lt_DSYMUTIL
  22333. +
  22334. +# Tool to change global to local symbols on Mac OS X.
  22335. +NMEDIT=$lt_NMEDIT
  22336. +
  22337. +# Tool to manipulate fat objects and archives on Mac OS X.
  22338. +LIPO=$lt_LIPO
  22339. +
  22340. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22341. +OTOOL=$lt_OTOOL
  22342. +
  22343. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22344. +OTOOL64=$lt_OTOOL64
  22345. +
  22346. +# Old archive suffix (normally "a").
  22347. +libext=$libext
  22348. +
  22349. +# Shared library suffix (normally ".so").
  22350. +shrext_cmds=$lt_shrext_cmds
  22351. +
  22352. +# The commands to extract the exported symbol list from a shared archive.
  22353. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22354. +
  22355. +# Variables whose values should be saved in libtool wrapper scripts and
  22356. +# restored at link time.
  22357. +variables_saved_for_relink=$lt_variables_saved_for_relink
  22358. +
  22359. +# Do we need the "lib" prefix for modules?
  22360. +need_lib_prefix=$need_lib_prefix
  22361. +
  22362. +# Do we need a version for libraries?
  22363. +need_version=$need_version
  22364. +
  22365. +# Library versioning type.
  22366. +version_type=$version_type
  22367. +
  22368. +# Shared library runtime path variable.
  22369. +runpath_var=$runpath_var
  22370. +
  22371. +# Shared library path variable.
  22372. +shlibpath_var=$shlibpath_var
  22373. +
  22374. +# Is shlibpath searched before the hard-coded library search path?
  22375. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22376. +
  22377. +# Format of library name prefix.
  22378. +libname_spec=$lt_libname_spec
  22379. +
  22380. +# List of archive names. First name is the real one, the rest are links.
  22381. +# The last name is the one that the linker finds with -lNAME
  22382. +library_names_spec=$lt_library_names_spec
  22383. +
  22384. +# The coded name of the library, if different from the real name.
  22385. +soname_spec=$lt_soname_spec
  22386. +
  22387. +# Command to use after installation of a shared archive.
  22388. +postinstall_cmds=$lt_postinstall_cmds
  22389. +
  22390. +# Command to use after uninstallation of a shared archive.
  22391. +postuninstall_cmds=$lt_postuninstall_cmds
  22392. +
  22393. +# Commands used to finish a libtool library installation in a directory.
  22394. +finish_cmds=$lt_finish_cmds
  22395. +
  22396. +# As "finish_cmds", except a single script fragment to be evaled but
  22397. +# not shown.
  22398. +finish_eval=$lt_finish_eval
  22399. +
  22400. +# Whether we should hardcode library paths into libraries.
  22401. +hardcode_into_libs=$hardcode_into_libs
  22402. +
  22403. +# Compile-time system search path for libraries.
  22404. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22405. +
  22406. +# Run-time system search path for libraries.
  22407. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22408. +
  22409. +# Whether dlopen is supported.
  22410. +dlopen_support=$enable_dlopen
  22411. +
  22412. +# Whether dlopen of programs is supported.
  22413. +dlopen_self=$enable_dlopen_self
  22414. +
  22415. +# Whether dlopen of statically linked programs is supported.
  22416. +dlopen_self_static=$enable_dlopen_self_static
  22417. +
  22418. +# Commands to strip libraries.
  22419. +old_striplib=$lt_old_striplib
  22420. +striplib=$lt_striplib
  22421. +
  22422. +
  22423. +# The linker used to build libraries.
  22424. +LD=$lt_LD
  22425. +
  22426. +# Commands used to build an old-style archive.
  22427. +old_archive_cmds=$lt_old_archive_cmds
  22428. +
  22429. +# A language specific compiler.
  22430. +CC=$lt_compiler
  22431. +
  22432. +# Is the compiler the GNU compiler?
  22433. +with_gcc=$GCC
  22434. +
  22435. +# Compiler flag to turn off builtin functions.
  22436. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22437. +
  22438. +# How to pass a linker flag through the compiler.
  22439. +wl=$lt_lt_prog_compiler_wl
  22440. +
  22441. +# Additional compiler flags for building library objects.
  22442. +pic_flag=$lt_lt_prog_compiler_pic
  22443. +
  22444. +# Compiler flag to prevent dynamic linking.
  22445. +link_static_flag=$lt_lt_prog_compiler_static
  22446. +
  22447. +# Does compiler simultaneously support -c and -o options?
  22448. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22449. +
  22450. +# Whether or not to add -lc for building shared libraries.
  22451. +build_libtool_need_lc=$archive_cmds_need_lc
  22452. +
  22453. +# Whether or not to disallow shared libs when runtime libs are static.
  22454. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22455. +
  22456. +# Compiler flag to allow reflexive dlopens.
  22457. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22458. +
  22459. +# Compiler flag to generate shared objects directly from archives.
  22460. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22461. +
  22462. +# Whether the compiler copes with passing no objects directly.
  22463. +compiler_needs_object=$lt_compiler_needs_object
  22464. +
  22465. +# Create an old-style archive from a shared archive.
  22466. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22467. +
  22468. +# Create a temporary old-style archive to link instead of a shared archive.
  22469. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22470. +
  22471. +# Commands used to build a shared archive.
  22472. +archive_cmds=$lt_archive_cmds
  22473. +archive_expsym_cmds=$lt_archive_expsym_cmds
  22474. +
  22475. +# Commands used to build a loadable module if different from building
  22476. +# a shared archive.
  22477. +module_cmds=$lt_module_cmds
  22478. +module_expsym_cmds=$lt_module_expsym_cmds
  22479. +
  22480. +# Whether we are building with GNU ld or not.
  22481. +with_gnu_ld=$lt_with_gnu_ld
  22482. +
  22483. +# Flag that allows shared libraries with undefined symbols to be built.
  22484. +allow_undefined_flag=$lt_allow_undefined_flag
  22485. +
  22486. +# Flag that enforces no undefined symbols.
  22487. +no_undefined_flag=$lt_no_undefined_flag
  22488. +
  22489. +# Flag to hardcode \$libdir into a binary during linking.
  22490. +# This must work even if \$libdir does not exist
  22491. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22492. +
  22493. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  22494. +# during linking. This must work even if \$libdir does not exist.
  22495. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  22496. +
  22497. +# Whether we need a single "-rpath" flag with a separated argument.
  22498. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22499. +
  22500. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22501. +# DIR into the resulting binary.
  22502. +hardcode_direct=$hardcode_direct
  22503. +
  22504. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22505. +# DIR into the resulting binary and the resulting library dependency is
  22506. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22507. +# library is relocated.
  22508. +hardcode_direct_absolute=$hardcode_direct_absolute
  22509. +
  22510. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22511. +# into the resulting binary.
  22512. +hardcode_minus_L=$hardcode_minus_L
  22513. +
  22514. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22515. +# into the resulting binary.
  22516. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  22517. +
  22518. +# Set to "yes" if building a shared library automatically hardcodes DIR
  22519. +# into the library and all subsequent libraries and executables linked
  22520. +# against it.
  22521. +hardcode_automatic=$hardcode_automatic
  22522. +
  22523. +# Set to yes if linker adds runtime paths of dependent libraries
  22524. +# to runtime path list.
  22525. +inherit_rpath=$inherit_rpath
  22526. +
  22527. +# Whether libtool must link a program against all its dependency libraries.
  22528. +link_all_deplibs=$link_all_deplibs
  22529. +
  22530. +# Fix the shell variable \$srcfile for the compiler.
  22531. +fix_srcfile_path=$lt_fix_srcfile_path
  22532. +
  22533. +# Set to "yes" if exported symbols are required.
  22534. +always_export_symbols=$always_export_symbols
  22535. +
  22536. +# The commands to list exported symbols.
  22537. +export_symbols_cmds=$lt_export_symbols_cmds
  22538. +
  22539. +# Symbols that should not be listed in the preloaded symbols.
  22540. +exclude_expsyms=$lt_exclude_expsyms
  22541. +
  22542. +# Symbols that must always be exported.
  22543. +include_expsyms=$lt_include_expsyms
  22544. +
  22545. +# Commands necessary for linking programs (against libraries) with templates.
  22546. +prelink_cmds=$lt_prelink_cmds
  22547. +
  22548. +# Specify filename containing input files.
  22549. +file_list_spec=$lt_file_list_spec
  22550. +
  22551. +# How to hardcode a shared library path into an executable.
  22552. +hardcode_action=$hardcode_action
  22553. +
  22554. +# The directories searched by this compiler when creating a shared library.
  22555. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22556. +
  22557. +# Dependencies to place before and after the objects being linked to
  22558. +# create a shared library.
  22559. +predep_objects=$lt_predep_objects
  22560. +postdep_objects=$lt_postdep_objects
  22561. +predeps=$lt_predeps
  22562. +postdeps=$lt_postdeps
  22563. +
  22564. +# The library search path used internally by the compiler when linking
  22565. +# a shared library.
  22566. +compiler_lib_search_path=$lt_compiler_lib_search_path
  22567. +
  22568. +# ### END LIBTOOL CONFIG
  22569. +
  22570. +_LT_EOF
  22571. +
  22572. + case $host_os in
  22573. + aix3*)
  22574. + cat <<\_LT_EOF >> "$cfgfile"
  22575. +# AIX sometimes has problems with the GCC collect2 program. For some
  22576. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  22577. +# vanish in a puff of smoke.
  22578. +if test "X${COLLECT_NAMES+set}" != Xset; then
  22579. + COLLECT_NAMES=
  22580. + export COLLECT_NAMES
  22581. +fi
  22582. +_LT_EOF
  22583. + ;;
  22584. + esac
  22585. +
  22586. +
  22587. +ltmain="$ac_aux_dir/ltmain.sh"
  22588. +
  22589. +
  22590. + # We use sed instead of cat because bash on DJGPP gets confused if
  22591. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22592. + # text mode, it properly converts lines to CR/LF. This bash problem
  22593. + # is reportedly fixed, but why not run on old versions too?
  22594. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  22595. + || (rm -f "$cfgfile"; exit 1)
  22596. +
  22597. + case $xsi_shell in
  22598. + yes)
  22599. + cat << \_LT_EOF >> "$cfgfile"
  22600. +
  22601. +# func_dirname file append nondir_replacement
  22602. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  22603. +# otherwise set result to NONDIR_REPLACEMENT.
  22604. +func_dirname ()
  22605. +{
  22606. + case ${1} in
  22607. + */*) func_dirname_result="${1%/*}${2}" ;;
  22608. + * ) func_dirname_result="${3}" ;;
  22609. + esac
  22610. +}
  22611. +
  22612. +# func_basename file
  22613. +func_basename ()
  22614. +{
  22615. + func_basename_result="${1##*/}"
  22616. +}
  22617. +
  22618. +# func_dirname_and_basename file append nondir_replacement
  22619. +# perform func_basename and func_dirname in a single function
  22620. +# call:
  22621. +# dirname: Compute the dirname of FILE. If nonempty,
  22622. +# add APPEND to the result, otherwise set result
  22623. +# to NONDIR_REPLACEMENT.
  22624. +# value returned in "$func_dirname_result"
  22625. +# basename: Compute filename of FILE.
  22626. +# value retuned in "$func_basename_result"
  22627. +# Implementation must be kept synchronized with func_dirname
  22628. +# and func_basename. For efficiency, we do not delegate to
  22629. +# those functions but instead duplicate the functionality here.
  22630. +func_dirname_and_basename ()
  22631. +{
  22632. + case ${1} in
  22633. + */*) func_dirname_result="${1%/*}${2}" ;;
  22634. + * ) func_dirname_result="${3}" ;;
  22635. + esac
  22636. + func_basename_result="${1##*/}"
  22637. +}
  22638. +
  22639. +# func_stripname prefix suffix name
  22640. +# strip PREFIX and SUFFIX off of NAME.
  22641. +# PREFIX and SUFFIX must not contain globbing or regex special
  22642. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  22643. +# dot (in which case that matches only a dot).
  22644. +func_stripname ()
  22645. +{
  22646. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  22647. + # positional parameters, so assign one to ordinary parameter first.
  22648. + func_stripname_result=${3}
  22649. + func_stripname_result=${func_stripname_result#"${1}"}
  22650. + func_stripname_result=${func_stripname_result%"${2}"}
  22651. +}
  22652. +
  22653. +# func_opt_split
  22654. +func_opt_split ()
  22655. +{
  22656. + func_opt_split_opt=${1%%=*}
  22657. + func_opt_split_arg=${1#*=}
  22658. +}
  22659. +
  22660. +# func_lo2o object
  22661. +func_lo2o ()
  22662. +{
  22663. + case ${1} in
  22664. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  22665. + *) func_lo2o_result=${1} ;;
  22666. + esac
  22667. +}
  22668. +
  22669. +# func_xform libobj-or-source
  22670. +func_xform ()
  22671. +{
  22672. + func_xform_result=${1%.*}.lo
  22673. +}
  22674. +
  22675. +# func_arith arithmetic-term...
  22676. +func_arith ()
  22677. +{
  22678. + func_arith_result=$(( $* ))
  22679. +}
  22680. +
  22681. +# func_len string
  22682. +# STRING may not start with a hyphen.
  22683. +func_len ()
  22684. +{
  22685. + func_len_result=${#1}
  22686. +}
  22687. +
  22688. +_LT_EOF
  22689. + ;;
  22690. + *) # Bourne compatible functions.
  22691. + cat << \_LT_EOF >> "$cfgfile"
  22692. +
  22693. +# func_dirname file append nondir_replacement
  22694. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  22695. +# otherwise set result to NONDIR_REPLACEMENT.
  22696. +func_dirname ()
  22697. +{
  22698. + # Extract subdirectory from the argument.
  22699. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  22700. + if test "X$func_dirname_result" = "X${1}"; then
  22701. + func_dirname_result="${3}"
  22702. + else
  22703. + func_dirname_result="$func_dirname_result${2}"
  22704. + fi
  22705. +}
  22706. +
  22707. +# func_basename file
  22708. +func_basename ()
  22709. +{
  22710. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  22711. +}
  22712. +
  22713. +
  22714. +# func_stripname prefix suffix name
  22715. +# strip PREFIX and SUFFIX off of NAME.
  22716. +# PREFIX and SUFFIX must not contain globbing or regex special
  22717. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  22718. +# dot (in which case that matches only a dot).
  22719. +# func_strip_suffix prefix name
  22720. +func_stripname ()
  22721. +{
  22722. + case ${2} in
  22723. + .*) func_stripname_result=`$ECHO "X${3}" \
  22724. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  22725. + *) func_stripname_result=`$ECHO "X${3}" \
  22726. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  22727. + esac
  22728. +}
  22729. +
  22730. +# sed scripts:
  22731. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  22732. +my_sed_long_arg='1s/^-[^=]*=//'
  22733. +
  22734. +# func_opt_split
  22735. +func_opt_split ()
  22736. +{
  22737. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  22738. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  22739. +}
  22740. +
  22741. +# func_lo2o object
  22742. +func_lo2o ()
  22743. +{
  22744. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  22745. +}
  22746. +
  22747. +# func_xform libobj-or-source
  22748. +func_xform ()
  22749. +{
  22750. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  22751. +}
  22752. +
  22753. +# func_arith arithmetic-term...
  22754. +func_arith ()
  22755. +{
  22756. + func_arith_result=`expr "$@"`
  22757. +}
  22758. +
  22759. +# func_len string
  22760. +# STRING may not start with a hyphen.
  22761. +func_len ()
  22762. +{
  22763. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  22764. +}
  22765. +
  22766. +_LT_EOF
  22767. +esac
  22768. +
  22769. +case $lt_shell_append in
  22770. + yes)
  22771. + cat << \_LT_EOF >> "$cfgfile"
  22772. +
  22773. +# func_append var value
  22774. +# Append VALUE to the end of shell variable VAR.
  22775. +func_append ()
  22776. +{
  22777. + eval "$1+=\$2"
  22778. +}
  22779. +_LT_EOF
  22780. + ;;
  22781. + *)
  22782. + cat << \_LT_EOF >> "$cfgfile"
  22783. +
  22784. +# func_append var value
  22785. +# Append VALUE to the end of shell variable VAR.
  22786. +func_append ()
  22787. +{
  22788. + eval "$1=\$$1\$2"
  22789. +}
  22790. +
  22791. +_LT_EOF
  22792. + ;;
  22793. + esac
  22794. +
  22795. +
  22796. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  22797. + || (rm -f "$cfgfile"; exit 1)
  22798. +
  22799. + mv -f "$cfgfile" "$ofile" ||
  22800. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22801. + chmod +x "$ofile"
  22802. +
  22803. +
  22804. + cat <<_LT_EOF >> "$ofile"
  22805. +
  22806. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  22807. +
  22808. +# The linker used to build libraries.
  22809. +LD=$lt_LD_CXX
  22810. +
  22811. +# Commands used to build an old-style archive.
  22812. +old_archive_cmds=$lt_old_archive_cmds_CXX
  22813. +
  22814. +# A language specific compiler.
  22815. +CC=$lt_compiler_CXX
  22816. +
  22817. +# Is the compiler the GNU compiler?
  22818. +with_gcc=$GCC_CXX
  22819. +
  22820. +# Compiler flag to turn off builtin functions.
  22821. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22822. +
  22823. +# How to pass a linker flag through the compiler.
  22824. +wl=$lt_lt_prog_compiler_wl_CXX
  22825. +
  22826. +# Additional compiler flags for building library objects.
  22827. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  22828. +
  22829. +# Compiler flag to prevent dynamic linking.
  22830. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  22831. +
  22832. +# Does compiler simultaneously support -c and -o options?
  22833. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22834. +
  22835. +# Whether or not to add -lc for building shared libraries.
  22836. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22837. +
  22838. +# Whether or not to disallow shared libs when runtime libs are static.
  22839. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22840. +
  22841. +# Compiler flag to allow reflexive dlopens.
  22842. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22843. +
  22844. +# Compiler flag to generate shared objects directly from archives.
  22845. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22846. +
  22847. +# Whether the compiler copes with passing no objects directly.
  22848. +compiler_needs_object=$lt_compiler_needs_object_CXX
  22849. +
  22850. +# Create an old-style archive from a shared archive.
  22851. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22852. +
  22853. +# Create a temporary old-style archive to link instead of a shared archive.
  22854. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22855. +
  22856. +# Commands used to build a shared archive.
  22857. +archive_cmds=$lt_archive_cmds_CXX
  22858. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22859. +
  22860. +# Commands used to build a loadable module if different from building
  22861. +# a shared archive.
  22862. +module_cmds=$lt_module_cmds_CXX
  22863. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22864. +
  22865. +# Whether we are building with GNU ld or not.
  22866. +with_gnu_ld=$lt_with_gnu_ld_CXX
  22867. +
  22868. +# Flag that allows shared libraries with undefined symbols to be built.
  22869. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22870. +
  22871. +# Flag that enforces no undefined symbols.
  22872. +no_undefined_flag=$lt_no_undefined_flag_CXX
  22873. +
  22874. +# Flag to hardcode \$libdir into a binary during linking.
  22875. +# This must work even if \$libdir does not exist
  22876. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22877. +
  22878. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  22879. +# during linking. This must work even if \$libdir does not exist.
  22880. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  22881. +
  22882. +# Whether we need a single "-rpath" flag with a separated argument.
  22883. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22884. +
  22885. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22886. +# DIR into the resulting binary.
  22887. +hardcode_direct=$hardcode_direct_CXX
  22888. +
  22889. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22890. +# DIR into the resulting binary and the resulting library dependency is
  22891. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22892. +# library is relocated.
  22893. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22894. +
  22895. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22896. +# into the resulting binary.
  22897. +hardcode_minus_L=$hardcode_minus_L_CXX
  22898. +
  22899. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22900. +# into the resulting binary.
  22901. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22902. +
  22903. +# Set to "yes" if building a shared library automatically hardcodes DIR
  22904. +# into the library and all subsequent libraries and executables linked
  22905. +# against it.
  22906. +hardcode_automatic=$hardcode_automatic_CXX
  22907. +
  22908. +# Set to yes if linker adds runtime paths of dependent libraries
  22909. +# to runtime path list.
  22910. +inherit_rpath=$inherit_rpath_CXX
  22911. +
  22912. +# Whether libtool must link a program against all its dependency libraries.
  22913. +link_all_deplibs=$link_all_deplibs_CXX
  22914. +
  22915. +# Fix the shell variable \$srcfile for the compiler.
  22916. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  22917. +
  22918. +# Set to "yes" if exported symbols are required.
  22919. +always_export_symbols=$always_export_symbols_CXX
  22920. +
  22921. +# The commands to list exported symbols.
  22922. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22923. +
  22924. +# Symbols that should not be listed in the preloaded symbols.
  22925. +exclude_expsyms=$lt_exclude_expsyms_CXX
  22926. +
  22927. +# Symbols that must always be exported.
  22928. +include_expsyms=$lt_include_expsyms_CXX
  22929. +
  22930. +# Commands necessary for linking programs (against libraries) with templates.
  22931. +prelink_cmds=$lt_prelink_cmds_CXX
  22932. +
  22933. +# Specify filename containing input files.
  22934. +file_list_spec=$lt_file_list_spec_CXX
  22935. +
  22936. +# How to hardcode a shared library path into an executable.
  22937. +hardcode_action=$hardcode_action_CXX
  22938. +
  22939. +# The directories searched by this compiler when creating a shared library.
  22940. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22941. +
  22942. +# Dependencies to place before and after the objects being linked to
  22943. +# create a shared library.
  22944. +predep_objects=$lt_predep_objects_CXX
  22945. +postdep_objects=$lt_postdep_objects_CXX
  22946. +predeps=$lt_predeps_CXX
  22947. +postdeps=$lt_postdeps_CXX
  22948. +
  22949. +# The library search path used internally by the compiler when linking
  22950. +# a shared library.
  22951. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22952. +
  22953. +# ### END LIBTOOL TAG CONFIG: CXX
  22954. +_LT_EOF
  22955. +
  22956. + ;;
  22957. +
  22958. + esac
  22959. +done # for ac_tag
  22960. +
  22961. +
  22962. +as_fn_exit 0
  22963. +_ACEOF
  22964. +ac_clean_files=$ac_clean_files_save
  22965. +
  22966. +test $ac_write_fail = 0 ||
  22967. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22968. +
  22969. +
  22970. +# configure is writing to config.log, and then calls config.status.
  22971. +# config.status does its own redirection, appending to config.log.
  22972. +# Unfortunately, on DOS this fails, as config.log is still kept open
  22973. +# by configure, so config.status won't be able to write to it; its
  22974. +# output is simply discarded. So we exec the FD to /dev/null,
  22975. +# effectively closing config.log, so it can be properly (re)opened and
  22976. +# appended to by config.status. When coming back to configure, we
  22977. +# need to make the FD available again.
  22978. +if test "$no_create" != yes; then
  22979. + ac_cs_success=:
  22980. + ac_config_status_args=
  22981. + test "$silent" = yes &&
  22982. + ac_config_status_args="$ac_config_status_args --quiet"
  22983. + exec 5>/dev/null
  22984. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22985. + exec 5>>config.log
  22986. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22987. + # would make configure fail if this is the last instruction.
  22988. + $ac_cs_success || as_fn_exit $?
  22989. +fi
  22990. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22991. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22992. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22993. +fi
  22994. +
  22995. diff -Nur tslib-1.0.orig/configure.ac tslib-1.0/configure.ac
  22996. --- tslib-1.0.orig/configure.ac 2006-08-24 23:02:55.000000000 +0200
  22997. +++ tslib-1.0/configure.ac 2010-02-19 00:23:49.132856748 +0100
  22998. @@ -71,7 +71,7 @@
  22999. AM_CONDITIONAL(ENABLE_DEJITTER_MODULE, test "$dejitter_module" = "yes")
  23000. AC_MSG_CHECKING([whether linear-h2200 module is requested])
  23001. -AC_ARG_ENABLE(dejitter,
  23002. +AC_ARG_ENABLE(linear-h2200,
  23003. AS_HELP_STRING([--enable-linear-h2200],
  23004. [Enable building of linearizing filter for iPAQ h2200 (default=yes)]),
  23005. [h2200_linear_module=$enableval],
  23006. diff -Nur tslib-1.0.orig/depcomp tslib-1.0/depcomp
  23007. --- tslib-1.0.orig/depcomp 1970-01-01 01:00:00.000000000 +0100
  23008. +++ tslib-1.0/depcomp 2010-02-19 00:24:15.740856531 +0100
  23009. @@ -0,0 +1,630 @@
  23010. +#! /bin/sh
  23011. +# depcomp - compile a program generating dependencies as side-effects
  23012. +
  23013. +scriptversion=2009-04-28.21; # UTC
  23014. +
  23015. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  23016. +# Software Foundation, Inc.
  23017. +
  23018. +# This program is free software; you can redistribute it and/or modify
  23019. +# it under the terms of the GNU General Public License as published by
  23020. +# the Free Software Foundation; either version 2, or (at your option)
  23021. +# any later version.
  23022. +
  23023. +# This program is distributed in the hope that it will be useful,
  23024. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  23025. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23026. +# GNU General Public License for more details.
  23027. +
  23028. +# You should have received a copy of the GNU General Public License
  23029. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  23030. +
  23031. +# As a special exception to the GNU General Public License, if you
  23032. +# distribute this file as part of a program that contains a
  23033. +# configuration script generated by Autoconf, you may include it under
  23034. +# the same distribution terms that you use for the rest of that program.
  23035. +
  23036. +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  23037. +
  23038. +case $1 in
  23039. + '')
  23040. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  23041. + exit 1;
  23042. + ;;
  23043. + -h | --h*)
  23044. + cat <<\EOF
  23045. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  23046. +
  23047. +Run PROGRAMS ARGS to compile a file, generating dependencies
  23048. +as side-effects.
  23049. +
  23050. +Environment variables:
  23051. + depmode Dependency tracking mode.
  23052. + source Source file read by `PROGRAMS ARGS'.
  23053. + object Object file output by `PROGRAMS ARGS'.
  23054. + DEPDIR directory where to store dependencies.
  23055. + depfile Dependency file to output.
  23056. + tmpdepfile Temporary file to use when outputing dependencies.
  23057. + libtool Whether libtool is used (yes/no).
  23058. +
  23059. +Report bugs to <bug-automake@gnu.org>.
  23060. +EOF
  23061. + exit $?
  23062. + ;;
  23063. + -v | --v*)
  23064. + echo "depcomp $scriptversion"
  23065. + exit $?
  23066. + ;;
  23067. +esac
  23068. +
  23069. +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  23070. + echo "depcomp: Variables source, object and depmode must be set" 1>&2
  23071. + exit 1
  23072. +fi
  23073. +
  23074. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  23075. +depfile=${depfile-`echo "$object" |
  23076. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  23077. +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  23078. +
  23079. +rm -f "$tmpdepfile"
  23080. +
  23081. +# Some modes work just like other modes, but use different flags. We
  23082. +# parameterize here, but still list the modes in the big case below,
  23083. +# to make depend.m4 easier to write. Note that we *cannot* use a case
  23084. +# here, because this file can only contain one case statement.
  23085. +if test "$depmode" = hp; then
  23086. + # HP compiler uses -M and no extra arg.
  23087. + gccflag=-M
  23088. + depmode=gcc
  23089. +fi
  23090. +
  23091. +if test "$depmode" = dashXmstdout; then
  23092. + # This is just like dashmstdout with a different argument.
  23093. + dashmflag=-xM
  23094. + depmode=dashmstdout
  23095. +fi
  23096. +
  23097. +cygpath_u="cygpath -u -f -"
  23098. +if test "$depmode" = msvcmsys; then
  23099. + # This is just like msvisualcpp but w/o cygpath translation.
  23100. + # Just convert the backslash-escaped backslashes to single forward
  23101. + # slashes to satisfy depend.m4
  23102. + cygpath_u="sed s,\\\\\\\\,/,g"
  23103. + depmode=msvisualcpp
  23104. +fi
  23105. +
  23106. +case "$depmode" in
  23107. +gcc3)
  23108. +## gcc 3 implements dependency tracking that does exactly what
  23109. +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  23110. +## it if -MD -MP comes after the -MF stuff. Hmm.
  23111. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  23112. +## the command line argument order; so add the flags where they
  23113. +## appear in depend2.am. Note that the slowdown incurred here
  23114. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  23115. + for arg
  23116. + do
  23117. + case $arg in
  23118. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  23119. + *) set fnord "$@" "$arg" ;;
  23120. + esac
  23121. + shift # fnord
  23122. + shift # $arg
  23123. + done
  23124. + "$@"
  23125. + stat=$?
  23126. + if test $stat -eq 0; then :
  23127. + else
  23128. + rm -f "$tmpdepfile"
  23129. + exit $stat
  23130. + fi
  23131. + mv "$tmpdepfile" "$depfile"
  23132. + ;;
  23133. +
  23134. +gcc)
  23135. +## There are various ways to get dependency output from gcc. Here's
  23136. +## why we pick this rather obscure method:
  23137. +## - Don't want to use -MD because we'd like the dependencies to end
  23138. +## up in a subdir. Having to rename by hand is ugly.
  23139. +## (We might end up doing this anyway to support other compilers.)
  23140. +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
  23141. +## -MM, not -M (despite what the docs say).
  23142. +## - Using -M directly means running the compiler twice (even worse
  23143. +## than renaming).
  23144. + if test -z "$gccflag"; then
  23145. + gccflag=-MD,
  23146. + fi
  23147. + "$@" -Wp,"$gccflag$tmpdepfile"
  23148. + stat=$?
  23149. + if test $stat -eq 0; then :
  23150. + else
  23151. + rm -f "$tmpdepfile"
  23152. + exit $stat
  23153. + fi
  23154. + rm -f "$depfile"
  23155. + echo "$object : \\" > "$depfile"
  23156. + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  23157. +## The second -e expression handles DOS-style file names with drive letters.
  23158. + sed -e 's/^[^:]*: / /' \
  23159. + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  23160. +## This next piece of magic avoids the `deleted header file' problem.
  23161. +## The problem is that when a header file which appears in a .P file
  23162. +## is deleted, the dependency causes make to die (because there is
  23163. +## typically no way to rebuild the header). We avoid this by adding
  23164. +## dummy dependencies for each header file. Too bad gcc doesn't do
  23165. +## this for us directly.
  23166. + tr ' ' '
  23167. +' < "$tmpdepfile" |
  23168. +## Some versions of gcc put a space before the `:'. On the theory
  23169. +## that the space means something, we add a space to the output as
  23170. +## well.
  23171. +## Some versions of the HPUX 10.20 sed can't process this invocation
  23172. +## correctly. Breaking it into two sed invocations is a workaround.
  23173. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  23174. + rm -f "$tmpdepfile"
  23175. + ;;
  23176. +
  23177. +hp)
  23178. + # This case exists only to let depend.m4 do its work. It works by
  23179. + # looking at the text of this script. This case will never be run,
  23180. + # since it is checked for above.
  23181. + exit 1
  23182. + ;;
  23183. +
  23184. +sgi)
  23185. + if test "$libtool" = yes; then
  23186. + "$@" "-Wp,-MDupdate,$tmpdepfile"
  23187. + else
  23188. + "$@" -MDupdate "$tmpdepfile"
  23189. + fi
  23190. + stat=$?
  23191. + if test $stat -eq 0; then :
  23192. + else
  23193. + rm -f "$tmpdepfile"
  23194. + exit $stat
  23195. + fi
  23196. + rm -f "$depfile"
  23197. +
  23198. + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
  23199. + echo "$object : \\" > "$depfile"
  23200. +
  23201. + # Clip off the initial element (the dependent). Don't try to be
  23202. + # clever and replace this with sed code, as IRIX sed won't handle
  23203. + # lines with more than a fixed number of characters (4096 in
  23204. + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
  23205. + # the IRIX cc adds comments like `#:fec' to the end of the
  23206. + # dependency line.
  23207. + tr ' ' '
  23208. +' < "$tmpdepfile" \
  23209. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  23210. + tr '
  23211. +' ' ' >> "$depfile"
  23212. + echo >> "$depfile"
  23213. +
  23214. + # The second pass generates a dummy entry for each header file.
  23215. + tr ' ' '
  23216. +' < "$tmpdepfile" \
  23217. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  23218. + >> "$depfile"
  23219. + else
  23220. + # The sourcefile does not contain any dependencies, so just
  23221. + # store a dummy comment line, to avoid errors with the Makefile
  23222. + # "include basename.Plo" scheme.
  23223. + echo "#dummy" > "$depfile"
  23224. + fi
  23225. + rm -f "$tmpdepfile"
  23226. + ;;
  23227. +
  23228. +aix)
  23229. + # The C for AIX Compiler uses -M and outputs the dependencies
  23230. + # in a .u file. In older versions, this file always lives in the
  23231. + # current directory. Also, the AIX compiler puts `$object:' at the
  23232. + # start of each line; $object doesn't have directory information.
  23233. + # Version 6 uses the directory in both cases.
  23234. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  23235. + test "x$dir" = "x$object" && dir=
  23236. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  23237. + if test "$libtool" = yes; then
  23238. + tmpdepfile1=$dir$base.u
  23239. + tmpdepfile2=$base.u
  23240. + tmpdepfile3=$dir.libs/$base.u
  23241. + "$@" -Wc,-M
  23242. + else
  23243. + tmpdepfile1=$dir$base.u
  23244. + tmpdepfile2=$dir$base.u
  23245. + tmpdepfile3=$dir$base.u
  23246. + "$@" -M
  23247. + fi
  23248. + stat=$?
  23249. +
  23250. + if test $stat -eq 0; then :
  23251. + else
  23252. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  23253. + exit $stat
  23254. + fi
  23255. +
  23256. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  23257. + do
  23258. + test -f "$tmpdepfile" && break
  23259. + done
  23260. + if test -f "$tmpdepfile"; then
  23261. + # Each line is of the form `foo.o: dependent.h'.
  23262. + # Do two passes, one to just change these to
  23263. + # `$object: dependent.h' and one to simply `dependent.h:'.
  23264. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  23265. + # That's a tab and a space in the [].
  23266. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  23267. + else
  23268. + # The sourcefile does not contain any dependencies, so just
  23269. + # store a dummy comment line, to avoid errors with the Makefile
  23270. + # "include basename.Plo" scheme.
  23271. + echo "#dummy" > "$depfile"
  23272. + fi
  23273. + rm -f "$tmpdepfile"
  23274. + ;;
  23275. +
  23276. +icc)
  23277. + # Intel's C compiler understands `-MD -MF file'. However on
  23278. + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  23279. + # ICC 7.0 will fill foo.d with something like
  23280. + # foo.o: sub/foo.c
  23281. + # foo.o: sub/foo.h
  23282. + # which is wrong. We want:
  23283. + # sub/foo.o: sub/foo.c
  23284. + # sub/foo.o: sub/foo.h
  23285. + # sub/foo.c:
  23286. + # sub/foo.h:
  23287. + # ICC 7.1 will output
  23288. + # foo.o: sub/foo.c sub/foo.h
  23289. + # and will wrap long lines using \ :
  23290. + # foo.o: sub/foo.c ... \
  23291. + # sub/foo.h ... \
  23292. + # ...
  23293. +
  23294. + "$@" -MD -MF "$tmpdepfile"
  23295. + stat=$?
  23296. + if test $stat -eq 0; then :
  23297. + else
  23298. + rm -f "$tmpdepfile"
  23299. + exit $stat
  23300. + fi
  23301. + rm -f "$depfile"
  23302. + # Each line is of the form `foo.o: dependent.h',
  23303. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  23304. + # Do two passes, one to just change these to
  23305. + # `$object: dependent.h' and one to simply `dependent.h:'.
  23306. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  23307. + # Some versions of the HPUX 10.20 sed can't process this invocation
  23308. + # correctly. Breaking it into two sed invocations is a workaround.
  23309. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  23310. + sed -e 's/$/ :/' >> "$depfile"
  23311. + rm -f "$tmpdepfile"
  23312. + ;;
  23313. +
  23314. +hp2)
  23315. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  23316. + # compilers, which have integrated preprocessors. The correct option
  23317. + # to use with these is +Maked; it writes dependencies to a file named
  23318. + # 'foo.d', which lands next to the object file, wherever that
  23319. + # happens to be.
  23320. + # Much of this is similar to the tru64 case; see comments there.
  23321. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  23322. + test "x$dir" = "x$object" && dir=
  23323. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  23324. + if test "$libtool" = yes; then
  23325. + tmpdepfile1=$dir$base.d
  23326. + tmpdepfile2=$dir.libs/$base.d
  23327. + "$@" -Wc,+Maked
  23328. + else
  23329. + tmpdepfile1=$dir$base.d
  23330. + tmpdepfile2=$dir$base.d
  23331. + "$@" +Maked
  23332. + fi
  23333. + stat=$?
  23334. + if test $stat -eq 0; then :
  23335. + else
  23336. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  23337. + exit $stat
  23338. + fi
  23339. +
  23340. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  23341. + do
  23342. + test -f "$tmpdepfile" && break
  23343. + done
  23344. + if test -f "$tmpdepfile"; then
  23345. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  23346. + # Add `dependent.h:' lines.
  23347. + sed -ne '2,${
  23348. + s/^ *//
  23349. + s/ \\*$//
  23350. + s/$/:/
  23351. + p
  23352. + }' "$tmpdepfile" >> "$depfile"
  23353. + else
  23354. + echo "#dummy" > "$depfile"
  23355. + fi
  23356. + rm -f "$tmpdepfile" "$tmpdepfile2"
  23357. + ;;
  23358. +
  23359. +tru64)
  23360. + # The Tru64 compiler uses -MD to generate dependencies as a side
  23361. + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  23362. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
  23363. + # dependencies in `foo.d' instead, so we check for that too.
  23364. + # Subdirectories are respected.
  23365. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  23366. + test "x$dir" = "x$object" && dir=
  23367. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  23368. +
  23369. + if test "$libtool" = yes; then
  23370. + # With Tru64 cc, shared objects can also be used to make a
  23371. + # static library. This mechanism is used in libtool 1.4 series to
  23372. + # handle both shared and static libraries in a single compilation.
  23373. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  23374. + #
  23375. + # With libtool 1.5 this exception was removed, and libtool now
  23376. + # generates 2 separate objects for the 2 libraries. These two
  23377. + # compilations output dependencies in $dir.libs/$base.o.d and
  23378. + # in $dir$base.o.d. We have to check for both files, because
  23379. + # one of the two compilations can be disabled. We should prefer
  23380. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  23381. + # automatically cleaned when .libs/ is deleted, while ignoring
  23382. + # the former would cause a distcleancheck panic.
  23383. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  23384. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  23385. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  23386. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  23387. + "$@" -Wc,-MD
  23388. + else
  23389. + tmpdepfile1=$dir$base.o.d
  23390. + tmpdepfile2=$dir$base.d
  23391. + tmpdepfile3=$dir$base.d
  23392. + tmpdepfile4=$dir$base.d
  23393. + "$@" -MD
  23394. + fi
  23395. +
  23396. + stat=$?
  23397. + if test $stat -eq 0; then :
  23398. + else
  23399. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  23400. + exit $stat
  23401. + fi
  23402. +
  23403. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  23404. + do
  23405. + test -f "$tmpdepfile" && break
  23406. + done
  23407. + if test -f "$tmpdepfile"; then
  23408. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  23409. + # That's a tab and a space in the [].
  23410. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  23411. + else
  23412. + echo "#dummy" > "$depfile"
  23413. + fi
  23414. + rm -f "$tmpdepfile"
  23415. + ;;
  23416. +
  23417. +#nosideeffect)
  23418. + # This comment above is used by automake to tell side-effect
  23419. + # dependency tracking mechanisms from slower ones.
  23420. +
  23421. +dashmstdout)
  23422. + # Important note: in order to support this mode, a compiler *must*
  23423. + # always write the preprocessed file to stdout, regardless of -o.
  23424. + "$@" || exit $?
  23425. +
  23426. + # Remove the call to Libtool.
  23427. + if test "$libtool" = yes; then
  23428. + while test "X$1" != 'X--mode=compile'; do
  23429. + shift
  23430. + done
  23431. + shift
  23432. + fi
  23433. +
  23434. + # Remove `-o $object'.
  23435. + IFS=" "
  23436. + for arg
  23437. + do
  23438. + case $arg in
  23439. + -o)
  23440. + shift
  23441. + ;;
  23442. + $object)
  23443. + shift
  23444. + ;;
  23445. + *)
  23446. + set fnord "$@" "$arg"
  23447. + shift # fnord
  23448. + shift # $arg
  23449. + ;;
  23450. + esac
  23451. + done
  23452. +
  23453. + test -z "$dashmflag" && dashmflag=-M
  23454. + # Require at least two characters before searching for `:'
  23455. + # in the target name. This is to cope with DOS-style filenames:
  23456. + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  23457. + "$@" $dashmflag |
  23458. + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  23459. + rm -f "$depfile"
  23460. + cat < "$tmpdepfile" > "$depfile"
  23461. + tr ' ' '
  23462. +' < "$tmpdepfile" | \
  23463. +## Some versions of the HPUX 10.20 sed can't process this invocation
  23464. +## correctly. Breaking it into two sed invocations is a workaround.
  23465. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  23466. + rm -f "$tmpdepfile"
  23467. + ;;
  23468. +
  23469. +dashXmstdout)
  23470. + # This case only exists to satisfy depend.m4. It is never actually
  23471. + # run, as this mode is specially recognized in the preamble.
  23472. + exit 1
  23473. + ;;
  23474. +
  23475. +makedepend)
  23476. + "$@" || exit $?
  23477. + # Remove any Libtool call
  23478. + if test "$libtool" = yes; then
  23479. + while test "X$1" != 'X--mode=compile'; do
  23480. + shift
  23481. + done
  23482. + shift
  23483. + fi
  23484. + # X makedepend
  23485. + shift
  23486. + cleared=no eat=no
  23487. + for arg
  23488. + do
  23489. + case $cleared in
  23490. + no)
  23491. + set ""; shift
  23492. + cleared=yes ;;
  23493. + esac
  23494. + if test $eat = yes; then
  23495. + eat=no
  23496. + continue
  23497. + fi
  23498. + case "$arg" in
  23499. + -D*|-I*)
  23500. + set fnord "$@" "$arg"; shift ;;
  23501. + # Strip any option that makedepend may not understand. Remove
  23502. + # the object too, otherwise makedepend will parse it as a source file.
  23503. + -arch)
  23504. + eat=yes ;;
  23505. + -*|$object)
  23506. + ;;
  23507. + *)
  23508. + set fnord "$@" "$arg"; shift ;;
  23509. + esac
  23510. + done
  23511. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  23512. + touch "$tmpdepfile"
  23513. + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  23514. + rm -f "$depfile"
  23515. + cat < "$tmpdepfile" > "$depfile"
  23516. + sed '1,2d' "$tmpdepfile" | tr ' ' '
  23517. +' | \
  23518. +## Some versions of the HPUX 10.20 sed can't process this invocation
  23519. +## correctly. Breaking it into two sed invocations is a workaround.
  23520. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  23521. + rm -f "$tmpdepfile" "$tmpdepfile".bak
  23522. + ;;
  23523. +
  23524. +cpp)
  23525. + # Important note: in order to support this mode, a compiler *must*
  23526. + # always write the preprocessed file to stdout.
  23527. + "$@" || exit $?
  23528. +
  23529. + # Remove the call to Libtool.
  23530. + if test "$libtool" = yes; then
  23531. + while test "X$1" != 'X--mode=compile'; do
  23532. + shift
  23533. + done
  23534. + shift
  23535. + fi
  23536. +
  23537. + # Remove `-o $object'.
  23538. + IFS=" "
  23539. + for arg
  23540. + do
  23541. + case $arg in
  23542. + -o)
  23543. + shift
  23544. + ;;
  23545. + $object)
  23546. + shift
  23547. + ;;
  23548. + *)
  23549. + set fnord "$@" "$arg"
  23550. + shift # fnord
  23551. + shift # $arg
  23552. + ;;
  23553. + esac
  23554. + done
  23555. +
  23556. + "$@" -E |
  23557. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  23558. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  23559. + sed '$ s: \\$::' > "$tmpdepfile"
  23560. + rm -f "$depfile"
  23561. + echo "$object : \\" > "$depfile"
  23562. + cat < "$tmpdepfile" >> "$depfile"
  23563. + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  23564. + rm -f "$tmpdepfile"
  23565. + ;;
  23566. +
  23567. +msvisualcpp)
  23568. + # Important note: in order to support this mode, a compiler *must*
  23569. + # always write the preprocessed file to stdout.
  23570. + "$@" || exit $?
  23571. +
  23572. + # Remove the call to Libtool.
  23573. + if test "$libtool" = yes; then
  23574. + while test "X$1" != 'X--mode=compile'; do
  23575. + shift
  23576. + done
  23577. + shift
  23578. + fi
  23579. +
  23580. + IFS=" "
  23581. + for arg
  23582. + do
  23583. + case "$arg" in
  23584. + -o)
  23585. + shift
  23586. + ;;
  23587. + $object)
  23588. + shift
  23589. + ;;
  23590. + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  23591. + set fnord "$@"
  23592. + shift
  23593. + shift
  23594. + ;;
  23595. + *)
  23596. + set fnord "$@" "$arg"
  23597. + shift
  23598. + shift
  23599. + ;;
  23600. + esac
  23601. + done
  23602. + "$@" -E 2>/dev/null |
  23603. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  23604. + rm -f "$depfile"
  23605. + echo "$object : \\" > "$depfile"
  23606. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  23607. + echo " " >> "$depfile"
  23608. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  23609. + rm -f "$tmpdepfile"
  23610. + ;;
  23611. +
  23612. +msvcmsys)
  23613. + # This case exists only to let depend.m4 do its work. It works by
  23614. + # looking at the text of this script. This case will never be run,
  23615. + # since it is checked for above.
  23616. + exit 1
  23617. + ;;
  23618. +
  23619. +none)
  23620. + exec "$@"
  23621. + ;;
  23622. +
  23623. +*)
  23624. + echo "Unknown depmode $depmode" 1>&2
  23625. + exit 1
  23626. + ;;
  23627. +esac
  23628. +
  23629. +exit 0
  23630. +
  23631. +# Local Variables:
  23632. +# mode: shell-script
  23633. +# sh-indentation: 2
  23634. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  23635. +# time-stamp-start: "scriptversion="
  23636. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  23637. +# time-stamp-time-zone: "UTC"
  23638. +# time-stamp-end: "; # UTC"
  23639. +# End:
  23640. diff -Nur tslib-1.0.orig/etc/Makefile.in tslib-1.0/etc/Makefile.in
  23641. --- tslib-1.0.orig/etc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  23642. +++ tslib-1.0/etc/Makefile.in 2010-02-19 00:24:15.300852155 +0100
  23643. @@ -0,0 +1,430 @@
  23644. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  23645. +# @configure_input@
  23646. +
  23647. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  23648. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  23649. +# Inc.
  23650. +# This Makefile.in is free software; the Free Software Foundation
  23651. +# gives unlimited permission to copy and/or distribute it,
  23652. +# with or without modifications, as long as this notice is preserved.
  23653. +
  23654. +# This program is distributed in the hope that it will be useful,
  23655. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  23656. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  23657. +# PARTICULAR PURPOSE.
  23658. +
  23659. +@SET_MAKE@
  23660. +
  23661. +#
  23662. +# etc/Makefile.am
  23663. +#
  23664. +# Copyright (C) 2001 Russell King.
  23665. +#
  23666. +# This file is placed under the LGPL. Please see the file
  23667. +# COPYING for more details.
  23668. +#
  23669. +# $Id: Makefile.am,v 1.1.1.1 2001/12/22 21:12:06 rmk Exp $
  23670. +#
  23671. +
  23672. +VPATH = @srcdir@
  23673. +pkgdatadir = $(datadir)/@PACKAGE@
  23674. +pkgincludedir = $(includedir)/@PACKAGE@
  23675. +pkglibdir = $(libdir)/@PACKAGE@
  23676. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  23677. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  23678. +install_sh_DATA = $(install_sh) -c -m 644
  23679. +install_sh_PROGRAM = $(install_sh) -c
  23680. +install_sh_SCRIPT = $(install_sh) -c
  23681. +INSTALL_HEADER = $(INSTALL_DATA)
  23682. +transform = $(program_transform_name)
  23683. +NORMAL_INSTALL = :
  23684. +PRE_INSTALL = :
  23685. +POST_INSTALL = :
  23686. +NORMAL_UNINSTALL = :
  23687. +PRE_UNINSTALL = :
  23688. +POST_UNINSTALL = :
  23689. +build_triplet = @build@
  23690. +host_triplet = @host@
  23691. +subdir = etc
  23692. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  23693. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  23694. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  23695. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  23696. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  23697. + $(top_srcdir)/m4/internal/ltversion.m4 \
  23698. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  23699. + $(top_srcdir)/m4/internal/visibility.m4 \
  23700. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  23701. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  23702. + $(ACLOCAL_M4)
  23703. +mkinstalldirs = $(install_sh) -d
  23704. +CONFIG_HEADER = $(top_builddir)/config.h
  23705. +CONFIG_CLEAN_FILES =
  23706. +CONFIG_CLEAN_VPATH_FILES =
  23707. +SOURCES =
  23708. +DIST_SOURCES =
  23709. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  23710. +am__vpath_adj = case $$p in \
  23711. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  23712. + *) f=$$p;; \
  23713. + esac;
  23714. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  23715. +am__install_max = 40
  23716. +am__nobase_strip_setup = \
  23717. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  23718. +am__nobase_strip = \
  23719. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  23720. +am__nobase_list = $(am__nobase_strip_setup); \
  23721. + for p in $$list; do echo "$$p $$p"; done | \
  23722. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  23723. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  23724. + if (++n[$$2] == $(am__install_max)) \
  23725. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  23726. + END { for (dir in files) print dir, files[dir] }'
  23727. +am__base_list = \
  23728. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  23729. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  23730. +am__installdirs = "$(DESTDIR)$(sysconfdir)"
  23731. +DATA = $(sysconf_DATA)
  23732. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  23733. +ACLOCAL = @ACLOCAL@
  23734. +ALLOCA = @ALLOCA@
  23735. +AMTAR = @AMTAR@
  23736. +AR = @AR@
  23737. +AUTOCONF = @AUTOCONF@
  23738. +AUTOHEADER = @AUTOHEADER@
  23739. +AUTOMAKE = @AUTOMAKE@
  23740. +AWK = @AWK@
  23741. +CC = @CC@
  23742. +CCDEPMODE = @CCDEPMODE@
  23743. +CFLAGS = @CFLAGS@
  23744. +CPP = @CPP@
  23745. +CPPFLAGS = @CPPFLAGS@
  23746. +CXX = @CXX@
  23747. +CXXCPP = @CXXCPP@
  23748. +CXXDEPMODE = @CXXDEPMODE@
  23749. +CXXFLAGS = @CXXFLAGS@
  23750. +CYGPATH_W = @CYGPATH_W@
  23751. +DEBUGFLAGS = @DEBUGFLAGS@
  23752. +DEFS = @DEFS@
  23753. +DEPDIR = @DEPDIR@
  23754. +DSYMUTIL = @DSYMUTIL@
  23755. +DUMPBIN = @DUMPBIN@
  23756. +ECHO_C = @ECHO_C@
  23757. +ECHO_N = @ECHO_N@
  23758. +ECHO_T = @ECHO_T@
  23759. +EGREP = @EGREP@
  23760. +EXEEXT = @EXEEXT@
  23761. +FGREP = @FGREP@
  23762. +GREP = @GREP@
  23763. +INSTALL = @INSTALL@
  23764. +INSTALL_DATA = @INSTALL_DATA@
  23765. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  23766. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  23767. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  23768. +LD = @LD@
  23769. +LDFLAGS = @LDFLAGS@
  23770. +LIBFLAGS = @LIBFLAGS@
  23771. +LIBOBJS = @LIBOBJS@
  23772. +LIBS = @LIBS@
  23773. +LIBTOOL = @LIBTOOL@
  23774. +LIPO = @LIPO@
  23775. +LN_S = @LN_S@
  23776. +LTLIBOBJS = @LTLIBOBJS@
  23777. +LT_AGE = @LT_AGE@
  23778. +LT_CURRENT = @LT_CURRENT@
  23779. +LT_RELEASE = @LT_RELEASE@
  23780. +LT_REVISION = @LT_REVISION@
  23781. +MAKEINFO = @MAKEINFO@
  23782. +MKDIR_P = @MKDIR_P@
  23783. +NM = @NM@
  23784. +NMEDIT = @NMEDIT@
  23785. +OBJDUMP = @OBJDUMP@
  23786. +OBJEXT = @OBJEXT@
  23787. +OTOOL = @OTOOL@
  23788. +OTOOL64 = @OTOOL64@
  23789. +PACKAGE = @PACKAGE@
  23790. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  23791. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  23792. +PACKAGE_NAME = @PACKAGE_NAME@
  23793. +PACKAGE_STRING = @PACKAGE_STRING@
  23794. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  23795. +PACKAGE_URL = @PACKAGE_URL@
  23796. +PACKAGE_VERSION = @PACKAGE_VERSION@
  23797. +PATH_SEPARATOR = @PATH_SEPARATOR@
  23798. +PLUGIN_DIR = @PLUGIN_DIR@
  23799. +RANLIB = @RANLIB@
  23800. +SED = @SED@
  23801. +SET_MAKE = @SET_MAKE@
  23802. +SHELL = @SHELL@
  23803. +STRIP = @STRIP@
  23804. +TS_CONF = @TS_CONF@
  23805. +VERSION = @VERSION@
  23806. +VIS_CFLAGS = @VIS_CFLAGS@
  23807. +abs_builddir = @abs_builddir@
  23808. +abs_srcdir = @abs_srcdir@
  23809. +abs_top_builddir = @abs_top_builddir@
  23810. +abs_top_srcdir = @abs_top_srcdir@
  23811. +ac_ct_CC = @ac_ct_CC@
  23812. +ac_ct_CXX = @ac_ct_CXX@
  23813. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  23814. +am__include = @am__include@
  23815. +am__leading_dot = @am__leading_dot@
  23816. +am__quote = @am__quote@
  23817. +am__tar = @am__tar@
  23818. +am__untar = @am__untar@
  23819. +bindir = @bindir@
  23820. +build = @build@
  23821. +build_alias = @build_alias@
  23822. +build_cpu = @build_cpu@
  23823. +build_os = @build_os@
  23824. +build_vendor = @build_vendor@
  23825. +builddir = @builddir@
  23826. +datadir = @datadir@
  23827. +datarootdir = @datarootdir@
  23828. +docdir = @docdir@
  23829. +dvidir = @dvidir@
  23830. +exec_prefix = @exec_prefix@
  23831. +host = @host@
  23832. +host_alias = @host_alias@
  23833. +host_cpu = @host_cpu@
  23834. +host_os = @host_os@
  23835. +host_vendor = @host_vendor@
  23836. +htmldir = @htmldir@
  23837. +includedir = @includedir@
  23838. +infodir = @infodir@
  23839. +install_sh = @install_sh@
  23840. +libdir = @libdir@
  23841. +libexecdir = @libexecdir@
  23842. +localedir = @localedir@
  23843. +localstatedir = @localstatedir@
  23844. +lt_ECHO = @lt_ECHO@
  23845. +mandir = @mandir@
  23846. +mkdir_p = @mkdir_p@
  23847. +oldincludedir = @oldincludedir@
  23848. +pdfdir = @pdfdir@
  23849. +prefix = @prefix@
  23850. +program_transform_name = @program_transform_name@
  23851. +psdir = @psdir@
  23852. +sbindir = @sbindir@
  23853. +sharedstatedir = @sharedstatedir@
  23854. +srcdir = @srcdir@
  23855. +sysconfdir = @sysconfdir@
  23856. +target_alias = @target_alias@
  23857. +top_build_prefix = @top_build_prefix@
  23858. +top_builddir = @top_builddir@
  23859. +top_srcdir = @top_srcdir@
  23860. +sysconf_DATA = ts.conf
  23861. +EXTRA_DIST = $(sysconf_DATA)
  23862. +all: all-am
  23863. +
  23864. +.SUFFIXES:
  23865. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  23866. + @for dep in $?; do \
  23867. + case '$(am__configure_deps)' in \
  23868. + *$$dep*) \
  23869. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  23870. + && { if test -f $@; then exit 0; else break; fi; }; \
  23871. + exit 1;; \
  23872. + esac; \
  23873. + done; \
  23874. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu etc/Makefile'; \
  23875. + $(am__cd) $(top_srcdir) && \
  23876. + $(AUTOMAKE) --gnu etc/Makefile
  23877. +.PRECIOUS: Makefile
  23878. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  23879. + @case '$?' in \
  23880. + *config.status*) \
  23881. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  23882. + *) \
  23883. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  23884. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  23885. + esac;
  23886. +
  23887. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  23888. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  23889. +
  23890. +$(top_srcdir)/configure: $(am__configure_deps)
  23891. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  23892. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  23893. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  23894. +$(am__aclocal_m4_deps):
  23895. +
  23896. +mostlyclean-libtool:
  23897. + -rm -f *.lo
  23898. +
  23899. +clean-libtool:
  23900. + -rm -rf .libs _libs
  23901. +install-sysconfDATA: $(sysconf_DATA)
  23902. + @$(NORMAL_INSTALL)
  23903. + test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
  23904. + @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \
  23905. + for p in $$list; do \
  23906. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  23907. + echo "$$d$$p"; \
  23908. + done | $(am__base_list) | \
  23909. + while read files; do \
  23910. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \
  23911. + $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \
  23912. + done
  23913. +
  23914. +uninstall-sysconfDATA:
  23915. + @$(NORMAL_UNINSTALL)
  23916. + @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \
  23917. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  23918. + test -n "$$files" || exit 0; \
  23919. + echo " ( cd '$(DESTDIR)$(sysconfdir)' && rm -f" $$files ")"; \
  23920. + cd "$(DESTDIR)$(sysconfdir)" && rm -f $$files
  23921. +tags: TAGS
  23922. +TAGS:
  23923. +
  23924. +ctags: CTAGS
  23925. +CTAGS:
  23926. +
  23927. +
  23928. +distdir: $(DISTFILES)
  23929. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  23930. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  23931. + list='$(DISTFILES)'; \
  23932. + dist_files=`for file in $$list; do echo $$file; done | \
  23933. + sed -e "s|^$$srcdirstrip/||;t" \
  23934. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  23935. + case $$dist_files in \
  23936. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  23937. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  23938. + sort -u` ;; \
  23939. + esac; \
  23940. + for file in $$dist_files; do \
  23941. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  23942. + if test -d $$d/$$file; then \
  23943. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  23944. + if test -d "$(distdir)/$$file"; then \
  23945. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  23946. + fi; \
  23947. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  23948. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  23949. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  23950. + fi; \
  23951. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  23952. + else \
  23953. + test -f "$(distdir)/$$file" \
  23954. + || cp -p $$d/$$file "$(distdir)/$$file" \
  23955. + || exit 1; \
  23956. + fi; \
  23957. + done
  23958. +check-am: all-am
  23959. +check: check-am
  23960. +all-am: Makefile $(DATA)
  23961. +installdirs:
  23962. + for dir in "$(DESTDIR)$(sysconfdir)"; do \
  23963. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  23964. + done
  23965. +install: install-am
  23966. +install-exec: install-exec-am
  23967. +install-data: install-data-am
  23968. +uninstall: uninstall-am
  23969. +
  23970. +install-am: all-am
  23971. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  23972. +
  23973. +installcheck: installcheck-am
  23974. +install-strip:
  23975. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  23976. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  23977. + `test -z '$(STRIP)' || \
  23978. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  23979. +mostlyclean-generic:
  23980. +
  23981. +clean-generic:
  23982. +
  23983. +distclean-generic:
  23984. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  23985. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  23986. +
  23987. +maintainer-clean-generic:
  23988. + @echo "This command is intended for maintainers to use"
  23989. + @echo "it deletes files that may require special tools to rebuild."
  23990. +clean: clean-am
  23991. +
  23992. +clean-am: clean-generic clean-libtool mostlyclean-am
  23993. +
  23994. +distclean: distclean-am
  23995. + -rm -f Makefile
  23996. +distclean-am: clean-am distclean-generic
  23997. +
  23998. +dvi: dvi-am
  23999. +
  24000. +dvi-am:
  24001. +
  24002. +html: html-am
  24003. +
  24004. +html-am:
  24005. +
  24006. +info: info-am
  24007. +
  24008. +info-am:
  24009. +
  24010. +install-data-am:
  24011. +
  24012. +install-dvi: install-dvi-am
  24013. +
  24014. +install-dvi-am:
  24015. +
  24016. +install-exec-am: install-sysconfDATA
  24017. +
  24018. +install-html: install-html-am
  24019. +
  24020. +install-html-am:
  24021. +
  24022. +install-info: install-info-am
  24023. +
  24024. +install-info-am:
  24025. +
  24026. +install-man:
  24027. +
  24028. +install-pdf: install-pdf-am
  24029. +
  24030. +install-pdf-am:
  24031. +
  24032. +install-ps: install-ps-am
  24033. +
  24034. +install-ps-am:
  24035. +
  24036. +installcheck-am:
  24037. +
  24038. +maintainer-clean: maintainer-clean-am
  24039. + -rm -f Makefile
  24040. +maintainer-clean-am: distclean-am maintainer-clean-generic
  24041. +
  24042. +mostlyclean: mostlyclean-am
  24043. +
  24044. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  24045. +
  24046. +pdf: pdf-am
  24047. +
  24048. +pdf-am:
  24049. +
  24050. +ps: ps-am
  24051. +
  24052. +ps-am:
  24053. +
  24054. +uninstall-am: uninstall-sysconfDATA
  24055. +
  24056. +.MAKE: install-am install-strip
  24057. +
  24058. +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  24059. + distclean distclean-generic distclean-libtool distdir dvi \
  24060. + dvi-am html html-am info info-am install install-am \
  24061. + install-data install-data-am install-dvi install-dvi-am \
  24062. + install-exec install-exec-am install-html install-html-am \
  24063. + install-info install-info-am install-man install-pdf \
  24064. + install-pdf-am install-ps install-ps-am install-strip \
  24065. + install-sysconfDATA installcheck installcheck-am installdirs \
  24066. + maintainer-clean maintainer-clean-generic mostlyclean \
  24067. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  24068. + uninstall uninstall-am uninstall-sysconfDATA
  24069. +
  24070. +
  24071. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  24072. +# Otherwise a system limit (for SysV at least) may be exceeded.
  24073. +.NOEXPORT:
  24074. diff -Nur tslib-1.0.orig/INSTALL tslib-1.0/INSTALL
  24075. --- tslib-1.0.orig/INSTALL 2006-08-24 23:02:55.000000000 +0200
  24076. +++ tslib-1.0/INSTALL 2010-02-19 00:24:15.856856501 +0100
  24077. @@ -1,16 +1,25 @@
  24078. Installation Instructions
  24079. *************************
  24080. -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free
  24081. -Software Foundation, Inc.
  24082. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  24083. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  24084. -This file is free documentation; the Free Software Foundation gives
  24085. -unlimited permission to copy, distribute and modify it.
  24086. + Copying and distribution of this file, with or without modification,
  24087. +are permitted in any medium without royalty provided the copyright
  24088. +notice and this notice are preserved. This file is offered as-is,
  24089. +without warranty of any kind.
  24090. Basic Installation
  24091. ==================
  24092. -These are generic installation instructions.
  24093. + Briefly, the shell commands `./configure; make; make install' should
  24094. +configure, build, and install this package. The following
  24095. +more-detailed instructions are generic; see the `README' file for
  24096. +instructions specific to this package. Some packages provide this
  24097. +`INSTALL' file but do not implement all of the features documented
  24098. +below. The lack of an optional feature in a given package is not
  24099. +necessarily a bug. More recommendations for GNU packages can be found
  24100. +in *note Makefile Conventions: (standards)Makefile Conventions.
  24101. The `configure' shell script attempts to guess correct values for
  24102. various system-dependent variables used during compilation. It uses
  24103. @@ -23,9 +32,9 @@
  24104. It can also use an optional file (typically called `config.cache'
  24105. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  24106. -the results of its tests to speed up reconfiguring. (Caching is
  24107. +the results of its tests to speed up reconfiguring. Caching is
  24108. disabled by default to prevent problems with accidental use of stale
  24109. -cache files.)
  24110. +cache files.
  24111. If you need to do unusual things to compile the package, please try
  24112. to figure out how `configure' could check whether to do them, and mail
  24113. @@ -35,30 +44,37 @@
  24114. may remove or edit it.
  24115. The file `configure.ac' (or `configure.in') is used to create
  24116. -`configure' by a program called `autoconf'. You only need
  24117. -`configure.ac' if you want to change it or regenerate `configure' using
  24118. -a newer version of `autoconf'.
  24119. +`configure' by a program called `autoconf'. You need `configure.ac' if
  24120. +you want to change it or regenerate `configure' using a newer version
  24121. +of `autoconf'.
  24122. -The simplest way to compile this package is:
  24123. + The simplest way to compile this package is:
  24124. 1. `cd' to the directory containing the package's source code and type
  24125. - `./configure' to configure the package for your system. If you're
  24126. - using `csh' on an old version of System V, you might need to type
  24127. - `sh ./configure' instead to prevent `csh' from trying to execute
  24128. - `configure' itself.
  24129. + `./configure' to configure the package for your system.
  24130. - Running `configure' takes awhile. While running, it prints some
  24131. - messages telling which features it is checking for.
  24132. + Running `configure' might take a while. While running, it prints
  24133. + some messages telling which features it is checking for.
  24134. 2. Type `make' to compile the package.
  24135. 3. Optionally, type `make check' to run any self-tests that come with
  24136. - the package.
  24137. + the package, generally using the just-built uninstalled binaries.
  24138. 4. Type `make install' to install the programs and any data files and
  24139. - documentation.
  24140. + documentation. When installing into a prefix owned by root, it is
  24141. + recommended that the package be configured and built as a regular
  24142. + user, and only the `make install' phase executed with root
  24143. + privileges.
  24144. +
  24145. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  24146. + this time using the binaries in their final installed location.
  24147. + This target does not install anything. Running this target as a
  24148. + regular user, particularly if the prior `make install' required
  24149. + root privileges, verifies that the installation completed
  24150. + correctly.
  24151. - 5. You can remove the program binaries and object files from the
  24152. + 6. You can remove the program binaries and object files from the
  24153. source code directory by typing `make clean'. To also remove the
  24154. files that `configure' created (so you can compile the package for
  24155. a different kind of computer), type `make distclean'. There is
  24156. @@ -67,65 +83,120 @@
  24157. all sorts of other programs in order to regenerate files that came
  24158. with the distribution.
  24159. + 7. Often, you can also type `make uninstall' to remove the installed
  24160. + files again. In practice, not all packages have tested that
  24161. + uninstallation works correctly, even though it is required by the
  24162. + GNU Coding Standards.
  24163. +
  24164. + 8. Some packages, particularly those that use Automake, provide `make
  24165. + distcheck', which can by used by developers to test that all other
  24166. + targets like `make install' and `make uninstall' work correctly.
  24167. + This target is generally not run by end users.
  24168. +
  24169. Compilers and Options
  24170. =====================
  24171. -Some systems require unusual options for compilation or linking that the
  24172. -`configure' script does not know about. Run `./configure --help' for
  24173. -details on some of the pertinent environment variables.
  24174. + Some systems require unusual options for compilation or linking that
  24175. +the `configure' script does not know about. Run `./configure --help'
  24176. +for details on some of the pertinent environment variables.
  24177. You can give `configure' initial values for configuration parameters
  24178. by setting variables in the command line or in the environment. Here
  24179. is an example:
  24180. - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  24181. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  24182. *Note Defining Variables::, for more details.
  24183. Compiling For Multiple Architectures
  24184. ====================================
  24185. -You can compile the package for more than one kind of computer at the
  24186. + You can compile the package for more than one kind of computer at the
  24187. same time, by placing the object files for each architecture in their
  24188. -own directory. To do this, you must use a version of `make' that
  24189. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  24190. +own directory. To do this, you can use GNU `make'. `cd' to the
  24191. directory where you want the object files and executables to go and run
  24192. the `configure' script. `configure' automatically checks for the
  24193. -source code in the directory that `configure' is in and in `..'.
  24194. +source code in the directory that `configure' is in and in `..'. This
  24195. +is known as a "VPATH" build.
  24196. - If you have to use a `make' that does not support the `VPATH'
  24197. -variable, you have to compile the package for one architecture at a
  24198. -time in the source code directory. After you have installed the
  24199. -package for one architecture, use `make distclean' before reconfiguring
  24200. -for another architecture.
  24201. + With a non-GNU `make', it is safer to compile the package for one
  24202. +architecture at a time in the source code directory. After you have
  24203. +installed the package for one architecture, use `make distclean' before
  24204. +reconfiguring for another architecture.
  24205. +
  24206. + On MacOS X 10.5 and later systems, you can create libraries and
  24207. +executables that work on multiple system types--known as "fat" or
  24208. +"universal" binaries--by specifying multiple `-arch' options to the
  24209. +compiler but only a single `-arch' option to the preprocessor. Like
  24210. +this:
  24211. +
  24212. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  24213. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  24214. + CPP="gcc -E" CXXCPP="g++ -E"
  24215. +
  24216. + This is not guaranteed to produce working output in all cases, you
  24217. +may have to build one architecture at a time and combine the results
  24218. +using the `lipo' tool if you have problems.
  24219. Installation Names
  24220. ==================
  24221. -By default, `make install' will install the package's files in
  24222. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  24223. -installation prefix other than `/usr/local' by giving `configure' the
  24224. -option `--prefix=PREFIX'.
  24225. + By default, `make install' installs the package's commands under
  24226. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  24227. +can specify an installation prefix other than `/usr/local' by giving
  24228. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  24229. +absolute file name.
  24230. You can specify separate installation prefixes for
  24231. architecture-specific files and architecture-independent files. If you
  24232. -give `configure' the option `--exec-prefix=PREFIX', the package will
  24233. -use PREFIX as the prefix for installing programs and libraries.
  24234. -Documentation and other data files will still use the regular prefix.
  24235. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  24236. +PREFIX as the prefix for installing programs and libraries.
  24237. +Documentation and other data files still use the regular prefix.
  24238. In addition, if you use an unusual directory layout you can give
  24239. options like `--bindir=DIR' to specify different values for particular
  24240. kinds of files. Run `configure --help' for a list of the directories
  24241. -you can set and what kinds of files go in them.
  24242. +you can set and what kinds of files go in them. In general, the
  24243. +default for these options is expressed in terms of `${prefix}', so that
  24244. +specifying just `--prefix' will affect all of the other directory
  24245. +specifications that were not explicitly provided.
  24246. +
  24247. + The most portable way to affect installation locations is to pass the
  24248. +correct locations to `configure'; however, many packages provide one or
  24249. +both of the following shortcuts of passing variable assignments to the
  24250. +`make install' command line to change installation locations without
  24251. +having to reconfigure or recompile.
  24252. +
  24253. + The first method involves providing an override variable for each
  24254. +affected directory. For example, `make install
  24255. +prefix=/alternate/directory' will choose an alternate location for all
  24256. +directory configuration variables that were expressed in terms of
  24257. +`${prefix}'. Any directories that were specified during `configure',
  24258. +but not in terms of `${prefix}', must each be overridden at install
  24259. +time for the entire installation to be relocated. The approach of
  24260. +makefile variable overrides for each directory variable is required by
  24261. +the GNU Coding Standards, and ideally causes no recompilation.
  24262. +However, some platforms have known limitations with the semantics of
  24263. +shared libraries that end up requiring recompilation when using this
  24264. +method, particularly noticeable in packages that use GNU Libtool.
  24265. +
  24266. + The second method involves providing the `DESTDIR' variable. For
  24267. +example, `make install DESTDIR=/alternate/directory' will prepend
  24268. +`/alternate/directory' before all installation names. The approach of
  24269. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  24270. +does not work on platforms that have drive letters. On the other hand,
  24271. +it does better at avoiding recompilation issues, and works well even
  24272. +when some directory options were not specified in terms of `${prefix}'
  24273. +at `configure' time.
  24274. +
  24275. +Optional Features
  24276. +=================
  24277. If the package supports it, you can cause programs to be installed
  24278. with an extra prefix or suffix on their names by giving `configure' the
  24279. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  24280. -Optional Features
  24281. -=================
  24282. -
  24283. -Some packages pay attention to `--enable-FEATURE' options to
  24284. + Some packages pay attention to `--enable-FEATURE' options to
  24285. `configure', where FEATURE indicates an optional part of the package.
  24286. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  24287. is something like `gnu-as' or `x' (for the X Window System). The
  24288. @@ -137,14 +208,53 @@
  24289. you can use the `configure' options `--x-includes=DIR' and
  24290. `--x-libraries=DIR' to specify their locations.
  24291. + Some packages offer the ability to configure how verbose the
  24292. +execution of `make' will be. For these packages, running `./configure
  24293. +--enable-silent-rules' sets the default to minimal output, which can be
  24294. +overridden with `make V=1'; while running `./configure
  24295. +--disable-silent-rules' sets the default to verbose, which can be
  24296. +overridden with `make V=0'.
  24297. +
  24298. +Particular systems
  24299. +==================
  24300. +
  24301. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  24302. +CC is not installed, it is recommended to use the following options in
  24303. +order to use an ANSI C compiler:
  24304. +
  24305. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  24306. +
  24307. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  24308. +
  24309. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  24310. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  24311. +a workaround. If GNU CC is not installed, it is therefore recommended
  24312. +to try
  24313. +
  24314. + ./configure CC="cc"
  24315. +
  24316. +and if that doesn't work, try
  24317. +
  24318. + ./configure CC="cc -nodtk"
  24319. +
  24320. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  24321. +directory contains several dysfunctional programs; working variants of
  24322. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  24323. +in your `PATH', put it _after_ `/usr/bin'.
  24324. +
  24325. + On Haiku, software installed for all users goes in `/boot/common',
  24326. +not `/usr/local'. It is recommended to use the following options:
  24327. +
  24328. + ./configure --prefix=/boot/common
  24329. +
  24330. Specifying the System Type
  24331. ==========================
  24332. -There may be some features `configure' cannot figure out automatically,
  24333. -but needs to determine by the type of machine the package will run on.
  24334. -Usually, assuming the package is built to be run on the _same_
  24335. -architectures, `configure' can figure that out, but if it prints a
  24336. -message saying it cannot guess the machine type, give it the
  24337. + There may be some features `configure' cannot figure out
  24338. +automatically, but needs to determine by the type of machine the package
  24339. +will run on. Usually, assuming the package is built to be run on the
  24340. +_same_ architectures, `configure' can figure that out, but if it prints
  24341. +a message saying it cannot guess the machine type, give it the
  24342. `--build=TYPE' option. TYPE can either be a short name for the system
  24343. type, such as `sun4', or a canonical name which has the form:
  24344. @@ -152,14 +262,15 @@
  24345. where SYSTEM can have one of these forms:
  24346. - OS KERNEL-OS
  24347. + OS
  24348. + KERNEL-OS
  24349. See the file `config.sub' for the possible values of each field. If
  24350. `config.sub' isn't included in this package, then this package doesn't
  24351. need to know the machine type.
  24352. If you are _building_ compiler tools for cross-compiling, you should
  24353. -use the `--target=TYPE' option to select the type of system they will
  24354. +use the option `--target=TYPE' to select the type of system they will
  24355. produce code for.
  24356. If you want to _use_ a cross compiler, that generates code for a
  24357. @@ -170,9 +281,9 @@
  24358. Sharing Defaults
  24359. ================
  24360. -If you want to set default values for `configure' scripts to share, you
  24361. -can create a site shell script called `config.site' that gives default
  24362. -values for variables like `CC', `cache_file', and `prefix'.
  24363. + If you want to set default values for `configure' scripts to share,
  24364. +you can create a site shell script called `config.site' that gives
  24365. +default values for variables like `CC', `cache_file', and `prefix'.
  24366. `configure' looks for `PREFIX/share/config.site' if it exists, then
  24367. `PREFIX/etc/config.site' if it exists. Or, you can set the
  24368. `CONFIG_SITE' environment variable to the location of the site script.
  24369. @@ -181,7 +292,7 @@
  24370. Defining Variables
  24371. ==================
  24372. -Variables not defined in a site shell script can be set in the
  24373. + Variables not defined in a site shell script can be set in the
  24374. environment passed to `configure'. However, some packages may run
  24375. configure again during the build, and the customized values of these
  24376. variables may be lost. In order to avoid this problem, you should set
  24377. @@ -189,17 +300,30 @@
  24378. ./configure CC=/usr/local2/bin/gcc
  24379. -will cause the specified gcc to be used as the C compiler (unless it is
  24380. +causes the specified `gcc' to be used as the C compiler (unless it is
  24381. overridden in the site shell script).
  24382. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  24383. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  24384. +
  24385. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  24386. +
  24387. `configure' Invocation
  24388. ======================
  24389. -`configure' recognizes the following options to control how it operates.
  24390. + `configure' recognizes the following options to control how it
  24391. +operates.
  24392. `--help'
  24393. `-h'
  24394. - Print a summary of the options to `configure', and exit.
  24395. + Print a summary of all of the options to `configure', and exit.
  24396. +
  24397. +`--help=short'
  24398. +`--help=recursive'
  24399. + Print a summary of the options unique to this package's
  24400. + `configure', and exit. The `short' variant lists options used
  24401. + only in the top level, while the `recursive' variant lists options
  24402. + also present in any nested packages.
  24403. `--version'
  24404. `-V'
  24405. @@ -226,6 +350,16 @@
  24406. Look for the package's source code in directory DIR. Usually
  24407. `configure' can determine that directory automatically.
  24408. +`--prefix=DIR'
  24409. + Use DIR as the installation prefix. *note Installation Names::
  24410. + for more details, including other options available for fine-tuning
  24411. + the installation locations.
  24412. +
  24413. +`--no-create'
  24414. +`-n'
  24415. + Run the configure checks, but stop before creating any output
  24416. + files.
  24417. +
  24418. `configure' also accepts some other, not widely useful, options. Run
  24419. `configure --help' for more details.
  24420. diff -Nur tslib-1.0.orig/install-sh tslib-1.0/install-sh
  24421. --- tslib-1.0.orig/install-sh 1970-01-01 01:00:00.000000000 +0100
  24422. +++ tslib-1.0/install-sh 2010-02-19 00:24:15.180853641 +0100
  24423. @@ -0,0 +1,520 @@
  24424. +#!/bin/sh
  24425. +# install - install a program, script, or datafile
  24426. +
  24427. +scriptversion=2009-04-28.21; # UTC
  24428. +
  24429. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  24430. +# later released in X11R6 (xc/config/util/install.sh) with the
  24431. +# following copyright and license.
  24432. +#
  24433. +# Copyright (C) 1994 X Consortium
  24434. +#
  24435. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  24436. +# of this software and associated documentation files (the "Software"), to
  24437. +# deal in the Software without restriction, including without limitation the
  24438. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  24439. +# sell copies of the Software, and to permit persons to whom the Software is
  24440. +# furnished to do so, subject to the following conditions:
  24441. +#
  24442. +# The above copyright notice and this permission notice shall be included in
  24443. +# all copies or substantial portions of the Software.
  24444. +#
  24445. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  24446. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  24447. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24448. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  24449. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  24450. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24451. +#
  24452. +# Except as contained in this notice, the name of the X Consortium shall not
  24453. +# be used in advertising or otherwise to promote the sale, use or other deal-
  24454. +# ings in this Software without prior written authorization from the X Consor-
  24455. +# tium.
  24456. +#
  24457. +#
  24458. +# FSF changes to this file are in the public domain.
  24459. +#
  24460. +# Calling this script install-sh is preferred over install.sh, to prevent
  24461. +# `make' implicit rules from creating a file called install from it
  24462. +# when there is no Makefile.
  24463. +#
  24464. +# This script is compatible with the BSD install script, but was written
  24465. +# from scratch.
  24466. +
  24467. +nl='
  24468. +'
  24469. +IFS=" "" $nl"
  24470. +
  24471. +# set DOITPROG to echo to test this script
  24472. +
  24473. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  24474. +doit=${DOITPROG-}
  24475. +if test -z "$doit"; then
  24476. + doit_exec=exec
  24477. +else
  24478. + doit_exec=$doit
  24479. +fi
  24480. +
  24481. +# Put in absolute file names if you don't have them in your path;
  24482. +# or use environment vars.
  24483. +
  24484. +chgrpprog=${CHGRPPROG-chgrp}
  24485. +chmodprog=${CHMODPROG-chmod}
  24486. +chownprog=${CHOWNPROG-chown}
  24487. +cmpprog=${CMPPROG-cmp}
  24488. +cpprog=${CPPROG-cp}
  24489. +mkdirprog=${MKDIRPROG-mkdir}
  24490. +mvprog=${MVPROG-mv}
  24491. +rmprog=${RMPROG-rm}
  24492. +stripprog=${STRIPPROG-strip}
  24493. +
  24494. +posix_glob='?'
  24495. +initialize_posix_glob='
  24496. + test "$posix_glob" != "?" || {
  24497. + if (set -f) 2>/dev/null; then
  24498. + posix_glob=
  24499. + else
  24500. + posix_glob=:
  24501. + fi
  24502. + }
  24503. +'
  24504. +
  24505. +posix_mkdir=
  24506. +
  24507. +# Desired mode of installed file.
  24508. +mode=0755
  24509. +
  24510. +chgrpcmd=
  24511. +chmodcmd=$chmodprog
  24512. +chowncmd=
  24513. +mvcmd=$mvprog
  24514. +rmcmd="$rmprog -f"
  24515. +stripcmd=
  24516. +
  24517. +src=
  24518. +dst=
  24519. +dir_arg=
  24520. +dst_arg=
  24521. +
  24522. +copy_on_change=false
  24523. +no_target_directory=
  24524. +
  24525. +usage="\
  24526. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  24527. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  24528. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  24529. + or: $0 [OPTION]... -d DIRECTORIES...
  24530. +
  24531. +In the 1st form, copy SRCFILE to DSTFILE.
  24532. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  24533. +In the 4th, create DIRECTORIES.
  24534. +
  24535. +Options:
  24536. + --help display this help and exit.
  24537. + --version display version info and exit.
  24538. +
  24539. + -c (ignored)
  24540. + -C install only if different (preserve the last data modification time)
  24541. + -d create directories instead of installing files.
  24542. + -g GROUP $chgrpprog installed files to GROUP.
  24543. + -m MODE $chmodprog installed files to MODE.
  24544. + -o USER $chownprog installed files to USER.
  24545. + -s $stripprog installed files.
  24546. + -t DIRECTORY install into DIRECTORY.
  24547. + -T report an error if DSTFILE is a directory.
  24548. +
  24549. +Environment variables override the default commands:
  24550. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  24551. + RMPROG STRIPPROG
  24552. +"
  24553. +
  24554. +while test $# -ne 0; do
  24555. + case $1 in
  24556. + -c) ;;
  24557. +
  24558. + -C) copy_on_change=true;;
  24559. +
  24560. + -d) dir_arg=true;;
  24561. +
  24562. + -g) chgrpcmd="$chgrpprog $2"
  24563. + shift;;
  24564. +
  24565. + --help) echo "$usage"; exit $?;;
  24566. +
  24567. + -m) mode=$2
  24568. + case $mode in
  24569. + *' '* | *' '* | *'
  24570. +'* | *'*'* | *'?'* | *'['*)
  24571. + echo "$0: invalid mode: $mode" >&2
  24572. + exit 1;;
  24573. + esac
  24574. + shift;;
  24575. +
  24576. + -o) chowncmd="$chownprog $2"
  24577. + shift;;
  24578. +
  24579. + -s) stripcmd=$stripprog;;
  24580. +
  24581. + -t) dst_arg=$2
  24582. + shift;;
  24583. +
  24584. + -T) no_target_directory=true;;
  24585. +
  24586. + --version) echo "$0 $scriptversion"; exit $?;;
  24587. +
  24588. + --) shift
  24589. + break;;
  24590. +
  24591. + -*) echo "$0: invalid option: $1" >&2
  24592. + exit 1;;
  24593. +
  24594. + *) break;;
  24595. + esac
  24596. + shift
  24597. +done
  24598. +
  24599. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  24600. + # When -d is used, all remaining arguments are directories to create.
  24601. + # When -t is used, the destination is already specified.
  24602. + # Otherwise, the last argument is the destination. Remove it from $@.
  24603. + for arg
  24604. + do
  24605. + if test -n "$dst_arg"; then
  24606. + # $@ is not empty: it contains at least $arg.
  24607. + set fnord "$@" "$dst_arg"
  24608. + shift # fnord
  24609. + fi
  24610. + shift # arg
  24611. + dst_arg=$arg
  24612. + done
  24613. +fi
  24614. +
  24615. +if test $# -eq 0; then
  24616. + if test -z "$dir_arg"; then
  24617. + echo "$0: no input file specified." >&2
  24618. + exit 1
  24619. + fi
  24620. + # It's OK to call `install-sh -d' without argument.
  24621. + # This can happen when creating conditional directories.
  24622. + exit 0
  24623. +fi
  24624. +
  24625. +if test -z "$dir_arg"; then
  24626. + trap '(exit $?); exit' 1 2 13 15
  24627. +
  24628. + # Set umask so as not to create temps with too-generous modes.
  24629. + # However, 'strip' requires both read and write access to temps.
  24630. + case $mode in
  24631. + # Optimize common cases.
  24632. + *644) cp_umask=133;;
  24633. + *755) cp_umask=22;;
  24634. +
  24635. + *[0-7])
  24636. + if test -z "$stripcmd"; then
  24637. + u_plus_rw=
  24638. + else
  24639. + u_plus_rw='% 200'
  24640. + fi
  24641. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  24642. + *)
  24643. + if test -z "$stripcmd"; then
  24644. + u_plus_rw=
  24645. + else
  24646. + u_plus_rw=,u+rw
  24647. + fi
  24648. + cp_umask=$mode$u_plus_rw;;
  24649. + esac
  24650. +fi
  24651. +
  24652. +for src
  24653. +do
  24654. + # Protect names starting with `-'.
  24655. + case $src in
  24656. + -*) src=./$src;;
  24657. + esac
  24658. +
  24659. + if test -n "$dir_arg"; then
  24660. + dst=$src
  24661. + dstdir=$dst
  24662. + test -d "$dstdir"
  24663. + dstdir_status=$?
  24664. + else
  24665. +
  24666. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  24667. + # might cause directories to be created, which would be especially bad
  24668. + # if $src (and thus $dsttmp) contains '*'.
  24669. + if test ! -f "$src" && test ! -d "$src"; then
  24670. + echo "$0: $src does not exist." >&2
  24671. + exit 1
  24672. + fi
  24673. +
  24674. + if test -z "$dst_arg"; then
  24675. + echo "$0: no destination specified." >&2
  24676. + exit 1
  24677. + fi
  24678. +
  24679. + dst=$dst_arg
  24680. + # Protect names starting with `-'.
  24681. + case $dst in
  24682. + -*) dst=./$dst;;
  24683. + esac
  24684. +
  24685. + # If destination is a directory, append the input filename; won't work
  24686. + # if double slashes aren't ignored.
  24687. + if test -d "$dst"; then
  24688. + if test -n "$no_target_directory"; then
  24689. + echo "$0: $dst_arg: Is a directory" >&2
  24690. + exit 1
  24691. + fi
  24692. + dstdir=$dst
  24693. + dst=$dstdir/`basename "$src"`
  24694. + dstdir_status=0
  24695. + else
  24696. + # Prefer dirname, but fall back on a substitute if dirname fails.
  24697. + dstdir=`
  24698. + (dirname "$dst") 2>/dev/null ||
  24699. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24700. + X"$dst" : 'X\(//\)[^/]' \| \
  24701. + X"$dst" : 'X\(//\)$' \| \
  24702. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  24703. + echo X"$dst" |
  24704. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24705. + s//\1/
  24706. + q
  24707. + }
  24708. + /^X\(\/\/\)[^/].*/{
  24709. + s//\1/
  24710. + q
  24711. + }
  24712. + /^X\(\/\/\)$/{
  24713. + s//\1/
  24714. + q
  24715. + }
  24716. + /^X\(\/\).*/{
  24717. + s//\1/
  24718. + q
  24719. + }
  24720. + s/.*/./; q'
  24721. + `
  24722. +
  24723. + test -d "$dstdir"
  24724. + dstdir_status=$?
  24725. + fi
  24726. + fi
  24727. +
  24728. + obsolete_mkdir_used=false
  24729. +
  24730. + if test $dstdir_status != 0; then
  24731. + case $posix_mkdir in
  24732. + '')
  24733. + # Create intermediate dirs using mode 755 as modified by the umask.
  24734. + # This is like FreeBSD 'install' as of 1997-10-28.
  24735. + umask=`umask`
  24736. + case $stripcmd.$umask in
  24737. + # Optimize common cases.
  24738. + *[2367][2367]) mkdir_umask=$umask;;
  24739. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  24740. +
  24741. + *[0-7])
  24742. + mkdir_umask=`expr $umask + 22 \
  24743. + - $umask % 100 % 40 + $umask % 20 \
  24744. + - $umask % 10 % 4 + $umask % 2
  24745. + `;;
  24746. + *) mkdir_umask=$umask,go-w;;
  24747. + esac
  24748. +
  24749. + # With -d, create the new directory with the user-specified mode.
  24750. + # Otherwise, rely on $mkdir_umask.
  24751. + if test -n "$dir_arg"; then
  24752. + mkdir_mode=-m$mode
  24753. + else
  24754. + mkdir_mode=
  24755. + fi
  24756. +
  24757. + posix_mkdir=false
  24758. + case $umask in
  24759. + *[123567][0-7][0-7])
  24760. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  24761. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  24762. + ;;
  24763. + *)
  24764. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  24765. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  24766. +
  24767. + if (umask $mkdir_umask &&
  24768. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  24769. + then
  24770. + if test -z "$dir_arg" || {
  24771. + # Check for POSIX incompatibilities with -m.
  24772. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  24773. + # other-writeable bit of parent directory when it shouldn't.
  24774. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  24775. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  24776. + case $ls_ld_tmpdir in
  24777. + d????-?r-*) different_mode=700;;
  24778. + d????-?--*) different_mode=755;;
  24779. + *) false;;
  24780. + esac &&
  24781. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  24782. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  24783. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  24784. + }
  24785. + }
  24786. + then posix_mkdir=:
  24787. + fi
  24788. + rmdir "$tmpdir/d" "$tmpdir"
  24789. + else
  24790. + # Remove any dirs left behind by ancient mkdir implementations.
  24791. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  24792. + fi
  24793. + trap '' 0;;
  24794. + esac;;
  24795. + esac
  24796. +
  24797. + if
  24798. + $posix_mkdir && (
  24799. + umask $mkdir_umask &&
  24800. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  24801. + )
  24802. + then :
  24803. + else
  24804. +
  24805. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  24806. + # or it failed possibly due to a race condition. Create the
  24807. + # directory the slow way, step by step, checking for races as we go.
  24808. +
  24809. + case $dstdir in
  24810. + /*) prefix='/';;
  24811. + -*) prefix='./';;
  24812. + *) prefix='';;
  24813. + esac
  24814. +
  24815. + eval "$initialize_posix_glob"
  24816. +
  24817. + oIFS=$IFS
  24818. + IFS=/
  24819. + $posix_glob set -f
  24820. + set fnord $dstdir
  24821. + shift
  24822. + $posix_glob set +f
  24823. + IFS=$oIFS
  24824. +
  24825. + prefixes=
  24826. +
  24827. + for d
  24828. + do
  24829. + test -z "$d" && continue
  24830. +
  24831. + prefix=$prefix$d
  24832. + if test -d "$prefix"; then
  24833. + prefixes=
  24834. + else
  24835. + if $posix_mkdir; then
  24836. + (umask=$mkdir_umask &&
  24837. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  24838. + # Don't fail if two instances are running concurrently.
  24839. + test -d "$prefix" || exit 1
  24840. + else
  24841. + case $prefix in
  24842. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  24843. + *) qprefix=$prefix;;
  24844. + esac
  24845. + prefixes="$prefixes '$qprefix'"
  24846. + fi
  24847. + fi
  24848. + prefix=$prefix/
  24849. + done
  24850. +
  24851. + if test -n "$prefixes"; then
  24852. + # Don't fail if two instances are running concurrently.
  24853. + (umask $mkdir_umask &&
  24854. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  24855. + test -d "$dstdir" || exit 1
  24856. + obsolete_mkdir_used=true
  24857. + fi
  24858. + fi
  24859. + fi
  24860. +
  24861. + if test -n "$dir_arg"; then
  24862. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  24863. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  24864. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  24865. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  24866. + else
  24867. +
  24868. + # Make a couple of temp file names in the proper directory.
  24869. + dsttmp=$dstdir/_inst.$$_
  24870. + rmtmp=$dstdir/_rm.$$_
  24871. +
  24872. + # Trap to clean up those temp files at exit.
  24873. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  24874. +
  24875. + # Copy the file name to the temp name.
  24876. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  24877. +
  24878. + # and set any options; do chmod last to preserve setuid bits.
  24879. + #
  24880. + # If any of these fail, we abort the whole thing. If we want to
  24881. + # ignore errors from any of these, just make sure not to ignore
  24882. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  24883. + #
  24884. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  24885. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  24886. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  24887. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  24888. +
  24889. + # If -C, don't bother to copy if it wouldn't change the file.
  24890. + if $copy_on_change &&
  24891. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  24892. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  24893. +
  24894. + eval "$initialize_posix_glob" &&
  24895. + $posix_glob set -f &&
  24896. + set X $old && old=:$2:$4:$5:$6 &&
  24897. + set X $new && new=:$2:$4:$5:$6 &&
  24898. + $posix_glob set +f &&
  24899. +
  24900. + test "$old" = "$new" &&
  24901. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  24902. + then
  24903. + rm -f "$dsttmp"
  24904. + else
  24905. + # Rename the file to the real destination.
  24906. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  24907. +
  24908. + # The rename failed, perhaps because mv can't rename something else
  24909. + # to itself, or perhaps because mv is so ancient that it does not
  24910. + # support -f.
  24911. + {
  24912. + # Now remove or move aside any old file at destination location.
  24913. + # We try this two ways since rm can't unlink itself on some
  24914. + # systems and the destination file might be busy for other
  24915. + # reasons. In this case, the final cleanup might fail but the new
  24916. + # file should still install successfully.
  24917. + {
  24918. + test ! -f "$dst" ||
  24919. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  24920. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  24921. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  24922. + } ||
  24923. + { echo "$0: cannot unlink or rename $dst" >&2
  24924. + (exit 1); exit 1
  24925. + }
  24926. + } &&
  24927. +
  24928. + # Now rename the file to the real destination.
  24929. + $doit $mvcmd "$dsttmp" "$dst"
  24930. + }
  24931. + fi || exit 1
  24932. +
  24933. + trap '' 0
  24934. + fi
  24935. +done
  24936. +
  24937. +# Local variables:
  24938. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  24939. +# time-stamp-start: "scriptversion="
  24940. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  24941. +# time-stamp-time-zone: "UTC"
  24942. +# time-stamp-end: "; # UTC"
  24943. +# End:
  24944. diff -Nur tslib-1.0.orig/ltmain.sh tslib-1.0/ltmain.sh
  24945. --- tslib-1.0.orig/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
  24946. +++ tslib-1.0/ltmain.sh 2010-02-19 00:24:02.744855643 +0100
  24947. @@ -0,0 +1,8413 @@
  24948. +# Generated from ltmain.m4sh.
  24949. +
  24950. +# ltmain.sh (GNU libtool) 2.2.6b
  24951. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  24952. +
  24953. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  24954. +# This is free software; see the source for copying conditions. There is NO
  24955. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24956. +
  24957. +# GNU Libtool is free software; you can redistribute it and/or modify
  24958. +# it under the terms of the GNU General Public License as published by
  24959. +# the Free Software Foundation; either version 2 of the License, or
  24960. +# (at your option) any later version.
  24961. +#
  24962. +# As a special exception to the GNU General Public License,
  24963. +# if you distribute this file as part of a program or library that
  24964. +# is built using GNU Libtool, you may include this file under the
  24965. +# same distribution terms that you use for the rest of that program.
  24966. +#
  24967. +# GNU Libtool is distributed in the hope that it will be useful, but
  24968. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  24969. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24970. +# General Public License for more details.
  24971. +#
  24972. +# You should have received a copy of the GNU General Public License
  24973. +# along with GNU Libtool; see the file COPYING. If not, a copy
  24974. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  24975. +# or obtained by writing to the Free Software Foundation, Inc.,
  24976. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24977. +
  24978. +# Usage: $progname [OPTION]... [MODE-ARG]...
  24979. +#
  24980. +# Provide generalized library-building support services.
  24981. +#
  24982. +# --config show all configuration variables
  24983. +# --debug enable verbose shell tracing
  24984. +# -n, --dry-run display commands without modifying any files
  24985. +# --features display basic configuration information and exit
  24986. +# --mode=MODE use operation mode MODE
  24987. +# --preserve-dup-deps don't remove duplicate dependency libraries
  24988. +# --quiet, --silent don't print informational messages
  24989. +# --tag=TAG use configuration variables from tag TAG
  24990. +# -v, --verbose print informational messages (default)
  24991. +# --version print version information
  24992. +# -h, --help print short or long help message
  24993. +#
  24994. +# MODE must be one of the following:
  24995. +#
  24996. +# clean remove files from the build directory
  24997. +# compile compile a source file into a libtool object
  24998. +# execute automatically set library path, then run a program
  24999. +# finish complete the installation of libtool libraries
  25000. +# install install libraries or executables
  25001. +# link create a library or an executable
  25002. +# uninstall remove libraries from an installed directory
  25003. +#
  25004. +# MODE-ARGS vary depending on the MODE.
  25005. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  25006. +#
  25007. +# When reporting a bug, please describe a test case to reproduce it and
  25008. +# include the following information:
  25009. +#
  25010. +# host-triplet: $host
  25011. +# shell: $SHELL
  25012. +# compiler: $LTCC
  25013. +# compiler flags: $LTCFLAGS
  25014. +# linker: $LD (gnu? $with_gnu_ld)
  25015. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  25016. +# automake: $automake_version
  25017. +# autoconf: $autoconf_version
  25018. +#
  25019. +# Report bugs to <bug-libtool@gnu.org>.
  25020. +
  25021. +PROGRAM=ltmain.sh
  25022. +PACKAGE=libtool
  25023. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  25024. +TIMESTAMP=""
  25025. +package_revision=1.3017
  25026. +
  25027. +# Be Bourne compatible
  25028. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  25029. + emulate sh
  25030. + NULLCMD=:
  25031. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  25032. + # is contrary to our usage. Disable this feature.
  25033. + alias -g '${1+"$@"}'='"$@"'
  25034. + setopt NO_GLOB_SUBST
  25035. +else
  25036. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  25037. +fi
  25038. +BIN_SH=xpg4; export BIN_SH # for Tru64
  25039. +DUALCASE=1; export DUALCASE # for MKS sh
  25040. +
  25041. +# NLS nuisances: We save the old values to restore during execute mode.
  25042. +# Only set LANG and LC_ALL to C if already set.
  25043. +# These must not be set unconditionally because not all systems understand
  25044. +# e.g. LANG=C (notably SCO).
  25045. +lt_user_locale=
  25046. +lt_safe_locale=
  25047. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  25048. +do
  25049. + eval "if test \"\${$lt_var+set}\" = set; then
  25050. + save_$lt_var=\$$lt_var
  25051. + $lt_var=C
  25052. + export $lt_var
  25053. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  25054. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  25055. + fi"
  25056. +done
  25057. +
  25058. +$lt_unset CDPATH
  25059. +
  25060. +
  25061. +
  25062. +
  25063. +
  25064. +: ${CP="cp -f"}
  25065. +: ${ECHO="echo"}
  25066. +: ${EGREP="/bin/grep -E"}
  25067. +: ${FGREP="/bin/grep -F"}
  25068. +: ${GREP="/bin/grep"}
  25069. +: ${LN_S="ln -s"}
  25070. +: ${MAKE="make"}
  25071. +: ${MKDIR="mkdir"}
  25072. +: ${MV="mv -f"}
  25073. +: ${RM="rm -f"}
  25074. +: ${SED="/bin/sed"}
  25075. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  25076. +: ${Xsed="$SED -e 1s/^X//"}
  25077. +
  25078. +# Global variables:
  25079. +EXIT_SUCCESS=0
  25080. +EXIT_FAILURE=1
  25081. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  25082. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  25083. +
  25084. +exit_status=$EXIT_SUCCESS
  25085. +
  25086. +# Make sure IFS has a sensible default
  25087. +lt_nl='
  25088. +'
  25089. +IFS=" $lt_nl"
  25090. +
  25091. +dirname="s,/[^/]*$,,"
  25092. +basename="s,^.*/,,"
  25093. +
  25094. +# func_dirname_and_basename file append nondir_replacement
  25095. +# perform func_basename and func_dirname in a single function
  25096. +# call:
  25097. +# dirname: Compute the dirname of FILE. If nonempty,
  25098. +# add APPEND to the result, otherwise set result
  25099. +# to NONDIR_REPLACEMENT.
  25100. +# value returned in "$func_dirname_result"
  25101. +# basename: Compute filename of FILE.
  25102. +# value retuned in "$func_basename_result"
  25103. +# Implementation must be kept synchronized with func_dirname
  25104. +# and func_basename. For efficiency, we do not delegate to
  25105. +# those functions but instead duplicate the functionality here.
  25106. +func_dirname_and_basename ()
  25107. +{
  25108. + # Extract subdirectory from the argument.
  25109. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  25110. + if test "X$func_dirname_result" = "X${1}"; then
  25111. + func_dirname_result="${3}"
  25112. + else
  25113. + func_dirname_result="$func_dirname_result${2}"
  25114. + fi
  25115. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  25116. +}
  25117. +
  25118. +# Generated shell functions inserted here.
  25119. +
  25120. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  25121. +# is ksh but when the shell is invoked as "sh" and the current value of
  25122. +# the _XPG environment variable is not equal to 1 (one), the special
  25123. +# positional parameter $0, within a function call, is the name of the
  25124. +# function.
  25125. +progpath="$0"
  25126. +
  25127. +# The name of this program:
  25128. +# In the unlikely event $progname began with a '-', it would play havoc with
  25129. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  25130. +func_dirname_and_basename "$progpath"
  25131. +progname=$func_basename_result
  25132. +case $progname in
  25133. + -*) progname=./$progname ;;
  25134. +esac
  25135. +
  25136. +# Make sure we have an absolute path for reexecution:
  25137. +case $progpath in
  25138. + [\\/]*|[A-Za-z]:\\*) ;;
  25139. + *[\\/]*)
  25140. + progdir=$func_dirname_result
  25141. + progdir=`cd "$progdir" && pwd`
  25142. + progpath="$progdir/$progname"
  25143. + ;;
  25144. + *)
  25145. + save_IFS="$IFS"
  25146. + IFS=:
  25147. + for progdir in $PATH; do
  25148. + IFS="$save_IFS"
  25149. + test -x "$progdir/$progname" && break
  25150. + done
  25151. + IFS="$save_IFS"
  25152. + test -n "$progdir" || progdir=`pwd`
  25153. + progpath="$progdir/$progname"
  25154. + ;;
  25155. +esac
  25156. +
  25157. +# Sed substitution that helps us do robust quoting. It backslashifies
  25158. +# metacharacters that are still active within double-quoted strings.
  25159. +Xsed="${SED}"' -e 1s/^X//'
  25160. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  25161. +
  25162. +# Same as above, but do not quote variable references.
  25163. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  25164. +
  25165. +# Re-`\' parameter expansions in output of double_quote_subst that were
  25166. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  25167. +# in input to double_quote_subst, that '$' was protected from expansion.
  25168. +# Since each input `\' is now two `\'s, look for any number of runs of
  25169. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  25170. +bs='\\'
  25171. +bs2='\\\\'
  25172. +bs4='\\\\\\\\'
  25173. +dollar='\$'
  25174. +sed_double_backslash="\
  25175. + s/$bs4/&\\
  25176. +/g
  25177. + s/^$bs2$dollar/$bs&/
  25178. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  25179. + s/\n//g"
  25180. +
  25181. +# Standard options:
  25182. +opt_dry_run=false
  25183. +opt_help=false
  25184. +opt_quiet=false
  25185. +opt_verbose=false
  25186. +opt_warning=:
  25187. +
  25188. +# func_echo arg...
  25189. +# Echo program name prefixed message, along with the current mode
  25190. +# name if it has been set yet.
  25191. +func_echo ()
  25192. +{
  25193. + $ECHO "$progname${mode+: }$mode: $*"
  25194. +}
  25195. +
  25196. +# func_verbose arg...
  25197. +# Echo program name prefixed message in verbose mode only.
  25198. +func_verbose ()
  25199. +{
  25200. + $opt_verbose && func_echo ${1+"$@"}
  25201. +
  25202. + # A bug in bash halts the script if the last line of a function
  25203. + # fails when set -e is in force, so we need another command to
  25204. + # work around that:
  25205. + :
  25206. +}
  25207. +
  25208. +# func_error arg...
  25209. +# Echo program name prefixed message to standard error.
  25210. +func_error ()
  25211. +{
  25212. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  25213. +}
  25214. +
  25215. +# func_warning arg...
  25216. +# Echo program name prefixed warning message to standard error.
  25217. +func_warning ()
  25218. +{
  25219. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  25220. +
  25221. + # bash bug again:
  25222. + :
  25223. +}
  25224. +
  25225. +# func_fatal_error arg...
  25226. +# Echo program name prefixed message to standard error, and exit.
  25227. +func_fatal_error ()
  25228. +{
  25229. + func_error ${1+"$@"}
  25230. + exit $EXIT_FAILURE
  25231. +}
  25232. +
  25233. +# func_fatal_help arg...
  25234. +# Echo program name prefixed message to standard error, followed by
  25235. +# a help hint, and exit.
  25236. +func_fatal_help ()
  25237. +{
  25238. + func_error ${1+"$@"}
  25239. + func_fatal_error "$help"
  25240. +}
  25241. +help="Try \`$progname --help' for more information." ## default
  25242. +
  25243. +
  25244. +# func_grep expression filename
  25245. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  25246. +func_grep ()
  25247. +{
  25248. + $GREP "$1" "$2" >/dev/null 2>&1
  25249. +}
  25250. +
  25251. +
  25252. +# func_mkdir_p directory-path
  25253. +# Make sure the entire path to DIRECTORY-PATH is available.
  25254. +func_mkdir_p ()
  25255. +{
  25256. + my_directory_path="$1"
  25257. + my_dir_list=
  25258. +
  25259. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  25260. +
  25261. + # Protect directory names starting with `-'
  25262. + case $my_directory_path in
  25263. + -*) my_directory_path="./$my_directory_path" ;;
  25264. + esac
  25265. +
  25266. + # While some portion of DIR does not yet exist...
  25267. + while test ! -d "$my_directory_path"; do
  25268. + # ...make a list in topmost first order. Use a colon delimited
  25269. + # list incase some portion of path contains whitespace.
  25270. + my_dir_list="$my_directory_path:$my_dir_list"
  25271. +
  25272. + # If the last portion added has no slash in it, the list is done
  25273. + case $my_directory_path in */*) ;; *) break ;; esac
  25274. +
  25275. + # ...otherwise throw away the child directory and loop
  25276. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  25277. + done
  25278. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  25279. +
  25280. + save_mkdir_p_IFS="$IFS"; IFS=':'
  25281. + for my_dir in $my_dir_list; do
  25282. + IFS="$save_mkdir_p_IFS"
  25283. + # mkdir can fail with a `File exist' error if two processes
  25284. + # try to create one of the directories concurrently. Don't
  25285. + # stop in that case!
  25286. + $MKDIR "$my_dir" 2>/dev/null || :
  25287. + done
  25288. + IFS="$save_mkdir_p_IFS"
  25289. +
  25290. + # Bail out if we (or some other process) failed to create a directory.
  25291. + test -d "$my_directory_path" || \
  25292. + func_fatal_error "Failed to create \`$1'"
  25293. + fi
  25294. +}
  25295. +
  25296. +
  25297. +# func_mktempdir [string]
  25298. +# Make a temporary directory that won't clash with other running
  25299. +# libtool processes, and avoids race conditions if possible. If
  25300. +# given, STRING is the basename for that directory.
  25301. +func_mktempdir ()
  25302. +{
  25303. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  25304. +
  25305. + if test "$opt_dry_run" = ":"; then
  25306. + # Return a directory name, but don't create it in dry-run mode
  25307. + my_tmpdir="${my_template}-$$"
  25308. + else
  25309. +
  25310. + # If mktemp works, use that first and foremost
  25311. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  25312. +
  25313. + if test ! -d "$my_tmpdir"; then
  25314. + # Failing that, at least try and use $RANDOM to avoid a race
  25315. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  25316. +
  25317. + save_mktempdir_umask=`umask`
  25318. + umask 0077
  25319. + $MKDIR "$my_tmpdir"
  25320. + umask $save_mktempdir_umask
  25321. + fi
  25322. +
  25323. + # If we're not in dry-run mode, bomb out on failure
  25324. + test -d "$my_tmpdir" || \
  25325. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  25326. + fi
  25327. +
  25328. + $ECHO "X$my_tmpdir" | $Xsed
  25329. +}
  25330. +
  25331. +
  25332. +# func_quote_for_eval arg
  25333. +# Aesthetically quote ARG to be evaled later.
  25334. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  25335. +# is double-quoted, suitable for a subsequent eval, whereas
  25336. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  25337. +# which are still active within double quotes backslashified.
  25338. +func_quote_for_eval ()
  25339. +{
  25340. + case $1 in
  25341. + *[\\\`\"\$]*)
  25342. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  25343. + *)
  25344. + func_quote_for_eval_unquoted_result="$1" ;;
  25345. + esac
  25346. +
  25347. + case $func_quote_for_eval_unquoted_result in
  25348. + # Double-quote args containing shell metacharacters to delay
  25349. + # word splitting, command substitution and and variable
  25350. + # expansion for a subsequent eval.
  25351. + # Many Bourne shells cannot handle close brackets correctly
  25352. + # in scan sets, so we specify it separately.
  25353. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  25354. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  25355. + ;;
  25356. + *)
  25357. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  25358. + esac
  25359. +}
  25360. +
  25361. +
  25362. +# func_quote_for_expand arg
  25363. +# Aesthetically quote ARG to be evaled later; same as above,
  25364. +# but do not quote variable references.
  25365. +func_quote_for_expand ()
  25366. +{
  25367. + case $1 in
  25368. + *[\\\`\"]*)
  25369. + my_arg=`$ECHO "X$1" | $Xsed \
  25370. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  25371. + *)
  25372. + my_arg="$1" ;;
  25373. + esac
  25374. +
  25375. + case $my_arg in
  25376. + # Double-quote args containing shell metacharacters to delay
  25377. + # word splitting and command substitution for a subsequent eval.
  25378. + # Many Bourne shells cannot handle close brackets correctly
  25379. + # in scan sets, so we specify it separately.
  25380. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  25381. + my_arg="\"$my_arg\""
  25382. + ;;
  25383. + esac
  25384. +
  25385. + func_quote_for_expand_result="$my_arg"
  25386. +}
  25387. +
  25388. +
  25389. +# func_show_eval cmd [fail_exp]
  25390. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  25391. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  25392. +# is given, then evaluate it.
  25393. +func_show_eval ()
  25394. +{
  25395. + my_cmd="$1"
  25396. + my_fail_exp="${2-:}"
  25397. +
  25398. + ${opt_silent-false} || {
  25399. + func_quote_for_expand "$my_cmd"
  25400. + eval "func_echo $func_quote_for_expand_result"
  25401. + }
  25402. +
  25403. + if ${opt_dry_run-false}; then :; else
  25404. + eval "$my_cmd"
  25405. + my_status=$?
  25406. + if test "$my_status" -eq 0; then :; else
  25407. + eval "(exit $my_status); $my_fail_exp"
  25408. + fi
  25409. + fi
  25410. +}
  25411. +
  25412. +
  25413. +# func_show_eval_locale cmd [fail_exp]
  25414. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  25415. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  25416. +# is given, then evaluate it. Use the saved locale for evaluation.
  25417. +func_show_eval_locale ()
  25418. +{
  25419. + my_cmd="$1"
  25420. + my_fail_exp="${2-:}"
  25421. +
  25422. + ${opt_silent-false} || {
  25423. + func_quote_for_expand "$my_cmd"
  25424. + eval "func_echo $func_quote_for_expand_result"
  25425. + }
  25426. +
  25427. + if ${opt_dry_run-false}; then :; else
  25428. + eval "$lt_user_locale
  25429. + $my_cmd"
  25430. + my_status=$?
  25431. + eval "$lt_safe_locale"
  25432. + if test "$my_status" -eq 0; then :; else
  25433. + eval "(exit $my_status); $my_fail_exp"
  25434. + fi
  25435. + fi
  25436. +}
  25437. +
  25438. +
  25439. +
  25440. +
  25441. +
  25442. +# func_version
  25443. +# Echo version message to standard output and exit.
  25444. +func_version ()
  25445. +{
  25446. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  25447. + s/^# //
  25448. + s/^# *$//
  25449. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  25450. + p
  25451. + }' < "$progpath"
  25452. + exit $?
  25453. +}
  25454. +
  25455. +# func_usage
  25456. +# Echo short help message to standard output and exit.
  25457. +func_usage ()
  25458. +{
  25459. + $SED -n '/^# Usage:/,/# -h/ {
  25460. + s/^# //
  25461. + s/^# *$//
  25462. + s/\$progname/'$progname'/
  25463. + p
  25464. + }' < "$progpath"
  25465. + $ECHO
  25466. + $ECHO "run \`$progname --help | more' for full usage"
  25467. + exit $?
  25468. +}
  25469. +
  25470. +# func_help
  25471. +# Echo long help message to standard output and exit.
  25472. +func_help ()
  25473. +{
  25474. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  25475. + s/^# //
  25476. + s/^# *$//
  25477. + s*\$progname*'$progname'*
  25478. + s*\$host*'"$host"'*
  25479. + s*\$SHELL*'"$SHELL"'*
  25480. + s*\$LTCC*'"$LTCC"'*
  25481. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  25482. + s*\$LD*'"$LD"'*
  25483. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  25484. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  25485. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  25486. + p
  25487. + }' < "$progpath"
  25488. + exit $?
  25489. +}
  25490. +
  25491. +# func_missing_arg argname
  25492. +# Echo program name prefixed message to standard error and set global
  25493. +# exit_cmd.
  25494. +func_missing_arg ()
  25495. +{
  25496. + func_error "missing argument for $1"
  25497. + exit_cmd=exit
  25498. +}
  25499. +
  25500. +exit_cmd=:
  25501. +
  25502. +
  25503. +
  25504. +
  25505. +
  25506. +# Check that we have a working $ECHO.
  25507. +if test "X$1" = X--no-reexec; then
  25508. + # Discard the --no-reexec flag, and continue.
  25509. + shift
  25510. +elif test "X$1" = X--fallback-echo; then
  25511. + # Avoid inline document here, it may be left over
  25512. + :
  25513. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  25514. + # Yippee, $ECHO works!
  25515. + :
  25516. +else
  25517. + # Restart under the correct shell, and then maybe $ECHO will work.
  25518. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  25519. +fi
  25520. +
  25521. +if test "X$1" = X--fallback-echo; then
  25522. + # used as fallback echo
  25523. + shift
  25524. + cat <<EOF
  25525. +$*
  25526. +EOF
  25527. + exit $EXIT_SUCCESS
  25528. +fi
  25529. +
  25530. +magic="%%%MAGIC variable%%%"
  25531. +magic_exe="%%%MAGIC EXE variable%%%"
  25532. +
  25533. +# Global variables.
  25534. +# $mode is unset
  25535. +nonopt=
  25536. +execute_dlfiles=
  25537. +preserve_args=
  25538. +lo2o="s/\\.lo\$/.${objext}/"
  25539. +o2lo="s/\\.${objext}\$/.lo/"
  25540. +extracted_archives=
  25541. +extracted_serial=0
  25542. +
  25543. +opt_dry_run=false
  25544. +opt_duplicate_deps=false
  25545. +opt_silent=false
  25546. +opt_debug=:
  25547. +
  25548. +# If this variable is set in any of the actions, the command in it
  25549. +# will be execed at the end. This prevents here-documents from being
  25550. +# left over by shells.
  25551. +exec_cmd=
  25552. +
  25553. +# func_fatal_configuration arg...
  25554. +# Echo program name prefixed message to standard error, followed by
  25555. +# a configuration failure hint, and exit.
  25556. +func_fatal_configuration ()
  25557. +{
  25558. + func_error ${1+"$@"}
  25559. + func_error "See the $PACKAGE documentation for more information."
  25560. + func_fatal_error "Fatal configuration error."
  25561. +}
  25562. +
  25563. +
  25564. +# func_config
  25565. +# Display the configuration for all the tags in this script.
  25566. +func_config ()
  25567. +{
  25568. + re_begincf='^# ### BEGIN LIBTOOL'
  25569. + re_endcf='^# ### END LIBTOOL'
  25570. +
  25571. + # Default configuration.
  25572. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  25573. +
  25574. + # Now print the configurations for the tags.
  25575. + for tagname in $taglist; do
  25576. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  25577. + done
  25578. +
  25579. + exit $?
  25580. +}
  25581. +
  25582. +# func_features
  25583. +# Display the features supported by this script.
  25584. +func_features ()
  25585. +{
  25586. + $ECHO "host: $host"
  25587. + if test "$build_libtool_libs" = yes; then
  25588. + $ECHO "enable shared libraries"
  25589. + else
  25590. + $ECHO "disable shared libraries"
  25591. + fi
  25592. + if test "$build_old_libs" = yes; then
  25593. + $ECHO "enable static libraries"
  25594. + else
  25595. + $ECHO "disable static libraries"
  25596. + fi
  25597. +
  25598. + exit $?
  25599. +}
  25600. +
  25601. +# func_enable_tag tagname
  25602. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  25603. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  25604. +# variable here.
  25605. +func_enable_tag ()
  25606. +{
  25607. + # Global variable:
  25608. + tagname="$1"
  25609. +
  25610. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  25611. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  25612. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  25613. +
  25614. + # Validate tagname.
  25615. + case $tagname in
  25616. + *[!-_A-Za-z0-9,/]*)
  25617. + func_fatal_error "invalid tag name: $tagname"
  25618. + ;;
  25619. + esac
  25620. +
  25621. + # Don't test for the "default" C tag, as we know it's
  25622. + # there but not specially marked.
  25623. + case $tagname in
  25624. + CC) ;;
  25625. + *)
  25626. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  25627. + taglist="$taglist $tagname"
  25628. +
  25629. + # Evaluate the configuration. Be careful to quote the path
  25630. + # and the sed script, to avoid splitting on whitespace, but
  25631. + # also don't use non-portable quotes within backquotes within
  25632. + # quotes we have to do it in 2 steps:
  25633. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  25634. + eval "$extractedcf"
  25635. + else
  25636. + func_error "ignoring unknown tag $tagname"
  25637. + fi
  25638. + ;;
  25639. + esac
  25640. +}
  25641. +
  25642. +# Parse options once, thoroughly. This comes as soon as possible in
  25643. +# the script to make things like `libtool --version' happen quickly.
  25644. +{
  25645. +
  25646. + # Shorthand for --mode=foo, only valid as the first argument
  25647. + case $1 in
  25648. + clean|clea|cle|cl)
  25649. + shift; set dummy --mode clean ${1+"$@"}; shift
  25650. + ;;
  25651. + compile|compil|compi|comp|com|co|c)
  25652. + shift; set dummy --mode compile ${1+"$@"}; shift
  25653. + ;;
  25654. + execute|execut|execu|exec|exe|ex|e)
  25655. + shift; set dummy --mode execute ${1+"$@"}; shift
  25656. + ;;
  25657. + finish|finis|fini|fin|fi|f)
  25658. + shift; set dummy --mode finish ${1+"$@"}; shift
  25659. + ;;
  25660. + install|instal|insta|inst|ins|in|i)
  25661. + shift; set dummy --mode install ${1+"$@"}; shift
  25662. + ;;
  25663. + link|lin|li|l)
  25664. + shift; set dummy --mode link ${1+"$@"}; shift
  25665. + ;;
  25666. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  25667. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  25668. + ;;
  25669. + esac
  25670. +
  25671. + # Parse non-mode specific arguments:
  25672. + while test "$#" -gt 0; do
  25673. + opt="$1"
  25674. + shift
  25675. +
  25676. + case $opt in
  25677. + --config) func_config ;;
  25678. +
  25679. + --debug) preserve_args="$preserve_args $opt"
  25680. + func_echo "enabling shell trace mode"
  25681. + opt_debug='set -x'
  25682. + $opt_debug
  25683. + ;;
  25684. +
  25685. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  25686. + execute_dlfiles="$execute_dlfiles $1"
  25687. + shift
  25688. + ;;
  25689. +
  25690. + --dry-run | -n) opt_dry_run=: ;;
  25691. + --features) func_features ;;
  25692. + --finish) mode="finish" ;;
  25693. +
  25694. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  25695. + case $1 in
  25696. + # Valid mode arguments:
  25697. + clean) ;;
  25698. + compile) ;;
  25699. + execute) ;;
  25700. + finish) ;;
  25701. + install) ;;
  25702. + link) ;;
  25703. + relink) ;;
  25704. + uninstall) ;;
  25705. +
  25706. + # Catch anything else as an error
  25707. + *) func_error "invalid argument for $opt"
  25708. + exit_cmd=exit
  25709. + break
  25710. + ;;
  25711. + esac
  25712. +
  25713. + mode="$1"
  25714. + shift
  25715. + ;;
  25716. +
  25717. + --preserve-dup-deps)
  25718. + opt_duplicate_deps=: ;;
  25719. +
  25720. + --quiet|--silent) preserve_args="$preserve_args $opt"
  25721. + opt_silent=:
  25722. + ;;
  25723. +
  25724. + --verbose| -v) preserve_args="$preserve_args $opt"
  25725. + opt_silent=false
  25726. + ;;
  25727. +
  25728. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  25729. + preserve_args="$preserve_args $opt $1"
  25730. + func_enable_tag "$1" # tagname is set here
  25731. + shift
  25732. + ;;
  25733. +
  25734. + # Separate optargs to long options:
  25735. + -dlopen=*|--mode=*|--tag=*)
  25736. + func_opt_split "$opt"
  25737. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  25738. + shift
  25739. + ;;
  25740. +
  25741. + -\?|-h) func_usage ;;
  25742. + --help) opt_help=: ;;
  25743. + --version) func_version ;;
  25744. +
  25745. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  25746. +
  25747. + *) nonopt="$opt"
  25748. + break
  25749. + ;;
  25750. + esac
  25751. + done
  25752. +
  25753. +
  25754. + case $host in
  25755. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  25756. + # don't eliminate duplications in $postdeps and $predeps
  25757. + opt_duplicate_compiler_generated_deps=:
  25758. + ;;
  25759. + *)
  25760. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  25761. + ;;
  25762. + esac
  25763. +
  25764. + # Having warned about all mis-specified options, bail out if
  25765. + # anything was wrong.
  25766. + $exit_cmd $EXIT_FAILURE
  25767. +}
  25768. +
  25769. +# func_check_version_match
  25770. +# Ensure that we are using m4 macros, and libtool script from the same
  25771. +# release of libtool.
  25772. +func_check_version_match ()
  25773. +{
  25774. + if test "$package_revision" != "$macro_revision"; then
  25775. + if test "$VERSION" != "$macro_version"; then
  25776. + if test -z "$macro_version"; then
  25777. + cat >&2 <<_LT_EOF
  25778. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  25779. +$progname: definition of this LT_INIT comes from an older release.
  25780. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  25781. +$progname: and run autoconf again.
  25782. +_LT_EOF
  25783. + else
  25784. + cat >&2 <<_LT_EOF
  25785. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  25786. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  25787. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  25788. +$progname: and run autoconf again.
  25789. +_LT_EOF
  25790. + fi
  25791. + else
  25792. + cat >&2 <<_LT_EOF
  25793. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  25794. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  25795. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  25796. +$progname: of $PACKAGE $VERSION and run autoconf again.
  25797. +_LT_EOF
  25798. + fi
  25799. +
  25800. + exit $EXIT_MISMATCH
  25801. + fi
  25802. +}
  25803. +
  25804. +
  25805. +## ----------- ##
  25806. +## Main. ##
  25807. +## ----------- ##
  25808. +
  25809. +$opt_help || {
  25810. + # Sanity checks first:
  25811. + func_check_version_match
  25812. +
  25813. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  25814. + func_fatal_configuration "not configured to build any kind of library"
  25815. + fi
  25816. +
  25817. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  25818. +
  25819. +
  25820. + # Darwin sucks
  25821. + eval std_shrext=\"$shrext_cmds\"
  25822. +
  25823. +
  25824. + # Only execute mode is allowed to have -dlopen flags.
  25825. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  25826. + func_error "unrecognized option \`-dlopen'"
  25827. + $ECHO "$help" 1>&2
  25828. + exit $EXIT_FAILURE
  25829. + fi
  25830. +
  25831. + # Change the help message to a mode-specific one.
  25832. + generic_help="$help"
  25833. + help="Try \`$progname --help --mode=$mode' for more information."
  25834. +}
  25835. +
  25836. +
  25837. +# func_lalib_p file
  25838. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  25839. +# This function is only a basic sanity check; it will hardly flush out
  25840. +# determined imposters.
  25841. +func_lalib_p ()
  25842. +{
  25843. + test -f "$1" &&
  25844. + $SED -e 4q "$1" 2>/dev/null \
  25845. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  25846. +}
  25847. +
  25848. +# func_lalib_unsafe_p file
  25849. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  25850. +# This function implements the same check as func_lalib_p without
  25851. +# resorting to external programs. To this end, it redirects stdin and
  25852. +# closes it afterwards, without saving the original file descriptor.
  25853. +# As a safety measure, use it only where a negative result would be
  25854. +# fatal anyway. Works if `file' does not exist.
  25855. +func_lalib_unsafe_p ()
  25856. +{
  25857. + lalib_p=no
  25858. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  25859. + for lalib_p_l in 1 2 3 4
  25860. + do
  25861. + read lalib_p_line
  25862. + case "$lalib_p_line" in
  25863. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  25864. + esac
  25865. + done
  25866. + exec 0<&5 5<&-
  25867. + fi
  25868. + test "$lalib_p" = yes
  25869. +}
  25870. +
  25871. +# func_ltwrapper_script_p file
  25872. +# True iff FILE is a libtool wrapper script
  25873. +# This function is only a basic sanity check; it will hardly flush out
  25874. +# determined imposters.
  25875. +func_ltwrapper_script_p ()
  25876. +{
  25877. + func_lalib_p "$1"
  25878. +}
  25879. +
  25880. +# func_ltwrapper_executable_p file
  25881. +# True iff FILE is a libtool wrapper executable
  25882. +# This function is only a basic sanity check; it will hardly flush out
  25883. +# determined imposters.
  25884. +func_ltwrapper_executable_p ()
  25885. +{
  25886. + func_ltwrapper_exec_suffix=
  25887. + case $1 in
  25888. + *.exe) ;;
  25889. + *) func_ltwrapper_exec_suffix=.exe ;;
  25890. + esac
  25891. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  25892. +}
  25893. +
  25894. +# func_ltwrapper_scriptname file
  25895. +# Assumes file is an ltwrapper_executable
  25896. +# uses $file to determine the appropriate filename for a
  25897. +# temporary ltwrapper_script.
  25898. +func_ltwrapper_scriptname ()
  25899. +{
  25900. + func_ltwrapper_scriptname_result=""
  25901. + if func_ltwrapper_executable_p "$1"; then
  25902. + func_dirname_and_basename "$1" "" "."
  25903. + func_stripname '' '.exe' "$func_basename_result"
  25904. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  25905. + fi
  25906. +}
  25907. +
  25908. +# func_ltwrapper_p file
  25909. +# True iff FILE is a libtool wrapper script or wrapper executable
  25910. +# This function is only a basic sanity check; it will hardly flush out
  25911. +# determined imposters.
  25912. +func_ltwrapper_p ()
  25913. +{
  25914. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  25915. +}
  25916. +
  25917. +
  25918. +# func_execute_cmds commands fail_cmd
  25919. +# Execute tilde-delimited COMMANDS.
  25920. +# If FAIL_CMD is given, eval that upon failure.
  25921. +# FAIL_CMD may read-access the current command in variable CMD!
  25922. +func_execute_cmds ()
  25923. +{
  25924. + $opt_debug
  25925. + save_ifs=$IFS; IFS='~'
  25926. + for cmd in $1; do
  25927. + IFS=$save_ifs
  25928. + eval cmd=\"$cmd\"
  25929. + func_show_eval "$cmd" "${2-:}"
  25930. + done
  25931. + IFS=$save_ifs
  25932. +}
  25933. +
  25934. +
  25935. +# func_source file
  25936. +# Source FILE, adding directory component if necessary.
  25937. +# Note that it is not necessary on cygwin/mingw to append a dot to
  25938. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  25939. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  25940. +# `FILE.' does not work on cygwin managed mounts.
  25941. +func_source ()
  25942. +{
  25943. + $opt_debug
  25944. + case $1 in
  25945. + */* | *\\*) . "$1" ;;
  25946. + *) . "./$1" ;;
  25947. + esac
  25948. +}
  25949. +
  25950. +
  25951. +# func_infer_tag arg
  25952. +# Infer tagged configuration to use if any are available and
  25953. +# if one wasn't chosen via the "--tag" command line option.
  25954. +# Only attempt this if the compiler in the base compile
  25955. +# command doesn't match the default compiler.
  25956. +# arg is usually of the form 'gcc ...'
  25957. +func_infer_tag ()
  25958. +{
  25959. + $opt_debug
  25960. + if test -n "$available_tags" && test -z "$tagname"; then
  25961. + CC_quoted=
  25962. + for arg in $CC; do
  25963. + func_quote_for_eval "$arg"
  25964. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  25965. + done
  25966. + case $@ in
  25967. + # Blanks in the command may have been stripped by the calling shell,
  25968. + # but not from the CC environment variable when configure was run.
  25969. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  25970. + # Blanks at the start of $base_compile will cause this to fail
  25971. + # if we don't check for them as well.
  25972. + *)
  25973. + for z in $available_tags; do
  25974. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  25975. + # Evaluate the configuration.
  25976. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  25977. + CC_quoted=
  25978. + for arg in $CC; do
  25979. + # Double-quote args containing other shell metacharacters.
  25980. + func_quote_for_eval "$arg"
  25981. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  25982. + done
  25983. + case "$@ " in
  25984. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  25985. + # The compiler in the base compile command matches
  25986. + # the one in the tagged configuration.
  25987. + # Assume this is the tagged configuration we want.
  25988. + tagname=$z
  25989. + break
  25990. + ;;
  25991. + esac
  25992. + fi
  25993. + done
  25994. + # If $tagname still isn't set, then no tagged configuration
  25995. + # was found and let the user know that the "--tag" command
  25996. + # line option must be used.
  25997. + if test -z "$tagname"; then
  25998. + func_echo "unable to infer tagged configuration"
  25999. + func_fatal_error "specify a tag with \`--tag'"
  26000. +# else
  26001. +# func_verbose "using $tagname tagged configuration"
  26002. + fi
  26003. + ;;
  26004. + esac
  26005. + fi
  26006. +}
  26007. +
  26008. +
  26009. +
  26010. +# func_write_libtool_object output_name pic_name nonpic_name
  26011. +# Create a libtool object file (analogous to a ".la" file),
  26012. +# but don't create it if we're doing a dry run.
  26013. +func_write_libtool_object ()
  26014. +{
  26015. + write_libobj=${1}
  26016. + if test "$build_libtool_libs" = yes; then
  26017. + write_lobj=\'${2}\'
  26018. + else
  26019. + write_lobj=none
  26020. + fi
  26021. +
  26022. + if test "$build_old_libs" = yes; then
  26023. + write_oldobj=\'${3}\'
  26024. + else
  26025. + write_oldobj=none
  26026. + fi
  26027. +
  26028. + $opt_dry_run || {
  26029. + cat >${write_libobj}T <<EOF
  26030. +# $write_libobj - a libtool object file
  26031. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  26032. +#
  26033. +# Please DO NOT delete this file!
  26034. +# It is necessary for linking the library.
  26035. +
  26036. +# Name of the PIC object.
  26037. +pic_object=$write_lobj
  26038. +
  26039. +# Name of the non-PIC object
  26040. +non_pic_object=$write_oldobj
  26041. +
  26042. +EOF
  26043. + $MV "${write_libobj}T" "${write_libobj}"
  26044. + }
  26045. +}
  26046. +
  26047. +# func_mode_compile arg...
  26048. +func_mode_compile ()
  26049. +{
  26050. + $opt_debug
  26051. + # Get the compilation command and the source file.
  26052. + base_compile=
  26053. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  26054. + suppress_opt=yes
  26055. + suppress_output=
  26056. + arg_mode=normal
  26057. + libobj=
  26058. + later=
  26059. + pie_flag=
  26060. +
  26061. + for arg
  26062. + do
  26063. + case $arg_mode in
  26064. + arg )
  26065. + # do not "continue". Instead, add this to base_compile
  26066. + lastarg="$arg"
  26067. + arg_mode=normal
  26068. + ;;
  26069. +
  26070. + target )
  26071. + libobj="$arg"
  26072. + arg_mode=normal
  26073. + continue
  26074. + ;;
  26075. +
  26076. + normal )
  26077. + # Accept any command-line options.
  26078. + case $arg in
  26079. + -o)
  26080. + test -n "$libobj" && \
  26081. + func_fatal_error "you cannot specify \`-o' more than once"
  26082. + arg_mode=target
  26083. + continue
  26084. + ;;
  26085. +
  26086. + -pie | -fpie | -fPIE)
  26087. + pie_flag="$pie_flag $arg"
  26088. + continue
  26089. + ;;
  26090. +
  26091. + -shared | -static | -prefer-pic | -prefer-non-pic)
  26092. + later="$later $arg"
  26093. + continue
  26094. + ;;
  26095. +
  26096. + -no-suppress)
  26097. + suppress_opt=no
  26098. + continue
  26099. + ;;
  26100. +
  26101. + -Xcompiler)
  26102. + arg_mode=arg # the next one goes into the "base_compile" arg list
  26103. + continue # The current "srcfile" will either be retained or
  26104. + ;; # replaced later. I would guess that would be a bug.
  26105. +
  26106. + -Wc,*)
  26107. + func_stripname '-Wc,' '' "$arg"
  26108. + args=$func_stripname_result
  26109. + lastarg=
  26110. + save_ifs="$IFS"; IFS=','
  26111. + for arg in $args; do
  26112. + IFS="$save_ifs"
  26113. + func_quote_for_eval "$arg"
  26114. + lastarg="$lastarg $func_quote_for_eval_result"
  26115. + done
  26116. + IFS="$save_ifs"
  26117. + func_stripname ' ' '' "$lastarg"
  26118. + lastarg=$func_stripname_result
  26119. +
  26120. + # Add the arguments to base_compile.
  26121. + base_compile="$base_compile $lastarg"
  26122. + continue
  26123. + ;;
  26124. +
  26125. + *)
  26126. + # Accept the current argument as the source file.
  26127. + # The previous "srcfile" becomes the current argument.
  26128. + #
  26129. + lastarg="$srcfile"
  26130. + srcfile="$arg"
  26131. + ;;
  26132. + esac # case $arg
  26133. + ;;
  26134. + esac # case $arg_mode
  26135. +
  26136. + # Aesthetically quote the previous argument.
  26137. + func_quote_for_eval "$lastarg"
  26138. + base_compile="$base_compile $func_quote_for_eval_result"
  26139. + done # for arg
  26140. +
  26141. + case $arg_mode in
  26142. + arg)
  26143. + func_fatal_error "you must specify an argument for -Xcompile"
  26144. + ;;
  26145. + target)
  26146. + func_fatal_error "you must specify a target with \`-o'"
  26147. + ;;
  26148. + *)
  26149. + # Get the name of the library object.
  26150. + test -z "$libobj" && {
  26151. + func_basename "$srcfile"
  26152. + libobj="$func_basename_result"
  26153. + }
  26154. + ;;
  26155. + esac
  26156. +
  26157. + # Recognize several different file suffixes.
  26158. + # If the user specifies -o file.o, it is replaced with file.lo
  26159. + case $libobj in
  26160. + *.[cCFSifmso] | \
  26161. + *.ada | *.adb | *.ads | *.asm | \
  26162. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  26163. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  26164. + func_xform "$libobj"
  26165. + libobj=$func_xform_result
  26166. + ;;
  26167. + esac
  26168. +
  26169. + case $libobj in
  26170. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  26171. + *)
  26172. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  26173. + ;;
  26174. + esac
  26175. +
  26176. + func_infer_tag $base_compile
  26177. +
  26178. + for arg in $later; do
  26179. + case $arg in
  26180. + -shared)
  26181. + test "$build_libtool_libs" != yes && \
  26182. + func_fatal_configuration "can not build a shared library"
  26183. + build_old_libs=no
  26184. + continue
  26185. + ;;
  26186. +
  26187. + -static)
  26188. + build_libtool_libs=no
  26189. + build_old_libs=yes
  26190. + continue
  26191. + ;;
  26192. +
  26193. + -prefer-pic)
  26194. + pic_mode=yes
  26195. + continue
  26196. + ;;
  26197. +
  26198. + -prefer-non-pic)
  26199. + pic_mode=no
  26200. + continue
  26201. + ;;
  26202. + esac
  26203. + done
  26204. +
  26205. + func_quote_for_eval "$libobj"
  26206. + test "X$libobj" != "X$func_quote_for_eval_result" \
  26207. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  26208. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  26209. + func_dirname_and_basename "$obj" "/" ""
  26210. + objname="$func_basename_result"
  26211. + xdir="$func_dirname_result"
  26212. + lobj=${xdir}$objdir/$objname
  26213. +
  26214. + test -z "$base_compile" && \
  26215. + func_fatal_help "you must specify a compilation command"
  26216. +
  26217. + # Delete any leftover library objects.
  26218. + if test "$build_old_libs" = yes; then
  26219. + removelist="$obj $lobj $libobj ${libobj}T"
  26220. + else
  26221. + removelist="$lobj $libobj ${libobj}T"
  26222. + fi
  26223. +
  26224. + # On Cygwin there's no "real" PIC flag so we must build both object types
  26225. + case $host_os in
  26226. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  26227. + pic_mode=default
  26228. + ;;
  26229. + esac
  26230. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  26231. + # non-PIC code in shared libraries is not supported
  26232. + pic_mode=default
  26233. + fi
  26234. +
  26235. + # Calculate the filename of the output object if compiler does
  26236. + # not support -o with -c
  26237. + if test "$compiler_c_o" = no; then
  26238. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  26239. + lockfile="$output_obj.lock"
  26240. + else
  26241. + output_obj=
  26242. + need_locks=no
  26243. + lockfile=
  26244. + fi
  26245. +
  26246. + # Lock this critical section if it is needed
  26247. + # We use this script file to make the link, it avoids creating a new file
  26248. + if test "$need_locks" = yes; then
  26249. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  26250. + func_echo "Waiting for $lockfile to be removed"
  26251. + sleep 2
  26252. + done
  26253. + elif test "$need_locks" = warn; then
  26254. + if test -f "$lockfile"; then
  26255. + $ECHO "\
  26256. +*** ERROR, $lockfile exists and contains:
  26257. +`cat $lockfile 2>/dev/null`
  26258. +
  26259. +This indicates that another process is trying to use the same
  26260. +temporary object file, and libtool could not work around it because
  26261. +your compiler does not support \`-c' and \`-o' together. If you
  26262. +repeat this compilation, it may succeed, by chance, but you had better
  26263. +avoid parallel builds (make -j) in this platform, or get a better
  26264. +compiler."
  26265. +
  26266. + $opt_dry_run || $RM $removelist
  26267. + exit $EXIT_FAILURE
  26268. + fi
  26269. + removelist="$removelist $output_obj"
  26270. + $ECHO "$srcfile" > "$lockfile"
  26271. + fi
  26272. +
  26273. + $opt_dry_run || $RM $removelist
  26274. + removelist="$removelist $lockfile"
  26275. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  26276. +
  26277. + if test -n "$fix_srcfile_path"; then
  26278. + eval srcfile=\"$fix_srcfile_path\"
  26279. + fi
  26280. + func_quote_for_eval "$srcfile"
  26281. + qsrcfile=$func_quote_for_eval_result
  26282. +
  26283. + # Only build a PIC object if we are building libtool libraries.
  26284. + if test "$build_libtool_libs" = yes; then
  26285. + # Without this assignment, base_compile gets emptied.
  26286. + fbsd_hideous_sh_bug=$base_compile
  26287. +
  26288. + if test "$pic_mode" != no; then
  26289. + command="$base_compile $qsrcfile $pic_flag"
  26290. + else
  26291. + # Don't build PIC code
  26292. + command="$base_compile $qsrcfile"
  26293. + fi
  26294. +
  26295. + func_mkdir_p "$xdir$objdir"
  26296. +
  26297. + if test -z "$output_obj"; then
  26298. + # Place PIC objects in $objdir
  26299. + command="$command -o $lobj"
  26300. + fi
  26301. +
  26302. + func_show_eval_locale "$command" \
  26303. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  26304. +
  26305. + if test "$need_locks" = warn &&
  26306. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  26307. + $ECHO "\
  26308. +*** ERROR, $lockfile contains:
  26309. +`cat $lockfile 2>/dev/null`
  26310. +
  26311. +but it should contain:
  26312. +$srcfile
  26313. +
  26314. +This indicates that another process is trying to use the same
  26315. +temporary object file, and libtool could not work around it because
  26316. +your compiler does not support \`-c' and \`-o' together. If you
  26317. +repeat this compilation, it may succeed, by chance, but you had better
  26318. +avoid parallel builds (make -j) in this platform, or get a better
  26319. +compiler."
  26320. +
  26321. + $opt_dry_run || $RM $removelist
  26322. + exit $EXIT_FAILURE
  26323. + fi
  26324. +
  26325. + # Just move the object if needed, then go on to compile the next one
  26326. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  26327. + func_show_eval '$MV "$output_obj" "$lobj"' \
  26328. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  26329. + fi
  26330. +
  26331. + # Allow error messages only from the first compilation.
  26332. + if test "$suppress_opt" = yes; then
  26333. + suppress_output=' >/dev/null 2>&1'
  26334. + fi
  26335. + fi
  26336. +
  26337. + # Only build a position-dependent object if we build old libraries.
  26338. + if test "$build_old_libs" = yes; then
  26339. + if test "$pic_mode" != yes; then
  26340. + # Don't build PIC code
  26341. + command="$base_compile $qsrcfile$pie_flag"
  26342. + else
  26343. + command="$base_compile $qsrcfile $pic_flag"
  26344. + fi
  26345. + if test "$compiler_c_o" = yes; then
  26346. + command="$command -o $obj"
  26347. + fi
  26348. +
  26349. + # Suppress compiler output if we already did a PIC compilation.
  26350. + command="$command$suppress_output"
  26351. + func_show_eval_locale "$command" \
  26352. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  26353. +
  26354. + if test "$need_locks" = warn &&
  26355. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  26356. + $ECHO "\
  26357. +*** ERROR, $lockfile contains:
  26358. +`cat $lockfile 2>/dev/null`
  26359. +
  26360. +but it should contain:
  26361. +$srcfile
  26362. +
  26363. +This indicates that another process is trying to use the same
  26364. +temporary object file, and libtool could not work around it because
  26365. +your compiler does not support \`-c' and \`-o' together. If you
  26366. +repeat this compilation, it may succeed, by chance, but you had better
  26367. +avoid parallel builds (make -j) in this platform, or get a better
  26368. +compiler."
  26369. +
  26370. + $opt_dry_run || $RM $removelist
  26371. + exit $EXIT_FAILURE
  26372. + fi
  26373. +
  26374. + # Just move the object if needed
  26375. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  26376. + func_show_eval '$MV "$output_obj" "$obj"' \
  26377. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  26378. + fi
  26379. + fi
  26380. +
  26381. + $opt_dry_run || {
  26382. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  26383. +
  26384. + # Unlock the critical section if it was locked
  26385. + if test "$need_locks" != no; then
  26386. + removelist=$lockfile
  26387. + $RM "$lockfile"
  26388. + fi
  26389. + }
  26390. +
  26391. + exit $EXIT_SUCCESS
  26392. +}
  26393. +
  26394. +$opt_help || {
  26395. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  26396. +}
  26397. +
  26398. +func_mode_help ()
  26399. +{
  26400. + # We need to display help for each of the modes.
  26401. + case $mode in
  26402. + "")
  26403. + # Generic help is extracted from the usage comments
  26404. + # at the start of this file.
  26405. + func_help
  26406. + ;;
  26407. +
  26408. + clean)
  26409. + $ECHO \
  26410. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  26411. +
  26412. +Remove files from the build directory.
  26413. +
  26414. +RM is the name of the program to use to delete files associated with each FILE
  26415. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  26416. +to RM.
  26417. +
  26418. +If FILE is a libtool library, object or program, all the files associated
  26419. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  26420. + ;;
  26421. +
  26422. + compile)
  26423. + $ECHO \
  26424. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  26425. +
  26426. +Compile a source file into a libtool library object.
  26427. +
  26428. +This mode accepts the following additional options:
  26429. +
  26430. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  26431. + -no-suppress do not suppress compiler output for multiple passes
  26432. + -prefer-pic try to building PIC objects only
  26433. + -prefer-non-pic try to building non-PIC objects only
  26434. + -shared do not build a \`.o' file suitable for static linking
  26435. + -static only build a \`.o' file suitable for static linking
  26436. +
  26437. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  26438. +from the given SOURCEFILE.
  26439. +
  26440. +The output file name is determined by removing the directory component from
  26441. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  26442. +library object suffix, \`.lo'."
  26443. + ;;
  26444. +
  26445. + execute)
  26446. + $ECHO \
  26447. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  26448. +
  26449. +Automatically set library path, then run a program.
  26450. +
  26451. +This mode accepts the following additional options:
  26452. +
  26453. + -dlopen FILE add the directory containing FILE to the library path
  26454. +
  26455. +This mode sets the library path environment variable according to \`-dlopen'
  26456. +flags.
  26457. +
  26458. +If any of the ARGS are libtool executable wrappers, then they are translated
  26459. +into their corresponding uninstalled binary, and any of their required library
  26460. +directories are added to the library path.
  26461. +
  26462. +Then, COMMAND is executed, with ARGS as arguments."
  26463. + ;;
  26464. +
  26465. + finish)
  26466. + $ECHO \
  26467. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  26468. +
  26469. +Complete the installation of libtool libraries.
  26470. +
  26471. +Each LIBDIR is a directory that contains libtool libraries.
  26472. +
  26473. +The commands that this mode executes may require superuser privileges. Use
  26474. +the \`--dry-run' option if you just want to see what would be executed."
  26475. + ;;
  26476. +
  26477. + install)
  26478. + $ECHO \
  26479. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  26480. +
  26481. +Install executables or libraries.
  26482. +
  26483. +INSTALL-COMMAND is the installation command. The first component should be
  26484. +either the \`install' or \`cp' program.
  26485. +
  26486. +The following components of INSTALL-COMMAND are treated specially:
  26487. +
  26488. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  26489. +
  26490. +The rest of the components are interpreted as arguments to that command (only
  26491. +BSD-compatible install options are recognized)."
  26492. + ;;
  26493. +
  26494. + link)
  26495. + $ECHO \
  26496. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  26497. +
  26498. +Link object files or libraries together to form another library, or to
  26499. +create an executable program.
  26500. +
  26501. +LINK-COMMAND is a command using the C compiler that you would use to create
  26502. +a program from several object files.
  26503. +
  26504. +The following components of LINK-COMMAND are treated specially:
  26505. +
  26506. + -all-static do not do any dynamic linking at all
  26507. + -avoid-version do not add a version suffix if possible
  26508. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  26509. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  26510. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  26511. + -export-symbols SYMFILE
  26512. + try to export only the symbols listed in SYMFILE
  26513. + -export-symbols-regex REGEX
  26514. + try to export only the symbols matching REGEX
  26515. + -LLIBDIR search LIBDIR for required installed libraries
  26516. + -lNAME OUTPUT-FILE requires the installed library libNAME
  26517. + -module build a library that can dlopened
  26518. + -no-fast-install disable the fast-install mode
  26519. + -no-install link a not-installable executable
  26520. + -no-undefined declare that a library does not refer to external symbols
  26521. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  26522. + -objectlist FILE Use a list of object files found in FILE to specify objects
  26523. + -precious-files-regex REGEX
  26524. + don't remove output files matching REGEX
  26525. + -release RELEASE specify package release information
  26526. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  26527. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  26528. + -shared only do dynamic linking of libtool libraries
  26529. + -shrext SUFFIX override the standard shared library file extension
  26530. + -static do not do any dynamic linking of uninstalled libtool libraries
  26531. + -static-libtool-libs
  26532. + do not do any dynamic linking of libtool libraries
  26533. + -version-info CURRENT[:REVISION[:AGE]]
  26534. + specify library version info [each variable defaults to 0]
  26535. + -weak LIBNAME declare that the target provides the LIBNAME interface
  26536. +
  26537. +All other options (arguments beginning with \`-') are ignored.
  26538. +
  26539. +Every other argument is treated as a filename. Files ending in \`.la' are
  26540. +treated as uninstalled libtool libraries, other files are standard or library
  26541. +object files.
  26542. +
  26543. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  26544. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  26545. +required, except when creating a convenience library.
  26546. +
  26547. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  26548. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  26549. +
  26550. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  26551. +is created, otherwise an executable program is created."
  26552. + ;;
  26553. +
  26554. + uninstall)
  26555. + $ECHO \
  26556. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  26557. +
  26558. +Remove libraries from an installation directory.
  26559. +
  26560. +RM is the name of the program to use to delete files associated with each FILE
  26561. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  26562. +to RM.
  26563. +
  26564. +If FILE is a libtool library, all the files associated with it are deleted.
  26565. +Otherwise, only FILE itself is deleted using RM."
  26566. + ;;
  26567. +
  26568. + *)
  26569. + func_fatal_help "invalid operation mode \`$mode'"
  26570. + ;;
  26571. + esac
  26572. +
  26573. + $ECHO
  26574. + $ECHO "Try \`$progname --help' for more information about other modes."
  26575. +
  26576. + exit $?
  26577. +}
  26578. +
  26579. + # Now that we've collected a possible --mode arg, show help if necessary
  26580. + $opt_help && func_mode_help
  26581. +
  26582. +
  26583. +# func_mode_execute arg...
  26584. +func_mode_execute ()
  26585. +{
  26586. + $opt_debug
  26587. + # The first argument is the command name.
  26588. + cmd="$nonopt"
  26589. + test -z "$cmd" && \
  26590. + func_fatal_help "you must specify a COMMAND"
  26591. +
  26592. + # Handle -dlopen flags immediately.
  26593. + for file in $execute_dlfiles; do
  26594. + test -f "$file" \
  26595. + || func_fatal_help "\`$file' is not a file"
  26596. +
  26597. + dir=
  26598. + case $file in
  26599. + *.la)
  26600. + # Check to see that this really is a libtool archive.
  26601. + func_lalib_unsafe_p "$file" \
  26602. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  26603. +
  26604. + # Read the libtool library.
  26605. + dlname=
  26606. + library_names=
  26607. + func_source "$file"
  26608. +
  26609. + # Skip this library if it cannot be dlopened.
  26610. + if test -z "$dlname"; then
  26611. + # Warn if it was a shared library.
  26612. + test -n "$library_names" && \
  26613. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  26614. + continue
  26615. + fi
  26616. +
  26617. + func_dirname "$file" "" "."
  26618. + dir="$func_dirname_result"
  26619. +
  26620. + if test -f "$dir/$objdir/$dlname"; then
  26621. + dir="$dir/$objdir"
  26622. + else
  26623. + if test ! -f "$dir/$dlname"; then
  26624. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  26625. + fi
  26626. + fi
  26627. + ;;
  26628. +
  26629. + *.lo)
  26630. + # Just add the directory containing the .lo file.
  26631. + func_dirname "$file" "" "."
  26632. + dir="$func_dirname_result"
  26633. + ;;
  26634. +
  26635. + *)
  26636. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  26637. + continue
  26638. + ;;
  26639. + esac
  26640. +
  26641. + # Get the absolute pathname.
  26642. + absdir=`cd "$dir" && pwd`
  26643. + test -n "$absdir" && dir="$absdir"
  26644. +
  26645. + # Now add the directory to shlibpath_var.
  26646. + if eval "test -z \"\$$shlibpath_var\""; then
  26647. + eval "$shlibpath_var=\"\$dir\""
  26648. + else
  26649. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  26650. + fi
  26651. + done
  26652. +
  26653. + # This variable tells wrapper scripts just to set shlibpath_var
  26654. + # rather than running their programs.
  26655. + libtool_execute_magic="$magic"
  26656. +
  26657. + # Check if any of the arguments is a wrapper script.
  26658. + args=
  26659. + for file
  26660. + do
  26661. + case $file in
  26662. + -*) ;;
  26663. + *)
  26664. + # Do a test to see if this is really a libtool program.
  26665. + if func_ltwrapper_script_p "$file"; then
  26666. + func_source "$file"
  26667. + # Transform arg to wrapped name.
  26668. + file="$progdir/$program"
  26669. + elif func_ltwrapper_executable_p "$file"; then
  26670. + func_ltwrapper_scriptname "$file"
  26671. + func_source "$func_ltwrapper_scriptname_result"
  26672. + # Transform arg to wrapped name.
  26673. + file="$progdir/$program"
  26674. + fi
  26675. + ;;
  26676. + esac
  26677. + # Quote arguments (to preserve shell metacharacters).
  26678. + func_quote_for_eval "$file"
  26679. + args="$args $func_quote_for_eval_result"
  26680. + done
  26681. +
  26682. + if test "X$opt_dry_run" = Xfalse; then
  26683. + if test -n "$shlibpath_var"; then
  26684. + # Export the shlibpath_var.
  26685. + eval "export $shlibpath_var"
  26686. + fi
  26687. +
  26688. + # Restore saved environment variables
  26689. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  26690. + do
  26691. + eval "if test \"\${save_$lt_var+set}\" = set; then
  26692. + $lt_var=\$save_$lt_var; export $lt_var
  26693. + else
  26694. + $lt_unset $lt_var
  26695. + fi"
  26696. + done
  26697. +
  26698. + # Now prepare to actually exec the command.
  26699. + exec_cmd="\$cmd$args"
  26700. + else
  26701. + # Display what would be done.
  26702. + if test -n "$shlibpath_var"; then
  26703. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  26704. + $ECHO "export $shlibpath_var"
  26705. + fi
  26706. + $ECHO "$cmd$args"
  26707. + exit $EXIT_SUCCESS
  26708. + fi
  26709. +}
  26710. +
  26711. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  26712. +
  26713. +
  26714. +# func_mode_finish arg...
  26715. +func_mode_finish ()
  26716. +{
  26717. + $opt_debug
  26718. + libdirs="$nonopt"
  26719. + admincmds=
  26720. +
  26721. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  26722. + for dir
  26723. + do
  26724. + libdirs="$libdirs $dir"
  26725. + done
  26726. +
  26727. + for libdir in $libdirs; do
  26728. + if test -n "$finish_cmds"; then
  26729. + # Do each command in the finish commands.
  26730. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  26731. +'"$cmd"'"'
  26732. + fi
  26733. + if test -n "$finish_eval"; then
  26734. + # Do the single finish_eval.
  26735. + eval cmds=\"$finish_eval\"
  26736. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  26737. + $cmds"
  26738. + fi
  26739. + done
  26740. + fi
  26741. +
  26742. + # Exit here if they wanted silent mode.
  26743. + $opt_silent && exit $EXIT_SUCCESS
  26744. +
  26745. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  26746. + $ECHO "Libraries have been installed in:"
  26747. + for libdir in $libdirs; do
  26748. + $ECHO " $libdir"
  26749. + done
  26750. + $ECHO
  26751. + $ECHO "If you ever happen to want to link against installed libraries"
  26752. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  26753. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  26754. + $ECHO "flag during linking and do at least one of the following:"
  26755. + if test -n "$shlibpath_var"; then
  26756. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  26757. + $ECHO " during execution"
  26758. + fi
  26759. + if test -n "$runpath_var"; then
  26760. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  26761. + $ECHO " during linking"
  26762. + fi
  26763. + if test -n "$hardcode_libdir_flag_spec"; then
  26764. + libdir=LIBDIR
  26765. + eval flag=\"$hardcode_libdir_flag_spec\"
  26766. +
  26767. + $ECHO " - use the \`$flag' linker flag"
  26768. + fi
  26769. + if test -n "$admincmds"; then
  26770. + $ECHO " - have your system administrator run these commands:$admincmds"
  26771. + fi
  26772. + if test -f /etc/ld.so.conf; then
  26773. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  26774. + fi
  26775. + $ECHO
  26776. +
  26777. + $ECHO "See any operating system documentation about shared libraries for"
  26778. + case $host in
  26779. + solaris2.[6789]|solaris2.1[0-9])
  26780. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  26781. + $ECHO "pages."
  26782. + ;;
  26783. + *)
  26784. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  26785. + ;;
  26786. + esac
  26787. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  26788. + exit $EXIT_SUCCESS
  26789. +}
  26790. +
  26791. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  26792. +
  26793. +
  26794. +# func_mode_install arg...
  26795. +func_mode_install ()
  26796. +{
  26797. + $opt_debug
  26798. + # There may be an optional sh(1) argument at the beginning of
  26799. + # install_prog (especially on Windows NT).
  26800. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  26801. + # Allow the use of GNU shtool's install command.
  26802. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  26803. + # Aesthetically quote it.
  26804. + func_quote_for_eval "$nonopt"
  26805. + install_prog="$func_quote_for_eval_result "
  26806. + arg=$1
  26807. + shift
  26808. + else
  26809. + install_prog=
  26810. + arg=$nonopt
  26811. + fi
  26812. +
  26813. + # The real first argument should be the name of the installation program.
  26814. + # Aesthetically quote it.
  26815. + func_quote_for_eval "$arg"
  26816. + install_prog="$install_prog$func_quote_for_eval_result"
  26817. +
  26818. + # We need to accept at least all the BSD install flags.
  26819. + dest=
  26820. + files=
  26821. + opts=
  26822. + prev=
  26823. + install_type=
  26824. + isdir=no
  26825. + stripme=
  26826. + for arg
  26827. + do
  26828. + if test -n "$dest"; then
  26829. + files="$files $dest"
  26830. + dest=$arg
  26831. + continue
  26832. + fi
  26833. +
  26834. + case $arg in
  26835. + -d) isdir=yes ;;
  26836. + -f)
  26837. + case " $install_prog " in
  26838. + *[\\\ /]cp\ *) ;;
  26839. + *) prev=$arg ;;
  26840. + esac
  26841. + ;;
  26842. + -g | -m | -o)
  26843. + prev=$arg
  26844. + ;;
  26845. + -s)
  26846. + stripme=" -s"
  26847. + continue
  26848. + ;;
  26849. + -*)
  26850. + ;;
  26851. + *)
  26852. + # If the previous option needed an argument, then skip it.
  26853. + if test -n "$prev"; then
  26854. + prev=
  26855. + else
  26856. + dest=$arg
  26857. + continue
  26858. + fi
  26859. + ;;
  26860. + esac
  26861. +
  26862. + # Aesthetically quote the argument.
  26863. + func_quote_for_eval "$arg"
  26864. + install_prog="$install_prog $func_quote_for_eval_result"
  26865. + done
  26866. +
  26867. + test -z "$install_prog" && \
  26868. + func_fatal_help "you must specify an install program"
  26869. +
  26870. + test -n "$prev" && \
  26871. + func_fatal_help "the \`$prev' option requires an argument"
  26872. +
  26873. + if test -z "$files"; then
  26874. + if test -z "$dest"; then
  26875. + func_fatal_help "no file or destination specified"
  26876. + else
  26877. + func_fatal_help "you must specify a destination"
  26878. + fi
  26879. + fi
  26880. +
  26881. + # Strip any trailing slash from the destination.
  26882. + func_stripname '' '/' "$dest"
  26883. + dest=$func_stripname_result
  26884. +
  26885. + # Check to see that the destination is a directory.
  26886. + test -d "$dest" && isdir=yes
  26887. + if test "$isdir" = yes; then
  26888. + destdir="$dest"
  26889. + destname=
  26890. + else
  26891. + func_dirname_and_basename "$dest" "" "."
  26892. + destdir="$func_dirname_result"
  26893. + destname="$func_basename_result"
  26894. +
  26895. + # Not a directory, so check to see that there is only one file specified.
  26896. + set dummy $files; shift
  26897. + test "$#" -gt 1 && \
  26898. + func_fatal_help "\`$dest' is not a directory"
  26899. + fi
  26900. + case $destdir in
  26901. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  26902. + *)
  26903. + for file in $files; do
  26904. + case $file in
  26905. + *.lo) ;;
  26906. + *)
  26907. + func_fatal_help "\`$destdir' must be an absolute directory name"
  26908. + ;;
  26909. + esac
  26910. + done
  26911. + ;;
  26912. + esac
  26913. +
  26914. + # This variable tells wrapper scripts just to set variables rather
  26915. + # than running their programs.
  26916. + libtool_install_magic="$magic"
  26917. +
  26918. + staticlibs=
  26919. + future_libdirs=
  26920. + current_libdirs=
  26921. + for file in $files; do
  26922. +
  26923. + # Do each installation.
  26924. + case $file in
  26925. + *.$libext)
  26926. + # Do the static libraries later.
  26927. + staticlibs="$staticlibs $file"
  26928. + ;;
  26929. +
  26930. + *.la)
  26931. + # Check to see that this really is a libtool archive.
  26932. + func_lalib_unsafe_p "$file" \
  26933. + || func_fatal_help "\`$file' is not a valid libtool archive"
  26934. +
  26935. + library_names=
  26936. + old_library=
  26937. + relink_command=
  26938. + func_source "$file"
  26939. +
  26940. + # Add the libdir to current_libdirs if it is the destination.
  26941. + if test "X$destdir" = "X$libdir"; then
  26942. + case "$current_libdirs " in
  26943. + *" $libdir "*) ;;
  26944. + *) current_libdirs="$current_libdirs $libdir" ;;
  26945. + esac
  26946. + else
  26947. + # Note the libdir as a future libdir.
  26948. + case "$future_libdirs " in
  26949. + *" $libdir "*) ;;
  26950. + *) future_libdirs="$future_libdirs $libdir" ;;
  26951. + esac
  26952. + fi
  26953. +
  26954. + func_dirname "$file" "/" ""
  26955. + dir="$func_dirname_result"
  26956. + dir="$dir$objdir"
  26957. +
  26958. + if test -n "$relink_command"; then
  26959. + # Determine the prefix the user has applied to our future dir.
  26960. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  26961. +
  26962. + # Don't allow the user to place us outside of our expected
  26963. + # location b/c this prevents finding dependent libraries that
  26964. + # are installed to the same prefix.
  26965. + # At present, this check doesn't affect windows .dll's that
  26966. + # are installed into $libdir/../bin (currently, that works fine)
  26967. + # but it's something to keep an eye on.
  26968. + test "$inst_prefix_dir" = "$destdir" && \
  26969. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  26970. +
  26971. + if test -n "$inst_prefix_dir"; then
  26972. + # Stick the inst_prefix_dir data into the link command.
  26973. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  26974. + else
  26975. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  26976. + fi
  26977. +
  26978. + func_warning "relinking \`$file'"
  26979. + func_show_eval "$relink_command" \
  26980. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  26981. + fi
  26982. +
  26983. + # See the names of the shared library.
  26984. + set dummy $library_names; shift
  26985. + if test -n "$1"; then
  26986. + realname="$1"
  26987. + shift
  26988. +
  26989. + srcname="$realname"
  26990. + test -n "$relink_command" && srcname="$realname"T
  26991. +
  26992. + # Install the shared library and build the symlinks.
  26993. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  26994. + 'exit $?'
  26995. + tstripme="$stripme"
  26996. + case $host_os in
  26997. + cygwin* | mingw* | pw32* | cegcc*)
  26998. + case $realname in
  26999. + *.dll.a)
  27000. + tstripme=""
  27001. + ;;
  27002. + esac
  27003. + ;;
  27004. + esac
  27005. + if test -n "$tstripme" && test -n "$striplib"; then
  27006. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  27007. + fi
  27008. +
  27009. + if test "$#" -gt 0; then
  27010. + # Delete the old symlinks, and create new ones.
  27011. + # Try `ln -sf' first, because the `ln' binary might depend on
  27012. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  27013. + # so we also need to try rm && ln -s.
  27014. + for linkname
  27015. + do
  27016. + test "$linkname" != "$realname" \
  27017. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  27018. + done
  27019. + fi
  27020. +
  27021. + # Do each command in the postinstall commands.
  27022. + lib="$destdir/$realname"
  27023. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  27024. + fi
  27025. +
  27026. + # Install the pseudo-library for information purposes.
  27027. + func_basename "$file"
  27028. + name="$func_basename_result"
  27029. + instname="$dir/$name"i
  27030. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  27031. +
  27032. + # Maybe install the static library, too.
  27033. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  27034. + ;;
  27035. +
  27036. + *.lo)
  27037. + # Install (i.e. copy) a libtool object.
  27038. +
  27039. + # Figure out destination file name, if it wasn't already specified.
  27040. + if test -n "$destname"; then
  27041. + destfile="$destdir/$destname"
  27042. + else
  27043. + func_basename "$file"
  27044. + destfile="$func_basename_result"
  27045. + destfile="$destdir/$destfile"
  27046. + fi
  27047. +
  27048. + # Deduce the name of the destination old-style object file.
  27049. + case $destfile in
  27050. + *.lo)
  27051. + func_lo2o "$destfile"
  27052. + staticdest=$func_lo2o_result
  27053. + ;;
  27054. + *.$objext)
  27055. + staticdest="$destfile"
  27056. + destfile=
  27057. + ;;
  27058. + *)
  27059. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  27060. + ;;
  27061. + esac
  27062. +
  27063. + # Install the libtool object if requested.
  27064. + test -n "$destfile" && \
  27065. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  27066. +
  27067. + # Install the old object if enabled.
  27068. + if test "$build_old_libs" = yes; then
  27069. + # Deduce the name of the old-style object file.
  27070. + func_lo2o "$file"
  27071. + staticobj=$func_lo2o_result
  27072. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  27073. + fi
  27074. + exit $EXIT_SUCCESS
  27075. + ;;
  27076. +
  27077. + *)
  27078. + # Figure out destination file name, if it wasn't already specified.
  27079. + if test -n "$destname"; then
  27080. + destfile="$destdir/$destname"
  27081. + else
  27082. + func_basename "$file"
  27083. + destfile="$func_basename_result"
  27084. + destfile="$destdir/$destfile"
  27085. + fi
  27086. +
  27087. + # If the file is missing, and there is a .exe on the end, strip it
  27088. + # because it is most likely a libtool script we actually want to
  27089. + # install
  27090. + stripped_ext=""
  27091. + case $file in
  27092. + *.exe)
  27093. + if test ! -f "$file"; then
  27094. + func_stripname '' '.exe' "$file"
  27095. + file=$func_stripname_result
  27096. + stripped_ext=".exe"
  27097. + fi
  27098. + ;;
  27099. + esac
  27100. +
  27101. + # Do a test to see if this is really a libtool program.
  27102. + case $host in
  27103. + *cygwin* | *mingw*)
  27104. + if func_ltwrapper_executable_p "$file"; then
  27105. + func_ltwrapper_scriptname "$file"
  27106. + wrapper=$func_ltwrapper_scriptname_result
  27107. + else
  27108. + func_stripname '' '.exe' "$file"
  27109. + wrapper=$func_stripname_result
  27110. + fi
  27111. + ;;
  27112. + *)
  27113. + wrapper=$file
  27114. + ;;
  27115. + esac
  27116. + if func_ltwrapper_script_p "$wrapper"; then
  27117. + notinst_deplibs=
  27118. + relink_command=
  27119. +
  27120. + func_source "$wrapper"
  27121. +
  27122. + # Check the variables that should have been set.
  27123. + test -z "$generated_by_libtool_version" && \
  27124. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  27125. +
  27126. + finalize=yes
  27127. + for lib in $notinst_deplibs; do
  27128. + # Check to see that each library is installed.
  27129. + libdir=
  27130. + if test -f "$lib"; then
  27131. + func_source "$lib"
  27132. + fi
  27133. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  27134. + if test -n "$libdir" && test ! -f "$libfile"; then
  27135. + func_warning "\`$lib' has not been installed in \`$libdir'"
  27136. + finalize=no
  27137. + fi
  27138. + done
  27139. +
  27140. + relink_command=
  27141. + func_source "$wrapper"
  27142. +
  27143. + outputname=
  27144. + if test "$fast_install" = no && test -n "$relink_command"; then
  27145. + $opt_dry_run || {
  27146. + if test "$finalize" = yes; then
  27147. + tmpdir=`func_mktempdir`
  27148. + func_basename "$file$stripped_ext"
  27149. + file="$func_basename_result"
  27150. + outputname="$tmpdir/$file"
  27151. + # Replace the output file specification.
  27152. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  27153. +
  27154. + $opt_silent || {
  27155. + func_quote_for_expand "$relink_command"
  27156. + eval "func_echo $func_quote_for_expand_result"
  27157. + }
  27158. + if eval "$relink_command"; then :
  27159. + else
  27160. + func_error "error: relink \`$file' with the above command before installing it"
  27161. + $opt_dry_run || ${RM}r "$tmpdir"
  27162. + continue
  27163. + fi
  27164. + file="$outputname"
  27165. + else
  27166. + func_warning "cannot relink \`$file'"
  27167. + fi
  27168. + }
  27169. + else
  27170. + # Install the binary that we compiled earlier.
  27171. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  27172. + fi
  27173. + fi
  27174. +
  27175. + # remove .exe since cygwin /usr/bin/install will append another
  27176. + # one anyway
  27177. + case $install_prog,$host in
  27178. + */usr/bin/install*,*cygwin*)
  27179. + case $file:$destfile in
  27180. + *.exe:*.exe)
  27181. + # this is ok
  27182. + ;;
  27183. + *.exe:*)
  27184. + destfile=$destfile.exe
  27185. + ;;
  27186. + *:*.exe)
  27187. + func_stripname '' '.exe' "$destfile"
  27188. + destfile=$func_stripname_result
  27189. + ;;
  27190. + esac
  27191. + ;;
  27192. + esac
  27193. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  27194. + $opt_dry_run || if test -n "$outputname"; then
  27195. + ${RM}r "$tmpdir"
  27196. + fi
  27197. + ;;
  27198. + esac
  27199. + done
  27200. +
  27201. + for file in $staticlibs; do
  27202. + func_basename "$file"
  27203. + name="$func_basename_result"
  27204. +
  27205. + # Set up the ranlib parameters.
  27206. + oldlib="$destdir/$name"
  27207. +
  27208. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  27209. +
  27210. + if test -n "$stripme" && test -n "$old_striplib"; then
  27211. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  27212. + fi
  27213. +
  27214. + # Do each command in the postinstall commands.
  27215. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  27216. + done
  27217. +
  27218. + test -n "$future_libdirs" && \
  27219. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  27220. +
  27221. + if test -n "$current_libdirs"; then
  27222. + # Maybe just do a dry run.
  27223. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  27224. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  27225. + else
  27226. + exit $EXIT_SUCCESS
  27227. + fi
  27228. +}
  27229. +
  27230. +test "$mode" = install && func_mode_install ${1+"$@"}
  27231. +
  27232. +
  27233. +# func_generate_dlsyms outputname originator pic_p
  27234. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  27235. +# a dlpreopen symbol table.
  27236. +func_generate_dlsyms ()
  27237. +{
  27238. + $opt_debug
  27239. + my_outputname="$1"
  27240. + my_originator="$2"
  27241. + my_pic_p="${3-no}"
  27242. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  27243. + my_dlsyms=
  27244. +
  27245. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  27246. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  27247. + my_dlsyms="${my_outputname}S.c"
  27248. + else
  27249. + func_error "not configured to extract global symbols from dlpreopened files"
  27250. + fi
  27251. + fi
  27252. +
  27253. + if test -n "$my_dlsyms"; then
  27254. + case $my_dlsyms in
  27255. + "") ;;
  27256. + *.c)
  27257. + # Discover the nlist of each of the dlfiles.
  27258. + nlist="$output_objdir/${my_outputname}.nm"
  27259. +
  27260. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  27261. +
  27262. + # Parse the name list into a source file.
  27263. + func_verbose "creating $output_objdir/$my_dlsyms"
  27264. +
  27265. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  27266. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  27267. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  27268. +
  27269. +#ifdef __cplusplus
  27270. +extern \"C\" {
  27271. +#endif
  27272. +
  27273. +/* External symbol declarations for the compiler. */\
  27274. +"
  27275. +
  27276. + if test "$dlself" = yes; then
  27277. + func_verbose "generating symbol list for \`$output'"
  27278. +
  27279. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  27280. +
  27281. + # Add our own program objects to the symbol list.
  27282. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  27283. + for progfile in $progfiles; do
  27284. + func_verbose "extracting global C symbols from \`$progfile'"
  27285. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  27286. + done
  27287. +
  27288. + if test -n "$exclude_expsyms"; then
  27289. + $opt_dry_run || {
  27290. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  27291. + eval '$MV "$nlist"T "$nlist"'
  27292. + }
  27293. + fi
  27294. +
  27295. + if test -n "$export_symbols_regex"; then
  27296. + $opt_dry_run || {
  27297. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  27298. + eval '$MV "$nlist"T "$nlist"'
  27299. + }
  27300. + fi
  27301. +
  27302. + # Prepare the list of exported symbols
  27303. + if test -z "$export_symbols"; then
  27304. + export_symbols="$output_objdir/$outputname.exp"
  27305. + $opt_dry_run || {
  27306. + $RM $export_symbols
  27307. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  27308. + case $host in
  27309. + *cygwin* | *mingw* | *cegcc* )
  27310. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  27311. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  27312. + ;;
  27313. + esac
  27314. + }
  27315. + else
  27316. + $opt_dry_run || {
  27317. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  27318. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  27319. + eval '$MV "$nlist"T "$nlist"'
  27320. + case $host in
  27321. + *cygwin | *mingw* | *cegcc* )
  27322. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  27323. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  27324. + ;;
  27325. + esac
  27326. + }
  27327. + fi
  27328. + fi
  27329. +
  27330. + for dlprefile in $dlprefiles; do
  27331. + func_verbose "extracting global C symbols from \`$dlprefile'"
  27332. + func_basename "$dlprefile"
  27333. + name="$func_basename_result"
  27334. + $opt_dry_run || {
  27335. + eval '$ECHO ": $name " >> "$nlist"'
  27336. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  27337. + }
  27338. + done
  27339. +
  27340. + $opt_dry_run || {
  27341. + # Make sure we have at least an empty file.
  27342. + test -f "$nlist" || : > "$nlist"
  27343. +
  27344. + if test -n "$exclude_expsyms"; then
  27345. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  27346. + $MV "$nlist"T "$nlist"
  27347. + fi
  27348. +
  27349. + # Try sorting and uniquifying the output.
  27350. + if $GREP -v "^: " < "$nlist" |
  27351. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  27352. + sort -k 3
  27353. + else
  27354. + sort +2
  27355. + fi |
  27356. + uniq > "$nlist"S; then
  27357. + :
  27358. + else
  27359. + $GREP -v "^: " < "$nlist" > "$nlist"S
  27360. + fi
  27361. +
  27362. + if test -f "$nlist"S; then
  27363. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  27364. + else
  27365. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  27366. + fi
  27367. +
  27368. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  27369. +
  27370. +/* The mapping between symbol names and symbols. */
  27371. +typedef struct {
  27372. + const char *name;
  27373. + void *address;
  27374. +} lt_dlsymlist;
  27375. +"
  27376. + case $host in
  27377. + *cygwin* | *mingw* | *cegcc* )
  27378. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  27379. +/* DATA imports from DLLs on WIN32 con't be const, because
  27380. + runtime relocations are performed -- see ld's documentation
  27381. + on pseudo-relocs. */"
  27382. + lt_dlsym_const= ;;
  27383. + *osf5*)
  27384. + echo >> "$output_objdir/$my_dlsyms" "\
  27385. +/* This system does not cope well with relocations in const data */"
  27386. + lt_dlsym_const= ;;
  27387. + *)
  27388. + lt_dlsym_const=const ;;
  27389. + esac
  27390. +
  27391. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  27392. +extern $lt_dlsym_const lt_dlsymlist
  27393. +lt_${my_prefix}_LTX_preloaded_symbols[];
  27394. +$lt_dlsym_const lt_dlsymlist
  27395. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  27396. +{\
  27397. + { \"$my_originator\", (void *) 0 },"
  27398. +
  27399. + case $need_lib_prefix in
  27400. + no)
  27401. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  27402. + ;;
  27403. + *)
  27404. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  27405. + ;;
  27406. + esac
  27407. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  27408. + {0, (void *) 0}
  27409. +};
  27410. +
  27411. +/* This works around a problem in FreeBSD linker */
  27412. +#ifdef FREEBSD_WORKAROUND
  27413. +static const void *lt_preloaded_setup() {
  27414. + return lt_${my_prefix}_LTX_preloaded_symbols;
  27415. +}
  27416. +#endif
  27417. +
  27418. +#ifdef __cplusplus
  27419. +}
  27420. +#endif\
  27421. +"
  27422. + } # !$opt_dry_run
  27423. +
  27424. + pic_flag_for_symtable=
  27425. + case "$compile_command " in
  27426. + *" -static "*) ;;
  27427. + *)
  27428. + case $host in
  27429. + # compiling the symbol table file with pic_flag works around
  27430. + # a FreeBSD bug that causes programs to crash when -lm is
  27431. + # linked before any other PIC object. But we must not use
  27432. + # pic_flag when linking with -static. The problem exists in
  27433. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  27434. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  27435. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  27436. + *-*-hpux*)
  27437. + pic_flag_for_symtable=" $pic_flag" ;;
  27438. + *)
  27439. + if test "X$my_pic_p" != Xno; then
  27440. + pic_flag_for_symtable=" $pic_flag"
  27441. + fi
  27442. + ;;
  27443. + esac
  27444. + ;;
  27445. + esac
  27446. + symtab_cflags=
  27447. + for arg in $LTCFLAGS; do
  27448. + case $arg in
  27449. + -pie | -fpie | -fPIE) ;;
  27450. + *) symtab_cflags="$symtab_cflags $arg" ;;
  27451. + esac
  27452. + done
  27453. +
  27454. + # Now compile the dynamic symbol file.
  27455. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  27456. +
  27457. + # Clean up the generated files.
  27458. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  27459. +
  27460. + # Transform the symbol file into the correct name.
  27461. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  27462. + case $host in
  27463. + *cygwin* | *mingw* | *cegcc* )
  27464. + if test -f "$output_objdir/$my_outputname.def"; then
  27465. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  27466. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  27467. + else
  27468. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  27469. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  27470. + fi
  27471. + ;;
  27472. + *)
  27473. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  27474. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  27475. + ;;
  27476. + esac
  27477. + ;;
  27478. + *)
  27479. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  27480. + ;;
  27481. + esac
  27482. + else
  27483. + # We keep going just in case the user didn't refer to
  27484. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  27485. + # really was required.
  27486. +
  27487. + # Nullify the symbol file.
  27488. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  27489. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  27490. + fi
  27491. +}
  27492. +
  27493. +# func_win32_libid arg
  27494. +# return the library type of file 'arg'
  27495. +#
  27496. +# Need a lot of goo to handle *both* DLLs and import libs
  27497. +# Has to be a shell function in order to 'eat' the argument
  27498. +# that is supplied when $file_magic_command is called.
  27499. +func_win32_libid ()
  27500. +{
  27501. + $opt_debug
  27502. + win32_libid_type="unknown"
  27503. + win32_fileres=`file -L $1 2>/dev/null`
  27504. + case $win32_fileres in
  27505. + *ar\ archive\ import\ library*) # definitely import
  27506. + win32_libid_type="x86 archive import"
  27507. + ;;
  27508. + *ar\ archive*) # could be an import, or static
  27509. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  27510. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  27511. + win32_nmres=`eval $NM -f posix -A $1 |
  27512. + $SED -n -e '
  27513. + 1,100{
  27514. + / I /{
  27515. + s,.*,import,
  27516. + p
  27517. + q
  27518. + }
  27519. + }'`
  27520. + case $win32_nmres in
  27521. + import*) win32_libid_type="x86 archive import";;
  27522. + *) win32_libid_type="x86 archive static";;
  27523. + esac
  27524. + fi
  27525. + ;;
  27526. + *DLL*)
  27527. + win32_libid_type="x86 DLL"
  27528. + ;;
  27529. + *executable*) # but shell scripts are "executable" too...
  27530. + case $win32_fileres in
  27531. + *MS\ Windows\ PE\ Intel*)
  27532. + win32_libid_type="x86 DLL"
  27533. + ;;
  27534. + esac
  27535. + ;;
  27536. + esac
  27537. + $ECHO "$win32_libid_type"
  27538. +}
  27539. +
  27540. +
  27541. +
  27542. +# func_extract_an_archive dir oldlib
  27543. +func_extract_an_archive ()
  27544. +{
  27545. + $opt_debug
  27546. + f_ex_an_ar_dir="$1"; shift
  27547. + f_ex_an_ar_oldlib="$1"
  27548. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  27549. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  27550. + :
  27551. + else
  27552. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  27553. + fi
  27554. +}
  27555. +
  27556. +
  27557. +# func_extract_archives gentop oldlib ...
  27558. +func_extract_archives ()
  27559. +{
  27560. + $opt_debug
  27561. + my_gentop="$1"; shift
  27562. + my_oldlibs=${1+"$@"}
  27563. + my_oldobjs=""
  27564. + my_xlib=""
  27565. + my_xabs=""
  27566. + my_xdir=""
  27567. +
  27568. + for my_xlib in $my_oldlibs; do
  27569. + # Extract the objects.
  27570. + case $my_xlib in
  27571. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  27572. + *) my_xabs=`pwd`"/$my_xlib" ;;
  27573. + esac
  27574. + func_basename "$my_xlib"
  27575. + my_xlib="$func_basename_result"
  27576. + my_xlib_u=$my_xlib
  27577. + while :; do
  27578. + case " $extracted_archives " in
  27579. + *" $my_xlib_u "*)
  27580. + func_arith $extracted_serial + 1
  27581. + extracted_serial=$func_arith_result
  27582. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  27583. + *) break ;;
  27584. + esac
  27585. + done
  27586. + extracted_archives="$extracted_archives $my_xlib_u"
  27587. + my_xdir="$my_gentop/$my_xlib_u"
  27588. +
  27589. + func_mkdir_p "$my_xdir"
  27590. +
  27591. + case $host in
  27592. + *-darwin*)
  27593. + func_verbose "Extracting $my_xabs"
  27594. + # Do not bother doing anything if just a dry run
  27595. + $opt_dry_run || {
  27596. + darwin_orig_dir=`pwd`
  27597. + cd $my_xdir || exit $?
  27598. + darwin_archive=$my_xabs
  27599. + darwin_curdir=`pwd`
  27600. + darwin_base_archive=`basename "$darwin_archive"`
  27601. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  27602. + if test -n "$darwin_arches"; then
  27603. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  27604. + darwin_arch=
  27605. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  27606. + for darwin_arch in $darwin_arches ; do
  27607. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  27608. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  27609. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  27610. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  27611. + cd "$darwin_curdir"
  27612. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  27613. + done # $darwin_arches
  27614. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  27615. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  27616. + darwin_file=
  27617. + darwin_files=
  27618. + for darwin_file in $darwin_filelist; do
  27619. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  27620. + $LIPO -create -output "$darwin_file" $darwin_files
  27621. + done # $darwin_filelist
  27622. + $RM -rf unfat-$$
  27623. + cd "$darwin_orig_dir"
  27624. + else
  27625. + cd $darwin_orig_dir
  27626. + func_extract_an_archive "$my_xdir" "$my_xabs"
  27627. + fi # $darwin_arches
  27628. + } # !$opt_dry_run
  27629. + ;;
  27630. + *)
  27631. + func_extract_an_archive "$my_xdir" "$my_xabs"
  27632. + ;;
  27633. + esac
  27634. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  27635. + done
  27636. +
  27637. + func_extract_archives_result="$my_oldobjs"
  27638. +}
  27639. +
  27640. +
  27641. +
  27642. +# func_emit_wrapper_part1 [arg=no]
  27643. +#
  27644. +# Emit the first part of a libtool wrapper script on stdout.
  27645. +# For more information, see the description associated with
  27646. +# func_emit_wrapper(), below.
  27647. +func_emit_wrapper_part1 ()
  27648. +{
  27649. + func_emit_wrapper_part1_arg1=no
  27650. + if test -n "$1" ; then
  27651. + func_emit_wrapper_part1_arg1=$1
  27652. + fi
  27653. +
  27654. + $ECHO "\
  27655. +#! $SHELL
  27656. +
  27657. +# $output - temporary wrapper script for $objdir/$outputname
  27658. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  27659. +#
  27660. +# The $output program cannot be directly executed until all the libtool
  27661. +# libraries that it depends on are installed.
  27662. +#
  27663. +# This wrapper script should never be moved out of the build directory.
  27664. +# If it is, it will not operate correctly.
  27665. +
  27666. +# Sed substitution that helps us do robust quoting. It backslashifies
  27667. +# metacharacters that are still active within double-quoted strings.
  27668. +Xsed='${SED} -e 1s/^X//'
  27669. +sed_quote_subst='$sed_quote_subst'
  27670. +
  27671. +# Be Bourne compatible
  27672. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  27673. + emulate sh
  27674. + NULLCMD=:
  27675. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  27676. + # is contrary to our usage. Disable this feature.
  27677. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  27678. + setopt NO_GLOB_SUBST
  27679. +else
  27680. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  27681. +fi
  27682. +BIN_SH=xpg4; export BIN_SH # for Tru64
  27683. +DUALCASE=1; export DUALCASE # for MKS sh
  27684. +
  27685. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  27686. +# if CDPATH is set.
  27687. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27688. +
  27689. +relink_command=\"$relink_command\"
  27690. +
  27691. +# This environment variable determines our operation mode.
  27692. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  27693. + # install mode needs the following variables:
  27694. + generated_by_libtool_version='$macro_version'
  27695. + notinst_deplibs='$notinst_deplibs'
  27696. +else
  27697. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  27698. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  27699. + ECHO=\"$qecho\"
  27700. + file=\"\$0\"
  27701. + # Make sure echo works.
  27702. + if test \"X\$1\" = X--no-reexec; then
  27703. + # Discard the --no-reexec flag, and continue.
  27704. + shift
  27705. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  27706. + # Yippee, \$ECHO works!
  27707. + :
  27708. + else
  27709. + # Restart under the correct shell, and then maybe \$ECHO will work.
  27710. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  27711. + fi
  27712. + fi\
  27713. +"
  27714. + $ECHO "\
  27715. +
  27716. + # Find the directory that this script lives in.
  27717. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  27718. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  27719. +
  27720. + # Follow symbolic links until we get to the real thisdir.
  27721. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  27722. + while test -n \"\$file\"; do
  27723. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  27724. +
  27725. + # If there was a directory component, then change thisdir.
  27726. + if test \"x\$destdir\" != \"x\$file\"; then
  27727. + case \"\$destdir\" in
  27728. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  27729. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  27730. + esac
  27731. + fi
  27732. +
  27733. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  27734. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  27735. + done
  27736. +"
  27737. +}
  27738. +# end: func_emit_wrapper_part1
  27739. +
  27740. +# func_emit_wrapper_part2 [arg=no]
  27741. +#
  27742. +# Emit the second part of a libtool wrapper script on stdout.
  27743. +# For more information, see the description associated with
  27744. +# func_emit_wrapper(), below.
  27745. +func_emit_wrapper_part2 ()
  27746. +{
  27747. + func_emit_wrapper_part2_arg1=no
  27748. + if test -n "$1" ; then
  27749. + func_emit_wrapper_part2_arg1=$1
  27750. + fi
  27751. +
  27752. + $ECHO "\
  27753. +
  27754. + # Usually 'no', except on cygwin/mingw when embedded into
  27755. + # the cwrapper.
  27756. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  27757. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  27758. + # special case for '.'
  27759. + if test \"\$thisdir\" = \".\"; then
  27760. + thisdir=\`pwd\`
  27761. + fi
  27762. + # remove .libs from thisdir
  27763. + case \"\$thisdir\" in
  27764. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  27765. + $objdir ) thisdir=. ;;
  27766. + esac
  27767. + fi
  27768. +
  27769. + # Try to get the absolute directory name.
  27770. + absdir=\`cd \"\$thisdir\" && pwd\`
  27771. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  27772. +"
  27773. +
  27774. + if test "$fast_install" = yes; then
  27775. + $ECHO "\
  27776. + program=lt-'$outputname'$exeext
  27777. + progdir=\"\$thisdir/$objdir\"
  27778. +
  27779. + if test ! -f \"\$progdir/\$program\" ||
  27780. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  27781. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  27782. +
  27783. + file=\"\$\$-\$program\"
  27784. +
  27785. + if test ! -d \"\$progdir\"; then
  27786. + $MKDIR \"\$progdir\"
  27787. + else
  27788. + $RM \"\$progdir/\$file\"
  27789. + fi"
  27790. +
  27791. + $ECHO "\
  27792. +
  27793. + # relink executable if necessary
  27794. + if test -n \"\$relink_command\"; then
  27795. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  27796. + else
  27797. + $ECHO \"\$relink_command_output\" >&2
  27798. + $RM \"\$progdir/\$file\"
  27799. + exit 1
  27800. + fi
  27801. + fi
  27802. +
  27803. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  27804. + { $RM \"\$progdir/\$program\";
  27805. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  27806. + $RM \"\$progdir/\$file\"
  27807. + fi"
  27808. + else
  27809. + $ECHO "\
  27810. + program='$outputname'
  27811. + progdir=\"\$thisdir/$objdir\"
  27812. +"
  27813. + fi
  27814. +
  27815. + $ECHO "\
  27816. +
  27817. + if test -f \"\$progdir/\$program\"; then"
  27818. +
  27819. + # Export our shlibpath_var if we have one.
  27820. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  27821. + $ECHO "\
  27822. + # Add our own library path to $shlibpath_var
  27823. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  27824. +
  27825. + # Some systems cannot cope with colon-terminated $shlibpath_var
  27826. + # The second colon is a workaround for a bug in BeOS R4 sed
  27827. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  27828. +
  27829. + export $shlibpath_var
  27830. +"
  27831. + fi
  27832. +
  27833. + # fixup the dll searchpath if we need to.
  27834. + if test -n "$dllsearchpath"; then
  27835. + $ECHO "\
  27836. + # Add the dll search path components to the executable PATH
  27837. + PATH=$dllsearchpath:\$PATH
  27838. +"
  27839. + fi
  27840. +
  27841. + $ECHO "\
  27842. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  27843. + # Run the actual program with our arguments.
  27844. +"
  27845. + case $host in
  27846. + # Backslashes separate directories on plain windows
  27847. + *-*-mingw | *-*-os2* | *-cegcc*)
  27848. + $ECHO "\
  27849. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  27850. +"
  27851. + ;;
  27852. +
  27853. + *)
  27854. + $ECHO "\
  27855. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  27856. +"
  27857. + ;;
  27858. + esac
  27859. + $ECHO "\
  27860. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  27861. + exit 1
  27862. + fi
  27863. + else
  27864. + # The program doesn't exist.
  27865. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  27866. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  27867. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  27868. + exit 1
  27869. + fi
  27870. +fi\
  27871. +"
  27872. +}
  27873. +# end: func_emit_wrapper_part2
  27874. +
  27875. +
  27876. +# func_emit_wrapper [arg=no]
  27877. +#
  27878. +# Emit a libtool wrapper script on stdout.
  27879. +# Don't directly open a file because we may want to
  27880. +# incorporate the script contents within a cygwin/mingw
  27881. +# wrapper executable. Must ONLY be called from within
  27882. +# func_mode_link because it depends on a number of variables
  27883. +# set therein.
  27884. +#
  27885. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  27886. +# variable will take. If 'yes', then the emitted script
  27887. +# will assume that the directory in which it is stored is
  27888. +# the $objdir directory. This is a cygwin/mingw-specific
  27889. +# behavior.
  27890. +func_emit_wrapper ()
  27891. +{
  27892. + func_emit_wrapper_arg1=no
  27893. + if test -n "$1" ; then
  27894. + func_emit_wrapper_arg1=$1
  27895. + fi
  27896. +
  27897. + # split this up so that func_emit_cwrapperexe_src
  27898. + # can call each part independently.
  27899. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  27900. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  27901. +}
  27902. +
  27903. +
  27904. +# func_to_host_path arg
  27905. +#
  27906. +# Convert paths to host format when used with build tools.
  27907. +# Intended for use with "native" mingw (where libtool itself
  27908. +# is running under the msys shell), or in the following cross-
  27909. +# build environments:
  27910. +# $build $host
  27911. +# mingw (msys) mingw [e.g. native]
  27912. +# cygwin mingw
  27913. +# *nix + wine mingw
  27914. +# where wine is equipped with the `winepath' executable.
  27915. +# In the native mingw case, the (msys) shell automatically
  27916. +# converts paths for any non-msys applications it launches,
  27917. +# but that facility isn't available from inside the cwrapper.
  27918. +# Similar accommodations are necessary for $host mingw and
  27919. +# $build cygwin. Calling this function does no harm for other
  27920. +# $host/$build combinations not listed above.
  27921. +#
  27922. +# ARG is the path (on $build) that should be converted to
  27923. +# the proper representation for $host. The result is stored
  27924. +# in $func_to_host_path_result.
  27925. +func_to_host_path ()
  27926. +{
  27927. + func_to_host_path_result="$1"
  27928. + if test -n "$1" ; then
  27929. + case $host in
  27930. + *mingw* )
  27931. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  27932. + case $build in
  27933. + *mingw* ) # actually, msys
  27934. + # awkward: cmd appends spaces to result
  27935. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  27936. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  27937. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  27938. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  27939. + $SED -e "$lt_sed_naive_backslashify"`
  27940. + ;;
  27941. + *cygwin* )
  27942. + func_to_host_path_tmp1=`cygpath -w "$1"`
  27943. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  27944. + $SED -e "$lt_sed_naive_backslashify"`
  27945. + ;;
  27946. + * )
  27947. + # Unfortunately, winepath does not exit with a non-zero
  27948. + # error code, so we are forced to check the contents of
  27949. + # stdout. On the other hand, if the command is not
  27950. + # found, the shell will set an exit code of 127 and print
  27951. + # *an error message* to stdout. So we must check for both
  27952. + # error code of zero AND non-empty stdout, which explains
  27953. + # the odd construction:
  27954. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  27955. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  27956. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  27957. + $SED -e "$lt_sed_naive_backslashify"`
  27958. + else
  27959. + # Allow warning below.
  27960. + func_to_host_path_result=""
  27961. + fi
  27962. + ;;
  27963. + esac
  27964. + if test -z "$func_to_host_path_result" ; then
  27965. + func_error "Could not determine host path corresponding to"
  27966. + func_error " '$1'"
  27967. + func_error "Continuing, but uninstalled executables may not work."
  27968. + # Fallback:
  27969. + func_to_host_path_result="$1"
  27970. + fi
  27971. + ;;
  27972. + esac
  27973. + fi
  27974. +}
  27975. +# end: func_to_host_path
  27976. +
  27977. +# func_to_host_pathlist arg
  27978. +#
  27979. +# Convert pathlists to host format when used with build tools.
  27980. +# See func_to_host_path(), above. This function supports the
  27981. +# following $build/$host combinations (but does no harm for
  27982. +# combinations not listed here):
  27983. +# $build $host
  27984. +# mingw (msys) mingw [e.g. native]
  27985. +# cygwin mingw
  27986. +# *nix + wine mingw
  27987. +#
  27988. +# Path separators are also converted from $build format to
  27989. +# $host format. If ARG begins or ends with a path separator
  27990. +# character, it is preserved (but converted to $host format)
  27991. +# on output.
  27992. +#
  27993. +# ARG is a pathlist (on $build) that should be converted to
  27994. +# the proper representation on $host. The result is stored
  27995. +# in $func_to_host_pathlist_result.
  27996. +func_to_host_pathlist ()
  27997. +{
  27998. + func_to_host_pathlist_result="$1"
  27999. + if test -n "$1" ; then
  28000. + case $host in
  28001. + *mingw* )
  28002. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  28003. + # Remove leading and trailing path separator characters from
  28004. + # ARG. msys behavior is inconsistent here, cygpath turns them
  28005. + # into '.;' and ';.', and winepath ignores them completely.
  28006. + func_to_host_pathlist_tmp2="$1"
  28007. + # Once set for this call, this variable should not be
  28008. + # reassigned. It is used in tha fallback case.
  28009. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  28010. + $SED -e 's|^:*||' -e 's|:*$||'`
  28011. + case $build in
  28012. + *mingw* ) # Actually, msys.
  28013. + # Awkward: cmd appends spaces to result.
  28014. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  28015. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  28016. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  28017. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  28018. + $SED -e "$lt_sed_naive_backslashify"`
  28019. + ;;
  28020. + *cygwin* )
  28021. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  28022. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  28023. + $SED -e "$lt_sed_naive_backslashify"`
  28024. + ;;
  28025. + * )
  28026. + # unfortunately, winepath doesn't convert pathlists
  28027. + func_to_host_pathlist_result=""
  28028. + func_to_host_pathlist_oldIFS=$IFS
  28029. + IFS=:
  28030. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  28031. + IFS=$func_to_host_pathlist_oldIFS
  28032. + if test -n "$func_to_host_pathlist_f" ; then
  28033. + func_to_host_path "$func_to_host_pathlist_f"
  28034. + if test -n "$func_to_host_path_result" ; then
  28035. + if test -z "$func_to_host_pathlist_result" ; then
  28036. + func_to_host_pathlist_result="$func_to_host_path_result"
  28037. + else
  28038. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  28039. + fi
  28040. + fi
  28041. + fi
  28042. + IFS=:
  28043. + done
  28044. + IFS=$func_to_host_pathlist_oldIFS
  28045. + ;;
  28046. + esac
  28047. + if test -z "$func_to_host_pathlist_result" ; then
  28048. + func_error "Could not determine the host path(s) corresponding to"
  28049. + func_error " '$1'"
  28050. + func_error "Continuing, but uninstalled executables may not work."
  28051. + # Fallback. This may break if $1 contains DOS-style drive
  28052. + # specifications. The fix is not to complicate the expression
  28053. + # below, but for the user to provide a working wine installation
  28054. + # with winepath so that path translation in the cross-to-mingw
  28055. + # case works properly.
  28056. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  28057. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  28058. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  28059. + fi
  28060. + # Now, add the leading and trailing path separators back
  28061. + case "$1" in
  28062. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  28063. + ;;
  28064. + esac
  28065. + case "$1" in
  28066. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  28067. + ;;
  28068. + esac
  28069. + ;;
  28070. + esac
  28071. + fi
  28072. +}
  28073. +# end: func_to_host_pathlist
  28074. +
  28075. +# func_emit_cwrapperexe_src
  28076. +# emit the source code for a wrapper executable on stdout
  28077. +# Must ONLY be called from within func_mode_link because
  28078. +# it depends on a number of variable set therein.
  28079. +func_emit_cwrapperexe_src ()
  28080. +{
  28081. + cat <<EOF
  28082. +
  28083. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  28084. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  28085. +
  28086. + The $output program cannot be directly executed until all the libtool
  28087. + libraries that it depends on are installed.
  28088. +
  28089. + This wrapper executable should never be moved out of the build directory.
  28090. + If it is, it will not operate correctly.
  28091. +
  28092. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  28093. + but could eventually absorb all of the scripts functionality and
  28094. + exec $objdir/$outputname directly.
  28095. +*/
  28096. +EOF
  28097. + cat <<"EOF"
  28098. +#include <stdio.h>
  28099. +#include <stdlib.h>
  28100. +#ifdef _MSC_VER
  28101. +# include <direct.h>
  28102. +# include <process.h>
  28103. +# include <io.h>
  28104. +# define setmode _setmode
  28105. +#else
  28106. +# include <unistd.h>
  28107. +# include <stdint.h>
  28108. +# ifdef __CYGWIN__
  28109. +# include <io.h>
  28110. +# define HAVE_SETENV
  28111. +# ifdef __STRICT_ANSI__
  28112. +char *realpath (const char *, char *);
  28113. +int putenv (char *);
  28114. +int setenv (const char *, const char *, int);
  28115. +# endif
  28116. +# endif
  28117. +#endif
  28118. +#include <malloc.h>
  28119. +#include <stdarg.h>
  28120. +#include <assert.h>
  28121. +#include <string.h>
  28122. +#include <ctype.h>
  28123. +#include <errno.h>
  28124. +#include <fcntl.h>
  28125. +#include <sys/stat.h>
  28126. +
  28127. +#if defined(PATH_MAX)
  28128. +# define LT_PATHMAX PATH_MAX
  28129. +#elif defined(MAXPATHLEN)
  28130. +# define LT_PATHMAX MAXPATHLEN
  28131. +#else
  28132. +# define LT_PATHMAX 1024
  28133. +#endif
  28134. +
  28135. +#ifndef S_IXOTH
  28136. +# define S_IXOTH 0
  28137. +#endif
  28138. +#ifndef S_IXGRP
  28139. +# define S_IXGRP 0
  28140. +#endif
  28141. +
  28142. +#ifdef _MSC_VER
  28143. +# define S_IXUSR _S_IEXEC
  28144. +# define stat _stat
  28145. +# ifndef _INTPTR_T_DEFINED
  28146. +# define intptr_t int
  28147. +# endif
  28148. +#endif
  28149. +
  28150. +#ifndef DIR_SEPARATOR
  28151. +# define DIR_SEPARATOR '/'
  28152. +# define PATH_SEPARATOR ':'
  28153. +#endif
  28154. +
  28155. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  28156. + defined (__OS2__)
  28157. +# define HAVE_DOS_BASED_FILE_SYSTEM
  28158. +# define FOPEN_WB "wb"
  28159. +# ifndef DIR_SEPARATOR_2
  28160. +# define DIR_SEPARATOR_2 '\\'
  28161. +# endif
  28162. +# ifndef PATH_SEPARATOR_2
  28163. +# define PATH_SEPARATOR_2 ';'
  28164. +# endif
  28165. +#endif
  28166. +
  28167. +#ifndef DIR_SEPARATOR_2
  28168. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  28169. +#else /* DIR_SEPARATOR_2 */
  28170. +# define IS_DIR_SEPARATOR(ch) \
  28171. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  28172. +#endif /* DIR_SEPARATOR_2 */
  28173. +
  28174. +#ifndef PATH_SEPARATOR_2
  28175. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  28176. +#else /* PATH_SEPARATOR_2 */
  28177. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  28178. +#endif /* PATH_SEPARATOR_2 */
  28179. +
  28180. +#ifdef __CYGWIN__
  28181. +# define FOPEN_WB "wb"
  28182. +#endif
  28183. +
  28184. +#ifndef FOPEN_WB
  28185. +# define FOPEN_WB "w"
  28186. +#endif
  28187. +#ifndef _O_BINARY
  28188. +# define _O_BINARY 0
  28189. +#endif
  28190. +
  28191. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  28192. +#define XFREE(stale) do { \
  28193. + if (stale) { free ((void *) stale); stale = 0; } \
  28194. +} while (0)
  28195. +
  28196. +#undef LTWRAPPER_DEBUGPRINTF
  28197. +#if defined DEBUGWRAPPER
  28198. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  28199. +static void
  28200. +ltwrapper_debugprintf (const char *fmt, ...)
  28201. +{
  28202. + va_list args;
  28203. + va_start (args, fmt);
  28204. + (void) vfprintf (stderr, fmt, args);
  28205. + va_end (args);
  28206. +}
  28207. +#else
  28208. +# define LTWRAPPER_DEBUGPRINTF(args)
  28209. +#endif
  28210. +
  28211. +const char *program_name = NULL;
  28212. +
  28213. +void *xmalloc (size_t num);
  28214. +char *xstrdup (const char *string);
  28215. +const char *base_name (const char *name);
  28216. +char *find_executable (const char *wrapper);
  28217. +char *chase_symlinks (const char *pathspec);
  28218. +int make_executable (const char *path);
  28219. +int check_executable (const char *path);
  28220. +char *strendzap (char *str, const char *pat);
  28221. +void lt_fatal (const char *message, ...);
  28222. +void lt_setenv (const char *name, const char *value);
  28223. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  28224. +void lt_opt_process_env_set (const char *arg);
  28225. +void lt_opt_process_env_prepend (const char *arg);
  28226. +void lt_opt_process_env_append (const char *arg);
  28227. +int lt_split_name_value (const char *arg, char** name, char** value);
  28228. +void lt_update_exe_path (const char *name, const char *value);
  28229. +void lt_update_lib_path (const char *name, const char *value);
  28230. +
  28231. +static const char *script_text_part1 =
  28232. +EOF
  28233. +
  28234. + func_emit_wrapper_part1 yes |
  28235. + $SED -e 's/\([\\"]\)/\\\1/g' \
  28236. + -e 's/^/ "/' -e 's/$/\\n"/'
  28237. + echo ";"
  28238. + cat <<EOF
  28239. +
  28240. +static const char *script_text_part2 =
  28241. +EOF
  28242. + func_emit_wrapper_part2 yes |
  28243. + $SED -e 's/\([\\"]\)/\\\1/g' \
  28244. + -e 's/^/ "/' -e 's/$/\\n"/'
  28245. + echo ";"
  28246. +
  28247. + cat <<EOF
  28248. +const char * MAGIC_EXE = "$magic_exe";
  28249. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  28250. +EOF
  28251. +
  28252. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  28253. + func_to_host_pathlist "$temp_rpath"
  28254. + cat <<EOF
  28255. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  28256. +EOF
  28257. + else
  28258. + cat <<"EOF"
  28259. +const char * LIB_PATH_VALUE = "";
  28260. +EOF
  28261. + fi
  28262. +
  28263. + if test -n "$dllsearchpath"; then
  28264. + func_to_host_pathlist "$dllsearchpath:"
  28265. + cat <<EOF
  28266. +const char * EXE_PATH_VARNAME = "PATH";
  28267. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  28268. +EOF
  28269. + else
  28270. + cat <<"EOF"
  28271. +const char * EXE_PATH_VARNAME = "";
  28272. +const char * EXE_PATH_VALUE = "";
  28273. +EOF
  28274. + fi
  28275. +
  28276. + if test "$fast_install" = yes; then
  28277. + cat <<EOF
  28278. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  28279. +EOF
  28280. + else
  28281. + cat <<EOF
  28282. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  28283. +EOF
  28284. + fi
  28285. +
  28286. +
  28287. + cat <<"EOF"
  28288. +
  28289. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  28290. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  28291. +
  28292. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  28293. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  28294. +
  28295. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  28296. +
  28297. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  28298. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  28299. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  28300. +
  28301. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  28302. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  28303. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  28304. +
  28305. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  28306. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  28307. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  28308. +
  28309. +int
  28310. +main (int argc, char *argv[])
  28311. +{
  28312. + char **newargz;
  28313. + int newargc;
  28314. + char *tmp_pathspec;
  28315. + char *actual_cwrapper_path;
  28316. + char *actual_cwrapper_name;
  28317. + char *target_name;
  28318. + char *lt_argv_zero;
  28319. + intptr_t rval = 127;
  28320. +
  28321. + int i;
  28322. +
  28323. + program_name = (char *) xstrdup (base_name (argv[0]));
  28324. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  28325. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  28326. +
  28327. + /* very simple arg parsing; don't want to rely on getopt */
  28328. + for (i = 1; i < argc; i++)
  28329. + {
  28330. + if (strcmp (argv[i], dumpscript_opt) == 0)
  28331. + {
  28332. +EOF
  28333. + case "$host" in
  28334. + *mingw* | *cygwin* )
  28335. + # make stdout use "unix" line endings
  28336. + echo " setmode(1,_O_BINARY);"
  28337. + ;;
  28338. + esac
  28339. +
  28340. + cat <<"EOF"
  28341. + printf ("%s", script_text_part1);
  28342. + printf ("%s", script_text_part2);
  28343. + return 0;
  28344. + }
  28345. + }
  28346. +
  28347. + newargz = XMALLOC (char *, argc + 1);
  28348. + tmp_pathspec = find_executable (argv[0]);
  28349. + if (tmp_pathspec == NULL)
  28350. + lt_fatal ("Couldn't find %s", argv[0]);
  28351. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  28352. + tmp_pathspec));
  28353. +
  28354. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  28355. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  28356. + actual_cwrapper_path));
  28357. + XFREE (tmp_pathspec);
  28358. +
  28359. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  28360. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  28361. +
  28362. + /* wrapper name transforms */
  28363. + strendzap (actual_cwrapper_name, ".exe");
  28364. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  28365. + XFREE (actual_cwrapper_name);
  28366. + actual_cwrapper_name = tmp_pathspec;
  28367. + tmp_pathspec = 0;
  28368. +
  28369. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  28370. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  28371. + strendzap (target_name, ".exe");
  28372. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  28373. + XFREE (target_name);
  28374. + target_name = tmp_pathspec;
  28375. + tmp_pathspec = 0;
  28376. +
  28377. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  28378. + target_name));
  28379. +EOF
  28380. +
  28381. + cat <<EOF
  28382. + newargz[0] =
  28383. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  28384. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  28385. + strcpy (newargz[0], actual_cwrapper_path);
  28386. + strcat (newargz[0], "$objdir");
  28387. + strcat (newargz[0], "/");
  28388. +EOF
  28389. +
  28390. + cat <<"EOF"
  28391. + /* stop here, and copy so we don't have to do this twice */
  28392. + tmp_pathspec = xstrdup (newargz[0]);
  28393. +
  28394. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  28395. + strcat (newargz[0], actual_cwrapper_name);
  28396. +
  28397. + /* DO want the lt- prefix here if it exists, so use target_name */
  28398. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  28399. + XFREE (tmp_pathspec);
  28400. + tmp_pathspec = NULL;
  28401. +EOF
  28402. +
  28403. + case $host_os in
  28404. + mingw*)
  28405. + cat <<"EOF"
  28406. + {
  28407. + char* p;
  28408. + while ((p = strchr (newargz[0], '\\')) != NULL)
  28409. + {
  28410. + *p = '/';
  28411. + }
  28412. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  28413. + {
  28414. + *p = '/';
  28415. + }
  28416. + }
  28417. +EOF
  28418. + ;;
  28419. + esac
  28420. +
  28421. + cat <<"EOF"
  28422. + XFREE (target_name);
  28423. + XFREE (actual_cwrapper_path);
  28424. + XFREE (actual_cwrapper_name);
  28425. +
  28426. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  28427. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  28428. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  28429. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  28430. +
  28431. + newargc=0;
  28432. + for (i = 1; i < argc; i++)
  28433. + {
  28434. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  28435. + {
  28436. + if (argv[i][env_set_opt_len] == '=')
  28437. + {
  28438. + const char *p = argv[i] + env_set_opt_len + 1;
  28439. + lt_opt_process_env_set (p);
  28440. + }
  28441. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  28442. + {
  28443. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  28444. + }
  28445. + else
  28446. + lt_fatal ("%s missing required argument", env_set_opt);
  28447. + continue;
  28448. + }
  28449. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  28450. + {
  28451. + if (argv[i][env_prepend_opt_len] == '=')
  28452. + {
  28453. + const char *p = argv[i] + env_prepend_opt_len + 1;
  28454. + lt_opt_process_env_prepend (p);
  28455. + }
  28456. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  28457. + {
  28458. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  28459. + }
  28460. + else
  28461. + lt_fatal ("%s missing required argument", env_prepend_opt);
  28462. + continue;
  28463. + }
  28464. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  28465. + {
  28466. + if (argv[i][env_append_opt_len] == '=')
  28467. + {
  28468. + const char *p = argv[i] + env_append_opt_len + 1;
  28469. + lt_opt_process_env_append (p);
  28470. + }
  28471. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  28472. + {
  28473. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  28474. + }
  28475. + else
  28476. + lt_fatal ("%s missing required argument", env_append_opt);
  28477. + continue;
  28478. + }
  28479. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  28480. + {
  28481. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  28482. + namespace, but it is not one of the ones we know about and
  28483. + have already dealt with, above (inluding dump-script), then
  28484. + report an error. Otherwise, targets might begin to believe
  28485. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  28486. + namespace. The first time any user complains about this, we'll
  28487. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  28488. + or a configure.ac-settable value.
  28489. + */
  28490. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  28491. + ltwrapper_option_prefix, argv[i]);
  28492. + }
  28493. + /* otherwise ... */
  28494. + newargz[++newargc] = xstrdup (argv[i]);
  28495. + }
  28496. + newargz[++newargc] = NULL;
  28497. +
  28498. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  28499. + for (i = 0; i < newargc; i++)
  28500. + {
  28501. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  28502. + }
  28503. +
  28504. +EOF
  28505. +
  28506. + case $host_os in
  28507. + mingw*)
  28508. + cat <<"EOF"
  28509. + /* execv doesn't actually work on mingw as expected on unix */
  28510. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  28511. + if (rval == -1)
  28512. + {
  28513. + /* failed to start process */
  28514. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  28515. + return 127;
  28516. + }
  28517. + return rval;
  28518. +EOF
  28519. + ;;
  28520. + *)
  28521. + cat <<"EOF"
  28522. + execv (lt_argv_zero, newargz);
  28523. + return rval; /* =127, but avoids unused variable warning */
  28524. +EOF
  28525. + ;;
  28526. + esac
  28527. +
  28528. + cat <<"EOF"
  28529. +}
  28530. +
  28531. +void *
  28532. +xmalloc (size_t num)
  28533. +{
  28534. + void *p = (void *) malloc (num);
  28535. + if (!p)
  28536. + lt_fatal ("Memory exhausted");
  28537. +
  28538. + return p;
  28539. +}
  28540. +
  28541. +char *
  28542. +xstrdup (const char *string)
  28543. +{
  28544. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  28545. + string) : NULL;
  28546. +}
  28547. +
  28548. +const char *
  28549. +base_name (const char *name)
  28550. +{
  28551. + const char *base;
  28552. +
  28553. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  28554. + /* Skip over the disk name in MSDOS pathnames. */
  28555. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  28556. + name += 2;
  28557. +#endif
  28558. +
  28559. + for (base = name; *name; name++)
  28560. + if (IS_DIR_SEPARATOR (*name))
  28561. + base = name + 1;
  28562. + return base;
  28563. +}
  28564. +
  28565. +int
  28566. +check_executable (const char *path)
  28567. +{
  28568. + struct stat st;
  28569. +
  28570. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  28571. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  28572. + if ((!path) || (!*path))
  28573. + return 0;
  28574. +
  28575. + if ((stat (path, &st) >= 0)
  28576. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  28577. + return 1;
  28578. + else
  28579. + return 0;
  28580. +}
  28581. +
  28582. +int
  28583. +make_executable (const char *path)
  28584. +{
  28585. + int rval = 0;
  28586. + struct stat st;
  28587. +
  28588. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  28589. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  28590. + if ((!path) || (!*path))
  28591. + return 0;
  28592. +
  28593. + if (stat (path, &st) >= 0)
  28594. + {
  28595. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  28596. + }
  28597. + return rval;
  28598. +}
  28599. +
  28600. +/* Searches for the full path of the wrapper. Returns
  28601. + newly allocated full path name if found, NULL otherwise
  28602. + Does not chase symlinks, even on platforms that support them.
  28603. +*/
  28604. +char *
  28605. +find_executable (const char *wrapper)
  28606. +{
  28607. + int has_slash = 0;
  28608. + const char *p;
  28609. + const char *p_next;
  28610. + /* static buffer for getcwd */
  28611. + char tmp[LT_PATHMAX + 1];
  28612. + int tmp_len;
  28613. + char *concat_name;
  28614. +
  28615. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  28616. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  28617. +
  28618. + if ((wrapper == NULL) || (*wrapper == '\0'))
  28619. + return NULL;
  28620. +
  28621. + /* Absolute path? */
  28622. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  28623. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  28624. + {
  28625. + concat_name = xstrdup (wrapper);
  28626. + if (check_executable (concat_name))
  28627. + return concat_name;
  28628. + XFREE (concat_name);
  28629. + }
  28630. + else
  28631. + {
  28632. +#endif
  28633. + if (IS_DIR_SEPARATOR (wrapper[0]))
  28634. + {
  28635. + concat_name = xstrdup (wrapper);
  28636. + if (check_executable (concat_name))
  28637. + return concat_name;
  28638. + XFREE (concat_name);
  28639. + }
  28640. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  28641. + }
  28642. +#endif
  28643. +
  28644. + for (p = wrapper; *p; p++)
  28645. + if (*p == '/')
  28646. + {
  28647. + has_slash = 1;
  28648. + break;
  28649. + }
  28650. + if (!has_slash)
  28651. + {
  28652. + /* no slashes; search PATH */
  28653. + const char *path = getenv ("PATH");
  28654. + if (path != NULL)
  28655. + {
  28656. + for (p = path; *p; p = p_next)
  28657. + {
  28658. + const char *q;
  28659. + size_t p_len;
  28660. + for (q = p; *q; q++)
  28661. + if (IS_PATH_SEPARATOR (*q))
  28662. + break;
  28663. + p_len = q - p;
  28664. + p_next = (*q == '\0' ? q : q + 1);
  28665. + if (p_len == 0)
  28666. + {
  28667. + /* empty path: current directory */
  28668. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  28669. + lt_fatal ("getcwd failed");
  28670. + tmp_len = strlen (tmp);
  28671. + concat_name =
  28672. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  28673. + memcpy (concat_name, tmp, tmp_len);
  28674. + concat_name[tmp_len] = '/';
  28675. + strcpy (concat_name + tmp_len + 1, wrapper);
  28676. + }
  28677. + else
  28678. + {
  28679. + concat_name =
  28680. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  28681. + memcpy (concat_name, p, p_len);
  28682. + concat_name[p_len] = '/';
  28683. + strcpy (concat_name + p_len + 1, wrapper);
  28684. + }
  28685. + if (check_executable (concat_name))
  28686. + return concat_name;
  28687. + XFREE (concat_name);
  28688. + }
  28689. + }
  28690. + /* not found in PATH; assume curdir */
  28691. + }
  28692. + /* Relative path | not found in path: prepend cwd */
  28693. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  28694. + lt_fatal ("getcwd failed");
  28695. + tmp_len = strlen (tmp);
  28696. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  28697. + memcpy (concat_name, tmp, tmp_len);
  28698. + concat_name[tmp_len] = '/';
  28699. + strcpy (concat_name + tmp_len + 1, wrapper);
  28700. +
  28701. + if (check_executable (concat_name))
  28702. + return concat_name;
  28703. + XFREE (concat_name);
  28704. + return NULL;
  28705. +}
  28706. +
  28707. +char *
  28708. +chase_symlinks (const char *pathspec)
  28709. +{
  28710. +#ifndef S_ISLNK
  28711. + return xstrdup (pathspec);
  28712. +#else
  28713. + char buf[LT_PATHMAX];
  28714. + struct stat s;
  28715. + char *tmp_pathspec = xstrdup (pathspec);
  28716. + char *p;
  28717. + int has_symlinks = 0;
  28718. + while (strlen (tmp_pathspec) && !has_symlinks)
  28719. + {
  28720. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  28721. + tmp_pathspec));
  28722. + if (lstat (tmp_pathspec, &s) == 0)
  28723. + {
  28724. + if (S_ISLNK (s.st_mode) != 0)
  28725. + {
  28726. + has_symlinks = 1;
  28727. + break;
  28728. + }
  28729. +
  28730. + /* search backwards for last DIR_SEPARATOR */
  28731. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  28732. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  28733. + p--;
  28734. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  28735. + {
  28736. + /* no more DIR_SEPARATORS left */
  28737. + break;
  28738. + }
  28739. + *p = '\0';
  28740. + }
  28741. + else
  28742. + {
  28743. + char *errstr = strerror (errno);
  28744. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  28745. + }
  28746. + }
  28747. + XFREE (tmp_pathspec);
  28748. +
  28749. + if (!has_symlinks)
  28750. + {
  28751. + return xstrdup (pathspec);
  28752. + }
  28753. +
  28754. + tmp_pathspec = realpath (pathspec, buf);
  28755. + if (tmp_pathspec == 0)
  28756. + {
  28757. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  28758. + }
  28759. + return xstrdup (tmp_pathspec);
  28760. +#endif
  28761. +}
  28762. +
  28763. +char *
  28764. +strendzap (char *str, const char *pat)
  28765. +{
  28766. + size_t len, patlen;
  28767. +
  28768. + assert (str != NULL);
  28769. + assert (pat != NULL);
  28770. +
  28771. + len = strlen (str);
  28772. + patlen = strlen (pat);
  28773. +
  28774. + if (patlen <= len)
  28775. + {
  28776. + str += len - patlen;
  28777. + if (strcmp (str, pat) == 0)
  28778. + *str = '\0';
  28779. + }
  28780. + return str;
  28781. +}
  28782. +
  28783. +static void
  28784. +lt_error_core (int exit_status, const char *mode,
  28785. + const char *message, va_list ap)
  28786. +{
  28787. + fprintf (stderr, "%s: %s: ", program_name, mode);
  28788. + vfprintf (stderr, message, ap);
  28789. + fprintf (stderr, ".\n");
  28790. +
  28791. + if (exit_status >= 0)
  28792. + exit (exit_status);
  28793. +}
  28794. +
  28795. +void
  28796. +lt_fatal (const char *message, ...)
  28797. +{
  28798. + va_list ap;
  28799. + va_start (ap, message);
  28800. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  28801. + va_end (ap);
  28802. +}
  28803. +
  28804. +void
  28805. +lt_setenv (const char *name, const char *value)
  28806. +{
  28807. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  28808. + (name ? name : "<NULL>"),
  28809. + (value ? value : "<NULL>")));
  28810. + {
  28811. +#ifdef HAVE_SETENV
  28812. + /* always make a copy, for consistency with !HAVE_SETENV */
  28813. + char *str = xstrdup (value);
  28814. + setenv (name, str, 1);
  28815. +#else
  28816. + int len = strlen (name) + 1 + strlen (value) + 1;
  28817. + char *str = XMALLOC (char, len);
  28818. + sprintf (str, "%s=%s", name, value);
  28819. + if (putenv (str) != EXIT_SUCCESS)
  28820. + {
  28821. + XFREE (str);
  28822. + }
  28823. +#endif
  28824. + }
  28825. +}
  28826. +
  28827. +char *
  28828. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  28829. +{
  28830. + char *new_value;
  28831. + if (orig_value && *orig_value)
  28832. + {
  28833. + int orig_value_len = strlen (orig_value);
  28834. + int add_len = strlen (add);
  28835. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  28836. + if (to_end)
  28837. + {
  28838. + strcpy (new_value, orig_value);
  28839. + strcpy (new_value + orig_value_len, add);
  28840. + }
  28841. + else
  28842. + {
  28843. + strcpy (new_value, add);
  28844. + strcpy (new_value + add_len, orig_value);
  28845. + }
  28846. + }
  28847. + else
  28848. + {
  28849. + new_value = xstrdup (add);
  28850. + }
  28851. + return new_value;
  28852. +}
  28853. +
  28854. +int
  28855. +lt_split_name_value (const char *arg, char** name, char** value)
  28856. +{
  28857. + const char *p;
  28858. + int len;
  28859. + if (!arg || !*arg)
  28860. + return 1;
  28861. +
  28862. + p = strchr (arg, (int)'=');
  28863. +
  28864. + if (!p)
  28865. + return 1;
  28866. +
  28867. + *value = xstrdup (++p);
  28868. +
  28869. + len = strlen (arg) - strlen (*value);
  28870. + *name = XMALLOC (char, len);
  28871. + strncpy (*name, arg, len-1);
  28872. + (*name)[len - 1] = '\0';
  28873. +
  28874. + return 0;
  28875. +}
  28876. +
  28877. +void
  28878. +lt_opt_process_env_set (const char *arg)
  28879. +{
  28880. + char *name = NULL;
  28881. + char *value = NULL;
  28882. +
  28883. + if (lt_split_name_value (arg, &name, &value) != 0)
  28884. + {
  28885. + XFREE (name);
  28886. + XFREE (value);
  28887. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  28888. + }
  28889. +
  28890. + lt_setenv (name, value);
  28891. + XFREE (name);
  28892. + XFREE (value);
  28893. +}
  28894. +
  28895. +void
  28896. +lt_opt_process_env_prepend (const char *arg)
  28897. +{
  28898. + char *name = NULL;
  28899. + char *value = NULL;
  28900. + char *new_value = NULL;
  28901. +
  28902. + if (lt_split_name_value (arg, &name, &value) != 0)
  28903. + {
  28904. + XFREE (name);
  28905. + XFREE (value);
  28906. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  28907. + }
  28908. +
  28909. + new_value = lt_extend_str (getenv (name), value, 0);
  28910. + lt_setenv (name, new_value);
  28911. + XFREE (new_value);
  28912. + XFREE (name);
  28913. + XFREE (value);
  28914. +}
  28915. +
  28916. +void
  28917. +lt_opt_process_env_append (const char *arg)
  28918. +{
  28919. + char *name = NULL;
  28920. + char *value = NULL;
  28921. + char *new_value = NULL;
  28922. +
  28923. + if (lt_split_name_value (arg, &name, &value) != 0)
  28924. + {
  28925. + XFREE (name);
  28926. + XFREE (value);
  28927. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  28928. + }
  28929. +
  28930. + new_value = lt_extend_str (getenv (name), value, 1);
  28931. + lt_setenv (name, new_value);
  28932. + XFREE (new_value);
  28933. + XFREE (name);
  28934. + XFREE (value);
  28935. +}
  28936. +
  28937. +void
  28938. +lt_update_exe_path (const char *name, const char *value)
  28939. +{
  28940. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  28941. + (name ? name : "<NULL>"),
  28942. + (value ? value : "<NULL>")));
  28943. +
  28944. + if (name && *name && value && *value)
  28945. + {
  28946. + char *new_value = lt_extend_str (getenv (name), value, 0);
  28947. + /* some systems can't cope with a ':'-terminated path #' */
  28948. + int len = strlen (new_value);
  28949. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  28950. + {
  28951. + new_value[len-1] = '\0';
  28952. + }
  28953. + lt_setenv (name, new_value);
  28954. + XFREE (new_value);
  28955. + }
  28956. +}
  28957. +
  28958. +void
  28959. +lt_update_lib_path (const char *name, const char *value)
  28960. +{
  28961. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  28962. + (name ? name : "<NULL>"),
  28963. + (value ? value : "<NULL>")));
  28964. +
  28965. + if (name && *name && value && *value)
  28966. + {
  28967. + char *new_value = lt_extend_str (getenv (name), value, 0);
  28968. + lt_setenv (name, new_value);
  28969. + XFREE (new_value);
  28970. + }
  28971. +}
  28972. +
  28973. +
  28974. +EOF
  28975. +}
  28976. +# end: func_emit_cwrapperexe_src
  28977. +
  28978. +# func_mode_link arg...
  28979. +func_mode_link ()
  28980. +{
  28981. + $opt_debug
  28982. + case $host in
  28983. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  28984. + # It is impossible to link a dll without this setting, and
  28985. + # we shouldn't force the makefile maintainer to figure out
  28986. + # which system we are compiling for in order to pass an extra
  28987. + # flag for every libtool invocation.
  28988. + # allow_undefined=no
  28989. +
  28990. + # FIXME: Unfortunately, there are problems with the above when trying
  28991. + # to make a dll which has undefined symbols, in which case not
  28992. + # even a static library is built. For now, we need to specify
  28993. + # -no-undefined on the libtool link line when we can be certain
  28994. + # that all symbols are satisfied, otherwise we get a static library.
  28995. + allow_undefined=yes
  28996. + ;;
  28997. + *)
  28998. + allow_undefined=yes
  28999. + ;;
  29000. + esac
  29001. + libtool_args=$nonopt
  29002. + base_compile="$nonopt $@"
  29003. + compile_command=$nonopt
  29004. + finalize_command=$nonopt
  29005. +
  29006. + compile_rpath=
  29007. + finalize_rpath=
  29008. + compile_shlibpath=
  29009. + finalize_shlibpath=
  29010. + convenience=
  29011. + old_convenience=
  29012. + deplibs=
  29013. + old_deplibs=
  29014. + compiler_flags=
  29015. + linker_flags=
  29016. + dllsearchpath=
  29017. + lib_search_path=`pwd`
  29018. + inst_prefix_dir=
  29019. + new_inherited_linker_flags=
  29020. +
  29021. + avoid_version=no
  29022. + dlfiles=
  29023. + dlprefiles=
  29024. + dlself=no
  29025. + export_dynamic=no
  29026. + export_symbols=
  29027. + export_symbols_regex=
  29028. + generated=
  29029. + libobjs=
  29030. + ltlibs=
  29031. + module=no
  29032. + no_install=no
  29033. + objs=
  29034. + non_pic_objects=
  29035. + precious_files_regex=
  29036. + prefer_static_libs=no
  29037. + preload=no
  29038. + prev=
  29039. + prevarg=
  29040. + release=
  29041. + rpath=
  29042. + xrpath=
  29043. + perm_rpath=
  29044. + temp_rpath=
  29045. + thread_safe=no
  29046. + vinfo=
  29047. + vinfo_number=no
  29048. + weak_libs=
  29049. + single_module="${wl}-single_module"
  29050. + func_infer_tag $base_compile
  29051. +
  29052. + # We need to know -static, to get the right output filenames.
  29053. + for arg
  29054. + do
  29055. + case $arg in
  29056. + -shared)
  29057. + test "$build_libtool_libs" != yes && \
  29058. + func_fatal_configuration "can not build a shared library"
  29059. + build_old_libs=no
  29060. + break
  29061. + ;;
  29062. + -all-static | -static | -static-libtool-libs)
  29063. + case $arg in
  29064. + -all-static)
  29065. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  29066. + func_warning "complete static linking is impossible in this configuration"
  29067. + fi
  29068. + if test -n "$link_static_flag"; then
  29069. + dlopen_self=$dlopen_self_static
  29070. + fi
  29071. + prefer_static_libs=yes
  29072. + ;;
  29073. + -static)
  29074. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  29075. + dlopen_self=$dlopen_self_static
  29076. + fi
  29077. + prefer_static_libs=built
  29078. + ;;
  29079. + -static-libtool-libs)
  29080. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  29081. + dlopen_self=$dlopen_self_static
  29082. + fi
  29083. + prefer_static_libs=yes
  29084. + ;;
  29085. + esac
  29086. + build_libtool_libs=no
  29087. + build_old_libs=yes
  29088. + break
  29089. + ;;
  29090. + esac
  29091. + done
  29092. +
  29093. + # See if our shared archives depend on static archives.
  29094. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  29095. +
  29096. + # Go through the arguments, transforming them on the way.
  29097. + while test "$#" -gt 0; do
  29098. + arg="$1"
  29099. + shift
  29100. + func_quote_for_eval "$arg"
  29101. + qarg=$func_quote_for_eval_unquoted_result
  29102. + func_append libtool_args " $func_quote_for_eval_result"
  29103. +
  29104. + # If the previous option needs an argument, assign it.
  29105. + if test -n "$prev"; then
  29106. + case $prev in
  29107. + output)
  29108. + func_append compile_command " @OUTPUT@"
  29109. + func_append finalize_command " @OUTPUT@"
  29110. + ;;
  29111. + esac
  29112. +
  29113. + case $prev in
  29114. + dlfiles|dlprefiles)
  29115. + if test "$preload" = no; then
  29116. + # Add the symbol object into the linking commands.
  29117. + func_append compile_command " @SYMFILE@"
  29118. + func_append finalize_command " @SYMFILE@"
  29119. + preload=yes
  29120. + fi
  29121. + case $arg in
  29122. + *.la | *.lo) ;; # We handle these cases below.
  29123. + force)
  29124. + if test "$dlself" = no; then
  29125. + dlself=needless
  29126. + export_dynamic=yes
  29127. + fi
  29128. + prev=
  29129. + continue
  29130. + ;;
  29131. + self)
  29132. + if test "$prev" = dlprefiles; then
  29133. + dlself=yes
  29134. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  29135. + dlself=yes
  29136. + else
  29137. + dlself=needless
  29138. + export_dynamic=yes
  29139. + fi
  29140. + prev=
  29141. + continue
  29142. + ;;
  29143. + *)
  29144. + if test "$prev" = dlfiles; then
  29145. + dlfiles="$dlfiles $arg"
  29146. + else
  29147. + dlprefiles="$dlprefiles $arg"
  29148. + fi
  29149. + prev=
  29150. + continue
  29151. + ;;
  29152. + esac
  29153. + ;;
  29154. + expsyms)
  29155. + export_symbols="$arg"
  29156. + test -f "$arg" \
  29157. + || func_fatal_error "symbol file \`$arg' does not exist"
  29158. + prev=
  29159. + continue
  29160. + ;;
  29161. + expsyms_regex)
  29162. + export_symbols_regex="$arg"
  29163. + prev=
  29164. + continue
  29165. + ;;
  29166. + framework)
  29167. + case $host in
  29168. + *-*-darwin*)
  29169. + case "$deplibs " in
  29170. + *" $qarg.ltframework "*) ;;
  29171. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  29172. + ;;
  29173. + esac
  29174. + ;;
  29175. + esac
  29176. + prev=
  29177. + continue
  29178. + ;;
  29179. + inst_prefix)
  29180. + inst_prefix_dir="$arg"
  29181. + prev=
  29182. + continue
  29183. + ;;
  29184. + objectlist)
  29185. + if test -f "$arg"; then
  29186. + save_arg=$arg
  29187. + moreargs=
  29188. + for fil in `cat "$save_arg"`
  29189. + do
  29190. +# moreargs="$moreargs $fil"
  29191. + arg=$fil
  29192. + # A libtool-controlled object.
  29193. +
  29194. + # Check to see that this really is a libtool object.
  29195. + if func_lalib_unsafe_p "$arg"; then
  29196. + pic_object=
  29197. + non_pic_object=
  29198. +
  29199. + # Read the .lo file
  29200. + func_source "$arg"
  29201. +
  29202. + if test -z "$pic_object" ||
  29203. + test -z "$non_pic_object" ||
  29204. + test "$pic_object" = none &&
  29205. + test "$non_pic_object" = none; then
  29206. + func_fatal_error "cannot find name of object for \`$arg'"
  29207. + fi
  29208. +
  29209. + # Extract subdirectory from the argument.
  29210. + func_dirname "$arg" "/" ""
  29211. + xdir="$func_dirname_result"
  29212. +
  29213. + if test "$pic_object" != none; then
  29214. + # Prepend the subdirectory the object is found in.
  29215. + pic_object="$xdir$pic_object"
  29216. +
  29217. + if test "$prev" = dlfiles; then
  29218. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  29219. + dlfiles="$dlfiles $pic_object"
  29220. + prev=
  29221. + continue
  29222. + else
  29223. + # If libtool objects are unsupported, then we need to preload.
  29224. + prev=dlprefiles
  29225. + fi
  29226. + fi
  29227. +
  29228. + # CHECK ME: I think I busted this. -Ossama
  29229. + if test "$prev" = dlprefiles; then
  29230. + # Preload the old-style object.
  29231. + dlprefiles="$dlprefiles $pic_object"
  29232. + prev=
  29233. + fi
  29234. +
  29235. + # A PIC object.
  29236. + func_append libobjs " $pic_object"
  29237. + arg="$pic_object"
  29238. + fi
  29239. +
  29240. + # Non-PIC object.
  29241. + if test "$non_pic_object" != none; then
  29242. + # Prepend the subdirectory the object is found in.
  29243. + non_pic_object="$xdir$non_pic_object"
  29244. +
  29245. + # A standard non-PIC object
  29246. + func_append non_pic_objects " $non_pic_object"
  29247. + if test -z "$pic_object" || test "$pic_object" = none ; then
  29248. + arg="$non_pic_object"
  29249. + fi
  29250. + else
  29251. + # If the PIC object exists, use it instead.
  29252. + # $xdir was prepended to $pic_object above.
  29253. + non_pic_object="$pic_object"
  29254. + func_append non_pic_objects " $non_pic_object"
  29255. + fi
  29256. + else
  29257. + # Only an error if not doing a dry-run.
  29258. + if $opt_dry_run; then
  29259. + # Extract subdirectory from the argument.
  29260. + func_dirname "$arg" "/" ""
  29261. + xdir="$func_dirname_result"
  29262. +
  29263. + func_lo2o "$arg"
  29264. + pic_object=$xdir$objdir/$func_lo2o_result
  29265. + non_pic_object=$xdir$func_lo2o_result
  29266. + func_append libobjs " $pic_object"
  29267. + func_append non_pic_objects " $non_pic_object"
  29268. + else
  29269. + func_fatal_error "\`$arg' is not a valid libtool object"
  29270. + fi
  29271. + fi
  29272. + done
  29273. + else
  29274. + func_fatal_error "link input file \`$arg' does not exist"
  29275. + fi
  29276. + arg=$save_arg
  29277. + prev=
  29278. + continue
  29279. + ;;
  29280. + precious_regex)
  29281. + precious_files_regex="$arg"
  29282. + prev=
  29283. + continue
  29284. + ;;
  29285. + release)
  29286. + release="-$arg"
  29287. + prev=
  29288. + continue
  29289. + ;;
  29290. + rpath | xrpath)
  29291. + # We need an absolute path.
  29292. + case $arg in
  29293. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  29294. + *)
  29295. + func_fatal_error "only absolute run-paths are allowed"
  29296. + ;;
  29297. + esac
  29298. + if test "$prev" = rpath; then
  29299. + case "$rpath " in
  29300. + *" $arg "*) ;;
  29301. + *) rpath="$rpath $arg" ;;
  29302. + esac
  29303. + else
  29304. + case "$xrpath " in
  29305. + *" $arg "*) ;;
  29306. + *) xrpath="$xrpath $arg" ;;
  29307. + esac
  29308. + fi
  29309. + prev=
  29310. + continue
  29311. + ;;
  29312. + shrext)
  29313. + shrext_cmds="$arg"
  29314. + prev=
  29315. + continue
  29316. + ;;
  29317. + weak)
  29318. + weak_libs="$weak_libs $arg"
  29319. + prev=
  29320. + continue
  29321. + ;;
  29322. + xcclinker)
  29323. + linker_flags="$linker_flags $qarg"
  29324. + compiler_flags="$compiler_flags $qarg"
  29325. + prev=
  29326. + func_append compile_command " $qarg"
  29327. + func_append finalize_command " $qarg"
  29328. + continue
  29329. + ;;
  29330. + xcompiler)
  29331. + compiler_flags="$compiler_flags $qarg"
  29332. + prev=
  29333. + func_append compile_command " $qarg"
  29334. + func_append finalize_command " $qarg"
  29335. + continue
  29336. + ;;
  29337. + xlinker)
  29338. + linker_flags="$linker_flags $qarg"
  29339. + compiler_flags="$compiler_flags $wl$qarg"
  29340. + prev=
  29341. + func_append compile_command " $wl$qarg"
  29342. + func_append finalize_command " $wl$qarg"
  29343. + continue
  29344. + ;;
  29345. + *)
  29346. + eval "$prev=\"\$arg\""
  29347. + prev=
  29348. + continue
  29349. + ;;
  29350. + esac
  29351. + fi # test -n "$prev"
  29352. +
  29353. + prevarg="$arg"
  29354. +
  29355. + case $arg in
  29356. + -all-static)
  29357. + if test -n "$link_static_flag"; then
  29358. + # See comment for -static flag below, for more details.
  29359. + func_append compile_command " $link_static_flag"
  29360. + func_append finalize_command " $link_static_flag"
  29361. + fi
  29362. + continue
  29363. + ;;
  29364. +
  29365. + -allow-undefined)
  29366. + # FIXME: remove this flag sometime in the future.
  29367. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  29368. + ;;
  29369. +
  29370. + -avoid-version)
  29371. + avoid_version=yes
  29372. + continue
  29373. + ;;
  29374. +
  29375. + -dlopen)
  29376. + prev=dlfiles
  29377. + continue
  29378. + ;;
  29379. +
  29380. + -dlpreopen)
  29381. + prev=dlprefiles
  29382. + continue
  29383. + ;;
  29384. +
  29385. + -export-dynamic)
  29386. + export_dynamic=yes
  29387. + continue
  29388. + ;;
  29389. +
  29390. + -export-symbols | -export-symbols-regex)
  29391. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  29392. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  29393. + fi
  29394. + if test "X$arg" = "X-export-symbols"; then
  29395. + prev=expsyms
  29396. + else
  29397. + prev=expsyms_regex
  29398. + fi
  29399. + continue
  29400. + ;;
  29401. +
  29402. + -framework)
  29403. + prev=framework
  29404. + continue
  29405. + ;;
  29406. +
  29407. + -inst-prefix-dir)
  29408. + prev=inst_prefix
  29409. + continue
  29410. + ;;
  29411. +
  29412. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  29413. + # so, if we see these flags be careful not to treat them like -L
  29414. + -L[A-Z][A-Z]*:*)
  29415. + case $with_gcc/$host in
  29416. + no/*-*-irix* | /*-*-irix*)
  29417. + func_append compile_command " $arg"
  29418. + func_append finalize_command " $arg"
  29419. + ;;
  29420. + esac
  29421. + continue
  29422. + ;;
  29423. +
  29424. + -L*)
  29425. + func_stripname '-L' '' "$arg"
  29426. + dir=$func_stripname_result
  29427. + if test -z "$dir"; then
  29428. + if test "$#" -gt 0; then
  29429. + func_fatal_error "require no space between \`-L' and \`$1'"
  29430. + else
  29431. + func_fatal_error "need path for \`-L' option"
  29432. + fi
  29433. + fi
  29434. + # We need an absolute path.
  29435. + case $dir in
  29436. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  29437. + *)
  29438. + absdir=`cd "$dir" && pwd`
  29439. + test -z "$absdir" && \
  29440. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  29441. + dir="$absdir"
  29442. + ;;
  29443. + esac
  29444. + case "$deplibs " in
  29445. + *" -L$dir "*) ;;
  29446. + *)
  29447. + deplibs="$deplibs -L$dir"
  29448. + lib_search_path="$lib_search_path $dir"
  29449. + ;;
  29450. + esac
  29451. + case $host in
  29452. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  29453. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  29454. + case :$dllsearchpath: in
  29455. + *":$dir:"*) ;;
  29456. + ::) dllsearchpath=$dir;;
  29457. + *) dllsearchpath="$dllsearchpath:$dir";;
  29458. + esac
  29459. + case :$dllsearchpath: in
  29460. + *":$testbindir:"*) ;;
  29461. + ::) dllsearchpath=$testbindir;;
  29462. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  29463. + esac
  29464. + ;;
  29465. + esac
  29466. + continue
  29467. + ;;
  29468. +
  29469. + -l*)
  29470. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  29471. + case $host in
  29472. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  29473. + # These systems don't actually have a C or math library (as such)
  29474. + continue
  29475. + ;;
  29476. + *-*-os2*)
  29477. + # These systems don't actually have a C library (as such)
  29478. + test "X$arg" = "X-lc" && continue
  29479. + ;;
  29480. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  29481. + # Do not include libc due to us having libc/libc_r.
  29482. + test "X$arg" = "X-lc" && continue
  29483. + ;;
  29484. + *-*-rhapsody* | *-*-darwin1.[012])
  29485. + # Rhapsody C and math libraries are in the System framework
  29486. + deplibs="$deplibs System.ltframework"
  29487. + continue
  29488. + ;;
  29489. + *-*-sco3.2v5* | *-*-sco5v6*)
  29490. + # Causes problems with __ctype
  29491. + test "X$arg" = "X-lc" && continue
  29492. + ;;
  29493. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  29494. + # Compiler inserts libc in the correct place for threads to work
  29495. + test "X$arg" = "X-lc" && continue
  29496. + ;;
  29497. + esac
  29498. + elif test "X$arg" = "X-lc_r"; then
  29499. + case $host in
  29500. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  29501. + # Do not include libc_r directly, use -pthread flag.
  29502. + continue
  29503. + ;;
  29504. + esac
  29505. + fi
  29506. + deplibs="$deplibs $arg"
  29507. + continue
  29508. + ;;
  29509. +
  29510. + -module)
  29511. + module=yes
  29512. + continue
  29513. + ;;
  29514. +
  29515. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  29516. + # classes, name mangling, and exception handling.
  29517. + # Darwin uses the -arch flag to determine output architecture.
  29518. + -model|-arch|-isysroot)
  29519. + compiler_flags="$compiler_flags $arg"
  29520. + func_append compile_command " $arg"
  29521. + func_append finalize_command " $arg"
  29522. + prev=xcompiler
  29523. + continue
  29524. + ;;
  29525. +
  29526. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  29527. + compiler_flags="$compiler_flags $arg"
  29528. + func_append compile_command " $arg"
  29529. + func_append finalize_command " $arg"
  29530. + case "$new_inherited_linker_flags " in
  29531. + *" $arg "*) ;;
  29532. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  29533. + esac
  29534. + continue
  29535. + ;;
  29536. +
  29537. + -multi_module)
  29538. + single_module="${wl}-multi_module"
  29539. + continue
  29540. + ;;
  29541. +
  29542. + -no-fast-install)
  29543. + fast_install=no
  29544. + continue
  29545. + ;;
  29546. +
  29547. + -no-install)
  29548. + case $host in
  29549. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  29550. + # The PATH hackery in wrapper scripts is required on Windows
  29551. + # and Darwin in order for the loader to find any dlls it needs.
  29552. + func_warning "\`-no-install' is ignored for $host"
  29553. + func_warning "assuming \`-no-fast-install' instead"
  29554. + fast_install=no
  29555. + ;;
  29556. + *) no_install=yes ;;
  29557. + esac
  29558. + continue
  29559. + ;;
  29560. +
  29561. + -no-undefined)
  29562. + allow_undefined=no
  29563. + continue
  29564. + ;;
  29565. +
  29566. + -objectlist)
  29567. + prev=objectlist
  29568. + continue
  29569. + ;;
  29570. +
  29571. + -o) prev=output ;;
  29572. +
  29573. + -precious-files-regex)
  29574. + prev=precious_regex
  29575. + continue
  29576. + ;;
  29577. +
  29578. + -release)
  29579. + prev=release
  29580. + continue
  29581. + ;;
  29582. +
  29583. + -rpath)
  29584. + prev=rpath
  29585. + continue
  29586. + ;;
  29587. +
  29588. + -R)
  29589. + prev=xrpath
  29590. + continue
  29591. + ;;
  29592. +
  29593. + -R*)
  29594. + func_stripname '-R' '' "$arg"
  29595. + dir=$func_stripname_result
  29596. + # We need an absolute path.
  29597. + case $dir in
  29598. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  29599. + *)
  29600. + func_fatal_error "only absolute run-paths are allowed"
  29601. + ;;
  29602. + esac
  29603. + case "$xrpath " in
  29604. + *" $dir "*) ;;
  29605. + *) xrpath="$xrpath $dir" ;;
  29606. + esac
  29607. + continue
  29608. + ;;
  29609. +
  29610. + -shared)
  29611. + # The effects of -shared are defined in a previous loop.
  29612. + continue
  29613. + ;;
  29614. +
  29615. + -shrext)
  29616. + prev=shrext
  29617. + continue
  29618. + ;;
  29619. +
  29620. + -static | -static-libtool-libs)
  29621. + # The effects of -static are defined in a previous loop.
  29622. + # We used to do the same as -all-static on platforms that
  29623. + # didn't have a PIC flag, but the assumption that the effects
  29624. + # would be equivalent was wrong. It would break on at least
  29625. + # Digital Unix and AIX.
  29626. + continue
  29627. + ;;
  29628. +
  29629. + -thread-safe)
  29630. + thread_safe=yes
  29631. + continue
  29632. + ;;
  29633. +
  29634. + -version-info)
  29635. + prev=vinfo
  29636. + continue
  29637. + ;;
  29638. +
  29639. + -version-number)
  29640. + prev=vinfo
  29641. + vinfo_number=yes
  29642. + continue
  29643. + ;;
  29644. +
  29645. + -weak)
  29646. + prev=weak
  29647. + continue
  29648. + ;;
  29649. +
  29650. + -Wc,*)
  29651. + func_stripname '-Wc,' '' "$arg"
  29652. + args=$func_stripname_result
  29653. + arg=
  29654. + save_ifs="$IFS"; IFS=','
  29655. + for flag in $args; do
  29656. + IFS="$save_ifs"
  29657. + func_quote_for_eval "$flag"
  29658. + arg="$arg $wl$func_quote_for_eval_result"
  29659. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  29660. + done
  29661. + IFS="$save_ifs"
  29662. + func_stripname ' ' '' "$arg"
  29663. + arg=$func_stripname_result
  29664. + ;;
  29665. +
  29666. + -Wl,*)
  29667. + func_stripname '-Wl,' '' "$arg"
  29668. + args=$func_stripname_result
  29669. + arg=
  29670. + save_ifs="$IFS"; IFS=','
  29671. + for flag in $args; do
  29672. + IFS="$save_ifs"
  29673. + func_quote_for_eval "$flag"
  29674. + arg="$arg $wl$func_quote_for_eval_result"
  29675. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  29676. + linker_flags="$linker_flags $func_quote_for_eval_result"
  29677. + done
  29678. + IFS="$save_ifs"
  29679. + func_stripname ' ' '' "$arg"
  29680. + arg=$func_stripname_result
  29681. + ;;
  29682. +
  29683. + -Xcompiler)
  29684. + prev=xcompiler
  29685. + continue
  29686. + ;;
  29687. +
  29688. + -Xlinker)
  29689. + prev=xlinker
  29690. + continue
  29691. + ;;
  29692. +
  29693. + -XCClinker)
  29694. + prev=xcclinker
  29695. + continue
  29696. + ;;
  29697. +
  29698. + # -msg_* for osf cc
  29699. + -msg_*)
  29700. + func_quote_for_eval "$arg"
  29701. + arg="$func_quote_for_eval_result"
  29702. + ;;
  29703. +
  29704. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  29705. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  29706. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  29707. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  29708. + # -q* pass through compiler args for the IBM compiler
  29709. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  29710. + # compiler args for GCC
  29711. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  29712. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  29713. + # @file GCC response files
  29714. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  29715. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  29716. + func_quote_for_eval "$arg"
  29717. + arg="$func_quote_for_eval_result"
  29718. + func_append compile_command " $arg"
  29719. + func_append finalize_command " $arg"
  29720. + compiler_flags="$compiler_flags $arg"
  29721. + continue
  29722. + ;;
  29723. +
  29724. + # Some other compiler flag.
  29725. + -* | +*)
  29726. + func_quote_for_eval "$arg"
  29727. + arg="$func_quote_for_eval_result"
  29728. + ;;
  29729. +
  29730. + *.$objext)
  29731. + # A standard object.
  29732. + objs="$objs $arg"
  29733. + ;;
  29734. +
  29735. + *.lo)
  29736. + # A libtool-controlled object.
  29737. +
  29738. + # Check to see that this really is a libtool object.
  29739. + if func_lalib_unsafe_p "$arg"; then
  29740. + pic_object=
  29741. + non_pic_object=
  29742. +
  29743. + # Read the .lo file
  29744. + func_source "$arg"
  29745. +
  29746. + if test -z "$pic_object" ||
  29747. + test -z "$non_pic_object" ||
  29748. + test "$pic_object" = none &&
  29749. + test "$non_pic_object" = none; then
  29750. + func_fatal_error "cannot find name of object for \`$arg'"
  29751. + fi
  29752. +
  29753. + # Extract subdirectory from the argument.
  29754. + func_dirname "$arg" "/" ""
  29755. + xdir="$func_dirname_result"
  29756. +
  29757. + if test "$pic_object" != none; then
  29758. + # Prepend the subdirectory the object is found in.
  29759. + pic_object="$xdir$pic_object"
  29760. +
  29761. + if test "$prev" = dlfiles; then
  29762. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  29763. + dlfiles="$dlfiles $pic_object"
  29764. + prev=
  29765. + continue
  29766. + else
  29767. + # If libtool objects are unsupported, then we need to preload.
  29768. + prev=dlprefiles
  29769. + fi
  29770. + fi
  29771. +
  29772. + # CHECK ME: I think I busted this. -Ossama
  29773. + if test "$prev" = dlprefiles; then
  29774. + # Preload the old-style object.
  29775. + dlprefiles="$dlprefiles $pic_object"
  29776. + prev=
  29777. + fi
  29778. +
  29779. + # A PIC object.
  29780. + func_append libobjs " $pic_object"
  29781. + arg="$pic_object"
  29782. + fi
  29783. +
  29784. + # Non-PIC object.
  29785. + if test "$non_pic_object" != none; then
  29786. + # Prepend the subdirectory the object is found in.
  29787. + non_pic_object="$xdir$non_pic_object"
  29788. +
  29789. + # A standard non-PIC object
  29790. + func_append non_pic_objects " $non_pic_object"
  29791. + if test -z "$pic_object" || test "$pic_object" = none ; then
  29792. + arg="$non_pic_object"
  29793. + fi
  29794. + else
  29795. + # If the PIC object exists, use it instead.
  29796. + # $xdir was prepended to $pic_object above.
  29797. + non_pic_object="$pic_object"
  29798. + func_append non_pic_objects " $non_pic_object"
  29799. + fi
  29800. + else
  29801. + # Only an error if not doing a dry-run.
  29802. + if $opt_dry_run; then
  29803. + # Extract subdirectory from the argument.
  29804. + func_dirname "$arg" "/" ""
  29805. + xdir="$func_dirname_result"
  29806. +
  29807. + func_lo2o "$arg"
  29808. + pic_object=$xdir$objdir/$func_lo2o_result
  29809. + non_pic_object=$xdir$func_lo2o_result
  29810. + func_append libobjs " $pic_object"
  29811. + func_append non_pic_objects " $non_pic_object"
  29812. + else
  29813. + func_fatal_error "\`$arg' is not a valid libtool object"
  29814. + fi
  29815. + fi
  29816. + ;;
  29817. +
  29818. + *.$libext)
  29819. + # An archive.
  29820. + deplibs="$deplibs $arg"
  29821. + old_deplibs="$old_deplibs $arg"
  29822. + continue
  29823. + ;;
  29824. +
  29825. + *.la)
  29826. + # A libtool-controlled library.
  29827. +
  29828. + if test "$prev" = dlfiles; then
  29829. + # This library was specified with -dlopen.
  29830. + dlfiles="$dlfiles $arg"
  29831. + prev=
  29832. + elif test "$prev" = dlprefiles; then
  29833. + # The library was specified with -dlpreopen.
  29834. + dlprefiles="$dlprefiles $arg"
  29835. + prev=
  29836. + else
  29837. + deplibs="$deplibs $arg"
  29838. + fi
  29839. + continue
  29840. + ;;
  29841. +
  29842. + # Some other compiler argument.
  29843. + *)
  29844. + # Unknown arguments in both finalize_command and compile_command need
  29845. + # to be aesthetically quoted because they are evaled later.
  29846. + func_quote_for_eval "$arg"
  29847. + arg="$func_quote_for_eval_result"
  29848. + ;;
  29849. + esac # arg
  29850. +
  29851. + # Now actually substitute the argument into the commands.
  29852. + if test -n "$arg"; then
  29853. + func_append compile_command " $arg"
  29854. + func_append finalize_command " $arg"
  29855. + fi
  29856. + done # argument parsing loop
  29857. +
  29858. + test -n "$prev" && \
  29859. + func_fatal_help "the \`$prevarg' option requires an argument"
  29860. +
  29861. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  29862. + eval arg=\"$export_dynamic_flag_spec\"
  29863. + func_append compile_command " $arg"
  29864. + func_append finalize_command " $arg"
  29865. + fi
  29866. +
  29867. + oldlibs=
  29868. + # calculate the name of the file, without its directory
  29869. + func_basename "$output"
  29870. + outputname="$func_basename_result"
  29871. + libobjs_save="$libobjs"
  29872. +
  29873. + if test -n "$shlibpath_var"; then
  29874. + # get the directories listed in $shlibpath_var
  29875. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  29876. + else
  29877. + shlib_search_path=
  29878. + fi
  29879. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  29880. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  29881. +
  29882. + func_dirname "$output" "/" ""
  29883. + output_objdir="$func_dirname_result$objdir"
  29884. + # Create the object directory.
  29885. + func_mkdir_p "$output_objdir"
  29886. +
  29887. + # Determine the type of output
  29888. + case $output in
  29889. + "")
  29890. + func_fatal_help "you must specify an output file"
  29891. + ;;
  29892. + *.$libext) linkmode=oldlib ;;
  29893. + *.lo | *.$objext) linkmode=obj ;;
  29894. + *.la) linkmode=lib ;;
  29895. + *) linkmode=prog ;; # Anything else should be a program.
  29896. + esac
  29897. +
  29898. + specialdeplibs=
  29899. +
  29900. + libs=
  29901. + # Find all interdependent deplibs by searching for libraries
  29902. + # that are linked more than once (e.g. -la -lb -la)
  29903. + for deplib in $deplibs; do
  29904. + if $opt_duplicate_deps ; then
  29905. + case "$libs " in
  29906. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  29907. + esac
  29908. + fi
  29909. + libs="$libs $deplib"
  29910. + done
  29911. +
  29912. + if test "$linkmode" = lib; then
  29913. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  29914. +
  29915. + # Compute libraries that are listed more than once in $predeps
  29916. + # $postdeps and mark them as special (i.e., whose duplicates are
  29917. + # not to be eliminated).
  29918. + pre_post_deps=
  29919. + if $opt_duplicate_compiler_generated_deps; then
  29920. + for pre_post_dep in $predeps $postdeps; do
  29921. + case "$pre_post_deps " in
  29922. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  29923. + esac
  29924. + pre_post_deps="$pre_post_deps $pre_post_dep"
  29925. + done
  29926. + fi
  29927. + pre_post_deps=
  29928. + fi
  29929. +
  29930. + deplibs=
  29931. + newdependency_libs=
  29932. + newlib_search_path=
  29933. + need_relink=no # whether we're linking any uninstalled libtool libraries
  29934. + notinst_deplibs= # not-installed libtool libraries
  29935. + notinst_path= # paths that contain not-installed libtool libraries
  29936. +
  29937. + case $linkmode in
  29938. + lib)
  29939. + passes="conv dlpreopen link"
  29940. + for file in $dlfiles $dlprefiles; do
  29941. + case $file in
  29942. + *.la) ;;
  29943. + *)
  29944. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  29945. + ;;
  29946. + esac
  29947. + done
  29948. + ;;
  29949. + prog)
  29950. + compile_deplibs=
  29951. + finalize_deplibs=
  29952. + alldeplibs=no
  29953. + newdlfiles=
  29954. + newdlprefiles=
  29955. + passes="conv scan dlopen dlpreopen link"
  29956. + ;;
  29957. + *) passes="conv"
  29958. + ;;
  29959. + esac
  29960. +
  29961. + for pass in $passes; do
  29962. + # The preopen pass in lib mode reverses $deplibs; put it back here
  29963. + # so that -L comes before libs that need it for instance...
  29964. + if test "$linkmode,$pass" = "lib,link"; then
  29965. + ## FIXME: Find the place where the list is rebuilt in the wrong
  29966. + ## order, and fix it there properly
  29967. + tmp_deplibs=
  29968. + for deplib in $deplibs; do
  29969. + tmp_deplibs="$deplib $tmp_deplibs"
  29970. + done
  29971. + deplibs="$tmp_deplibs"
  29972. + fi
  29973. +
  29974. + if test "$linkmode,$pass" = "lib,link" ||
  29975. + test "$linkmode,$pass" = "prog,scan"; then
  29976. + libs="$deplibs"
  29977. + deplibs=
  29978. + fi
  29979. + if test "$linkmode" = prog; then
  29980. + case $pass in
  29981. + dlopen) libs="$dlfiles" ;;
  29982. + dlpreopen) libs="$dlprefiles" ;;
  29983. + link)
  29984. + libs="$deplibs %DEPLIBS%"
  29985. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  29986. + ;;
  29987. + esac
  29988. + fi
  29989. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  29990. + # Collect and forward deplibs of preopened libtool libs
  29991. + for lib in $dlprefiles; do
  29992. + # Ignore non-libtool-libs
  29993. + dependency_libs=
  29994. + case $lib in
  29995. + *.la) func_source "$lib" ;;
  29996. + esac
  29997. +
  29998. + # Collect preopened libtool deplibs, except any this library
  29999. + # has declared as weak libs
  30000. + for deplib in $dependency_libs; do
  30001. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  30002. + case " $weak_libs " in
  30003. + *" $deplib_base "*) ;;
  30004. + *) deplibs="$deplibs $deplib" ;;
  30005. + esac
  30006. + done
  30007. + done
  30008. + libs="$dlprefiles"
  30009. + fi
  30010. + if test "$pass" = dlopen; then
  30011. + # Collect dlpreopened libraries
  30012. + save_deplibs="$deplibs"
  30013. + deplibs=
  30014. + fi
  30015. +
  30016. + for deplib in $libs; do
  30017. + lib=
  30018. + found=no
  30019. + case $deplib in
  30020. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  30021. + if test "$linkmode,$pass" = "prog,link"; then
  30022. + compile_deplibs="$deplib $compile_deplibs"
  30023. + finalize_deplibs="$deplib $finalize_deplibs"
  30024. + else
  30025. + compiler_flags="$compiler_flags $deplib"
  30026. + if test "$linkmode" = lib ; then
  30027. + case "$new_inherited_linker_flags " in
  30028. + *" $deplib "*) ;;
  30029. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  30030. + esac
  30031. + fi
  30032. + fi
  30033. + continue
  30034. + ;;
  30035. + -l*)
  30036. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  30037. + func_warning "\`-l' is ignored for archives/objects"
  30038. + continue
  30039. + fi
  30040. + func_stripname '-l' '' "$deplib"
  30041. + name=$func_stripname_result
  30042. + if test "$linkmode" = lib; then
  30043. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  30044. + else
  30045. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  30046. + fi
  30047. + for searchdir in $searchdirs; do
  30048. + for search_ext in .la $std_shrext .so .a; do
  30049. + # Search the libtool library
  30050. + lib="$searchdir/lib${name}${search_ext}"
  30051. + if test -f "$lib"; then
  30052. + if test "$search_ext" = ".la"; then
  30053. + found=yes
  30054. + else
  30055. + found=no
  30056. + fi
  30057. + break 2
  30058. + fi
  30059. + done
  30060. + done
  30061. + if test "$found" != yes; then
  30062. + # deplib doesn't seem to be a libtool library
  30063. + if test "$linkmode,$pass" = "prog,link"; then
  30064. + compile_deplibs="$deplib $compile_deplibs"
  30065. + finalize_deplibs="$deplib $finalize_deplibs"
  30066. + else
  30067. + deplibs="$deplib $deplibs"
  30068. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  30069. + fi
  30070. + continue
  30071. + else # deplib is a libtool library
  30072. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  30073. + # We need to do some special things here, and not later.
  30074. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  30075. + case " $predeps $postdeps " in
  30076. + *" $deplib "*)
  30077. + if func_lalib_p "$lib"; then
  30078. + library_names=
  30079. + old_library=
  30080. + func_source "$lib"
  30081. + for l in $old_library $library_names; do
  30082. + ll="$l"
  30083. + done
  30084. + if test "X$ll" = "X$old_library" ; then # only static version available
  30085. + found=no
  30086. + func_dirname "$lib" "" "."
  30087. + ladir="$func_dirname_result"
  30088. + lib=$ladir/$old_library
  30089. + if test "$linkmode,$pass" = "prog,link"; then
  30090. + compile_deplibs="$deplib $compile_deplibs"
  30091. + finalize_deplibs="$deplib $finalize_deplibs"
  30092. + else
  30093. + deplibs="$deplib $deplibs"
  30094. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  30095. + fi
  30096. + continue
  30097. + fi
  30098. + fi
  30099. + ;;
  30100. + *) ;;
  30101. + esac
  30102. + fi
  30103. + fi
  30104. + ;; # -l
  30105. + *.ltframework)
  30106. + if test "$linkmode,$pass" = "prog,link"; then
  30107. + compile_deplibs="$deplib $compile_deplibs"
  30108. + finalize_deplibs="$deplib $finalize_deplibs"
  30109. + else
  30110. + deplibs="$deplib $deplibs"
  30111. + if test "$linkmode" = lib ; then
  30112. + case "$new_inherited_linker_flags " in
  30113. + *" $deplib "*) ;;
  30114. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  30115. + esac
  30116. + fi
  30117. + fi
  30118. + continue
  30119. + ;;
  30120. + -L*)
  30121. + case $linkmode in
  30122. + lib)
  30123. + deplibs="$deplib $deplibs"
  30124. + test "$pass" = conv && continue
  30125. + newdependency_libs="$deplib $newdependency_libs"
  30126. + func_stripname '-L' '' "$deplib"
  30127. + newlib_search_path="$newlib_search_path $func_stripname_result"
  30128. + ;;
  30129. + prog)
  30130. + if test "$pass" = conv; then
  30131. + deplibs="$deplib $deplibs"
  30132. + continue
  30133. + fi
  30134. + if test "$pass" = scan; then
  30135. + deplibs="$deplib $deplibs"
  30136. + else
  30137. + compile_deplibs="$deplib $compile_deplibs"
  30138. + finalize_deplibs="$deplib $finalize_deplibs"
  30139. + fi
  30140. + func_stripname '-L' '' "$deplib"
  30141. + newlib_search_path="$newlib_search_path $func_stripname_result"
  30142. + ;;
  30143. + *)
  30144. + func_warning "\`-L' is ignored for archives/objects"
  30145. + ;;
  30146. + esac # linkmode
  30147. + continue
  30148. + ;; # -L
  30149. + -R*)
  30150. + if test "$pass" = link; then
  30151. + func_stripname '-R' '' "$deplib"
  30152. + dir=$func_stripname_result
  30153. + # Make sure the xrpath contains only unique directories.
  30154. + case "$xrpath " in
  30155. + *" $dir "*) ;;
  30156. + *) xrpath="$xrpath $dir" ;;
  30157. + esac
  30158. + fi
  30159. + deplibs="$deplib $deplibs"
  30160. + continue
  30161. + ;;
  30162. + *.la) lib="$deplib" ;;
  30163. + *.$libext)
  30164. + if test "$pass" = conv; then
  30165. + deplibs="$deplib $deplibs"
  30166. + continue
  30167. + fi
  30168. + case $linkmode in
  30169. + lib)
  30170. + # Linking convenience modules into shared libraries is allowed,
  30171. + # but linking other static libraries is non-portable.
  30172. + case " $dlpreconveniencelibs " in
  30173. + *" $deplib "*) ;;
  30174. + *)
  30175. + valid_a_lib=no
  30176. + case $deplibs_check_method in
  30177. + match_pattern*)
  30178. + set dummy $deplibs_check_method; shift
  30179. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  30180. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  30181. + | $EGREP "$match_pattern_regex" > /dev/null; then
  30182. + valid_a_lib=yes
  30183. + fi
  30184. + ;;
  30185. + pass_all)
  30186. + valid_a_lib=yes
  30187. + ;;
  30188. + esac
  30189. + if test "$valid_a_lib" != yes; then
  30190. + $ECHO
  30191. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  30192. + $ECHO "*** I have the capability to make that library automatically link in when"
  30193. + $ECHO "*** you link to this library. But I can only do this if you have a"
  30194. + $ECHO "*** shared version of the library, which you do not appear to have"
  30195. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  30196. + $ECHO "*** that it is just a static archive that I should not use here."
  30197. + else
  30198. + $ECHO
  30199. + $ECHO "*** Warning: Linking the shared library $output against the"
  30200. + $ECHO "*** static library $deplib is not portable!"
  30201. + deplibs="$deplib $deplibs"
  30202. + fi
  30203. + ;;
  30204. + esac
  30205. + continue
  30206. + ;;
  30207. + prog)
  30208. + if test "$pass" != link; then
  30209. + deplibs="$deplib $deplibs"
  30210. + else
  30211. + compile_deplibs="$deplib $compile_deplibs"
  30212. + finalize_deplibs="$deplib $finalize_deplibs"
  30213. + fi
  30214. + continue
  30215. + ;;
  30216. + esac # linkmode
  30217. + ;; # *.$libext
  30218. + *.lo | *.$objext)
  30219. + if test "$pass" = conv; then
  30220. + deplibs="$deplib $deplibs"
  30221. + elif test "$linkmode" = prog; then
  30222. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  30223. + # If there is no dlopen support or we're linking statically,
  30224. + # we need to preload.
  30225. + newdlprefiles="$newdlprefiles $deplib"
  30226. + compile_deplibs="$deplib $compile_deplibs"
  30227. + finalize_deplibs="$deplib $finalize_deplibs"
  30228. + else
  30229. + newdlfiles="$newdlfiles $deplib"
  30230. + fi
  30231. + fi
  30232. + continue
  30233. + ;;
  30234. + %DEPLIBS%)
  30235. + alldeplibs=yes
  30236. + continue
  30237. + ;;
  30238. + esac # case $deplib
  30239. +
  30240. + if test "$found" = yes || test -f "$lib"; then :
  30241. + else
  30242. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  30243. + fi
  30244. +
  30245. + # Check to see that this really is a libtool archive.
  30246. + func_lalib_unsafe_p "$lib" \
  30247. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  30248. +
  30249. + func_dirname "$lib" "" "."
  30250. + ladir="$func_dirname_result"
  30251. +
  30252. + dlname=
  30253. + dlopen=
  30254. + dlpreopen=
  30255. + libdir=
  30256. + library_names=
  30257. + old_library=
  30258. + inherited_linker_flags=
  30259. + # If the library was installed with an old release of libtool,
  30260. + # it will not redefine variables installed, or shouldnotlink
  30261. + installed=yes
  30262. + shouldnotlink=no
  30263. + avoidtemprpath=
  30264. +
  30265. +
  30266. + # Read the .la file
  30267. + func_source "$lib"
  30268. +
  30269. + # Convert "-framework foo" to "foo.ltframework"
  30270. + if test -n "$inherited_linker_flags"; then
  30271. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  30272. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  30273. + case " $new_inherited_linker_flags " in
  30274. + *" $tmp_inherited_linker_flag "*) ;;
  30275. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  30276. + esac
  30277. + done
  30278. + fi
  30279. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  30280. + if test "$linkmode,$pass" = "lib,link" ||
  30281. + test "$linkmode,$pass" = "prog,scan" ||
  30282. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  30283. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  30284. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  30285. + fi
  30286. +
  30287. + if test "$pass" = conv; then
  30288. + # Only check for convenience libraries
  30289. + deplibs="$lib $deplibs"
  30290. + if test -z "$libdir"; then
  30291. + if test -z "$old_library"; then
  30292. + func_fatal_error "cannot find name of link library for \`$lib'"
  30293. + fi
  30294. + # It is a libtool convenience library, so add in its objects.
  30295. + convenience="$convenience $ladir/$objdir/$old_library"
  30296. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  30297. + tmp_libs=
  30298. + for deplib in $dependency_libs; do
  30299. + deplibs="$deplib $deplibs"
  30300. + if $opt_duplicate_deps ; then
  30301. + case "$tmp_libs " in
  30302. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  30303. + esac
  30304. + fi
  30305. + tmp_libs="$tmp_libs $deplib"
  30306. + done
  30307. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  30308. + func_fatal_error "\`$lib' is not a convenience library"
  30309. + fi
  30310. + continue
  30311. + fi # $pass = conv
  30312. +
  30313. +
  30314. + # Get the name of the library we link against.
  30315. + linklib=
  30316. + for l in $old_library $library_names; do
  30317. + linklib="$l"
  30318. + done
  30319. + if test -z "$linklib"; then
  30320. + func_fatal_error "cannot find name of link library for \`$lib'"
  30321. + fi
  30322. +
  30323. + # This library was specified with -dlopen.
  30324. + if test "$pass" = dlopen; then
  30325. + if test -z "$libdir"; then
  30326. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  30327. + fi
  30328. + if test -z "$dlname" ||
  30329. + test "$dlopen_support" != yes ||
  30330. + test "$build_libtool_libs" = no; then
  30331. + # If there is no dlname, no dlopen support or we're linking
  30332. + # statically, we need to preload. We also need to preload any
  30333. + # dependent libraries so libltdl's deplib preloader doesn't
  30334. + # bomb out in the load deplibs phase.
  30335. + dlprefiles="$dlprefiles $lib $dependency_libs"
  30336. + else
  30337. + newdlfiles="$newdlfiles $lib"
  30338. + fi
  30339. + continue
  30340. + fi # $pass = dlopen
  30341. +
  30342. + # We need an absolute path.
  30343. + case $ladir in
  30344. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  30345. + *)
  30346. + abs_ladir=`cd "$ladir" && pwd`
  30347. + if test -z "$abs_ladir"; then
  30348. + func_warning "cannot determine absolute directory name of \`$ladir'"
  30349. + func_warning "passing it literally to the linker, although it might fail"
  30350. + abs_ladir="$ladir"
  30351. + fi
  30352. + ;;
  30353. + esac
  30354. + func_basename "$lib"
  30355. + laname="$func_basename_result"
  30356. +
  30357. + # Find the relevant object directory and library name.
  30358. + if test "X$installed" = Xyes; then
  30359. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  30360. + func_warning "library \`$lib' was moved."
  30361. + dir="$ladir"
  30362. + absdir="$abs_ladir"
  30363. + libdir="$abs_ladir"
  30364. + else
  30365. + dir="$libdir"
  30366. + absdir="$libdir"
  30367. + fi
  30368. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  30369. + else
  30370. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  30371. + dir="$ladir"
  30372. + absdir="$abs_ladir"
  30373. + # Remove this search path later
  30374. + notinst_path="$notinst_path $abs_ladir"
  30375. + else
  30376. + dir="$ladir/$objdir"
  30377. + absdir="$abs_ladir/$objdir"
  30378. + # Remove this search path later
  30379. + notinst_path="$notinst_path $abs_ladir"
  30380. + fi
  30381. + fi # $installed = yes
  30382. + func_stripname 'lib' '.la' "$laname"
  30383. + name=$func_stripname_result
  30384. +
  30385. + # This library was specified with -dlpreopen.
  30386. + if test "$pass" = dlpreopen; then
  30387. + if test -z "$libdir" && test "$linkmode" = prog; then
  30388. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  30389. + fi
  30390. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  30391. + # are required to link).
  30392. + if test -n "$old_library"; then
  30393. + newdlprefiles="$newdlprefiles $dir/$old_library"
  30394. + # Keep a list of preopened convenience libraries to check
  30395. + # that they are being used correctly in the link pass.
  30396. + test -z "$libdir" && \
  30397. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  30398. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  30399. + elif test -n "$dlname"; then
  30400. + newdlprefiles="$newdlprefiles $dir/$dlname"
  30401. + else
  30402. + newdlprefiles="$newdlprefiles $dir/$linklib"
  30403. + fi
  30404. + fi # $pass = dlpreopen
  30405. +
  30406. + if test -z "$libdir"; then
  30407. + # Link the convenience library
  30408. + if test "$linkmode" = lib; then
  30409. + deplibs="$dir/$old_library $deplibs"
  30410. + elif test "$linkmode,$pass" = "prog,link"; then
  30411. + compile_deplibs="$dir/$old_library $compile_deplibs"
  30412. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  30413. + else
  30414. + deplibs="$lib $deplibs" # used for prog,scan pass
  30415. + fi
  30416. + continue
  30417. + fi
  30418. +
  30419. +
  30420. + if test "$linkmode" = prog && test "$pass" != link; then
  30421. + newlib_search_path="$newlib_search_path $ladir"
  30422. + deplibs="$lib $deplibs"
  30423. +
  30424. + linkalldeplibs=no
  30425. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  30426. + test "$build_libtool_libs" = no; then
  30427. + linkalldeplibs=yes
  30428. + fi
  30429. +
  30430. + tmp_libs=
  30431. + for deplib in $dependency_libs; do
  30432. + case $deplib in
  30433. + -L*) func_stripname '-L' '' "$deplib"
  30434. + newlib_search_path="$newlib_search_path $func_stripname_result"
  30435. + ;;
  30436. + esac
  30437. + # Need to link against all dependency_libs?
  30438. + if test "$linkalldeplibs" = yes; then
  30439. + deplibs="$deplib $deplibs"
  30440. + else
  30441. + # Need to hardcode shared library paths
  30442. + # or/and link against static libraries
  30443. + newdependency_libs="$deplib $newdependency_libs"
  30444. + fi
  30445. + if $opt_duplicate_deps ; then
  30446. + case "$tmp_libs " in
  30447. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  30448. + esac
  30449. + fi
  30450. + tmp_libs="$tmp_libs $deplib"
  30451. + done # for deplib
  30452. + continue
  30453. + fi # $linkmode = prog...
  30454. +
  30455. + if test "$linkmode,$pass" = "prog,link"; then
  30456. + if test -n "$library_names" &&
  30457. + { { test "$prefer_static_libs" = no ||
  30458. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  30459. + test -z "$old_library"; }; then
  30460. + # We need to hardcode the library path
  30461. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  30462. + # Make sure the rpath contains only unique directories.
  30463. + case "$temp_rpath:" in
  30464. + *"$absdir:"*) ;;
  30465. + *) temp_rpath="$temp_rpath$absdir:" ;;
  30466. + esac
  30467. + fi
  30468. +
  30469. + # Hardcode the library path.
  30470. + # Skip directories that are in the system default run-time
  30471. + # search path.
  30472. + case " $sys_lib_dlsearch_path " in
  30473. + *" $absdir "*) ;;
  30474. + *)
  30475. + case "$compile_rpath " in
  30476. + *" $absdir "*) ;;
  30477. + *) compile_rpath="$compile_rpath $absdir"
  30478. + esac
  30479. + ;;
  30480. + esac
  30481. + case " $sys_lib_dlsearch_path " in
  30482. + *" $libdir "*) ;;
  30483. + *)
  30484. + case "$finalize_rpath " in
  30485. + *" $libdir "*) ;;
  30486. + *) finalize_rpath="$finalize_rpath $libdir"
  30487. + esac
  30488. + ;;
  30489. + esac
  30490. + fi # $linkmode,$pass = prog,link...
  30491. +
  30492. + if test "$alldeplibs" = yes &&
  30493. + { test "$deplibs_check_method" = pass_all ||
  30494. + { test "$build_libtool_libs" = yes &&
  30495. + test -n "$library_names"; }; }; then
  30496. + # We only need to search for static libraries
  30497. + continue
  30498. + fi
  30499. + fi
  30500. +
  30501. + link_static=no # Whether the deplib will be linked statically
  30502. + use_static_libs=$prefer_static_libs
  30503. + if test "$use_static_libs" = built && test "$installed" = yes; then
  30504. + use_static_libs=no
  30505. + fi
  30506. + if test -n "$library_names" &&
  30507. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  30508. + case $host in
  30509. + *cygwin* | *mingw* | *cegcc*)
  30510. + # No point in relinking DLLs because paths are not encoded
  30511. + notinst_deplibs="$notinst_deplibs $lib"
  30512. + need_relink=no
  30513. + ;;
  30514. + *)
  30515. + if test "$installed" = no; then
  30516. + notinst_deplibs="$notinst_deplibs $lib"
  30517. + need_relink=yes
  30518. + fi
  30519. + ;;
  30520. + esac
  30521. + # This is a shared library
  30522. +
  30523. + # Warn about portability, can't link against -module's on some
  30524. + # systems (darwin). Don't bleat about dlopened modules though!
  30525. + dlopenmodule=""
  30526. + for dlpremoduletest in $dlprefiles; do
  30527. + if test "X$dlpremoduletest" = "X$lib"; then
  30528. + dlopenmodule="$dlpremoduletest"
  30529. + break
  30530. + fi
  30531. + done
  30532. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  30533. + $ECHO
  30534. + if test "$linkmode" = prog; then
  30535. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  30536. + else
  30537. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  30538. + fi
  30539. + $ECHO "*** $linklib is not portable!"
  30540. + fi
  30541. + if test "$linkmode" = lib &&
  30542. + test "$hardcode_into_libs" = yes; then
  30543. + # Hardcode the library path.
  30544. + # Skip directories that are in the system default run-time
  30545. + # search path.
  30546. + case " $sys_lib_dlsearch_path " in
  30547. + *" $absdir "*) ;;
  30548. + *)
  30549. + case "$compile_rpath " in
  30550. + *" $absdir "*) ;;
  30551. + *) compile_rpath="$compile_rpath $absdir"
  30552. + esac
  30553. + ;;
  30554. + esac
  30555. + case " $sys_lib_dlsearch_path " in
  30556. + *" $libdir "*) ;;
  30557. + *)
  30558. + case "$finalize_rpath " in
  30559. + *" $libdir "*) ;;
  30560. + *) finalize_rpath="$finalize_rpath $libdir"
  30561. + esac
  30562. + ;;
  30563. + esac
  30564. + fi
  30565. +
  30566. + if test -n "$old_archive_from_expsyms_cmds"; then
  30567. + # figure out the soname
  30568. + set dummy $library_names
  30569. + shift
  30570. + realname="$1"
  30571. + shift
  30572. + libname=`eval "\\$ECHO \"$libname_spec\""`
  30573. + # use dlname if we got it. it's perfectly good, no?
  30574. + if test -n "$dlname"; then
  30575. + soname="$dlname"
  30576. + elif test -n "$soname_spec"; then
  30577. + # bleh windows
  30578. + case $host in
  30579. + *cygwin* | mingw* | *cegcc*)
  30580. + func_arith $current - $age
  30581. + major=$func_arith_result
  30582. + versuffix="-$major"
  30583. + ;;
  30584. + esac
  30585. + eval soname=\"$soname_spec\"
  30586. + else
  30587. + soname="$realname"
  30588. + fi
  30589. +
  30590. + # Make a new name for the extract_expsyms_cmds to use
  30591. + soroot="$soname"
  30592. + func_basename "$soroot"
  30593. + soname="$func_basename_result"
  30594. + func_stripname 'lib' '.dll' "$soname"
  30595. + newlib=libimp-$func_stripname_result.a
  30596. +
  30597. + # If the library has no export list, then create one now
  30598. + if test -f "$output_objdir/$soname-def"; then :
  30599. + else
  30600. + func_verbose "extracting exported symbol list from \`$soname'"
  30601. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  30602. + fi
  30603. +
  30604. + # Create $newlib
  30605. + if test -f "$output_objdir/$newlib"; then :; else
  30606. + func_verbose "generating import library for \`$soname'"
  30607. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  30608. + fi
  30609. + # make sure the library variables are pointing to the new library
  30610. + dir=$output_objdir
  30611. + linklib=$newlib
  30612. + fi # test -n "$old_archive_from_expsyms_cmds"
  30613. +
  30614. + if test "$linkmode" = prog || test "$mode" != relink; then
  30615. + add_shlibpath=
  30616. + add_dir=
  30617. + add=
  30618. + lib_linked=yes
  30619. + case $hardcode_action in
  30620. + immediate | unsupported)
  30621. + if test "$hardcode_direct" = no; then
  30622. + add="$dir/$linklib"
  30623. + case $host in
  30624. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  30625. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  30626. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  30627. + *-*-unixware7*) add_dir="-L$dir" ;;
  30628. + *-*-darwin* )
  30629. + # if the lib is a (non-dlopened) module then we can not
  30630. + # link against it, someone is ignoring the earlier warnings
  30631. + if /usr/bin/file -L $add 2> /dev/null |
  30632. + $GREP ": [^:]* bundle" >/dev/null ; then
  30633. + if test "X$dlopenmodule" != "X$lib"; then
  30634. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  30635. + if test -z "$old_library" ; then
  30636. + $ECHO
  30637. + $ECHO "*** And there doesn't seem to be a static archive available"
  30638. + $ECHO "*** The link will probably fail, sorry"
  30639. + else
  30640. + add="$dir/$old_library"
  30641. + fi
  30642. + elif test -n "$old_library"; then
  30643. + add="$dir/$old_library"
  30644. + fi
  30645. + fi
  30646. + esac
  30647. + elif test "$hardcode_minus_L" = no; then
  30648. + case $host in
  30649. + *-*-sunos*) add_shlibpath="$dir" ;;
  30650. + esac
  30651. + add_dir="-L$dir"
  30652. + add="-l$name"
  30653. + elif test "$hardcode_shlibpath_var" = no; then
  30654. + add_shlibpath="$dir"
  30655. + add="-l$name"
  30656. + else
  30657. + lib_linked=no
  30658. + fi
  30659. + ;;
  30660. + relink)
  30661. + if test "$hardcode_direct" = yes &&
  30662. + test "$hardcode_direct_absolute" = no; then
  30663. + add="$dir/$linklib"
  30664. + elif test "$hardcode_minus_L" = yes; then
  30665. + add_dir="-L$dir"
  30666. + # Try looking first in the location we're being installed to.
  30667. + if test -n "$inst_prefix_dir"; then
  30668. + case $libdir in
  30669. + [\\/]*)
  30670. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  30671. + ;;
  30672. + esac
  30673. + fi
  30674. + add="-l$name"
  30675. + elif test "$hardcode_shlibpath_var" = yes; then
  30676. + add_shlibpath="$dir"
  30677. + add="-l$name"
  30678. + else
  30679. + lib_linked=no
  30680. + fi
  30681. + ;;
  30682. + *) lib_linked=no ;;
  30683. + esac
  30684. +
  30685. + if test "$lib_linked" != yes; then
  30686. + func_fatal_configuration "unsupported hardcode properties"
  30687. + fi
  30688. +
  30689. + if test -n "$add_shlibpath"; then
  30690. + case :$compile_shlibpath: in
  30691. + *":$add_shlibpath:"*) ;;
  30692. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  30693. + esac
  30694. + fi
  30695. + if test "$linkmode" = prog; then
  30696. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  30697. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  30698. + else
  30699. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  30700. + test -n "$add" && deplibs="$add $deplibs"
  30701. + if test "$hardcode_direct" != yes &&
  30702. + test "$hardcode_minus_L" != yes &&
  30703. + test "$hardcode_shlibpath_var" = yes; then
  30704. + case :$finalize_shlibpath: in
  30705. + *":$libdir:"*) ;;
  30706. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  30707. + esac
  30708. + fi
  30709. + fi
  30710. + fi
  30711. +
  30712. + if test "$linkmode" = prog || test "$mode" = relink; then
  30713. + add_shlibpath=
  30714. + add_dir=
  30715. + add=
  30716. + # Finalize command for both is simple: just hardcode it.
  30717. + if test "$hardcode_direct" = yes &&
  30718. + test "$hardcode_direct_absolute" = no; then
  30719. + add="$libdir/$linklib"
  30720. + elif test "$hardcode_minus_L" = yes; then
  30721. + add_dir="-L$libdir"
  30722. + add="-l$name"
  30723. + elif test "$hardcode_shlibpath_var" = yes; then
  30724. + case :$finalize_shlibpath: in
  30725. + *":$libdir:"*) ;;
  30726. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  30727. + esac
  30728. + add="-l$name"
  30729. + elif test "$hardcode_automatic" = yes; then
  30730. + if test -n "$inst_prefix_dir" &&
  30731. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  30732. + add="$inst_prefix_dir$libdir/$linklib"
  30733. + else
  30734. + add="$libdir/$linklib"
  30735. + fi
  30736. + else
  30737. + # We cannot seem to hardcode it, guess we'll fake it.
  30738. + add_dir="-L$libdir"
  30739. + # Try looking first in the location we're being installed to.
  30740. + if test -n "$inst_prefix_dir"; then
  30741. + case $libdir in
  30742. + [\\/]*)
  30743. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  30744. + ;;
  30745. + esac
  30746. + fi
  30747. + add="-l$name"
  30748. + fi
  30749. +
  30750. + if test "$linkmode" = prog; then
  30751. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  30752. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  30753. + else
  30754. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  30755. + test -n "$add" && deplibs="$add $deplibs"
  30756. + fi
  30757. + fi
  30758. + elif test "$linkmode" = prog; then
  30759. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  30760. + # is not unsupported. This is valid on all known static and
  30761. + # shared platforms.
  30762. + if test "$hardcode_direct" != unsupported; then
  30763. + test -n "$old_library" && linklib="$old_library"
  30764. + compile_deplibs="$dir/$linklib $compile_deplibs"
  30765. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  30766. + else
  30767. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  30768. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  30769. + fi
  30770. + elif test "$build_libtool_libs" = yes; then
  30771. + # Not a shared library
  30772. + if test "$deplibs_check_method" != pass_all; then
  30773. + # We're trying link a shared library against a static one
  30774. + # but the system doesn't support it.
  30775. +
  30776. + # Just print a warning and add the library to dependency_libs so
  30777. + # that the program can be linked against the static library.
  30778. + $ECHO
  30779. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  30780. + $ECHO "*** I have the capability to make that library automatically link in when"
  30781. + $ECHO "*** you link to this library. But I can only do this if you have a"
  30782. + $ECHO "*** shared version of the library, which you do not appear to have."
  30783. + if test "$module" = yes; then
  30784. + $ECHO "*** But as you try to build a module library, libtool will still create "
  30785. + $ECHO "*** a static module, that should work as long as the dlopening application"
  30786. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  30787. + if test -z "$global_symbol_pipe"; then
  30788. + $ECHO
  30789. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  30790. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  30791. + $ECHO "*** not find such a program. So, this module is probably useless."
  30792. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  30793. + fi
  30794. + if test "$build_old_libs" = no; then
  30795. + build_libtool_libs=module
  30796. + build_old_libs=yes
  30797. + else
  30798. + build_libtool_libs=no
  30799. + fi
  30800. + fi
  30801. + else
  30802. + deplibs="$dir/$old_library $deplibs"
  30803. + link_static=yes
  30804. + fi
  30805. + fi # link shared/static library?
  30806. +
  30807. + if test "$linkmode" = lib; then
  30808. + if test -n "$dependency_libs" &&
  30809. + { test "$hardcode_into_libs" != yes ||
  30810. + test "$build_old_libs" = yes ||
  30811. + test "$link_static" = yes; }; then
  30812. + # Extract -R from dependency_libs
  30813. + temp_deplibs=
  30814. + for libdir in $dependency_libs; do
  30815. + case $libdir in
  30816. + -R*) func_stripname '-R' '' "$libdir"
  30817. + temp_xrpath=$func_stripname_result
  30818. + case " $xrpath " in
  30819. + *" $temp_xrpath "*) ;;
  30820. + *) xrpath="$xrpath $temp_xrpath";;
  30821. + esac;;
  30822. + *) temp_deplibs="$temp_deplibs $libdir";;
  30823. + esac
  30824. + done
  30825. + dependency_libs="$temp_deplibs"
  30826. + fi
  30827. +
  30828. + newlib_search_path="$newlib_search_path $absdir"
  30829. + # Link against this library
  30830. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  30831. + # ... and its dependency_libs
  30832. + tmp_libs=
  30833. + for deplib in $dependency_libs; do
  30834. + newdependency_libs="$deplib $newdependency_libs"
  30835. + if $opt_duplicate_deps ; then
  30836. + case "$tmp_libs " in
  30837. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  30838. + esac
  30839. + fi
  30840. + tmp_libs="$tmp_libs $deplib"
  30841. + done
  30842. +
  30843. + if test "$link_all_deplibs" != no; then
  30844. + # Add the search paths of all dependency libraries
  30845. + for deplib in $dependency_libs; do
  30846. + path=
  30847. + case $deplib in
  30848. + -L*) path="$deplib" ;;
  30849. + *.la)
  30850. + func_dirname "$deplib" "" "."
  30851. + dir="$func_dirname_result"
  30852. + # We need an absolute path.
  30853. + case $dir in
  30854. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  30855. + *)
  30856. + absdir=`cd "$dir" && pwd`
  30857. + if test -z "$absdir"; then
  30858. + func_warning "cannot determine absolute directory name of \`$dir'"
  30859. + absdir="$dir"
  30860. + fi
  30861. + ;;
  30862. + esac
  30863. + if $GREP "^installed=no" $deplib > /dev/null; then
  30864. + case $host in
  30865. + *-*-darwin*)
  30866. + depdepl=
  30867. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  30868. + if test -n "$deplibrary_names" ; then
  30869. + for tmp in $deplibrary_names ; do
  30870. + depdepl=$tmp
  30871. + done
  30872. + if test -f "$absdir/$objdir/$depdepl" ; then
  30873. + depdepl="$absdir/$objdir/$depdepl"
  30874. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  30875. + if test -z "$darwin_install_name"; then
  30876. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  30877. + fi
  30878. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  30879. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  30880. + path=
  30881. + fi
  30882. + fi
  30883. + ;;
  30884. + *)
  30885. + path="-L$absdir/$objdir"
  30886. + ;;
  30887. + esac
  30888. + else
  30889. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  30890. + test -z "$libdir" && \
  30891. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  30892. + test "$absdir" != "$libdir" && \
  30893. + func_warning "\`$deplib' seems to be moved"
  30894. +
  30895. + path="-L$absdir"
  30896. + fi
  30897. + ;;
  30898. + esac
  30899. + case " $deplibs " in
  30900. + *" $path "*) ;;
  30901. + *) deplibs="$path $deplibs" ;;
  30902. + esac
  30903. + done
  30904. + fi # link_all_deplibs != no
  30905. + fi # linkmode = lib
  30906. + done # for deplib in $libs
  30907. + if test "$pass" = link; then
  30908. + if test "$linkmode" = "prog"; then
  30909. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  30910. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  30911. + else
  30912. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  30913. + fi
  30914. + fi
  30915. + dependency_libs="$newdependency_libs"
  30916. + if test "$pass" = dlpreopen; then
  30917. + # Link the dlpreopened libraries before other libraries
  30918. + for deplib in $save_deplibs; do
  30919. + deplibs="$deplib $deplibs"
  30920. + done
  30921. + fi
  30922. + if test "$pass" != dlopen; then
  30923. + if test "$pass" != conv; then
  30924. + # Make sure lib_search_path contains only unique directories.
  30925. + lib_search_path=
  30926. + for dir in $newlib_search_path; do
  30927. + case "$lib_search_path " in
  30928. + *" $dir "*) ;;
  30929. + *) lib_search_path="$lib_search_path $dir" ;;
  30930. + esac
  30931. + done
  30932. + newlib_search_path=
  30933. + fi
  30934. +
  30935. + if test "$linkmode,$pass" != "prog,link"; then
  30936. + vars="deplibs"
  30937. + else
  30938. + vars="compile_deplibs finalize_deplibs"
  30939. + fi
  30940. + for var in $vars dependency_libs; do
  30941. + # Add libraries to $var in reverse order
  30942. + eval tmp_libs=\"\$$var\"
  30943. + new_libs=
  30944. + for deplib in $tmp_libs; do
  30945. + # FIXME: Pedantically, this is the right thing to do, so
  30946. + # that some nasty dependency loop isn't accidentally
  30947. + # broken:
  30948. + #new_libs="$deplib $new_libs"
  30949. + # Pragmatically, this seems to cause very few problems in
  30950. + # practice:
  30951. + case $deplib in
  30952. + -L*) new_libs="$deplib $new_libs" ;;
  30953. + -R*) ;;
  30954. + *)
  30955. + # And here is the reason: when a library appears more
  30956. + # than once as an explicit dependence of a library, or
  30957. + # is implicitly linked in more than once by the
  30958. + # compiler, it is considered special, and multiple
  30959. + # occurrences thereof are not removed. Compare this
  30960. + # with having the same library being listed as a
  30961. + # dependency of multiple other libraries: in this case,
  30962. + # we know (pedantically, we assume) the library does not
  30963. + # need to be listed more than once, so we keep only the
  30964. + # last copy. This is not always right, but it is rare
  30965. + # enough that we require users that really mean to play
  30966. + # such unportable linking tricks to link the library
  30967. + # using -Wl,-lname, so that libtool does not consider it
  30968. + # for duplicate removal.
  30969. + case " $specialdeplibs " in
  30970. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  30971. + *)
  30972. + case " $new_libs " in
  30973. + *" $deplib "*) ;;
  30974. + *) new_libs="$deplib $new_libs" ;;
  30975. + esac
  30976. + ;;
  30977. + esac
  30978. + ;;
  30979. + esac
  30980. + done
  30981. + tmp_libs=
  30982. + for deplib in $new_libs; do
  30983. + case $deplib in
  30984. + -L*)
  30985. + case " $tmp_libs " in
  30986. + *" $deplib "*) ;;
  30987. + *) tmp_libs="$tmp_libs $deplib" ;;
  30988. + esac
  30989. + ;;
  30990. + *) tmp_libs="$tmp_libs $deplib" ;;
  30991. + esac
  30992. + done
  30993. + eval $var=\"$tmp_libs\"
  30994. + done # for var
  30995. + fi
  30996. + # Last step: remove runtime libs from dependency_libs
  30997. + # (they stay in deplibs)
  30998. + tmp_libs=
  30999. + for i in $dependency_libs ; do
  31000. + case " $predeps $postdeps $compiler_lib_search_path " in
  31001. + *" $i "*)
  31002. + i=""
  31003. + ;;
  31004. + esac
  31005. + if test -n "$i" ; then
  31006. + tmp_libs="$tmp_libs $i"
  31007. + fi
  31008. + done
  31009. + dependency_libs=$tmp_libs
  31010. + done # for pass
  31011. + if test "$linkmode" = prog; then
  31012. + dlfiles="$newdlfiles"
  31013. + fi
  31014. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  31015. + dlprefiles="$newdlprefiles"
  31016. + fi
  31017. +
  31018. + case $linkmode in
  31019. + oldlib)
  31020. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  31021. + func_warning "\`-dlopen' is ignored for archives"
  31022. + fi
  31023. +
  31024. + case " $deplibs" in
  31025. + *\ -l* | *\ -L*)
  31026. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  31027. + esac
  31028. +
  31029. + test -n "$rpath" && \
  31030. + func_warning "\`-rpath' is ignored for archives"
  31031. +
  31032. + test -n "$xrpath" && \
  31033. + func_warning "\`-R' is ignored for archives"
  31034. +
  31035. + test -n "$vinfo" && \
  31036. + func_warning "\`-version-info/-version-number' is ignored for archives"
  31037. +
  31038. + test -n "$release" && \
  31039. + func_warning "\`-release' is ignored for archives"
  31040. +
  31041. + test -n "$export_symbols$export_symbols_regex" && \
  31042. + func_warning "\`-export-symbols' is ignored for archives"
  31043. +
  31044. + # Now set the variables for building old libraries.
  31045. + build_libtool_libs=no
  31046. + oldlibs="$output"
  31047. + objs="$objs$old_deplibs"
  31048. + ;;
  31049. +
  31050. + lib)
  31051. + # Make sure we only generate libraries of the form `libNAME.la'.
  31052. + case $outputname in
  31053. + lib*)
  31054. + func_stripname 'lib' '.la' "$outputname"
  31055. + name=$func_stripname_result
  31056. + eval shared_ext=\"$shrext_cmds\"
  31057. + eval libname=\"$libname_spec\"
  31058. + ;;
  31059. + *)
  31060. + test "$module" = no && \
  31061. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  31062. +
  31063. + if test "$need_lib_prefix" != no; then
  31064. + # Add the "lib" prefix for modules if required
  31065. + func_stripname '' '.la' "$outputname"
  31066. + name=$func_stripname_result
  31067. + eval shared_ext=\"$shrext_cmds\"
  31068. + eval libname=\"$libname_spec\"
  31069. + else
  31070. + func_stripname '' '.la' "$outputname"
  31071. + libname=$func_stripname_result
  31072. + fi
  31073. + ;;
  31074. + esac
  31075. +
  31076. + if test -n "$objs"; then
  31077. + if test "$deplibs_check_method" != pass_all; then
  31078. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  31079. + else
  31080. + $ECHO
  31081. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  31082. + $ECHO "*** objects $objs is not portable!"
  31083. + libobjs="$libobjs $objs"
  31084. + fi
  31085. + fi
  31086. +
  31087. + test "$dlself" != no && \
  31088. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  31089. +
  31090. + set dummy $rpath
  31091. + shift
  31092. + test "$#" -gt 1 && \
  31093. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  31094. +
  31095. + install_libdir="$1"
  31096. +
  31097. + oldlibs=
  31098. + if test -z "$rpath"; then
  31099. + if test "$build_libtool_libs" = yes; then
  31100. + # Building a libtool convenience library.
  31101. + # Some compilers have problems with a `.al' extension so
  31102. + # convenience libraries should have the same extension an
  31103. + # archive normally would.
  31104. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  31105. + build_libtool_libs=convenience
  31106. + build_old_libs=yes
  31107. + fi
  31108. +
  31109. + test -n "$vinfo" && \
  31110. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  31111. +
  31112. + test -n "$release" && \
  31113. + func_warning "\`-release' is ignored for convenience libraries"
  31114. + else
  31115. +
  31116. + # Parse the version information argument.
  31117. + save_ifs="$IFS"; IFS=':'
  31118. + set dummy $vinfo 0 0 0
  31119. + shift
  31120. + IFS="$save_ifs"
  31121. +
  31122. + test -n "$7" && \
  31123. + func_fatal_help "too many parameters to \`-version-info'"
  31124. +
  31125. + # convert absolute version numbers to libtool ages
  31126. + # this retains compatibility with .la files and attempts
  31127. + # to make the code below a bit more comprehensible
  31128. +
  31129. + case $vinfo_number in
  31130. + yes)
  31131. + number_major="$1"
  31132. + number_minor="$2"
  31133. + number_revision="$3"
  31134. + #
  31135. + # There are really only two kinds -- those that
  31136. + # use the current revision as the major version
  31137. + # and those that subtract age and use age as
  31138. + # a minor version. But, then there is irix
  31139. + # which has an extra 1 added just for fun
  31140. + #
  31141. + case $version_type in
  31142. + darwin|linux|osf|windows|none)
  31143. + func_arith $number_major + $number_minor
  31144. + current=$func_arith_result
  31145. + age="$number_minor"
  31146. + revision="$number_revision"
  31147. + ;;
  31148. + freebsd-aout|freebsd-elf|sunos)
  31149. + current="$number_major"
  31150. + revision="$number_minor"
  31151. + age="0"
  31152. + ;;
  31153. + irix|nonstopux)
  31154. + func_arith $number_major + $number_minor
  31155. + current=$func_arith_result
  31156. + age="$number_minor"
  31157. + revision="$number_minor"
  31158. + lt_irix_increment=no
  31159. + ;;
  31160. + *)
  31161. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  31162. + ;;
  31163. + esac
  31164. + ;;
  31165. + no)
  31166. + current="$1"
  31167. + revision="$2"
  31168. + age="$3"
  31169. + ;;
  31170. + esac
  31171. +
  31172. + # Check that each of the things are valid numbers.
  31173. + case $current in
  31174. + 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]) ;;
  31175. + *)
  31176. + func_error "CURRENT \`$current' must be a nonnegative integer"
  31177. + func_fatal_error "\`$vinfo' is not valid version information"
  31178. + ;;
  31179. + esac
  31180. +
  31181. + case $revision in
  31182. + 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]) ;;
  31183. + *)
  31184. + func_error "REVISION \`$revision' must be a nonnegative integer"
  31185. + func_fatal_error "\`$vinfo' is not valid version information"
  31186. + ;;
  31187. + esac
  31188. +
  31189. + case $age in
  31190. + 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]) ;;
  31191. + *)
  31192. + func_error "AGE \`$age' must be a nonnegative integer"
  31193. + func_fatal_error "\`$vinfo' is not valid version information"
  31194. + ;;
  31195. + esac
  31196. +
  31197. + if test "$age" -gt "$current"; then
  31198. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  31199. + func_fatal_error "\`$vinfo' is not valid version information"
  31200. + fi
  31201. +
  31202. + # Calculate the version variables.
  31203. + major=
  31204. + versuffix=
  31205. + verstring=
  31206. + case $version_type in
  31207. + none) ;;
  31208. +
  31209. + darwin)
  31210. + # Like Linux, but with the current version available in
  31211. + # verstring for coding it into the library header
  31212. + func_arith $current - $age
  31213. + major=.$func_arith_result
  31214. + versuffix="$major.$age.$revision"
  31215. + # Darwin ld doesn't like 0 for these options...
  31216. + func_arith $current + 1
  31217. + minor_current=$func_arith_result
  31218. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  31219. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  31220. + ;;
  31221. +
  31222. + freebsd-aout)
  31223. + major=".$current"
  31224. + versuffix=".$current.$revision";
  31225. + ;;
  31226. +
  31227. + freebsd-elf)
  31228. + major=".$current"
  31229. + versuffix=".$current"
  31230. + ;;
  31231. +
  31232. + irix | nonstopux)
  31233. + if test "X$lt_irix_increment" = "Xno"; then
  31234. + func_arith $current - $age
  31235. + else
  31236. + func_arith $current - $age + 1
  31237. + fi
  31238. + major=$func_arith_result
  31239. +
  31240. + case $version_type in
  31241. + nonstopux) verstring_prefix=nonstopux ;;
  31242. + *) verstring_prefix=sgi ;;
  31243. + esac
  31244. + verstring="$verstring_prefix$major.$revision"
  31245. +
  31246. + # Add in all the interfaces that we are compatible with.
  31247. + loop=$revision
  31248. + while test "$loop" -ne 0; do
  31249. + func_arith $revision - $loop
  31250. + iface=$func_arith_result
  31251. + func_arith $loop - 1
  31252. + loop=$func_arith_result
  31253. + verstring="$verstring_prefix$major.$iface:$verstring"
  31254. + done
  31255. +
  31256. + # Before this point, $major must not contain `.'.
  31257. + major=.$major
  31258. + versuffix="$major.$revision"
  31259. + ;;
  31260. +
  31261. + linux)
  31262. + func_arith $current - $age
  31263. + major=.$func_arith_result
  31264. + versuffix="$major.$age.$revision"
  31265. + ;;
  31266. +
  31267. + osf)
  31268. + func_arith $current - $age
  31269. + major=.$func_arith_result
  31270. + versuffix=".$current.$age.$revision"
  31271. + verstring="$current.$age.$revision"
  31272. +
  31273. + # Add in all the interfaces that we are compatible with.
  31274. + loop=$age
  31275. + while test "$loop" -ne 0; do
  31276. + func_arith $current - $loop
  31277. + iface=$func_arith_result
  31278. + func_arith $loop - 1
  31279. + loop=$func_arith_result
  31280. + verstring="$verstring:${iface}.0"
  31281. + done
  31282. +
  31283. + # Make executables depend on our current version.
  31284. + verstring="$verstring:${current}.0"
  31285. + ;;
  31286. +
  31287. + qnx)
  31288. + major=".$current"
  31289. + versuffix=".$current"
  31290. + ;;
  31291. +
  31292. + sunos)
  31293. + major=".$current"
  31294. + versuffix=".$current.$revision"
  31295. + ;;
  31296. +
  31297. + windows)
  31298. + # Use '-' rather than '.', since we only want one
  31299. + # extension on DOS 8.3 filesystems.
  31300. + func_arith $current - $age
  31301. + major=$func_arith_result
  31302. + versuffix="-$major"
  31303. + ;;
  31304. +
  31305. + *)
  31306. + func_fatal_configuration "unknown library version type \`$version_type'"
  31307. + ;;
  31308. + esac
  31309. +
  31310. + # Clear the version info if we defaulted, and they specified a release.
  31311. + if test -z "$vinfo" && test -n "$release"; then
  31312. + major=
  31313. + case $version_type in
  31314. + darwin)
  31315. + # we can't check for "0.0" in archive_cmds due to quoting
  31316. + # problems, so we reset it completely
  31317. + verstring=
  31318. + ;;
  31319. + *)
  31320. + verstring="0.0"
  31321. + ;;
  31322. + esac
  31323. + if test "$need_version" = no; then
  31324. + versuffix=
  31325. + else
  31326. + versuffix=".0.0"
  31327. + fi
  31328. + fi
  31329. +
  31330. + # Remove version info from name if versioning should be avoided
  31331. + if test "$avoid_version" = yes && test "$need_version" = no; then
  31332. + major=
  31333. + versuffix=
  31334. + verstring=""
  31335. + fi
  31336. +
  31337. + # Check to see if the archive will have undefined symbols.
  31338. + if test "$allow_undefined" = yes; then
  31339. + if test "$allow_undefined_flag" = unsupported; then
  31340. + func_warning "undefined symbols not allowed in $host shared libraries"
  31341. + build_libtool_libs=no
  31342. + build_old_libs=yes
  31343. + fi
  31344. + else
  31345. + # Don't allow undefined symbols.
  31346. + allow_undefined_flag="$no_undefined_flag"
  31347. + fi
  31348. +
  31349. + fi
  31350. +
  31351. + func_generate_dlsyms "$libname" "$libname" "yes"
  31352. + libobjs="$libobjs $symfileobj"
  31353. + test "X$libobjs" = "X " && libobjs=
  31354. +
  31355. + if test "$mode" != relink; then
  31356. + # Remove our outputs, but don't remove object files since they
  31357. + # may have been created when compiling PIC objects.
  31358. + removelist=
  31359. + tempremovelist=`$ECHO "$output_objdir/*"`
  31360. + for p in $tempremovelist; do
  31361. + case $p in
  31362. + *.$objext | *.gcno)
  31363. + ;;
  31364. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  31365. + if test "X$precious_files_regex" != "X"; then
  31366. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  31367. + then
  31368. + continue
  31369. + fi
  31370. + fi
  31371. + removelist="$removelist $p"
  31372. + ;;
  31373. + *) ;;
  31374. + esac
  31375. + done
  31376. + test -n "$removelist" && \
  31377. + func_show_eval "${RM}r \$removelist"
  31378. + fi
  31379. +
  31380. + # Now set the variables for building old libraries.
  31381. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  31382. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  31383. +
  31384. + # Transform .lo files to .o files.
  31385. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  31386. + fi
  31387. +
  31388. + # Eliminate all temporary directories.
  31389. + #for path in $notinst_path; do
  31390. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  31391. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  31392. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  31393. + #done
  31394. +
  31395. + if test -n "$xrpath"; then
  31396. + # If the user specified any rpath flags, then add them.
  31397. + temp_xrpath=
  31398. + for libdir in $xrpath; do
  31399. + temp_xrpath="$temp_xrpath -R$libdir"
  31400. + case "$finalize_rpath " in
  31401. + *" $libdir "*) ;;
  31402. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  31403. + esac
  31404. + done
  31405. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  31406. + dependency_libs="$temp_xrpath $dependency_libs"
  31407. + fi
  31408. + fi
  31409. +
  31410. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  31411. + old_dlfiles="$dlfiles"
  31412. + dlfiles=
  31413. + for lib in $old_dlfiles; do
  31414. + case " $dlprefiles $dlfiles " in
  31415. + *" $lib "*) ;;
  31416. + *) dlfiles="$dlfiles $lib" ;;
  31417. + esac
  31418. + done
  31419. +
  31420. + # Make sure dlprefiles contains only unique files
  31421. + old_dlprefiles="$dlprefiles"
  31422. + dlprefiles=
  31423. + for lib in $old_dlprefiles; do
  31424. + case "$dlprefiles " in
  31425. + *" $lib "*) ;;
  31426. + *) dlprefiles="$dlprefiles $lib" ;;
  31427. + esac
  31428. + done
  31429. +
  31430. + if test "$build_libtool_libs" = yes; then
  31431. + if test -n "$rpath"; then
  31432. + case $host in
  31433. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  31434. + # these systems don't actually have a c library (as such)!
  31435. + ;;
  31436. + *-*-rhapsody* | *-*-darwin1.[012])
  31437. + # Rhapsody C library is in the System framework
  31438. + deplibs="$deplibs System.ltframework"
  31439. + ;;
  31440. + *-*-netbsd*)
  31441. + # Don't link with libc until the a.out ld.so is fixed.
  31442. + ;;
  31443. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  31444. + # Do not include libc due to us having libc/libc_r.
  31445. + ;;
  31446. + *-*-sco3.2v5* | *-*-sco5v6*)
  31447. + # Causes problems with __ctype
  31448. + ;;
  31449. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  31450. + # Compiler inserts libc in the correct place for threads to work
  31451. + ;;
  31452. + *)
  31453. + # Add libc to deplibs on all other systems if necessary.
  31454. + if test "$build_libtool_need_lc" = "yes"; then
  31455. + deplibs="$deplibs -lc"
  31456. + fi
  31457. + ;;
  31458. + esac
  31459. + fi
  31460. +
  31461. + # Transform deplibs into only deplibs that can be linked in shared.
  31462. + name_save=$name
  31463. + libname_save=$libname
  31464. + release_save=$release
  31465. + versuffix_save=$versuffix
  31466. + major_save=$major
  31467. + # I'm not sure if I'm treating the release correctly. I think
  31468. + # release should show up in the -l (ie -lgmp5) so we don't want to
  31469. + # add it in twice. Is that correct?
  31470. + release=""
  31471. + versuffix=""
  31472. + major=""
  31473. + newdeplibs=
  31474. + droppeddeps=no
  31475. + case $deplibs_check_method in
  31476. + pass_all)
  31477. + # Don't check for shared/static. Everything works.
  31478. + # This might be a little naive. We might want to check
  31479. + # whether the library exists or not. But this is on
  31480. + # osf3 & osf4 and I'm not really sure... Just
  31481. + # implementing what was already the behavior.
  31482. + newdeplibs=$deplibs
  31483. + ;;
  31484. + test_compile)
  31485. + # This code stresses the "libraries are programs" paradigm to its
  31486. + # limits. Maybe even breaks it. We compile a program, linking it
  31487. + # against the deplibs as a proxy for the library. Then we can check
  31488. + # whether they linked in statically or dynamically with ldd.
  31489. + $opt_dry_run || $RM conftest.c
  31490. + cat > conftest.c <<EOF
  31491. + int main() { return 0; }
  31492. +EOF
  31493. + $opt_dry_run || $RM conftest
  31494. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  31495. + ldd_output=`ldd conftest`
  31496. + for i in $deplibs; do
  31497. + case $i in
  31498. + -l*)
  31499. + func_stripname -l '' "$i"
  31500. + name=$func_stripname_result
  31501. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31502. + case " $predeps $postdeps " in
  31503. + *" $i "*)
  31504. + newdeplibs="$newdeplibs $i"
  31505. + i=""
  31506. + ;;
  31507. + esac
  31508. + fi
  31509. + if test -n "$i" ; then
  31510. + libname=`eval "\\$ECHO \"$libname_spec\""`
  31511. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  31512. + set dummy $deplib_matches; shift
  31513. + deplib_match=$1
  31514. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  31515. + newdeplibs="$newdeplibs $i"
  31516. + else
  31517. + droppeddeps=yes
  31518. + $ECHO
  31519. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  31520. + $ECHO "*** I have the capability to make that library automatically link in when"
  31521. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31522. + $ECHO "*** shared version of the library, which I believe you do not have"
  31523. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  31524. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  31525. + fi
  31526. + fi
  31527. + ;;
  31528. + *)
  31529. + newdeplibs="$newdeplibs $i"
  31530. + ;;
  31531. + esac
  31532. + done
  31533. + else
  31534. + # Error occurred in the first compile. Let's try to salvage
  31535. + # the situation: Compile a separate program for each library.
  31536. + for i in $deplibs; do
  31537. + case $i in
  31538. + -l*)
  31539. + func_stripname -l '' "$i"
  31540. + name=$func_stripname_result
  31541. + $opt_dry_run || $RM conftest
  31542. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  31543. + ldd_output=`ldd conftest`
  31544. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31545. + case " $predeps $postdeps " in
  31546. + *" $i "*)
  31547. + newdeplibs="$newdeplibs $i"
  31548. + i=""
  31549. + ;;
  31550. + esac
  31551. + fi
  31552. + if test -n "$i" ; then
  31553. + libname=`eval "\\$ECHO \"$libname_spec\""`
  31554. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  31555. + set dummy $deplib_matches; shift
  31556. + deplib_match=$1
  31557. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  31558. + newdeplibs="$newdeplibs $i"
  31559. + else
  31560. + droppeddeps=yes
  31561. + $ECHO
  31562. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  31563. + $ECHO "*** I have the capability to make that library automatically link in when"
  31564. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31565. + $ECHO "*** shared version of the library, which you do not appear to have"
  31566. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  31567. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  31568. + fi
  31569. + fi
  31570. + else
  31571. + droppeddeps=yes
  31572. + $ECHO
  31573. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  31574. + $ECHO "*** make it link in! You will probably need to install it or some"
  31575. + $ECHO "*** library that it depends on before this library will be fully"
  31576. + $ECHO "*** functional. Installing it before continuing would be even better."
  31577. + fi
  31578. + ;;
  31579. + *)
  31580. + newdeplibs="$newdeplibs $i"
  31581. + ;;
  31582. + esac
  31583. + done
  31584. + fi
  31585. + ;;
  31586. + file_magic*)
  31587. + set dummy $deplibs_check_method; shift
  31588. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  31589. + for a_deplib in $deplibs; do
  31590. + case $a_deplib in
  31591. + -l*)
  31592. + func_stripname -l '' "$a_deplib"
  31593. + name=$func_stripname_result
  31594. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31595. + case " $predeps $postdeps " in
  31596. + *" $a_deplib "*)
  31597. + newdeplibs="$newdeplibs $a_deplib"
  31598. + a_deplib=""
  31599. + ;;
  31600. + esac
  31601. + fi
  31602. + if test -n "$a_deplib" ; then
  31603. + libname=`eval "\\$ECHO \"$libname_spec\""`
  31604. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  31605. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  31606. + for potent_lib in $potential_libs; do
  31607. + # Follow soft links.
  31608. + if ls -lLd "$potent_lib" 2>/dev/null |
  31609. + $GREP " -> " >/dev/null; then
  31610. + continue
  31611. + fi
  31612. + # The statement above tries to avoid entering an
  31613. + # endless loop below, in case of cyclic links.
  31614. + # We might still enter an endless loop, since a link
  31615. + # loop can be closed while we follow links,
  31616. + # but so what?
  31617. + potlib="$potent_lib"
  31618. + while test -h "$potlib" 2>/dev/null; do
  31619. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  31620. + case $potliblink in
  31621. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  31622. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  31623. + esac
  31624. + done
  31625. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  31626. + $SED -e 10q |
  31627. + $EGREP "$file_magic_regex" > /dev/null; then
  31628. + newdeplibs="$newdeplibs $a_deplib"
  31629. + a_deplib=""
  31630. + break 2
  31631. + fi
  31632. + done
  31633. + done
  31634. + fi
  31635. + if test -n "$a_deplib" ; then
  31636. + droppeddeps=yes
  31637. + $ECHO
  31638. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  31639. + $ECHO "*** I have the capability to make that library automatically link in when"
  31640. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31641. + $ECHO "*** shared version of the library, which you do not appear to have"
  31642. + $ECHO "*** because I did check the linker path looking for a file starting"
  31643. + if test -z "$potlib" ; then
  31644. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  31645. + else
  31646. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  31647. + $ECHO "*** using a file magic. Last file checked: $potlib"
  31648. + fi
  31649. + fi
  31650. + ;;
  31651. + *)
  31652. + # Add a -L argument.
  31653. + newdeplibs="$newdeplibs $a_deplib"
  31654. + ;;
  31655. + esac
  31656. + done # Gone through all deplibs.
  31657. + ;;
  31658. + match_pattern*)
  31659. + set dummy $deplibs_check_method; shift
  31660. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  31661. + for a_deplib in $deplibs; do
  31662. + case $a_deplib in
  31663. + -l*)
  31664. + func_stripname -l '' "$a_deplib"
  31665. + name=$func_stripname_result
  31666. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31667. + case " $predeps $postdeps " in
  31668. + *" $a_deplib "*)
  31669. + newdeplibs="$newdeplibs $a_deplib"
  31670. + a_deplib=""
  31671. + ;;
  31672. + esac
  31673. + fi
  31674. + if test -n "$a_deplib" ; then
  31675. + libname=`eval "\\$ECHO \"$libname_spec\""`
  31676. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  31677. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  31678. + for potent_lib in $potential_libs; do
  31679. + potlib="$potent_lib" # see symlink-check above in file_magic test
  31680. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  31681. + $EGREP "$match_pattern_regex" > /dev/null; then
  31682. + newdeplibs="$newdeplibs $a_deplib"
  31683. + a_deplib=""
  31684. + break 2
  31685. + fi
  31686. + done
  31687. + done
  31688. + fi
  31689. + if test -n "$a_deplib" ; then
  31690. + droppeddeps=yes
  31691. + $ECHO
  31692. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  31693. + $ECHO "*** I have the capability to make that library automatically link in when"
  31694. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31695. + $ECHO "*** shared version of the library, which you do not appear to have"
  31696. + $ECHO "*** because I did check the linker path looking for a file starting"
  31697. + if test -z "$potlib" ; then
  31698. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  31699. + else
  31700. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  31701. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  31702. + fi
  31703. + fi
  31704. + ;;
  31705. + *)
  31706. + # Add a -L argument.
  31707. + newdeplibs="$newdeplibs $a_deplib"
  31708. + ;;
  31709. + esac
  31710. + done # Gone through all deplibs.
  31711. + ;;
  31712. + none | unknown | *)
  31713. + newdeplibs=""
  31714. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  31715. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  31716. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  31717. + for i in $predeps $postdeps ; do
  31718. + # can't use Xsed below, because $i might contain '/'
  31719. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  31720. + done
  31721. + fi
  31722. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  31723. + $GREP . >/dev/null; then
  31724. + $ECHO
  31725. + if test "X$deplibs_check_method" = "Xnone"; then
  31726. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  31727. + else
  31728. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  31729. + fi
  31730. + $ECHO "*** All declared inter-library dependencies are being dropped."
  31731. + droppeddeps=yes
  31732. + fi
  31733. + ;;
  31734. + esac
  31735. + versuffix=$versuffix_save
  31736. + major=$major_save
  31737. + release=$release_save
  31738. + libname=$libname_save
  31739. + name=$name_save
  31740. +
  31741. + case $host in
  31742. + *-*-rhapsody* | *-*-darwin1.[012])
  31743. + # On Rhapsody replace the C library with the System framework
  31744. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  31745. + ;;
  31746. + esac
  31747. +
  31748. + if test "$droppeddeps" = yes; then
  31749. + if test "$module" = yes; then
  31750. + $ECHO
  31751. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  31752. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  31753. + $ECHO "*** a static module, that should work as long as the dlopening"
  31754. + $ECHO "*** application is linked with the -dlopen flag."
  31755. + if test -z "$global_symbol_pipe"; then
  31756. + $ECHO
  31757. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  31758. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  31759. + $ECHO "*** not find such a program. So, this module is probably useless."
  31760. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  31761. + fi
  31762. + if test "$build_old_libs" = no; then
  31763. + oldlibs="$output_objdir/$libname.$libext"
  31764. + build_libtool_libs=module
  31765. + build_old_libs=yes
  31766. + else
  31767. + build_libtool_libs=no
  31768. + fi
  31769. + else
  31770. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  31771. + $ECHO "*** automatically added whenever a program is linked with this library"
  31772. + $ECHO "*** or is declared to -dlopen it."
  31773. +
  31774. + if test "$allow_undefined" = no; then
  31775. + $ECHO
  31776. + $ECHO "*** Since this library must not contain undefined symbols,"
  31777. + $ECHO "*** because either the platform does not support them or"
  31778. + $ECHO "*** it was explicitly requested with -no-undefined,"
  31779. + $ECHO "*** libtool will only create a static version of it."
  31780. + if test "$build_old_libs" = no; then
  31781. + oldlibs="$output_objdir/$libname.$libext"
  31782. + build_libtool_libs=module
  31783. + build_old_libs=yes
  31784. + else
  31785. + build_libtool_libs=no
  31786. + fi
  31787. + fi
  31788. + fi
  31789. + fi
  31790. + # Done checking deplibs!
  31791. + deplibs=$newdeplibs
  31792. + fi
  31793. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  31794. + case $host in
  31795. + *-*-darwin*)
  31796. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  31797. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  31798. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  31799. + ;;
  31800. + esac
  31801. +
  31802. + # move library search paths that coincide with paths to not yet
  31803. + # installed libraries to the beginning of the library search list
  31804. + new_libs=
  31805. + for path in $notinst_path; do
  31806. + case " $new_libs " in
  31807. + *" -L$path/$objdir "*) ;;
  31808. + *)
  31809. + case " $deplibs " in
  31810. + *" -L$path/$objdir "*)
  31811. + new_libs="$new_libs -L$path/$objdir" ;;
  31812. + esac
  31813. + ;;
  31814. + esac
  31815. + done
  31816. + for deplib in $deplibs; do
  31817. + case $deplib in
  31818. + -L*)
  31819. + case " $new_libs " in
  31820. + *" $deplib "*) ;;
  31821. + *) new_libs="$new_libs $deplib" ;;
  31822. + esac
  31823. + ;;
  31824. + *) new_libs="$new_libs $deplib" ;;
  31825. + esac
  31826. + done
  31827. + deplibs="$new_libs"
  31828. +
  31829. + # All the library-specific variables (install_libdir is set above).
  31830. + library_names=
  31831. + old_library=
  31832. + dlname=
  31833. +
  31834. + # Test again, we may have decided not to build it any more
  31835. + if test "$build_libtool_libs" = yes; then
  31836. + if test "$hardcode_into_libs" = yes; then
  31837. + # Hardcode the library paths
  31838. + hardcode_libdirs=
  31839. + dep_rpath=
  31840. + rpath="$finalize_rpath"
  31841. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  31842. + for libdir in $rpath; do
  31843. + if test -n "$hardcode_libdir_flag_spec"; then
  31844. + if test -n "$hardcode_libdir_separator"; then
  31845. + if test -z "$hardcode_libdirs"; then
  31846. + hardcode_libdirs="$libdir"
  31847. + else
  31848. + # Just accumulate the unique libdirs.
  31849. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  31850. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  31851. + ;;
  31852. + *)
  31853. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  31854. + ;;
  31855. + esac
  31856. + fi
  31857. + else
  31858. + eval flag=\"$hardcode_libdir_flag_spec\"
  31859. + dep_rpath="$dep_rpath $flag"
  31860. + fi
  31861. + elif test -n "$runpath_var"; then
  31862. + case "$perm_rpath " in
  31863. + *" $libdir "*) ;;
  31864. + *) perm_rpath="$perm_rpath $libdir" ;;
  31865. + esac
  31866. + fi
  31867. + done
  31868. + # Substitute the hardcoded libdirs into the rpath.
  31869. + if test -n "$hardcode_libdir_separator" &&
  31870. + test -n "$hardcode_libdirs"; then
  31871. + libdir="$hardcode_libdirs"
  31872. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  31873. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  31874. + else
  31875. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  31876. + fi
  31877. + fi
  31878. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  31879. + # We should set the runpath_var.
  31880. + rpath=
  31881. + for dir in $perm_rpath; do
  31882. + rpath="$rpath$dir:"
  31883. + done
  31884. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  31885. + fi
  31886. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  31887. + fi
  31888. +
  31889. + shlibpath="$finalize_shlibpath"
  31890. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  31891. + if test -n "$shlibpath"; then
  31892. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  31893. + fi
  31894. +
  31895. + # Get the real and link names of the library.
  31896. + eval shared_ext=\"$shrext_cmds\"
  31897. + eval library_names=\"$library_names_spec\"
  31898. + set dummy $library_names
  31899. + shift
  31900. + realname="$1"
  31901. + shift
  31902. +
  31903. + if test -n "$soname_spec"; then
  31904. + eval soname=\"$soname_spec\"
  31905. + else
  31906. + soname="$realname"
  31907. + fi
  31908. + if test -z "$dlname"; then
  31909. + dlname=$soname
  31910. + fi
  31911. +
  31912. + lib="$output_objdir/$realname"
  31913. + linknames=
  31914. + for link
  31915. + do
  31916. + linknames="$linknames $link"
  31917. + done
  31918. +
  31919. + # Use standard objects if they are pic
  31920. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  31921. + test "X$libobjs" = "X " && libobjs=
  31922. +
  31923. + delfiles=
  31924. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  31925. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  31926. + export_symbols="$output_objdir/$libname.uexp"
  31927. + delfiles="$delfiles $export_symbols"
  31928. + fi
  31929. +
  31930. + orig_export_symbols=
  31931. + case $host_os in
  31932. + cygwin* | mingw* | cegcc*)
  31933. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  31934. + # exporting using user supplied symfile
  31935. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  31936. + # and it's NOT already a .def file. Must figure out
  31937. + # which of the given symbols are data symbols and tag
  31938. + # them as such. So, trigger use of export_symbols_cmds.
  31939. + # export_symbols gets reassigned inside the "prepare
  31940. + # the list of exported symbols" if statement, so the
  31941. + # include_expsyms logic still works.
  31942. + orig_export_symbols="$export_symbols"
  31943. + export_symbols=
  31944. + always_export_symbols=yes
  31945. + fi
  31946. + fi
  31947. + ;;
  31948. + esac
  31949. +
  31950. + # Prepare the list of exported symbols
  31951. + if test -z "$export_symbols"; then
  31952. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  31953. + func_verbose "generating symbol list for \`$libname.la'"
  31954. + export_symbols="$output_objdir/$libname.exp"
  31955. + $opt_dry_run || $RM $export_symbols
  31956. + cmds=$export_symbols_cmds
  31957. + save_ifs="$IFS"; IFS='~'
  31958. + for cmd in $cmds; do
  31959. + IFS="$save_ifs"
  31960. + eval cmd=\"$cmd\"
  31961. + func_len " $cmd"
  31962. + len=$func_len_result
  31963. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  31964. + func_show_eval "$cmd" 'exit $?'
  31965. + skipped_export=false
  31966. + else
  31967. + # The command line is too long to execute in one step.
  31968. + func_verbose "using reloadable object file for export list..."
  31969. + skipped_export=:
  31970. + # Break out early, otherwise skipped_export may be
  31971. + # set to false by a later but shorter cmd.
  31972. + break
  31973. + fi
  31974. + done
  31975. + IFS="$save_ifs"
  31976. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  31977. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  31978. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  31979. + fi
  31980. + fi
  31981. + fi
  31982. +
  31983. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  31984. + tmp_export_symbols="$export_symbols"
  31985. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  31986. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  31987. + fi
  31988. +
  31989. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  31990. + # The given exports_symbols file has to be filtered, so filter it.
  31991. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  31992. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  31993. + # 's' commands which not all seds can handle. GNU sed should be fine
  31994. + # though. Also, the filter scales superlinearly with the number of
  31995. + # global variables. join(1) would be nice here, but unfortunately
  31996. + # isn't a blessed tool.
  31997. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  31998. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  31999. + export_symbols=$output_objdir/$libname.def
  32000. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  32001. + fi
  32002. +
  32003. + tmp_deplibs=
  32004. + for test_deplib in $deplibs; do
  32005. + case " $convenience " in
  32006. + *" $test_deplib "*) ;;
  32007. + *)
  32008. + tmp_deplibs="$tmp_deplibs $test_deplib"
  32009. + ;;
  32010. + esac
  32011. + done
  32012. + deplibs="$tmp_deplibs"
  32013. +
  32014. + if test -n "$convenience"; then
  32015. + if test -n "$whole_archive_flag_spec" &&
  32016. + test "$compiler_needs_object" = yes &&
  32017. + test -z "$libobjs"; then
  32018. + # extract the archives, so we have objects to list.
  32019. + # TODO: could optimize this to just extract one archive.
  32020. + whole_archive_flag_spec=
  32021. + fi
  32022. + if test -n "$whole_archive_flag_spec"; then
  32023. + save_libobjs=$libobjs
  32024. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  32025. + test "X$libobjs" = "X " && libobjs=
  32026. + else
  32027. + gentop="$output_objdir/${outputname}x"
  32028. + generated="$generated $gentop"
  32029. +
  32030. + func_extract_archives $gentop $convenience
  32031. + libobjs="$libobjs $func_extract_archives_result"
  32032. + test "X$libobjs" = "X " && libobjs=
  32033. + fi
  32034. + fi
  32035. +
  32036. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  32037. + eval flag=\"$thread_safe_flag_spec\"
  32038. + linker_flags="$linker_flags $flag"
  32039. + fi
  32040. +
  32041. + # Make a backup of the uninstalled library when relinking
  32042. + if test "$mode" = relink; then
  32043. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  32044. + fi
  32045. +
  32046. + # Do each of the archive commands.
  32047. + if test "$module" = yes && test -n "$module_cmds" ; then
  32048. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  32049. + eval test_cmds=\"$module_expsym_cmds\"
  32050. + cmds=$module_expsym_cmds
  32051. + else
  32052. + eval test_cmds=\"$module_cmds\"
  32053. + cmds=$module_cmds
  32054. + fi
  32055. + else
  32056. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  32057. + eval test_cmds=\"$archive_expsym_cmds\"
  32058. + cmds=$archive_expsym_cmds
  32059. + else
  32060. + eval test_cmds=\"$archive_cmds\"
  32061. + cmds=$archive_cmds
  32062. + fi
  32063. + fi
  32064. +
  32065. + if test "X$skipped_export" != "X:" &&
  32066. + func_len " $test_cmds" &&
  32067. + len=$func_len_result &&
  32068. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  32069. + :
  32070. + else
  32071. + # The command line is too long to link in one step, link piecewise
  32072. + # or, if using GNU ld and skipped_export is not :, use a linker
  32073. + # script.
  32074. +
  32075. + # Save the value of $output and $libobjs because we want to
  32076. + # use them later. If we have whole_archive_flag_spec, we
  32077. + # want to use save_libobjs as it was before
  32078. + # whole_archive_flag_spec was expanded, because we can't
  32079. + # assume the linker understands whole_archive_flag_spec.
  32080. + # This may have to be revisited, in case too many
  32081. + # convenience libraries get linked in and end up exceeding
  32082. + # the spec.
  32083. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  32084. + save_libobjs=$libobjs
  32085. + fi
  32086. + save_output=$output
  32087. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  32088. +
  32089. + # Clear the reloadable object creation command queue and
  32090. + # initialize k to one.
  32091. + test_cmds=
  32092. + concat_cmds=
  32093. + objlist=
  32094. + last_robj=
  32095. + k=1
  32096. +
  32097. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  32098. + output=${output_objdir}/${output_la}.lnkscript
  32099. + func_verbose "creating GNU ld script: $output"
  32100. + $ECHO 'INPUT (' > $output
  32101. + for obj in $save_libobjs
  32102. + do
  32103. + $ECHO "$obj" >> $output
  32104. + done
  32105. + $ECHO ')' >> $output
  32106. + delfiles="$delfiles $output"
  32107. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  32108. + output=${output_objdir}/${output_la}.lnk
  32109. + func_verbose "creating linker input file list: $output"
  32110. + : > $output
  32111. + set x $save_libobjs
  32112. + shift
  32113. + firstobj=
  32114. + if test "$compiler_needs_object" = yes; then
  32115. + firstobj="$1 "
  32116. + shift
  32117. + fi
  32118. + for obj
  32119. + do
  32120. + $ECHO "$obj" >> $output
  32121. + done
  32122. + delfiles="$delfiles $output"
  32123. + output=$firstobj\"$file_list_spec$output\"
  32124. + else
  32125. + if test -n "$save_libobjs"; then
  32126. + func_verbose "creating reloadable object files..."
  32127. + output=$output_objdir/$output_la-${k}.$objext
  32128. + eval test_cmds=\"$reload_cmds\"
  32129. + func_len " $test_cmds"
  32130. + len0=$func_len_result
  32131. + len=$len0
  32132. +
  32133. + # Loop over the list of objects to be linked.
  32134. + for obj in $save_libobjs
  32135. + do
  32136. + func_len " $obj"
  32137. + func_arith $len + $func_len_result
  32138. + len=$func_arith_result
  32139. + if test "X$objlist" = X ||
  32140. + test "$len" -lt "$max_cmd_len"; then
  32141. + func_append objlist " $obj"
  32142. + else
  32143. + # The command $test_cmds is almost too long, add a
  32144. + # command to the queue.
  32145. + if test "$k" -eq 1 ; then
  32146. + # The first file doesn't have a previous command to add.
  32147. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  32148. + else
  32149. + # All subsequent reloadable object files will link in
  32150. + # the last one created.
  32151. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  32152. + fi
  32153. + last_robj=$output_objdir/$output_la-${k}.$objext
  32154. + func_arith $k + 1
  32155. + k=$func_arith_result
  32156. + output=$output_objdir/$output_la-${k}.$objext
  32157. + objlist=$obj
  32158. + func_len " $last_robj"
  32159. + func_arith $len0 + $func_len_result
  32160. + len=$func_arith_result
  32161. + fi
  32162. + done
  32163. + # Handle the remaining objects by creating one last
  32164. + # reloadable object file. All subsequent reloadable object
  32165. + # files will link in the last one created.
  32166. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  32167. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  32168. + if test -n "$last_robj"; then
  32169. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  32170. + fi
  32171. + delfiles="$delfiles $output"
  32172. +
  32173. + else
  32174. + output=
  32175. + fi
  32176. +
  32177. + if ${skipped_export-false}; then
  32178. + func_verbose "generating symbol list for \`$libname.la'"
  32179. + export_symbols="$output_objdir/$libname.exp"
  32180. + $opt_dry_run || $RM $export_symbols
  32181. + libobjs=$output
  32182. + # Append the command to create the export file.
  32183. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  32184. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  32185. + if test -n "$last_robj"; then
  32186. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  32187. + fi
  32188. + fi
  32189. +
  32190. + test -n "$save_libobjs" &&
  32191. + func_verbose "creating a temporary reloadable object file: $output"
  32192. +
  32193. + # Loop through the commands generated above and execute them.
  32194. + save_ifs="$IFS"; IFS='~'
  32195. + for cmd in $concat_cmds; do
  32196. + IFS="$save_ifs"
  32197. + $opt_silent || {
  32198. + func_quote_for_expand "$cmd"
  32199. + eval "func_echo $func_quote_for_expand_result"
  32200. + }
  32201. + $opt_dry_run || eval "$cmd" || {
  32202. + lt_exit=$?
  32203. +
  32204. + # Restore the uninstalled library and exit
  32205. + if test "$mode" = relink; then
  32206. + ( cd "$output_objdir" && \
  32207. + $RM "${realname}T" && \
  32208. + $MV "${realname}U" "$realname" )
  32209. + fi
  32210. +
  32211. + exit $lt_exit
  32212. + }
  32213. + done
  32214. + IFS="$save_ifs"
  32215. +
  32216. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  32217. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  32218. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  32219. + fi
  32220. + fi
  32221. +
  32222. + if ${skipped_export-false}; then
  32223. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  32224. + tmp_export_symbols="$export_symbols"
  32225. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  32226. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  32227. + fi
  32228. +
  32229. + if test -n "$orig_export_symbols"; then
  32230. + # The given exports_symbols file has to be filtered, so filter it.
  32231. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  32232. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  32233. + # 's' commands which not all seds can handle. GNU sed should be fine
  32234. + # though. Also, the filter scales superlinearly with the number of
  32235. + # global variables. join(1) would be nice here, but unfortunately
  32236. + # isn't a blessed tool.
  32237. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  32238. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  32239. + export_symbols=$output_objdir/$libname.def
  32240. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  32241. + fi
  32242. + fi
  32243. +
  32244. + libobjs=$output
  32245. + # Restore the value of output.
  32246. + output=$save_output
  32247. +
  32248. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  32249. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  32250. + test "X$libobjs" = "X " && libobjs=
  32251. + fi
  32252. + # Expand the library linking commands again to reset the
  32253. + # value of $libobjs for piecewise linking.
  32254. +
  32255. + # Do each of the archive commands.
  32256. + if test "$module" = yes && test -n "$module_cmds" ; then
  32257. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  32258. + cmds=$module_expsym_cmds
  32259. + else
  32260. + cmds=$module_cmds
  32261. + fi
  32262. + else
  32263. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  32264. + cmds=$archive_expsym_cmds
  32265. + else
  32266. + cmds=$archive_cmds
  32267. + fi
  32268. + fi
  32269. + fi
  32270. +
  32271. + if test -n "$delfiles"; then
  32272. + # Append the command to remove temporary files to $cmds.
  32273. + eval cmds=\"\$cmds~\$RM $delfiles\"
  32274. + fi
  32275. +
  32276. + # Add any objects from preloaded convenience libraries
  32277. + if test -n "$dlprefiles"; then
  32278. + gentop="$output_objdir/${outputname}x"
  32279. + generated="$generated $gentop"
  32280. +
  32281. + func_extract_archives $gentop $dlprefiles
  32282. + libobjs="$libobjs $func_extract_archives_result"
  32283. + test "X$libobjs" = "X " && libobjs=
  32284. + fi
  32285. +
  32286. + save_ifs="$IFS"; IFS='~'
  32287. + for cmd in $cmds; do
  32288. + IFS="$save_ifs"
  32289. + eval cmd=\"$cmd\"
  32290. + $opt_silent || {
  32291. + func_quote_for_expand "$cmd"
  32292. + eval "func_echo $func_quote_for_expand_result"
  32293. + }
  32294. + $opt_dry_run || eval "$cmd" || {
  32295. + lt_exit=$?
  32296. +
  32297. + # Restore the uninstalled library and exit
  32298. + if test "$mode" = relink; then
  32299. + ( cd "$output_objdir" && \
  32300. + $RM "${realname}T" && \
  32301. + $MV "${realname}U" "$realname" )
  32302. + fi
  32303. +
  32304. + exit $lt_exit
  32305. + }
  32306. + done
  32307. + IFS="$save_ifs"
  32308. +
  32309. + # Restore the uninstalled library and exit
  32310. + if test "$mode" = relink; then
  32311. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  32312. +
  32313. + if test -n "$convenience"; then
  32314. + if test -z "$whole_archive_flag_spec"; then
  32315. + func_show_eval '${RM}r "$gentop"'
  32316. + fi
  32317. + fi
  32318. +
  32319. + exit $EXIT_SUCCESS
  32320. + fi
  32321. +
  32322. + # Create links to the real library.
  32323. + for linkname in $linknames; do
  32324. + if test "$realname" != "$linkname"; then
  32325. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  32326. + fi
  32327. + done
  32328. +
  32329. + # If -module or -export-dynamic was specified, set the dlname.
  32330. + if test "$module" = yes || test "$export_dynamic" = yes; then
  32331. + # On all known operating systems, these are identical.
  32332. + dlname="$soname"
  32333. + fi
  32334. + fi
  32335. + ;;
  32336. +
  32337. + obj)
  32338. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  32339. + func_warning "\`-dlopen' is ignored for objects"
  32340. + fi
  32341. +
  32342. + case " $deplibs" in
  32343. + *\ -l* | *\ -L*)
  32344. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  32345. + esac
  32346. +
  32347. + test -n "$rpath" && \
  32348. + func_warning "\`-rpath' is ignored for objects"
  32349. +
  32350. + test -n "$xrpath" && \
  32351. + func_warning "\`-R' is ignored for objects"
  32352. +
  32353. + test -n "$vinfo" && \
  32354. + func_warning "\`-version-info' is ignored for objects"
  32355. +
  32356. + test -n "$release" && \
  32357. + func_warning "\`-release' is ignored for objects"
  32358. +
  32359. + case $output in
  32360. + *.lo)
  32361. + test -n "$objs$old_deplibs" && \
  32362. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  32363. +
  32364. + libobj=$output
  32365. + func_lo2o "$libobj"
  32366. + obj=$func_lo2o_result
  32367. + ;;
  32368. + *)
  32369. + libobj=
  32370. + obj="$output"
  32371. + ;;
  32372. + esac
  32373. +
  32374. + # Delete the old objects.
  32375. + $opt_dry_run || $RM $obj $libobj
  32376. +
  32377. + # Objects from convenience libraries. This assumes
  32378. + # single-version convenience libraries. Whenever we create
  32379. + # different ones for PIC/non-PIC, this we'll have to duplicate
  32380. + # the extraction.
  32381. + reload_conv_objs=
  32382. + gentop=
  32383. + # reload_cmds runs $LD directly, so let us get rid of
  32384. + # -Wl from whole_archive_flag_spec and hope we can get by with
  32385. + # turning comma into space..
  32386. + wl=
  32387. +
  32388. + if test -n "$convenience"; then
  32389. + if test -n "$whole_archive_flag_spec"; then
  32390. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  32391. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  32392. + else
  32393. + gentop="$output_objdir/${obj}x"
  32394. + generated="$generated $gentop"
  32395. +
  32396. + func_extract_archives $gentop $convenience
  32397. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  32398. + fi
  32399. + fi
  32400. +
  32401. + # Create the old-style object.
  32402. + 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
  32403. +
  32404. + output="$obj"
  32405. + func_execute_cmds "$reload_cmds" 'exit $?'
  32406. +
  32407. + # Exit if we aren't doing a library object file.
  32408. + if test -z "$libobj"; then
  32409. + if test -n "$gentop"; then
  32410. + func_show_eval '${RM}r "$gentop"'
  32411. + fi
  32412. +
  32413. + exit $EXIT_SUCCESS
  32414. + fi
  32415. +
  32416. + if test "$build_libtool_libs" != yes; then
  32417. + if test -n "$gentop"; then
  32418. + func_show_eval '${RM}r "$gentop"'
  32419. + fi
  32420. +
  32421. + # Create an invalid libtool object if no PIC, so that we don't
  32422. + # accidentally link it into a program.
  32423. + # $show "echo timestamp > $libobj"
  32424. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  32425. + exit $EXIT_SUCCESS
  32426. + fi
  32427. +
  32428. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  32429. + # Only do commands if we really have different PIC objects.
  32430. + reload_objs="$libobjs $reload_conv_objs"
  32431. + output="$libobj"
  32432. + func_execute_cmds "$reload_cmds" 'exit $?'
  32433. + fi
  32434. +
  32435. + if test -n "$gentop"; then
  32436. + func_show_eval '${RM}r "$gentop"'
  32437. + fi
  32438. +
  32439. + exit $EXIT_SUCCESS
  32440. + ;;
  32441. +
  32442. + prog)
  32443. + case $host in
  32444. + *cygwin*) func_stripname '' '.exe' "$output"
  32445. + output=$func_stripname_result.exe;;
  32446. + esac
  32447. + test -n "$vinfo" && \
  32448. + func_warning "\`-version-info' is ignored for programs"
  32449. +
  32450. + test -n "$release" && \
  32451. + func_warning "\`-release' is ignored for programs"
  32452. +
  32453. + test "$preload" = yes \
  32454. + && test "$dlopen_support" = unknown \
  32455. + && test "$dlopen_self" = unknown \
  32456. + && test "$dlopen_self_static" = unknown && \
  32457. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  32458. +
  32459. + case $host in
  32460. + *-*-rhapsody* | *-*-darwin1.[012])
  32461. + # On Rhapsody replace the C library is the System framework
  32462. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  32463. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  32464. + ;;
  32465. + esac
  32466. +
  32467. + case $host in
  32468. + *-*-darwin*)
  32469. + # Don't allow lazy linking, it breaks C++ global constructors
  32470. + # But is supposedly fixed on 10.4 or later (yay!).
  32471. + if test "$tagname" = CXX ; then
  32472. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  32473. + 10.[0123])
  32474. + compile_command="$compile_command ${wl}-bind_at_load"
  32475. + finalize_command="$finalize_command ${wl}-bind_at_load"
  32476. + ;;
  32477. + esac
  32478. + fi
  32479. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  32480. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32481. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32482. + ;;
  32483. + esac
  32484. +
  32485. +
  32486. + # move library search paths that coincide with paths to not yet
  32487. + # installed libraries to the beginning of the library search list
  32488. + new_libs=
  32489. + for path in $notinst_path; do
  32490. + case " $new_libs " in
  32491. + *" -L$path/$objdir "*) ;;
  32492. + *)
  32493. + case " $compile_deplibs " in
  32494. + *" -L$path/$objdir "*)
  32495. + new_libs="$new_libs -L$path/$objdir" ;;
  32496. + esac
  32497. + ;;
  32498. + esac
  32499. + done
  32500. + for deplib in $compile_deplibs; do
  32501. + case $deplib in
  32502. + -L*)
  32503. + case " $new_libs " in
  32504. + *" $deplib "*) ;;
  32505. + *) new_libs="$new_libs $deplib" ;;
  32506. + esac
  32507. + ;;
  32508. + *) new_libs="$new_libs $deplib" ;;
  32509. + esac
  32510. + done
  32511. + compile_deplibs="$new_libs"
  32512. +
  32513. +
  32514. + compile_command="$compile_command $compile_deplibs"
  32515. + finalize_command="$finalize_command $finalize_deplibs"
  32516. +
  32517. + if test -n "$rpath$xrpath"; then
  32518. + # If the user specified any rpath flags, then add them.
  32519. + for libdir in $rpath $xrpath; do
  32520. + # This is the magic to use -rpath.
  32521. + case "$finalize_rpath " in
  32522. + *" $libdir "*) ;;
  32523. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  32524. + esac
  32525. + done
  32526. + fi
  32527. +
  32528. + # Now hardcode the library paths
  32529. + rpath=
  32530. + hardcode_libdirs=
  32531. + for libdir in $compile_rpath $finalize_rpath; do
  32532. + if test -n "$hardcode_libdir_flag_spec"; then
  32533. + if test -n "$hardcode_libdir_separator"; then
  32534. + if test -z "$hardcode_libdirs"; then
  32535. + hardcode_libdirs="$libdir"
  32536. + else
  32537. + # Just accumulate the unique libdirs.
  32538. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  32539. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  32540. + ;;
  32541. + *)
  32542. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  32543. + ;;
  32544. + esac
  32545. + fi
  32546. + else
  32547. + eval flag=\"$hardcode_libdir_flag_spec\"
  32548. + rpath="$rpath $flag"
  32549. + fi
  32550. + elif test -n "$runpath_var"; then
  32551. + case "$perm_rpath " in
  32552. + *" $libdir "*) ;;
  32553. + *) perm_rpath="$perm_rpath $libdir" ;;
  32554. + esac
  32555. + fi
  32556. + case $host in
  32557. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  32558. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  32559. + case :$dllsearchpath: in
  32560. + *":$libdir:"*) ;;
  32561. + ::) dllsearchpath=$libdir;;
  32562. + *) dllsearchpath="$dllsearchpath:$libdir";;
  32563. + esac
  32564. + case :$dllsearchpath: in
  32565. + *":$testbindir:"*) ;;
  32566. + ::) dllsearchpath=$testbindir;;
  32567. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  32568. + esac
  32569. + ;;
  32570. + esac
  32571. + done
  32572. + # Substitute the hardcoded libdirs into the rpath.
  32573. + if test -n "$hardcode_libdir_separator" &&
  32574. + test -n "$hardcode_libdirs"; then
  32575. + libdir="$hardcode_libdirs"
  32576. + eval rpath=\" $hardcode_libdir_flag_spec\"
  32577. + fi
  32578. + compile_rpath="$rpath"
  32579. +
  32580. + rpath=
  32581. + hardcode_libdirs=
  32582. + for libdir in $finalize_rpath; do
  32583. + if test -n "$hardcode_libdir_flag_spec"; then
  32584. + if test -n "$hardcode_libdir_separator"; then
  32585. + if test -z "$hardcode_libdirs"; then
  32586. + hardcode_libdirs="$libdir"
  32587. + else
  32588. + # Just accumulate the unique libdirs.
  32589. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  32590. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  32591. + ;;
  32592. + *)
  32593. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  32594. + ;;
  32595. + esac
  32596. + fi
  32597. + else
  32598. + eval flag=\"$hardcode_libdir_flag_spec\"
  32599. + rpath="$rpath $flag"
  32600. + fi
  32601. + elif test -n "$runpath_var"; then
  32602. + case "$finalize_perm_rpath " in
  32603. + *" $libdir "*) ;;
  32604. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  32605. + esac
  32606. + fi
  32607. + done
  32608. + # Substitute the hardcoded libdirs into the rpath.
  32609. + if test -n "$hardcode_libdir_separator" &&
  32610. + test -n "$hardcode_libdirs"; then
  32611. + libdir="$hardcode_libdirs"
  32612. + eval rpath=\" $hardcode_libdir_flag_spec\"
  32613. + fi
  32614. + finalize_rpath="$rpath"
  32615. +
  32616. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  32617. + # Transform all the library objects into standard objects.
  32618. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  32619. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  32620. + fi
  32621. +
  32622. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  32623. +
  32624. + # template prelinking step
  32625. + if test -n "$prelink_cmds"; then
  32626. + func_execute_cmds "$prelink_cmds" 'exit $?'
  32627. + fi
  32628. +
  32629. + wrappers_required=yes
  32630. + case $host in
  32631. + *cygwin* | *mingw* )
  32632. + if test "$build_libtool_libs" != yes; then
  32633. + wrappers_required=no
  32634. + fi
  32635. + ;;
  32636. + *cegcc)
  32637. + # Disable wrappers for cegcc, we are cross compiling anyway.
  32638. + wrappers_required=no
  32639. + ;;
  32640. + *)
  32641. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  32642. + wrappers_required=no
  32643. + fi
  32644. + ;;
  32645. + esac
  32646. + if test "$wrappers_required" = no; then
  32647. + # Replace the output file specification.
  32648. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  32649. + link_command="$compile_command$compile_rpath"
  32650. +
  32651. + # We have no uninstalled library dependencies, so finalize right now.
  32652. + exit_status=0
  32653. + func_show_eval "$link_command" 'exit_status=$?'
  32654. +
  32655. + # Delete the generated files.
  32656. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  32657. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  32658. + fi
  32659. +
  32660. + exit $exit_status
  32661. + fi
  32662. +
  32663. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  32664. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  32665. + fi
  32666. + if test -n "$finalize_shlibpath"; then
  32667. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  32668. + fi
  32669. +
  32670. + compile_var=
  32671. + finalize_var=
  32672. + if test -n "$runpath_var"; then
  32673. + if test -n "$perm_rpath"; then
  32674. + # We should set the runpath_var.
  32675. + rpath=
  32676. + for dir in $perm_rpath; do
  32677. + rpath="$rpath$dir:"
  32678. + done
  32679. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  32680. + fi
  32681. + if test -n "$finalize_perm_rpath"; then
  32682. + # We should set the runpath_var.
  32683. + rpath=
  32684. + for dir in $finalize_perm_rpath; do
  32685. + rpath="$rpath$dir:"
  32686. + done
  32687. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  32688. + fi
  32689. + fi
  32690. +
  32691. + if test "$no_install" = yes; then
  32692. + # We don't need to create a wrapper script.
  32693. + link_command="$compile_var$compile_command$compile_rpath"
  32694. + # Replace the output file specification.
  32695. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  32696. + # Delete the old output file.
  32697. + $opt_dry_run || $RM $output
  32698. + # Link the executable and exit
  32699. + func_show_eval "$link_command" 'exit $?'
  32700. + exit $EXIT_SUCCESS
  32701. + fi
  32702. +
  32703. + if test "$hardcode_action" = relink; then
  32704. + # Fast installation is not supported
  32705. + link_command="$compile_var$compile_command$compile_rpath"
  32706. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  32707. +
  32708. + func_warning "this platform does not like uninstalled shared libraries"
  32709. + func_warning "\`$output' will be relinked during installation"
  32710. + else
  32711. + if test "$fast_install" != no; then
  32712. + link_command="$finalize_var$compile_command$finalize_rpath"
  32713. + if test "$fast_install" = yes; then
  32714. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  32715. + else
  32716. + # fast_install is set to needless
  32717. + relink_command=
  32718. + fi
  32719. + else
  32720. + link_command="$compile_var$compile_command$compile_rpath"
  32721. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  32722. + fi
  32723. + fi
  32724. +
  32725. + # Replace the output file specification.
  32726. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  32727. +
  32728. + # Delete the old output files.
  32729. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  32730. +
  32731. + func_show_eval "$link_command" 'exit $?'
  32732. +
  32733. + # Now create the wrapper script.
  32734. + func_verbose "creating $output"
  32735. +
  32736. + # Quote the relink command for shipping.
  32737. + if test -n "$relink_command"; then
  32738. + # Preserve any variables that may affect compiler behavior
  32739. + for var in $variables_saved_for_relink; do
  32740. + if eval test -z \"\${$var+set}\"; then
  32741. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  32742. + elif eval var_value=\$$var; test -z "$var_value"; then
  32743. + relink_command="$var=; export $var; $relink_command"
  32744. + else
  32745. + func_quote_for_eval "$var_value"
  32746. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  32747. + fi
  32748. + done
  32749. + relink_command="(cd `pwd`; $relink_command)"
  32750. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  32751. + fi
  32752. +
  32753. + # Quote $ECHO for shipping.
  32754. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  32755. + case $progpath in
  32756. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  32757. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  32758. + esac
  32759. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  32760. + else
  32761. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  32762. + fi
  32763. +
  32764. + # Only actually do things if not in dry run mode.
  32765. + $opt_dry_run || {
  32766. + # win32 will think the script is a binary if it has
  32767. + # a .exe suffix, so we strip it off here.
  32768. + case $output in
  32769. + *.exe) func_stripname '' '.exe' "$output"
  32770. + output=$func_stripname_result ;;
  32771. + esac
  32772. + # test for cygwin because mv fails w/o .exe extensions
  32773. + case $host in
  32774. + *cygwin*)
  32775. + exeext=.exe
  32776. + func_stripname '' '.exe' "$outputname"
  32777. + outputname=$func_stripname_result ;;
  32778. + *) exeext= ;;
  32779. + esac
  32780. + case $host in
  32781. + *cygwin* | *mingw* )
  32782. + func_dirname_and_basename "$output" "" "."
  32783. + output_name=$func_basename_result
  32784. + output_path=$func_dirname_result
  32785. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  32786. + cwrapper="$output_path/$output_name.exe"
  32787. + $RM $cwrappersource $cwrapper
  32788. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  32789. +
  32790. + func_emit_cwrapperexe_src > $cwrappersource
  32791. +
  32792. + # The wrapper executable is built using the $host compiler,
  32793. + # because it contains $host paths and files. If cross-
  32794. + # compiling, it, like the target executable, must be
  32795. + # executed on the $host or under an emulation environment.
  32796. + $opt_dry_run || {
  32797. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  32798. + $STRIP $cwrapper
  32799. + }
  32800. +
  32801. + # Now, create the wrapper script for func_source use:
  32802. + func_ltwrapper_scriptname $cwrapper
  32803. + $RM $func_ltwrapper_scriptname_result
  32804. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  32805. + $opt_dry_run || {
  32806. + # note: this script will not be executed, so do not chmod.
  32807. + if test "x$build" = "x$host" ; then
  32808. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  32809. + else
  32810. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  32811. + fi
  32812. + }
  32813. + ;;
  32814. + * )
  32815. + $RM $output
  32816. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  32817. +
  32818. + func_emit_wrapper no > $output
  32819. + chmod +x $output
  32820. + ;;
  32821. + esac
  32822. + }
  32823. + exit $EXIT_SUCCESS
  32824. + ;;
  32825. + esac
  32826. +
  32827. + # See if we need to build an old-fashioned archive.
  32828. + for oldlib in $oldlibs; do
  32829. +
  32830. + if test "$build_libtool_libs" = convenience; then
  32831. + oldobjs="$libobjs_save $symfileobj"
  32832. + addlibs="$convenience"
  32833. + build_libtool_libs=no
  32834. + else
  32835. + if test "$build_libtool_libs" = module; then
  32836. + oldobjs="$libobjs_save"
  32837. + build_libtool_libs=no
  32838. + else
  32839. + oldobjs="$old_deplibs $non_pic_objects"
  32840. + if test "$preload" = yes && test -f "$symfileobj"; then
  32841. + oldobjs="$oldobjs $symfileobj"
  32842. + fi
  32843. + fi
  32844. + addlibs="$old_convenience"
  32845. + fi
  32846. +
  32847. + if test -n "$addlibs"; then
  32848. + gentop="$output_objdir/${outputname}x"
  32849. + generated="$generated $gentop"
  32850. +
  32851. + func_extract_archives $gentop $addlibs
  32852. + oldobjs="$oldobjs $func_extract_archives_result"
  32853. + fi
  32854. +
  32855. + # Do each command in the archive commands.
  32856. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  32857. + cmds=$old_archive_from_new_cmds
  32858. + else
  32859. +
  32860. + # Add any objects from preloaded convenience libraries
  32861. + if test -n "$dlprefiles"; then
  32862. + gentop="$output_objdir/${outputname}x"
  32863. + generated="$generated $gentop"
  32864. +
  32865. + func_extract_archives $gentop $dlprefiles
  32866. + oldobjs="$oldobjs $func_extract_archives_result"
  32867. + fi
  32868. +
  32869. + # POSIX demands no paths to be encoded in archives. We have
  32870. + # to avoid creating archives with duplicate basenames if we
  32871. + # might have to extract them afterwards, e.g., when creating a
  32872. + # static archive out of a convenience library, or when linking
  32873. + # the entirety of a libtool archive into another (currently
  32874. + # not supported by libtool).
  32875. + if (for obj in $oldobjs
  32876. + do
  32877. + func_basename "$obj"
  32878. + $ECHO "$func_basename_result"
  32879. + done | sort | sort -uc >/dev/null 2>&1); then
  32880. + :
  32881. + else
  32882. + $ECHO "copying selected object files to avoid basename conflicts..."
  32883. + gentop="$output_objdir/${outputname}x"
  32884. + generated="$generated $gentop"
  32885. + func_mkdir_p "$gentop"
  32886. + save_oldobjs=$oldobjs
  32887. + oldobjs=
  32888. + counter=1
  32889. + for obj in $save_oldobjs
  32890. + do
  32891. + func_basename "$obj"
  32892. + objbase="$func_basename_result"
  32893. + case " $oldobjs " in
  32894. + " ") oldobjs=$obj ;;
  32895. + *[\ /]"$objbase "*)
  32896. + while :; do
  32897. + # Make sure we don't pick an alternate name that also
  32898. + # overlaps.
  32899. + newobj=lt$counter-$objbase
  32900. + func_arith $counter + 1
  32901. + counter=$func_arith_result
  32902. + case " $oldobjs " in
  32903. + *[\ /]"$newobj "*) ;;
  32904. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  32905. + esac
  32906. + done
  32907. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  32908. + oldobjs="$oldobjs $gentop/$newobj"
  32909. + ;;
  32910. + *) oldobjs="$oldobjs $obj" ;;
  32911. + esac
  32912. + done
  32913. + fi
  32914. + eval cmds=\"$old_archive_cmds\"
  32915. +
  32916. + func_len " $cmds"
  32917. + len=$func_len_result
  32918. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  32919. + cmds=$old_archive_cmds
  32920. + else
  32921. + # the command line is too long to link in one step, link in parts
  32922. + func_verbose "using piecewise archive linking..."
  32923. + save_RANLIB=$RANLIB
  32924. + RANLIB=:
  32925. + objlist=
  32926. + concat_cmds=
  32927. + save_oldobjs=$oldobjs
  32928. + oldobjs=
  32929. + # Is there a better way of finding the last object in the list?
  32930. + for obj in $save_oldobjs
  32931. + do
  32932. + last_oldobj=$obj
  32933. + done
  32934. + eval test_cmds=\"$old_archive_cmds\"
  32935. + func_len " $test_cmds"
  32936. + len0=$func_len_result
  32937. + len=$len0
  32938. + for obj in $save_oldobjs
  32939. + do
  32940. + func_len " $obj"
  32941. + func_arith $len + $func_len_result
  32942. + len=$func_arith_result
  32943. + func_append objlist " $obj"
  32944. + if test "$len" -lt "$max_cmd_len"; then
  32945. + :
  32946. + else
  32947. + # the above command should be used before it gets too long
  32948. + oldobjs=$objlist
  32949. + if test "$obj" = "$last_oldobj" ; then
  32950. + RANLIB=$save_RANLIB
  32951. + fi
  32952. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  32953. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  32954. + objlist=
  32955. + len=$len0
  32956. + fi
  32957. + done
  32958. + RANLIB=$save_RANLIB
  32959. + oldobjs=$objlist
  32960. + if test "X$oldobjs" = "X" ; then
  32961. + eval cmds=\"\$concat_cmds\"
  32962. + else
  32963. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  32964. + fi
  32965. + fi
  32966. + fi
  32967. + func_execute_cmds "$cmds" 'exit $?'
  32968. + done
  32969. +
  32970. + test -n "$generated" && \
  32971. + func_show_eval "${RM}r$generated"
  32972. +
  32973. + # Now create the libtool archive.
  32974. + case $output in
  32975. + *.la)
  32976. + old_library=
  32977. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  32978. + func_verbose "creating $output"
  32979. +
  32980. + # Preserve any variables that may affect compiler behavior
  32981. + for var in $variables_saved_for_relink; do
  32982. + if eval test -z \"\${$var+set}\"; then
  32983. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  32984. + elif eval var_value=\$$var; test -z "$var_value"; then
  32985. + relink_command="$var=; export $var; $relink_command"
  32986. + else
  32987. + func_quote_for_eval "$var_value"
  32988. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  32989. + fi
  32990. + done
  32991. + # Quote the link command for shipping.
  32992. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  32993. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  32994. + if test "$hardcode_automatic" = yes ; then
  32995. + relink_command=
  32996. + fi
  32997. +
  32998. + # Only create the output if not a dry run.
  32999. + $opt_dry_run || {
  33000. + for installed in no yes; do
  33001. + if test "$installed" = yes; then
  33002. + if test -z "$install_libdir"; then
  33003. + break
  33004. + fi
  33005. + output="$output_objdir/$outputname"i
  33006. + # Replace all uninstalled libtool libraries with the installed ones
  33007. + newdependency_libs=
  33008. + for deplib in $dependency_libs; do
  33009. + case $deplib in
  33010. + *.la)
  33011. + func_basename "$deplib"
  33012. + name="$func_basename_result"
  33013. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  33014. + test -z "$libdir" && \
  33015. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  33016. + newdependency_libs="$newdependency_libs $libdir/$name"
  33017. + ;;
  33018. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  33019. + esac
  33020. + done
  33021. + dependency_libs="$newdependency_libs"
  33022. + newdlfiles=
  33023. +
  33024. + for lib in $dlfiles; do
  33025. + case $lib in
  33026. + *.la)
  33027. + func_basename "$lib"
  33028. + name="$func_basename_result"
  33029. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  33030. + test -z "$libdir" && \
  33031. + func_fatal_error "\`$lib' is not a valid libtool archive"
  33032. + newdlfiles="$newdlfiles $libdir/$name"
  33033. + ;;
  33034. + *) newdlfiles="$newdlfiles $lib" ;;
  33035. + esac
  33036. + done
  33037. + dlfiles="$newdlfiles"
  33038. + newdlprefiles=
  33039. + for lib in $dlprefiles; do
  33040. + case $lib in
  33041. + *.la)
  33042. + # Only pass preopened files to the pseudo-archive (for
  33043. + # eventual linking with the app. that links it) if we
  33044. + # didn't already link the preopened objects directly into
  33045. + # the library:
  33046. + func_basename "$lib"
  33047. + name="$func_basename_result"
  33048. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  33049. + test -z "$libdir" && \
  33050. + func_fatal_error "\`$lib' is not a valid libtool archive"
  33051. + newdlprefiles="$newdlprefiles $libdir/$name"
  33052. + ;;
  33053. + esac
  33054. + done
  33055. + dlprefiles="$newdlprefiles"
  33056. + else
  33057. + newdlfiles=
  33058. + for lib in $dlfiles; do
  33059. + case $lib in
  33060. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  33061. + *) abs=`pwd`"/$lib" ;;
  33062. + esac
  33063. + newdlfiles="$newdlfiles $abs"
  33064. + done
  33065. + dlfiles="$newdlfiles"
  33066. + newdlprefiles=
  33067. + for lib in $dlprefiles; do
  33068. + case $lib in
  33069. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  33070. + *) abs=`pwd`"/$lib" ;;
  33071. + esac
  33072. + newdlprefiles="$newdlprefiles $abs"
  33073. + done
  33074. + dlprefiles="$newdlprefiles"
  33075. + fi
  33076. + $RM $output
  33077. + # place dlname in correct position for cygwin
  33078. + tdlname=$dlname
  33079. + case $host,$output,$installed,$module,$dlname in
  33080. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  33081. + esac
  33082. + $ECHO > $output "\
  33083. +# $outputname - a libtool library file
  33084. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  33085. +#
  33086. +# Please DO NOT delete this file!
  33087. +# It is necessary for linking the library.
  33088. +
  33089. +# The name that we can dlopen(3).
  33090. +dlname='$tdlname'
  33091. +
  33092. +# Names of this library.
  33093. +library_names='$library_names'
  33094. +
  33095. +# The name of the static archive.
  33096. +old_library='$old_library'
  33097. +
  33098. +# Linker flags that can not go in dependency_libs.
  33099. +inherited_linker_flags='$new_inherited_linker_flags'
  33100. +
  33101. +# Libraries that this one depends upon.
  33102. +dependency_libs='$dependency_libs'
  33103. +
  33104. +# Names of additional weak libraries provided by this library
  33105. +weak_library_names='$weak_libs'
  33106. +
  33107. +# Version information for $libname.
  33108. +current=$current
  33109. +age=$age
  33110. +revision=$revision
  33111. +
  33112. +# Is this an already installed library?
  33113. +installed=$installed
  33114. +
  33115. +# Should we warn about portability when linking against -modules?
  33116. +shouldnotlink=$module
  33117. +
  33118. +# Files to dlopen/dlpreopen
  33119. +dlopen='$dlfiles'
  33120. +dlpreopen='$dlprefiles'
  33121. +
  33122. +# Directory that this library needs to be installed in:
  33123. +libdir='$install_libdir'"
  33124. + if test "$installed" = no && test "$need_relink" = yes; then
  33125. + $ECHO >> $output "\
  33126. +relink_command=\"$relink_command\""
  33127. + fi
  33128. + done
  33129. + }
  33130. +
  33131. + # Do a symbolic link so that the libtool archive can be found in
  33132. + # LD_LIBRARY_PATH before the program is installed.
  33133. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  33134. + ;;
  33135. + esac
  33136. + exit $EXIT_SUCCESS
  33137. +}
  33138. +
  33139. +{ test "$mode" = link || test "$mode" = relink; } &&
  33140. + func_mode_link ${1+"$@"}
  33141. +
  33142. +
  33143. +# func_mode_uninstall arg...
  33144. +func_mode_uninstall ()
  33145. +{
  33146. + $opt_debug
  33147. + RM="$nonopt"
  33148. + files=
  33149. + rmforce=
  33150. + exit_status=0
  33151. +
  33152. + # This variable tells wrapper scripts just to set variables rather
  33153. + # than running their programs.
  33154. + libtool_install_magic="$magic"
  33155. +
  33156. + for arg
  33157. + do
  33158. + case $arg in
  33159. + -f) RM="$RM $arg"; rmforce=yes ;;
  33160. + -*) RM="$RM $arg" ;;
  33161. + *) files="$files $arg" ;;
  33162. + esac
  33163. + done
  33164. +
  33165. + test -z "$RM" && \
  33166. + func_fatal_help "you must specify an RM program"
  33167. +
  33168. + rmdirs=
  33169. +
  33170. + origobjdir="$objdir"
  33171. + for file in $files; do
  33172. + func_dirname "$file" "" "."
  33173. + dir="$func_dirname_result"
  33174. + if test "X$dir" = X.; then
  33175. + objdir="$origobjdir"
  33176. + else
  33177. + objdir="$dir/$origobjdir"
  33178. + fi
  33179. + func_basename "$file"
  33180. + name="$func_basename_result"
  33181. + test "$mode" = uninstall && objdir="$dir"
  33182. +
  33183. + # Remember objdir for removal later, being careful to avoid duplicates
  33184. + if test "$mode" = clean; then
  33185. + case " $rmdirs " in
  33186. + *" $objdir "*) ;;
  33187. + *) rmdirs="$rmdirs $objdir" ;;
  33188. + esac
  33189. + fi
  33190. +
  33191. + # Don't error if the file doesn't exist and rm -f was used.
  33192. + if { test -L "$file"; } >/dev/null 2>&1 ||
  33193. + { test -h "$file"; } >/dev/null 2>&1 ||
  33194. + test -f "$file"; then
  33195. + :
  33196. + elif test -d "$file"; then
  33197. + exit_status=1
  33198. + continue
  33199. + elif test "$rmforce" = yes; then
  33200. + continue
  33201. + fi
  33202. +
  33203. + rmfiles="$file"
  33204. +
  33205. + case $name in
  33206. + *.la)
  33207. + # Possibly a libtool archive, so verify it.
  33208. + if func_lalib_p "$file"; then
  33209. + func_source $dir/$name
  33210. +
  33211. + # Delete the libtool libraries and symlinks.
  33212. + for n in $library_names; do
  33213. + rmfiles="$rmfiles $objdir/$n"
  33214. + done
  33215. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  33216. +
  33217. + case "$mode" in
  33218. + clean)
  33219. + case " $library_names " in
  33220. + # " " in the beginning catches empty $dlname
  33221. + *" $dlname "*) ;;
  33222. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  33223. + esac
  33224. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  33225. + ;;
  33226. + uninstall)
  33227. + if test -n "$library_names"; then
  33228. + # Do each command in the postuninstall commands.
  33229. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  33230. + fi
  33231. +
  33232. + if test -n "$old_library"; then
  33233. + # Do each command in the old_postuninstall commands.
  33234. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  33235. + fi
  33236. + # FIXME: should reinstall the best remaining shared library.
  33237. + ;;
  33238. + esac
  33239. + fi
  33240. + ;;
  33241. +
  33242. + *.lo)
  33243. + # Possibly a libtool object, so verify it.
  33244. + if func_lalib_p "$file"; then
  33245. +
  33246. + # Read the .lo file
  33247. + func_source $dir/$name
  33248. +
  33249. + # Add PIC object to the list of files to remove.
  33250. + if test -n "$pic_object" &&
  33251. + test "$pic_object" != none; then
  33252. + rmfiles="$rmfiles $dir/$pic_object"
  33253. + fi
  33254. +
  33255. + # Add non-PIC object to the list of files to remove.
  33256. + if test -n "$non_pic_object" &&
  33257. + test "$non_pic_object" != none; then
  33258. + rmfiles="$rmfiles $dir/$non_pic_object"
  33259. + fi
  33260. + fi
  33261. + ;;
  33262. +
  33263. + *)
  33264. + if test "$mode" = clean ; then
  33265. + noexename=$name
  33266. + case $file in
  33267. + *.exe)
  33268. + func_stripname '' '.exe' "$file"
  33269. + file=$func_stripname_result
  33270. + func_stripname '' '.exe' "$name"
  33271. + noexename=$func_stripname_result
  33272. + # $file with .exe has already been added to rmfiles,
  33273. + # add $file without .exe
  33274. + rmfiles="$rmfiles $file"
  33275. + ;;
  33276. + esac
  33277. + # Do a test to see if this is a libtool program.
  33278. + if func_ltwrapper_p "$file"; then
  33279. + if func_ltwrapper_executable_p "$file"; then
  33280. + func_ltwrapper_scriptname "$file"
  33281. + relink_command=
  33282. + func_source $func_ltwrapper_scriptname_result
  33283. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  33284. + else
  33285. + relink_command=
  33286. + func_source $dir/$noexename
  33287. + fi
  33288. +
  33289. + # note $name still contains .exe if it was in $file originally
  33290. + # as does the version of $file that was added into $rmfiles
  33291. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  33292. + if test "$fast_install" = yes && test -n "$relink_command"; then
  33293. + rmfiles="$rmfiles $objdir/lt-$name"
  33294. + fi
  33295. + if test "X$noexename" != "X$name" ; then
  33296. + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  33297. + fi
  33298. + fi
  33299. + fi
  33300. + ;;
  33301. + esac
  33302. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  33303. + done
  33304. + objdir="$origobjdir"
  33305. +
  33306. + # Try to remove the ${objdir}s in the directories where we deleted files
  33307. + for dir in $rmdirs; do
  33308. + if test -d "$dir"; then
  33309. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  33310. + fi
  33311. + done
  33312. +
  33313. + exit $exit_status
  33314. +}
  33315. +
  33316. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  33317. + func_mode_uninstall ${1+"$@"}
  33318. +
  33319. +test -z "$mode" && {
  33320. + help="$generic_help"
  33321. + func_fatal_help "you must specify a MODE"
  33322. +}
  33323. +
  33324. +test -z "$exec_cmd" && \
  33325. + func_fatal_help "invalid operation mode \`$mode'"
  33326. +
  33327. +if test -n "$exec_cmd"; then
  33328. + eval exec "$exec_cmd"
  33329. + exit $EXIT_FAILURE
  33330. +fi
  33331. +
  33332. +exit $exit_status
  33333. +
  33334. +
  33335. +# The TAGs below are defined such that we never get into a situation
  33336. +# in which we disable both kinds of libraries. Given conflicting
  33337. +# choices, we go for a static library, that is the most portable,
  33338. +# since we can't tell whether shared libraries were disabled because
  33339. +# the user asked for that or because the platform doesn't support
  33340. +# them. This is particularly important on AIX, because we don't
  33341. +# support having both static and shared libraries enabled at the same
  33342. +# time on that platform, so we default to a shared-only configuration.
  33343. +# If a disable-shared tag is given, we'll fallback to a static-only
  33344. +# configuration. But we'll never go from static-only to shared-only.
  33345. +
  33346. +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  33347. +build_libtool_libs=no
  33348. +build_old_libs=yes
  33349. +# ### END LIBTOOL TAG CONFIG: disable-shared
  33350. +
  33351. +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
  33352. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  33353. +# ### END LIBTOOL TAG CONFIG: disable-static
  33354. +
  33355. +# Local Variables:
  33356. +# mode:shell-script
  33357. +# sh-indentation:2
  33358. +# End:
  33359. +# vi:sw=2
  33360. +
  33361. diff -Nur tslib-1.0.orig/m4/internal/libtool.m4 tslib-1.0/m4/internal/libtool.m4
  33362. --- tslib-1.0.orig/m4/internal/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  33363. +++ tslib-1.0/m4/internal/libtool.m4 2010-02-19 00:24:02.812857317 +0100
  33364. @@ -0,0 +1,7377 @@
  33365. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  33366. +#
  33367. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  33368. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33369. +# Written by Gordon Matzigkeit, 1996
  33370. +#
  33371. +# This file is free software; the Free Software Foundation gives
  33372. +# unlimited permission to copy and/or distribute it, with or without
  33373. +# modifications, as long as this notice is preserved.
  33374. +
  33375. +m4_define([_LT_COPYING], [dnl
  33376. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  33377. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33378. +# Written by Gordon Matzigkeit, 1996
  33379. +#
  33380. +# This file is part of GNU Libtool.
  33381. +#
  33382. +# GNU Libtool is free software; you can redistribute it and/or
  33383. +# modify it under the terms of the GNU General Public License as
  33384. +# published by the Free Software Foundation; either version 2 of
  33385. +# the License, or (at your option) any later version.
  33386. +#
  33387. +# As a special exception to the GNU General Public License,
  33388. +# if you distribute this file as part of a program or library that
  33389. +# is built using GNU Libtool, you may include this file under the
  33390. +# same distribution terms that you use for the rest of that program.
  33391. +#
  33392. +# GNU Libtool is distributed in the hope that it will be useful,
  33393. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  33394. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33395. +# GNU General Public License for more details.
  33396. +#
  33397. +# You should have received a copy of the GNU General Public License
  33398. +# along with GNU Libtool; see the file COPYING. If not, a copy
  33399. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  33400. +# obtained by writing to the Free Software Foundation, Inc.,
  33401. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  33402. +])
  33403. +
  33404. +# serial 56 LT_INIT
  33405. +
  33406. +
  33407. +# LT_PREREQ(VERSION)
  33408. +# ------------------
  33409. +# Complain and exit if this libtool version is less that VERSION.
  33410. +m4_defun([LT_PREREQ],
  33411. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  33412. + [m4_default([$3],
  33413. + [m4_fatal([Libtool version $1 or higher is required],
  33414. + 63)])],
  33415. + [$2])])
  33416. +
  33417. +
  33418. +# _LT_CHECK_BUILDDIR
  33419. +# ------------------
  33420. +# Complain if the absolute build directory name contains unusual characters
  33421. +m4_defun([_LT_CHECK_BUILDDIR],
  33422. +[case `pwd` in
  33423. + *\ * | *\ *)
  33424. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  33425. +esac
  33426. +])
  33427. +
  33428. +
  33429. +# LT_INIT([OPTIONS])
  33430. +# ------------------
  33431. +AC_DEFUN([LT_INIT],
  33432. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  33433. +AC_BEFORE([$0], [LT_LANG])dnl
  33434. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  33435. +AC_BEFORE([$0], [LTDL_INIT])dnl
  33436. +m4_require([_LT_CHECK_BUILDDIR])dnl
  33437. +
  33438. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  33439. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  33440. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  33441. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  33442. +dnl unless we require an AC_DEFUNed macro:
  33443. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  33444. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  33445. +AC_REQUIRE([LTVERSION_VERSION])dnl
  33446. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  33447. +m4_require([_LT_PROG_LTMAIN])dnl
  33448. +
  33449. +dnl Parse OPTIONS
  33450. +_LT_SET_OPTIONS([$0], [$1])
  33451. +
  33452. +# This can be used to rebuild libtool when needed
  33453. +LIBTOOL_DEPS="$ltmain"
  33454. +
  33455. +# Always use our own libtool.
  33456. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  33457. +AC_SUBST(LIBTOOL)dnl
  33458. +
  33459. +_LT_SETUP
  33460. +
  33461. +# Only expand once:
  33462. +m4_define([LT_INIT])
  33463. +])# LT_INIT
  33464. +
  33465. +# Old names:
  33466. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  33467. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  33468. +dnl aclocal-1.4 backwards compatibility:
  33469. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  33470. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  33471. +
  33472. +
  33473. +# _LT_CC_BASENAME(CC)
  33474. +# -------------------
  33475. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  33476. +m4_defun([_LT_CC_BASENAME],
  33477. +[for cc_temp in $1""; do
  33478. + case $cc_temp in
  33479. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  33480. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  33481. + \-*) ;;
  33482. + *) break;;
  33483. + esac
  33484. +done
  33485. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33486. +])
  33487. +
  33488. +
  33489. +# _LT_FILEUTILS_DEFAULTS
  33490. +# ----------------------
  33491. +# It is okay to use these file commands and assume they have been set
  33492. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  33493. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  33494. +[: ${CP="cp -f"}
  33495. +: ${MV="mv -f"}
  33496. +: ${RM="rm -f"}
  33497. +])# _LT_FILEUTILS_DEFAULTS
  33498. +
  33499. +
  33500. +# _LT_SETUP
  33501. +# ---------
  33502. +m4_defun([_LT_SETUP],
  33503. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  33504. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  33505. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  33506. +_LT_DECL([], [host], [0])dnl
  33507. +_LT_DECL([], [host_os], [0])dnl
  33508. +dnl
  33509. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  33510. +_LT_DECL([], [build], [0])dnl
  33511. +_LT_DECL([], [build_os], [0])dnl
  33512. +dnl
  33513. +AC_REQUIRE([AC_PROG_CC])dnl
  33514. +AC_REQUIRE([LT_PATH_LD])dnl
  33515. +AC_REQUIRE([LT_PATH_NM])dnl
  33516. +dnl
  33517. +AC_REQUIRE([AC_PROG_LN_S])dnl
  33518. +test -z "$LN_S" && LN_S="ln -s"
  33519. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  33520. +dnl
  33521. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  33522. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  33523. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  33524. +dnl
  33525. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  33526. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  33527. +m4_require([_LT_CMD_RELOAD])dnl
  33528. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  33529. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  33530. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  33531. +
  33532. +_LT_CONFIG_LIBTOOL_INIT([
  33533. +# See if we are running on zsh, and set the options which allow our
  33534. +# commands through without removal of \ escapes INIT.
  33535. +if test -n "\${ZSH_VERSION+set}" ; then
  33536. + setopt NO_GLOB_SUBST
  33537. +fi
  33538. +])
  33539. +if test -n "${ZSH_VERSION+set}" ; then
  33540. + setopt NO_GLOB_SUBST
  33541. +fi
  33542. +
  33543. +_LT_CHECK_OBJDIR
  33544. +
  33545. +m4_require([_LT_TAG_COMPILER])dnl
  33546. +_LT_PROG_ECHO_BACKSLASH
  33547. +
  33548. +case $host_os in
  33549. +aix3*)
  33550. + # AIX sometimes has problems with the GCC collect2 program. For some
  33551. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  33552. + # vanish in a puff of smoke.
  33553. + if test "X${COLLECT_NAMES+set}" != Xset; then
  33554. + COLLECT_NAMES=
  33555. + export COLLECT_NAMES
  33556. + fi
  33557. + ;;
  33558. +esac
  33559. +
  33560. +# Sed substitution that helps us do robust quoting. It backslashifies
  33561. +# metacharacters that are still active within double-quoted strings.
  33562. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  33563. +
  33564. +# Same as above, but do not quote variable references.
  33565. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  33566. +
  33567. +# Sed substitution to delay expansion of an escaped shell variable in a
  33568. +# double_quote_subst'ed string.
  33569. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  33570. +
  33571. +# Sed substitution to delay expansion of an escaped single quote.
  33572. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  33573. +
  33574. +# Sed substitution to avoid accidental globbing in evaled expressions
  33575. +no_glob_subst='s/\*/\\\*/g'
  33576. +
  33577. +# Global variables:
  33578. +ofile=libtool
  33579. +can_build_shared=yes
  33580. +
  33581. +# All known linkers require a `.a' archive for static linking (except MSVC,
  33582. +# which needs '.lib').
  33583. +libext=a
  33584. +
  33585. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  33586. +
  33587. +old_CC="$CC"
  33588. +old_CFLAGS="$CFLAGS"
  33589. +
  33590. +# Set sane defaults for various variables
  33591. +test -z "$CC" && CC=cc
  33592. +test -z "$LTCC" && LTCC=$CC
  33593. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  33594. +test -z "$LD" && LD=ld
  33595. +test -z "$ac_objext" && ac_objext=o
  33596. +
  33597. +_LT_CC_BASENAME([$compiler])
  33598. +
  33599. +# Only perform the check for file, if the check method requires it
  33600. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  33601. +case $deplibs_check_method in
  33602. +file_magic*)
  33603. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  33604. + _LT_PATH_MAGIC
  33605. + fi
  33606. + ;;
  33607. +esac
  33608. +
  33609. +# Use C for the default configuration in the libtool script
  33610. +LT_SUPPORTED_TAG([CC])
  33611. +_LT_LANG_C_CONFIG
  33612. +_LT_LANG_DEFAULT_CONFIG
  33613. +_LT_CONFIG_COMMANDS
  33614. +])# _LT_SETUP
  33615. +
  33616. +
  33617. +# _LT_PROG_LTMAIN
  33618. +# ---------------
  33619. +# Note that this code is called both from `configure', and `config.status'
  33620. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  33621. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  33622. +# so we pass a copy along to make sure it has a sensible value anyway.
  33623. +m4_defun([_LT_PROG_LTMAIN],
  33624. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  33625. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  33626. +ltmain="$ac_aux_dir/ltmain.sh"
  33627. +])# _LT_PROG_LTMAIN
  33628. +
  33629. +
  33630. +## ------------------------------------- ##
  33631. +## Accumulate code for creating libtool. ##
  33632. +## ------------------------------------- ##
  33633. +
  33634. +# So that we can recreate a full libtool script including additional
  33635. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  33636. +# in macros and then make a single call at the end using the `libtool'
  33637. +# label.
  33638. +
  33639. +
  33640. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  33641. +# ----------------------------------------
  33642. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  33643. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  33644. +[m4_ifval([$1],
  33645. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  33646. + [$1
  33647. +])])])
  33648. +
  33649. +# Initialize.
  33650. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  33651. +
  33652. +
  33653. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  33654. +# ------------------------------
  33655. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  33656. +m4_define([_LT_CONFIG_LIBTOOL],
  33657. +[m4_ifval([$1],
  33658. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  33659. + [$1
  33660. +])])])
  33661. +
  33662. +# Initialize.
  33663. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  33664. +
  33665. +
  33666. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  33667. +# -----------------------------------------------------
  33668. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  33669. +[_LT_CONFIG_LIBTOOL([$1])
  33670. +_LT_CONFIG_LIBTOOL_INIT([$2])
  33671. +])
  33672. +
  33673. +
  33674. +# _LT_FORMAT_COMMENT([COMMENT])
  33675. +# -----------------------------
  33676. +# Add leading comment marks to the start of each line, and a trailing
  33677. +# full-stop to the whole comment if one is not present already.
  33678. +m4_define([_LT_FORMAT_COMMENT],
  33679. +[m4_ifval([$1], [
  33680. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  33681. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  33682. +)])
  33683. +
  33684. +
  33685. +
  33686. +## ------------------------ ##
  33687. +## FIXME: Eliminate VARNAME ##
  33688. +## ------------------------ ##
  33689. +
  33690. +
  33691. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  33692. +# -------------------------------------------------------------------
  33693. +# CONFIGNAME is the name given to the value in the libtool script.
  33694. +# VARNAME is the (base) name used in the configure script.
  33695. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  33696. +# VARNAME. Any other value will be used directly.
  33697. +m4_define([_LT_DECL],
  33698. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  33699. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  33700. + [m4_ifval([$1], [$1], [$2])])
  33701. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  33702. + m4_ifval([$4],
  33703. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  33704. + lt_dict_add_subkey([lt_decl_dict], [$2],
  33705. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  33706. +])
  33707. +
  33708. +
  33709. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  33710. +# --------------------------------------------------------
  33711. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  33712. +
  33713. +
  33714. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  33715. +# ------------------------------------------------
  33716. +m4_define([lt_decl_tag_varnames],
  33717. +[_lt_decl_filter([tagged?], [yes], $@)])
  33718. +
  33719. +
  33720. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  33721. +# ---------------------------------------------------------
  33722. +m4_define([_lt_decl_filter],
  33723. +[m4_case([$#],
  33724. + [0], [m4_fatal([$0: too few arguments: $#])],
  33725. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  33726. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  33727. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  33728. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  33729. +])
  33730. +
  33731. +
  33732. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  33733. +# --------------------------------------------------
  33734. +m4_define([lt_decl_quote_varnames],
  33735. +[_lt_decl_filter([value], [1], $@)])
  33736. +
  33737. +
  33738. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  33739. +# ---------------------------------------------------
  33740. +m4_define([lt_decl_dquote_varnames],
  33741. +[_lt_decl_filter([value], [2], $@)])
  33742. +
  33743. +
  33744. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  33745. +# ---------------------------------------------------
  33746. +m4_define([lt_decl_varnames_tagged],
  33747. +[m4_assert([$# <= 2])dnl
  33748. +_$0(m4_quote(m4_default([$1], [[, ]])),
  33749. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  33750. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  33751. +m4_define([_lt_decl_varnames_tagged],
  33752. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  33753. +
  33754. +
  33755. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  33756. +# ------------------------------------------------
  33757. +m4_define([lt_decl_all_varnames],
  33758. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  33759. + m4_if([$2], [],
  33760. + m4_quote(lt_decl_varnames),
  33761. + m4_quote(m4_shift($@))))[]dnl
  33762. +])
  33763. +m4_define([_lt_decl_all_varnames],
  33764. +[lt_join($@, lt_decl_varnames_tagged([$1],
  33765. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  33766. +])
  33767. +
  33768. +
  33769. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  33770. +# ------------------------------------
  33771. +# Quote a variable value, and forward it to `config.status' so that its
  33772. +# declaration there will have the same value as in `configure'. VARNAME
  33773. +# must have a single quote delimited value for this to work.
  33774. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  33775. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  33776. +
  33777. +
  33778. +# _LT_CONFIG_STATUS_DECLARATIONS
  33779. +# ------------------------------
  33780. +# We delimit libtool config variables with single quotes, so when
  33781. +# we write them to config.status, we have to be sure to quote all
  33782. +# embedded single quotes properly. In configure, this macro expands
  33783. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  33784. +#
  33785. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  33786. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  33787. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  33788. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  33789. +
  33790. +
  33791. +# _LT_LIBTOOL_TAGS
  33792. +# ----------------
  33793. +# Output comment and list of tags supported by the script
  33794. +m4_defun([_LT_LIBTOOL_TAGS],
  33795. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  33796. +available_tags="_LT_TAGS"dnl
  33797. +])
  33798. +
  33799. +
  33800. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  33801. +# -----------------------------------
  33802. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  33803. +# expand to a commented shell variable setting:
  33804. +#
  33805. +# # Some comment about what VAR is for.
  33806. +# visible_name=$lt_internal_name
  33807. +m4_define([_LT_LIBTOOL_DECLARE],
  33808. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  33809. + [description])))[]dnl
  33810. +m4_pushdef([_libtool_name],
  33811. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  33812. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  33813. + [0], [_libtool_name=[$]$1],
  33814. + [1], [_libtool_name=$lt_[]$1],
  33815. + [2], [_libtool_name=$lt_[]$1],
  33816. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  33817. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  33818. +])
  33819. +
  33820. +
  33821. +# _LT_LIBTOOL_CONFIG_VARS
  33822. +# -----------------------
  33823. +# Produce commented declarations of non-tagged libtool config variables
  33824. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  33825. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  33826. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  33827. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  33828. +[m4_foreach([_lt_var],
  33829. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  33830. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  33831. +
  33832. +
  33833. +# _LT_LIBTOOL_TAG_VARS(TAG)
  33834. +# -------------------------
  33835. +m4_define([_LT_LIBTOOL_TAG_VARS],
  33836. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  33837. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  33838. +
  33839. +
  33840. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  33841. +# ------------------------------
  33842. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  33843. +
  33844. +
  33845. +# _LT_CONFIG_COMMANDS
  33846. +# -------------------
  33847. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  33848. +# variables for single and double quote escaping we saved from calls
  33849. +# to _LT_DECL, we can put quote escaped variables declarations
  33850. +# into `config.status', and then the shell code to quote escape them in
  33851. +# for loops in `config.status'. Finally, any additional code accumulated
  33852. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  33853. +m4_defun([_LT_CONFIG_COMMANDS],
  33854. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  33855. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  33856. + dnl instead of duplicating it all over again into config.status,
  33857. + dnl then we will have config.status run $CONFIG_LT later, so it
  33858. + dnl needs to know what name is stored there:
  33859. + [AC_CONFIG_COMMANDS([libtool],
  33860. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  33861. + dnl If the libtool generation code is destined for config.status,
  33862. + dnl expand the accumulated commands and init code now:
  33863. + [AC_CONFIG_COMMANDS([libtool],
  33864. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  33865. +])#_LT_CONFIG_COMMANDS
  33866. +
  33867. +
  33868. +# Initialize.
  33869. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  33870. +[
  33871. +
  33872. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  33873. +# if CDPATH is set.
  33874. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  33875. +
  33876. +sed_quote_subst='$sed_quote_subst'
  33877. +double_quote_subst='$double_quote_subst'
  33878. +delay_variable_subst='$delay_variable_subst'
  33879. +_LT_CONFIG_STATUS_DECLARATIONS
  33880. +LTCC='$LTCC'
  33881. +LTCFLAGS='$LTCFLAGS'
  33882. +compiler='$compiler_DEFAULT'
  33883. +
  33884. +# Quote evaled strings.
  33885. +for var in lt_decl_all_varnames([[ \
  33886. +]], lt_decl_quote_varnames); do
  33887. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  33888. + *[[\\\\\\\`\\"\\\$]]*)
  33889. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  33890. + ;;
  33891. + *)
  33892. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33893. + ;;
  33894. + esac
  33895. +done
  33896. +
  33897. +# Double-quote double-evaled strings.
  33898. +for var in lt_decl_all_varnames([[ \
  33899. +]], lt_decl_dquote_varnames); do
  33900. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  33901. + *[[\\\\\\\`\\"\\\$]]*)
  33902. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  33903. + ;;
  33904. + *)
  33905. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33906. + ;;
  33907. + esac
  33908. +done
  33909. +
  33910. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  33911. +case \$lt_ECHO in
  33912. +*'\\\[$]0 --fallback-echo"')dnl "
  33913. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  33914. + ;;
  33915. +esac
  33916. +
  33917. +_LT_OUTPUT_LIBTOOL_INIT
  33918. +])
  33919. +
  33920. +
  33921. +# LT_OUTPUT
  33922. +# ---------
  33923. +# This macro allows early generation of the libtool script (before
  33924. +# AC_OUTPUT is called), incase it is used in configure for compilation
  33925. +# tests.
  33926. +AC_DEFUN([LT_OUTPUT],
  33927. +[: ${CONFIG_LT=./config.lt}
  33928. +AC_MSG_NOTICE([creating $CONFIG_LT])
  33929. +cat >"$CONFIG_LT" <<_LTEOF
  33930. +#! $SHELL
  33931. +# Generated by $as_me.
  33932. +# Run this file to recreate a libtool stub with the current configuration.
  33933. +
  33934. +lt_cl_silent=false
  33935. +SHELL=\${CONFIG_SHELL-$SHELL}
  33936. +_LTEOF
  33937. +
  33938. +cat >>"$CONFIG_LT" <<\_LTEOF
  33939. +AS_SHELL_SANITIZE
  33940. +_AS_PREPARE
  33941. +
  33942. +exec AS_MESSAGE_FD>&1
  33943. +exec AS_MESSAGE_LOG_FD>>config.log
  33944. +{
  33945. + echo
  33946. + AS_BOX([Running $as_me.])
  33947. +} >&AS_MESSAGE_LOG_FD
  33948. +
  33949. +lt_cl_help="\
  33950. +\`$as_me' creates a local libtool stub from the current configuration,
  33951. +for use in further configure time tests before the real libtool is
  33952. +generated.
  33953. +
  33954. +Usage: $[0] [[OPTIONS]]
  33955. +
  33956. + -h, --help print this help, then exit
  33957. + -V, --version print version number, then exit
  33958. + -q, --quiet do not print progress messages
  33959. + -d, --debug don't remove temporary files
  33960. +
  33961. +Report bugs to <bug-libtool@gnu.org>."
  33962. +
  33963. +lt_cl_version="\
  33964. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  33965. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  33966. +configured by $[0], generated by m4_PACKAGE_STRING.
  33967. +
  33968. +Copyright (C) 2008 Free Software Foundation, Inc.
  33969. +This config.lt script is free software; the Free Software Foundation
  33970. +gives unlimited permision to copy, distribute and modify it."
  33971. +
  33972. +while test $[#] != 0
  33973. +do
  33974. + case $[1] in
  33975. + --version | --v* | -V )
  33976. + echo "$lt_cl_version"; exit 0 ;;
  33977. + --help | --h* | -h )
  33978. + echo "$lt_cl_help"; exit 0 ;;
  33979. + --debug | --d* | -d )
  33980. + debug=: ;;
  33981. + --quiet | --q* | --silent | --s* | -q )
  33982. + lt_cl_silent=: ;;
  33983. +
  33984. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  33985. +Try \`$[0] --help' for more information.]) ;;
  33986. +
  33987. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  33988. +Try \`$[0] --help' for more information.]) ;;
  33989. + esac
  33990. + shift
  33991. +done
  33992. +
  33993. +if $lt_cl_silent; then
  33994. + exec AS_MESSAGE_FD>/dev/null
  33995. +fi
  33996. +_LTEOF
  33997. +
  33998. +cat >>"$CONFIG_LT" <<_LTEOF
  33999. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  34000. +_LTEOF
  34001. +
  34002. +cat >>"$CONFIG_LT" <<\_LTEOF
  34003. +AC_MSG_NOTICE([creating $ofile])
  34004. +_LT_OUTPUT_LIBTOOL_COMMANDS
  34005. +AS_EXIT(0)
  34006. +_LTEOF
  34007. +chmod +x "$CONFIG_LT"
  34008. +
  34009. +# configure is writing to config.log, but config.lt does its own redirection,
  34010. +# appending to config.log, which fails on DOS, as config.log is still kept
  34011. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  34012. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  34013. +if test "$no_create" != yes; then
  34014. + lt_cl_success=:
  34015. + test "$silent" = yes &&
  34016. + lt_config_lt_args="$lt_config_lt_args --quiet"
  34017. + exec AS_MESSAGE_LOG_FD>/dev/null
  34018. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  34019. + exec AS_MESSAGE_LOG_FD>>config.log
  34020. + $lt_cl_success || AS_EXIT(1)
  34021. +fi
  34022. +])# LT_OUTPUT
  34023. +
  34024. +
  34025. +# _LT_CONFIG(TAG)
  34026. +# ---------------
  34027. +# If TAG is the built-in tag, create an initial libtool script with a
  34028. +# default configuration from the untagged config vars. Otherwise add code
  34029. +# to config.status for appending the configuration named by TAG from the
  34030. +# matching tagged config vars.
  34031. +m4_defun([_LT_CONFIG],
  34032. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34033. +_LT_CONFIG_SAVE_COMMANDS([
  34034. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  34035. + m4_if(_LT_TAG, [C], [
  34036. + # See if we are running on zsh, and set the options which allow our
  34037. + # commands through without removal of \ escapes.
  34038. + if test -n "${ZSH_VERSION+set}" ; then
  34039. + setopt NO_GLOB_SUBST
  34040. + fi
  34041. +
  34042. + cfgfile="${ofile}T"
  34043. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  34044. + $RM "$cfgfile"
  34045. +
  34046. + cat <<_LT_EOF >> "$cfgfile"
  34047. +#! $SHELL
  34048. +
  34049. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34050. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  34051. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34052. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34053. +#
  34054. +_LT_COPYING
  34055. +_LT_LIBTOOL_TAGS
  34056. +
  34057. +# ### BEGIN LIBTOOL CONFIG
  34058. +_LT_LIBTOOL_CONFIG_VARS
  34059. +_LT_LIBTOOL_TAG_VARS
  34060. +# ### END LIBTOOL CONFIG
  34061. +
  34062. +_LT_EOF
  34063. +
  34064. + case $host_os in
  34065. + aix3*)
  34066. + cat <<\_LT_EOF >> "$cfgfile"
  34067. +# AIX sometimes has problems with the GCC collect2 program. For some
  34068. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  34069. +# vanish in a puff of smoke.
  34070. +if test "X${COLLECT_NAMES+set}" != Xset; then
  34071. + COLLECT_NAMES=
  34072. + export COLLECT_NAMES
  34073. +fi
  34074. +_LT_EOF
  34075. + ;;
  34076. + esac
  34077. +
  34078. + _LT_PROG_LTMAIN
  34079. +
  34080. + # We use sed instead of cat because bash on DJGPP gets confused if
  34081. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  34082. + # text mode, it properly converts lines to CR/LF. This bash problem
  34083. + # is reportedly fixed, but why not run on old versions too?
  34084. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  34085. + || (rm -f "$cfgfile"; exit 1)
  34086. +
  34087. + _LT_PROG_XSI_SHELLFNS
  34088. +
  34089. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  34090. + || (rm -f "$cfgfile"; exit 1)
  34091. +
  34092. + mv -f "$cfgfile" "$ofile" ||
  34093. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  34094. + chmod +x "$ofile"
  34095. +],
  34096. +[cat <<_LT_EOF >> "$ofile"
  34097. +
  34098. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  34099. +dnl in a comment (ie after a #).
  34100. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  34101. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  34102. +# ### END LIBTOOL TAG CONFIG: $1
  34103. +_LT_EOF
  34104. +])dnl /m4_if
  34105. +],
  34106. +[m4_if([$1], [], [
  34107. + PACKAGE='$PACKAGE'
  34108. + VERSION='$VERSION'
  34109. + TIMESTAMP='$TIMESTAMP'
  34110. + RM='$RM'
  34111. + ofile='$ofile'], [])
  34112. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  34113. +])# _LT_CONFIG
  34114. +
  34115. +
  34116. +# LT_SUPPORTED_TAG(TAG)
  34117. +# ---------------------
  34118. +# Trace this macro to discover what tags are supported by the libtool
  34119. +# --tag option, using:
  34120. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  34121. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  34122. +
  34123. +
  34124. +# C support is built-in for now
  34125. +m4_define([_LT_LANG_C_enabled], [])
  34126. +m4_define([_LT_TAGS], [])
  34127. +
  34128. +
  34129. +# LT_LANG(LANG)
  34130. +# -------------
  34131. +# Enable libtool support for the given language if not already enabled.
  34132. +AC_DEFUN([LT_LANG],
  34133. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  34134. +m4_case([$1],
  34135. + [C], [_LT_LANG(C)],
  34136. + [C++], [_LT_LANG(CXX)],
  34137. + [Java], [_LT_LANG(GCJ)],
  34138. + [Fortran 77], [_LT_LANG(F77)],
  34139. + [Fortran], [_LT_LANG(FC)],
  34140. + [Windows Resource], [_LT_LANG(RC)],
  34141. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  34142. + [_LT_LANG($1)],
  34143. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  34144. +])# LT_LANG
  34145. +
  34146. +
  34147. +# _LT_LANG(LANGNAME)
  34148. +# ------------------
  34149. +m4_defun([_LT_LANG],
  34150. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  34151. + [LT_SUPPORTED_TAG([$1])dnl
  34152. + m4_append([_LT_TAGS], [$1 ])dnl
  34153. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  34154. + _LT_LANG_$1_CONFIG($1)])dnl
  34155. +])# _LT_LANG
  34156. +
  34157. +
  34158. +# _LT_LANG_DEFAULT_CONFIG
  34159. +# -----------------------
  34160. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  34161. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  34162. + [LT_LANG(CXX)],
  34163. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  34164. +
  34165. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  34166. + [LT_LANG(F77)],
  34167. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  34168. +
  34169. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  34170. + [LT_LANG(FC)],
  34171. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  34172. +
  34173. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  34174. +dnl pulling things in needlessly.
  34175. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  34176. + [LT_LANG(GCJ)],
  34177. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  34178. + [LT_LANG(GCJ)],
  34179. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  34180. + [LT_LANG(GCJ)],
  34181. + [m4_ifdef([AC_PROG_GCJ],
  34182. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  34183. + m4_ifdef([A][M_PROG_GCJ],
  34184. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  34185. + m4_ifdef([LT_PROG_GCJ],
  34186. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  34187. +
  34188. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  34189. + [LT_LANG(RC)],
  34190. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  34191. +])# _LT_LANG_DEFAULT_CONFIG
  34192. +
  34193. +# Obsolete macros:
  34194. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  34195. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  34196. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  34197. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  34198. +dnl aclocal-1.4 backwards compatibility:
  34199. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  34200. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  34201. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  34202. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  34203. +
  34204. +
  34205. +# _LT_TAG_COMPILER
  34206. +# ----------------
  34207. +m4_defun([_LT_TAG_COMPILER],
  34208. +[AC_REQUIRE([AC_PROG_CC])dnl
  34209. +
  34210. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  34211. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  34212. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  34213. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  34214. +
  34215. +# If no C compiler was specified, use CC.
  34216. +LTCC=${LTCC-"$CC"}
  34217. +
  34218. +# If no C compiler flags were specified, use CFLAGS.
  34219. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34220. +
  34221. +# Allow CC to be a program name with arguments.
  34222. +compiler=$CC
  34223. +])# _LT_TAG_COMPILER
  34224. +
  34225. +
  34226. +# _LT_COMPILER_BOILERPLATE
  34227. +# ------------------------
  34228. +# Check for compiler boilerplate output or warnings with
  34229. +# the simple compiler test code.
  34230. +m4_defun([_LT_COMPILER_BOILERPLATE],
  34231. +[m4_require([_LT_DECL_SED])dnl
  34232. +ac_outfile=conftest.$ac_objext
  34233. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  34234. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34235. +_lt_compiler_boilerplate=`cat conftest.err`
  34236. +$RM conftest*
  34237. +])# _LT_COMPILER_BOILERPLATE
  34238. +
  34239. +
  34240. +# _LT_LINKER_BOILERPLATE
  34241. +# ----------------------
  34242. +# Check for linker boilerplate output or warnings with
  34243. +# the simple link test code.
  34244. +m4_defun([_LT_LINKER_BOILERPLATE],
  34245. +[m4_require([_LT_DECL_SED])dnl
  34246. +ac_outfile=conftest.$ac_objext
  34247. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  34248. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34249. +_lt_linker_boilerplate=`cat conftest.err`
  34250. +$RM -r conftest*
  34251. +])# _LT_LINKER_BOILERPLATE
  34252. +
  34253. +# _LT_REQUIRED_DARWIN_CHECKS
  34254. +# -------------------------
  34255. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  34256. + case $host_os in
  34257. + rhapsody* | darwin*)
  34258. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  34259. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  34260. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  34261. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  34262. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  34263. + _LT_DECL([], [DSYMUTIL], [1],
  34264. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  34265. + _LT_DECL([], [NMEDIT], [1],
  34266. + [Tool to change global to local symbols on Mac OS X])
  34267. + _LT_DECL([], [LIPO], [1],
  34268. + [Tool to manipulate fat objects and archives on Mac OS X])
  34269. + _LT_DECL([], [OTOOL], [1],
  34270. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  34271. + _LT_DECL([], [OTOOL64], [1],
  34272. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  34273. +
  34274. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  34275. + [lt_cv_apple_cc_single_mod=no
  34276. + if test -z "${LT_MULTI_MODULE}"; then
  34277. + # By default we will add the -single_module flag. You can override
  34278. + # by either setting the environment variable LT_MULTI_MODULE
  34279. + # non-empty at configure time, or by adding -multi_module to the
  34280. + # link flags.
  34281. + rm -rf libconftest.dylib*
  34282. + echo "int foo(void){return 1;}" > conftest.c
  34283. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  34284. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  34285. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  34286. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  34287. + _lt_result=$?
  34288. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  34289. + lt_cv_apple_cc_single_mod=yes
  34290. + else
  34291. + cat conftest.err >&AS_MESSAGE_LOG_FD
  34292. + fi
  34293. + rm -rf libconftest.dylib*
  34294. + rm -f conftest.*
  34295. + fi])
  34296. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  34297. + [lt_cv_ld_exported_symbols_list],
  34298. + [lt_cv_ld_exported_symbols_list=no
  34299. + save_LDFLAGS=$LDFLAGS
  34300. + echo "_main" > conftest.sym
  34301. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  34302. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  34303. + [lt_cv_ld_exported_symbols_list=yes],
  34304. + [lt_cv_ld_exported_symbols_list=no])
  34305. + LDFLAGS="$save_LDFLAGS"
  34306. + ])
  34307. + case $host_os in
  34308. + rhapsody* | darwin1.[[012]])
  34309. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  34310. + darwin1.*)
  34311. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  34312. + darwin*) # darwin 5.x on
  34313. + # if running on 10.5 or later, the deployment target defaults
  34314. + # to the OS version, if on x86, and 10.4, the deployment
  34315. + # target defaults to 10.4. Don't you love it?
  34316. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  34317. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  34318. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  34319. + 10.[[012]]*)
  34320. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  34321. + 10.*)
  34322. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  34323. + esac
  34324. + ;;
  34325. + esac
  34326. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  34327. + _lt_dar_single_mod='$single_module'
  34328. + fi
  34329. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  34330. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  34331. + else
  34332. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34333. + fi
  34334. + if test "$DSYMUTIL" != ":"; then
  34335. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  34336. + else
  34337. + _lt_dsymutil=
  34338. + fi
  34339. + ;;
  34340. + esac
  34341. +])
  34342. +
  34343. +
  34344. +# _LT_DARWIN_LINKER_FEATURES
  34345. +# --------------------------
  34346. +# Checks for linker and compiler features on darwin
  34347. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  34348. +[
  34349. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  34350. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34351. + _LT_TAGVAR(hardcode_direct, $1)=no
  34352. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  34353. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  34354. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  34355. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  34356. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  34357. + case $cc_basename in
  34358. + ifort*) _lt_dar_can_shared=yes ;;
  34359. + *) _lt_dar_can_shared=$GCC ;;
  34360. + esac
  34361. + if test "$_lt_dar_can_shared" = "yes"; then
  34362. + output_verbose_link_cmd=echo
  34363. + _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}"
  34364. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  34365. + _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}"
  34366. + _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}"
  34367. + m4_if([$1], [CXX],
  34368. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  34369. + _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}"
  34370. + _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}"
  34371. + fi
  34372. +],[])
  34373. + else
  34374. + _LT_TAGVAR(ld_shlibs, $1)=no
  34375. + fi
  34376. +])
  34377. +
  34378. +# _LT_SYS_MODULE_PATH_AIX
  34379. +# -----------------------
  34380. +# Links a minimal program and checks the executable
  34381. +# for the system default hardcoded library path. In most cases,
  34382. +# this is /usr/lib:/lib, but when the MPI compilers are used
  34383. +# the location of the communication and MPI libs are included too.
  34384. +# If we don't find anything, use the default library path according
  34385. +# to the aix ld manual.
  34386. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  34387. +[m4_require([_LT_DECL_SED])dnl
  34388. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  34389. +lt_aix_libpath_sed='
  34390. + /Import File Strings/,/^$/ {
  34391. + /^0/ {
  34392. + s/^0 *\(.*\)$/\1/
  34393. + p
  34394. + }
  34395. + }'
  34396. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34397. +# Check for a 64-bit object if we didn't find anything.
  34398. +if test -z "$aix_libpath"; then
  34399. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34400. +fi],[])
  34401. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34402. +])# _LT_SYS_MODULE_PATH_AIX
  34403. +
  34404. +
  34405. +# _LT_SHELL_INIT(ARG)
  34406. +# -------------------
  34407. +m4_define([_LT_SHELL_INIT],
  34408. +[ifdef([AC_DIVERSION_NOTICE],
  34409. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  34410. + [AC_DIVERT_PUSH(NOTICE)])
  34411. +$1
  34412. +AC_DIVERT_POP
  34413. +])# _LT_SHELL_INIT
  34414. +
  34415. +
  34416. +# _LT_PROG_ECHO_BACKSLASH
  34417. +# -----------------------
  34418. +# Add some code to the start of the generated configure script which
  34419. +# will find an echo command which doesn't interpret backslashes.
  34420. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  34421. +[_LT_SHELL_INIT([
  34422. +# Check that we are running under the correct shell.
  34423. +SHELL=${CONFIG_SHELL-/bin/sh}
  34424. +
  34425. +case X$lt_ECHO in
  34426. +X*--fallback-echo)
  34427. + # Remove one level of quotation (which was required for Make).
  34428. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  34429. + ;;
  34430. +esac
  34431. +
  34432. +ECHO=${lt_ECHO-echo}
  34433. +if test "X[$]1" = X--no-reexec; then
  34434. + # Discard the --no-reexec flag, and continue.
  34435. + shift
  34436. +elif test "X[$]1" = X--fallback-echo; then
  34437. + # Avoid inline document here, it may be left over
  34438. + :
  34439. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  34440. + # Yippee, $ECHO works!
  34441. + :
  34442. +else
  34443. + # Restart under the correct shell.
  34444. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  34445. +fi
  34446. +
  34447. +if test "X[$]1" = X--fallback-echo; then
  34448. + # used as fallback echo
  34449. + shift
  34450. + cat <<_LT_EOF
  34451. +[$]*
  34452. +_LT_EOF
  34453. + exit 0
  34454. +fi
  34455. +
  34456. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  34457. +# if CDPATH is set.
  34458. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34459. +
  34460. +if test -z "$lt_ECHO"; then
  34461. + if test "X${echo_test_string+set}" != Xset; then
  34462. + # find a string as large as possible, as long as the shell can cope with it
  34463. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  34464. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  34465. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  34466. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  34467. + then
  34468. + break
  34469. + fi
  34470. + done
  34471. + fi
  34472. +
  34473. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  34474. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  34475. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34476. + :
  34477. + else
  34478. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  34479. + # backslashes. This makes it impossible to quote backslashes using
  34480. + # echo "$something" | sed 's/\\/\\\\/g'
  34481. + #
  34482. + # So, first we look for a working echo in the user's PATH.
  34483. +
  34484. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  34485. + for dir in $PATH /usr/ucb; do
  34486. + IFS="$lt_save_ifs"
  34487. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  34488. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  34489. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  34490. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34491. + ECHO="$dir/echo"
  34492. + break
  34493. + fi
  34494. + done
  34495. + IFS="$lt_save_ifs"
  34496. +
  34497. + if test "X$ECHO" = Xecho; then
  34498. + # We didn't find a better echo, so look for alternatives.
  34499. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  34500. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  34501. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34502. + # This shell has a builtin print -r that does the trick.
  34503. + ECHO='print -r'
  34504. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  34505. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  34506. + # If we have ksh, try running configure again with it.
  34507. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  34508. + export ORIGINAL_CONFIG_SHELL
  34509. + CONFIG_SHELL=/bin/ksh
  34510. + export CONFIG_SHELL
  34511. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  34512. + else
  34513. + # Try using printf.
  34514. + ECHO='printf %s\n'
  34515. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  34516. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  34517. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34518. + # Cool, printf works
  34519. + :
  34520. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  34521. + test "X$echo_testing_string" = 'X\t' &&
  34522. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  34523. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34524. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  34525. + export CONFIG_SHELL
  34526. + SHELL="$CONFIG_SHELL"
  34527. + export SHELL
  34528. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  34529. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  34530. + test "X$echo_testing_string" = 'X\t' &&
  34531. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  34532. + test "X$echo_testing_string" = "X$echo_test_string"; then
  34533. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  34534. + else
  34535. + # maybe with a smaller string...
  34536. + prev=:
  34537. +
  34538. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  34539. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  34540. + then
  34541. + break
  34542. + fi
  34543. + prev="$cmd"
  34544. + done
  34545. +
  34546. + if test "$prev" != 'sed 50q "[$]0"'; then
  34547. + echo_test_string=`eval $prev`
  34548. + export echo_test_string
  34549. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  34550. + else
  34551. + # Oops. We lost completely, so just stick with echo.
  34552. + ECHO=echo
  34553. + fi
  34554. + fi
  34555. + fi
  34556. + fi
  34557. + fi
  34558. +fi
  34559. +
  34560. +# Copy echo and quote the copy suitably for passing to libtool from
  34561. +# the Makefile, instead of quoting the original, which is used later.
  34562. +lt_ECHO=$ECHO
  34563. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  34564. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  34565. +fi
  34566. +
  34567. +AC_SUBST(lt_ECHO)
  34568. +])
  34569. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  34570. +_LT_DECL([], [ECHO], [1],
  34571. + [An echo program that does not interpret backslashes])
  34572. +])# _LT_PROG_ECHO_BACKSLASH
  34573. +
  34574. +
  34575. +# _LT_ENABLE_LOCK
  34576. +# ---------------
  34577. +m4_defun([_LT_ENABLE_LOCK],
  34578. +[AC_ARG_ENABLE([libtool-lock],
  34579. + [AS_HELP_STRING([--disable-libtool-lock],
  34580. + [avoid locking (might break parallel builds)])])
  34581. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  34582. +
  34583. +# Some flags need to be propagated to the compiler or linker for good
  34584. +# libtool support.
  34585. +case $host in
  34586. +ia64-*-hpux*)
  34587. + # Find out which ABI we are using.
  34588. + echo 'int i;' > conftest.$ac_ext
  34589. + if AC_TRY_EVAL(ac_compile); then
  34590. + case `/usr/bin/file conftest.$ac_objext` in
  34591. + *ELF-32*)
  34592. + HPUX_IA64_MODE="32"
  34593. + ;;
  34594. + *ELF-64*)
  34595. + HPUX_IA64_MODE="64"
  34596. + ;;
  34597. + esac
  34598. + fi
  34599. + rm -rf conftest*
  34600. + ;;
  34601. +*-*-irix6*)
  34602. + # Find out which ABI we are using.
  34603. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  34604. + if AC_TRY_EVAL(ac_compile); then
  34605. + if test "$lt_cv_prog_gnu_ld" = yes; then
  34606. + case `/usr/bin/file conftest.$ac_objext` in
  34607. + *32-bit*)
  34608. + LD="${LD-ld} -melf32bsmip"
  34609. + ;;
  34610. + *N32*)
  34611. + LD="${LD-ld} -melf32bmipn32"
  34612. + ;;
  34613. + *64-bit*)
  34614. + LD="${LD-ld} -melf64bmip"
  34615. + ;;
  34616. + esac
  34617. + else
  34618. + case `/usr/bin/file conftest.$ac_objext` in
  34619. + *32-bit*)
  34620. + LD="${LD-ld} -32"
  34621. + ;;
  34622. + *N32*)
  34623. + LD="${LD-ld} -n32"
  34624. + ;;
  34625. + *64-bit*)
  34626. + LD="${LD-ld} -64"
  34627. + ;;
  34628. + esac
  34629. + fi
  34630. + fi
  34631. + rm -rf conftest*
  34632. + ;;
  34633. +
  34634. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  34635. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  34636. + # Find out which ABI we are using.
  34637. + echo 'int i;' > conftest.$ac_ext
  34638. + if AC_TRY_EVAL(ac_compile); then
  34639. + case `/usr/bin/file conftest.o` in
  34640. + *32-bit*)
  34641. + case $host in
  34642. + x86_64-*kfreebsd*-gnu)
  34643. + LD="${LD-ld} -m elf_i386_fbsd"
  34644. + ;;
  34645. + x86_64-*linux*)
  34646. + LD="${LD-ld} -m elf_i386"
  34647. + ;;
  34648. + ppc64-*linux*|powerpc64-*linux*)
  34649. + LD="${LD-ld} -m elf32ppclinux"
  34650. + ;;
  34651. + s390x-*linux*)
  34652. + LD="${LD-ld} -m elf_s390"
  34653. + ;;
  34654. + sparc64-*linux*)
  34655. + LD="${LD-ld} -m elf32_sparc"
  34656. + ;;
  34657. + esac
  34658. + ;;
  34659. + *64-bit*)
  34660. + case $host in
  34661. + x86_64-*kfreebsd*-gnu)
  34662. + LD="${LD-ld} -m elf_x86_64_fbsd"
  34663. + ;;
  34664. + x86_64-*linux*)
  34665. + LD="${LD-ld} -m elf_x86_64"
  34666. + ;;
  34667. + ppc*-*linux*|powerpc*-*linux*)
  34668. + LD="${LD-ld} -m elf64ppc"
  34669. + ;;
  34670. + s390*-*linux*|s390*-*tpf*)
  34671. + LD="${LD-ld} -m elf64_s390"
  34672. + ;;
  34673. + sparc*-*linux*)
  34674. + LD="${LD-ld} -m elf64_sparc"
  34675. + ;;
  34676. + esac
  34677. + ;;
  34678. + esac
  34679. + fi
  34680. + rm -rf conftest*
  34681. + ;;
  34682. +
  34683. +*-*-sco3.2v5*)
  34684. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  34685. + SAVE_CFLAGS="$CFLAGS"
  34686. + CFLAGS="$CFLAGS -belf"
  34687. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  34688. + [AC_LANG_PUSH(C)
  34689. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  34690. + AC_LANG_POP])
  34691. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  34692. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  34693. + CFLAGS="$SAVE_CFLAGS"
  34694. + fi
  34695. + ;;
  34696. +sparc*-*solaris*)
  34697. + # Find out which ABI we are using.
  34698. + echo 'int i;' > conftest.$ac_ext
  34699. + if AC_TRY_EVAL(ac_compile); then
  34700. + case `/usr/bin/file conftest.o` in
  34701. + *64-bit*)
  34702. + case $lt_cv_prog_gnu_ld in
  34703. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  34704. + *)
  34705. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  34706. + LD="${LD-ld} -64"
  34707. + fi
  34708. + ;;
  34709. + esac
  34710. + ;;
  34711. + esac
  34712. + fi
  34713. + rm -rf conftest*
  34714. + ;;
  34715. +esac
  34716. +
  34717. +need_locks="$enable_libtool_lock"
  34718. +])# _LT_ENABLE_LOCK
  34719. +
  34720. +
  34721. +# _LT_CMD_OLD_ARCHIVE
  34722. +# -------------------
  34723. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  34724. +[AC_CHECK_TOOL(AR, ar, false)
  34725. +test -z "$AR" && AR=ar
  34726. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  34727. +_LT_DECL([], [AR], [1], [The archiver])
  34728. +_LT_DECL([], [AR_FLAGS], [1])
  34729. +
  34730. +AC_CHECK_TOOL(STRIP, strip, :)
  34731. +test -z "$STRIP" && STRIP=:
  34732. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  34733. +
  34734. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  34735. +test -z "$RANLIB" && RANLIB=:
  34736. +_LT_DECL([], [RANLIB], [1],
  34737. + [Commands used to install an old-style archive])
  34738. +
  34739. +# Determine commands to create old-style static archives.
  34740. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  34741. +old_postinstall_cmds='chmod 644 $oldlib'
  34742. +old_postuninstall_cmds=
  34743. +
  34744. +if test -n "$RANLIB"; then
  34745. + case $host_os in
  34746. + openbsd*)
  34747. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  34748. + ;;
  34749. + *)
  34750. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  34751. + ;;
  34752. + esac
  34753. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  34754. +fi
  34755. +_LT_DECL([], [old_postinstall_cmds], [2])
  34756. +_LT_DECL([], [old_postuninstall_cmds], [2])
  34757. +_LT_TAGDECL([], [old_archive_cmds], [2],
  34758. + [Commands used to build an old-style archive])
  34759. +])# _LT_CMD_OLD_ARCHIVE
  34760. +
  34761. +
  34762. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  34763. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  34764. +# ----------------------------------------------------------------
  34765. +# Check whether the given compiler option works
  34766. +AC_DEFUN([_LT_COMPILER_OPTION],
  34767. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34768. +m4_require([_LT_DECL_SED])dnl
  34769. +AC_CACHE_CHECK([$1], [$2],
  34770. + [$2=no
  34771. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  34772. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34773. + lt_compiler_flag="$3"
  34774. + # Insert the option either (1) after the last *FLAGS variable, or
  34775. + # (2) before a word containing "conftest.", or (3) at the end.
  34776. + # Note that $ac_compile itself does not contain backslashes and begins
  34777. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34778. + # The option is referenced via a variable to avoid confusing sed.
  34779. + lt_compile=`echo "$ac_compile" | $SED \
  34780. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34781. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  34782. + -e 's:$: $lt_compiler_flag:'`
  34783. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  34784. + (eval "$lt_compile" 2>conftest.err)
  34785. + ac_status=$?
  34786. + cat conftest.err >&AS_MESSAGE_LOG_FD
  34787. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  34788. + if (exit $ac_status) && test -s "$ac_outfile"; then
  34789. + # The compiler can only warn and ignore the option if not recognized
  34790. + # So say no if there are warnings other than the usual output.
  34791. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34792. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34793. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34794. + $2=yes
  34795. + fi
  34796. + fi
  34797. + $RM conftest*
  34798. +])
  34799. +
  34800. +if test x"[$]$2" = xyes; then
  34801. + m4_if([$5], , :, [$5])
  34802. +else
  34803. + m4_if([$6], , :, [$6])
  34804. +fi
  34805. +])# _LT_COMPILER_OPTION
  34806. +
  34807. +# Old name:
  34808. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  34809. +dnl aclocal-1.4 backwards compatibility:
  34810. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  34811. +
  34812. +
  34813. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  34814. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  34815. +# ----------------------------------------------------
  34816. +# Check whether the given linker option works
  34817. +AC_DEFUN([_LT_LINKER_OPTION],
  34818. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34819. +m4_require([_LT_DECL_SED])dnl
  34820. +AC_CACHE_CHECK([$1], [$2],
  34821. + [$2=no
  34822. + save_LDFLAGS="$LDFLAGS"
  34823. + LDFLAGS="$LDFLAGS $3"
  34824. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34825. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34826. + # The linker can only warn and ignore the option if not recognized
  34827. + # So say no if there are warnings
  34828. + if test -s conftest.err; then
  34829. + # Append any errors to the config.log.
  34830. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  34831. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34832. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34833. + if diff conftest.exp conftest.er2 >/dev/null; then
  34834. + $2=yes
  34835. + fi
  34836. + else
  34837. + $2=yes
  34838. + fi
  34839. + fi
  34840. + $RM -r conftest*
  34841. + LDFLAGS="$save_LDFLAGS"
  34842. +])
  34843. +
  34844. +if test x"[$]$2" = xyes; then
  34845. + m4_if([$4], , :, [$4])
  34846. +else
  34847. + m4_if([$5], , :, [$5])
  34848. +fi
  34849. +])# _LT_LINKER_OPTION
  34850. +
  34851. +# Old name:
  34852. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  34853. +dnl aclocal-1.4 backwards compatibility:
  34854. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  34855. +
  34856. +
  34857. +# LT_CMD_MAX_LEN
  34858. +#---------------
  34859. +AC_DEFUN([LT_CMD_MAX_LEN],
  34860. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  34861. +# find the maximum length of command line arguments
  34862. +AC_MSG_CHECKING([the maximum length of command line arguments])
  34863. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  34864. + i=0
  34865. + teststring="ABCD"
  34866. +
  34867. + case $build_os in
  34868. + msdosdjgpp*)
  34869. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  34870. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  34871. + # during glob expansion). Even if it were fixed, the result of this
  34872. + # check would be larger than it should be.
  34873. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  34874. + ;;
  34875. +
  34876. + gnu*)
  34877. + # Under GNU Hurd, this test is not required because there is
  34878. + # no limit to the length of command line arguments.
  34879. + # Libtool will interpret -1 as no limit whatsoever
  34880. + lt_cv_sys_max_cmd_len=-1;
  34881. + ;;
  34882. +
  34883. + cygwin* | mingw* | cegcc*)
  34884. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  34885. + # about 5 minutes as the teststring grows exponentially.
  34886. + # Worse, since 9x/ME are not pre-emptively multitasking,
  34887. + # you end up with a "frozen" computer, even though with patience
  34888. + # the test eventually succeeds (with a max line length of 256k).
  34889. + # Instead, let's just punt: use the minimum linelength reported by
  34890. + # all of the supported platforms: 8192 (on NT/2K/XP).
  34891. + lt_cv_sys_max_cmd_len=8192;
  34892. + ;;
  34893. +
  34894. + amigaos*)
  34895. + # On AmigaOS with pdksh, this test takes hours, literally.
  34896. + # So we just punt and use a minimum line length of 8192.
  34897. + lt_cv_sys_max_cmd_len=8192;
  34898. + ;;
  34899. +
  34900. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  34901. + # This has been around since 386BSD, at least. Likely further.
  34902. + if test -x /sbin/sysctl; then
  34903. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  34904. + elif test -x /usr/sbin/sysctl; then
  34905. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  34906. + else
  34907. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  34908. + fi
  34909. + # And add a safety zone
  34910. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  34911. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  34912. + ;;
  34913. +
  34914. + interix*)
  34915. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  34916. + lt_cv_sys_max_cmd_len=196608
  34917. + ;;
  34918. +
  34919. + osf*)
  34920. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  34921. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  34922. + # nice to cause kernel panics so lets avoid the loop below.
  34923. + # First set a reasonable default.
  34924. + lt_cv_sys_max_cmd_len=16384
  34925. + #
  34926. + if test -x /sbin/sysconfig; then
  34927. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  34928. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  34929. + esac
  34930. + fi
  34931. + ;;
  34932. + sco3.2v5*)
  34933. + lt_cv_sys_max_cmd_len=102400
  34934. + ;;
  34935. + sysv5* | sco5v6* | sysv4.2uw2*)
  34936. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  34937. + if test -n "$kargmax"; then
  34938. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  34939. + else
  34940. + lt_cv_sys_max_cmd_len=32768
  34941. + fi
  34942. + ;;
  34943. + *)
  34944. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  34945. + if test -n "$lt_cv_sys_max_cmd_len"; then
  34946. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  34947. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  34948. + else
  34949. + # Make teststring a little bigger before we do anything with it.
  34950. + # a 1K string should be a reasonable start.
  34951. + for i in 1 2 3 4 5 6 7 8 ; do
  34952. + teststring=$teststring$teststring
  34953. + done
  34954. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  34955. + # If test is not a shell built-in, we'll probably end up computing a
  34956. + # maximum length that is only half of the actual maximum length, but
  34957. + # we can't tell.
  34958. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  34959. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  34960. + test $i != 17 # 1/2 MB should be enough
  34961. + do
  34962. + i=`expr $i + 1`
  34963. + teststring=$teststring$teststring
  34964. + done
  34965. + # Only check the string length outside the loop.
  34966. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  34967. + teststring=
  34968. + # Add a significant safety factor because C++ compilers can tack on
  34969. + # massive amounts of additional arguments before passing them to the
  34970. + # linker. It appears as though 1/2 is a usable value.
  34971. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  34972. + fi
  34973. + ;;
  34974. + esac
  34975. +])
  34976. +if test -n $lt_cv_sys_max_cmd_len ; then
  34977. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  34978. +else
  34979. + AC_MSG_RESULT(none)
  34980. +fi
  34981. +max_cmd_len=$lt_cv_sys_max_cmd_len
  34982. +_LT_DECL([], [max_cmd_len], [0],
  34983. + [What is the maximum length of a command?])
  34984. +])# LT_CMD_MAX_LEN
  34985. +
  34986. +# Old name:
  34987. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  34988. +dnl aclocal-1.4 backwards compatibility:
  34989. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  34990. +
  34991. +
  34992. +# _LT_HEADER_DLFCN
  34993. +# ----------------
  34994. +m4_defun([_LT_HEADER_DLFCN],
  34995. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  34996. +])# _LT_HEADER_DLFCN
  34997. +
  34998. +
  34999. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  35000. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  35001. +# ----------------------------------------------------------------
  35002. +m4_defun([_LT_TRY_DLOPEN_SELF],
  35003. +[m4_require([_LT_HEADER_DLFCN])dnl
  35004. +if test "$cross_compiling" = yes; then :
  35005. + [$4]
  35006. +else
  35007. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35008. + lt_status=$lt_dlunknown
  35009. + cat > conftest.$ac_ext <<_LT_EOF
  35010. +[#line __oline__ "configure"
  35011. +#include "confdefs.h"
  35012. +
  35013. +#if HAVE_DLFCN_H
  35014. +#include <dlfcn.h>
  35015. +#endif
  35016. +
  35017. +#include <stdio.h>
  35018. +
  35019. +#ifdef RTLD_GLOBAL
  35020. +# define LT_DLGLOBAL RTLD_GLOBAL
  35021. +#else
  35022. +# ifdef DL_GLOBAL
  35023. +# define LT_DLGLOBAL DL_GLOBAL
  35024. +# else
  35025. +# define LT_DLGLOBAL 0
  35026. +# endif
  35027. +#endif
  35028. +
  35029. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  35030. + find out it does not work in some platform. */
  35031. +#ifndef LT_DLLAZY_OR_NOW
  35032. +# ifdef RTLD_LAZY
  35033. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  35034. +# else
  35035. +# ifdef DL_LAZY
  35036. +# define LT_DLLAZY_OR_NOW DL_LAZY
  35037. +# else
  35038. +# ifdef RTLD_NOW
  35039. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  35040. +# else
  35041. +# ifdef DL_NOW
  35042. +# define LT_DLLAZY_OR_NOW DL_NOW
  35043. +# else
  35044. +# define LT_DLLAZY_OR_NOW 0
  35045. +# endif
  35046. +# endif
  35047. +# endif
  35048. +# endif
  35049. +#endif
  35050. +
  35051. +void fnord() { int i=42;}
  35052. +int main ()
  35053. +{
  35054. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  35055. + int status = $lt_dlunknown;
  35056. +
  35057. + if (self)
  35058. + {
  35059. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  35060. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35061. + /* dlclose (self); */
  35062. + }
  35063. + else
  35064. + puts (dlerror ());
  35065. +
  35066. + return status;
  35067. +}]
  35068. +_LT_EOF
  35069. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  35070. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  35071. + lt_status=$?
  35072. + case x$lt_status in
  35073. + x$lt_dlno_uscore) $1 ;;
  35074. + x$lt_dlneed_uscore) $2 ;;
  35075. + x$lt_dlunknown|x*) $3 ;;
  35076. + esac
  35077. + else :
  35078. + # compilation failed
  35079. + $3
  35080. + fi
  35081. +fi
  35082. +rm -fr conftest*
  35083. +])# _LT_TRY_DLOPEN_SELF
  35084. +
  35085. +
  35086. +# LT_SYS_DLOPEN_SELF
  35087. +# ------------------
  35088. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  35089. +[m4_require([_LT_HEADER_DLFCN])dnl
  35090. +if test "x$enable_dlopen" != xyes; then
  35091. + enable_dlopen=unknown
  35092. + enable_dlopen_self=unknown
  35093. + enable_dlopen_self_static=unknown
  35094. +else
  35095. + lt_cv_dlopen=no
  35096. + lt_cv_dlopen_libs=
  35097. +
  35098. + case $host_os in
  35099. + beos*)
  35100. + lt_cv_dlopen="load_add_on"
  35101. + lt_cv_dlopen_libs=
  35102. + lt_cv_dlopen_self=yes
  35103. + ;;
  35104. +
  35105. + mingw* | pw32* | cegcc*)
  35106. + lt_cv_dlopen="LoadLibrary"
  35107. + lt_cv_dlopen_libs=
  35108. + ;;
  35109. +
  35110. + cygwin*)
  35111. + lt_cv_dlopen="dlopen"
  35112. + lt_cv_dlopen_libs=
  35113. + ;;
  35114. +
  35115. + darwin*)
  35116. + # if libdl is installed we need to link against it
  35117. + AC_CHECK_LIB([dl], [dlopen],
  35118. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  35119. + lt_cv_dlopen="dyld"
  35120. + lt_cv_dlopen_libs=
  35121. + lt_cv_dlopen_self=yes
  35122. + ])
  35123. + ;;
  35124. +
  35125. + *)
  35126. + AC_CHECK_FUNC([shl_load],
  35127. + [lt_cv_dlopen="shl_load"],
  35128. + [AC_CHECK_LIB([dld], [shl_load],
  35129. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  35130. + [AC_CHECK_FUNC([dlopen],
  35131. + [lt_cv_dlopen="dlopen"],
  35132. + [AC_CHECK_LIB([dl], [dlopen],
  35133. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  35134. + [AC_CHECK_LIB([svld], [dlopen],
  35135. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  35136. + [AC_CHECK_LIB([dld], [dld_link],
  35137. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  35138. + ])
  35139. + ])
  35140. + ])
  35141. + ])
  35142. + ])
  35143. + ;;
  35144. + esac
  35145. +
  35146. + if test "x$lt_cv_dlopen" != xno; then
  35147. + enable_dlopen=yes
  35148. + else
  35149. + enable_dlopen=no
  35150. + fi
  35151. +
  35152. + case $lt_cv_dlopen in
  35153. + dlopen)
  35154. + save_CPPFLAGS="$CPPFLAGS"
  35155. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  35156. +
  35157. + save_LDFLAGS="$LDFLAGS"
  35158. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  35159. +
  35160. + save_LIBS="$LIBS"
  35161. + LIBS="$lt_cv_dlopen_libs $LIBS"
  35162. +
  35163. + AC_CACHE_CHECK([whether a program can dlopen itself],
  35164. + lt_cv_dlopen_self, [dnl
  35165. + _LT_TRY_DLOPEN_SELF(
  35166. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  35167. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  35168. + ])
  35169. +
  35170. + if test "x$lt_cv_dlopen_self" = xyes; then
  35171. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  35172. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  35173. + lt_cv_dlopen_self_static, [dnl
  35174. + _LT_TRY_DLOPEN_SELF(
  35175. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  35176. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  35177. + ])
  35178. + fi
  35179. +
  35180. + CPPFLAGS="$save_CPPFLAGS"
  35181. + LDFLAGS="$save_LDFLAGS"
  35182. + LIBS="$save_LIBS"
  35183. + ;;
  35184. + esac
  35185. +
  35186. + case $lt_cv_dlopen_self in
  35187. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  35188. + *) enable_dlopen_self=unknown ;;
  35189. + esac
  35190. +
  35191. + case $lt_cv_dlopen_self_static in
  35192. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  35193. + *) enable_dlopen_self_static=unknown ;;
  35194. + esac
  35195. +fi
  35196. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  35197. + [Whether dlopen is supported])
  35198. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  35199. + [Whether dlopen of programs is supported])
  35200. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  35201. + [Whether dlopen of statically linked programs is supported])
  35202. +])# LT_SYS_DLOPEN_SELF
  35203. +
  35204. +# Old name:
  35205. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  35206. +dnl aclocal-1.4 backwards compatibility:
  35207. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  35208. +
  35209. +
  35210. +# _LT_COMPILER_C_O([TAGNAME])
  35211. +# ---------------------------
  35212. +# Check to see if options -c and -o are simultaneously supported by compiler.
  35213. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  35214. +m4_defun([_LT_COMPILER_C_O],
  35215. +[m4_require([_LT_DECL_SED])dnl
  35216. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35217. +m4_require([_LT_TAG_COMPILER])dnl
  35218. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  35219. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  35220. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  35221. + $RM -r conftest 2>/dev/null
  35222. + mkdir conftest
  35223. + cd conftest
  35224. + mkdir out
  35225. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35226. +
  35227. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  35228. + # Insert the option either (1) after the last *FLAGS variable, or
  35229. + # (2) before a word containing "conftest.", or (3) at the end.
  35230. + # Note that $ac_compile itself does not contain backslashes and begins
  35231. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  35232. + lt_compile=`echo "$ac_compile" | $SED \
  35233. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35234. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  35235. + -e 's:$: $lt_compiler_flag:'`
  35236. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  35237. + (eval "$lt_compile" 2>out/conftest.err)
  35238. + ac_status=$?
  35239. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  35240. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  35241. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35242. + then
  35243. + # The compiler can only warn and ignore the option if not recognized
  35244. + # So say no if there are warnings
  35245. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35246. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35247. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35248. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  35249. + fi
  35250. + fi
  35251. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  35252. + $RM conftest*
  35253. + # SGI C++ compiler will create directory out/ii_files/ for
  35254. + # template instantiation
  35255. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  35256. + $RM out/* && rmdir out
  35257. + cd ..
  35258. + $RM -r conftest
  35259. + $RM conftest*
  35260. +])
  35261. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  35262. + [Does compiler simultaneously support -c and -o options?])
  35263. +])# _LT_COMPILER_C_O
  35264. +
  35265. +
  35266. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  35267. +# ----------------------------------
  35268. +# Check to see if we can do hard links to lock some files if needed
  35269. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  35270. +[m4_require([_LT_ENABLE_LOCK])dnl
  35271. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35272. +_LT_COMPILER_C_O([$1])
  35273. +
  35274. +hard_links="nottested"
  35275. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  35276. + # do not overwrite the value of need_locks provided by the user
  35277. + AC_MSG_CHECKING([if we can lock with hard links])
  35278. + hard_links=yes
  35279. + $RM conftest*
  35280. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35281. + touch conftest.a
  35282. + ln conftest.a conftest.b 2>&5 || hard_links=no
  35283. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35284. + AC_MSG_RESULT([$hard_links])
  35285. + if test "$hard_links" = no; then
  35286. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  35287. + need_locks=warn
  35288. + fi
  35289. +else
  35290. + need_locks=no
  35291. +fi
  35292. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  35293. +])# _LT_COMPILER_FILE_LOCKS
  35294. +
  35295. +
  35296. +# _LT_CHECK_OBJDIR
  35297. +# ----------------
  35298. +m4_defun([_LT_CHECK_OBJDIR],
  35299. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  35300. +[rm -f .libs 2>/dev/null
  35301. +mkdir .libs 2>/dev/null
  35302. +if test -d .libs; then
  35303. + lt_cv_objdir=.libs
  35304. +else
  35305. + # MS-DOS does not allow filenames that begin with a dot.
  35306. + lt_cv_objdir=_libs
  35307. +fi
  35308. +rmdir .libs 2>/dev/null])
  35309. +objdir=$lt_cv_objdir
  35310. +_LT_DECL([], [objdir], [0],
  35311. + [The name of the directory that contains temporary libtool files])dnl
  35312. +m4_pattern_allow([LT_OBJDIR])dnl
  35313. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  35314. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  35315. +])# _LT_CHECK_OBJDIR
  35316. +
  35317. +
  35318. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  35319. +# --------------------------------------
  35320. +# Check hardcoding attributes.
  35321. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  35322. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  35323. +_LT_TAGVAR(hardcode_action, $1)=
  35324. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  35325. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  35326. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  35327. +
  35328. + # We can hardcode non-existent directories.
  35329. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  35330. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  35331. + # have to relink, otherwise we might link with an installed library
  35332. + # when we should be linking with a yet-to-be-installed one
  35333. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  35334. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  35335. + # Linking always hardcodes the temporary library directory.
  35336. + _LT_TAGVAR(hardcode_action, $1)=relink
  35337. + else
  35338. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  35339. + _LT_TAGVAR(hardcode_action, $1)=immediate
  35340. + fi
  35341. +else
  35342. + # We cannot hardcode anything, or else we can only hardcode existing
  35343. + # directories.
  35344. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  35345. +fi
  35346. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  35347. +
  35348. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  35349. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  35350. + # Fast installation is not supported
  35351. + enable_fast_install=no
  35352. +elif test "$shlibpath_overrides_runpath" = yes ||
  35353. + test "$enable_shared" = no; then
  35354. + # Fast installation is not necessary
  35355. + enable_fast_install=needless
  35356. +fi
  35357. +_LT_TAGDECL([], [hardcode_action], [0],
  35358. + [How to hardcode a shared library path into an executable])
  35359. +])# _LT_LINKER_HARDCODE_LIBPATH
  35360. +
  35361. +
  35362. +# _LT_CMD_STRIPLIB
  35363. +# ----------------
  35364. +m4_defun([_LT_CMD_STRIPLIB],
  35365. +[m4_require([_LT_DECL_EGREP])
  35366. +striplib=
  35367. +old_striplib=
  35368. +AC_MSG_CHECKING([whether stripping libraries is possible])
  35369. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  35370. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  35371. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  35372. + AC_MSG_RESULT([yes])
  35373. +else
  35374. +# FIXME - insert some real tests, host_os isn't really good enough
  35375. + case $host_os in
  35376. + darwin*)
  35377. + if test -n "$STRIP" ; then
  35378. + striplib="$STRIP -x"
  35379. + old_striplib="$STRIP -S"
  35380. + AC_MSG_RESULT([yes])
  35381. + else
  35382. + AC_MSG_RESULT([no])
  35383. + fi
  35384. + ;;
  35385. + *)
  35386. + AC_MSG_RESULT([no])
  35387. + ;;
  35388. + esac
  35389. +fi
  35390. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  35391. +_LT_DECL([], [striplib], [1])
  35392. +])# _LT_CMD_STRIPLIB
  35393. +
  35394. +
  35395. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  35396. +# -----------------------------
  35397. +# PORTME Fill in your ld.so characteristics
  35398. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  35399. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  35400. +m4_require([_LT_DECL_EGREP])dnl
  35401. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35402. +m4_require([_LT_DECL_OBJDUMP])dnl
  35403. +m4_require([_LT_DECL_SED])dnl
  35404. +AC_MSG_CHECKING([dynamic linker characteristics])
  35405. +m4_if([$1],
  35406. + [], [
  35407. +if test "$GCC" = yes; then
  35408. + case $host_os in
  35409. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  35410. + *) lt_awk_arg="/^libraries:/" ;;
  35411. + esac
  35412. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35413. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  35414. + # if the path contains ";" then we assume it to be the separator
  35415. + # otherwise default to the standard path separator (i.e. ":") - it is
  35416. + # assumed that no part of a normal pathname contains ";" but that should
  35417. + # okay in the real world where ";" in dirpaths is itself problematic.
  35418. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  35419. + else
  35420. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35421. + fi
  35422. + # Ok, now we have the path, separated by spaces, we can step through it
  35423. + # and add multilib dir if necessary.
  35424. + lt_tmp_lt_search_path_spec=
  35425. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  35426. + for lt_sys_path in $lt_search_path_spec; do
  35427. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  35428. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  35429. + else
  35430. + test -d "$lt_sys_path" && \
  35431. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  35432. + fi
  35433. + done
  35434. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  35435. +BEGIN {RS=" "; FS="/|\n";} {
  35436. + lt_foo="";
  35437. + lt_count=0;
  35438. + for (lt_i = NF; lt_i > 0; lt_i--) {
  35439. + if ($lt_i != "" && $lt_i != ".") {
  35440. + if ($lt_i == "..") {
  35441. + lt_count++;
  35442. + } else {
  35443. + if (lt_count == 0) {
  35444. + lt_foo="/" $lt_i lt_foo;
  35445. + } else {
  35446. + lt_count--;
  35447. + }
  35448. + }
  35449. + }
  35450. + }
  35451. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  35452. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  35453. +}'`
  35454. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  35455. +else
  35456. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35457. +fi])
  35458. +library_names_spec=
  35459. +libname_spec='lib$name'
  35460. +soname_spec=
  35461. +shrext_cmds=".so"
  35462. +postinstall_cmds=
  35463. +postuninstall_cmds=
  35464. +finish_cmds=
  35465. +finish_eval=
  35466. +shlibpath_var=
  35467. +shlibpath_overrides_runpath=unknown
  35468. +version_type=none
  35469. +dynamic_linker="$host_os ld.so"
  35470. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35471. +need_lib_prefix=unknown
  35472. +hardcode_into_libs=no
  35473. +
  35474. +# when you set need_version to no, make sure it does not cause -set_version
  35475. +# flags to be left without arguments
  35476. +need_version=unknown
  35477. +
  35478. +case $host_os in
  35479. +aix3*)
  35480. + version_type=linux
  35481. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35482. + shlibpath_var=LIBPATH
  35483. +
  35484. + # AIX 3 has no versioning support, so we append a major version to the name.
  35485. + soname_spec='${libname}${release}${shared_ext}$major'
  35486. + ;;
  35487. +
  35488. +aix[[4-9]]*)
  35489. + version_type=linux
  35490. + need_lib_prefix=no
  35491. + need_version=no
  35492. + hardcode_into_libs=yes
  35493. + if test "$host_cpu" = ia64; then
  35494. + # AIX 5 supports IA64
  35495. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35496. + shlibpath_var=LD_LIBRARY_PATH
  35497. + else
  35498. + # With GCC up to 2.95.x, collect2 would create an import file
  35499. + # for dependence libraries. The import file would start with
  35500. + # the line `#! .'. This would cause the generated library to
  35501. + # depend on `.', always an invalid library. This was fixed in
  35502. + # development snapshots of GCC prior to 3.0.
  35503. + case $host_os in
  35504. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  35505. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35506. + echo ' yes '
  35507. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  35508. + :
  35509. + else
  35510. + can_build_shared=no
  35511. + fi
  35512. + ;;
  35513. + esac
  35514. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35515. + # soname into executable. Probably we can add versioning support to
  35516. + # collect2, so additional links can be useful in future.
  35517. + if test "$aix_use_runtimelinking" = yes; then
  35518. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35519. + # instead of lib<name>.a to let people know that these are not
  35520. + # typical AIX shared libraries.
  35521. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35522. + else
  35523. + # We preserve .a as extension for shared libraries through AIX4.2
  35524. + # and later when we are not doing run time linking.
  35525. + library_names_spec='${libname}${release}.a $libname.a'
  35526. + soname_spec='${libname}${release}${shared_ext}$major'
  35527. + fi
  35528. + shlibpath_var=LIBPATH
  35529. + fi
  35530. + ;;
  35531. +
  35532. +amigaos*)
  35533. + case $host_cpu in
  35534. + powerpc)
  35535. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  35536. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  35537. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35538. + ;;
  35539. + m68k)
  35540. + library_names_spec='$libname.ixlibrary $libname.a'
  35541. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35542. + 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'
  35543. + ;;
  35544. + esac
  35545. + ;;
  35546. +
  35547. +beos*)
  35548. + library_names_spec='${libname}${shared_ext}'
  35549. + dynamic_linker="$host_os ld.so"
  35550. + shlibpath_var=LIBRARY_PATH
  35551. + ;;
  35552. +
  35553. +bsdi[[45]]*)
  35554. + version_type=linux
  35555. + need_version=no
  35556. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35557. + soname_spec='${libname}${release}${shared_ext}$major'
  35558. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  35559. + shlibpath_var=LD_LIBRARY_PATH
  35560. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  35561. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  35562. + # the default ld.so.conf also contains /usr/contrib/lib and
  35563. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  35564. + # libtool to hard-code these into programs
  35565. + ;;
  35566. +
  35567. +cygwin* | mingw* | pw32* | cegcc*)
  35568. + version_type=windows
  35569. + shrext_cmds=".dll"
  35570. + need_version=no
  35571. + need_lib_prefix=no
  35572. +
  35573. + case $GCC,$host_os in
  35574. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  35575. + library_names_spec='$libname.dll.a'
  35576. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35577. + postinstall_cmds='base_file=`basename \${file}`~
  35578. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  35579. + dldir=$destdir/`dirname \$dlpath`~
  35580. + test -d \$dldir || mkdir -p \$dldir~
  35581. + $install_prog $dir/$dlname \$dldir/$dlname~
  35582. + chmod a+x \$dldir/$dlname~
  35583. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  35584. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  35585. + fi'
  35586. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35587. + dlpath=$dir/\$dldll~
  35588. + $RM \$dlpath'
  35589. + shlibpath_overrides_runpath=yes
  35590. +
  35591. + case $host_os in
  35592. + cygwin*)
  35593. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  35594. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  35595. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  35596. + ;;
  35597. + mingw* | cegcc*)
  35598. + # MinGW DLLs use traditional 'lib' prefix
  35599. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  35600. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35601. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  35602. + # It is most probably a Windows format PATH printed by
  35603. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  35604. + # path with ; separators, and with drive letters. We can handle the
  35605. + # drive letters (cygwin fileutils understands them), so leave them,
  35606. + # especially as we might pass files found there to a mingw objdump,
  35607. + # which wouldn't understand a cygwinified path. Ahh.
  35608. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35609. + else
  35610. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35611. + fi
  35612. + ;;
  35613. + pw32*)
  35614. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  35615. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  35616. + ;;
  35617. + esac
  35618. + ;;
  35619. +
  35620. + *)
  35621. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  35622. + ;;
  35623. + esac
  35624. + dynamic_linker='Win32 ld.exe'
  35625. + # FIXME: first we should search . and the directory the executable is in
  35626. + shlibpath_var=PATH
  35627. + ;;
  35628. +
  35629. +darwin* | rhapsody*)
  35630. + dynamic_linker="$host_os dyld"
  35631. + version_type=darwin
  35632. + need_lib_prefix=no
  35633. + need_version=no
  35634. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35635. + soname_spec='${libname}${release}${major}$shared_ext'
  35636. + shlibpath_overrides_runpath=yes
  35637. + shlibpath_var=DYLD_LIBRARY_PATH
  35638. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  35639. +m4_if([$1], [],[
  35640. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  35641. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  35642. + ;;
  35643. +
  35644. +dgux*)
  35645. + version_type=linux
  35646. + need_lib_prefix=no
  35647. + need_version=no
  35648. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  35649. + soname_spec='${libname}${release}${shared_ext}$major'
  35650. + shlibpath_var=LD_LIBRARY_PATH
  35651. + ;;
  35652. +
  35653. +freebsd1*)
  35654. + dynamic_linker=no
  35655. + ;;
  35656. +
  35657. +freebsd* | dragonfly*)
  35658. + # DragonFly does not have aout. When/if they implement a new
  35659. + # versioning mechanism, adjust this.
  35660. + if test -x /usr/bin/objformat; then
  35661. + objformat=`/usr/bin/objformat`
  35662. + else
  35663. + case $host_os in
  35664. + freebsd[[123]]*) objformat=aout ;;
  35665. + *) objformat=elf ;;
  35666. + esac
  35667. + fi
  35668. + version_type=freebsd-$objformat
  35669. + case $version_type in
  35670. + freebsd-elf*)
  35671. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35672. + need_version=no
  35673. + need_lib_prefix=no
  35674. + ;;
  35675. + freebsd-*)
  35676. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  35677. + need_version=yes
  35678. + ;;
  35679. + esac
  35680. + shlibpath_var=LD_LIBRARY_PATH
  35681. + case $host_os in
  35682. + freebsd2*)
  35683. + shlibpath_overrides_runpath=yes
  35684. + ;;
  35685. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  35686. + shlibpath_overrides_runpath=yes
  35687. + hardcode_into_libs=yes
  35688. + ;;
  35689. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  35690. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  35691. + shlibpath_overrides_runpath=no
  35692. + hardcode_into_libs=yes
  35693. + ;;
  35694. + *) # from 4.6 on, and DragonFly
  35695. + shlibpath_overrides_runpath=yes
  35696. + hardcode_into_libs=yes
  35697. + ;;
  35698. + esac
  35699. + ;;
  35700. +
  35701. +gnu*)
  35702. + version_type=linux
  35703. + need_lib_prefix=no
  35704. + need_version=no
  35705. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  35706. + soname_spec='${libname}${release}${shared_ext}$major'
  35707. + shlibpath_var=LD_LIBRARY_PATH
  35708. + hardcode_into_libs=yes
  35709. + ;;
  35710. +
  35711. +hpux9* | hpux10* | hpux11*)
  35712. + # Give a soname corresponding to the major version so that dld.sl refuses to
  35713. + # link against other versions.
  35714. + version_type=sunos
  35715. + need_lib_prefix=no
  35716. + need_version=no
  35717. + case $host_cpu in
  35718. + ia64*)
  35719. + shrext_cmds='.so'
  35720. + hardcode_into_libs=yes
  35721. + dynamic_linker="$host_os dld.so"
  35722. + shlibpath_var=LD_LIBRARY_PATH
  35723. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35724. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35725. + soname_spec='${libname}${release}${shared_ext}$major'
  35726. + if test "X$HPUX_IA64_MODE" = X32; then
  35727. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  35728. + else
  35729. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  35730. + fi
  35731. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35732. + ;;
  35733. + hppa*64*)
  35734. + shrext_cmds='.sl'
  35735. + hardcode_into_libs=yes
  35736. + dynamic_linker="$host_os dld.sl"
  35737. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35738. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35739. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35740. + soname_spec='${libname}${release}${shared_ext}$major'
  35741. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35742. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35743. + ;;
  35744. + *)
  35745. + shrext_cmds='.sl'
  35746. + dynamic_linker="$host_os dld.sl"
  35747. + shlibpath_var=SHLIB_PATH
  35748. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  35749. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35750. + soname_spec='${libname}${release}${shared_ext}$major'
  35751. + ;;
  35752. + esac
  35753. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  35754. + postinstall_cmds='chmod 555 $lib'
  35755. + ;;
  35756. +
  35757. +interix[[3-9]]*)
  35758. + version_type=linux
  35759. + need_lib_prefix=no
  35760. + need_version=no
  35761. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35762. + soname_spec='${libname}${release}${shared_ext}$major'
  35763. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  35764. + shlibpath_var=LD_LIBRARY_PATH
  35765. + shlibpath_overrides_runpath=no
  35766. + hardcode_into_libs=yes
  35767. + ;;
  35768. +
  35769. +irix5* | irix6* | nonstopux*)
  35770. + case $host_os in
  35771. + nonstopux*) version_type=nonstopux ;;
  35772. + *)
  35773. + if test "$lt_cv_prog_gnu_ld" = yes; then
  35774. + version_type=linux
  35775. + else
  35776. + version_type=irix
  35777. + fi ;;
  35778. + esac
  35779. + need_lib_prefix=no
  35780. + need_version=no
  35781. + soname_spec='${libname}${release}${shared_ext}$major'
  35782. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  35783. + case $host_os in
  35784. + irix5* | nonstopux*)
  35785. + libsuff= shlibsuff=
  35786. + ;;
  35787. + *)
  35788. + case $LD in # libtool.m4 will add one of these switches to LD
  35789. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  35790. + libsuff= shlibsuff= libmagic=32-bit;;
  35791. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  35792. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  35793. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  35794. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  35795. + *) libsuff= shlibsuff= libmagic=never-match;;
  35796. + esac
  35797. + ;;
  35798. + esac
  35799. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  35800. + shlibpath_overrides_runpath=no
  35801. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  35802. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  35803. + hardcode_into_libs=yes
  35804. + ;;
  35805. +
  35806. +# No shared lib support for Linux oldld, aout, or coff.
  35807. +linux*oldld* | linux*aout* | linux*coff*)
  35808. + dynamic_linker=no
  35809. + ;;
  35810. +
  35811. +# This must be Linux ELF.
  35812. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  35813. + version_type=linux
  35814. + need_lib_prefix=no
  35815. + need_version=no
  35816. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35817. + soname_spec='${libname}${release}${shared_ext}$major'
  35818. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  35819. + shlibpath_var=LD_LIBRARY_PATH
  35820. + shlibpath_overrides_runpath=no
  35821. + # Some binutils ld are patched to set DT_RUNPATH
  35822. + save_LDFLAGS=$LDFLAGS
  35823. + save_libdir=$libdir
  35824. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  35825. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  35826. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  35827. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  35828. + [shlibpath_overrides_runpath=yes])])
  35829. + LDFLAGS=$save_LDFLAGS
  35830. + libdir=$save_libdir
  35831. +
  35832. + # This implies no fast_install, which is unacceptable.
  35833. + # Some rework will be needed to allow for fast_install
  35834. + # before this can be enabled.
  35835. + hardcode_into_libs=yes
  35836. +
  35837. + # Append ld.so.conf contents to the search path
  35838. + if test -f /etc/ld.so.conf; then
  35839. + 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' ' '`
  35840. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  35841. + fi
  35842. +
  35843. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  35844. + # powerpc, because MkLinux only supported shared libraries with the
  35845. + # GNU dynamic linker. Since this was broken with cross compilers,
  35846. + # most powerpc-linux boxes support dynamic linking these days and
  35847. + # people can always --disable-shared, the test was removed, and we
  35848. + # assume the GNU/Linux dynamic linker is in use.
  35849. + dynamic_linker='GNU/Linux ld.so'
  35850. + ;;
  35851. +
  35852. +netbsdelf*-gnu)
  35853. + version_type=linux
  35854. + need_lib_prefix=no
  35855. + need_version=no
  35856. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35857. + soname_spec='${libname}${release}${shared_ext}$major'
  35858. + shlibpath_var=LD_LIBRARY_PATH
  35859. + shlibpath_overrides_runpath=no
  35860. + hardcode_into_libs=yes
  35861. + dynamic_linker='NetBSD ld.elf_so'
  35862. + ;;
  35863. +
  35864. +netbsd*)
  35865. + version_type=sunos
  35866. + need_lib_prefix=no
  35867. + need_version=no
  35868. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35869. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35870. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35871. + dynamic_linker='NetBSD (a.out) ld.so'
  35872. + else
  35873. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35874. + soname_spec='${libname}${release}${shared_ext}$major'
  35875. + dynamic_linker='NetBSD ld.elf_so'
  35876. + fi
  35877. + shlibpath_var=LD_LIBRARY_PATH
  35878. + shlibpath_overrides_runpath=yes
  35879. + hardcode_into_libs=yes
  35880. + ;;
  35881. +
  35882. +newsos6)
  35883. + version_type=linux
  35884. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35885. + shlibpath_var=LD_LIBRARY_PATH
  35886. + shlibpath_overrides_runpath=yes
  35887. + ;;
  35888. +
  35889. +*nto* | *qnx*)
  35890. + version_type=qnx
  35891. + need_lib_prefix=no
  35892. + need_version=no
  35893. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35894. + soname_spec='${libname}${release}${shared_ext}$major'
  35895. + shlibpath_var=LD_LIBRARY_PATH
  35896. + shlibpath_overrides_runpath=no
  35897. + hardcode_into_libs=yes
  35898. + dynamic_linker='ldqnx.so'
  35899. + ;;
  35900. +
  35901. +openbsd*)
  35902. + version_type=sunos
  35903. + sys_lib_dlsearch_path_spec="/usr/lib"
  35904. + need_lib_prefix=no
  35905. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  35906. + case $host_os in
  35907. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  35908. + *) need_version=no ;;
  35909. + esac
  35910. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35911. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35912. + shlibpath_var=LD_LIBRARY_PATH
  35913. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35914. + case $host_os in
  35915. + openbsd2.[[89]] | openbsd2.[[89]].*)
  35916. + shlibpath_overrides_runpath=no
  35917. + ;;
  35918. + *)
  35919. + shlibpath_overrides_runpath=yes
  35920. + ;;
  35921. + esac
  35922. + else
  35923. + shlibpath_overrides_runpath=yes
  35924. + fi
  35925. + ;;
  35926. +
  35927. +os2*)
  35928. + libname_spec='$name'
  35929. + shrext_cmds=".dll"
  35930. + need_lib_prefix=no
  35931. + library_names_spec='$libname${shared_ext} $libname.a'
  35932. + dynamic_linker='OS/2 ld.exe'
  35933. + shlibpath_var=LIBPATH
  35934. + ;;
  35935. +
  35936. +osf3* | osf4* | osf5*)
  35937. + version_type=osf
  35938. + need_lib_prefix=no
  35939. + need_version=no
  35940. + soname_spec='${libname}${release}${shared_ext}$major'
  35941. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35942. + shlibpath_var=LD_LIBRARY_PATH
  35943. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  35944. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  35945. + ;;
  35946. +
  35947. +rdos*)
  35948. + dynamic_linker=no
  35949. + ;;
  35950. +
  35951. +solaris*)
  35952. + version_type=linux
  35953. + need_lib_prefix=no
  35954. + need_version=no
  35955. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35956. + soname_spec='${libname}${release}${shared_ext}$major'
  35957. + shlibpath_var=LD_LIBRARY_PATH
  35958. + shlibpath_overrides_runpath=yes
  35959. + hardcode_into_libs=yes
  35960. + # ldd complains unless libraries are executable
  35961. + postinstall_cmds='chmod +x $lib'
  35962. + ;;
  35963. +
  35964. +sunos4*)
  35965. + version_type=sunos
  35966. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35967. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  35968. + shlibpath_var=LD_LIBRARY_PATH
  35969. + shlibpath_overrides_runpath=yes
  35970. + if test "$with_gnu_ld" = yes; then
  35971. + need_lib_prefix=no
  35972. + fi
  35973. + need_version=yes
  35974. + ;;
  35975. +
  35976. +sysv4 | sysv4.3*)
  35977. + version_type=linux
  35978. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35979. + soname_spec='${libname}${release}${shared_ext}$major'
  35980. + shlibpath_var=LD_LIBRARY_PATH
  35981. + case $host_vendor in
  35982. + sni)
  35983. + shlibpath_overrides_runpath=no
  35984. + need_lib_prefix=no
  35985. + runpath_var=LD_RUN_PATH
  35986. + ;;
  35987. + siemens)
  35988. + need_lib_prefix=no
  35989. + ;;
  35990. + motorola)
  35991. + need_lib_prefix=no
  35992. + need_version=no
  35993. + shlibpath_overrides_runpath=no
  35994. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  35995. + ;;
  35996. + esac
  35997. + ;;
  35998. +
  35999. +sysv4*MP*)
  36000. + if test -d /usr/nec ;then
  36001. + version_type=linux
  36002. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36003. + soname_spec='$libname${shared_ext}.$major'
  36004. + shlibpath_var=LD_LIBRARY_PATH
  36005. + fi
  36006. + ;;
  36007. +
  36008. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36009. + version_type=freebsd-elf
  36010. + need_lib_prefix=no
  36011. + need_version=no
  36012. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36013. + soname_spec='${libname}${release}${shared_ext}$major'
  36014. + shlibpath_var=LD_LIBRARY_PATH
  36015. + shlibpath_overrides_runpath=yes
  36016. + hardcode_into_libs=yes
  36017. + if test "$with_gnu_ld" = yes; then
  36018. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36019. + else
  36020. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36021. + case $host_os in
  36022. + sco3.2v5*)
  36023. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36024. + ;;
  36025. + esac
  36026. + fi
  36027. + sys_lib_dlsearch_path_spec='/usr/lib'
  36028. + ;;
  36029. +
  36030. +tpf*)
  36031. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  36032. + version_type=linux
  36033. + need_lib_prefix=no
  36034. + need_version=no
  36035. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36036. + shlibpath_var=LD_LIBRARY_PATH
  36037. + shlibpath_overrides_runpath=no
  36038. + hardcode_into_libs=yes
  36039. + ;;
  36040. +
  36041. +uts4*)
  36042. + version_type=linux
  36043. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36044. + soname_spec='${libname}${release}${shared_ext}$major'
  36045. + shlibpath_var=LD_LIBRARY_PATH
  36046. + ;;
  36047. +
  36048. +*)
  36049. + dynamic_linker=no
  36050. + ;;
  36051. +esac
  36052. +AC_MSG_RESULT([$dynamic_linker])
  36053. +test "$dynamic_linker" = no && can_build_shared=no
  36054. +
  36055. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36056. +if test "$GCC" = yes; then
  36057. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36058. +fi
  36059. +
  36060. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36061. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36062. +fi
  36063. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36064. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36065. +fi
  36066. +
  36067. +_LT_DECL([], [variables_saved_for_relink], [1],
  36068. + [Variables whose values should be saved in libtool wrapper scripts and
  36069. + restored at link time])
  36070. +_LT_DECL([], [need_lib_prefix], [0],
  36071. + [Do we need the "lib" prefix for modules?])
  36072. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  36073. +_LT_DECL([], [version_type], [0], [Library versioning type])
  36074. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  36075. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  36076. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  36077. + [Is shlibpath searched before the hard-coded library search path?])
  36078. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  36079. +_LT_DECL([], [library_names_spec], [1],
  36080. + [[List of archive names. First name is the real one, the rest are links.
  36081. + The last name is the one that the linker finds with -lNAME]])
  36082. +_LT_DECL([], [soname_spec], [1],
  36083. + [[The coded name of the library, if different from the real name]])
  36084. +_LT_DECL([], [postinstall_cmds], [2],
  36085. + [Command to use after installation of a shared archive])
  36086. +_LT_DECL([], [postuninstall_cmds], [2],
  36087. + [Command to use after uninstallation of a shared archive])
  36088. +_LT_DECL([], [finish_cmds], [2],
  36089. + [Commands used to finish a libtool library installation in a directory])
  36090. +_LT_DECL([], [finish_eval], [1],
  36091. + [[As "finish_cmds", except a single script fragment to be evaled but
  36092. + not shown]])
  36093. +_LT_DECL([], [hardcode_into_libs], [0],
  36094. + [Whether we should hardcode library paths into libraries])
  36095. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  36096. + [Compile-time system search path for libraries])
  36097. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  36098. + [Run-time system search path for libraries])
  36099. +])# _LT_SYS_DYNAMIC_LINKER
  36100. +
  36101. +
  36102. +# _LT_PATH_TOOL_PREFIX(TOOL)
  36103. +# --------------------------
  36104. +# find a file program which can recognize shared library
  36105. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  36106. +[m4_require([_LT_DECL_EGREP])dnl
  36107. +AC_MSG_CHECKING([for $1])
  36108. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  36109. +[case $MAGIC_CMD in
  36110. +[[\\/*] | ?:[\\/]*])
  36111. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  36112. + ;;
  36113. +*)
  36114. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  36115. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36116. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  36117. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  36118. +dnl not every word. This closes a longstanding sh security hole.
  36119. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  36120. + for ac_dir in $ac_dummy; do
  36121. + IFS="$lt_save_ifs"
  36122. + test -z "$ac_dir" && ac_dir=.
  36123. + if test -f $ac_dir/$1; then
  36124. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  36125. + if test -n "$file_magic_test_file"; then
  36126. + case $deplibs_check_method in
  36127. + "file_magic "*)
  36128. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  36129. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  36130. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  36131. + $EGREP "$file_magic_regex" > /dev/null; then
  36132. + :
  36133. + else
  36134. + cat <<_LT_EOF 1>&2
  36135. +
  36136. +*** Warning: the command libtool uses to detect shared libraries,
  36137. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  36138. +*** The result is that libtool may fail to recognize shared libraries
  36139. +*** as such. This will affect the creation of libtool libraries that
  36140. +*** depend on shared libraries, but programs linked with such libtool
  36141. +*** libraries will work regardless of this problem. Nevertheless, you
  36142. +*** may want to report the problem to your system manager and/or to
  36143. +*** bug-libtool@gnu.org
  36144. +
  36145. +_LT_EOF
  36146. + fi ;;
  36147. + esac
  36148. + fi
  36149. + break
  36150. + fi
  36151. + done
  36152. + IFS="$lt_save_ifs"
  36153. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  36154. + ;;
  36155. +esac])
  36156. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  36157. +if test -n "$MAGIC_CMD"; then
  36158. + AC_MSG_RESULT($MAGIC_CMD)
  36159. +else
  36160. + AC_MSG_RESULT(no)
  36161. +fi
  36162. +_LT_DECL([], [MAGIC_CMD], [0],
  36163. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  36164. +])# _LT_PATH_TOOL_PREFIX
  36165. +
  36166. +# Old name:
  36167. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  36168. +dnl aclocal-1.4 backwards compatibility:
  36169. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  36170. +
  36171. +
  36172. +# _LT_PATH_MAGIC
  36173. +# --------------
  36174. +# find a file program which can recognize a shared library
  36175. +m4_defun([_LT_PATH_MAGIC],
  36176. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  36177. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  36178. + if test -n "$ac_tool_prefix"; then
  36179. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  36180. + else
  36181. + MAGIC_CMD=:
  36182. + fi
  36183. +fi
  36184. +])# _LT_PATH_MAGIC
  36185. +
  36186. +
  36187. +# LT_PATH_LD
  36188. +# ----------
  36189. +# find the pathname to the GNU or non-GNU linker
  36190. +AC_DEFUN([LT_PATH_LD],
  36191. +[AC_REQUIRE([AC_PROG_CC])dnl
  36192. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36193. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  36194. +m4_require([_LT_DECL_SED])dnl
  36195. +m4_require([_LT_DECL_EGREP])dnl
  36196. +
  36197. +AC_ARG_WITH([gnu-ld],
  36198. + [AS_HELP_STRING([--with-gnu-ld],
  36199. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  36200. + [test "$withval" = no || with_gnu_ld=yes],
  36201. + [with_gnu_ld=no])dnl
  36202. +
  36203. +ac_prog=ld
  36204. +if test "$GCC" = yes; then
  36205. + # Check if gcc -print-prog-name=ld gives a path.
  36206. + AC_MSG_CHECKING([for ld used by $CC])
  36207. + case $host in
  36208. + *-*-mingw*)
  36209. + # gcc leaves a trailing carriage return which upsets mingw
  36210. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  36211. + *)
  36212. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  36213. + esac
  36214. + case $ac_prog in
  36215. + # Accept absolute paths.
  36216. + [[\\/]]* | ?:[[\\/]]*)
  36217. + re_direlt='/[[^/]][[^/]]*/\.\./'
  36218. + # Canonicalize the pathname of ld
  36219. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  36220. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  36221. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  36222. + done
  36223. + test -z "$LD" && LD="$ac_prog"
  36224. + ;;
  36225. + "")
  36226. + # If it fails, then pretend we aren't using GCC.
  36227. + ac_prog=ld
  36228. + ;;
  36229. + *)
  36230. + # If it is relative, then search for the first ld in PATH.
  36231. + with_gnu_ld=unknown
  36232. + ;;
  36233. + esac
  36234. +elif test "$with_gnu_ld" = yes; then
  36235. + AC_MSG_CHECKING([for GNU ld])
  36236. +else
  36237. + AC_MSG_CHECKING([for non-GNU ld])
  36238. +fi
  36239. +AC_CACHE_VAL(lt_cv_path_LD,
  36240. +[if test -z "$LD"; then
  36241. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36242. + for ac_dir in $PATH; do
  36243. + IFS="$lt_save_ifs"
  36244. + test -z "$ac_dir" && ac_dir=.
  36245. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  36246. + lt_cv_path_LD="$ac_dir/$ac_prog"
  36247. + # Check to see if the program is GNU ld. I'd rather use --version,
  36248. + # but apparently some variants of GNU ld only accept -v.
  36249. + # Break only if it was the GNU/non-GNU ld that we prefer.
  36250. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  36251. + *GNU* | *'with BFD'*)
  36252. + test "$with_gnu_ld" != no && break
  36253. + ;;
  36254. + *)
  36255. + test "$with_gnu_ld" != yes && break
  36256. + ;;
  36257. + esac
  36258. + fi
  36259. + done
  36260. + IFS="$lt_save_ifs"
  36261. +else
  36262. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  36263. +fi])
  36264. +LD="$lt_cv_path_LD"
  36265. +if test -n "$LD"; then
  36266. + AC_MSG_RESULT($LD)
  36267. +else
  36268. + AC_MSG_RESULT(no)
  36269. +fi
  36270. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  36271. +_LT_PATH_LD_GNU
  36272. +AC_SUBST([LD])
  36273. +
  36274. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  36275. +])# LT_PATH_LD
  36276. +
  36277. +# Old names:
  36278. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  36279. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  36280. +dnl aclocal-1.4 backwards compatibility:
  36281. +dnl AC_DEFUN([AM_PROG_LD], [])
  36282. +dnl AC_DEFUN([AC_PROG_LD], [])
  36283. +
  36284. +
  36285. +# _LT_PATH_LD_GNU
  36286. +#- --------------
  36287. +m4_defun([_LT_PATH_LD_GNU],
  36288. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  36289. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  36290. +case `$LD -v 2>&1 </dev/null` in
  36291. +*GNU* | *'with BFD'*)
  36292. + lt_cv_prog_gnu_ld=yes
  36293. + ;;
  36294. +*)
  36295. + lt_cv_prog_gnu_ld=no
  36296. + ;;
  36297. +esac])
  36298. +with_gnu_ld=$lt_cv_prog_gnu_ld
  36299. +])# _LT_PATH_LD_GNU
  36300. +
  36301. +
  36302. +# _LT_CMD_RELOAD
  36303. +# --------------
  36304. +# find reload flag for linker
  36305. +# -- PORTME Some linkers may need a different reload flag.
  36306. +m4_defun([_LT_CMD_RELOAD],
  36307. +[AC_CACHE_CHECK([for $LD option to reload object files],
  36308. + lt_cv_ld_reload_flag,
  36309. + [lt_cv_ld_reload_flag='-r'])
  36310. +reload_flag=$lt_cv_ld_reload_flag
  36311. +case $reload_flag in
  36312. +"" | " "*) ;;
  36313. +*) reload_flag=" $reload_flag" ;;
  36314. +esac
  36315. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  36316. +case $host_os in
  36317. + darwin*)
  36318. + if test "$GCC" = yes; then
  36319. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  36320. + else
  36321. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  36322. + fi
  36323. + ;;
  36324. +esac
  36325. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  36326. +_LT_DECL([], [reload_cmds], [2])dnl
  36327. +])# _LT_CMD_RELOAD
  36328. +
  36329. +
  36330. +# _LT_CHECK_MAGIC_METHOD
  36331. +# ----------------------
  36332. +# how to check for library dependencies
  36333. +# -- PORTME fill in with the dynamic library characteristics
  36334. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  36335. +[m4_require([_LT_DECL_EGREP])
  36336. +m4_require([_LT_DECL_OBJDUMP])
  36337. +AC_CACHE_CHECK([how to recognize dependent libraries],
  36338. +lt_cv_deplibs_check_method,
  36339. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  36340. +lt_cv_file_magic_test_file=
  36341. +lt_cv_deplibs_check_method='unknown'
  36342. +# Need to set the preceding variable on all platforms that support
  36343. +# interlibrary dependencies.
  36344. +# 'none' -- dependencies not supported.
  36345. +# `unknown' -- same as none, but documents that we really don't know.
  36346. +# 'pass_all' -- all dependencies passed with no checks.
  36347. +# 'test_compile' -- check by making test program.
  36348. +# 'file_magic [[regex]]' -- check by looking for files in library path
  36349. +# which responds to the $file_magic_cmd with a given extended regex.
  36350. +# If you have `file' or equivalent on your system and you're not sure
  36351. +# whether `pass_all' will *always* work, you probably want this one.
  36352. +
  36353. +case $host_os in
  36354. +aix[[4-9]]*)
  36355. + lt_cv_deplibs_check_method=pass_all
  36356. + ;;
  36357. +
  36358. +beos*)
  36359. + lt_cv_deplibs_check_method=pass_all
  36360. + ;;
  36361. +
  36362. +bsdi[[45]]*)
  36363. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  36364. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  36365. + lt_cv_file_magic_test_file=/shlib/libc.so
  36366. + ;;
  36367. +
  36368. +cygwin*)
  36369. + # func_win32_libid is a shell function defined in ltmain.sh
  36370. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  36371. + lt_cv_file_magic_cmd='func_win32_libid'
  36372. + ;;
  36373. +
  36374. +mingw* | pw32*)
  36375. + # Base MSYS/MinGW do not provide the 'file' command needed by
  36376. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  36377. + # unless we find 'file', for example because we are cross-compiling.
  36378. + if ( file / ) >/dev/null 2>&1; then
  36379. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  36380. + lt_cv_file_magic_cmd='func_win32_libid'
  36381. + else
  36382. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  36383. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  36384. + fi
  36385. + ;;
  36386. +
  36387. +cegcc)
  36388. + # use the weaker test based on 'objdump'. See mingw*.
  36389. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  36390. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  36391. + ;;
  36392. +
  36393. +darwin* | rhapsody*)
  36394. + lt_cv_deplibs_check_method=pass_all
  36395. + ;;
  36396. +
  36397. +freebsd* | dragonfly*)
  36398. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  36399. + case $host_cpu in
  36400. + i*86 )
  36401. + # Not sure whether the presence of OpenBSD here was a mistake.
  36402. + # Let's accept both of them until this is cleared up.
  36403. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  36404. + lt_cv_file_magic_cmd=/usr/bin/file
  36405. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  36406. + ;;
  36407. + esac
  36408. + else
  36409. + lt_cv_deplibs_check_method=pass_all
  36410. + fi
  36411. + ;;
  36412. +
  36413. +gnu*)
  36414. + lt_cv_deplibs_check_method=pass_all
  36415. + ;;
  36416. +
  36417. +hpux10.20* | hpux11*)
  36418. + lt_cv_file_magic_cmd=/usr/bin/file
  36419. + case $host_cpu in
  36420. + ia64*)
  36421. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  36422. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  36423. + ;;
  36424. + hppa*64*)
  36425. + [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]']
  36426. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  36427. + ;;
  36428. + *)
  36429. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  36430. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  36431. + ;;
  36432. + esac
  36433. + ;;
  36434. +
  36435. +interix[[3-9]]*)
  36436. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  36437. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  36438. + ;;
  36439. +
  36440. +irix5* | irix6* | nonstopux*)
  36441. + case $LD in
  36442. + *-32|*"-32 ") libmagic=32-bit;;
  36443. + *-n32|*"-n32 ") libmagic=N32;;
  36444. + *-64|*"-64 ") libmagic=64-bit;;
  36445. + *) libmagic=never-match;;
  36446. + esac
  36447. + lt_cv_deplibs_check_method=pass_all
  36448. + ;;
  36449. +
  36450. +# This must be Linux ELF.
  36451. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36452. + lt_cv_deplibs_check_method=pass_all
  36453. + ;;
  36454. +
  36455. +netbsd* | netbsdelf*-gnu)
  36456. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  36457. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  36458. + else
  36459. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  36460. + fi
  36461. + ;;
  36462. +
  36463. +newos6*)
  36464. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  36465. + lt_cv_file_magic_cmd=/usr/bin/file
  36466. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  36467. + ;;
  36468. +
  36469. +*nto* | *qnx*)
  36470. + lt_cv_deplibs_check_method=pass_all
  36471. + ;;
  36472. +
  36473. +openbsd*)
  36474. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36475. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  36476. + else
  36477. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  36478. + fi
  36479. + ;;
  36480. +
  36481. +osf3* | osf4* | osf5*)
  36482. + lt_cv_deplibs_check_method=pass_all
  36483. + ;;
  36484. +
  36485. +rdos*)
  36486. + lt_cv_deplibs_check_method=pass_all
  36487. + ;;
  36488. +
  36489. +solaris*)
  36490. + lt_cv_deplibs_check_method=pass_all
  36491. + ;;
  36492. +
  36493. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36494. + lt_cv_deplibs_check_method=pass_all
  36495. + ;;
  36496. +
  36497. +sysv4 | sysv4.3*)
  36498. + case $host_vendor in
  36499. + motorola)
  36500. + 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]]'
  36501. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  36502. + ;;
  36503. + ncr)
  36504. + lt_cv_deplibs_check_method=pass_all
  36505. + ;;
  36506. + sequent)
  36507. + lt_cv_file_magic_cmd='/bin/file'
  36508. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  36509. + ;;
  36510. + sni)
  36511. + lt_cv_file_magic_cmd='/bin/file'
  36512. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  36513. + lt_cv_file_magic_test_file=/lib/libc.so
  36514. + ;;
  36515. + siemens)
  36516. + lt_cv_deplibs_check_method=pass_all
  36517. + ;;
  36518. + pc)
  36519. + lt_cv_deplibs_check_method=pass_all
  36520. + ;;
  36521. + esac
  36522. + ;;
  36523. +
  36524. +tpf*)
  36525. + lt_cv_deplibs_check_method=pass_all
  36526. + ;;
  36527. +esac
  36528. +])
  36529. +file_magic_cmd=$lt_cv_file_magic_cmd
  36530. +deplibs_check_method=$lt_cv_deplibs_check_method
  36531. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  36532. +
  36533. +_LT_DECL([], [deplibs_check_method], [1],
  36534. + [Method to check whether dependent libraries are shared objects])
  36535. +_LT_DECL([], [file_magic_cmd], [1],
  36536. + [Command to use when deplibs_check_method == "file_magic"])
  36537. +])# _LT_CHECK_MAGIC_METHOD
  36538. +
  36539. +
  36540. +# LT_PATH_NM
  36541. +# ----------
  36542. +# find the pathname to a BSD- or MS-compatible name lister
  36543. +AC_DEFUN([LT_PATH_NM],
  36544. +[AC_REQUIRE([AC_PROG_CC])dnl
  36545. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  36546. +[if test -n "$NM"; then
  36547. + # Let the user override the test.
  36548. + lt_cv_path_NM="$NM"
  36549. +else
  36550. + lt_nm_to_check="${ac_tool_prefix}nm"
  36551. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  36552. + lt_nm_to_check="$lt_nm_to_check nm"
  36553. + fi
  36554. + for lt_tmp_nm in $lt_nm_to_check; do
  36555. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36556. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  36557. + IFS="$lt_save_ifs"
  36558. + test -z "$ac_dir" && ac_dir=.
  36559. + tmp_nm="$ac_dir/$lt_tmp_nm"
  36560. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  36561. + # Check to see if the nm accepts a BSD-compat flag.
  36562. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  36563. + # nm: unknown option "B" ignored
  36564. + # Tru64's nm complains that /dev/null is an invalid object file
  36565. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  36566. + */dev/null* | *'Invalid file or object type'*)
  36567. + lt_cv_path_NM="$tmp_nm -B"
  36568. + break
  36569. + ;;
  36570. + *)
  36571. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  36572. + */dev/null*)
  36573. + lt_cv_path_NM="$tmp_nm -p"
  36574. + break
  36575. + ;;
  36576. + *)
  36577. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  36578. + continue # so that we can try to find one that supports BSD flags
  36579. + ;;
  36580. + esac
  36581. + ;;
  36582. + esac
  36583. + fi
  36584. + done
  36585. + IFS="$lt_save_ifs"
  36586. + done
  36587. + : ${lt_cv_path_NM=no}
  36588. +fi])
  36589. +if test "$lt_cv_path_NM" != "no"; then
  36590. + NM="$lt_cv_path_NM"
  36591. +else
  36592. + # Didn't find any BSD compatible name lister, look for dumpbin.
  36593. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  36594. + AC_SUBST([DUMPBIN])
  36595. + if test "$DUMPBIN" != ":"; then
  36596. + NM="$DUMPBIN"
  36597. + fi
  36598. +fi
  36599. +test -z "$NM" && NM=nm
  36600. +AC_SUBST([NM])
  36601. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  36602. +
  36603. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  36604. + [lt_cv_nm_interface="BSD nm"
  36605. + echo "int some_variable = 0;" > conftest.$ac_ext
  36606. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  36607. + (eval "$ac_compile" 2>conftest.err)
  36608. + cat conftest.err >&AS_MESSAGE_LOG_FD
  36609. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  36610. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  36611. + cat conftest.err >&AS_MESSAGE_LOG_FD
  36612. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  36613. + cat conftest.out >&AS_MESSAGE_LOG_FD
  36614. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  36615. + lt_cv_nm_interface="MS dumpbin"
  36616. + fi
  36617. + rm -f conftest*])
  36618. +])# LT_PATH_NM
  36619. +
  36620. +# Old names:
  36621. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  36622. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  36623. +dnl aclocal-1.4 backwards compatibility:
  36624. +dnl AC_DEFUN([AM_PROG_NM], [])
  36625. +dnl AC_DEFUN([AC_PROG_NM], [])
  36626. +
  36627. +
  36628. +# LT_LIB_M
  36629. +# --------
  36630. +# check for math library
  36631. +AC_DEFUN([LT_LIB_M],
  36632. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36633. +LIBM=
  36634. +case $host in
  36635. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  36636. + # These system don't have libm, or don't need it
  36637. + ;;
  36638. +*-ncr-sysv4.3*)
  36639. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  36640. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  36641. + ;;
  36642. +*)
  36643. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  36644. + ;;
  36645. +esac
  36646. +AC_SUBST([LIBM])
  36647. +])# LT_LIB_M
  36648. +
  36649. +# Old name:
  36650. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  36651. +dnl aclocal-1.4 backwards compatibility:
  36652. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  36653. +
  36654. +
  36655. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  36656. +# -------------------------------
  36657. +m4_defun([_LT_COMPILER_NO_RTTI],
  36658. +[m4_require([_LT_TAG_COMPILER])dnl
  36659. +
  36660. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  36661. +
  36662. +if test "$GCC" = yes; then
  36663. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  36664. +
  36665. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  36666. + lt_cv_prog_compiler_rtti_exceptions,
  36667. + [-fno-rtti -fno-exceptions], [],
  36668. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  36669. +fi
  36670. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  36671. + [Compiler flag to turn off builtin functions])
  36672. +])# _LT_COMPILER_NO_RTTI
  36673. +
  36674. +
  36675. +# _LT_CMD_GLOBAL_SYMBOLS
  36676. +# ----------------------
  36677. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  36678. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36679. +AC_REQUIRE([AC_PROG_CC])dnl
  36680. +AC_REQUIRE([LT_PATH_NM])dnl
  36681. +AC_REQUIRE([LT_PATH_LD])dnl
  36682. +m4_require([_LT_DECL_SED])dnl
  36683. +m4_require([_LT_DECL_EGREP])dnl
  36684. +m4_require([_LT_TAG_COMPILER])dnl
  36685. +
  36686. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  36687. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  36688. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  36689. +[
  36690. +# These are sane defaults that work on at least a few old systems.
  36691. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  36692. +
  36693. +# Character class describing NM global symbol codes.
  36694. +symcode='[[BCDEGRST]]'
  36695. +
  36696. +# Regexp to match symbols that can be accessed directly from C.
  36697. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  36698. +
  36699. +# Define system-specific variables.
  36700. +case $host_os in
  36701. +aix*)
  36702. + symcode='[[BCDT]]'
  36703. + ;;
  36704. +cygwin* | mingw* | pw32* | cegcc*)
  36705. + symcode='[[ABCDGISTW]]'
  36706. + ;;
  36707. +hpux*)
  36708. + if test "$host_cpu" = ia64; then
  36709. + symcode='[[ABCDEGRST]]'
  36710. + fi
  36711. + ;;
  36712. +irix* | nonstopux*)
  36713. + symcode='[[BCDEGRST]]'
  36714. + ;;
  36715. +osf*)
  36716. + symcode='[[BCDEGQRST]]'
  36717. + ;;
  36718. +solaris*)
  36719. + symcode='[[BDRT]]'
  36720. + ;;
  36721. +sco3.2v5*)
  36722. + symcode='[[DT]]'
  36723. + ;;
  36724. +sysv4.2uw2*)
  36725. + symcode='[[DT]]'
  36726. + ;;
  36727. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  36728. + symcode='[[ABDT]]'
  36729. + ;;
  36730. +sysv4)
  36731. + symcode='[[DFNSTU]]'
  36732. + ;;
  36733. +esac
  36734. +
  36735. +# If we're using GNU nm, then use its standard symbol codes.
  36736. +case `$NM -V 2>&1` in
  36737. +*GNU* | *'with BFD'*)
  36738. + symcode='[[ABCDGIRSTW]]' ;;
  36739. +esac
  36740. +
  36741. +# Transform an extracted symbol line into a proper C declaration.
  36742. +# Some systems (esp. on ia64) link data and code symbols differently,
  36743. +# so use this general approach.
  36744. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  36745. +
  36746. +# Transform an extracted symbol line into symbol name and symbol address
  36747. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  36748. +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'"
  36749. +
  36750. +# Handle CRLF in mingw tool chain
  36751. +opt_cr=
  36752. +case $build_os in
  36753. +mingw*)
  36754. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  36755. + ;;
  36756. +esac
  36757. +
  36758. +# Try without a prefix underscore, then with it.
  36759. +for ac_symprfx in "" "_"; do
  36760. +
  36761. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  36762. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  36763. +
  36764. + # Write the raw and C identifiers.
  36765. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  36766. + # Fake it for dumpbin and say T for any non-static function
  36767. + # and D for any global variable.
  36768. + # Also find C++ and __fastcall symbols from MSVC++,
  36769. + # which start with @ or ?.
  36770. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  36771. +" {last_section=section; section=\$ 3};"\
  36772. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  36773. +" \$ 0!~/External *\|/{next};"\
  36774. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  36775. +" {if(hide[section]) next};"\
  36776. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  36777. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  36778. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  36779. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  36780. +" ' prfx=^$ac_symprfx]"
  36781. + else
  36782. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  36783. + fi
  36784. +
  36785. + # Check to see that the pipe works correctly.
  36786. + pipe_works=no
  36787. +
  36788. + rm -f conftest*
  36789. + cat > conftest.$ac_ext <<_LT_EOF
  36790. +#ifdef __cplusplus
  36791. +extern "C" {
  36792. +#endif
  36793. +char nm_test_var;
  36794. +void nm_test_func(void);
  36795. +void nm_test_func(void){}
  36796. +#ifdef __cplusplus
  36797. +}
  36798. +#endif
  36799. +int main(){nm_test_var='a';nm_test_func();return(0);}
  36800. +_LT_EOF
  36801. +
  36802. + if AC_TRY_EVAL(ac_compile); then
  36803. + # Now try to grab the symbols.
  36804. + nlist=conftest.nm
  36805. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  36806. + # Try sorting and uniquifying the output.
  36807. + if sort "$nlist" | uniq > "$nlist"T; then
  36808. + mv -f "$nlist"T "$nlist"
  36809. + else
  36810. + rm -f "$nlist"T
  36811. + fi
  36812. +
  36813. + # Make sure that we snagged all the symbols we need.
  36814. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  36815. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  36816. + cat <<_LT_EOF > conftest.$ac_ext
  36817. +#ifdef __cplusplus
  36818. +extern "C" {
  36819. +#endif
  36820. +
  36821. +_LT_EOF
  36822. + # Now generate the symbol file.
  36823. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  36824. +
  36825. + cat <<_LT_EOF >> conftest.$ac_ext
  36826. +
  36827. +/* The mapping between symbol names and symbols. */
  36828. +const struct {
  36829. + const char *name;
  36830. + void *address;
  36831. +}
  36832. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  36833. +{
  36834. + { "@PROGRAM@", (void *) 0 },
  36835. +_LT_EOF
  36836. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  36837. + cat <<\_LT_EOF >> conftest.$ac_ext
  36838. + {0, (void *) 0}
  36839. +};
  36840. +
  36841. +/* This works around a problem in FreeBSD linker */
  36842. +#ifdef FREEBSD_WORKAROUND
  36843. +static const void *lt_preloaded_setup() {
  36844. + return lt__PROGRAM__LTX_preloaded_symbols;
  36845. +}
  36846. +#endif
  36847. +
  36848. +#ifdef __cplusplus
  36849. +}
  36850. +#endif
  36851. +_LT_EOF
  36852. + # Now try linking the two files.
  36853. + mv conftest.$ac_objext conftstm.$ac_objext
  36854. + lt_save_LIBS="$LIBS"
  36855. + lt_save_CFLAGS="$CFLAGS"
  36856. + LIBS="conftstm.$ac_objext"
  36857. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  36858. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  36859. + pipe_works=yes
  36860. + fi
  36861. + LIBS="$lt_save_LIBS"
  36862. + CFLAGS="$lt_save_CFLAGS"
  36863. + else
  36864. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  36865. + fi
  36866. + else
  36867. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  36868. + fi
  36869. + else
  36870. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  36871. + fi
  36872. + else
  36873. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  36874. + cat conftest.$ac_ext >&5
  36875. + fi
  36876. + rm -rf conftest* conftst*
  36877. +
  36878. + # Do not use the global_symbol_pipe unless it works.
  36879. + if test "$pipe_works" = yes; then
  36880. + break
  36881. + else
  36882. + lt_cv_sys_global_symbol_pipe=
  36883. + fi
  36884. +done
  36885. +])
  36886. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  36887. + lt_cv_sys_global_symbol_to_cdecl=
  36888. +fi
  36889. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  36890. + AC_MSG_RESULT(failed)
  36891. +else
  36892. + AC_MSG_RESULT(ok)
  36893. +fi
  36894. +
  36895. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  36896. + [Take the output of nm and produce a listing of raw symbols and C names])
  36897. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  36898. + [Transform the output of nm in a proper C declaration])
  36899. +_LT_DECL([global_symbol_to_c_name_address],
  36900. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  36901. + [Transform the output of nm in a C name address pair])
  36902. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  36903. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  36904. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  36905. +]) # _LT_CMD_GLOBAL_SYMBOLS
  36906. +
  36907. +
  36908. +# _LT_COMPILER_PIC([TAGNAME])
  36909. +# ---------------------------
  36910. +m4_defun([_LT_COMPILER_PIC],
  36911. +[m4_require([_LT_TAG_COMPILER])dnl
  36912. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  36913. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  36914. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  36915. +
  36916. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  36917. +m4_if([$1], [CXX], [
  36918. + # C++ specific cases for pic, static, wl, etc.
  36919. + if test "$GXX" = yes; then
  36920. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  36921. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  36922. +
  36923. + case $host_os in
  36924. + aix*)
  36925. + # All AIX code is PIC.
  36926. + if test "$host_cpu" = ia64; then
  36927. + # AIX 5 now supports IA64 processor
  36928. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  36929. + fi
  36930. + ;;
  36931. +
  36932. + amigaos*)
  36933. + case $host_cpu in
  36934. + powerpc)
  36935. + # see comment about AmigaOS4 .so support
  36936. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  36937. + ;;
  36938. + m68k)
  36939. + # FIXME: we need at least 68020 code to build shared libraries, but
  36940. + # adding the `-m68020' flag to GCC prevents building anything better,
  36941. + # like `-m68040'.
  36942. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  36943. + ;;
  36944. + esac
  36945. + ;;
  36946. +
  36947. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  36948. + # PIC is the default for these OSes.
  36949. + ;;
  36950. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  36951. + # This hack is so that the source file can tell whether it is being
  36952. + # built for inclusion in a dll (and should export symbols for example).
  36953. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  36954. + # (--disable-auto-import) libraries
  36955. + m4_if([$1], [GCJ], [],
  36956. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  36957. + ;;
  36958. + darwin* | rhapsody*)
  36959. + # PIC is the default on this platform
  36960. + # Common symbols not allowed in MH_DYLIB files
  36961. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  36962. + ;;
  36963. + *djgpp*)
  36964. + # DJGPP does not support shared libraries at all
  36965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  36966. + ;;
  36967. + interix[[3-9]]*)
  36968. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  36969. + # Instead, we relocate shared libraries at runtime.
  36970. + ;;
  36971. + sysv4*MP*)
  36972. + if test -d /usr/nec; then
  36973. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  36974. + fi
  36975. + ;;
  36976. + hpux*)
  36977. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  36978. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  36979. + # sets the default TLS model and affects inlining.
  36980. + case $host_cpu in
  36981. + hppa*64*)
  36982. + ;;
  36983. + *)
  36984. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  36985. + ;;
  36986. + esac
  36987. + ;;
  36988. + *qnx* | *nto*)
  36989. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  36990. + # it will coredump.
  36991. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  36992. + ;;
  36993. + *)
  36994. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  36995. + ;;
  36996. + esac
  36997. + else
  36998. + case $host_os in
  36999. + aix[[4-9]]*)
  37000. + # All AIX code is PIC.
  37001. + if test "$host_cpu" = ia64; then
  37002. + # AIX 5 now supports IA64 processor
  37003. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37004. + else
  37005. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  37006. + fi
  37007. + ;;
  37008. + chorus*)
  37009. + case $cc_basename in
  37010. + cxch68*)
  37011. + # Green Hills C++ Compiler
  37012. + # _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"
  37013. + ;;
  37014. + esac
  37015. + ;;
  37016. + dgux*)
  37017. + case $cc_basename in
  37018. + ec++*)
  37019. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37020. + ;;
  37021. + ghcx*)
  37022. + # Green Hills C++ Compiler
  37023. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37024. + ;;
  37025. + *)
  37026. + ;;
  37027. + esac
  37028. + ;;
  37029. + freebsd* | dragonfly*)
  37030. + # FreeBSD uses GNU C++
  37031. + ;;
  37032. + hpux9* | hpux10* | hpux11*)
  37033. + case $cc_basename in
  37034. + CC*)
  37035. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37036. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  37037. + if test "$host_cpu" != ia64; then
  37038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  37039. + fi
  37040. + ;;
  37041. + aCC*)
  37042. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37043. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  37044. + case $host_cpu in
  37045. + hppa*64*|ia64*)
  37046. + # +Z the default
  37047. + ;;
  37048. + *)
  37049. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  37050. + ;;
  37051. + esac
  37052. + ;;
  37053. + *)
  37054. + ;;
  37055. + esac
  37056. + ;;
  37057. + interix*)
  37058. + # This is c89, which is MS Visual C++ (no shared libs)
  37059. + # Anyone wants to do a port?
  37060. + ;;
  37061. + irix5* | irix6* | nonstopux*)
  37062. + case $cc_basename in
  37063. + CC*)
  37064. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37065. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37066. + # CC pic flag -KPIC is the default.
  37067. + ;;
  37068. + *)
  37069. + ;;
  37070. + esac
  37071. + ;;
  37072. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37073. + case $cc_basename in
  37074. + KCC*)
  37075. + # KAI C++ Compiler
  37076. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  37077. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37078. + ;;
  37079. + ecpc* )
  37080. + # old Intel C++ for x86_64 which still supported -KPIC.
  37081. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37082. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37083. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37084. + ;;
  37085. + icpc* )
  37086. + # Intel C++, used to be incompatible with GCC.
  37087. + # ICC 10 doesn't accept -KPIC any more.
  37088. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37089. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37090. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37091. + ;;
  37092. + pgCC* | pgcpp*)
  37093. + # Portland Group C++ compiler
  37094. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37095. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  37096. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37097. + ;;
  37098. + cxx*)
  37099. + # Compaq C++
  37100. + # Make sure the PIC flag is empty. It appears that all Alpha
  37101. + # Linux and Compaq Tru64 Unix objects are PIC.
  37102. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37103. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37104. + ;;
  37105. + xlc* | xlC*)
  37106. + # IBM XL 8.0 on PPC
  37107. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37108. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  37109. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  37110. + ;;
  37111. + *)
  37112. + case `$CC -V 2>&1 | sed 5q` in
  37113. + *Sun\ C*)
  37114. + # Sun C++ 5.9
  37115. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37116. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37117. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  37118. + ;;
  37119. + esac
  37120. + ;;
  37121. + esac
  37122. + ;;
  37123. + lynxos*)
  37124. + ;;
  37125. + m88k*)
  37126. + ;;
  37127. + mvs*)
  37128. + case $cc_basename in
  37129. + cxx*)
  37130. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  37131. + ;;
  37132. + *)
  37133. + ;;
  37134. + esac
  37135. + ;;
  37136. + netbsd* | netbsdelf*-gnu)
  37137. + ;;
  37138. + *qnx* | *nto*)
  37139. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  37140. + # it will coredump.
  37141. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  37142. + ;;
  37143. + osf3* | osf4* | osf5*)
  37144. + case $cc_basename in
  37145. + KCC*)
  37146. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  37147. + ;;
  37148. + RCC*)
  37149. + # Rational C++ 2.4.1
  37150. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37151. + ;;
  37152. + cxx*)
  37153. + # Digital/Compaq C++
  37154. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37155. + # Make sure the PIC flag is empty. It appears that all Alpha
  37156. + # Linux and Compaq Tru64 Unix objects are PIC.
  37157. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37158. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37159. + ;;
  37160. + *)
  37161. + ;;
  37162. + esac
  37163. + ;;
  37164. + psos*)
  37165. + ;;
  37166. + solaris*)
  37167. + case $cc_basename in
  37168. + CC*)
  37169. + # Sun C++ 4.2, 5.x and Centerline C++
  37170. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37171. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37172. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  37173. + ;;
  37174. + gcx*)
  37175. + # Green Hills C++ Compiler
  37176. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  37177. + ;;
  37178. + *)
  37179. + ;;
  37180. + esac
  37181. + ;;
  37182. + sunos4*)
  37183. + case $cc_basename in
  37184. + CC*)
  37185. + # Sun C++ 4.x
  37186. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37187. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37188. + ;;
  37189. + lcc*)
  37190. + # Lucid
  37191. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37192. + ;;
  37193. + *)
  37194. + ;;
  37195. + esac
  37196. + ;;
  37197. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  37198. + case $cc_basename in
  37199. + CC*)
  37200. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37201. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37202. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37203. + ;;
  37204. + esac
  37205. + ;;
  37206. + tandem*)
  37207. + case $cc_basename in
  37208. + NCC*)
  37209. + # NonStop-UX NCC 3.20
  37210. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37211. + ;;
  37212. + *)
  37213. + ;;
  37214. + esac
  37215. + ;;
  37216. + vxworks*)
  37217. + ;;
  37218. + *)
  37219. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  37220. + ;;
  37221. + esac
  37222. + fi
  37223. +],
  37224. +[
  37225. + if test "$GCC" = yes; then
  37226. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37227. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37228. +
  37229. + case $host_os in
  37230. + aix*)
  37231. + # All AIX code is PIC.
  37232. + if test "$host_cpu" = ia64; then
  37233. + # AIX 5 now supports IA64 processor
  37234. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37235. + fi
  37236. + ;;
  37237. +
  37238. + amigaos*)
  37239. + case $host_cpu in
  37240. + powerpc)
  37241. + # see comment about AmigaOS4 .so support
  37242. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37243. + ;;
  37244. + m68k)
  37245. + # FIXME: we need at least 68020 code to build shared libraries, but
  37246. + # adding the `-m68020' flag to GCC prevents building anything better,
  37247. + # like `-m68040'.
  37248. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  37249. + ;;
  37250. + esac
  37251. + ;;
  37252. +
  37253. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37254. + # PIC is the default for these OSes.
  37255. + ;;
  37256. +
  37257. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  37258. + # This hack is so that the source file can tell whether it is being
  37259. + # built for inclusion in a dll (and should export symbols for example).
  37260. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  37261. + # (--disable-auto-import) libraries
  37262. + m4_if([$1], [GCJ], [],
  37263. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  37264. + ;;
  37265. +
  37266. + darwin* | rhapsody*)
  37267. + # PIC is the default on this platform
  37268. + # Common symbols not allowed in MH_DYLIB files
  37269. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  37270. + ;;
  37271. +
  37272. + hpux*)
  37273. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  37274. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  37275. + # sets the default TLS model and affects inlining.
  37276. + case $host_cpu in
  37277. + hppa*64*)
  37278. + # +Z the default
  37279. + ;;
  37280. + *)
  37281. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37282. + ;;
  37283. + esac
  37284. + ;;
  37285. +
  37286. + interix[[3-9]]*)
  37287. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37288. + # Instead, we relocate shared libraries at runtime.
  37289. + ;;
  37290. +
  37291. + msdosdjgpp*)
  37292. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  37293. + # on systems that don't support them.
  37294. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  37295. + enable_shared=no
  37296. + ;;
  37297. +
  37298. + *nto* | *qnx*)
  37299. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  37300. + # it will coredump.
  37301. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  37302. + ;;
  37303. +
  37304. + sysv4*MP*)
  37305. + if test -d /usr/nec; then
  37306. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  37307. + fi
  37308. + ;;
  37309. +
  37310. + *)
  37311. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37312. + ;;
  37313. + esac
  37314. + else
  37315. + # PORTME Check for flag to pass linker flags through the system compiler.
  37316. + case $host_os in
  37317. + aix*)
  37318. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37319. + if test "$host_cpu" = ia64; then
  37320. + # AIX 5 now supports IA64 processor
  37321. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37322. + else
  37323. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  37324. + fi
  37325. + ;;
  37326. +
  37327. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  37328. + # This hack is so that the source file can tell whether it is being
  37329. + # built for inclusion in a dll (and should export symbols for example).
  37330. + m4_if([$1], [GCJ], [],
  37331. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  37332. + ;;
  37333. +
  37334. + hpux9* | hpux10* | hpux11*)
  37335. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37336. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37337. + # not for PA HP-UX.
  37338. + case $host_cpu in
  37339. + hppa*64*|ia64*)
  37340. + # +Z the default
  37341. + ;;
  37342. + *)
  37343. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  37344. + ;;
  37345. + esac
  37346. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  37347. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  37348. + ;;
  37349. +
  37350. + irix5* | irix6* | nonstopux*)
  37351. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37352. + # PIC (with -KPIC) is the default.
  37353. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37354. + ;;
  37355. +
  37356. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37357. + case $cc_basename in
  37358. + # old Intel for x86_64 which still supported -KPIC.
  37359. + ecc*)
  37360. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37361. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37362. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37363. + ;;
  37364. + # icc used to be incompatible with GCC.
  37365. + # ICC 10 doesn't accept -KPIC any more.
  37366. + icc* | ifort*)
  37367. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37368. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37369. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37370. + ;;
  37371. + # Lahey Fortran 8.1.
  37372. + lf95*)
  37373. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37374. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  37375. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  37376. + ;;
  37377. + pgcc* | pgf77* | pgf90* | pgf95*)
  37378. + # Portland Group compilers (*not* the Pentium gcc compiler,
  37379. + # which looks to be a dead project)
  37380. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37381. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  37382. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37383. + ;;
  37384. + ccc*)
  37385. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37386. + # All Alpha code is PIC.
  37387. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37388. + ;;
  37389. + xl*)
  37390. + # IBM XL C 8.0/Fortran 10.1 on PPC
  37391. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37392. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  37393. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  37394. + ;;
  37395. + *)
  37396. + case `$CC -V 2>&1 | sed 5q` in
  37397. + *Sun\ C*)
  37398. + # Sun C 5.9
  37399. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37400. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37401. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37402. + ;;
  37403. + *Sun\ F*)
  37404. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  37405. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37406. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37407. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  37408. + ;;
  37409. + esac
  37410. + ;;
  37411. + esac
  37412. + ;;
  37413. +
  37414. + newsos6)
  37415. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37416. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37417. + ;;
  37418. +
  37419. + *nto* | *qnx*)
  37420. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  37421. + # it will coredump.
  37422. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  37423. + ;;
  37424. +
  37425. + osf3* | osf4* | osf5*)
  37426. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37427. + # All OSF/1 code is PIC.
  37428. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37429. + ;;
  37430. +
  37431. + rdos*)
  37432. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37433. + ;;
  37434. +
  37435. + solaris*)
  37436. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37437. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37438. + case $cc_basename in
  37439. + f77* | f90* | f95*)
  37440. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  37441. + *)
  37442. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  37443. + esac
  37444. + ;;
  37445. +
  37446. + sunos4*)
  37447. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  37448. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  37449. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37450. + ;;
  37451. +
  37452. + sysv4 | sysv4.2uw2* | sysv4.3*)
  37453. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37454. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37455. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37456. + ;;
  37457. +
  37458. + sysv4*MP*)
  37459. + if test -d /usr/nec ;then
  37460. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  37461. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37462. + fi
  37463. + ;;
  37464. +
  37465. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  37466. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37467. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37468. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37469. + ;;
  37470. +
  37471. + unicos*)
  37472. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37473. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  37474. + ;;
  37475. +
  37476. + uts4*)
  37477. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37478. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37479. + ;;
  37480. +
  37481. + *)
  37482. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  37483. + ;;
  37484. + esac
  37485. + fi
  37486. +])
  37487. +case $host_os in
  37488. + # For platforms which do not support PIC, -DPIC is meaningless:
  37489. + *djgpp*)
  37490. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37491. + ;;
  37492. + *)
  37493. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  37494. + ;;
  37495. +esac
  37496. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  37497. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  37498. + [How to pass a linker flag through the compiler])
  37499. +
  37500. +#
  37501. +# Check to make sure the PIC flag actually works.
  37502. +#
  37503. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  37504. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  37505. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  37506. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  37507. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  37508. + "" | " "*) ;;
  37509. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  37510. + esac],
  37511. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37512. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  37513. +fi
  37514. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  37515. + [Additional compiler flags for building library objects])
  37516. +
  37517. +#
  37518. +# Check to make sure the static flag actually works.
  37519. +#
  37520. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  37521. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  37522. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  37523. + $lt_tmp_static_flag,
  37524. + [],
  37525. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  37526. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  37527. + [Compiler flag to prevent dynamic linking])
  37528. +])# _LT_COMPILER_PIC
  37529. +
  37530. +
  37531. +# _LT_LINKER_SHLIBS([TAGNAME])
  37532. +# ----------------------------
  37533. +# See if the linker supports building shared libraries.
  37534. +m4_defun([_LT_LINKER_SHLIBS],
  37535. +[AC_REQUIRE([LT_PATH_LD])dnl
  37536. +AC_REQUIRE([LT_PATH_NM])dnl
  37537. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  37538. +m4_require([_LT_DECL_EGREP])dnl
  37539. +m4_require([_LT_DECL_SED])dnl
  37540. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  37541. +m4_require([_LT_TAG_COMPILER])dnl
  37542. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  37543. +m4_if([$1], [CXX], [
  37544. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37545. + case $host_os in
  37546. + aix[[4-9]]*)
  37547. + # If we're using GNU nm, then we don't want the "-C" option.
  37548. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  37549. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  37550. + _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'
  37551. + else
  37552. + _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'
  37553. + fi
  37554. + ;;
  37555. + pw32*)
  37556. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  37557. + ;;
  37558. + cygwin* | mingw* | cegcc*)
  37559. + _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'
  37560. + ;;
  37561. + linux* | k*bsd*-gnu)
  37562. + _LT_TAGVAR(link_all_deplibs, $1)=no
  37563. + ;;
  37564. + *)
  37565. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37566. + ;;
  37567. + esac
  37568. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  37569. +], [
  37570. + runpath_var=
  37571. + _LT_TAGVAR(allow_undefined_flag, $1)=
  37572. + _LT_TAGVAR(always_export_symbols, $1)=no
  37573. + _LT_TAGVAR(archive_cmds, $1)=
  37574. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  37575. + _LT_TAGVAR(compiler_needs_object, $1)=no
  37576. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  37577. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  37578. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37579. + _LT_TAGVAR(hardcode_automatic, $1)=no
  37580. + _LT_TAGVAR(hardcode_direct, $1)=no
  37581. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  37582. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  37583. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  37584. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  37585. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  37586. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  37587. + _LT_TAGVAR(inherit_rpath, $1)=no
  37588. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  37589. + _LT_TAGVAR(module_cmds, $1)=
  37590. + _LT_TAGVAR(module_expsym_cmds, $1)=
  37591. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  37592. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  37593. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  37594. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  37595. + # include_expsyms should be a list of space-separated symbols to be *always*
  37596. + # included in the symbol list
  37597. + _LT_TAGVAR(include_expsyms, $1)=
  37598. + # exclude_expsyms can be an extended regexp of symbols to exclude
  37599. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  37600. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  37601. + # as well as any symbol that contains `d'.
  37602. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  37603. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  37604. + # platforms (ab)use it in PIC code, but their linkers get confused if
  37605. + # the symbol is explicitly referenced. Since portable code cannot
  37606. + # rely on this symbol name, it's probably fine to never include it in
  37607. + # preloaded symbol tables.
  37608. + # Exclude shared library initialization/finalization symbols.
  37609. +dnl Note also adjust exclude_expsyms for C++ above.
  37610. + extract_expsyms_cmds=
  37611. +
  37612. + case $host_os in
  37613. + cygwin* | mingw* | pw32* | cegcc*)
  37614. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  37615. + # When not using gcc, we currently assume that we are using
  37616. + # Microsoft Visual C++.
  37617. + if test "$GCC" != yes; then
  37618. + with_gnu_ld=no
  37619. + fi
  37620. + ;;
  37621. + interix*)
  37622. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  37623. + with_gnu_ld=yes
  37624. + ;;
  37625. + openbsd*)
  37626. + with_gnu_ld=no
  37627. + ;;
  37628. + linux* | k*bsd*-gnu)
  37629. + _LT_TAGVAR(link_all_deplibs, $1)=no
  37630. + ;;
  37631. + esac
  37632. +
  37633. + _LT_TAGVAR(ld_shlibs, $1)=yes
  37634. + if test "$with_gnu_ld" = yes; then
  37635. + # If archive_cmds runs LD, not CC, wlarc should be empty
  37636. + wlarc='${wl}'
  37637. +
  37638. + # Set some defaults for GNU ld with shared library support. These
  37639. + # are reset later if shared libraries are not supported. Putting them
  37640. + # here allows them to be overridden if necessary.
  37641. + runpath_var=LD_RUN_PATH
  37642. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  37643. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  37644. + # ancient GNU ld didn't support --whole-archive et. al.
  37645. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  37646. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  37647. + else
  37648. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  37649. + fi
  37650. + supports_anon_versioning=no
  37651. + case `$LD -v 2>&1` in
  37652. + *GNU\ gold*) supports_anon_versioning=yes ;;
  37653. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  37654. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  37655. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  37656. + *\ 2.11.*) ;; # other 2.11 versions
  37657. + *) supports_anon_versioning=yes ;;
  37658. + esac
  37659. +
  37660. + # See if GNU ld supports shared libraries.
  37661. + case $host_os in
  37662. + aix[[3-9]]*)
  37663. + # On AIX/PPC, the GNU linker is very broken
  37664. + if test "$host_cpu" != ia64; then
  37665. + _LT_TAGVAR(ld_shlibs, $1)=no
  37666. + cat <<_LT_EOF 1>&2
  37667. +
  37668. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  37669. +*** to be unable to reliably create shared libraries on AIX.
  37670. +*** Therefore, libtool is disabling shared libraries support. If you
  37671. +*** really care for shared libraries, you may want to modify your PATH
  37672. +*** so that a non-GNU linker is found, and then restart.
  37673. +
  37674. +_LT_EOF
  37675. + fi
  37676. + ;;
  37677. +
  37678. + amigaos*)
  37679. + case $host_cpu in
  37680. + powerpc)
  37681. + # see comment about AmigaOS4 .so support
  37682. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37683. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  37684. + ;;
  37685. + m68k)
  37686. + _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)'
  37687. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  37688. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  37689. + ;;
  37690. + esac
  37691. + ;;
  37692. +
  37693. + beos*)
  37694. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  37695. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  37696. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  37697. + # support --undefined. This deserves some investigation. FIXME
  37698. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37699. + else
  37700. + _LT_TAGVAR(ld_shlibs, $1)=no
  37701. + fi
  37702. + ;;
  37703. +
  37704. + cygwin* | mingw* | pw32* | cegcc*)
  37705. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  37706. + # as there is no search path for DLLs.
  37707. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  37708. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  37709. + _LT_TAGVAR(always_export_symbols, $1)=no
  37710. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  37711. + _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'
  37712. +
  37713. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  37714. + _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'
  37715. + # If the export-symbols file already is a .def file (1st line
  37716. + # is EXPORTS), use it as is; otherwise, prepend...
  37717. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  37718. + cp $export_symbols $output_objdir/$soname.def;
  37719. + else
  37720. + echo EXPORTS > $output_objdir/$soname.def;
  37721. + cat $export_symbols >> $output_objdir/$soname.def;
  37722. + fi~
  37723. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  37724. + else
  37725. + _LT_TAGVAR(ld_shlibs, $1)=no
  37726. + fi
  37727. + ;;
  37728. +
  37729. + interix[[3-9]]*)
  37730. + _LT_TAGVAR(hardcode_direct, $1)=no
  37731. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  37732. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  37733. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  37734. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  37735. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  37736. + # default) and relocated if they conflict, which is a slow very memory
  37737. + # consuming and fragmenting process. To avoid this, we pick a random,
  37738. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  37739. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  37740. + _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'
  37741. + _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'
  37742. + ;;
  37743. +
  37744. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  37745. + tmp_diet=no
  37746. + if test "$host_os" = linux-dietlibc; then
  37747. + case $cc_basename in
  37748. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  37749. + esac
  37750. + fi
  37751. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  37752. + && test "$tmp_diet" = no
  37753. + then
  37754. + tmp_addflag=
  37755. + tmp_sharedflag='-shared'
  37756. + case $cc_basename,$host_cpu in
  37757. + pgcc*) # Portland Group C compiler
  37758. + _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'
  37759. + tmp_addflag=' $pic_flag'
  37760. + ;;
  37761. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  37762. + _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'
  37763. + tmp_addflag=' $pic_flag -Mnomain' ;;
  37764. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  37765. + tmp_addflag=' -i_dynamic' ;;
  37766. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  37767. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  37768. + ifc* | ifort*) # Intel Fortran compiler
  37769. + tmp_addflag=' -nofor_main' ;;
  37770. + lf95*) # Lahey Fortran 8.1
  37771. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  37772. + tmp_sharedflag='--shared' ;;
  37773. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  37774. + tmp_sharedflag='-qmkshrobj'
  37775. + tmp_addflag= ;;
  37776. + esac
  37777. + case `$CC -V 2>&1 | sed 5q` in
  37778. + *Sun\ C*) # Sun C 5.9
  37779. + _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'
  37780. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  37781. + tmp_sharedflag='-G' ;;
  37782. + *Sun\ F*) # Sun Fortran 8.3
  37783. + tmp_sharedflag='-G' ;;
  37784. + esac
  37785. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37786. +
  37787. + if test "x$supports_anon_versioning" = xyes; then
  37788. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  37789. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  37790. + echo "local: *; };" >> $output_objdir/$libname.ver~
  37791. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  37792. + fi
  37793. +
  37794. + case $cc_basename in
  37795. + xlf*)
  37796. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  37797. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  37798. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  37799. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  37800. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  37801. + if test "x$supports_anon_versioning" = xyes; then
  37802. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  37803. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  37804. + echo "local: *; };" >> $output_objdir/$libname.ver~
  37805. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  37806. + fi
  37807. + ;;
  37808. + esac
  37809. + else
  37810. + _LT_TAGVAR(ld_shlibs, $1)=no
  37811. + fi
  37812. + ;;
  37813. +
  37814. + netbsd* | netbsdelf*-gnu)
  37815. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  37816. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  37817. + wlarc=
  37818. + else
  37819. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37820. + _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'
  37821. + fi
  37822. + ;;
  37823. +
  37824. + solaris*)
  37825. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  37826. + _LT_TAGVAR(ld_shlibs, $1)=no
  37827. + cat <<_LT_EOF 1>&2
  37828. +
  37829. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  37830. +*** create shared libraries on Solaris systems. Therefore, libtool
  37831. +*** is disabling shared libraries support. We urge you to upgrade GNU
  37832. +*** binutils to release 2.9.1 or newer. Another option is to modify
  37833. +*** your PATH or compiler configuration so that the native linker is
  37834. +*** used, and then restart.
  37835. +
  37836. +_LT_EOF
  37837. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  37838. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37839. + _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'
  37840. + else
  37841. + _LT_TAGVAR(ld_shlibs, $1)=no
  37842. + fi
  37843. + ;;
  37844. +
  37845. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  37846. + case `$LD -v 2>&1` in
  37847. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  37848. + _LT_TAGVAR(ld_shlibs, $1)=no
  37849. + cat <<_LT_EOF 1>&2
  37850. +
  37851. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  37852. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  37853. +*** is disabling shared libraries support. We urge you to upgrade GNU
  37854. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  37855. +*** your PATH or compiler configuration so that the native linker is
  37856. +*** used, and then restart.
  37857. +
  37858. +_LT_EOF
  37859. + ;;
  37860. + *)
  37861. + # For security reasons, it is highly recommended that you always
  37862. + # use absolute paths for naming shared libraries, and exclude the
  37863. + # DT_RUNPATH tag from executables and libraries. But doing so
  37864. + # requires that you compile everything twice, which is a pain.
  37865. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  37866. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  37867. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37868. + _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'
  37869. + else
  37870. + _LT_TAGVAR(ld_shlibs, $1)=no
  37871. + fi
  37872. + ;;
  37873. + esac
  37874. + ;;
  37875. +
  37876. + sunos4*)
  37877. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37878. + wlarc=
  37879. + _LT_TAGVAR(hardcode_direct, $1)=yes
  37880. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  37881. + ;;
  37882. +
  37883. + *)
  37884. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  37885. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37886. + _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'
  37887. + else
  37888. + _LT_TAGVAR(ld_shlibs, $1)=no
  37889. + fi
  37890. + ;;
  37891. + esac
  37892. +
  37893. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  37894. + runpath_var=
  37895. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  37896. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  37897. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  37898. + fi
  37899. + else
  37900. + # PORTME fill in a description of your system's linker (not GNU ld)
  37901. + case $host_os in
  37902. + aix3*)
  37903. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  37904. + _LT_TAGVAR(always_export_symbols, $1)=yes
  37905. + _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'
  37906. + # Note: this linker hardcodes the directories in LIBPATH if there
  37907. + # are no directories specified by -L.
  37908. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  37909. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  37910. + # Neither direct hardcoding nor static linking is supported with a
  37911. + # broken collect2.
  37912. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  37913. + fi
  37914. + ;;
  37915. +
  37916. + aix[[4-9]]*)
  37917. + if test "$host_cpu" = ia64; then
  37918. + # On IA64, the linker does run time linking by default, so we don't
  37919. + # have to do anything special.
  37920. + aix_use_runtimelinking=no
  37921. + exp_sym_flag='-Bexport'
  37922. + no_entry_flag=""
  37923. + else
  37924. + # If we're using GNU nm, then we don't want the "-C" option.
  37925. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  37926. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  37927. + _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'
  37928. + else
  37929. + _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'
  37930. + fi
  37931. + aix_use_runtimelinking=no
  37932. +
  37933. + # Test if we are trying to use run time linking or normal
  37934. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  37935. + # need to do runtime linking.
  37936. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  37937. + for ld_flag in $LDFLAGS; do
  37938. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  37939. + aix_use_runtimelinking=yes
  37940. + break
  37941. + fi
  37942. + done
  37943. + ;;
  37944. + esac
  37945. +
  37946. + exp_sym_flag='-bexport'
  37947. + no_entry_flag='-bnoentry'
  37948. + fi
  37949. +
  37950. + # When large executables or shared objects are built, AIX ld can
  37951. + # have problems creating the table of contents. If linking a library
  37952. + # or program results in "error TOC overflow" add -mminimal-toc to
  37953. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  37954. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  37955. +
  37956. + _LT_TAGVAR(archive_cmds, $1)=''
  37957. + _LT_TAGVAR(hardcode_direct, $1)=yes
  37958. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  37959. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  37960. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  37961. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  37962. +
  37963. + if test "$GCC" = yes; then
  37964. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  37965. + # We only want to do this on AIX 4.2 and lower, the check
  37966. + # below for broken collect2 doesn't work under 4.3+
  37967. + collect2name=`${CC} -print-prog-name=collect2`
  37968. + if test -f "$collect2name" &&
  37969. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  37970. + then
  37971. + # We have reworked collect2
  37972. + :
  37973. + else
  37974. + # We have old collect2
  37975. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  37976. + # It fails to find uninstalled libraries when the uninstalled
  37977. + # path is not listed in the libpath. Setting hardcode_minus_L
  37978. + # to unsupported forces relinking
  37979. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  37980. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  37981. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  37982. + fi
  37983. + ;;
  37984. + esac
  37985. + shared_flag='-shared'
  37986. + if test "$aix_use_runtimelinking" = yes; then
  37987. + shared_flag="$shared_flag "'${wl}-G'
  37988. + fi
  37989. + _LT_TAGVAR(link_all_deplibs, $1)=no
  37990. + else
  37991. + # not using gcc
  37992. + if test "$host_cpu" = ia64; then
  37993. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  37994. + # chokes on -Wl,-G. The following line is correct:
  37995. + shared_flag='-G'
  37996. + else
  37997. + if test "$aix_use_runtimelinking" = yes; then
  37998. + shared_flag='${wl}-G'
  37999. + else
  38000. + shared_flag='${wl}-bM:SRE'
  38001. + fi
  38002. + fi
  38003. + fi
  38004. +
  38005. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  38006. + # It seems that -bexpall does not export symbols beginning with
  38007. + # underscore (_), so it is better to generate a list of symbols to export.
  38008. + _LT_TAGVAR(always_export_symbols, $1)=yes
  38009. + if test "$aix_use_runtimelinking" = yes; then
  38010. + # Warning - without using the other runtime loading flags (-brtl),
  38011. + # -berok will link without error, but may produce a broken library.
  38012. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  38013. + # Determine the default libpath from the value encoded in an
  38014. + # empty executable.
  38015. + _LT_SYS_MODULE_PATH_AIX
  38016. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38017. + _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"
  38018. + else
  38019. + if test "$host_cpu" = ia64; then
  38020. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  38021. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  38022. + _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"
  38023. + else
  38024. + # Determine the default libpath from the value encoded in an
  38025. + # empty executable.
  38026. + _LT_SYS_MODULE_PATH_AIX
  38027. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38028. + # Warning - without using the other run time loading flags,
  38029. + # -berok will link without error, but may produce a broken library.
  38030. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  38031. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  38032. + # Exported symbols can be pulled into shared objects from archives
  38033. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  38034. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  38035. + # This is similar to how AIX traditionally builds its shared libraries.
  38036. + _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'
  38037. + fi
  38038. + fi
  38039. + ;;
  38040. +
  38041. + amigaos*)
  38042. + case $host_cpu in
  38043. + powerpc)
  38044. + # see comment about AmigaOS4 .so support
  38045. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38046. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  38047. + ;;
  38048. + m68k)
  38049. + _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)'
  38050. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38051. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38052. + ;;
  38053. + esac
  38054. + ;;
  38055. +
  38056. + bsdi[[45]]*)
  38057. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  38058. + ;;
  38059. +
  38060. + cygwin* | mingw* | pw32* | cegcc*)
  38061. + # When not using gcc, we currently assume that we are using
  38062. + # Microsoft Visual C++.
  38063. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  38064. + # no search path for DLLs.
  38065. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  38066. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38067. + # Tell ltmain to make .lib files, not .a files.
  38068. + libext=lib
  38069. + # Tell ltmain to make .dll files, not .so files.
  38070. + shrext_cmds=".dll"
  38071. + # FIXME: Setting linknames here is a bad hack.
  38072. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  38073. + # The linker will automatically build a .lib file if we build a DLL.
  38074. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  38075. + # FIXME: Should let the user specify the lib program.
  38076. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  38077. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  38078. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  38079. + ;;
  38080. +
  38081. + darwin* | rhapsody*)
  38082. + _LT_DARWIN_LINKER_FEATURES($1)
  38083. + ;;
  38084. +
  38085. + dgux*)
  38086. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38087. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38088. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38089. + ;;
  38090. +
  38091. + freebsd1*)
  38092. + _LT_TAGVAR(ld_shlibs, $1)=no
  38093. + ;;
  38094. +
  38095. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  38096. + # support. Future versions do this automatically, but an explicit c++rt0.o
  38097. + # does not break anything, and helps significantly (at the cost of a little
  38098. + # extra space).
  38099. + freebsd2.2*)
  38100. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  38101. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38102. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38103. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38104. + ;;
  38105. +
  38106. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  38107. + freebsd2*)
  38108. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38109. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38110. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38111. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38112. + ;;
  38113. +
  38114. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  38115. + freebsd* | dragonfly*)
  38116. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  38117. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38118. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38119. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38120. + ;;
  38121. +
  38122. + hpux9*)
  38123. + if test "$GCC" = yes; then
  38124. + _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'
  38125. + else
  38126. + _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'
  38127. + fi
  38128. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38129. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38130. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38131. +
  38132. + # hardcode_minus_L: Not really in the search PATH,
  38133. + # but as the default location of the library.
  38134. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38135. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38136. + ;;
  38137. +
  38138. + hpux10*)
  38139. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38140. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38141. + else
  38142. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  38143. + fi
  38144. + if test "$with_gnu_ld" = no; then
  38145. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38146. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  38147. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38148. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38149. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38150. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38151. + # hardcode_minus_L: Not really in the search PATH,
  38152. + # but as the default location of the library.
  38153. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38154. + fi
  38155. + ;;
  38156. +
  38157. + hpux11*)
  38158. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38159. + case $host_cpu in
  38160. + hppa*64*)
  38161. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38162. + ;;
  38163. + ia64*)
  38164. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38165. + ;;
  38166. + *)
  38167. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38168. + ;;
  38169. + esac
  38170. + else
  38171. + case $host_cpu in
  38172. + hppa*64*)
  38173. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38174. + ;;
  38175. + ia64*)
  38176. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38177. + ;;
  38178. + *)
  38179. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38180. + ;;
  38181. + esac
  38182. + fi
  38183. + if test "$with_gnu_ld" = no; then
  38184. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38185. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38186. +
  38187. + case $host_cpu in
  38188. + hppa*64*|ia64*)
  38189. + _LT_TAGVAR(hardcode_direct, $1)=no
  38190. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38191. + ;;
  38192. + *)
  38193. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38194. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38195. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38196. +
  38197. + # hardcode_minus_L: Not really in the search PATH,
  38198. + # but as the default location of the library.
  38199. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38200. + ;;
  38201. + esac
  38202. + fi
  38203. + ;;
  38204. +
  38205. + irix5* | irix6* | nonstopux*)
  38206. + if test "$GCC" = yes; then
  38207. + _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'
  38208. + # Try to use the -exported_symbol ld option, if it does not
  38209. + # work, assume that -exports_file does not work either and
  38210. + # implicitly export all symbols.
  38211. + save_LDFLAGS="$LDFLAGS"
  38212. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  38213. + AC_LINK_IFELSE(int foo(void) {},
  38214. + _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'
  38215. + )
  38216. + LDFLAGS="$save_LDFLAGS"
  38217. + else
  38218. + _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'
  38219. + _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'
  38220. + fi
  38221. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  38222. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38223. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38224. + _LT_TAGVAR(inherit_rpath, $1)=yes
  38225. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  38226. + ;;
  38227. +
  38228. + netbsd* | netbsdelf*-gnu)
  38229. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  38230. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  38231. + else
  38232. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  38233. + fi
  38234. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38235. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38236. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38237. + ;;
  38238. +
  38239. + newsos6)
  38240. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38241. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38242. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38243. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38244. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38245. + ;;
  38246. +
  38247. + *nto* | *qnx*)
  38248. + ;;
  38249. +
  38250. + openbsd*)
  38251. + if test -f /usr/libexec/ld.so; then
  38252. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38253. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38254. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38255. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38256. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38257. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  38258. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  38259. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38260. + else
  38261. + case $host_os in
  38262. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  38263. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38264. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38265. + ;;
  38266. + *)
  38267. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38268. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  38269. + ;;
  38270. + esac
  38271. + fi
  38272. + else
  38273. + _LT_TAGVAR(ld_shlibs, $1)=no
  38274. + fi
  38275. + ;;
  38276. +
  38277. + os2*)
  38278. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38279. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38280. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38281. + _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'
  38282. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  38283. + ;;
  38284. +
  38285. + osf3*)
  38286. + if test "$GCC" = yes; then
  38287. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  38288. + _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'
  38289. + else
  38290. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  38291. + _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'
  38292. + fi
  38293. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  38294. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38295. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38296. + ;;
  38297. +
  38298. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  38299. + if test "$GCC" = yes; then
  38300. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  38301. + _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'
  38302. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38303. + else
  38304. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  38305. + _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'
  38306. + _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~
  38307. + $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'
  38308. +
  38309. + # Both c and cxx compiler support -rpath directly
  38310. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  38311. + fi
  38312. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  38313. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38314. + ;;
  38315. +
  38316. + solaris*)
  38317. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  38318. + if test "$GCC" = yes; then
  38319. + wlarc='${wl}'
  38320. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38321. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  38322. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  38323. + else
  38324. + case `$CC -V 2>&1` in
  38325. + *"Compilers 5.0"*)
  38326. + wlarc=''
  38327. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38328. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  38329. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  38330. + ;;
  38331. + *)
  38332. + wlarc='${wl}'
  38333. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  38334. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  38335. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  38336. + ;;
  38337. + esac
  38338. + fi
  38339. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38340. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38341. + case $host_os in
  38342. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  38343. + *)
  38344. + # The compiler driver will combine and reorder linker options,
  38345. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  38346. + # but is careful enough not to reorder.
  38347. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  38348. + if test "$GCC" = yes; then
  38349. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  38350. + else
  38351. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  38352. + fi
  38353. + ;;
  38354. + esac
  38355. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  38356. + ;;
  38357. +
  38358. + sunos4*)
  38359. + if test "x$host_vendor" = xsequent; then
  38360. + # Use $CC to link under sequent, because it throws in some extra .o
  38361. + # files that make .init and .fini sections work.
  38362. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  38363. + else
  38364. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  38365. + fi
  38366. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38367. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38368. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38369. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38370. + ;;
  38371. +
  38372. + sysv4)
  38373. + case $host_vendor in
  38374. + sni)
  38375. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38376. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  38377. + ;;
  38378. + siemens)
  38379. + ## LD is ld it makes a PLAMLIB
  38380. + ## CC just makes a GrossModule.
  38381. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  38382. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  38383. + _LT_TAGVAR(hardcode_direct, $1)=no
  38384. + ;;
  38385. + motorola)
  38386. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38387. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  38388. + ;;
  38389. + esac
  38390. + runpath_var='LD_RUN_PATH'
  38391. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38392. + ;;
  38393. +
  38394. + sysv4.3*)
  38395. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38396. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38397. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  38398. + ;;
  38399. +
  38400. + sysv4*MP*)
  38401. + if test -d /usr/nec; then
  38402. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38403. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38404. + runpath_var=LD_RUN_PATH
  38405. + hardcode_runpath_var=yes
  38406. + _LT_TAGVAR(ld_shlibs, $1)=yes
  38407. + fi
  38408. + ;;
  38409. +
  38410. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  38411. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  38412. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  38413. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38414. + runpath_var='LD_RUN_PATH'
  38415. +
  38416. + if test "$GCC" = yes; then
  38417. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38418. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38419. + else
  38420. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38421. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38422. + fi
  38423. + ;;
  38424. +
  38425. + sysv5* | sco3.2v5* | sco5v6*)
  38426. + # Note: We can NOT use -z defs as we might desire, because we do not
  38427. + # link with -lc, and that would cause any symbols used from libc to
  38428. + # always be unresolved, which means just about no library would
  38429. + # ever link correctly. If we're not using GNU ld we use -z text
  38430. + # though, which does catch some bad symbols but isn't as heavy-handed
  38431. + # as -z defs.
  38432. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  38433. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  38434. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  38435. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38436. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  38437. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  38438. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  38439. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  38440. + runpath_var='LD_RUN_PATH'
  38441. +
  38442. + if test "$GCC" = yes; then
  38443. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38444. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38445. + else
  38446. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38447. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38448. + fi
  38449. + ;;
  38450. +
  38451. + uts4*)
  38452. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38453. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38454. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38455. + ;;
  38456. +
  38457. + *)
  38458. + _LT_TAGVAR(ld_shlibs, $1)=no
  38459. + ;;
  38460. + esac
  38461. +
  38462. + if test x$host_vendor = xsni; then
  38463. + case $host in
  38464. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  38465. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  38466. + ;;
  38467. + esac
  38468. + fi
  38469. + fi
  38470. +])
  38471. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  38472. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  38473. +
  38474. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  38475. +
  38476. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  38477. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  38478. +_LT_DECL([], [extract_expsyms_cmds], [2],
  38479. + [The commands to extract the exported symbol list from a shared archive])
  38480. +
  38481. +#
  38482. +# Do we need to explicitly link libc?
  38483. +#
  38484. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  38485. +x|xyes)
  38486. + # Assume -lc should be added
  38487. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  38488. +
  38489. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  38490. + case $_LT_TAGVAR(archive_cmds, $1) in
  38491. + *'~'*)
  38492. + # FIXME: we may have to deal with multi-command sequences.
  38493. + ;;
  38494. + '$CC '*)
  38495. + # Test whether the compiler implicitly links with -lc since on some
  38496. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  38497. + # to ld, don't add -lc before -lgcc.
  38498. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  38499. + $RM conftest*
  38500. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  38501. +
  38502. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  38503. + soname=conftest
  38504. + lib=conftest
  38505. + libobjs=conftest.$ac_objext
  38506. + deplibs=
  38507. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  38508. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  38509. + compiler_flags=-v
  38510. + linker_flags=-v
  38511. + verstring=
  38512. + output_objdir=.
  38513. + libname=conftest
  38514. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  38515. + _LT_TAGVAR(allow_undefined_flag, $1)=
  38516. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  38517. + then
  38518. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  38519. + else
  38520. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  38521. + fi
  38522. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  38523. + else
  38524. + cat conftest.err 1>&5
  38525. + fi
  38526. + $RM conftest*
  38527. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  38528. + ;;
  38529. + esac
  38530. + fi
  38531. + ;;
  38532. +esac
  38533. +
  38534. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  38535. + [Whether or not to add -lc for building shared libraries])
  38536. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  38537. + [enable_shared_with_static_runtimes], [0],
  38538. + [Whether or not to disallow shared libs when runtime libs are static])
  38539. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  38540. + [Compiler flag to allow reflexive dlopens])
  38541. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  38542. + [Compiler flag to generate shared objects directly from archives])
  38543. +_LT_TAGDECL([], [compiler_needs_object], [1],
  38544. + [Whether the compiler copes with passing no objects directly])
  38545. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  38546. + [Create an old-style archive from a shared archive])
  38547. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  38548. + [Create a temporary old-style archive to link instead of a shared archive])
  38549. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  38550. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  38551. +_LT_TAGDECL([], [module_cmds], [2],
  38552. + [Commands used to build a loadable module if different from building
  38553. + a shared archive.])
  38554. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  38555. +_LT_TAGDECL([], [with_gnu_ld], [1],
  38556. + [Whether we are building with GNU ld or not])
  38557. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  38558. + [Flag that allows shared libraries with undefined symbols to be built])
  38559. +_LT_TAGDECL([], [no_undefined_flag], [1],
  38560. + [Flag that enforces no undefined symbols])
  38561. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  38562. + [Flag to hardcode $libdir into a binary during linking.
  38563. + This must work even if $libdir does not exist])
  38564. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  38565. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  38566. + during linking. This must work even if $libdir does not exist]])
  38567. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  38568. + [Whether we need a single "-rpath" flag with a separated argument])
  38569. +_LT_TAGDECL([], [hardcode_direct], [0],
  38570. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  38571. + DIR into the resulting binary])
  38572. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  38573. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  38574. + DIR into the resulting binary and the resulting library dependency is
  38575. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  38576. + library is relocated])
  38577. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  38578. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  38579. + into the resulting binary])
  38580. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  38581. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  38582. + into the resulting binary])
  38583. +_LT_TAGDECL([], [hardcode_automatic], [0],
  38584. + [Set to "yes" if building a shared library automatically hardcodes DIR
  38585. + into the library and all subsequent libraries and executables linked
  38586. + against it])
  38587. +_LT_TAGDECL([], [inherit_rpath], [0],
  38588. + [Set to yes if linker adds runtime paths of dependent libraries
  38589. + to runtime path list])
  38590. +_LT_TAGDECL([], [link_all_deplibs], [0],
  38591. + [Whether libtool must link a program against all its dependency libraries])
  38592. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  38593. + [Fix the shell variable $srcfile for the compiler])
  38594. +_LT_TAGDECL([], [always_export_symbols], [0],
  38595. + [Set to "yes" if exported symbols are required])
  38596. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  38597. + [The commands to list exported symbols])
  38598. +_LT_TAGDECL([], [exclude_expsyms], [1],
  38599. + [Symbols that should not be listed in the preloaded symbols])
  38600. +_LT_TAGDECL([], [include_expsyms], [1],
  38601. + [Symbols that must always be exported])
  38602. +_LT_TAGDECL([], [prelink_cmds], [2],
  38603. + [Commands necessary for linking programs (against libraries) with templates])
  38604. +_LT_TAGDECL([], [file_list_spec], [1],
  38605. + [Specify filename containing input files])
  38606. +dnl FIXME: Not yet implemented
  38607. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  38608. +dnl [Compiler flag to generate thread safe objects])
  38609. +])# _LT_LINKER_SHLIBS
  38610. +
  38611. +
  38612. +# _LT_LANG_C_CONFIG([TAG])
  38613. +# ------------------------
  38614. +# Ensure that the configuration variables for a C compiler are suitably
  38615. +# defined. These variables are subsequently used by _LT_CONFIG to write
  38616. +# the compiler configuration to `libtool'.
  38617. +m4_defun([_LT_LANG_C_CONFIG],
  38618. +[m4_require([_LT_DECL_EGREP])dnl
  38619. +lt_save_CC="$CC"
  38620. +AC_LANG_PUSH(C)
  38621. +
  38622. +# Source file extension for C test sources.
  38623. +ac_ext=c
  38624. +
  38625. +# Object file extension for compiled C test sources.
  38626. +objext=o
  38627. +_LT_TAGVAR(objext, $1)=$objext
  38628. +
  38629. +# Code to be used in simple compile tests
  38630. +lt_simple_compile_test_code="int some_variable = 0;"
  38631. +
  38632. +# Code to be used in simple link tests
  38633. +lt_simple_link_test_code='int main(){return(0);}'
  38634. +
  38635. +_LT_TAG_COMPILER
  38636. +# Save the default compiler, since it gets overwritten when the other
  38637. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  38638. +compiler_DEFAULT=$CC
  38639. +
  38640. +# save warnings/boilerplate of simple test code
  38641. +_LT_COMPILER_BOILERPLATE
  38642. +_LT_LINKER_BOILERPLATE
  38643. +
  38644. +## CAVEAT EMPTOR:
  38645. +## There is no encapsulation within the following macros, do not change
  38646. +## the running order or otherwise move them around unless you know exactly
  38647. +## what you are doing...
  38648. +if test -n "$compiler"; then
  38649. + _LT_COMPILER_NO_RTTI($1)
  38650. + _LT_COMPILER_PIC($1)
  38651. + _LT_COMPILER_C_O($1)
  38652. + _LT_COMPILER_FILE_LOCKS($1)
  38653. + _LT_LINKER_SHLIBS($1)
  38654. + _LT_SYS_DYNAMIC_LINKER($1)
  38655. + _LT_LINKER_HARDCODE_LIBPATH($1)
  38656. + LT_SYS_DLOPEN_SELF
  38657. + _LT_CMD_STRIPLIB
  38658. +
  38659. + # Report which library types will actually be built
  38660. + AC_MSG_CHECKING([if libtool supports shared libraries])
  38661. + AC_MSG_RESULT([$can_build_shared])
  38662. +
  38663. + AC_MSG_CHECKING([whether to build shared libraries])
  38664. + test "$can_build_shared" = "no" && enable_shared=no
  38665. +
  38666. + # On AIX, shared libraries and static libraries use the same namespace, and
  38667. + # are all built from PIC.
  38668. + case $host_os in
  38669. + aix3*)
  38670. + test "$enable_shared" = yes && enable_static=no
  38671. + if test -n "$RANLIB"; then
  38672. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38673. + postinstall_cmds='$RANLIB $lib'
  38674. + fi
  38675. + ;;
  38676. +
  38677. + aix[[4-9]]*)
  38678. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38679. + test "$enable_shared" = yes && enable_static=no
  38680. + fi
  38681. + ;;
  38682. + esac
  38683. + AC_MSG_RESULT([$enable_shared])
  38684. +
  38685. + AC_MSG_CHECKING([whether to build static libraries])
  38686. + # Make sure either enable_shared or enable_static is yes.
  38687. + test "$enable_shared" = yes || enable_static=yes
  38688. + AC_MSG_RESULT([$enable_static])
  38689. +
  38690. + _LT_CONFIG($1)
  38691. +fi
  38692. +AC_LANG_POP
  38693. +CC="$lt_save_CC"
  38694. +])# _LT_LANG_C_CONFIG
  38695. +
  38696. +
  38697. +# _LT_PROG_CXX
  38698. +# ------------
  38699. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  38700. +# compiler, we have our own version here.
  38701. +m4_defun([_LT_PROG_CXX],
  38702. +[
  38703. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  38704. +AC_PROG_CXX
  38705. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  38706. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  38707. + (test "X$CXX" != "Xg++"))) ; then
  38708. + AC_PROG_CXXCPP
  38709. +else
  38710. + _lt_caught_CXX_error=yes
  38711. +fi
  38712. +popdef([AC_MSG_ERROR])
  38713. +])# _LT_PROG_CXX
  38714. +
  38715. +dnl aclocal-1.4 backwards compatibility:
  38716. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  38717. +
  38718. +
  38719. +# _LT_LANG_CXX_CONFIG([TAG])
  38720. +# --------------------------
  38721. +# Ensure that the configuration variables for a C++ compiler are suitably
  38722. +# defined. These variables are subsequently used by _LT_CONFIG to write
  38723. +# the compiler configuration to `libtool'.
  38724. +m4_defun([_LT_LANG_CXX_CONFIG],
  38725. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  38726. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  38727. +m4_require([_LT_DECL_EGREP])dnl
  38728. +
  38729. +AC_LANG_PUSH(C++)
  38730. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  38731. +_LT_TAGVAR(allow_undefined_flag, $1)=
  38732. +_LT_TAGVAR(always_export_symbols, $1)=no
  38733. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  38734. +_LT_TAGVAR(compiler_needs_object, $1)=no
  38735. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  38736. +_LT_TAGVAR(hardcode_direct, $1)=no
  38737. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  38738. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  38739. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  38740. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  38741. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  38742. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  38743. +_LT_TAGVAR(hardcode_automatic, $1)=no
  38744. +_LT_TAGVAR(inherit_rpath, $1)=no
  38745. +_LT_TAGVAR(module_cmds, $1)=
  38746. +_LT_TAGVAR(module_expsym_cmds, $1)=
  38747. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  38748. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  38749. +_LT_TAGVAR(no_undefined_flag, $1)=
  38750. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  38751. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  38752. +
  38753. +# Source file extension for C++ test sources.
  38754. +ac_ext=cpp
  38755. +
  38756. +# Object file extension for compiled C++ test sources.
  38757. +objext=o
  38758. +_LT_TAGVAR(objext, $1)=$objext
  38759. +
  38760. +# No sense in running all these tests if we already determined that
  38761. +# the CXX compiler isn't working. Some variables (like enable_shared)
  38762. +# are currently assumed to apply to all compilers on this platform,
  38763. +# and will be corrupted by setting them based on a non-working compiler.
  38764. +if test "$_lt_caught_CXX_error" != yes; then
  38765. + # Code to be used in simple compile tests
  38766. + lt_simple_compile_test_code="int some_variable = 0;"
  38767. +
  38768. + # Code to be used in simple link tests
  38769. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  38770. +
  38771. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  38772. + _LT_TAG_COMPILER
  38773. +
  38774. + # save warnings/boilerplate of simple test code
  38775. + _LT_COMPILER_BOILERPLATE
  38776. + _LT_LINKER_BOILERPLATE
  38777. +
  38778. + # Allow CC to be a program name with arguments.
  38779. + lt_save_CC=$CC
  38780. + lt_save_LD=$LD
  38781. + lt_save_GCC=$GCC
  38782. + GCC=$GXX
  38783. + lt_save_with_gnu_ld=$with_gnu_ld
  38784. + lt_save_path_LD=$lt_cv_path_LD
  38785. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  38786. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  38787. + else
  38788. + $as_unset lt_cv_prog_gnu_ld
  38789. + fi
  38790. + if test -n "${lt_cv_path_LDCXX+set}"; then
  38791. + lt_cv_path_LD=$lt_cv_path_LDCXX
  38792. + else
  38793. + $as_unset lt_cv_path_LD
  38794. + fi
  38795. + test -z "${LDCXX+set}" || LD=$LDCXX
  38796. + CC=${CXX-"c++"}
  38797. + compiler=$CC
  38798. + _LT_TAGVAR(compiler, $1)=$CC
  38799. + _LT_CC_BASENAME([$compiler])
  38800. +
  38801. + if test -n "$compiler"; then
  38802. + # We don't want -fno-exception when compiling C++ code, so set the
  38803. + # no_builtin_flag separately
  38804. + if test "$GXX" = yes; then
  38805. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  38806. + else
  38807. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  38808. + fi
  38809. +
  38810. + if test "$GXX" = yes; then
  38811. + # Set up default GNU C++ configuration
  38812. +
  38813. + LT_PATH_LD
  38814. +
  38815. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  38816. + # archiving commands below assume that GNU ld is being used.
  38817. + if test "$with_gnu_ld" = yes; then
  38818. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38819. + _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'
  38820. +
  38821. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38822. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  38823. +
  38824. + # If archive_cmds runs LD, not CC, wlarc should be empty
  38825. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  38826. + # investigate it a little bit more. (MM)
  38827. + wlarc='${wl}'
  38828. +
  38829. + # ancient GNU ld didn't support --whole-archive et. al.
  38830. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  38831. + $GREP 'no-whole-archive' > /dev/null; then
  38832. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38833. + else
  38834. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  38835. + fi
  38836. + else
  38837. + with_gnu_ld=no
  38838. + wlarc=
  38839. +
  38840. + # A generic and very simple default shared library creation
  38841. + # command for GNU C++ for the case where it uses the native
  38842. + # linker, instead of GNU ld. If possible, this setting should
  38843. + # overridden to take advantage of the native linker features on
  38844. + # the platform it is being used on.
  38845. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  38846. + fi
  38847. +
  38848. + # Commands to make compiler produce verbose output that lists
  38849. + # what "hidden" libraries, object files and flags are used when
  38850. + # linking a shared library.
  38851. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  38852. +
  38853. + else
  38854. + GXX=no
  38855. + with_gnu_ld=no
  38856. + wlarc=
  38857. + fi
  38858. +
  38859. + # PORTME: fill in a description of your system's C++ link characteristics
  38860. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  38861. + _LT_TAGVAR(ld_shlibs, $1)=yes
  38862. + case $host_os in
  38863. + aix3*)
  38864. + # FIXME: insert proper C++ library support
  38865. + _LT_TAGVAR(ld_shlibs, $1)=no
  38866. + ;;
  38867. + aix[[4-9]]*)
  38868. + if test "$host_cpu" = ia64; then
  38869. + # On IA64, the linker does run time linking by default, so we don't
  38870. + # have to do anything special.
  38871. + aix_use_runtimelinking=no
  38872. + exp_sym_flag='-Bexport'
  38873. + no_entry_flag=""
  38874. + else
  38875. + aix_use_runtimelinking=no
  38876. +
  38877. + # Test if we are trying to use run time linking or normal
  38878. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  38879. + # need to do runtime linking.
  38880. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  38881. + for ld_flag in $LDFLAGS; do
  38882. + case $ld_flag in
  38883. + *-brtl*)
  38884. + aix_use_runtimelinking=yes
  38885. + break
  38886. + ;;
  38887. + esac
  38888. + done
  38889. + ;;
  38890. + esac
  38891. +
  38892. + exp_sym_flag='-bexport'
  38893. + no_entry_flag='-bnoentry'
  38894. + fi
  38895. +
  38896. + # When large executables or shared objects are built, AIX ld can
  38897. + # have problems creating the table of contents. If linking a library
  38898. + # or program results in "error TOC overflow" add -mminimal-toc to
  38899. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  38900. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  38901. +
  38902. + _LT_TAGVAR(archive_cmds, $1)=''
  38903. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38904. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38905. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  38906. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  38907. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  38908. +
  38909. + if test "$GXX" = yes; then
  38910. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  38911. + # We only want to do this on AIX 4.2 and lower, the check
  38912. + # below for broken collect2 doesn't work under 4.3+
  38913. + collect2name=`${CC} -print-prog-name=collect2`
  38914. + if test -f "$collect2name" &&
  38915. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  38916. + then
  38917. + # We have reworked collect2
  38918. + :
  38919. + else
  38920. + # We have old collect2
  38921. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  38922. + # It fails to find uninstalled libraries when the uninstalled
  38923. + # path is not listed in the libpath. Setting hardcode_minus_L
  38924. + # to unsupported forces relinking
  38925. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38926. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38927. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  38928. + fi
  38929. + esac
  38930. + shared_flag='-shared'
  38931. + if test "$aix_use_runtimelinking" = yes; then
  38932. + shared_flag="$shared_flag "'${wl}-G'
  38933. + fi
  38934. + else
  38935. + # not using gcc
  38936. + if test "$host_cpu" = ia64; then
  38937. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  38938. + # chokes on -Wl,-G. The following line is correct:
  38939. + shared_flag='-G'
  38940. + else
  38941. + if test "$aix_use_runtimelinking" = yes; then
  38942. + shared_flag='${wl}-G'
  38943. + else
  38944. + shared_flag='${wl}-bM:SRE'
  38945. + fi
  38946. + fi
  38947. + fi
  38948. +
  38949. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  38950. + # It seems that -bexpall does not export symbols beginning with
  38951. + # underscore (_), so it is better to generate a list of symbols to
  38952. + # export.
  38953. + _LT_TAGVAR(always_export_symbols, $1)=yes
  38954. + if test "$aix_use_runtimelinking" = yes; then
  38955. + # Warning - without using the other runtime loading flags (-brtl),
  38956. + # -berok will link without error, but may produce a broken library.
  38957. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  38958. + # Determine the default libpath from the value encoded in an empty
  38959. + # executable.
  38960. + _LT_SYS_MODULE_PATH_AIX
  38961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38962. +
  38963. + _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"
  38964. + else
  38965. + if test "$host_cpu" = ia64; then
  38966. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  38967. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  38968. + _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"
  38969. + else
  38970. + # Determine the default libpath from the value encoded in an
  38971. + # empty executable.
  38972. + _LT_SYS_MODULE_PATH_AIX
  38973. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38974. + # Warning - without using the other run time loading flags,
  38975. + # -berok will link without error, but may produce a broken library.
  38976. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  38977. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  38978. + # Exported symbols can be pulled into shared objects from archives
  38979. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  38980. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  38981. + # This is similar to how AIX traditionally builds its shared
  38982. + # libraries.
  38983. + _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'
  38984. + fi
  38985. + fi
  38986. + ;;
  38987. +
  38988. + beos*)
  38989. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38990. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38991. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38992. + # support --undefined. This deserves some investigation. FIXME
  38993. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38994. + else
  38995. + _LT_TAGVAR(ld_shlibs, $1)=no
  38996. + fi
  38997. + ;;
  38998. +
  38999. + chorus*)
  39000. + case $cc_basename in
  39001. + *)
  39002. + # FIXME: insert proper C++ library support
  39003. + _LT_TAGVAR(ld_shlibs, $1)=no
  39004. + ;;
  39005. + esac
  39006. + ;;
  39007. +
  39008. + cygwin* | mingw* | pw32* | cegcc*)
  39009. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  39010. + # as there is no search path for DLLs.
  39011. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39012. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  39013. + _LT_TAGVAR(always_export_symbols, $1)=no
  39014. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  39015. +
  39016. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  39017. + _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'
  39018. + # If the export-symbols file already is a .def file (1st line
  39019. + # is EXPORTS), use it as is; otherwise, prepend...
  39020. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  39021. + cp $export_symbols $output_objdir/$soname.def;
  39022. + else
  39023. + echo EXPORTS > $output_objdir/$soname.def;
  39024. + cat $export_symbols >> $output_objdir/$soname.def;
  39025. + fi~
  39026. + $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'
  39027. + else
  39028. + _LT_TAGVAR(ld_shlibs, $1)=no
  39029. + fi
  39030. + ;;
  39031. + darwin* | rhapsody*)
  39032. + _LT_DARWIN_LINKER_FEATURES($1)
  39033. + ;;
  39034. +
  39035. + dgux*)
  39036. + case $cc_basename in
  39037. + ec++*)
  39038. + # FIXME: insert proper C++ library support
  39039. + _LT_TAGVAR(ld_shlibs, $1)=no
  39040. + ;;
  39041. + ghcx*)
  39042. + # Green Hills C++ Compiler
  39043. + # FIXME: insert proper C++ library support
  39044. + _LT_TAGVAR(ld_shlibs, $1)=no
  39045. + ;;
  39046. + *)
  39047. + # FIXME: insert proper C++ library support
  39048. + _LT_TAGVAR(ld_shlibs, $1)=no
  39049. + ;;
  39050. + esac
  39051. + ;;
  39052. +
  39053. + freebsd[[12]]*)
  39054. + # C++ shared libraries reported to be fairly broken before
  39055. + # switch to ELF
  39056. + _LT_TAGVAR(ld_shlibs, $1)=no
  39057. + ;;
  39058. +
  39059. + freebsd-elf*)
  39060. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39061. + ;;
  39062. +
  39063. + freebsd* | dragonfly*)
  39064. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  39065. + # conventions
  39066. + _LT_TAGVAR(ld_shlibs, $1)=yes
  39067. + ;;
  39068. +
  39069. + gnu*)
  39070. + ;;
  39071. +
  39072. + hpux9*)
  39073. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  39074. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39075. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39076. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39077. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  39078. + # but as the default
  39079. + # location of the library.
  39080. +
  39081. + case $cc_basename in
  39082. + CC*)
  39083. + # FIXME: insert proper C++ library support
  39084. + _LT_TAGVAR(ld_shlibs, $1)=no
  39085. + ;;
  39086. + aCC*)
  39087. + _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'
  39088. + # Commands to make compiler produce verbose output that lists
  39089. + # what "hidden" libraries, object files and flags are used when
  39090. + # linking a shared library.
  39091. + #
  39092. + # There doesn't appear to be a way to prevent this compiler from
  39093. + # explicitly linking system object files so we need to strip them
  39094. + # from the output so that they don't get included in the library
  39095. + # dependencies.
  39096. + 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'
  39097. + ;;
  39098. + *)
  39099. + if test "$GXX" = yes; then
  39100. + _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'
  39101. + else
  39102. + # FIXME: insert proper C++ library support
  39103. + _LT_TAGVAR(ld_shlibs, $1)=no
  39104. + fi
  39105. + ;;
  39106. + esac
  39107. + ;;
  39108. +
  39109. + hpux10*|hpux11*)
  39110. + if test $with_gnu_ld = no; then
  39111. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  39112. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39113. +
  39114. + case $host_cpu in
  39115. + hppa*64*|ia64*)
  39116. + ;;
  39117. + *)
  39118. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39119. + ;;
  39120. + esac
  39121. + fi
  39122. + case $host_cpu in
  39123. + hppa*64*|ia64*)
  39124. + _LT_TAGVAR(hardcode_direct, $1)=no
  39125. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39126. + ;;
  39127. + *)
  39128. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39129. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  39130. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  39131. + # but as the default
  39132. + # location of the library.
  39133. + ;;
  39134. + esac
  39135. +
  39136. + case $cc_basename in
  39137. + CC*)
  39138. + # FIXME: insert proper C++ library support
  39139. + _LT_TAGVAR(ld_shlibs, $1)=no
  39140. + ;;
  39141. + aCC*)
  39142. + case $host_cpu in
  39143. + hppa*64*)
  39144. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39145. + ;;
  39146. + ia64*)
  39147. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39148. + ;;
  39149. + *)
  39150. + _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'
  39151. + ;;
  39152. + esac
  39153. + # Commands to make compiler produce verbose output that lists
  39154. + # what "hidden" libraries, object files and flags are used when
  39155. + # linking a shared library.
  39156. + #
  39157. + # There doesn't appear to be a way to prevent this compiler from
  39158. + # explicitly linking system object files so we need to strip them
  39159. + # from the output so that they don't get included in the library
  39160. + # dependencies.
  39161. + 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'
  39162. + ;;
  39163. + *)
  39164. + if test "$GXX" = yes; then
  39165. + if test $with_gnu_ld = no; then
  39166. + case $host_cpu in
  39167. + hppa*64*)
  39168. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39169. + ;;
  39170. + ia64*)
  39171. + _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'
  39172. + ;;
  39173. + *)
  39174. + _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'
  39175. + ;;
  39176. + esac
  39177. + fi
  39178. + else
  39179. + # FIXME: insert proper C++ library support
  39180. + _LT_TAGVAR(ld_shlibs, $1)=no
  39181. + fi
  39182. + ;;
  39183. + esac
  39184. + ;;
  39185. +
  39186. + interix[[3-9]]*)
  39187. + _LT_TAGVAR(hardcode_direct, $1)=no
  39188. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39189. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39190. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39191. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  39192. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  39193. + # default) and relocated if they conflict, which is a slow very memory
  39194. + # consuming and fragmenting process. To avoid this, we pick a random,
  39195. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  39196. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  39197. + _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'
  39198. + _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'
  39199. + ;;
  39200. + irix5* | irix6*)
  39201. + case $cc_basename in
  39202. + CC*)
  39203. + # SGI C++
  39204. + _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'
  39205. +
  39206. + # Archives containing C++ object files must be created using
  39207. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  39208. + # necessary to make sure instantiated templates are included
  39209. + # in the archive.
  39210. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  39211. + ;;
  39212. + *)
  39213. + if test "$GXX" = yes; then
  39214. + if test "$with_gnu_ld" = no; then
  39215. + _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'
  39216. + else
  39217. + _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'
  39218. + fi
  39219. + fi
  39220. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39221. + ;;
  39222. + esac
  39223. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39224. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39225. + _LT_TAGVAR(inherit_rpath, $1)=yes
  39226. + ;;
  39227. +
  39228. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  39229. + case $cc_basename in
  39230. + KCC*)
  39231. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  39232. +
  39233. + # KCC will only create a shared library if the output file
  39234. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  39235. + # to its proper name (with version) after linking.
  39236. + _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'
  39237. + _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'
  39238. + # Commands to make compiler produce verbose output that lists
  39239. + # what "hidden" libraries, object files and flags are used when
  39240. + # linking a shared library.
  39241. + #
  39242. + # There doesn't appear to be a way to prevent this compiler from
  39243. + # explicitly linking system object files so we need to strip them
  39244. + # from the output so that they don't get included in the library
  39245. + # dependencies.
  39246. + 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'
  39247. +
  39248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39249. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  39250. +
  39251. + # Archives containing C++ object files must be created using
  39252. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  39253. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  39254. + ;;
  39255. + icpc* | ecpc* )
  39256. + # Intel C++
  39257. + with_gnu_ld=yes
  39258. + # version 8.0 and above of icpc choke on multiply defined symbols
  39259. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  39260. + # earlier do not add the objects themselves.
  39261. + case `$CC -V 2>&1` in
  39262. + *"Version 7."*)
  39263. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39264. + _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'
  39265. + ;;
  39266. + *) # Version 8.0 or newer
  39267. + tmp_idyn=
  39268. + case $host_cpu in
  39269. + ia64*) tmp_idyn=' -i_dynamic';;
  39270. + esac
  39271. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39272. + _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'
  39273. + ;;
  39274. + esac
  39275. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39276. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39277. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  39278. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  39279. + ;;
  39280. + pgCC* | pgcpp*)
  39281. + # Portland Group C++ compiler
  39282. + case `$CC -V` in
  39283. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  39284. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  39285. + rm -rf $tpldir~
  39286. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  39287. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  39288. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  39289. + rm -rf $tpldir~
  39290. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  39291. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  39292. + $RANLIB $oldlib'
  39293. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  39294. + rm -rf $tpldir~
  39295. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  39296. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  39297. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  39298. + rm -rf $tpldir~
  39299. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  39300. + $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'
  39301. + ;;
  39302. + *) # Version 6 will use weak symbols
  39303. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  39304. + _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'
  39305. + ;;
  39306. + esac
  39307. +
  39308. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  39309. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  39310. + _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'
  39311. + ;;
  39312. + cxx*)
  39313. + # Compaq C++
  39314. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39315. + _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'
  39316. +
  39317. + runpath_var=LD_RUN_PATH
  39318. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  39319. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39320. +
  39321. + # Commands to make compiler produce verbose output that lists
  39322. + # what "hidden" libraries, object files and flags are used when
  39323. + # linking a shared library.
  39324. + #
  39325. + # There doesn't appear to be a way to prevent this compiler from
  39326. + # explicitly linking system object files so we need to strip them
  39327. + # from the output so that they don't get included in the library
  39328. + # dependencies.
  39329. + 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'
  39330. + ;;
  39331. + xl*)
  39332. + # IBM XL 8.0 on PPC, with GNU ld
  39333. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39334. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  39335. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39336. + if test "x$supports_anon_versioning" = xyes; then
  39337. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  39338. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  39339. + echo "local: *; };" >> $output_objdir/$libname.ver~
  39340. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  39341. + fi
  39342. + ;;
  39343. + *)
  39344. + case `$CC -V 2>&1 | sed 5q` in
  39345. + *Sun\ C*)
  39346. + # Sun C++ 5.9
  39347. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  39348. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39349. + _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'
  39350. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39351. + _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'
  39352. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  39353. +
  39354. + # Not sure whether something based on
  39355. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  39356. + # would be better.
  39357. + output_verbose_link_cmd='echo'
  39358. +
  39359. + # Archives containing C++ object files must be created using
  39360. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  39361. + # necessary to make sure instantiated templates are included
  39362. + # in the archive.
  39363. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  39364. + ;;
  39365. + esac
  39366. + ;;
  39367. + esac
  39368. + ;;
  39369. +
  39370. + lynxos*)
  39371. + # FIXME: insert proper C++ library support
  39372. + _LT_TAGVAR(ld_shlibs, $1)=no
  39373. + ;;
  39374. +
  39375. + m88k*)
  39376. + # FIXME: insert proper C++ library support
  39377. + _LT_TAGVAR(ld_shlibs, $1)=no
  39378. + ;;
  39379. +
  39380. + mvs*)
  39381. + case $cc_basename in
  39382. + cxx*)
  39383. + # FIXME: insert proper C++ library support
  39384. + _LT_TAGVAR(ld_shlibs, $1)=no
  39385. + ;;
  39386. + *)
  39387. + # FIXME: insert proper C++ library support
  39388. + _LT_TAGVAR(ld_shlibs, $1)=no
  39389. + ;;
  39390. + esac
  39391. + ;;
  39392. +
  39393. + netbsd*)
  39394. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  39395. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  39396. + wlarc=
  39397. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39398. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39399. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39400. + fi
  39401. + # Workaround some broken pre-1.5 toolchains
  39402. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  39403. + ;;
  39404. +
  39405. + *nto* | *qnx*)
  39406. + _LT_TAGVAR(ld_shlibs, $1)=yes
  39407. + ;;
  39408. +
  39409. + openbsd2*)
  39410. + # C++ shared libraries are fairly broken
  39411. + _LT_TAGVAR(ld_shlibs, $1)=no
  39412. + ;;
  39413. +
  39414. + openbsd*)
  39415. + if test -f /usr/libexec/ld.so; then
  39416. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39417. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39418. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  39419. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  39420. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39421. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39422. + _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'
  39423. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39424. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  39425. + fi
  39426. + output_verbose_link_cmd=echo
  39427. + else
  39428. + _LT_TAGVAR(ld_shlibs, $1)=no
  39429. + fi
  39430. + ;;
  39431. +
  39432. + osf3* | osf4* | osf5*)
  39433. + case $cc_basename in
  39434. + KCC*)
  39435. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  39436. +
  39437. + # KCC will only create a shared library if the output file
  39438. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  39439. + # to its proper name (with version) after linking.
  39440. + _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'
  39441. +
  39442. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39443. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39444. +
  39445. + # Archives containing C++ object files must be created using
  39446. + # the KAI C++ compiler.
  39447. + case $host in
  39448. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  39449. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  39450. + esac
  39451. + ;;
  39452. + RCC*)
  39453. + # Rational C++ 2.4.1
  39454. + # FIXME: insert proper C++ library support
  39455. + _LT_TAGVAR(ld_shlibs, $1)=no
  39456. + ;;
  39457. + cxx*)
  39458. + case $host in
  39459. + osf3*)
  39460. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  39461. + _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'
  39462. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39463. + ;;
  39464. + *)
  39465. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  39466. + _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'
  39467. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  39468. + echo "-hidden">> $lib.exp~
  39469. + $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~
  39470. + $RM $lib.exp'
  39471. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  39472. + ;;
  39473. + esac
  39474. +
  39475. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39476. +
  39477. + # Commands to make compiler produce verbose output that lists
  39478. + # what "hidden" libraries, object files and flags are used when
  39479. + # linking a shared library.
  39480. + #
  39481. + # There doesn't appear to be a way to prevent this compiler from
  39482. + # explicitly linking system object files so we need to strip them
  39483. + # from the output so that they don't get included in the library
  39484. + # dependencies.
  39485. + 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'
  39486. + ;;
  39487. + *)
  39488. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  39489. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  39490. + case $host in
  39491. + osf3*)
  39492. + _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'
  39493. + ;;
  39494. + *)
  39495. + _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'
  39496. + ;;
  39497. + esac
  39498. +
  39499. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39500. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39501. +
  39502. + # Commands to make compiler produce verbose output that lists
  39503. + # what "hidden" libraries, object files and flags are used when
  39504. + # linking a shared library.
  39505. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39506. +
  39507. + else
  39508. + # FIXME: insert proper C++ library support
  39509. + _LT_TAGVAR(ld_shlibs, $1)=no
  39510. + fi
  39511. + ;;
  39512. + esac
  39513. + ;;
  39514. +
  39515. + psos*)
  39516. + # FIXME: insert proper C++ library support
  39517. + _LT_TAGVAR(ld_shlibs, $1)=no
  39518. + ;;
  39519. +
  39520. + sunos4*)
  39521. + case $cc_basename in
  39522. + CC*)
  39523. + # Sun C++ 4.x
  39524. + # FIXME: insert proper C++ library support
  39525. + _LT_TAGVAR(ld_shlibs, $1)=no
  39526. + ;;
  39527. + lcc*)
  39528. + # Lucid
  39529. + # FIXME: insert proper C++ library support
  39530. + _LT_TAGVAR(ld_shlibs, $1)=no
  39531. + ;;
  39532. + *)
  39533. + # FIXME: insert proper C++ library support
  39534. + _LT_TAGVAR(ld_shlibs, $1)=no
  39535. + ;;
  39536. + esac
  39537. + ;;
  39538. +
  39539. + solaris*)
  39540. + case $cc_basename in
  39541. + CC*)
  39542. + # Sun C++ 4.2, 5.x and Centerline C++
  39543. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  39544. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  39545. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39546. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39547. + $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'
  39548. +
  39549. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39550. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39551. + case $host_os in
  39552. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  39553. + *)
  39554. + # The compiler driver will combine and reorder linker options,
  39555. + # but understands `-z linker_flag'.
  39556. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  39557. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  39558. + ;;
  39559. + esac
  39560. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39561. +
  39562. + output_verbose_link_cmd='echo'
  39563. +
  39564. + # Archives containing C++ object files must be created using
  39565. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  39566. + # necessary to make sure instantiated templates are included
  39567. + # in the archive.
  39568. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  39569. + ;;
  39570. + gcx*)
  39571. + # Green Hills C++ Compiler
  39572. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39573. +
  39574. + # The C++ compiler must be used to create the archive.
  39575. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  39576. + ;;
  39577. + *)
  39578. + # GNU C++ compiler with Solaris linker
  39579. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  39580. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  39581. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  39582. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39583. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39584. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  39585. +
  39586. + # Commands to make compiler produce verbose output that lists
  39587. + # what "hidden" libraries, object files and flags are used when
  39588. + # linking a shared library.
  39589. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39590. + else
  39591. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  39592. + # platform.
  39593. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39594. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39595. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  39596. +
  39597. + # Commands to make compiler produce verbose output that lists
  39598. + # what "hidden" libraries, object files and flags are used when
  39599. + # linking a shared library.
  39600. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39601. + fi
  39602. +
  39603. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  39604. + case $host_os in
  39605. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  39606. + *)
  39607. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  39608. + ;;
  39609. + esac
  39610. + fi
  39611. + ;;
  39612. + esac
  39613. + ;;
  39614. +
  39615. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  39616. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  39617. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39618. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39619. + runpath_var='LD_RUN_PATH'
  39620. +
  39621. + case $cc_basename in
  39622. + CC*)
  39623. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39624. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39625. + ;;
  39626. + *)
  39627. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39628. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39629. + ;;
  39630. + esac
  39631. + ;;
  39632. +
  39633. + sysv5* | sco3.2v5* | sco5v6*)
  39634. + # Note: We can NOT use -z defs as we might desire, because we do not
  39635. + # link with -lc, and that would cause any symbols used from libc to
  39636. + # always be unresolved, which means just about no library would
  39637. + # ever link correctly. If we're not using GNU ld we use -z text
  39638. + # though, which does catch some bad symbols but isn't as heavy-handed
  39639. + # as -z defs.
  39640. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  39641. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  39642. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39643. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39644. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  39645. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  39646. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39647. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  39648. + runpath_var='LD_RUN_PATH'
  39649. +
  39650. + case $cc_basename in
  39651. + CC*)
  39652. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39653. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39654. + ;;
  39655. + *)
  39656. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39657. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39658. + ;;
  39659. + esac
  39660. + ;;
  39661. +
  39662. + tandem*)
  39663. + case $cc_basename in
  39664. + NCC*)
  39665. + # NonStop-UX NCC 3.20
  39666. + # FIXME: insert proper C++ library support
  39667. + _LT_TAGVAR(ld_shlibs, $1)=no
  39668. + ;;
  39669. + *)
  39670. + # FIXME: insert proper C++ library support
  39671. + _LT_TAGVAR(ld_shlibs, $1)=no
  39672. + ;;
  39673. + esac
  39674. + ;;
  39675. +
  39676. + vxworks*)
  39677. + # FIXME: insert proper C++ library support
  39678. + _LT_TAGVAR(ld_shlibs, $1)=no
  39679. + ;;
  39680. +
  39681. + *)
  39682. + # FIXME: insert proper C++ library support
  39683. + _LT_TAGVAR(ld_shlibs, $1)=no
  39684. + ;;
  39685. + esac
  39686. +
  39687. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  39688. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  39689. +
  39690. + _LT_TAGVAR(GCC, $1)="$GXX"
  39691. + _LT_TAGVAR(LD, $1)="$LD"
  39692. +
  39693. + ## CAVEAT EMPTOR:
  39694. + ## There is no encapsulation within the following macros, do not change
  39695. + ## the running order or otherwise move them around unless you know exactly
  39696. + ## what you are doing...
  39697. + _LT_SYS_HIDDEN_LIBDEPS($1)
  39698. + _LT_COMPILER_PIC($1)
  39699. + _LT_COMPILER_C_O($1)
  39700. + _LT_COMPILER_FILE_LOCKS($1)
  39701. + _LT_LINKER_SHLIBS($1)
  39702. + _LT_SYS_DYNAMIC_LINKER($1)
  39703. + _LT_LINKER_HARDCODE_LIBPATH($1)
  39704. +
  39705. + _LT_CONFIG($1)
  39706. + fi # test -n "$compiler"
  39707. +
  39708. + CC=$lt_save_CC
  39709. + LDCXX=$LD
  39710. + LD=$lt_save_LD
  39711. + GCC=$lt_save_GCC
  39712. + with_gnu_ld=$lt_save_with_gnu_ld
  39713. + lt_cv_path_LDCXX=$lt_cv_path_LD
  39714. + lt_cv_path_LD=$lt_save_path_LD
  39715. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  39716. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  39717. +fi # test "$_lt_caught_CXX_error" != yes
  39718. +
  39719. +AC_LANG_POP
  39720. +])# _LT_LANG_CXX_CONFIG
  39721. +
  39722. +
  39723. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  39724. +# ---------------------------------
  39725. +# Figure out "hidden" library dependencies from verbose
  39726. +# compiler output when linking a shared library.
  39727. +# Parse the compiler output and extract the necessary
  39728. +# objects, libraries and library flags.
  39729. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  39730. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  39731. +# Dependencies to place before and after the object being linked:
  39732. +_LT_TAGVAR(predep_objects, $1)=
  39733. +_LT_TAGVAR(postdep_objects, $1)=
  39734. +_LT_TAGVAR(predeps, $1)=
  39735. +_LT_TAGVAR(postdeps, $1)=
  39736. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  39737. +
  39738. +dnl we can't use the lt_simple_compile_test_code here,
  39739. +dnl because it contains code intended for an executable,
  39740. +dnl not a library. It's possible we should let each
  39741. +dnl tag define a new lt_????_link_test_code variable,
  39742. +dnl but it's only used here...
  39743. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  39744. +int a;
  39745. +void foo (void) { a = 0; }
  39746. +_LT_EOF
  39747. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  39748. +class Foo
  39749. +{
  39750. +public:
  39751. + Foo (void) { a = 0; }
  39752. +private:
  39753. + int a;
  39754. +};
  39755. +_LT_EOF
  39756. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  39757. + subroutine foo
  39758. + implicit none
  39759. + integer*4 a
  39760. + a=0
  39761. + return
  39762. + end
  39763. +_LT_EOF
  39764. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  39765. + subroutine foo
  39766. + implicit none
  39767. + integer a
  39768. + a=0
  39769. + return
  39770. + end
  39771. +_LT_EOF
  39772. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  39773. +public class foo {
  39774. + private int a;
  39775. + public void bar (void) {
  39776. + a = 0;
  39777. + }
  39778. +};
  39779. +_LT_EOF
  39780. +])
  39781. +dnl Parse the compiler output and extract the necessary
  39782. +dnl objects, libraries and library flags.
  39783. +if AC_TRY_EVAL(ac_compile); then
  39784. + # Parse the compiler output and extract the necessary
  39785. + # objects, libraries and library flags.
  39786. +
  39787. + # Sentinel used to keep track of whether or not we are before
  39788. + # the conftest object file.
  39789. + pre_test_object_deps_done=no
  39790. +
  39791. + for p in `eval "$output_verbose_link_cmd"`; do
  39792. + case $p in
  39793. +
  39794. + -L* | -R* | -l*)
  39795. + # Some compilers place space between "-{L,R}" and the path.
  39796. + # Remove the space.
  39797. + if test $p = "-L" ||
  39798. + test $p = "-R"; then
  39799. + prev=$p
  39800. + continue
  39801. + else
  39802. + prev=
  39803. + fi
  39804. +
  39805. + if test "$pre_test_object_deps_done" = no; then
  39806. + case $p in
  39807. + -L* | -R*)
  39808. + # Internal compiler library paths should come after those
  39809. + # provided the user. The postdeps already come after the
  39810. + # user supplied libs so there is no need to process them.
  39811. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  39812. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  39813. + else
  39814. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  39815. + fi
  39816. + ;;
  39817. + # The "-l" case would never come before the object being
  39818. + # linked, so don't bother handling this case.
  39819. + esac
  39820. + else
  39821. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  39822. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  39823. + else
  39824. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  39825. + fi
  39826. + fi
  39827. + ;;
  39828. +
  39829. + *.$objext)
  39830. + # This assumes that the test object file only shows up
  39831. + # once in the compiler output.
  39832. + if test "$p" = "conftest.$objext"; then
  39833. + pre_test_object_deps_done=yes
  39834. + continue
  39835. + fi
  39836. +
  39837. + if test "$pre_test_object_deps_done" = no; then
  39838. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  39839. + _LT_TAGVAR(predep_objects, $1)="$p"
  39840. + else
  39841. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  39842. + fi
  39843. + else
  39844. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  39845. + _LT_TAGVAR(postdep_objects, $1)="$p"
  39846. + else
  39847. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  39848. + fi
  39849. + fi
  39850. + ;;
  39851. +
  39852. + *) ;; # Ignore the rest.
  39853. +
  39854. + esac
  39855. + done
  39856. +
  39857. + # Clean up.
  39858. + rm -f a.out a.exe
  39859. +else
  39860. + echo "libtool.m4: error: problem compiling $1 test program"
  39861. +fi
  39862. +
  39863. +$RM -f confest.$objext
  39864. +
  39865. +# PORTME: override above test on systems where it is broken
  39866. +m4_if([$1], [CXX],
  39867. +[case $host_os in
  39868. +interix[[3-9]]*)
  39869. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  39870. + # hack all around it, let's just trust "g++" to DTRT.
  39871. + _LT_TAGVAR(predep_objects,$1)=
  39872. + _LT_TAGVAR(postdep_objects,$1)=
  39873. + _LT_TAGVAR(postdeps,$1)=
  39874. + ;;
  39875. +
  39876. +linux*)
  39877. + case `$CC -V 2>&1 | sed 5q` in
  39878. + *Sun\ C*)
  39879. + # Sun C++ 5.9
  39880. +
  39881. + # The more standards-conforming stlport4 library is
  39882. + # incompatible with the Cstd library. Avoid specifying
  39883. + # it if it's in CXXFLAGS. Ignore libCrun as
  39884. + # -library=stlport4 depends on it.
  39885. + case " $CXX $CXXFLAGS " in
  39886. + *" -library=stlport4 "*)
  39887. + solaris_use_stlport4=yes
  39888. + ;;
  39889. + esac
  39890. +
  39891. + if test "$solaris_use_stlport4" != yes; then
  39892. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  39893. + fi
  39894. + ;;
  39895. + esac
  39896. + ;;
  39897. +
  39898. +solaris*)
  39899. + case $cc_basename in
  39900. + CC*)
  39901. + # The more standards-conforming stlport4 library is
  39902. + # incompatible with the Cstd library. Avoid specifying
  39903. + # it if it's in CXXFLAGS. Ignore libCrun as
  39904. + # -library=stlport4 depends on it.
  39905. + case " $CXX $CXXFLAGS " in
  39906. + *" -library=stlport4 "*)
  39907. + solaris_use_stlport4=yes
  39908. + ;;
  39909. + esac
  39910. +
  39911. + # Adding this requires a known-good setup of shared libraries for
  39912. + # Sun compiler versions before 5.6, else PIC objects from an old
  39913. + # archive will be linked into the output, leading to subtle bugs.
  39914. + if test "$solaris_use_stlport4" != yes; then
  39915. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  39916. + fi
  39917. + ;;
  39918. + esac
  39919. + ;;
  39920. +esac
  39921. +])
  39922. +
  39923. +case " $_LT_TAGVAR(postdeps, $1) " in
  39924. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  39925. +esac
  39926. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  39927. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  39928. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  39929. +fi
  39930. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  39931. + [The directories searched by this compiler when creating a shared library])
  39932. +_LT_TAGDECL([], [predep_objects], [1],
  39933. + [Dependencies to place before and after the objects being linked to
  39934. + create a shared library])
  39935. +_LT_TAGDECL([], [postdep_objects], [1])
  39936. +_LT_TAGDECL([], [predeps], [1])
  39937. +_LT_TAGDECL([], [postdeps], [1])
  39938. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  39939. + [The library search path used internally by the compiler when linking
  39940. + a shared library])
  39941. +])# _LT_SYS_HIDDEN_LIBDEPS
  39942. +
  39943. +
  39944. +# _LT_PROG_F77
  39945. +# ------------
  39946. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  39947. +# if there is no fortran compiler, we have our own version here.
  39948. +m4_defun([_LT_PROG_F77],
  39949. +[
  39950. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  39951. +AC_PROG_F77
  39952. +if test -z "$F77" || test "X$F77" = "Xno"; then
  39953. + _lt_disable_F77=yes
  39954. +fi
  39955. +popdef([AC_MSG_ERROR])
  39956. +])# _LT_PROG_F77
  39957. +
  39958. +dnl aclocal-1.4 backwards compatibility:
  39959. +dnl AC_DEFUN([_LT_PROG_F77], [])
  39960. +
  39961. +
  39962. +# _LT_LANG_F77_CONFIG([TAG])
  39963. +# --------------------------
  39964. +# Ensure that the configuration variables for a Fortran 77 compiler are
  39965. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  39966. +# to write the compiler configuration to `libtool'.
  39967. +m4_defun([_LT_LANG_F77_CONFIG],
  39968. +[AC_REQUIRE([_LT_PROG_F77])dnl
  39969. +AC_LANG_PUSH(Fortran 77)
  39970. +
  39971. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39972. +_LT_TAGVAR(allow_undefined_flag, $1)=
  39973. +_LT_TAGVAR(always_export_symbols, $1)=no
  39974. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  39975. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  39976. +_LT_TAGVAR(hardcode_direct, $1)=no
  39977. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  39978. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  39979. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  39980. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  39981. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  39982. +_LT_TAGVAR(hardcode_automatic, $1)=no
  39983. +_LT_TAGVAR(inherit_rpath, $1)=no
  39984. +_LT_TAGVAR(module_cmds, $1)=
  39985. +_LT_TAGVAR(module_expsym_cmds, $1)=
  39986. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  39987. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  39988. +_LT_TAGVAR(no_undefined_flag, $1)=
  39989. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  39990. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  39991. +
  39992. +# Source file extension for f77 test sources.
  39993. +ac_ext=f
  39994. +
  39995. +# Object file extension for compiled f77 test sources.
  39996. +objext=o
  39997. +_LT_TAGVAR(objext, $1)=$objext
  39998. +
  39999. +# No sense in running all these tests if we already determined that
  40000. +# the F77 compiler isn't working. Some variables (like enable_shared)
  40001. +# are currently assumed to apply to all compilers on this platform,
  40002. +# and will be corrupted by setting them based on a non-working compiler.
  40003. +if test "$_lt_disable_F77" != yes; then
  40004. + # Code to be used in simple compile tests
  40005. + lt_simple_compile_test_code="\
  40006. + subroutine t
  40007. + return
  40008. + end
  40009. +"
  40010. +
  40011. + # Code to be used in simple link tests
  40012. + lt_simple_link_test_code="\
  40013. + program t
  40014. + end
  40015. +"
  40016. +
  40017. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40018. + _LT_TAG_COMPILER
  40019. +
  40020. + # save warnings/boilerplate of simple test code
  40021. + _LT_COMPILER_BOILERPLATE
  40022. + _LT_LINKER_BOILERPLATE
  40023. +
  40024. + # Allow CC to be a program name with arguments.
  40025. + lt_save_CC="$CC"
  40026. + lt_save_GCC=$GCC
  40027. + CC=${F77-"f77"}
  40028. + compiler=$CC
  40029. + _LT_TAGVAR(compiler, $1)=$CC
  40030. + _LT_CC_BASENAME([$compiler])
  40031. + GCC=$G77
  40032. + if test -n "$compiler"; then
  40033. + AC_MSG_CHECKING([if libtool supports shared libraries])
  40034. + AC_MSG_RESULT([$can_build_shared])
  40035. +
  40036. + AC_MSG_CHECKING([whether to build shared libraries])
  40037. + test "$can_build_shared" = "no" && enable_shared=no
  40038. +
  40039. + # On AIX, shared libraries and static libraries use the same namespace, and
  40040. + # are all built from PIC.
  40041. + case $host_os in
  40042. + aix3*)
  40043. + test "$enable_shared" = yes && enable_static=no
  40044. + if test -n "$RANLIB"; then
  40045. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  40046. + postinstall_cmds='$RANLIB $lib'
  40047. + fi
  40048. + ;;
  40049. + aix[[4-9]]*)
  40050. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  40051. + test "$enable_shared" = yes && enable_static=no
  40052. + fi
  40053. + ;;
  40054. + esac
  40055. + AC_MSG_RESULT([$enable_shared])
  40056. +
  40057. + AC_MSG_CHECKING([whether to build static libraries])
  40058. + # Make sure either enable_shared or enable_static is yes.
  40059. + test "$enable_shared" = yes || enable_static=yes
  40060. + AC_MSG_RESULT([$enable_static])
  40061. +
  40062. + _LT_TAGVAR(GCC, $1)="$G77"
  40063. + _LT_TAGVAR(LD, $1)="$LD"
  40064. +
  40065. + ## CAVEAT EMPTOR:
  40066. + ## There is no encapsulation within the following macros, do not change
  40067. + ## the running order or otherwise move them around unless you know exactly
  40068. + ## what you are doing...
  40069. + _LT_COMPILER_PIC($1)
  40070. + _LT_COMPILER_C_O($1)
  40071. + _LT_COMPILER_FILE_LOCKS($1)
  40072. + _LT_LINKER_SHLIBS($1)
  40073. + _LT_SYS_DYNAMIC_LINKER($1)
  40074. + _LT_LINKER_HARDCODE_LIBPATH($1)
  40075. +
  40076. + _LT_CONFIG($1)
  40077. + fi # test -n "$compiler"
  40078. +
  40079. + GCC=$lt_save_GCC
  40080. + CC="$lt_save_CC"
  40081. +fi # test "$_lt_disable_F77" != yes
  40082. +
  40083. +AC_LANG_POP
  40084. +])# _LT_LANG_F77_CONFIG
  40085. +
  40086. +
  40087. +# _LT_PROG_FC
  40088. +# -----------
  40089. +# Since AC_PROG_FC is broken, in that it returns the empty string
  40090. +# if there is no fortran compiler, we have our own version here.
  40091. +m4_defun([_LT_PROG_FC],
  40092. +[
  40093. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  40094. +AC_PROG_FC
  40095. +if test -z "$FC" || test "X$FC" = "Xno"; then
  40096. + _lt_disable_FC=yes
  40097. +fi
  40098. +popdef([AC_MSG_ERROR])
  40099. +])# _LT_PROG_FC
  40100. +
  40101. +dnl aclocal-1.4 backwards compatibility:
  40102. +dnl AC_DEFUN([_LT_PROG_FC], [])
  40103. +
  40104. +
  40105. +# _LT_LANG_FC_CONFIG([TAG])
  40106. +# -------------------------
  40107. +# Ensure that the configuration variables for a Fortran compiler are
  40108. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  40109. +# to write the compiler configuration to `libtool'.
  40110. +m4_defun([_LT_LANG_FC_CONFIG],
  40111. +[AC_REQUIRE([_LT_PROG_FC])dnl
  40112. +AC_LANG_PUSH(Fortran)
  40113. +
  40114. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40115. +_LT_TAGVAR(allow_undefined_flag, $1)=
  40116. +_LT_TAGVAR(always_export_symbols, $1)=no
  40117. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  40118. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  40119. +_LT_TAGVAR(hardcode_direct, $1)=no
  40120. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  40121. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  40122. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  40123. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  40124. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  40125. +_LT_TAGVAR(hardcode_automatic, $1)=no
  40126. +_LT_TAGVAR(inherit_rpath, $1)=no
  40127. +_LT_TAGVAR(module_cmds, $1)=
  40128. +_LT_TAGVAR(module_expsym_cmds, $1)=
  40129. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  40130. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  40131. +_LT_TAGVAR(no_undefined_flag, $1)=
  40132. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  40133. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  40134. +
  40135. +# Source file extension for fc test sources.
  40136. +ac_ext=${ac_fc_srcext-f}
  40137. +
  40138. +# Object file extension for compiled fc test sources.
  40139. +objext=o
  40140. +_LT_TAGVAR(objext, $1)=$objext
  40141. +
  40142. +# No sense in running all these tests if we already determined that
  40143. +# the FC compiler isn't working. Some variables (like enable_shared)
  40144. +# are currently assumed to apply to all compilers on this platform,
  40145. +# and will be corrupted by setting them based on a non-working compiler.
  40146. +if test "$_lt_disable_FC" != yes; then
  40147. + # Code to be used in simple compile tests
  40148. + lt_simple_compile_test_code="\
  40149. + subroutine t
  40150. + return
  40151. + end
  40152. +"
  40153. +
  40154. + # Code to be used in simple link tests
  40155. + lt_simple_link_test_code="\
  40156. + program t
  40157. + end
  40158. +"
  40159. +
  40160. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40161. + _LT_TAG_COMPILER
  40162. +
  40163. + # save warnings/boilerplate of simple test code
  40164. + _LT_COMPILER_BOILERPLATE
  40165. + _LT_LINKER_BOILERPLATE
  40166. +
  40167. + # Allow CC to be a program name with arguments.
  40168. + lt_save_CC="$CC"
  40169. + lt_save_GCC=$GCC
  40170. + CC=${FC-"f95"}
  40171. + compiler=$CC
  40172. + GCC=$ac_cv_fc_compiler_gnu
  40173. +
  40174. + _LT_TAGVAR(compiler, $1)=$CC
  40175. + _LT_CC_BASENAME([$compiler])
  40176. +
  40177. + if test -n "$compiler"; then
  40178. + AC_MSG_CHECKING([if libtool supports shared libraries])
  40179. + AC_MSG_RESULT([$can_build_shared])
  40180. +
  40181. + AC_MSG_CHECKING([whether to build shared libraries])
  40182. + test "$can_build_shared" = "no" && enable_shared=no
  40183. +
  40184. + # On AIX, shared libraries and static libraries use the same namespace, and
  40185. + # are all built from PIC.
  40186. + case $host_os in
  40187. + aix3*)
  40188. + test "$enable_shared" = yes && enable_static=no
  40189. + if test -n "$RANLIB"; then
  40190. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  40191. + postinstall_cmds='$RANLIB $lib'
  40192. + fi
  40193. + ;;
  40194. + aix[[4-9]]*)
  40195. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  40196. + test "$enable_shared" = yes && enable_static=no
  40197. + fi
  40198. + ;;
  40199. + esac
  40200. + AC_MSG_RESULT([$enable_shared])
  40201. +
  40202. + AC_MSG_CHECKING([whether to build static libraries])
  40203. + # Make sure either enable_shared or enable_static is yes.
  40204. + test "$enable_shared" = yes || enable_static=yes
  40205. + AC_MSG_RESULT([$enable_static])
  40206. +
  40207. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  40208. + _LT_TAGVAR(LD, $1)="$LD"
  40209. +
  40210. + ## CAVEAT EMPTOR:
  40211. + ## There is no encapsulation within the following macros, do not change
  40212. + ## the running order or otherwise move them around unless you know exactly
  40213. + ## what you are doing...
  40214. + _LT_SYS_HIDDEN_LIBDEPS($1)
  40215. + _LT_COMPILER_PIC($1)
  40216. + _LT_COMPILER_C_O($1)
  40217. + _LT_COMPILER_FILE_LOCKS($1)
  40218. + _LT_LINKER_SHLIBS($1)
  40219. + _LT_SYS_DYNAMIC_LINKER($1)
  40220. + _LT_LINKER_HARDCODE_LIBPATH($1)
  40221. +
  40222. + _LT_CONFIG($1)
  40223. + fi # test -n "$compiler"
  40224. +
  40225. + GCC=$lt_save_GCC
  40226. + CC="$lt_save_CC"
  40227. +fi # test "$_lt_disable_FC" != yes
  40228. +
  40229. +AC_LANG_POP
  40230. +])# _LT_LANG_FC_CONFIG
  40231. +
  40232. +
  40233. +# _LT_LANG_GCJ_CONFIG([TAG])
  40234. +# --------------------------
  40235. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  40236. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  40237. +# to write the compiler configuration to `libtool'.
  40238. +m4_defun([_LT_LANG_GCJ_CONFIG],
  40239. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  40240. +AC_LANG_SAVE
  40241. +
  40242. +# Source file extension for Java test sources.
  40243. +ac_ext=java
  40244. +
  40245. +# Object file extension for compiled Java test sources.
  40246. +objext=o
  40247. +_LT_TAGVAR(objext, $1)=$objext
  40248. +
  40249. +# Code to be used in simple compile tests
  40250. +lt_simple_compile_test_code="class foo {}"
  40251. +
  40252. +# Code to be used in simple link tests
  40253. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  40254. +
  40255. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40256. +_LT_TAG_COMPILER
  40257. +
  40258. +# save warnings/boilerplate of simple test code
  40259. +_LT_COMPILER_BOILERPLATE
  40260. +_LT_LINKER_BOILERPLATE
  40261. +
  40262. +# Allow CC to be a program name with arguments.
  40263. +lt_save_CC="$CC"
  40264. +lt_save_GCC=$GCC
  40265. +GCC=yes
  40266. +CC=${GCJ-"gcj"}
  40267. +compiler=$CC
  40268. +_LT_TAGVAR(compiler, $1)=$CC
  40269. +_LT_TAGVAR(LD, $1)="$LD"
  40270. +_LT_CC_BASENAME([$compiler])
  40271. +
  40272. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  40273. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40274. +
  40275. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  40276. +
  40277. +## CAVEAT EMPTOR:
  40278. +## There is no encapsulation within the following macros, do not change
  40279. +## the running order or otherwise move them around unless you know exactly
  40280. +## what you are doing...
  40281. +if test -n "$compiler"; then
  40282. + _LT_COMPILER_NO_RTTI($1)
  40283. + _LT_COMPILER_PIC($1)
  40284. + _LT_COMPILER_C_O($1)
  40285. + _LT_COMPILER_FILE_LOCKS($1)
  40286. + _LT_LINKER_SHLIBS($1)
  40287. + _LT_LINKER_HARDCODE_LIBPATH($1)
  40288. +
  40289. + _LT_CONFIG($1)
  40290. +fi
  40291. +
  40292. +AC_LANG_RESTORE
  40293. +
  40294. +GCC=$lt_save_GCC
  40295. +CC="$lt_save_CC"
  40296. +])# _LT_LANG_GCJ_CONFIG
  40297. +
  40298. +
  40299. +# _LT_LANG_RC_CONFIG([TAG])
  40300. +# -------------------------
  40301. +# Ensure that the configuration variables for the Windows resource compiler
  40302. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  40303. +# to write the compiler configuration to `libtool'.
  40304. +m4_defun([_LT_LANG_RC_CONFIG],
  40305. +[AC_REQUIRE([LT_PROG_RC])dnl
  40306. +AC_LANG_SAVE
  40307. +
  40308. +# Source file extension for RC test sources.
  40309. +ac_ext=rc
  40310. +
  40311. +# Object file extension for compiled RC test sources.
  40312. +objext=o
  40313. +_LT_TAGVAR(objext, $1)=$objext
  40314. +
  40315. +# Code to be used in simple compile tests
  40316. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  40317. +
  40318. +# Code to be used in simple link tests
  40319. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  40320. +
  40321. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40322. +_LT_TAG_COMPILER
  40323. +
  40324. +# save warnings/boilerplate of simple test code
  40325. +_LT_COMPILER_BOILERPLATE
  40326. +_LT_LINKER_BOILERPLATE
  40327. +
  40328. +# Allow CC to be a program name with arguments.
  40329. +lt_save_CC="$CC"
  40330. +lt_save_GCC=$GCC
  40331. +GCC=
  40332. +CC=${RC-"windres"}
  40333. +compiler=$CC
  40334. +_LT_TAGVAR(compiler, $1)=$CC
  40335. +_LT_CC_BASENAME([$compiler])
  40336. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  40337. +
  40338. +if test -n "$compiler"; then
  40339. + :
  40340. + _LT_CONFIG($1)
  40341. +fi
  40342. +
  40343. +GCC=$lt_save_GCC
  40344. +AC_LANG_RESTORE
  40345. +CC="$lt_save_CC"
  40346. +])# _LT_LANG_RC_CONFIG
  40347. +
  40348. +
  40349. +# LT_PROG_GCJ
  40350. +# -----------
  40351. +AC_DEFUN([LT_PROG_GCJ],
  40352. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  40353. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  40354. + [AC_CHECK_TOOL(GCJ, gcj,)
  40355. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  40356. + AC_SUBST(GCJFLAGS)])])[]dnl
  40357. +])
  40358. +
  40359. +# Old name:
  40360. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  40361. +dnl aclocal-1.4 backwards compatibility:
  40362. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  40363. +
  40364. +
  40365. +# LT_PROG_RC
  40366. +# ----------
  40367. +AC_DEFUN([LT_PROG_RC],
  40368. +[AC_CHECK_TOOL(RC, windres,)
  40369. +])
  40370. +
  40371. +# Old name:
  40372. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  40373. +dnl aclocal-1.4 backwards compatibility:
  40374. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  40375. +
  40376. +
  40377. +# _LT_DECL_EGREP
  40378. +# --------------
  40379. +# If we don't have a new enough Autoconf to choose the best grep
  40380. +# available, choose the one first in the user's PATH.
  40381. +m4_defun([_LT_DECL_EGREP],
  40382. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  40383. +AC_REQUIRE([AC_PROG_FGREP])dnl
  40384. +test -z "$GREP" && GREP=grep
  40385. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  40386. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  40387. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  40388. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  40389. +AC_SUBST([GREP])
  40390. +])
  40391. +
  40392. +
  40393. +# _LT_DECL_OBJDUMP
  40394. +# --------------
  40395. +# If we don't have a new enough Autoconf to choose the best objdump
  40396. +# available, choose the one first in the user's PATH.
  40397. +m4_defun([_LT_DECL_OBJDUMP],
  40398. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  40399. +test -z "$OBJDUMP" && OBJDUMP=objdump
  40400. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  40401. +AC_SUBST([OBJDUMP])
  40402. +])
  40403. +
  40404. +
  40405. +# _LT_DECL_SED
  40406. +# ------------
  40407. +# Check for a fully-functional sed program, that truncates
  40408. +# as few characters as possible. Prefer GNU sed if found.
  40409. +m4_defun([_LT_DECL_SED],
  40410. +[AC_PROG_SED
  40411. +test -z "$SED" && SED=sed
  40412. +Xsed="$SED -e 1s/^X//"
  40413. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  40414. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  40415. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  40416. +])# _LT_DECL_SED
  40417. +
  40418. +m4_ifndef([AC_PROG_SED], [
  40419. +############################################################
  40420. +# NOTE: This macro has been submitted for inclusion into #
  40421. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  40422. +# a released version of Autoconf we should remove this #
  40423. +# macro and use it instead. #
  40424. +############################################################
  40425. +
  40426. +m4_defun([AC_PROG_SED],
  40427. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  40428. +AC_CACHE_VAL(lt_cv_path_SED,
  40429. +[# Loop through the user's path and test for sed and gsed.
  40430. +# Then use that list of sed's as ones to test for truncation.
  40431. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40432. +for as_dir in $PATH
  40433. +do
  40434. + IFS=$as_save_IFS
  40435. + test -z "$as_dir" && as_dir=.
  40436. + for lt_ac_prog in sed gsed; do
  40437. + for ac_exec_ext in '' $ac_executable_extensions; do
  40438. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  40439. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  40440. + fi
  40441. + done
  40442. + done
  40443. +done
  40444. +IFS=$as_save_IFS
  40445. +lt_ac_max=0
  40446. +lt_ac_count=0
  40447. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  40448. +# along with /bin/sed that truncates output.
  40449. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  40450. + test ! -f $lt_ac_sed && continue
  40451. + cat /dev/null > conftest.in
  40452. + lt_ac_count=0
  40453. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  40454. + # Check for GNU sed and select it if it is found.
  40455. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  40456. + lt_cv_path_SED=$lt_ac_sed
  40457. + break
  40458. + fi
  40459. + while true; do
  40460. + cat conftest.in conftest.in >conftest.tmp
  40461. + mv conftest.tmp conftest.in
  40462. + cp conftest.in conftest.nl
  40463. + echo >>conftest.nl
  40464. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  40465. + cmp -s conftest.out conftest.nl || break
  40466. + # 10000 chars as input seems more than enough
  40467. + test $lt_ac_count -gt 10 && break
  40468. + lt_ac_count=`expr $lt_ac_count + 1`
  40469. + if test $lt_ac_count -gt $lt_ac_max; then
  40470. + lt_ac_max=$lt_ac_count
  40471. + lt_cv_path_SED=$lt_ac_sed
  40472. + fi
  40473. + done
  40474. +done
  40475. +])
  40476. +SED=$lt_cv_path_SED
  40477. +AC_SUBST([SED])
  40478. +AC_MSG_RESULT([$SED])
  40479. +])#AC_PROG_SED
  40480. +])#m4_ifndef
  40481. +
  40482. +# Old name:
  40483. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  40484. +dnl aclocal-1.4 backwards compatibility:
  40485. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  40486. +
  40487. +
  40488. +# _LT_CHECK_SHELL_FEATURES
  40489. +# ------------------------
  40490. +# Find out whether the shell is Bourne or XSI compatible,
  40491. +# or has some other useful features.
  40492. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  40493. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  40494. +# Try some XSI features
  40495. +xsi_shell=no
  40496. +( _lt_dummy="a/b/c"
  40497. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  40498. + = c,a/b,, \
  40499. + && eval 'test $(( 1 + 1 )) -eq 2 \
  40500. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  40501. + && xsi_shell=yes
  40502. +AC_MSG_RESULT([$xsi_shell])
  40503. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  40504. +
  40505. +AC_MSG_CHECKING([whether the shell understands "+="])
  40506. +lt_shell_append=no
  40507. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  40508. + >/dev/null 2>&1 \
  40509. + && lt_shell_append=yes
  40510. +AC_MSG_RESULT([$lt_shell_append])
  40511. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  40512. +
  40513. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  40514. + lt_unset=unset
  40515. +else
  40516. + lt_unset=false
  40517. +fi
  40518. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  40519. +
  40520. +# test EBCDIC or ASCII
  40521. +case `echo X|tr X '\101'` in
  40522. + A) # ASCII based system
  40523. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  40524. + lt_SP2NL='tr \040 \012'
  40525. + lt_NL2SP='tr \015\012 \040\040'
  40526. + ;;
  40527. + *) # EBCDIC based system
  40528. + lt_SP2NL='tr \100 \n'
  40529. + lt_NL2SP='tr \r\n \100\100'
  40530. + ;;
  40531. +esac
  40532. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  40533. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  40534. +])# _LT_CHECK_SHELL_FEATURES
  40535. +
  40536. +
  40537. +# _LT_PROG_XSI_SHELLFNS
  40538. +# ---------------------
  40539. +# Bourne and XSI compatible variants of some useful shell functions.
  40540. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  40541. +[case $xsi_shell in
  40542. + yes)
  40543. + cat << \_LT_EOF >> "$cfgfile"
  40544. +
  40545. +# func_dirname file append nondir_replacement
  40546. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  40547. +# otherwise set result to NONDIR_REPLACEMENT.
  40548. +func_dirname ()
  40549. +{
  40550. + case ${1} in
  40551. + */*) func_dirname_result="${1%/*}${2}" ;;
  40552. + * ) func_dirname_result="${3}" ;;
  40553. + esac
  40554. +}
  40555. +
  40556. +# func_basename file
  40557. +func_basename ()
  40558. +{
  40559. + func_basename_result="${1##*/}"
  40560. +}
  40561. +
  40562. +# func_dirname_and_basename file append nondir_replacement
  40563. +# perform func_basename and func_dirname in a single function
  40564. +# call:
  40565. +# dirname: Compute the dirname of FILE. If nonempty,
  40566. +# add APPEND to the result, otherwise set result
  40567. +# to NONDIR_REPLACEMENT.
  40568. +# value returned in "$func_dirname_result"
  40569. +# basename: Compute filename of FILE.
  40570. +# value retuned in "$func_basename_result"
  40571. +# Implementation must be kept synchronized with func_dirname
  40572. +# and func_basename. For efficiency, we do not delegate to
  40573. +# those functions but instead duplicate the functionality here.
  40574. +func_dirname_and_basename ()
  40575. +{
  40576. + case ${1} in
  40577. + */*) func_dirname_result="${1%/*}${2}" ;;
  40578. + * ) func_dirname_result="${3}" ;;
  40579. + esac
  40580. + func_basename_result="${1##*/}"
  40581. +}
  40582. +
  40583. +# func_stripname prefix suffix name
  40584. +# strip PREFIX and SUFFIX off of NAME.
  40585. +# PREFIX and SUFFIX must not contain globbing or regex special
  40586. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  40587. +# dot (in which case that matches only a dot).
  40588. +func_stripname ()
  40589. +{
  40590. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  40591. + # positional parameters, so assign one to ordinary parameter first.
  40592. + func_stripname_result=${3}
  40593. + func_stripname_result=${func_stripname_result#"${1}"}
  40594. + func_stripname_result=${func_stripname_result%"${2}"}
  40595. +}
  40596. +
  40597. +# func_opt_split
  40598. +func_opt_split ()
  40599. +{
  40600. + func_opt_split_opt=${1%%=*}
  40601. + func_opt_split_arg=${1#*=}
  40602. +}
  40603. +
  40604. +# func_lo2o object
  40605. +func_lo2o ()
  40606. +{
  40607. + case ${1} in
  40608. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  40609. + *) func_lo2o_result=${1} ;;
  40610. + esac
  40611. +}
  40612. +
  40613. +# func_xform libobj-or-source
  40614. +func_xform ()
  40615. +{
  40616. + func_xform_result=${1%.*}.lo
  40617. +}
  40618. +
  40619. +# func_arith arithmetic-term...
  40620. +func_arith ()
  40621. +{
  40622. + func_arith_result=$(( $[*] ))
  40623. +}
  40624. +
  40625. +# func_len string
  40626. +# STRING may not start with a hyphen.
  40627. +func_len ()
  40628. +{
  40629. + func_len_result=${#1}
  40630. +}
  40631. +
  40632. +_LT_EOF
  40633. + ;;
  40634. + *) # Bourne compatible functions.
  40635. + cat << \_LT_EOF >> "$cfgfile"
  40636. +
  40637. +# func_dirname file append nondir_replacement
  40638. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  40639. +# otherwise set result to NONDIR_REPLACEMENT.
  40640. +func_dirname ()
  40641. +{
  40642. + # Extract subdirectory from the argument.
  40643. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  40644. + if test "X$func_dirname_result" = "X${1}"; then
  40645. + func_dirname_result="${3}"
  40646. + else
  40647. + func_dirname_result="$func_dirname_result${2}"
  40648. + fi
  40649. +}
  40650. +
  40651. +# func_basename file
  40652. +func_basename ()
  40653. +{
  40654. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  40655. +}
  40656. +
  40657. +dnl func_dirname_and_basename
  40658. +dnl A portable version of this function is already defined in general.m4sh
  40659. +dnl so there is no need for it here.
  40660. +
  40661. +# func_stripname prefix suffix name
  40662. +# strip PREFIX and SUFFIX off of NAME.
  40663. +# PREFIX and SUFFIX must not contain globbing or regex special
  40664. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  40665. +# dot (in which case that matches only a dot).
  40666. +# func_strip_suffix prefix name
  40667. +func_stripname ()
  40668. +{
  40669. + case ${2} in
  40670. + .*) func_stripname_result=`$ECHO "X${3}" \
  40671. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  40672. + *) func_stripname_result=`$ECHO "X${3}" \
  40673. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  40674. + esac
  40675. +}
  40676. +
  40677. +# sed scripts:
  40678. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  40679. +my_sed_long_arg='1s/^-[[^=]]*=//'
  40680. +
  40681. +# func_opt_split
  40682. +func_opt_split ()
  40683. +{
  40684. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  40685. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  40686. +}
  40687. +
  40688. +# func_lo2o object
  40689. +func_lo2o ()
  40690. +{
  40691. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  40692. +}
  40693. +
  40694. +# func_xform libobj-or-source
  40695. +func_xform ()
  40696. +{
  40697. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  40698. +}
  40699. +
  40700. +# func_arith arithmetic-term...
  40701. +func_arith ()
  40702. +{
  40703. + func_arith_result=`expr "$[@]"`
  40704. +}
  40705. +
  40706. +# func_len string
  40707. +# STRING may not start with a hyphen.
  40708. +func_len ()
  40709. +{
  40710. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  40711. +}
  40712. +
  40713. +_LT_EOF
  40714. +esac
  40715. +
  40716. +case $lt_shell_append in
  40717. + yes)
  40718. + cat << \_LT_EOF >> "$cfgfile"
  40719. +
  40720. +# func_append var value
  40721. +# Append VALUE to the end of shell variable VAR.
  40722. +func_append ()
  40723. +{
  40724. + eval "$[1]+=\$[2]"
  40725. +}
  40726. +_LT_EOF
  40727. + ;;
  40728. + *)
  40729. + cat << \_LT_EOF >> "$cfgfile"
  40730. +
  40731. +# func_append var value
  40732. +# Append VALUE to the end of shell variable VAR.
  40733. +func_append ()
  40734. +{
  40735. + eval "$[1]=\$$[1]\$[2]"
  40736. +}
  40737. +
  40738. +_LT_EOF
  40739. + ;;
  40740. + esac
  40741. +])
  40742. diff -Nur tslib-1.0.orig/m4/internal/lt~obsolete.m4 tslib-1.0/m4/internal/lt~obsolete.m4
  40743. --- tslib-1.0.orig/m4/internal/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  40744. +++ tslib-1.0/m4/internal/lt~obsolete.m4 2010-02-19 00:24:03.080854595 +0100
  40745. @@ -0,0 +1,92 @@
  40746. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  40747. +#
  40748. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  40749. +# Written by Scott James Remnant, 2004.
  40750. +#
  40751. +# This file is free software; the Free Software Foundation gives
  40752. +# unlimited permission to copy and/or distribute it, with or without
  40753. +# modifications, as long as this notice is preserved.
  40754. +
  40755. +# serial 4 lt~obsolete.m4
  40756. +
  40757. +# These exist entirely to fool aclocal when bootstrapping libtool.
  40758. +#
  40759. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  40760. +# which have later been changed to m4_define as they aren't part of the
  40761. +# exported API, or moved to Autoconf or Automake where they belong.
  40762. +#
  40763. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  40764. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  40765. +# using a macro with the same name in our local m4/libtool.m4 it'll
  40766. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  40767. +# and doesn't know about Autoconf macros at all.)
  40768. +#
  40769. +# So we provide this file, which has a silly filename so it's always
  40770. +# included after everything else. This provides aclocal with the
  40771. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  40772. +# because those macros already exist, or will be overwritten later.
  40773. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  40774. +#
  40775. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  40776. +# Yes, that means every name once taken will need to remain here until
  40777. +# we give up compatibility with versions before 1.7, at which point
  40778. +# we need to keep only those names which we still refer to.
  40779. +
  40780. +# This is to help aclocal find these macros, as it can't see m4_define.
  40781. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  40782. +
  40783. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  40784. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  40785. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  40786. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  40787. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  40788. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  40789. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  40790. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  40791. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  40792. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  40793. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  40794. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  40795. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  40796. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  40797. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  40798. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  40799. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  40800. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  40801. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  40802. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  40803. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  40804. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  40805. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  40806. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  40807. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  40808. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  40809. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  40810. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  40811. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  40812. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  40813. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  40814. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  40815. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  40816. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  40817. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  40818. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  40819. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  40820. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  40821. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  40822. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  40823. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  40824. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  40825. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  40826. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  40827. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  40828. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  40829. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  40830. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  40831. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  40832. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  40833. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  40834. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  40835. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  40836. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  40837. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  40838. diff -Nur tslib-1.0.orig/m4/internal/ltoptions.m4 tslib-1.0/m4/internal/ltoptions.m4
  40839. --- tslib-1.0.orig/m4/internal/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  40840. +++ tslib-1.0/m4/internal/ltoptions.m4 2010-02-19 00:24:02.872855189 +0100
  40841. @@ -0,0 +1,368 @@
  40842. +# Helper functions for option handling. -*- Autoconf -*-
  40843. +#
  40844. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  40845. +# Written by Gary V. Vaughan, 2004
  40846. +#
  40847. +# This file is free software; the Free Software Foundation gives
  40848. +# unlimited permission to copy and/or distribute it, with or without
  40849. +# modifications, as long as this notice is preserved.
  40850. +
  40851. +# serial 6 ltoptions.m4
  40852. +
  40853. +# This is to help aclocal find these macros, as it can't see m4_define.
  40854. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  40855. +
  40856. +
  40857. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  40858. +# ------------------------------------------
  40859. +m4_define([_LT_MANGLE_OPTION],
  40860. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  40861. +
  40862. +
  40863. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  40864. +# ---------------------------------------
  40865. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  40866. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  40867. +# saved as a flag.
  40868. +m4_define([_LT_SET_OPTION],
  40869. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  40870. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  40871. + _LT_MANGLE_DEFUN([$1], [$2]),
  40872. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  40873. +])
  40874. +
  40875. +
  40876. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  40877. +# ------------------------------------------------------------
  40878. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  40879. +m4_define([_LT_IF_OPTION],
  40880. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  40881. +
  40882. +
  40883. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  40884. +# -------------------------------------------------------
  40885. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  40886. +# are set.
  40887. +m4_define([_LT_UNLESS_OPTIONS],
  40888. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  40889. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  40890. + [m4_define([$0_found])])])[]dnl
  40891. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  40892. +])[]dnl
  40893. +])
  40894. +
  40895. +
  40896. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  40897. +# ----------------------------------------
  40898. +# OPTION-LIST is a space-separated list of Libtool options associated
  40899. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  40900. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  40901. +# the unknown option and exit.
  40902. +m4_defun([_LT_SET_OPTIONS],
  40903. +[# Set options
  40904. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  40905. + [_LT_SET_OPTION([$1], _LT_Option)])
  40906. +
  40907. +m4_if([$1],[LT_INIT],[
  40908. + dnl
  40909. + dnl Simply set some default values (i.e off) if boolean options were not
  40910. + dnl specified:
  40911. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  40912. + ])
  40913. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  40914. + ])
  40915. + dnl
  40916. + dnl If no reference was made to various pairs of opposing options, then
  40917. + dnl we run the default mode handler for the pair. For example, if neither
  40918. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  40919. + dnl archives by default:
  40920. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  40921. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  40922. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  40923. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  40924. + [_LT_ENABLE_FAST_INSTALL])
  40925. + ])
  40926. +])# _LT_SET_OPTIONS
  40927. +
  40928. +
  40929. +## --------------------------------- ##
  40930. +## Macros to handle LT_INIT options. ##
  40931. +## --------------------------------- ##
  40932. +
  40933. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  40934. +# -----------------------------------------
  40935. +m4_define([_LT_MANGLE_DEFUN],
  40936. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  40937. +
  40938. +
  40939. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  40940. +# -----------------------------------------------
  40941. +m4_define([LT_OPTION_DEFINE],
  40942. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  40943. +])# LT_OPTION_DEFINE
  40944. +
  40945. +
  40946. +# dlopen
  40947. +# ------
  40948. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  40949. +])
  40950. +
  40951. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  40952. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  40953. +AC_DIAGNOSE([obsolete],
  40954. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  40955. +put the `dlopen' option into LT_INIT's first parameter.])
  40956. +])
  40957. +
  40958. +dnl aclocal-1.4 backwards compatibility:
  40959. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  40960. +
  40961. +
  40962. +# win32-dll
  40963. +# ---------
  40964. +# Declare package support for building win32 dll's.
  40965. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  40966. +[enable_win32_dll=yes
  40967. +
  40968. +case $host in
  40969. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  40970. + AC_CHECK_TOOL(AS, as, false)
  40971. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  40972. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  40973. + ;;
  40974. +esac
  40975. +
  40976. +test -z "$AS" && AS=as
  40977. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  40978. +
  40979. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  40980. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  40981. +
  40982. +test -z "$OBJDUMP" && OBJDUMP=objdump
  40983. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  40984. +])# win32-dll
  40985. +
  40986. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  40987. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  40988. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  40989. +AC_DIAGNOSE([obsolete],
  40990. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  40991. +put the `win32-dll' option into LT_INIT's first parameter.])
  40992. +])
  40993. +
  40994. +dnl aclocal-1.4 backwards compatibility:
  40995. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  40996. +
  40997. +
  40998. +# _LT_ENABLE_SHARED([DEFAULT])
  40999. +# ----------------------------
  41000. +# implement the --enable-shared flag, and supports the `shared' and
  41001. +# `disable-shared' LT_INIT options.
  41002. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41003. +m4_define([_LT_ENABLE_SHARED],
  41004. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41005. +AC_ARG_ENABLE([shared],
  41006. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  41007. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  41008. + [p=${PACKAGE-default}
  41009. + case $enableval in
  41010. + yes) enable_shared=yes ;;
  41011. + no) enable_shared=no ;;
  41012. + *)
  41013. + enable_shared=no
  41014. + # Look at the argument we got. We use all the common list separators.
  41015. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41016. + for pkg in $enableval; do
  41017. + IFS="$lt_save_ifs"
  41018. + if test "X$pkg" = "X$p"; then
  41019. + enable_shared=yes
  41020. + fi
  41021. + done
  41022. + IFS="$lt_save_ifs"
  41023. + ;;
  41024. + esac],
  41025. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  41026. +
  41027. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  41028. + [Whether or not to build shared libraries])
  41029. +])# _LT_ENABLE_SHARED
  41030. +
  41031. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  41032. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  41033. +
  41034. +# Old names:
  41035. +AC_DEFUN([AC_ENABLE_SHARED],
  41036. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  41037. +])
  41038. +
  41039. +AC_DEFUN([AC_DISABLE_SHARED],
  41040. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  41041. +])
  41042. +
  41043. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  41044. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  41045. +
  41046. +dnl aclocal-1.4 backwards compatibility:
  41047. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  41048. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  41049. +
  41050. +
  41051. +
  41052. +# _LT_ENABLE_STATIC([DEFAULT])
  41053. +# ----------------------------
  41054. +# implement the --enable-static flag, and support the `static' and
  41055. +# `disable-static' LT_INIT options.
  41056. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41057. +m4_define([_LT_ENABLE_STATIC],
  41058. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41059. +AC_ARG_ENABLE([static],
  41060. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  41061. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  41062. + [p=${PACKAGE-default}
  41063. + case $enableval in
  41064. + yes) enable_static=yes ;;
  41065. + no) enable_static=no ;;
  41066. + *)
  41067. + enable_static=no
  41068. + # Look at the argument we got. We use all the common list separators.
  41069. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41070. + for pkg in $enableval; do
  41071. + IFS="$lt_save_ifs"
  41072. + if test "X$pkg" = "X$p"; then
  41073. + enable_static=yes
  41074. + fi
  41075. + done
  41076. + IFS="$lt_save_ifs"
  41077. + ;;
  41078. + esac],
  41079. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  41080. +
  41081. + _LT_DECL([build_old_libs], [enable_static], [0],
  41082. + [Whether or not to build static libraries])
  41083. +])# _LT_ENABLE_STATIC
  41084. +
  41085. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  41086. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  41087. +
  41088. +# Old names:
  41089. +AC_DEFUN([AC_ENABLE_STATIC],
  41090. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  41091. +])
  41092. +
  41093. +AC_DEFUN([AC_DISABLE_STATIC],
  41094. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  41095. +])
  41096. +
  41097. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  41098. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  41099. +
  41100. +dnl aclocal-1.4 backwards compatibility:
  41101. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  41102. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  41103. +
  41104. +
  41105. +
  41106. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  41107. +# ----------------------------------
  41108. +# implement the --enable-fast-install flag, and support the `fast-install'
  41109. +# and `disable-fast-install' LT_INIT options.
  41110. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41111. +m4_define([_LT_ENABLE_FAST_INSTALL],
  41112. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41113. +AC_ARG_ENABLE([fast-install],
  41114. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  41115. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  41116. + [p=${PACKAGE-default}
  41117. + case $enableval in
  41118. + yes) enable_fast_install=yes ;;
  41119. + no) enable_fast_install=no ;;
  41120. + *)
  41121. + enable_fast_install=no
  41122. + # Look at the argument we got. We use all the common list separators.
  41123. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41124. + for pkg in $enableval; do
  41125. + IFS="$lt_save_ifs"
  41126. + if test "X$pkg" = "X$p"; then
  41127. + enable_fast_install=yes
  41128. + fi
  41129. + done
  41130. + IFS="$lt_save_ifs"
  41131. + ;;
  41132. + esac],
  41133. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  41134. +
  41135. +_LT_DECL([fast_install], [enable_fast_install], [0],
  41136. + [Whether or not to optimize for fast installation])dnl
  41137. +])# _LT_ENABLE_FAST_INSTALL
  41138. +
  41139. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  41140. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  41141. +
  41142. +# Old names:
  41143. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  41144. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  41145. +AC_DIAGNOSE([obsolete],
  41146. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  41147. +the `fast-install' option into LT_INIT's first parameter.])
  41148. +])
  41149. +
  41150. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  41151. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  41152. +AC_DIAGNOSE([obsolete],
  41153. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  41154. +the `disable-fast-install' option into LT_INIT's first parameter.])
  41155. +])
  41156. +
  41157. +dnl aclocal-1.4 backwards compatibility:
  41158. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  41159. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  41160. +
  41161. +
  41162. +# _LT_WITH_PIC([MODE])
  41163. +# --------------------
  41164. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  41165. +# LT_INIT options.
  41166. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  41167. +m4_define([_LT_WITH_PIC],
  41168. +[AC_ARG_WITH([pic],
  41169. + [AS_HELP_STRING([--with-pic],
  41170. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  41171. + [pic_mode="$withval"],
  41172. + [pic_mode=default])
  41173. +
  41174. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  41175. +
  41176. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  41177. +])# _LT_WITH_PIC
  41178. +
  41179. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  41180. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  41181. +
  41182. +# Old name:
  41183. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  41184. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  41185. +AC_DIAGNOSE([obsolete],
  41186. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  41187. +put the `pic-only' option into LT_INIT's first parameter.])
  41188. +])
  41189. +
  41190. +dnl aclocal-1.4 backwards compatibility:
  41191. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  41192. +
  41193. +## ----------------- ##
  41194. +## LTDL_INIT Options ##
  41195. +## ----------------- ##
  41196. +
  41197. +m4_define([_LTDL_MODE], [])
  41198. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  41199. + [m4_define([_LTDL_MODE], [nonrecursive])])
  41200. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  41201. + [m4_define([_LTDL_MODE], [recursive])])
  41202. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  41203. + [m4_define([_LTDL_MODE], [subproject])])
  41204. +
  41205. +m4_define([_LTDL_TYPE], [])
  41206. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  41207. + [m4_define([_LTDL_TYPE], [installable])])
  41208. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  41209. + [m4_define([_LTDL_TYPE], [convenience])])
  41210. diff -Nur tslib-1.0.orig/m4/internal/ltsugar.m4 tslib-1.0/m4/internal/ltsugar.m4
  41211. --- tslib-1.0.orig/m4/internal/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  41212. +++ tslib-1.0/m4/internal/ltsugar.m4 2010-02-19 00:24:02.940856593 +0100
  41213. @@ -0,0 +1,123 @@
  41214. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  41215. +#
  41216. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  41217. +# Written by Gary V. Vaughan, 2004
  41218. +#
  41219. +# This file is free software; the Free Software Foundation gives
  41220. +# unlimited permission to copy and/or distribute it, with or without
  41221. +# modifications, as long as this notice is preserved.
  41222. +
  41223. +# serial 6 ltsugar.m4
  41224. +
  41225. +# This is to help aclocal find these macros, as it can't see m4_define.
  41226. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  41227. +
  41228. +
  41229. +# lt_join(SEP, ARG1, [ARG2...])
  41230. +# -----------------------------
  41231. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  41232. +# associated separator.
  41233. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  41234. +# versions in m4sugar had bugs.
  41235. +m4_define([lt_join],
  41236. +[m4_if([$#], [1], [],
  41237. + [$#], [2], [[$2]],
  41238. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  41239. +m4_define([_lt_join],
  41240. +[m4_if([$#$2], [2], [],
  41241. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  41242. +
  41243. +
  41244. +# lt_car(LIST)
  41245. +# lt_cdr(LIST)
  41246. +# ------------
  41247. +# Manipulate m4 lists.
  41248. +# These macros are necessary as long as will still need to support
  41249. +# Autoconf-2.59 which quotes differently.
  41250. +m4_define([lt_car], [[$1]])
  41251. +m4_define([lt_cdr],
  41252. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  41253. + [$#], 1, [],
  41254. + [m4_dquote(m4_shift($@))])])
  41255. +m4_define([lt_unquote], $1)
  41256. +
  41257. +
  41258. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  41259. +# ------------------------------------------
  41260. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  41261. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  41262. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  41263. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  41264. +# than defined and empty).
  41265. +#
  41266. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  41267. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  41268. +m4_define([lt_append],
  41269. +[m4_define([$1],
  41270. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  41271. +
  41272. +
  41273. +
  41274. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  41275. +# ----------------------------------------------------------
  41276. +# Produce a SEP delimited list of all paired combinations of elements of
  41277. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  41278. +# has the form PREFIXmINFIXSUFFIXn.
  41279. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  41280. +m4_define([lt_combine],
  41281. +[m4_if(m4_eval([$# > 3]), [1],
  41282. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  41283. +[[m4_foreach([_Lt_prefix], [$2],
  41284. + [m4_foreach([_Lt_suffix],
  41285. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  41286. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  41287. +
  41288. +
  41289. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  41290. +# -----------------------------------------------------------------------
  41291. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  41292. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  41293. +m4_define([lt_if_append_uniq],
  41294. +[m4_ifdef([$1],
  41295. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  41296. + [lt_append([$1], [$2], [$3])$4],
  41297. + [$5])],
  41298. + [lt_append([$1], [$2], [$3])$4])])
  41299. +
  41300. +
  41301. +# lt_dict_add(DICT, KEY, VALUE)
  41302. +# -----------------------------
  41303. +m4_define([lt_dict_add],
  41304. +[m4_define([$1($2)], [$3])])
  41305. +
  41306. +
  41307. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  41308. +# --------------------------------------------
  41309. +m4_define([lt_dict_add_subkey],
  41310. +[m4_define([$1($2:$3)], [$4])])
  41311. +
  41312. +
  41313. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  41314. +# ----------------------------------
  41315. +m4_define([lt_dict_fetch],
  41316. +[m4_ifval([$3],
  41317. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  41318. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  41319. +
  41320. +
  41321. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  41322. +# -----------------------------------------------------------------
  41323. +m4_define([lt_if_dict_fetch],
  41324. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  41325. + [$5],
  41326. + [$6])])
  41327. +
  41328. +
  41329. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  41330. +# --------------------------------------------------------------
  41331. +m4_define([lt_dict_filter],
  41332. +[m4_if([$5], [], [],
  41333. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  41334. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  41335. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  41336. +])
  41337. diff -Nur tslib-1.0.orig/m4/internal/ltversion.m4 tslib-1.0/m4/internal/ltversion.m4
  41338. --- tslib-1.0.orig/m4/internal/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  41339. +++ tslib-1.0/m4/internal/ltversion.m4 2010-02-19 00:24:03.008854921 +0100
  41340. @@ -0,0 +1,23 @@
  41341. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  41342. +#
  41343. +# Copyright (C) 2004 Free Software Foundation, Inc.
  41344. +# Written by Scott James Remnant, 2004
  41345. +#
  41346. +# This file is free software; the Free Software Foundation gives
  41347. +# unlimited permission to copy and/or distribute it, with or without
  41348. +# modifications, as long as this notice is preserved.
  41349. +
  41350. +# Generated from ltversion.in.
  41351. +
  41352. +# serial 3017 ltversion.m4
  41353. +# This file is part of GNU Libtool
  41354. +
  41355. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  41356. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  41357. +
  41358. +AC_DEFUN([LTVERSION_VERSION],
  41359. +[macro_version='2.2.6b'
  41360. +macro_revision='1.3017'
  41361. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  41362. +_LT_DECL(, macro_revision, 0)
  41363. +])
  41364. diff -Nur tslib-1.0.orig/Makefile.in tslib-1.0/Makefile.in
  41365. --- tslib-1.0.orig/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  41366. +++ tslib-1.0/Makefile.in 2010-02-19 00:24:15.948852025 +0100
  41367. @@ -0,0 +1,800 @@
  41368. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  41369. +# @configure_input@
  41370. +
  41371. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  41372. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  41373. +# Inc.
  41374. +# This Makefile.in is free software; the Free Software Foundation
  41375. +# gives unlimited permission to copy and/or distribute it,
  41376. +# with or without modifications, as long as this notice is preserved.
  41377. +
  41378. +# This program is distributed in the hope that it will be useful,
  41379. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  41380. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  41381. +# PARTICULAR PURPOSE.
  41382. +
  41383. +@SET_MAKE@
  41384. +
  41385. +#
  41386. +# tslib/Makefile.am
  41387. +#
  41388. +# Copyright (C) 2001 Russell King.
  41389. +#
  41390. +# This file is placed under the LGPL. Please see the file
  41391. +# COPYING for more details.
  41392. +#
  41393. +# $Id: Makefile.am,v 1.3 2005/02/28 18:56:09 kergoth Exp $
  41394. +#
  41395. +
  41396. +VPATH = @srcdir@
  41397. +pkgdatadir = $(datadir)/@PACKAGE@
  41398. +pkgincludedir = $(includedir)/@PACKAGE@
  41399. +pkglibdir = $(libdir)/@PACKAGE@
  41400. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  41401. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  41402. +install_sh_DATA = $(install_sh) -c -m 644
  41403. +install_sh_PROGRAM = $(install_sh) -c
  41404. +install_sh_SCRIPT = $(install_sh) -c
  41405. +INSTALL_HEADER = $(INSTALL_DATA)
  41406. +transform = $(program_transform_name)
  41407. +NORMAL_INSTALL = :
  41408. +PRE_INSTALL = :
  41409. +POST_INSTALL = :
  41410. +NORMAL_UNINSTALL = :
  41411. +PRE_UNINSTALL = :
  41412. +POST_UNINSTALL = :
  41413. +build_triplet = @build@
  41414. +host_triplet = @host@
  41415. +subdir = .
  41416. +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  41417. + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  41418. + $(srcdir)/tslib.pc.in $(top_srcdir)/configure AUTHORS COPYING \
  41419. + ChangeLog INSTALL NEWS config.guess config.sub depcomp \
  41420. + install-sh ltmain.sh missing
  41421. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  41422. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  41423. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  41424. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  41425. + $(top_srcdir)/m4/internal/ltversion.m4 \
  41426. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  41427. + $(top_srcdir)/m4/internal/visibility.m4 \
  41428. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  41429. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  41430. + $(ACLOCAL_M4)
  41431. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  41432. + configure.lineno config.status.lineno
  41433. +mkinstalldirs = $(install_sh) -d
  41434. +CONFIG_HEADER = config.h
  41435. +CONFIG_CLEAN_FILES =
  41436. +CONFIG_CLEAN_VPATH_FILES =
  41437. +SOURCES =
  41438. +DIST_SOURCES =
  41439. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  41440. + html-recursive info-recursive install-data-recursive \
  41441. + install-dvi-recursive install-exec-recursive \
  41442. + install-html-recursive install-info-recursive \
  41443. + install-pdf-recursive install-ps-recursive install-recursive \
  41444. + installcheck-recursive installdirs-recursive pdf-recursive \
  41445. + ps-recursive uninstall-recursive
  41446. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  41447. +am__vpath_adj = case $$p in \
  41448. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  41449. + *) f=$$p;; \
  41450. + esac;
  41451. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  41452. +am__install_max = 40
  41453. +am__nobase_strip_setup = \
  41454. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  41455. +am__nobase_strip = \
  41456. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  41457. +am__nobase_list = $(am__nobase_strip_setup); \
  41458. + for p in $$list; do echo "$$p $$p"; done | \
  41459. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  41460. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  41461. + if (++n[$$2] == $(am__install_max)) \
  41462. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  41463. + END { for (dir in files) print dir, files[dir] }'
  41464. +am__base_list = \
  41465. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  41466. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  41467. +am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  41468. +DATA = $(pkgconfig_DATA)
  41469. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  41470. + distclean-recursive maintainer-clean-recursive
  41471. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  41472. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  41473. + distdir dist dist-all distcheck
  41474. +ETAGS = etags
  41475. +CTAGS = ctags
  41476. +DIST_SUBDIRS = $(SUBDIRS)
  41477. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  41478. +distdir = $(PACKAGE)-$(VERSION)
  41479. +top_distdir = $(distdir)
  41480. +am__remove_distdir = \
  41481. + { test ! -d "$(distdir)" \
  41482. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  41483. + && rm -fr "$(distdir)"; }; }
  41484. +am__relativize = \
  41485. + dir0=`pwd`; \
  41486. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  41487. + sed_rest='s,^[^/]*/*,,'; \
  41488. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  41489. + sed_butlast='s,/*[^/]*$$,,'; \
  41490. + while test -n "$$dir1"; do \
  41491. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  41492. + if test "$$first" != "."; then \
  41493. + if test "$$first" = ".."; then \
  41494. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  41495. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  41496. + else \
  41497. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  41498. + if test "$$first2" = "$$first"; then \
  41499. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  41500. + else \
  41501. + dir2="../$$dir2"; \
  41502. + fi; \
  41503. + dir0="$$dir0"/"$$first"; \
  41504. + fi; \
  41505. + fi; \
  41506. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  41507. + done; \
  41508. + reldir="$$dir2"
  41509. +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  41510. +GZIP_ENV = --best
  41511. +distuninstallcheck_listfiles = find . -type f -print
  41512. +distcleancheck_listfiles = find . -type f -print
  41513. +ACLOCAL = @ACLOCAL@
  41514. +ALLOCA = @ALLOCA@
  41515. +AMTAR = @AMTAR@
  41516. +AR = @AR@
  41517. +AUTOCONF = @AUTOCONF@
  41518. +AUTOHEADER = @AUTOHEADER@
  41519. +AUTOMAKE = @AUTOMAKE@
  41520. +AWK = @AWK@
  41521. +CC = @CC@
  41522. +CCDEPMODE = @CCDEPMODE@
  41523. +CFLAGS = @CFLAGS@
  41524. +CPP = @CPP@
  41525. +CPPFLAGS = @CPPFLAGS@
  41526. +CXX = @CXX@
  41527. +CXXCPP = @CXXCPP@
  41528. +CXXDEPMODE = @CXXDEPMODE@
  41529. +CXXFLAGS = @CXXFLAGS@
  41530. +CYGPATH_W = @CYGPATH_W@
  41531. +DEBUGFLAGS = @DEBUGFLAGS@
  41532. +DEFS = @DEFS@
  41533. +DEPDIR = @DEPDIR@
  41534. +DSYMUTIL = @DSYMUTIL@
  41535. +DUMPBIN = @DUMPBIN@
  41536. +ECHO_C = @ECHO_C@
  41537. +ECHO_N = @ECHO_N@
  41538. +ECHO_T = @ECHO_T@
  41539. +EGREP = @EGREP@
  41540. +EXEEXT = @EXEEXT@
  41541. +FGREP = @FGREP@
  41542. +GREP = @GREP@
  41543. +INSTALL = @INSTALL@
  41544. +INSTALL_DATA = @INSTALL_DATA@
  41545. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  41546. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  41547. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  41548. +LD = @LD@
  41549. +LDFLAGS = @LDFLAGS@
  41550. +LIBFLAGS = @LIBFLAGS@
  41551. +LIBOBJS = @LIBOBJS@
  41552. +LIBS = @LIBS@
  41553. +LIBTOOL = @LIBTOOL@
  41554. +LIPO = @LIPO@
  41555. +LN_S = @LN_S@
  41556. +LTLIBOBJS = @LTLIBOBJS@
  41557. +LT_AGE = @LT_AGE@
  41558. +LT_CURRENT = @LT_CURRENT@
  41559. +LT_RELEASE = @LT_RELEASE@
  41560. +LT_REVISION = @LT_REVISION@
  41561. +MAKEINFO = @MAKEINFO@
  41562. +MKDIR_P = @MKDIR_P@
  41563. +NM = @NM@
  41564. +NMEDIT = @NMEDIT@
  41565. +OBJDUMP = @OBJDUMP@
  41566. +OBJEXT = @OBJEXT@
  41567. +OTOOL = @OTOOL@
  41568. +OTOOL64 = @OTOOL64@
  41569. +PACKAGE = @PACKAGE@
  41570. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  41571. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  41572. +PACKAGE_NAME = @PACKAGE_NAME@
  41573. +PACKAGE_STRING = @PACKAGE_STRING@
  41574. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  41575. +PACKAGE_URL = @PACKAGE_URL@
  41576. +PACKAGE_VERSION = @PACKAGE_VERSION@
  41577. +PATH_SEPARATOR = @PATH_SEPARATOR@
  41578. +PLUGIN_DIR = @PLUGIN_DIR@
  41579. +RANLIB = @RANLIB@
  41580. +SED = @SED@
  41581. +SET_MAKE = @SET_MAKE@
  41582. +SHELL = @SHELL@
  41583. +STRIP = @STRIP@
  41584. +TS_CONF = @TS_CONF@
  41585. +VERSION = @VERSION@
  41586. +VIS_CFLAGS = @VIS_CFLAGS@
  41587. +abs_builddir = @abs_builddir@
  41588. +abs_srcdir = @abs_srcdir@
  41589. +abs_top_builddir = @abs_top_builddir@
  41590. +abs_top_srcdir = @abs_top_srcdir@
  41591. +ac_ct_CC = @ac_ct_CC@
  41592. +ac_ct_CXX = @ac_ct_CXX@
  41593. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  41594. +am__include = @am__include@
  41595. +am__leading_dot = @am__leading_dot@
  41596. +am__quote = @am__quote@
  41597. +am__tar = @am__tar@
  41598. +am__untar = @am__untar@
  41599. +bindir = @bindir@
  41600. +build = @build@
  41601. +build_alias = @build_alias@
  41602. +build_cpu = @build_cpu@
  41603. +build_os = @build_os@
  41604. +build_vendor = @build_vendor@
  41605. +builddir = @builddir@
  41606. +datadir = @datadir@
  41607. +datarootdir = @datarootdir@
  41608. +docdir = @docdir@
  41609. +dvidir = @dvidir@
  41610. +exec_prefix = @exec_prefix@
  41611. +host = @host@
  41612. +host_alias = @host_alias@
  41613. +host_cpu = @host_cpu@
  41614. +host_os = @host_os@
  41615. +host_vendor = @host_vendor@
  41616. +htmldir = @htmldir@
  41617. +includedir = @includedir@
  41618. +infodir = @infodir@
  41619. +install_sh = @install_sh@
  41620. +libdir = @libdir@
  41621. +libexecdir = @libexecdir@
  41622. +localedir = @localedir@
  41623. +localstatedir = @localstatedir@
  41624. +lt_ECHO = @lt_ECHO@
  41625. +mandir = @mandir@
  41626. +mkdir_p = @mkdir_p@
  41627. +oldincludedir = @oldincludedir@
  41628. +pdfdir = @pdfdir@
  41629. +prefix = @prefix@
  41630. +program_transform_name = @program_transform_name@
  41631. +psdir = @psdir@
  41632. +sbindir = @sbindir@
  41633. +sharedstatedir = @sharedstatedir@
  41634. +srcdir = @srcdir@
  41635. +sysconfdir = @sysconfdir@
  41636. +target_alias = @target_alias@
  41637. +top_build_prefix = @top_build_prefix@
  41638. +top_builddir = @top_builddir@
  41639. +top_srcdir = @top_srcdir@
  41640. +SUBDIRS = etc src plugins tests
  41641. +EXTRA_DIST = autogen.sh
  41642. +ACLOCAL_AMFLAGS = -I m4/internal -I m4/external
  41643. +AUTOMAKE_OPTIONS = 1.6
  41644. +pkgconfigdir = $(libdir)/pkgconfig
  41645. +pkgconfig_DATA = $(PACKAGE)-$(LT_RELEASE).pc
  41646. +all: config.h
  41647. + $(MAKE) $(AM_MAKEFLAGS) all-recursive
  41648. +
  41649. +.SUFFIXES:
  41650. +am--refresh:
  41651. + @:
  41652. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  41653. + @for dep in $?; do \
  41654. + case '$(am__configure_deps)' in \
  41655. + *$$dep*) \
  41656. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  41657. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  41658. + && exit 0; \
  41659. + exit 1;; \
  41660. + esac; \
  41661. + done; \
  41662. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  41663. + $(am__cd) $(top_srcdir) && \
  41664. + $(AUTOMAKE) --gnu Makefile
  41665. +.PRECIOUS: Makefile
  41666. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  41667. + @case '$?' in \
  41668. + *config.status*) \
  41669. + echo ' $(SHELL) ./config.status'; \
  41670. + $(SHELL) ./config.status;; \
  41671. + *) \
  41672. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  41673. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  41674. + esac;
  41675. +
  41676. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  41677. + $(SHELL) ./config.status --recheck
  41678. +
  41679. +$(top_srcdir)/configure: $(am__configure_deps)
  41680. + $(am__cd) $(srcdir) && $(AUTOCONF)
  41681. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  41682. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  41683. +$(am__aclocal_m4_deps):
  41684. +
  41685. +config.h: stamp-h1
  41686. + @if test ! -f $@; then \
  41687. + rm -f stamp-h1; \
  41688. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  41689. + else :; fi
  41690. +
  41691. +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  41692. + @rm -f stamp-h1
  41693. + cd $(top_builddir) && $(SHELL) ./config.status config.h
  41694. +$(srcdir)/config.h.in: $(am__configure_deps)
  41695. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  41696. + rm -f stamp-h1
  41697. + touch $@
  41698. +
  41699. +distclean-hdr:
  41700. + -rm -f config.h stamp-h1
  41701. +
  41702. +mostlyclean-libtool:
  41703. + -rm -f *.lo
  41704. +
  41705. +clean-libtool:
  41706. + -rm -rf .libs _libs
  41707. +
  41708. +distclean-libtool:
  41709. + -rm -f libtool config.lt
  41710. +install-pkgconfigDATA: $(pkgconfig_DATA)
  41711. + @$(NORMAL_INSTALL)
  41712. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  41713. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  41714. + for p in $$list; do \
  41715. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  41716. + echo "$$d$$p"; \
  41717. + done | $(am__base_list) | \
  41718. + while read files; do \
  41719. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  41720. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  41721. + done
  41722. +
  41723. +uninstall-pkgconfigDATA:
  41724. + @$(NORMAL_UNINSTALL)
  41725. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  41726. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  41727. + test -n "$$files" || exit 0; \
  41728. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  41729. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  41730. +
  41731. +# This directory's subdirectories are mostly independent; you can cd
  41732. +# into them and run `make' without going through this Makefile.
  41733. +# To change the values of `make' variables: instead of editing Makefiles,
  41734. +# (1) if the variable is set in `config.status', edit `config.status'
  41735. +# (which will cause the Makefiles to be regenerated when you run `make');
  41736. +# (2) otherwise, pass the desired values on the `make' command line.
  41737. +$(RECURSIVE_TARGETS):
  41738. + @fail= failcom='exit 1'; \
  41739. + for f in x $$MAKEFLAGS; do \
  41740. + case $$f in \
  41741. + *=* | --[!k]*);; \
  41742. + *k*) failcom='fail=yes';; \
  41743. + esac; \
  41744. + done; \
  41745. + dot_seen=no; \
  41746. + target=`echo $@ | sed s/-recursive//`; \
  41747. + list='$(SUBDIRS)'; for subdir in $$list; do \
  41748. + echo "Making $$target in $$subdir"; \
  41749. + if test "$$subdir" = "."; then \
  41750. + dot_seen=yes; \
  41751. + local_target="$$target-am"; \
  41752. + else \
  41753. + local_target="$$target"; \
  41754. + fi; \
  41755. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  41756. + || eval $$failcom; \
  41757. + done; \
  41758. + if test "$$dot_seen" = "no"; then \
  41759. + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  41760. + fi; test -z "$$fail"
  41761. +
  41762. +$(RECURSIVE_CLEAN_TARGETS):
  41763. + @fail= failcom='exit 1'; \
  41764. + for f in x $$MAKEFLAGS; do \
  41765. + case $$f in \
  41766. + *=* | --[!k]*);; \
  41767. + *k*) failcom='fail=yes';; \
  41768. + esac; \
  41769. + done; \
  41770. + dot_seen=no; \
  41771. + case "$@" in \
  41772. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  41773. + *) list='$(SUBDIRS)' ;; \
  41774. + esac; \
  41775. + rev=''; for subdir in $$list; do \
  41776. + if test "$$subdir" = "."; then :; else \
  41777. + rev="$$subdir $$rev"; \
  41778. + fi; \
  41779. + done; \
  41780. + rev="$$rev ."; \
  41781. + target=`echo $@ | sed s/-recursive//`; \
  41782. + for subdir in $$rev; do \
  41783. + echo "Making $$target in $$subdir"; \
  41784. + if test "$$subdir" = "."; then \
  41785. + local_target="$$target-am"; \
  41786. + else \
  41787. + local_target="$$target"; \
  41788. + fi; \
  41789. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  41790. + || eval $$failcom; \
  41791. + done && test -z "$$fail"
  41792. +tags-recursive:
  41793. + list='$(SUBDIRS)'; for subdir in $$list; do \
  41794. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  41795. + done
  41796. +ctags-recursive:
  41797. + list='$(SUBDIRS)'; for subdir in $$list; do \
  41798. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  41799. + done
  41800. +
  41801. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  41802. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  41803. + unique=`for i in $$list; do \
  41804. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  41805. + done | \
  41806. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  41807. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  41808. + mkid -fID $$unique
  41809. +tags: TAGS
  41810. +
  41811. +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  41812. + $(TAGS_FILES) $(LISP)
  41813. + set x; \
  41814. + here=`pwd`; \
  41815. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  41816. + include_option=--etags-include; \
  41817. + empty_fix=.; \
  41818. + else \
  41819. + include_option=--include; \
  41820. + empty_fix=; \
  41821. + fi; \
  41822. + list='$(SUBDIRS)'; for subdir in $$list; do \
  41823. + if test "$$subdir" = .; then :; else \
  41824. + test ! -f $$subdir/TAGS || \
  41825. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  41826. + fi; \
  41827. + done; \
  41828. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  41829. + unique=`for i in $$list; do \
  41830. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  41831. + done | \
  41832. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  41833. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  41834. + shift; \
  41835. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  41836. + test -n "$$unique" || unique=$$empty_fix; \
  41837. + if test $$# -gt 0; then \
  41838. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  41839. + "$$@" $$unique; \
  41840. + else \
  41841. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  41842. + $$unique; \
  41843. + fi; \
  41844. + fi
  41845. +ctags: CTAGS
  41846. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  41847. + $(TAGS_FILES) $(LISP)
  41848. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  41849. + unique=`for i in $$list; do \
  41850. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  41851. + done | \
  41852. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  41853. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  41854. + test -z "$(CTAGS_ARGS)$$unique" \
  41855. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  41856. + $$unique
  41857. +
  41858. +GTAGS:
  41859. + here=`$(am__cd) $(top_builddir) && pwd` \
  41860. + && $(am__cd) $(top_srcdir) \
  41861. + && gtags -i $(GTAGS_ARGS) "$$here"
  41862. +
  41863. +distclean-tags:
  41864. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  41865. +
  41866. +distdir: $(DISTFILES)
  41867. + $(am__remove_distdir)
  41868. + test -d "$(distdir)" || mkdir "$(distdir)"
  41869. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  41870. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  41871. + list='$(DISTFILES)'; \
  41872. + dist_files=`for file in $$list; do echo $$file; done | \
  41873. + sed -e "s|^$$srcdirstrip/||;t" \
  41874. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  41875. + case $$dist_files in \
  41876. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  41877. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  41878. + sort -u` ;; \
  41879. + esac; \
  41880. + for file in $$dist_files; do \
  41881. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  41882. + if test -d $$d/$$file; then \
  41883. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  41884. + if test -d "$(distdir)/$$file"; then \
  41885. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41886. + fi; \
  41887. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  41888. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  41889. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41890. + fi; \
  41891. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  41892. + else \
  41893. + test -f "$(distdir)/$$file" \
  41894. + || cp -p $$d/$$file "$(distdir)/$$file" \
  41895. + || exit 1; \
  41896. + fi; \
  41897. + done
  41898. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  41899. + if test "$$subdir" = .; then :; else \
  41900. + test -d "$(distdir)/$$subdir" \
  41901. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  41902. + || exit 1; \
  41903. + fi; \
  41904. + done
  41905. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  41906. + if test "$$subdir" = .; then :; else \
  41907. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  41908. + $(am__relativize); \
  41909. + new_distdir=$$reldir; \
  41910. + dir1=$$subdir; dir2="$(top_distdir)"; \
  41911. + $(am__relativize); \
  41912. + new_top_distdir=$$reldir; \
  41913. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  41914. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  41915. + ($(am__cd) $$subdir && \
  41916. + $(MAKE) $(AM_MAKEFLAGS) \
  41917. + top_distdir="$$new_top_distdir" \
  41918. + distdir="$$new_distdir" \
  41919. + am__remove_distdir=: \
  41920. + am__skip_length_check=: \
  41921. + am__skip_mode_fix=: \
  41922. + distdir) \
  41923. + || exit 1; \
  41924. + fi; \
  41925. + done
  41926. + -test -n "$(am__skip_mode_fix)" \
  41927. + || find "$(distdir)" -type d ! -perm -755 \
  41928. + -exec chmod u+rwx,go+rx {} \; -o \
  41929. + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  41930. + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  41931. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  41932. + || chmod -R a+r "$(distdir)"
  41933. +dist-gzip: distdir
  41934. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  41935. + $(am__remove_distdir)
  41936. +dist-bzip2: distdir
  41937. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  41938. + $(am__remove_distdir)
  41939. +
  41940. +dist-lzma: distdir
  41941. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  41942. + $(am__remove_distdir)
  41943. +
  41944. +dist-xz: distdir
  41945. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  41946. + $(am__remove_distdir)
  41947. +
  41948. +dist-tarZ: distdir
  41949. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  41950. + $(am__remove_distdir)
  41951. +
  41952. +dist-shar: distdir
  41953. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  41954. + $(am__remove_distdir)
  41955. +
  41956. +dist-zip: distdir
  41957. + -rm -f $(distdir).zip
  41958. + zip -rq $(distdir).zip $(distdir)
  41959. + $(am__remove_distdir)
  41960. +
  41961. +dist dist-all: distdir
  41962. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  41963. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  41964. + $(am__remove_distdir)
  41965. +
  41966. +# This target untars the dist file and tries a VPATH configuration. Then
  41967. +# it guarantees that the distribution is self-contained by making another
  41968. +# tarfile.
  41969. +distcheck: dist
  41970. + case '$(DIST_ARCHIVES)' in \
  41971. + *.tar.gz*) \
  41972. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  41973. + *.tar.bz2*) \
  41974. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  41975. + *.tar.lzma*) \
  41976. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  41977. + *.tar.xz*) \
  41978. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  41979. + *.tar.Z*) \
  41980. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  41981. + *.shar.gz*) \
  41982. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  41983. + *.zip*) \
  41984. + unzip $(distdir).zip ;;\
  41985. + esac
  41986. + chmod -R a-w $(distdir); chmod a+w $(distdir)
  41987. + mkdir $(distdir)/_build
  41988. + mkdir $(distdir)/_inst
  41989. + chmod a-w $(distdir)
  41990. + test -d $(distdir)/_build || exit 0; \
  41991. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  41992. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  41993. + && am__cwd=`pwd` \
  41994. + && $(am__cd) $(distdir)/_build \
  41995. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  41996. + $(DISTCHECK_CONFIGURE_FLAGS) \
  41997. + && $(MAKE) $(AM_MAKEFLAGS) \
  41998. + && $(MAKE) $(AM_MAKEFLAGS) dvi \
  41999. + && $(MAKE) $(AM_MAKEFLAGS) check \
  42000. + && $(MAKE) $(AM_MAKEFLAGS) install \
  42001. + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  42002. + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  42003. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  42004. + distuninstallcheck \
  42005. + && chmod -R a-w "$$dc_install_base" \
  42006. + && ({ \
  42007. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  42008. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  42009. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  42010. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  42011. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  42012. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  42013. + && rm -rf "$$dc_destdir" \
  42014. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  42015. + && rm -rf $(DIST_ARCHIVES) \
  42016. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  42017. + && cd "$$am__cwd" \
  42018. + || exit 1
  42019. + $(am__remove_distdir)
  42020. + @(echo "$(distdir) archives ready for distribution: "; \
  42021. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  42022. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  42023. +distuninstallcheck:
  42024. + @$(am__cd) '$(distuninstallcheck_dir)' \
  42025. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  42026. + || { echo "ERROR: files left after uninstall:" ; \
  42027. + if test -n "$(DESTDIR)"; then \
  42028. + echo " (check DESTDIR support)"; \
  42029. + fi ; \
  42030. + $(distuninstallcheck_listfiles) ; \
  42031. + exit 1; } >&2
  42032. +distcleancheck: distclean
  42033. + @if test '$(srcdir)' = . ; then \
  42034. + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  42035. + exit 1 ; \
  42036. + fi
  42037. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  42038. + || { echo "ERROR: files left in build directory after distclean:" ; \
  42039. + $(distcleancheck_listfiles) ; \
  42040. + exit 1; } >&2
  42041. +check-am: all-am
  42042. +check: check-recursive
  42043. +all-am: Makefile $(DATA) config.h
  42044. +installdirs: installdirs-recursive
  42045. +installdirs-am:
  42046. + for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
  42047. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  42048. + done
  42049. +install: install-recursive
  42050. +install-exec: install-exec-recursive
  42051. +install-data: install-data-recursive
  42052. +uninstall: uninstall-recursive
  42053. +
  42054. +install-am: all-am
  42055. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  42056. +
  42057. +installcheck: installcheck-recursive
  42058. +install-strip:
  42059. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  42060. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  42061. + `test -z '$(STRIP)' || \
  42062. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  42063. +mostlyclean-generic:
  42064. +
  42065. +clean-generic:
  42066. +
  42067. +distclean-generic:
  42068. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  42069. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  42070. +
  42071. +maintainer-clean-generic:
  42072. + @echo "This command is intended for maintainers to use"
  42073. + @echo "it deletes files that may require special tools to rebuild."
  42074. +clean: clean-recursive
  42075. +
  42076. +clean-am: clean-generic clean-libtool mostlyclean-am
  42077. +
  42078. +distclean: distclean-recursive
  42079. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  42080. + -rm -f Makefile
  42081. +distclean-am: clean-am distclean-generic distclean-hdr \
  42082. + distclean-libtool distclean-tags
  42083. +
  42084. +dvi: dvi-recursive
  42085. +
  42086. +dvi-am:
  42087. +
  42088. +html: html-recursive
  42089. +
  42090. +html-am:
  42091. +
  42092. +info: info-recursive
  42093. +
  42094. +info-am:
  42095. +
  42096. +install-data-am: install-pkgconfigDATA
  42097. +
  42098. +install-dvi: install-dvi-recursive
  42099. +
  42100. +install-dvi-am:
  42101. +
  42102. +install-exec-am:
  42103. +
  42104. +install-html: install-html-recursive
  42105. +
  42106. +install-html-am:
  42107. +
  42108. +install-info: install-info-recursive
  42109. +
  42110. +install-info-am:
  42111. +
  42112. +install-man:
  42113. +
  42114. +install-pdf: install-pdf-recursive
  42115. +
  42116. +install-pdf-am:
  42117. +
  42118. +install-ps: install-ps-recursive
  42119. +
  42120. +install-ps-am:
  42121. +
  42122. +installcheck-am:
  42123. +
  42124. +maintainer-clean: maintainer-clean-recursive
  42125. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  42126. + -rm -rf $(top_srcdir)/autom4te.cache
  42127. + -rm -f Makefile
  42128. +maintainer-clean-am: distclean-am maintainer-clean-generic
  42129. +
  42130. +mostlyclean: mostlyclean-recursive
  42131. +
  42132. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  42133. +
  42134. +pdf: pdf-recursive
  42135. +
  42136. +pdf-am:
  42137. +
  42138. +ps: ps-recursive
  42139. +
  42140. +ps-am:
  42141. +
  42142. +uninstall-am: uninstall-pkgconfigDATA
  42143. +
  42144. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  42145. + ctags-recursive install-am install-strip tags-recursive
  42146. +
  42147. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  42148. + all all-am am--refresh check check-am clean clean-generic \
  42149. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  42150. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  42151. + distcheck distclean distclean-generic distclean-hdr \
  42152. + distclean-libtool distclean-tags distcleancheck distdir \
  42153. + distuninstallcheck dvi dvi-am html html-am info info-am \
  42154. + install install-am install-data install-data-am install-dvi \
  42155. + install-dvi-am install-exec install-exec-am install-html \
  42156. + install-html-am install-info install-info-am install-man \
  42157. + install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  42158. + install-ps-am install-strip installcheck installcheck-am \
  42159. + installdirs installdirs-am maintainer-clean \
  42160. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  42161. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  42162. + uninstall uninstall-am uninstall-pkgconfigDATA
  42163. +
  42164. +
  42165. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  42166. +# Otherwise a system limit (for SysV at least) may be exceeded.
  42167. +.NOEXPORT:
  42168. diff -Nur tslib-1.0.orig/missing tslib-1.0/missing
  42169. --- tslib-1.0.orig/missing 1970-01-01 01:00:00.000000000 +0100
  42170. +++ tslib-1.0/missing 2010-02-19 00:24:15.184855268 +0100
  42171. @@ -0,0 +1,376 @@
  42172. +#! /bin/sh
  42173. +# Common stub for a few missing GNU programs while installing.
  42174. +
  42175. +scriptversion=2009-04-28.21; # UTC
  42176. +
  42177. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  42178. +# 2008, 2009 Free Software Foundation, Inc.
  42179. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  42180. +
  42181. +# This program is free software; you can redistribute it and/or modify
  42182. +# it under the terms of the GNU General Public License as published by
  42183. +# the Free Software Foundation; either version 2, or (at your option)
  42184. +# any later version.
  42185. +
  42186. +# This program is distributed in the hope that it will be useful,
  42187. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42188. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42189. +# GNU General Public License for more details.
  42190. +
  42191. +# You should have received a copy of the GNU General Public License
  42192. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  42193. +
  42194. +# As a special exception to the GNU General Public License, if you
  42195. +# distribute this file as part of a program that contains a
  42196. +# configuration script generated by Autoconf, you may include it under
  42197. +# the same distribution terms that you use for the rest of that program.
  42198. +
  42199. +if test $# -eq 0; then
  42200. + echo 1>&2 "Try \`$0 --help' for more information"
  42201. + exit 1
  42202. +fi
  42203. +
  42204. +run=:
  42205. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  42206. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  42207. +
  42208. +# In the cases where this matters, `missing' is being run in the
  42209. +# srcdir already.
  42210. +if test -f configure.ac; then
  42211. + configure_ac=configure.ac
  42212. +else
  42213. + configure_ac=configure.in
  42214. +fi
  42215. +
  42216. +msg="missing on your system"
  42217. +
  42218. +case $1 in
  42219. +--run)
  42220. + # Try to run requested program, and just exit if it succeeds.
  42221. + run=
  42222. + shift
  42223. + "$@" && exit 0
  42224. + # Exit code 63 means version mismatch. This often happens
  42225. + # when the user try to use an ancient version of a tool on
  42226. + # a file that requires a minimum version. In this case we
  42227. + # we should proceed has if the program had been absent, or
  42228. + # if --run hadn't been passed.
  42229. + if test $? = 63; then
  42230. + run=:
  42231. + msg="probably too old"
  42232. + fi
  42233. + ;;
  42234. +
  42235. + -h|--h|--he|--hel|--help)
  42236. + echo "\
  42237. +$0 [OPTION]... PROGRAM [ARGUMENT]...
  42238. +
  42239. +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
  42240. +error status if there is no known handling for PROGRAM.
  42241. +
  42242. +Options:
  42243. + -h, --help display this help and exit
  42244. + -v, --version output version information and exit
  42245. + --run try to run the given command, and emulate it if it fails
  42246. +
  42247. +Supported PROGRAM values:
  42248. + aclocal touch file \`aclocal.m4'
  42249. + autoconf touch file \`configure'
  42250. + autoheader touch file \`config.h.in'
  42251. + autom4te touch the output file, or create a stub one
  42252. + automake touch all \`Makefile.in' files
  42253. + bison create \`y.tab.[ch]', if possible, from existing .[ch]
  42254. + flex create \`lex.yy.c', if possible, from existing .c
  42255. + help2man touch the output file
  42256. + lex create \`lex.yy.c', if possible, from existing .c
  42257. + makeinfo touch the output file
  42258. + tar try tar, gnutar, gtar, then tar without non-portable flags
  42259. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  42260. +
  42261. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  42262. +\`g' are ignored when checking the name.
  42263. +
  42264. +Send bug reports to <bug-automake@gnu.org>."
  42265. + exit $?
  42266. + ;;
  42267. +
  42268. + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  42269. + echo "missing $scriptversion (GNU Automake)"
  42270. + exit $?
  42271. + ;;
  42272. +
  42273. + -*)
  42274. + echo 1>&2 "$0: Unknown \`$1' option"
  42275. + echo 1>&2 "Try \`$0 --help' for more information"
  42276. + exit 1
  42277. + ;;
  42278. +
  42279. +esac
  42280. +
  42281. +# normalize program name to check for.
  42282. +program=`echo "$1" | sed '
  42283. + s/^gnu-//; t
  42284. + s/^gnu//; t
  42285. + s/^g//; t'`
  42286. +
  42287. +# Now exit if we have it, but it failed. Also exit now if we
  42288. +# don't have it and --version was passed (most likely to detect
  42289. +# the program). This is about non-GNU programs, so use $1 not
  42290. +# $program.
  42291. +case $1 in
  42292. + lex*|yacc*)
  42293. + # Not GNU programs, they don't have --version.
  42294. + ;;
  42295. +
  42296. + tar*)
  42297. + if test -n "$run"; then
  42298. + echo 1>&2 "ERROR: \`tar' requires --run"
  42299. + exit 1
  42300. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  42301. + exit 1
  42302. + fi
  42303. + ;;
  42304. +
  42305. + *)
  42306. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  42307. + # We have it, but it failed.
  42308. + exit 1
  42309. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  42310. + # Could not run --version or --help. This is probably someone
  42311. + # running `$TOOL --version' or `$TOOL --help' to check whether
  42312. + # $TOOL exists and not knowing $TOOL uses missing.
  42313. + exit 1
  42314. + fi
  42315. + ;;
  42316. +esac
  42317. +
  42318. +# If it does not exist, or fails to run (possibly an outdated version),
  42319. +# try to emulate it.
  42320. +case $program in
  42321. + aclocal*)
  42322. + echo 1>&2 "\
  42323. +WARNING: \`$1' is $msg. You should only need it if
  42324. + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  42325. + to install the \`Automake' and \`Perl' packages. Grab them from
  42326. + any GNU archive site."
  42327. + touch aclocal.m4
  42328. + ;;
  42329. +
  42330. + autoconf*)
  42331. + echo 1>&2 "\
  42332. +WARNING: \`$1' is $msg. You should only need it if
  42333. + you modified \`${configure_ac}'. You might want to install the
  42334. + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  42335. + archive site."
  42336. + touch configure
  42337. + ;;
  42338. +
  42339. + autoheader*)
  42340. + echo 1>&2 "\
  42341. +WARNING: \`$1' is $msg. You should only need it if
  42342. + you modified \`acconfig.h' or \`${configure_ac}'. You might want
  42343. + to install the \`Autoconf' and \`GNU m4' packages. Grab them
  42344. + from any GNU archive site."
  42345. + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  42346. + test -z "$files" && files="config.h"
  42347. + touch_files=
  42348. + for f in $files; do
  42349. + case $f in
  42350. + *:*) touch_files="$touch_files "`echo "$f" |
  42351. + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  42352. + *) touch_files="$touch_files $f.in";;
  42353. + esac
  42354. + done
  42355. + touch $touch_files
  42356. + ;;
  42357. +
  42358. + automake*)
  42359. + echo 1>&2 "\
  42360. +WARNING: \`$1' is $msg. You should only need it if
  42361. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  42362. + You might want to install the \`Automake' and \`Perl' packages.
  42363. + Grab them from any GNU archive site."
  42364. + find . -type f -name Makefile.am -print |
  42365. + sed 's/\.am$/.in/' |
  42366. + while read f; do touch "$f"; done
  42367. + ;;
  42368. +
  42369. + autom4te*)
  42370. + echo 1>&2 "\
  42371. +WARNING: \`$1' is needed, but is $msg.
  42372. + You might have modified some files without having the
  42373. + proper tools for further handling them.
  42374. + You can get \`$1' as part of \`Autoconf' from any GNU
  42375. + archive site."
  42376. +
  42377. + file=`echo "$*" | sed -n "$sed_output"`
  42378. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42379. + if test -f "$file"; then
  42380. + touch $file
  42381. + else
  42382. + test -z "$file" || exec >$file
  42383. + echo "#! /bin/sh"
  42384. + echo "# Created by GNU Automake missing as a replacement of"
  42385. + echo "# $ $@"
  42386. + echo "exit 0"
  42387. + chmod +x $file
  42388. + exit 1
  42389. + fi
  42390. + ;;
  42391. +
  42392. + bison*|yacc*)
  42393. + echo 1>&2 "\
  42394. +WARNING: \`$1' $msg. You should only need it if
  42395. + you modified a \`.y' file. You may need the \`Bison' package
  42396. + in order for those modifications to take effect. You can get
  42397. + \`Bison' from any GNU archive site."
  42398. + rm -f y.tab.c y.tab.h
  42399. + if test $# -ne 1; then
  42400. + eval LASTARG="\${$#}"
  42401. + case $LASTARG in
  42402. + *.y)
  42403. + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  42404. + if test -f "$SRCFILE"; then
  42405. + cp "$SRCFILE" y.tab.c
  42406. + fi
  42407. + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  42408. + if test -f "$SRCFILE"; then
  42409. + cp "$SRCFILE" y.tab.h
  42410. + fi
  42411. + ;;
  42412. + esac
  42413. + fi
  42414. + if test ! -f y.tab.h; then
  42415. + echo >y.tab.h
  42416. + fi
  42417. + if test ! -f y.tab.c; then
  42418. + echo 'main() { return 0; }' >y.tab.c
  42419. + fi
  42420. + ;;
  42421. +
  42422. + lex*|flex*)
  42423. + echo 1>&2 "\
  42424. +WARNING: \`$1' is $msg. You should only need it if
  42425. + you modified a \`.l' file. You may need the \`Flex' package
  42426. + in order for those modifications to take effect. You can get
  42427. + \`Flex' from any GNU archive site."
  42428. + rm -f lex.yy.c
  42429. + if test $# -ne 1; then
  42430. + eval LASTARG="\${$#}"
  42431. + case $LASTARG in
  42432. + *.l)
  42433. + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  42434. + if test -f "$SRCFILE"; then
  42435. + cp "$SRCFILE" lex.yy.c
  42436. + fi
  42437. + ;;
  42438. + esac
  42439. + fi
  42440. + if test ! -f lex.yy.c; then
  42441. + echo 'main() { return 0; }' >lex.yy.c
  42442. + fi
  42443. + ;;
  42444. +
  42445. + help2man*)
  42446. + echo 1>&2 "\
  42447. +WARNING: \`$1' is $msg. You should only need it if
  42448. + you modified a dependency of a manual page. You may need the
  42449. + \`Help2man' package in order for those modifications to take
  42450. + effect. You can get \`Help2man' from any GNU archive site."
  42451. +
  42452. + file=`echo "$*" | sed -n "$sed_output"`
  42453. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42454. + if test -f "$file"; then
  42455. + touch $file
  42456. + else
  42457. + test -z "$file" || exec >$file
  42458. + echo ".ab help2man is required to generate this page"
  42459. + exit $?
  42460. + fi
  42461. + ;;
  42462. +
  42463. + makeinfo*)
  42464. + echo 1>&2 "\
  42465. +WARNING: \`$1' is $msg. You should only need it if
  42466. + you modified a \`.texi' or \`.texinfo' file, or any other file
  42467. + indirectly affecting the aspect of the manual. The spurious
  42468. + call might also be the consequence of using a buggy \`make' (AIX,
  42469. + DU, IRIX). You might want to install the \`Texinfo' package or
  42470. + the \`GNU make' package. Grab either from any GNU archive site."
  42471. + # The file to touch is that specified with -o ...
  42472. + file=`echo "$*" | sed -n "$sed_output"`
  42473. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42474. + if test -z "$file"; then
  42475. + # ... or it is the one specified with @setfilename ...
  42476. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  42477. + file=`sed -n '
  42478. + /^@setfilename/{
  42479. + s/.* \([^ ]*\) *$/\1/
  42480. + p
  42481. + q
  42482. + }' $infile`
  42483. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  42484. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  42485. + fi
  42486. + # If the file does not exist, the user really needs makeinfo;
  42487. + # let's fail without touching anything.
  42488. + test -f $file || exit 1
  42489. + touch $file
  42490. + ;;
  42491. +
  42492. + tar*)
  42493. + shift
  42494. +
  42495. + # We have already tried tar in the generic part.
  42496. + # Look for gnutar/gtar before invocation to avoid ugly error
  42497. + # messages.
  42498. + if (gnutar --version > /dev/null 2>&1); then
  42499. + gnutar "$@" && exit 0
  42500. + fi
  42501. + if (gtar --version > /dev/null 2>&1); then
  42502. + gtar "$@" && exit 0
  42503. + fi
  42504. + firstarg="$1"
  42505. + if shift; then
  42506. + case $firstarg in
  42507. + *o*)
  42508. + firstarg=`echo "$firstarg" | sed s/o//`
  42509. + tar "$firstarg" "$@" && exit 0
  42510. + ;;
  42511. + esac
  42512. + case $firstarg in
  42513. + *h*)
  42514. + firstarg=`echo "$firstarg" | sed s/h//`
  42515. + tar "$firstarg" "$@" && exit 0
  42516. + ;;
  42517. + esac
  42518. + fi
  42519. +
  42520. + echo 1>&2 "\
  42521. +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  42522. + You may want to install GNU tar or Free paxutils, or check the
  42523. + command line arguments."
  42524. + exit 1
  42525. + ;;
  42526. +
  42527. + *)
  42528. + echo 1>&2 "\
  42529. +WARNING: \`$1' is needed, and is $msg.
  42530. + You might have modified some files without having the
  42531. + proper tools for further handling them. Check the \`README' file,
  42532. + it often tells you about the needed prerequisites for installing
  42533. + this package. You may also peek at any GNU archive site, in case
  42534. + some other package would contain this missing \`$1' program."
  42535. + exit 1
  42536. + ;;
  42537. +esac
  42538. +
  42539. +exit 0
  42540. +
  42541. +# Local variables:
  42542. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  42543. +# time-stamp-start: "scriptversion="
  42544. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  42545. +# time-stamp-time-zone: "UTC"
  42546. +# time-stamp-end: "; # UTC"
  42547. +# End:
  42548. diff -Nur tslib-1.0.orig/plugins/Makefile.in tslib-1.0/plugins/Makefile.in
  42549. --- tslib-1.0.orig/plugins/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  42550. +++ tslib-1.0/plugins/Makefile.in 2010-02-19 00:24:15.516853426 +0100
  42551. @@ -0,0 +1,746 @@
  42552. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  42553. +# @configure_input@
  42554. +
  42555. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  42556. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  42557. +# Inc.
  42558. +# This Makefile.in is free software; the Free Software Foundation
  42559. +# gives unlimited permission to copy and/or distribute it,
  42560. +# with or without modifications, as long as this notice is preserved.
  42561. +
  42562. +# This program is distributed in the hope that it will be useful,
  42563. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  42564. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  42565. +# PARTICULAR PURPOSE.
  42566. +
  42567. +@SET_MAKE@
  42568. +
  42569. +#
  42570. +# tslib/plugins/Makefile.am
  42571. +#
  42572. +# Copyright (C) 2001 Russell King.
  42573. +#
  42574. +# This file is placed under the LGPL. Please see the file
  42575. +# COPYING for more details.
  42576. +#
  42577. +# $Id: Makefile.am,v 1.7 2005/02/28 23:44:12 kergoth Exp $
  42578. +#
  42579. +
  42580. +VPATH = @srcdir@
  42581. +pkgdatadir = $(datadir)/@PACKAGE@
  42582. +pkgincludedir = $(includedir)/@PACKAGE@
  42583. +pkglibdir = $(libdir)/@PACKAGE@
  42584. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  42585. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  42586. +install_sh_DATA = $(install_sh) -c -m 644
  42587. +install_sh_PROGRAM = $(install_sh) -c
  42588. +install_sh_SCRIPT = $(install_sh) -c
  42589. +INSTALL_HEADER = $(INSTALL_DATA)
  42590. +transform = $(program_transform_name)
  42591. +NORMAL_INSTALL = :
  42592. +PRE_INSTALL = :
  42593. +POST_INSTALL = :
  42594. +NORMAL_UNINSTALL = :
  42595. +PRE_UNINSTALL = :
  42596. +POST_UNINSTALL = :
  42597. +build_triplet = @build@
  42598. +host_triplet = @host@
  42599. +subdir = plugins
  42600. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  42601. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  42602. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  42603. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  42604. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  42605. + $(top_srcdir)/m4/internal/ltversion.m4 \
  42606. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  42607. + $(top_srcdir)/m4/internal/visibility.m4 \
  42608. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  42609. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  42610. + $(ACLOCAL_M4)
  42611. +mkinstalldirs = $(install_sh) -d
  42612. +CONFIG_HEADER = $(top_builddir)/config.h
  42613. +CONFIG_CLEAN_FILES =
  42614. +CONFIG_CLEAN_VPATH_FILES =
  42615. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  42616. +am__vpath_adj = case $$p in \
  42617. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  42618. + *) f=$$p;; \
  42619. + esac;
  42620. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  42621. +am__install_max = 40
  42622. +am__nobase_strip_setup = \
  42623. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  42624. +am__nobase_strip = \
  42625. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  42626. +am__nobase_list = $(am__nobase_strip_setup); \
  42627. + for p in $$list; do echo "$$p $$p"; done | \
  42628. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  42629. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  42630. + if (++n[$$2] == $(am__install_max)) \
  42631. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  42632. + END { for (dir in files) print dir, files[dir] }'
  42633. +am__base_list = \
  42634. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  42635. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  42636. +am__installdirs = "$(DESTDIR)$(pluginexecdir)"
  42637. +LTLIBRARIES = $(pluginexec_LTLIBRARIES)
  42638. +arctic2_la_LIBADD =
  42639. +am_arctic2_la_OBJECTS = arctic2-raw.lo
  42640. +arctic2_la_OBJECTS = $(am_arctic2_la_OBJECTS)
  42641. +arctic2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42642. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42643. + $(arctic2_la_LDFLAGS) $(LDFLAGS) -o $@
  42644. +@ENABLE_ARCTIC2_MODULE_TRUE@am_arctic2_la_rpath = -rpath \
  42645. +@ENABLE_ARCTIC2_MODULE_TRUE@ $(pluginexecdir)
  42646. +collie_la_LIBADD =
  42647. +am_collie_la_OBJECTS = collie-raw.lo
  42648. +collie_la_OBJECTS = $(am_collie_la_OBJECTS)
  42649. +collie_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42650. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42651. + $(collie_la_LDFLAGS) $(LDFLAGS) -o $@
  42652. +@ENABLE_COLLIE_MODULE_TRUE@am_collie_la_rpath = -rpath \
  42653. +@ENABLE_COLLIE_MODULE_TRUE@ $(pluginexecdir)
  42654. +corgi_la_LIBADD =
  42655. +am_corgi_la_OBJECTS = corgi-raw.lo
  42656. +corgi_la_OBJECTS = $(am_corgi_la_OBJECTS)
  42657. +corgi_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42658. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(corgi_la_LDFLAGS) \
  42659. + $(LDFLAGS) -o $@
  42660. +@ENABLE_CORGI_MODULE_TRUE@am_corgi_la_rpath = -rpath $(pluginexecdir)
  42661. +dejitter_la_LIBADD =
  42662. +am_dejitter_la_OBJECTS = dejitter.lo
  42663. +dejitter_la_OBJECTS = $(am_dejitter_la_OBJECTS)
  42664. +dejitter_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42665. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42666. + $(dejitter_la_LDFLAGS) $(LDFLAGS) -o $@
  42667. +@ENABLE_LINEAR_MODULE_TRUE@am_dejitter_la_rpath = -rpath \
  42668. +@ENABLE_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42669. +h3600_la_LIBADD =
  42670. +am_h3600_la_OBJECTS = h3600-raw.lo
  42671. +h3600_la_OBJECTS = $(am_h3600_la_OBJECTS)
  42672. +h3600_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42673. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(h3600_la_LDFLAGS) \
  42674. + $(LDFLAGS) -o $@
  42675. +@ENABLE_H3600_MODULE_TRUE@am_h3600_la_rpath = -rpath $(pluginexecdir)
  42676. +input_la_LIBADD =
  42677. +am_input_la_OBJECTS = input-raw.lo
  42678. +input_la_OBJECTS = $(am_input_la_OBJECTS)
  42679. +input_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42680. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(input_la_LDFLAGS) \
  42681. + $(LDFLAGS) -o $@
  42682. +@ENABLE_INPUT_MODULE_TRUE@am_input_la_rpath = -rpath $(pluginexecdir)
  42683. +linear_la_LIBADD =
  42684. +am_linear_la_OBJECTS = linear.lo
  42685. +linear_la_OBJECTS = $(am_linear_la_OBJECTS)
  42686. +linear_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42687. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42688. + $(linear_la_LDFLAGS) $(LDFLAGS) -o $@
  42689. +@ENABLE_LINEAR_MODULE_TRUE@am_linear_la_rpath = -rpath \
  42690. +@ENABLE_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42691. +linear_h2200_la_LIBADD =
  42692. +am_linear_h2200_la_OBJECTS = linear-h2200.lo
  42693. +linear_h2200_la_OBJECTS = $(am_linear_h2200_la_OBJECTS)
  42694. +linear_h2200_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42695. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42696. + $(linear_h2200_la_LDFLAGS) $(LDFLAGS) -o $@
  42697. +@ENABLE_H2200_LINEAR_MODULE_TRUE@am_linear_h2200_la_rpath = -rpath \
  42698. +@ENABLE_H2200_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42699. +mk712_la_LIBADD =
  42700. +am_mk712_la_OBJECTS = mk712-raw.lo
  42701. +mk712_la_OBJECTS = $(am_mk712_la_OBJECTS)
  42702. +mk712_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42703. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(mk712_la_LDFLAGS) \
  42704. + $(LDFLAGS) -o $@
  42705. +@ENABLE_MK712_MODULE_TRUE@am_mk712_la_rpath = -rpath $(pluginexecdir)
  42706. +pthres_la_LIBADD =
  42707. +am_pthres_la_OBJECTS = pthres.lo
  42708. +pthres_la_OBJECTS = $(am_pthres_la_OBJECTS)
  42709. +pthres_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42710. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42711. + $(pthres_la_LDFLAGS) $(LDFLAGS) -o $@
  42712. +@ENABLE_PTHRES_MODULE_TRUE@am_pthres_la_rpath = -rpath \
  42713. +@ENABLE_PTHRES_MODULE_TRUE@ $(pluginexecdir)
  42714. +ucb1x00_la_LIBADD =
  42715. +am_ucb1x00_la_OBJECTS = ucb1x00-raw.lo
  42716. +ucb1x00_la_OBJECTS = $(am_ucb1x00_la_OBJECTS)
  42717. +ucb1x00_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42718. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42719. + $(ucb1x00_la_LDFLAGS) $(LDFLAGS) -o $@
  42720. +@ENABLE_UCB1X00_MODULE_TRUE@am_ucb1x00_la_rpath = -rpath \
  42721. +@ENABLE_UCB1X00_MODULE_TRUE@ $(pluginexecdir)
  42722. +variance_la_LIBADD =
  42723. +am_variance_la_OBJECTS = variance.lo
  42724. +variance_la_OBJECTS = $(am_variance_la_OBJECTS)
  42725. +variance_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42726. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42727. + $(variance_la_LDFLAGS) $(LDFLAGS) -o $@
  42728. +@ENABLE_VARIANCE_MODULE_TRUE@am_variance_la_rpath = -rpath \
  42729. +@ENABLE_VARIANCE_MODULE_TRUE@ $(pluginexecdir)
  42730. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  42731. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  42732. +am__depfiles_maybe = depfiles
  42733. +am__mv = mv -f
  42734. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  42735. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  42736. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42737. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  42738. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  42739. +CCLD = $(CC)
  42740. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42741. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  42742. + $(LDFLAGS) -o $@
  42743. +SOURCES = $(arctic2_la_SOURCES) $(collie_la_SOURCES) \
  42744. + $(corgi_la_SOURCES) $(dejitter_la_SOURCES) $(h3600_la_SOURCES) \
  42745. + $(input_la_SOURCES) $(linear_la_SOURCES) \
  42746. + $(linear_h2200_la_SOURCES) $(mk712_la_SOURCES) \
  42747. + $(pthres_la_SOURCES) $(ucb1x00_la_SOURCES) \
  42748. + $(variance_la_SOURCES)
  42749. +DIST_SOURCES = $(arctic2_la_SOURCES) $(collie_la_SOURCES) \
  42750. + $(corgi_la_SOURCES) $(dejitter_la_SOURCES) $(h3600_la_SOURCES) \
  42751. + $(input_la_SOURCES) $(linear_la_SOURCES) \
  42752. + $(linear_h2200_la_SOURCES) $(mk712_la_SOURCES) \
  42753. + $(pthres_la_SOURCES) $(ucb1x00_la_SOURCES) \
  42754. + $(variance_la_SOURCES)
  42755. +ETAGS = etags
  42756. +CTAGS = ctags
  42757. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  42758. +ACLOCAL = @ACLOCAL@
  42759. +ALLOCA = @ALLOCA@
  42760. +AMTAR = @AMTAR@
  42761. +AR = @AR@
  42762. +AUTOCONF = @AUTOCONF@
  42763. +AUTOHEADER = @AUTOHEADER@
  42764. +AUTOMAKE = @AUTOMAKE@
  42765. +AWK = @AWK@
  42766. +CC = @CC@
  42767. +CCDEPMODE = @CCDEPMODE@
  42768. +CFLAGS = @CFLAGS@
  42769. +CPP = @CPP@
  42770. +CPPFLAGS = @CPPFLAGS@
  42771. +CXX = @CXX@
  42772. +CXXCPP = @CXXCPP@
  42773. +CXXDEPMODE = @CXXDEPMODE@
  42774. +CXXFLAGS = @CXXFLAGS@
  42775. +CYGPATH_W = @CYGPATH_W@
  42776. +DEBUGFLAGS = @DEBUGFLAGS@
  42777. +DEFS = @DEFS@
  42778. +DEPDIR = @DEPDIR@
  42779. +DSYMUTIL = @DSYMUTIL@
  42780. +DUMPBIN = @DUMPBIN@
  42781. +ECHO_C = @ECHO_C@
  42782. +ECHO_N = @ECHO_N@
  42783. +ECHO_T = @ECHO_T@
  42784. +EGREP = @EGREP@
  42785. +EXEEXT = @EXEEXT@
  42786. +FGREP = @FGREP@
  42787. +GREP = @GREP@
  42788. +INSTALL = @INSTALL@
  42789. +INSTALL_DATA = @INSTALL_DATA@
  42790. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  42791. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  42792. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  42793. +LD = @LD@
  42794. +LDFLAGS = @LDFLAGS@
  42795. +LIBFLAGS = @LIBFLAGS@
  42796. +LIBOBJS = @LIBOBJS@
  42797. +LIBS =
  42798. +LIBTOOL = @LIBTOOL@
  42799. +LIPO = @LIPO@
  42800. +LN_S = @LN_S@
  42801. +LTLIBOBJS = @LTLIBOBJS@
  42802. +LT_AGE = @LT_AGE@
  42803. +LT_CURRENT = @LT_CURRENT@
  42804. +LT_RELEASE = @LT_RELEASE@
  42805. +LT_REVISION = @LT_REVISION@
  42806. +MAKEINFO = @MAKEINFO@
  42807. +MKDIR_P = @MKDIR_P@
  42808. +NM = @NM@
  42809. +NMEDIT = @NMEDIT@
  42810. +OBJDUMP = @OBJDUMP@
  42811. +OBJEXT = @OBJEXT@
  42812. +OTOOL = @OTOOL@
  42813. +OTOOL64 = @OTOOL64@
  42814. +PACKAGE = @PACKAGE@
  42815. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  42816. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  42817. +PACKAGE_NAME = @PACKAGE_NAME@
  42818. +PACKAGE_STRING = @PACKAGE_STRING@
  42819. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  42820. +PACKAGE_URL = @PACKAGE_URL@
  42821. +PACKAGE_VERSION = @PACKAGE_VERSION@
  42822. +PATH_SEPARATOR = @PATH_SEPARATOR@
  42823. +PLUGIN_DIR = @PLUGIN_DIR@
  42824. +RANLIB = @RANLIB@
  42825. +SED = @SED@
  42826. +SET_MAKE = @SET_MAKE@
  42827. +SHELL = @SHELL@
  42828. +STRIP = @STRIP@
  42829. +TS_CONF = @TS_CONF@
  42830. +VERSION = @VERSION@
  42831. +VIS_CFLAGS = @VIS_CFLAGS@
  42832. +abs_builddir = @abs_builddir@
  42833. +abs_srcdir = @abs_srcdir@
  42834. +abs_top_builddir = @abs_top_builddir@
  42835. +abs_top_srcdir = @abs_top_srcdir@
  42836. +ac_ct_CC = @ac_ct_CC@
  42837. +ac_ct_CXX = @ac_ct_CXX@
  42838. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  42839. +am__include = @am__include@
  42840. +am__leading_dot = @am__leading_dot@
  42841. +am__quote = @am__quote@
  42842. +am__tar = @am__tar@
  42843. +am__untar = @am__untar@
  42844. +bindir = @bindir@
  42845. +build = @build@
  42846. +build_alias = @build_alias@
  42847. +build_cpu = @build_cpu@
  42848. +build_os = @build_os@
  42849. +build_vendor = @build_vendor@
  42850. +builddir = @builddir@
  42851. +datadir = @datadir@
  42852. +datarootdir = @datarootdir@
  42853. +docdir = @docdir@
  42854. +dvidir = @dvidir@
  42855. +exec_prefix = @exec_prefix@
  42856. +host = @host@
  42857. +host_alias = @host_alias@
  42858. +host_cpu = @host_cpu@
  42859. +host_os = @host_os@
  42860. +host_vendor = @host_vendor@
  42861. +htmldir = @htmldir@
  42862. +includedir = @includedir@
  42863. +infodir = @infodir@
  42864. +install_sh = @install_sh@
  42865. +libdir = @libdir@
  42866. +libexecdir = @libexecdir@
  42867. +localedir = @localedir@
  42868. +localstatedir = @localstatedir@
  42869. +lt_ECHO = @lt_ECHO@
  42870. +mandir = @mandir@
  42871. +mkdir_p = @mkdir_p@
  42872. +oldincludedir = @oldincludedir@
  42873. +pdfdir = @pdfdir@
  42874. +prefix = @prefix@
  42875. +program_transform_name = @program_transform_name@
  42876. +psdir = @psdir@
  42877. +sbindir = @sbindir@
  42878. +sharedstatedir = @sharedstatedir@
  42879. +srcdir = @srcdir@
  42880. +sysconfdir = @sysconfdir@
  42881. +target_alias = @target_alias@
  42882. +top_build_prefix = @top_build_prefix@
  42883. +top_builddir = @top_builddir@
  42884. +top_srcdir = @top_srcdir@
  42885. +AM_CFLAGS = $(DEBUGFLAGS) $(LIBFLAGS) $(VIS_CFLAGS)
  42886. +LDADD = -rpath $(PLUGIN_DIR)
  42887. +INCLUDES = -I$(top_srcdir)/src
  42888. +
  42889. +#LTVSN = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
  42890. +# -release $(LT_RELEASE)
  42891. +LTVSN = -avoid-version
  42892. +pluginexecdir = $(PLUGIN_DIR)
  42893. +@ENABLE_LINEAR_MODULE_FALSE@LINEAR_MODULE =
  42894. +@ENABLE_LINEAR_MODULE_TRUE@LINEAR_MODULE = linear.la
  42895. +@ENABLE_LINEAR_MODULE_FALSE@DEJITTER_MODULE =
  42896. +@ENABLE_LINEAR_MODULE_TRUE@DEJITTER_MODULE = dejitter.la
  42897. +@ENABLE_VARIANCE_MODULE_FALSE@VARIANCE_MODULE =
  42898. +@ENABLE_VARIANCE_MODULE_TRUE@VARIANCE_MODULE = variance.la
  42899. +@ENABLE_PTHRES_MODULE_FALSE@PTHRES_MODULE =
  42900. +@ENABLE_PTHRES_MODULE_TRUE@PTHRES_MODULE = pthres.la
  42901. +@ENABLE_UCB1X00_MODULE_FALSE@UCB1X00_MODULE =
  42902. +@ENABLE_UCB1X00_MODULE_TRUE@UCB1X00_MODULE = ucb1x00.la
  42903. +@ENABLE_CORGI_MODULE_FALSE@CORGI_MODULE =
  42904. +@ENABLE_CORGI_MODULE_TRUE@CORGI_MODULE = corgi.la
  42905. +@ENABLE_COLLIE_MODULE_FALSE@COLLIE_MODULE =
  42906. +@ENABLE_COLLIE_MODULE_TRUE@COLLIE_MODULE = collie.la
  42907. +@ENABLE_H3600_MODULE_FALSE@H3600_MODULE =
  42908. +@ENABLE_H3600_MODULE_TRUE@H3600_MODULE = h3600.la
  42909. +@ENABLE_MK712_MODULE_FALSE@MK712_MODULE =
  42910. +@ENABLE_MK712_MODULE_TRUE@MK712_MODULE = mk712.la
  42911. +@ENABLE_ARCTIC2_MODULE_FALSE@ARCTIC2_MODULE =
  42912. +@ENABLE_ARCTIC2_MODULE_TRUE@ARCTIC2_MODULE = arctic2.la
  42913. +@ENABLE_INPUT_MODULE_FALSE@INPUT_MODULE =
  42914. +@ENABLE_INPUT_MODULE_TRUE@INPUT_MODULE = input.la
  42915. +@ENABLE_H2200_LINEAR_MODULE_FALSE@H2200_LINEAR_MODULE =
  42916. +@ENABLE_H2200_LINEAR_MODULE_TRUE@H2200_LINEAR_MODULE = linear_h2200.la
  42917. +pluginexec_LTLIBRARIES = \
  42918. + $(LINEAR_MODULE) \
  42919. + $(DEJITTER_MODULE) \
  42920. + $(VARIANCE_MODULE) \
  42921. + $(PTHRES_MODULE) \
  42922. + $(UCB1X00_MODULE) \
  42923. + $(CORGI_MODULE) \
  42924. + $(COLLIE_MODULE) \
  42925. + $(H3600_MODULE) \
  42926. + $(MK712_MODULE) \
  42927. + $(ARCTIC2_MODULE) \
  42928. + $(H2200_LINEAR_MODULE) \
  42929. + $(INPUT_MODULE)
  42930. +
  42931. +variance_la_SOURCES = variance.c
  42932. +variance_la_LDFLAGS = -module $(LTVSN)
  42933. +dejitter_la_SOURCES = dejitter.c
  42934. +dejitter_la_LDFLAGS = -module $(LTVSN)
  42935. +linear_la_SOURCES = linear.c
  42936. +linear_la_LDFLAGS = -module $(LTVSN)
  42937. +pthres_la_SOURCES = pthres.c
  42938. +pthres_la_LDFLAGS = -module $(LTVSN)
  42939. +
  42940. +# hw access
  42941. +corgi_la_SOURCES = corgi-raw.c
  42942. +corgi_la_LDFLAGS = -module $(LTVSN)
  42943. +collie_la_SOURCES = collie-raw.c
  42944. +collie_la_LDFLAGS = -module $(LTVSN)
  42945. +ucb1x00_la_SOURCES = ucb1x00-raw.c
  42946. +ucb1x00_la_LDFLAGS = -module $(LTVSN)
  42947. +h3600_la_SOURCES = h3600-raw.c
  42948. +h3600_la_LDFLAGS = -module $(LTVSN)
  42949. +mk712_la_SOURCES = mk712-raw.c
  42950. +mk712_la_LDFLAGS = -module $(LTVSN)
  42951. +arctic2_la_SOURCES = arctic2-raw.c
  42952. +arctic2_la_LDFLAGS = -module $(LTVSN)
  42953. +input_la_SOURCES = input-raw.c
  42954. +input_la_LDFLAGS = -module $(LTVSN)
  42955. +linear_h2200_la_SOURCES = linear-h2200.c
  42956. +linear_h2200_la_LDFLAGS = -module $(LTVSN)
  42957. +all: all-am
  42958. +
  42959. +.SUFFIXES:
  42960. +.SUFFIXES: .c .lo .o .obj
  42961. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  42962. + @for dep in $?; do \
  42963. + case '$(am__configure_deps)' in \
  42964. + *$$dep*) \
  42965. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  42966. + && { if test -f $@; then exit 0; else break; fi; }; \
  42967. + exit 1;; \
  42968. + esac; \
  42969. + done; \
  42970. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
  42971. + $(am__cd) $(top_srcdir) && \
  42972. + $(AUTOMAKE) --gnu plugins/Makefile
  42973. +.PRECIOUS: Makefile
  42974. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  42975. + @case '$?' in \
  42976. + *config.status*) \
  42977. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  42978. + *) \
  42979. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  42980. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  42981. + esac;
  42982. +
  42983. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  42984. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42985. +
  42986. +$(top_srcdir)/configure: $(am__configure_deps)
  42987. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42988. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  42989. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42990. +$(am__aclocal_m4_deps):
  42991. +install-pluginexecLTLIBRARIES: $(pluginexec_LTLIBRARIES)
  42992. + @$(NORMAL_INSTALL)
  42993. + test -z "$(pluginexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginexecdir)"
  42994. + @list='$(pluginexec_LTLIBRARIES)'; test -n "$(pluginexecdir)" || list=; \
  42995. + list2=; for p in $$list; do \
  42996. + if test -f $$p; then \
  42997. + list2="$$list2 $$p"; \
  42998. + else :; fi; \
  42999. + done; \
  43000. + test -z "$$list2" || { \
  43001. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pluginexecdir)'"; \
  43002. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pluginexecdir)"; \
  43003. + }
  43004. +
  43005. +uninstall-pluginexecLTLIBRARIES:
  43006. + @$(NORMAL_UNINSTALL)
  43007. + @list='$(pluginexec_LTLIBRARIES)'; test -n "$(pluginexecdir)" || list=; \
  43008. + for p in $$list; do \
  43009. + $(am__strip_dir) \
  43010. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginexecdir)/$$f'"; \
  43011. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginexecdir)/$$f"; \
  43012. + done
  43013. +
  43014. +clean-pluginexecLTLIBRARIES:
  43015. + -test -z "$(pluginexec_LTLIBRARIES)" || rm -f $(pluginexec_LTLIBRARIES)
  43016. + @list='$(pluginexec_LTLIBRARIES)'; for p in $$list; do \
  43017. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  43018. + test "$$dir" != "$$p" || dir=.; \
  43019. + echo "rm -f \"$${dir}/so_locations\""; \
  43020. + rm -f "$${dir}/so_locations"; \
  43021. + done
  43022. +arctic2.la: $(arctic2_la_OBJECTS) $(arctic2_la_DEPENDENCIES)
  43023. + $(arctic2_la_LINK) $(am_arctic2_la_rpath) $(arctic2_la_OBJECTS) $(arctic2_la_LIBADD) $(LIBS)
  43024. +collie.la: $(collie_la_OBJECTS) $(collie_la_DEPENDENCIES)
  43025. + $(collie_la_LINK) $(am_collie_la_rpath) $(collie_la_OBJECTS) $(collie_la_LIBADD) $(LIBS)
  43026. +corgi.la: $(corgi_la_OBJECTS) $(corgi_la_DEPENDENCIES)
  43027. + $(corgi_la_LINK) $(am_corgi_la_rpath) $(corgi_la_OBJECTS) $(corgi_la_LIBADD) $(LIBS)
  43028. +dejitter.la: $(dejitter_la_OBJECTS) $(dejitter_la_DEPENDENCIES)
  43029. + $(dejitter_la_LINK) $(am_dejitter_la_rpath) $(dejitter_la_OBJECTS) $(dejitter_la_LIBADD) $(LIBS)
  43030. +h3600.la: $(h3600_la_OBJECTS) $(h3600_la_DEPENDENCIES)
  43031. + $(h3600_la_LINK) $(am_h3600_la_rpath) $(h3600_la_OBJECTS) $(h3600_la_LIBADD) $(LIBS)
  43032. +input.la: $(input_la_OBJECTS) $(input_la_DEPENDENCIES)
  43033. + $(input_la_LINK) $(am_input_la_rpath) $(input_la_OBJECTS) $(input_la_LIBADD) $(LIBS)
  43034. +linear.la: $(linear_la_OBJECTS) $(linear_la_DEPENDENCIES)
  43035. + $(linear_la_LINK) $(am_linear_la_rpath) $(linear_la_OBJECTS) $(linear_la_LIBADD) $(LIBS)
  43036. +linear_h2200.la: $(linear_h2200_la_OBJECTS) $(linear_h2200_la_DEPENDENCIES)
  43037. + $(linear_h2200_la_LINK) $(am_linear_h2200_la_rpath) $(linear_h2200_la_OBJECTS) $(linear_h2200_la_LIBADD) $(LIBS)
  43038. +mk712.la: $(mk712_la_OBJECTS) $(mk712_la_DEPENDENCIES)
  43039. + $(mk712_la_LINK) $(am_mk712_la_rpath) $(mk712_la_OBJECTS) $(mk712_la_LIBADD) $(LIBS)
  43040. +pthres.la: $(pthres_la_OBJECTS) $(pthres_la_DEPENDENCIES)
  43041. + $(pthres_la_LINK) $(am_pthres_la_rpath) $(pthres_la_OBJECTS) $(pthres_la_LIBADD) $(LIBS)
  43042. +ucb1x00.la: $(ucb1x00_la_OBJECTS) $(ucb1x00_la_DEPENDENCIES)
  43043. + $(ucb1x00_la_LINK) $(am_ucb1x00_la_rpath) $(ucb1x00_la_OBJECTS) $(ucb1x00_la_LIBADD) $(LIBS)
  43044. +variance.la: $(variance_la_OBJECTS) $(variance_la_DEPENDENCIES)
  43045. + $(variance_la_LINK) $(am_variance_la_rpath) $(variance_la_OBJECTS) $(variance_la_LIBADD) $(LIBS)
  43046. +
  43047. +mostlyclean-compile:
  43048. + -rm -f *.$(OBJEXT)
  43049. +
  43050. +distclean-compile:
  43051. + -rm -f *.tab.c
  43052. +
  43053. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arctic2-raw.Plo@am__quote@
  43054. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collie-raw.Plo@am__quote@
  43055. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corgi-raw.Plo@am__quote@
  43056. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dejitter.Plo@am__quote@
  43057. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h3600-raw.Plo@am__quote@
  43058. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/input-raw.Plo@am__quote@
  43059. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linear-h2200.Plo@am__quote@
  43060. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linear.Plo@am__quote@
  43061. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mk712-raw.Plo@am__quote@
  43062. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthres.Plo@am__quote@
  43063. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ucb1x00-raw.Plo@am__quote@
  43064. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variance.Plo@am__quote@
  43065. +
  43066. +.c.o:
  43067. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43068. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43069. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43070. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43071. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  43072. +
  43073. +.c.obj:
  43074. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  43075. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43076. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43077. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43078. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  43079. +
  43080. +.c.lo:
  43081. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43082. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  43083. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  43084. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43085. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  43086. +
  43087. +mostlyclean-libtool:
  43088. + -rm -f *.lo
  43089. +
  43090. +clean-libtool:
  43091. + -rm -rf .libs _libs
  43092. +
  43093. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  43094. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43095. + unique=`for i in $$list; do \
  43096. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43097. + done | \
  43098. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43099. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43100. + mkid -fID $$unique
  43101. +tags: TAGS
  43102. +
  43103. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43104. + $(TAGS_FILES) $(LISP)
  43105. + set x; \
  43106. + here=`pwd`; \
  43107. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43108. + unique=`for i in $$list; do \
  43109. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43110. + done | \
  43111. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43112. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43113. + shift; \
  43114. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  43115. + test -n "$$unique" || unique=$$empty_fix; \
  43116. + if test $$# -gt 0; then \
  43117. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43118. + "$$@" $$unique; \
  43119. + else \
  43120. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43121. + $$unique; \
  43122. + fi; \
  43123. + fi
  43124. +ctags: CTAGS
  43125. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43126. + $(TAGS_FILES) $(LISP)
  43127. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43128. + unique=`for i in $$list; do \
  43129. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43130. + done | \
  43131. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43132. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43133. + test -z "$(CTAGS_ARGS)$$unique" \
  43134. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  43135. + $$unique
  43136. +
  43137. +GTAGS:
  43138. + here=`$(am__cd) $(top_builddir) && pwd` \
  43139. + && $(am__cd) $(top_srcdir) \
  43140. + && gtags -i $(GTAGS_ARGS) "$$here"
  43141. +
  43142. +distclean-tags:
  43143. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  43144. +
  43145. +distdir: $(DISTFILES)
  43146. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43147. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43148. + list='$(DISTFILES)'; \
  43149. + dist_files=`for file in $$list; do echo $$file; done | \
  43150. + sed -e "s|^$$srcdirstrip/||;t" \
  43151. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  43152. + case $$dist_files in \
  43153. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  43154. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  43155. + sort -u` ;; \
  43156. + esac; \
  43157. + for file in $$dist_files; do \
  43158. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43159. + if test -d $$d/$$file; then \
  43160. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43161. + if test -d "$(distdir)/$$file"; then \
  43162. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43163. + fi; \
  43164. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43165. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43166. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43167. + fi; \
  43168. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43169. + else \
  43170. + test -f "$(distdir)/$$file" \
  43171. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43172. + || exit 1; \
  43173. + fi; \
  43174. + done
  43175. +check-am: all-am
  43176. +check: check-am
  43177. +all-am: Makefile $(LTLIBRARIES)
  43178. +installdirs:
  43179. + for dir in "$(DESTDIR)$(pluginexecdir)"; do \
  43180. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  43181. + done
  43182. +install: install-am
  43183. +install-exec: install-exec-am
  43184. +install-data: install-data-am
  43185. +uninstall: uninstall-am
  43186. +
  43187. +install-am: all-am
  43188. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  43189. +
  43190. +installcheck: installcheck-am
  43191. +install-strip:
  43192. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  43193. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  43194. + `test -z '$(STRIP)' || \
  43195. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  43196. +mostlyclean-generic:
  43197. +
  43198. +clean-generic:
  43199. +
  43200. +distclean-generic:
  43201. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43202. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43203. +
  43204. +maintainer-clean-generic:
  43205. + @echo "This command is intended for maintainers to use"
  43206. + @echo "it deletes files that may require special tools to rebuild."
  43207. +clean: clean-am
  43208. +
  43209. +clean-am: clean-generic clean-libtool clean-pluginexecLTLIBRARIES \
  43210. + mostlyclean-am
  43211. +
  43212. +distclean: distclean-am
  43213. + -rm -rf ./$(DEPDIR)
  43214. + -rm -f Makefile
  43215. +distclean-am: clean-am distclean-compile distclean-generic \
  43216. + distclean-tags
  43217. +
  43218. +dvi: dvi-am
  43219. +
  43220. +dvi-am:
  43221. +
  43222. +html: html-am
  43223. +
  43224. +html-am:
  43225. +
  43226. +info: info-am
  43227. +
  43228. +info-am:
  43229. +
  43230. +install-data-am:
  43231. +
  43232. +install-dvi: install-dvi-am
  43233. +
  43234. +install-dvi-am:
  43235. +
  43236. +install-exec-am: install-pluginexecLTLIBRARIES
  43237. +
  43238. +install-html: install-html-am
  43239. +
  43240. +install-html-am:
  43241. +
  43242. +install-info: install-info-am
  43243. +
  43244. +install-info-am:
  43245. +
  43246. +install-man:
  43247. +
  43248. +install-pdf: install-pdf-am
  43249. +
  43250. +install-pdf-am:
  43251. +
  43252. +install-ps: install-ps-am
  43253. +
  43254. +install-ps-am:
  43255. +
  43256. +installcheck-am:
  43257. +
  43258. +maintainer-clean: maintainer-clean-am
  43259. + -rm -rf ./$(DEPDIR)
  43260. + -rm -f Makefile
  43261. +maintainer-clean-am: distclean-am maintainer-clean-generic
  43262. +
  43263. +mostlyclean: mostlyclean-am
  43264. +
  43265. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  43266. + mostlyclean-libtool
  43267. +
  43268. +pdf: pdf-am
  43269. +
  43270. +pdf-am:
  43271. +
  43272. +ps: ps-am
  43273. +
  43274. +ps-am:
  43275. +
  43276. +uninstall-am: uninstall-pluginexecLTLIBRARIES
  43277. +
  43278. +.MAKE: install-am install-strip
  43279. +
  43280. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  43281. + clean-libtool clean-pluginexecLTLIBRARIES ctags distclean \
  43282. + distclean-compile distclean-generic distclean-libtool \
  43283. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  43284. + install install-am install-data install-data-am install-dvi \
  43285. + install-dvi-am install-exec install-exec-am install-html \
  43286. + install-html-am install-info install-info-am install-man \
  43287. + install-pdf install-pdf-am install-pluginexecLTLIBRARIES \
  43288. + install-ps install-ps-am install-strip installcheck \
  43289. + installcheck-am installdirs maintainer-clean \
  43290. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  43291. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43292. + tags uninstall uninstall-am uninstall-pluginexecLTLIBRARIES
  43293. +
  43294. +
  43295. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  43296. +# Otherwise a system limit (for SysV at least) may be exceeded.
  43297. +.NOEXPORT:
  43298. diff -Nur tslib-1.0.orig/src/Makefile.in tslib-1.0/src/Makefile.in
  43299. --- tslib-1.0.orig/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  43300. +++ tslib-1.0/src/Makefile.in 2010-02-19 00:24:15.660852771 +0100
  43301. @@ -0,0 +1,594 @@
  43302. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43303. +# @configure_input@
  43304. +
  43305. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43306. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43307. +# Inc.
  43308. +# This Makefile.in is free software; the Free Software Foundation
  43309. +# gives unlimited permission to copy and/or distribute it,
  43310. +# with or without modifications, as long as this notice is preserved.
  43311. +
  43312. +# This program is distributed in the hope that it will be useful,
  43313. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  43314. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  43315. +# PARTICULAR PURPOSE.
  43316. +
  43317. +@SET_MAKE@
  43318. +
  43319. +#
  43320. +# tslib/src/Makefile.am
  43321. +#
  43322. +# Copyright (C) 2001 Russell King.
  43323. +#
  43324. +# This file is placed under the LGPL. Please see the file
  43325. +# COPYING for more details.
  43326. +#
  43327. +# $Id: Makefile.am,v 1.8 2005/02/28 23:44:12 kergoth Exp $
  43328. +#
  43329. +
  43330. +
  43331. +VPATH = @srcdir@
  43332. +pkgdatadir = $(datadir)/@PACKAGE@
  43333. +pkgincludedir = $(includedir)/@PACKAGE@
  43334. +pkglibdir = $(libdir)/@PACKAGE@
  43335. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43336. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43337. +install_sh_DATA = $(install_sh) -c -m 644
  43338. +install_sh_PROGRAM = $(install_sh) -c
  43339. +install_sh_SCRIPT = $(install_sh) -c
  43340. +INSTALL_HEADER = $(INSTALL_DATA)
  43341. +transform = $(program_transform_name)
  43342. +NORMAL_INSTALL = :
  43343. +PRE_INSTALL = :
  43344. +POST_INSTALL = :
  43345. +NORMAL_UNINSTALL = :
  43346. +PRE_UNINSTALL = :
  43347. +POST_UNINSTALL = :
  43348. +build_triplet = @build@
  43349. +host_triplet = @host@
  43350. +subdir = src
  43351. +DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
  43352. + $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  43353. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  43354. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  43355. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  43356. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  43357. + $(top_srcdir)/m4/internal/ltversion.m4 \
  43358. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  43359. + $(top_srcdir)/m4/internal/visibility.m4 \
  43360. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  43361. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  43362. + $(ACLOCAL_M4)
  43363. +mkinstalldirs = $(install_sh) -d
  43364. +CONFIG_HEADER = $(top_builddir)/config.h
  43365. +CONFIG_CLEAN_FILES =
  43366. +CONFIG_CLEAN_VPATH_FILES =
  43367. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  43368. +am__vpath_adj = case $$p in \
  43369. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  43370. + *) f=$$p;; \
  43371. + esac;
  43372. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  43373. +am__install_max = 40
  43374. +am__nobase_strip_setup = \
  43375. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  43376. +am__nobase_strip = \
  43377. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  43378. +am__nobase_list = $(am__nobase_strip_setup); \
  43379. + for p in $$list; do echo "$$p $$p"; done | \
  43380. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  43381. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  43382. + if (++n[$$2] == $(am__install_max)) \
  43383. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  43384. + END { for (dir in files) print dir, files[dir] }'
  43385. +am__base_list = \
  43386. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  43387. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  43388. +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  43389. +LTLIBRARIES = $(lib_LTLIBRARIES)
  43390. +libts_la_DEPENDENCIES =
  43391. +am_libts_la_OBJECTS = ts_attach.lo ts_close.lo ts_config.lo \
  43392. + ts_error.lo ts_fd.lo ts_load_module.lo ts_open.lo \
  43393. + ts_parse_vars.lo ts_read.lo ts_read_raw.lo
  43394. +libts_la_OBJECTS = $(am_libts_la_OBJECTS)
  43395. +libts_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43396. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libts_la_LDFLAGS) \
  43397. + $(LDFLAGS) -o $@
  43398. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  43399. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  43400. +am__depfiles_maybe = depfiles
  43401. +am__mv = mv -f
  43402. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  43403. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43404. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43405. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  43406. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43407. +CCLD = $(CC)
  43408. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43409. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  43410. + $(LDFLAGS) -o $@
  43411. +SOURCES = $(libts_la_SOURCES)
  43412. +DIST_SOURCES = $(libts_la_SOURCES)
  43413. +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
  43414. +ETAGS = etags
  43415. +CTAGS = ctags
  43416. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  43417. +ACLOCAL = @ACLOCAL@
  43418. +ALLOCA = @ALLOCA@
  43419. +AMTAR = @AMTAR@
  43420. +AR = @AR@
  43421. +AUTOCONF = @AUTOCONF@
  43422. +AUTOHEADER = @AUTOHEADER@
  43423. +AUTOMAKE = @AUTOMAKE@
  43424. +AWK = @AWK@
  43425. +CC = @CC@
  43426. +CCDEPMODE = @CCDEPMODE@
  43427. +CFLAGS = @CFLAGS@
  43428. +CPP = @CPP@
  43429. +CPPFLAGS = @CPPFLAGS@
  43430. +CXX = @CXX@
  43431. +CXXCPP = @CXXCPP@
  43432. +CXXDEPMODE = @CXXDEPMODE@
  43433. +CXXFLAGS = @CXXFLAGS@
  43434. +CYGPATH_W = @CYGPATH_W@
  43435. +DEBUGFLAGS = @DEBUGFLAGS@
  43436. +DEFS = @DEFS@
  43437. +DEPDIR = @DEPDIR@
  43438. +DSYMUTIL = @DSYMUTIL@
  43439. +DUMPBIN = @DUMPBIN@
  43440. +ECHO_C = @ECHO_C@
  43441. +ECHO_N = @ECHO_N@
  43442. +ECHO_T = @ECHO_T@
  43443. +EGREP = @EGREP@
  43444. +EXEEXT = @EXEEXT@
  43445. +FGREP = @FGREP@
  43446. +GREP = @GREP@
  43447. +INSTALL = @INSTALL@
  43448. +INSTALL_DATA = @INSTALL_DATA@
  43449. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  43450. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  43451. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  43452. +LD = @LD@
  43453. +LDFLAGS = @LDFLAGS@
  43454. +LIBFLAGS = @LIBFLAGS@
  43455. +LIBOBJS = @LIBOBJS@
  43456. +LIBS = @LIBS@
  43457. +LIBTOOL = @LIBTOOL@
  43458. +LIPO = @LIPO@
  43459. +LN_S = @LN_S@
  43460. +LTLIBOBJS = @LTLIBOBJS@
  43461. +LT_AGE = @LT_AGE@
  43462. +LT_CURRENT = @LT_CURRENT@
  43463. +LT_RELEASE = @LT_RELEASE@
  43464. +LT_REVISION = @LT_REVISION@
  43465. +MAKEINFO = @MAKEINFO@
  43466. +MKDIR_P = @MKDIR_P@
  43467. +NM = @NM@
  43468. +NMEDIT = @NMEDIT@
  43469. +OBJDUMP = @OBJDUMP@
  43470. +OBJEXT = @OBJEXT@
  43471. +OTOOL = @OTOOL@
  43472. +OTOOL64 = @OTOOL64@
  43473. +PACKAGE = @PACKAGE@
  43474. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  43475. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  43476. +PACKAGE_NAME = @PACKAGE_NAME@
  43477. +PACKAGE_STRING = @PACKAGE_STRING@
  43478. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  43479. +PACKAGE_URL = @PACKAGE_URL@
  43480. +PACKAGE_VERSION = @PACKAGE_VERSION@
  43481. +PATH_SEPARATOR = @PATH_SEPARATOR@
  43482. +PLUGIN_DIR = @PLUGIN_DIR@
  43483. +RANLIB = @RANLIB@
  43484. +SED = @SED@
  43485. +SET_MAKE = @SET_MAKE@
  43486. +SHELL = @SHELL@
  43487. +STRIP = @STRIP@
  43488. +TS_CONF = @TS_CONF@
  43489. +VERSION = @VERSION@
  43490. +VIS_CFLAGS = @VIS_CFLAGS@
  43491. +abs_builddir = @abs_builddir@
  43492. +abs_srcdir = @abs_srcdir@
  43493. +abs_top_builddir = @abs_top_builddir@
  43494. +abs_top_srcdir = @abs_top_srcdir@
  43495. +ac_ct_CC = @ac_ct_CC@
  43496. +ac_ct_CXX = @ac_ct_CXX@
  43497. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  43498. +am__include = @am__include@
  43499. +am__leading_dot = @am__leading_dot@
  43500. +am__quote = @am__quote@
  43501. +am__tar = @am__tar@
  43502. +am__untar = @am__untar@
  43503. +bindir = @bindir@
  43504. +build = @build@
  43505. +build_alias = @build_alias@
  43506. +build_cpu = @build_cpu@
  43507. +build_os = @build_os@
  43508. +build_vendor = @build_vendor@
  43509. +builddir = @builddir@
  43510. +datadir = @datadir@
  43511. +datarootdir = @datarootdir@
  43512. +docdir = @docdir@
  43513. +dvidir = @dvidir@
  43514. +exec_prefix = @exec_prefix@
  43515. +host = @host@
  43516. +host_alias = @host_alias@
  43517. +host_cpu = @host_cpu@
  43518. +host_os = @host_os@
  43519. +host_vendor = @host_vendor@
  43520. +htmldir = @htmldir@
  43521. +includedir = @includedir@
  43522. +infodir = @infodir@
  43523. +install_sh = @install_sh@
  43524. +libdir = @libdir@
  43525. +libexecdir = @libexecdir@
  43526. +localedir = @localedir@
  43527. +localstatedir = @localstatedir@
  43528. +lt_ECHO = @lt_ECHO@
  43529. +mandir = @mandir@
  43530. +mkdir_p = @mkdir_p@
  43531. +oldincludedir = @oldincludedir@
  43532. +pdfdir = @pdfdir@
  43533. +prefix = @prefix@
  43534. +program_transform_name = @program_transform_name@
  43535. +psdir = @psdir@
  43536. +sbindir = @sbindir@
  43537. +sharedstatedir = @sharedstatedir@
  43538. +srcdir = @srcdir@
  43539. +sysconfdir = @sysconfdir@
  43540. +target_alias = @target_alias@
  43541. +top_build_prefix = @top_build_prefix@
  43542. +top_builddir = @top_builddir@
  43543. +top_srcdir = @top_srcdir@
  43544. +AM_CFLAGS = -DPLUGIN_DIR=\"@PLUGIN_DIR@\" -DTS_CONF=\"@TS_CONF@\" \
  43545. + $(DEBUGFLAGS) $(LIBFLAGS) $(VIS_CFLAGS)
  43546. +
  43547. +noinst_HEADERS = tslib-private.h tslib-filter.h
  43548. +include_HEADERS = tslib.h
  43549. +lib_LTLIBRARIES = libts.la
  43550. +libts_la_SOURCES = ts_attach.c ts_close.c ts_config.c ts_error.c \
  43551. + ts_fd.c ts_load_module.c ts_open.c ts_parse_vars.c \
  43552. + ts_read.c ts_read_raw.c
  43553. +
  43554. +libts_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
  43555. + -release $(LT_RELEASE) -export-dynamic
  43556. +
  43557. +libts_la_LIBADD = -ldl
  43558. +all: all-am
  43559. +
  43560. +.SUFFIXES:
  43561. +.SUFFIXES: .c .lo .o .obj
  43562. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  43563. + @for dep in $?; do \
  43564. + case '$(am__configure_deps)' in \
  43565. + *$$dep*) \
  43566. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  43567. + && { if test -f $@; then exit 0; else break; fi; }; \
  43568. + exit 1;; \
  43569. + esac; \
  43570. + done; \
  43571. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  43572. + $(am__cd) $(top_srcdir) && \
  43573. + $(AUTOMAKE) --gnu src/Makefile
  43574. +.PRECIOUS: Makefile
  43575. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  43576. + @case '$?' in \
  43577. + *config.status*) \
  43578. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  43579. + *) \
  43580. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  43581. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  43582. + esac;
  43583. +
  43584. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  43585. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43586. +
  43587. +$(top_srcdir)/configure: $(am__configure_deps)
  43588. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43589. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  43590. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43591. +$(am__aclocal_m4_deps):
  43592. +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  43593. + @$(NORMAL_INSTALL)
  43594. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  43595. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  43596. + list2=; for p in $$list; do \
  43597. + if test -f $$p; then \
  43598. + list2="$$list2 $$p"; \
  43599. + else :; fi; \
  43600. + done; \
  43601. + test -z "$$list2" || { \
  43602. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  43603. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  43604. + }
  43605. +
  43606. +uninstall-libLTLIBRARIES:
  43607. + @$(NORMAL_UNINSTALL)
  43608. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  43609. + for p in $$list; do \
  43610. + $(am__strip_dir) \
  43611. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  43612. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  43613. + done
  43614. +
  43615. +clean-libLTLIBRARIES:
  43616. + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  43617. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  43618. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  43619. + test "$$dir" != "$$p" || dir=.; \
  43620. + echo "rm -f \"$${dir}/so_locations\""; \
  43621. + rm -f "$${dir}/so_locations"; \
  43622. + done
  43623. +libts.la: $(libts_la_OBJECTS) $(libts_la_DEPENDENCIES)
  43624. + $(libts_la_LINK) -rpath $(libdir) $(libts_la_OBJECTS) $(libts_la_LIBADD) $(LIBS)
  43625. +
  43626. +mostlyclean-compile:
  43627. + -rm -f *.$(OBJEXT)
  43628. +
  43629. +distclean-compile:
  43630. + -rm -f *.tab.c
  43631. +
  43632. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_attach.Plo@am__quote@
  43633. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_close.Plo@am__quote@
  43634. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_config.Plo@am__quote@
  43635. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_error.Plo@am__quote@
  43636. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_fd.Plo@am__quote@
  43637. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_load_module.Plo@am__quote@
  43638. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_open.Plo@am__quote@
  43639. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_parse_vars.Plo@am__quote@
  43640. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_read.Plo@am__quote@
  43641. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_read_raw.Plo@am__quote@
  43642. +
  43643. +.c.o:
  43644. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43645. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43646. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43647. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43648. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  43649. +
  43650. +.c.obj:
  43651. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  43652. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43653. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43654. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43655. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  43656. +
  43657. +.c.lo:
  43658. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43659. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  43660. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  43661. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43662. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  43663. +
  43664. +mostlyclean-libtool:
  43665. + -rm -f *.lo
  43666. +
  43667. +clean-libtool:
  43668. + -rm -rf .libs _libs
  43669. +install-includeHEADERS: $(include_HEADERS)
  43670. + @$(NORMAL_INSTALL)
  43671. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  43672. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  43673. + for p in $$list; do \
  43674. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  43675. + echo "$$d$$p"; \
  43676. + done | $(am__base_list) | \
  43677. + while read files; do \
  43678. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  43679. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  43680. + done
  43681. +
  43682. +uninstall-includeHEADERS:
  43683. + @$(NORMAL_UNINSTALL)
  43684. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  43685. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  43686. + test -n "$$files" || exit 0; \
  43687. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  43688. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  43689. +
  43690. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  43691. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43692. + unique=`for i in $$list; do \
  43693. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43694. + done | \
  43695. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43696. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43697. + mkid -fID $$unique
  43698. +tags: TAGS
  43699. +
  43700. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43701. + $(TAGS_FILES) $(LISP)
  43702. + set x; \
  43703. + here=`pwd`; \
  43704. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43705. + unique=`for i in $$list; do \
  43706. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43707. + done | \
  43708. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43709. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43710. + shift; \
  43711. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  43712. + test -n "$$unique" || unique=$$empty_fix; \
  43713. + if test $$# -gt 0; then \
  43714. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43715. + "$$@" $$unique; \
  43716. + else \
  43717. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43718. + $$unique; \
  43719. + fi; \
  43720. + fi
  43721. +ctags: CTAGS
  43722. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43723. + $(TAGS_FILES) $(LISP)
  43724. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43725. + unique=`for i in $$list; do \
  43726. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43727. + done | \
  43728. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43729. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43730. + test -z "$(CTAGS_ARGS)$$unique" \
  43731. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  43732. + $$unique
  43733. +
  43734. +GTAGS:
  43735. + here=`$(am__cd) $(top_builddir) && pwd` \
  43736. + && $(am__cd) $(top_srcdir) \
  43737. + && gtags -i $(GTAGS_ARGS) "$$here"
  43738. +
  43739. +distclean-tags:
  43740. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  43741. +
  43742. +distdir: $(DISTFILES)
  43743. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43744. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43745. + list='$(DISTFILES)'; \
  43746. + dist_files=`for file in $$list; do echo $$file; done | \
  43747. + sed -e "s|^$$srcdirstrip/||;t" \
  43748. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  43749. + case $$dist_files in \
  43750. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  43751. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  43752. + sort -u` ;; \
  43753. + esac; \
  43754. + for file in $$dist_files; do \
  43755. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43756. + if test -d $$d/$$file; then \
  43757. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43758. + if test -d "$(distdir)/$$file"; then \
  43759. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43760. + fi; \
  43761. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43762. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43763. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43764. + fi; \
  43765. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43766. + else \
  43767. + test -f "$(distdir)/$$file" \
  43768. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43769. + || exit 1; \
  43770. + fi; \
  43771. + done
  43772. +check-am: all-am
  43773. +check: check-am
  43774. +all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  43775. +installdirs:
  43776. + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  43777. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  43778. + done
  43779. +install: install-am
  43780. +install-exec: install-exec-am
  43781. +install-data: install-data-am
  43782. +uninstall: uninstall-am
  43783. +
  43784. +install-am: all-am
  43785. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  43786. +
  43787. +installcheck: installcheck-am
  43788. +install-strip:
  43789. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  43790. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  43791. + `test -z '$(STRIP)' || \
  43792. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  43793. +mostlyclean-generic:
  43794. +
  43795. +clean-generic:
  43796. +
  43797. +distclean-generic:
  43798. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43799. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43800. +
  43801. +maintainer-clean-generic:
  43802. + @echo "This command is intended for maintainers to use"
  43803. + @echo "it deletes files that may require special tools to rebuild."
  43804. +clean: clean-am
  43805. +
  43806. +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  43807. + mostlyclean-am
  43808. +
  43809. +distclean: distclean-am
  43810. + -rm -rf ./$(DEPDIR)
  43811. + -rm -f Makefile
  43812. +distclean-am: clean-am distclean-compile distclean-generic \
  43813. + distclean-tags
  43814. +
  43815. +dvi: dvi-am
  43816. +
  43817. +dvi-am:
  43818. +
  43819. +html: html-am
  43820. +
  43821. +html-am:
  43822. +
  43823. +info: info-am
  43824. +
  43825. +info-am:
  43826. +
  43827. +install-data-am: install-includeHEADERS
  43828. +
  43829. +install-dvi: install-dvi-am
  43830. +
  43831. +install-dvi-am:
  43832. +
  43833. +install-exec-am: install-libLTLIBRARIES
  43834. +
  43835. +install-html: install-html-am
  43836. +
  43837. +install-html-am:
  43838. +
  43839. +install-info: install-info-am
  43840. +
  43841. +install-info-am:
  43842. +
  43843. +install-man:
  43844. +
  43845. +install-pdf: install-pdf-am
  43846. +
  43847. +install-pdf-am:
  43848. +
  43849. +install-ps: install-ps-am
  43850. +
  43851. +install-ps-am:
  43852. +
  43853. +installcheck-am:
  43854. +
  43855. +maintainer-clean: maintainer-clean-am
  43856. + -rm -rf ./$(DEPDIR)
  43857. + -rm -f Makefile
  43858. +maintainer-clean-am: distclean-am maintainer-clean-generic
  43859. +
  43860. +mostlyclean: mostlyclean-am
  43861. +
  43862. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  43863. + mostlyclean-libtool
  43864. +
  43865. +pdf: pdf-am
  43866. +
  43867. +pdf-am:
  43868. +
  43869. +ps: ps-am
  43870. +
  43871. +ps-am:
  43872. +
  43873. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  43874. +
  43875. +.MAKE: install-am install-strip
  43876. +
  43877. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  43878. + clean-libLTLIBRARIES clean-libtool ctags distclean \
  43879. + distclean-compile distclean-generic distclean-libtool \
  43880. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  43881. + install install-am install-data install-data-am install-dvi \
  43882. + install-dvi-am install-exec install-exec-am install-html \
  43883. + install-html-am install-includeHEADERS install-info \
  43884. + install-info-am install-libLTLIBRARIES install-man install-pdf \
  43885. + install-pdf-am install-ps install-ps-am install-strip \
  43886. + installcheck installcheck-am installdirs maintainer-clean \
  43887. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  43888. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43889. + tags uninstall uninstall-am uninstall-includeHEADERS \
  43890. + uninstall-libLTLIBRARIES
  43891. +
  43892. +
  43893. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  43894. +# Otherwise a system limit (for SysV at least) may be exceeded.
  43895. +.NOEXPORT:
  43896. diff -Nur tslib-1.0.orig/tests/Makefile.in tslib-1.0/tests/Makefile.in
  43897. --- tslib-1.0.orig/tests/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  43898. +++ tslib-1.0/tests/Makefile.in 2010-02-19 00:24:15.824854936 +0100
  43899. @@ -0,0 +1,584 @@
  43900. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43901. +# @configure_input@
  43902. +
  43903. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43904. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43905. +# Inc.
  43906. +# This Makefile.in is free software; the Free Software Foundation
  43907. +# gives unlimited permission to copy and/or distribute it,
  43908. +# with or without modifications, as long as this notice is preserved.
  43909. +
  43910. +# This program is distributed in the hope that it will be useful,
  43911. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  43912. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  43913. +# PARTICULAR PURPOSE.
  43914. +
  43915. +@SET_MAKE@
  43916. +
  43917. +#
  43918. +# tslib/tests/Makefile.am
  43919. +#
  43920. +# Copyright (C) 2001 Russell King.
  43921. +#
  43922. +# This file is placed under the LGPL. Please see the file
  43923. +# COPYING for more details.
  43924. +#
  43925. +# $Id: Makefile.am,v 1.4 2004/07/21 19:12:59 dlowder Exp $
  43926. +#
  43927. +
  43928. +VPATH = @srcdir@
  43929. +pkgdatadir = $(datadir)/@PACKAGE@
  43930. +pkgincludedir = $(includedir)/@PACKAGE@
  43931. +pkglibdir = $(libdir)/@PACKAGE@
  43932. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43933. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43934. +install_sh_DATA = $(install_sh) -c -m 644
  43935. +install_sh_PROGRAM = $(install_sh) -c
  43936. +install_sh_SCRIPT = $(install_sh) -c
  43937. +INSTALL_HEADER = $(INSTALL_DATA)
  43938. +transform = $(program_transform_name)
  43939. +NORMAL_INSTALL = :
  43940. +PRE_INSTALL = :
  43941. +POST_INSTALL = :
  43942. +NORMAL_UNINSTALL = :
  43943. +PRE_UNINSTALL = :
  43944. +POST_UNINSTALL = :
  43945. +build_triplet = @build@
  43946. +host_triplet = @host@
  43947. +bin_PROGRAMS = ts_test$(EXEEXT) ts_calibrate$(EXEEXT) \
  43948. + ts_print$(EXEEXT) ts_print_raw$(EXEEXT) ts_harvest$(EXEEXT)
  43949. +subdir = tests
  43950. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  43951. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  43952. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  43953. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  43954. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  43955. + $(top_srcdir)/m4/internal/ltversion.m4 \
  43956. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  43957. + $(top_srcdir)/m4/internal/visibility.m4 \
  43958. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  43959. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  43960. + $(ACLOCAL_M4)
  43961. +mkinstalldirs = $(install_sh) -d
  43962. +CONFIG_HEADER = $(top_builddir)/config.h
  43963. +CONFIG_CLEAN_FILES =
  43964. +CONFIG_CLEAN_VPATH_FILES =
  43965. +am__installdirs = "$(DESTDIR)$(bindir)"
  43966. +PROGRAMS = $(bin_PROGRAMS)
  43967. +am_ts_calibrate_OBJECTS = ts_calibrate.$(OBJEXT) fbutils.$(OBJEXT) \
  43968. + testutils.$(OBJEXT) font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43969. +ts_calibrate_OBJECTS = $(am_ts_calibrate_OBJECTS)
  43970. +ts_calibrate_DEPENDENCIES = $(top_builddir)/src/libts.la
  43971. +am_ts_harvest_OBJECTS = ts_harvest.$(OBJEXT) fbutils.$(OBJEXT) \
  43972. + testutils.$(OBJEXT) font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43973. +ts_harvest_OBJECTS = $(am_ts_harvest_OBJECTS)
  43974. +ts_harvest_DEPENDENCIES = $(top_builddir)/src/libts.la
  43975. +am_ts_print_OBJECTS = ts_print.$(OBJEXT)
  43976. +ts_print_OBJECTS = $(am_ts_print_OBJECTS)
  43977. +ts_print_DEPENDENCIES = $(top_builddir)/src/libts.la
  43978. +am_ts_print_raw_OBJECTS = ts_print_raw.$(OBJEXT)
  43979. +ts_print_raw_OBJECTS = $(am_ts_print_raw_OBJECTS)
  43980. +ts_print_raw_DEPENDENCIES = $(top_builddir)/src/libts.la
  43981. +am_ts_test_OBJECTS = ts_test.$(OBJEXT) fbutils.$(OBJEXT) \
  43982. + font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43983. +ts_test_OBJECTS = $(am_ts_test_OBJECTS)
  43984. +ts_test_DEPENDENCIES = $(top_builddir)/src/libts.la
  43985. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  43986. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  43987. +am__depfiles_maybe = depfiles
  43988. +am__mv = mv -f
  43989. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  43990. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43991. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43992. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  43993. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43994. +CCLD = $(CC)
  43995. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43996. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  43997. + $(LDFLAGS) -o $@
  43998. +SOURCES = $(ts_calibrate_SOURCES) $(ts_harvest_SOURCES) \
  43999. + $(ts_print_SOURCES) $(ts_print_raw_SOURCES) $(ts_test_SOURCES)
  44000. +DIST_SOURCES = $(ts_calibrate_SOURCES) $(ts_harvest_SOURCES) \
  44001. + $(ts_print_SOURCES) $(ts_print_raw_SOURCES) $(ts_test_SOURCES)
  44002. +ETAGS = etags
  44003. +CTAGS = ctags
  44004. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  44005. +ACLOCAL = @ACLOCAL@
  44006. +ALLOCA = @ALLOCA@
  44007. +AMTAR = @AMTAR@
  44008. +AR = @AR@
  44009. +AUTOCONF = @AUTOCONF@
  44010. +AUTOHEADER = @AUTOHEADER@
  44011. +AUTOMAKE = @AUTOMAKE@
  44012. +AWK = @AWK@
  44013. +CC = @CC@
  44014. +CCDEPMODE = @CCDEPMODE@
  44015. +CFLAGS = @CFLAGS@
  44016. +CPP = @CPP@
  44017. +CPPFLAGS = @CPPFLAGS@
  44018. +CXX = @CXX@
  44019. +CXXCPP = @CXXCPP@
  44020. +CXXDEPMODE = @CXXDEPMODE@
  44021. +CXXFLAGS = @CXXFLAGS@
  44022. +CYGPATH_W = @CYGPATH_W@
  44023. +DEBUGFLAGS = @DEBUGFLAGS@
  44024. +DEFS = @DEFS@
  44025. +DEPDIR = @DEPDIR@
  44026. +DSYMUTIL = @DSYMUTIL@
  44027. +DUMPBIN = @DUMPBIN@
  44028. +ECHO_C = @ECHO_C@
  44029. +ECHO_N = @ECHO_N@
  44030. +ECHO_T = @ECHO_T@
  44031. +EGREP = @EGREP@
  44032. +EXEEXT = @EXEEXT@
  44033. +FGREP = @FGREP@
  44034. +GREP = @GREP@
  44035. +INSTALL = @INSTALL@
  44036. +INSTALL_DATA = @INSTALL_DATA@
  44037. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44038. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44039. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44040. +LD = @LD@
  44041. +LDFLAGS = @LDFLAGS@
  44042. +LIBFLAGS = @LIBFLAGS@
  44043. +LIBOBJS = @LIBOBJS@
  44044. +LIBS = @LIBS@
  44045. +LIBTOOL = @LIBTOOL@
  44046. +LIPO = @LIPO@
  44047. +LN_S = @LN_S@
  44048. +LTLIBOBJS = @LTLIBOBJS@
  44049. +LT_AGE = @LT_AGE@
  44050. +LT_CURRENT = @LT_CURRENT@
  44051. +LT_RELEASE = @LT_RELEASE@
  44052. +LT_REVISION = @LT_REVISION@
  44053. +MAKEINFO = @MAKEINFO@
  44054. +MKDIR_P = @MKDIR_P@
  44055. +NM = @NM@
  44056. +NMEDIT = @NMEDIT@
  44057. +OBJDUMP = @OBJDUMP@
  44058. +OBJEXT = @OBJEXT@
  44059. +OTOOL = @OTOOL@
  44060. +OTOOL64 = @OTOOL64@
  44061. +PACKAGE = @PACKAGE@
  44062. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44063. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  44064. +PACKAGE_NAME = @PACKAGE_NAME@
  44065. +PACKAGE_STRING = @PACKAGE_STRING@
  44066. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44067. +PACKAGE_URL = @PACKAGE_URL@
  44068. +PACKAGE_VERSION = @PACKAGE_VERSION@
  44069. +PATH_SEPARATOR = @PATH_SEPARATOR@
  44070. +PLUGIN_DIR = @PLUGIN_DIR@
  44071. +RANLIB = @RANLIB@
  44072. +SED = @SED@
  44073. +SET_MAKE = @SET_MAKE@
  44074. +SHELL = @SHELL@
  44075. +STRIP = @STRIP@
  44076. +TS_CONF = @TS_CONF@
  44077. +VERSION = @VERSION@
  44078. +VIS_CFLAGS = @VIS_CFLAGS@
  44079. +abs_builddir = @abs_builddir@
  44080. +abs_srcdir = @abs_srcdir@
  44081. +abs_top_builddir = @abs_top_builddir@
  44082. +abs_top_srcdir = @abs_top_srcdir@
  44083. +ac_ct_CC = @ac_ct_CC@
  44084. +ac_ct_CXX = @ac_ct_CXX@
  44085. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44086. +am__include = @am__include@
  44087. +am__leading_dot = @am__leading_dot@
  44088. +am__quote = @am__quote@
  44089. +am__tar = @am__tar@
  44090. +am__untar = @am__untar@
  44091. +bindir = @bindir@
  44092. +build = @build@
  44093. +build_alias = @build_alias@
  44094. +build_cpu = @build_cpu@
  44095. +build_os = @build_os@
  44096. +build_vendor = @build_vendor@
  44097. +builddir = @builddir@
  44098. +datadir = @datadir@
  44099. +datarootdir = @datarootdir@
  44100. +docdir = @docdir@
  44101. +dvidir = @dvidir@
  44102. +exec_prefix = @exec_prefix@
  44103. +host = @host@
  44104. +host_alias = @host_alias@
  44105. +host_cpu = @host_cpu@
  44106. +host_os = @host_os@
  44107. +host_vendor = @host_vendor@
  44108. +htmldir = @htmldir@
  44109. +includedir = @includedir@
  44110. +infodir = @infodir@
  44111. +install_sh = @install_sh@
  44112. +libdir = @libdir@
  44113. +libexecdir = @libexecdir@
  44114. +localedir = @localedir@
  44115. +localstatedir = @localstatedir@
  44116. +lt_ECHO = @lt_ECHO@
  44117. +mandir = @mandir@
  44118. +mkdir_p = @mkdir_p@
  44119. +oldincludedir = @oldincludedir@
  44120. +pdfdir = @pdfdir@
  44121. +prefix = @prefix@
  44122. +program_transform_name = @program_transform_name@
  44123. +psdir = @psdir@
  44124. +sbindir = @sbindir@
  44125. +sharedstatedir = @sharedstatedir@
  44126. +srcdir = @srcdir@
  44127. +sysconfdir = @sysconfdir@
  44128. +target_alias = @target_alias@
  44129. +top_build_prefix = @top_build_prefix@
  44130. +top_builddir = @top_builddir@
  44131. +top_srcdir = @top_srcdir@
  44132. +AM_CFLAGS = $(DEBUGFLAGS)
  44133. +INCLUDES = -I$(top_srcdir)/src
  44134. +ts_test_SOURCES = ts_test.c fbutils.c fbutils.h font_8x8.c font_8x16.c font.h
  44135. +ts_test_LDADD = $(top_builddir)/src/libts.la
  44136. +ts_print_SOURCES = ts_print.c
  44137. +ts_print_LDADD = $(top_builddir)/src/libts.la
  44138. +ts_print_raw_SOURCES = ts_print_raw.c
  44139. +ts_print_raw_LDADD = $(top_builddir)/src/libts.la
  44140. +ts_calibrate_SOURCES = ts_calibrate.c fbutils.c fbutils.h testutils.c testutils.h font_8x8.c font_8x16.c font.h
  44141. +ts_calibrate_LDADD = $(top_builddir)/src/libts.la
  44142. +ts_harvest_SOURCES = ts_harvest.c fbutils.c fbutils.h testutils.c testutils.h font_8x8.c font_8x16.c font.h
  44143. +ts_harvest_LDADD = $(top_builddir)/src/libts.la
  44144. +all: all-am
  44145. +
  44146. +.SUFFIXES:
  44147. +.SUFFIXES: .c .lo .o .obj
  44148. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  44149. + @for dep in $?; do \
  44150. + case '$(am__configure_deps)' in \
  44151. + *$$dep*) \
  44152. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44153. + && { if test -f $@; then exit 0; else break; fi; }; \
  44154. + exit 1;; \
  44155. + esac; \
  44156. + done; \
  44157. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  44158. + $(am__cd) $(top_srcdir) && \
  44159. + $(AUTOMAKE) --gnu tests/Makefile
  44160. +.PRECIOUS: Makefile
  44161. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44162. + @case '$?' in \
  44163. + *config.status*) \
  44164. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  44165. + *) \
  44166. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  44167. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  44168. + esac;
  44169. +
  44170. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  44171. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44172. +
  44173. +$(top_srcdir)/configure: $(am__configure_deps)
  44174. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44175. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  44176. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44177. +$(am__aclocal_m4_deps):
  44178. +install-binPROGRAMS: $(bin_PROGRAMS)
  44179. + @$(NORMAL_INSTALL)
  44180. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  44181. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  44182. + for p in $$list; do echo "$$p $$p"; done | \
  44183. + sed 's/$(EXEEXT)$$//' | \
  44184. + while read p p1; do if test -f $$p || test -f $$p1; \
  44185. + then echo "$$p"; echo "$$p"; else :; fi; \
  44186. + done | \
  44187. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  44188. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  44189. + sed 'N;N;N;s,\n, ,g' | \
  44190. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  44191. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  44192. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  44193. + else { print "f", $$3 "/" $$4, $$1; } } \
  44194. + END { for (d in files) print "f", d, files[d] }' | \
  44195. + while read type dir files; do \
  44196. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  44197. + test -z "$$files" || { \
  44198. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  44199. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  44200. + } \
  44201. + ; done
  44202. +
  44203. +uninstall-binPROGRAMS:
  44204. + @$(NORMAL_UNINSTALL)
  44205. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  44206. + files=`for p in $$list; do echo "$$p"; done | \
  44207. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  44208. + -e 's/$$/$(EXEEXT)/' `; \
  44209. + test -n "$$list" || exit 0; \
  44210. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  44211. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  44212. +
  44213. +clean-binPROGRAMS:
  44214. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  44215. + echo " rm -f" $$list; \
  44216. + rm -f $$list || exit $$?; \
  44217. + test -n "$(EXEEXT)" || exit 0; \
  44218. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  44219. + echo " rm -f" $$list; \
  44220. + rm -f $$list
  44221. +ts_calibrate$(EXEEXT): $(ts_calibrate_OBJECTS) $(ts_calibrate_DEPENDENCIES)
  44222. + @rm -f ts_calibrate$(EXEEXT)
  44223. + $(LINK) $(ts_calibrate_OBJECTS) $(ts_calibrate_LDADD) $(LIBS)
  44224. +ts_harvest$(EXEEXT): $(ts_harvest_OBJECTS) $(ts_harvest_DEPENDENCIES)
  44225. + @rm -f ts_harvest$(EXEEXT)
  44226. + $(LINK) $(ts_harvest_OBJECTS) $(ts_harvest_LDADD) $(LIBS)
  44227. +ts_print$(EXEEXT): $(ts_print_OBJECTS) $(ts_print_DEPENDENCIES)
  44228. + @rm -f ts_print$(EXEEXT)
  44229. + $(LINK) $(ts_print_OBJECTS) $(ts_print_LDADD) $(LIBS)
  44230. +ts_print_raw$(EXEEXT): $(ts_print_raw_OBJECTS) $(ts_print_raw_DEPENDENCIES)
  44231. + @rm -f ts_print_raw$(EXEEXT)
  44232. + $(LINK) $(ts_print_raw_OBJECTS) $(ts_print_raw_LDADD) $(LIBS)
  44233. +ts_test$(EXEEXT): $(ts_test_OBJECTS) $(ts_test_DEPENDENCIES)
  44234. + @rm -f ts_test$(EXEEXT)
  44235. + $(LINK) $(ts_test_OBJECTS) $(ts_test_LDADD) $(LIBS)
  44236. +
  44237. +mostlyclean-compile:
  44238. + -rm -f *.$(OBJEXT)
  44239. +
  44240. +distclean-compile:
  44241. + -rm -f *.tab.c
  44242. +
  44243. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fbutils.Po@am__quote@
  44244. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_8x16.Po@am__quote@
  44245. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_8x8.Po@am__quote@
  44246. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testutils.Po@am__quote@
  44247. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_calibrate.Po@am__quote@
  44248. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_harvest.Po@am__quote@
  44249. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_print.Po@am__quote@
  44250. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_print_raw.Po@am__quote@
  44251. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_test.Po@am__quote@
  44252. +
  44253. +.c.o:
  44254. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44255. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44256. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44257. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44258. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  44259. +
  44260. +.c.obj:
  44261. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  44262. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44263. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44264. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44265. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  44266. +
  44267. +.c.lo:
  44268. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44269. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  44270. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  44271. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44272. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  44273. +
  44274. +mostlyclean-libtool:
  44275. + -rm -f *.lo
  44276. +
  44277. +clean-libtool:
  44278. + -rm -rf .libs _libs
  44279. +
  44280. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  44281. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44282. + unique=`for i in $$list; do \
  44283. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44284. + done | \
  44285. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44286. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44287. + mkid -fID $$unique
  44288. +tags: TAGS
  44289. +
  44290. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44291. + $(TAGS_FILES) $(LISP)
  44292. + set x; \
  44293. + here=`pwd`; \
  44294. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44295. + unique=`for i in $$list; do \
  44296. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44297. + done | \
  44298. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44299. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44300. + shift; \
  44301. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44302. + test -n "$$unique" || unique=$$empty_fix; \
  44303. + if test $$# -gt 0; then \
  44304. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44305. + "$$@" $$unique; \
  44306. + else \
  44307. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44308. + $$unique; \
  44309. + fi; \
  44310. + fi
  44311. +ctags: CTAGS
  44312. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44313. + $(TAGS_FILES) $(LISP)
  44314. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44315. + unique=`for i in $$list; do \
  44316. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44317. + done | \
  44318. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44319. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44320. + test -z "$(CTAGS_ARGS)$$unique" \
  44321. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44322. + $$unique
  44323. +
  44324. +GTAGS:
  44325. + here=`$(am__cd) $(top_builddir) && pwd` \
  44326. + && $(am__cd) $(top_srcdir) \
  44327. + && gtags -i $(GTAGS_ARGS) "$$here"
  44328. +
  44329. +distclean-tags:
  44330. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44331. +
  44332. +distdir: $(DISTFILES)
  44333. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  44334. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  44335. + list='$(DISTFILES)'; \
  44336. + dist_files=`for file in $$list; do echo $$file; done | \
  44337. + sed -e "s|^$$srcdirstrip/||;t" \
  44338. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  44339. + case $$dist_files in \
  44340. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  44341. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  44342. + sort -u` ;; \
  44343. + esac; \
  44344. + for file in $$dist_files; do \
  44345. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44346. + if test -d $$d/$$file; then \
  44347. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44348. + if test -d "$(distdir)/$$file"; then \
  44349. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44350. + fi; \
  44351. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44352. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44353. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44354. + fi; \
  44355. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44356. + else \
  44357. + test -f "$(distdir)/$$file" \
  44358. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44359. + || exit 1; \
  44360. + fi; \
  44361. + done
  44362. +check-am: all-am
  44363. +check: check-am
  44364. +all-am: Makefile $(PROGRAMS)
  44365. +installdirs:
  44366. + for dir in "$(DESTDIR)$(bindir)"; do \
  44367. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  44368. + done
  44369. +install: install-am
  44370. +install-exec: install-exec-am
  44371. +install-data: install-data-am
  44372. +uninstall: uninstall-am
  44373. +
  44374. +install-am: all-am
  44375. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  44376. +
  44377. +installcheck: installcheck-am
  44378. +install-strip:
  44379. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  44380. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  44381. + `test -z '$(STRIP)' || \
  44382. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  44383. +mostlyclean-generic:
  44384. +
  44385. +clean-generic:
  44386. +
  44387. +distclean-generic:
  44388. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44389. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44390. +
  44391. +maintainer-clean-generic:
  44392. + @echo "This command is intended for maintainers to use"
  44393. + @echo "it deletes files that may require special tools to rebuild."
  44394. +clean: clean-am
  44395. +
  44396. +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
  44397. +
  44398. +distclean: distclean-am
  44399. + -rm -rf ./$(DEPDIR)
  44400. + -rm -f Makefile
  44401. +distclean-am: clean-am distclean-compile distclean-generic \
  44402. + distclean-tags
  44403. +
  44404. +dvi: dvi-am
  44405. +
  44406. +dvi-am:
  44407. +
  44408. +html: html-am
  44409. +
  44410. +html-am:
  44411. +
  44412. +info: info-am
  44413. +
  44414. +info-am:
  44415. +
  44416. +install-data-am:
  44417. +
  44418. +install-dvi: install-dvi-am
  44419. +
  44420. +install-dvi-am:
  44421. +
  44422. +install-exec-am: install-binPROGRAMS
  44423. +
  44424. +install-html: install-html-am
  44425. +
  44426. +install-html-am:
  44427. +
  44428. +install-info: install-info-am
  44429. +
  44430. +install-info-am:
  44431. +
  44432. +install-man:
  44433. +
  44434. +install-pdf: install-pdf-am
  44435. +
  44436. +install-pdf-am:
  44437. +
  44438. +install-ps: install-ps-am
  44439. +
  44440. +install-ps-am:
  44441. +
  44442. +installcheck-am:
  44443. +
  44444. +maintainer-clean: maintainer-clean-am
  44445. + -rm -rf ./$(DEPDIR)
  44446. + -rm -f Makefile
  44447. +maintainer-clean-am: distclean-am maintainer-clean-generic
  44448. +
  44449. +mostlyclean: mostlyclean-am
  44450. +
  44451. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  44452. + mostlyclean-libtool
  44453. +
  44454. +pdf: pdf-am
  44455. +
  44456. +pdf-am:
  44457. +
  44458. +ps: ps-am
  44459. +
  44460. +ps-am:
  44461. +
  44462. +uninstall-am: uninstall-binPROGRAMS
  44463. +
  44464. +.MAKE: install-am install-strip
  44465. +
  44466. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
  44467. + clean-generic clean-libtool ctags distclean distclean-compile \
  44468. + distclean-generic distclean-libtool distclean-tags distdir dvi \
  44469. + dvi-am html html-am info info-am install install-am \
  44470. + install-binPROGRAMS install-data install-data-am install-dvi \
  44471. + install-dvi-am install-exec install-exec-am install-html \
  44472. + install-html-am install-info install-info-am install-man \
  44473. + install-pdf install-pdf-am install-ps install-ps-am \
  44474. + install-strip installcheck installcheck-am installdirs \
  44475. + maintainer-clean maintainer-clean-generic mostlyclean \
  44476. + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  44477. + pdf pdf-am ps ps-am tags uninstall uninstall-am \
  44478. + uninstall-binPROGRAMS
  44479. +
  44480. +
  44481. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  44482. +# Otherwise a system limit (for SysV at least) may be exceeded.
  44483. +.NOEXPORT: